@db-ux/v-core-components 4.2.1 → 4.2.2-css-selectors-792dad7

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.
package/dist/db-ux.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as W, ref as o, onMounted as Y, watch as C, createElementBlock as y, openBlock as v, normalizeClass as U, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as F, Fragment as H, createTextVNode as D, toDisplayString as B, renderList as he, createBlock as J, onUnmounted as ge, createVNode as te, withCtx as G } from "vue";
2
- const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", $a = "Back", xa = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close", Ki = "density", Yi = "color";
1
+ import { defineComponent as W, ref as o, onMounted as Y, watch as C, createElementBlock as y, openBlock as v, normalizeClass as U, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as F, Fragment as H, createTextVNode as D, toDisplayString as B, renderList as ge, createBlock as J, onUnmounted as he, createVNode as te, withCtx as G } from "vue";
2
+ const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", xa = "Back", $a = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close", Ki = "density", Yi = "color";
3
3
  var ta = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(ta || {});
4
4
  const Ji = Object.entries(ta).map(([, e]) => e);
5
5
  var ia = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(ia || {}), la = /* @__PURE__ */ ((e) => (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))(la || {});
@@ -81,13 +81,13 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
81
81
  name: { default: void 0 }
82
82
  },
83
83
  setup(e) {
84
- const t = e, l = o(Ie), a = o(!1), i = o(void 0), s = o(!1), u = o(null);
84
+ const t = e, l = o(Ie), a = o(!1), i = o(void 0), u = o(!1), c = o(null);
85
85
  Y(() => {
86
- l.value = t.id || "accordion-item-" + Q(), t.defaultOpen && (a.value = t.defaultOpen), s.value = !0;
86
+ l.value = t.id || "accordion-item-" + Q(), t.defaultOpen && (a.value = t.defaultOpen), u.value = !0;
87
87
  }), C(
88
- () => [u.value, s.value],
88
+ () => [c.value, u.value],
89
89
  () => {
90
- u.value && s.value;
90
+ c.value && u.value;
91
91
  },
92
92
  {
93
93
  immediate: !0,
@@ -115,7 +115,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
115
115
  E("details", {
116
116
  "aria-disabled": n(V)(e.disabled),
117
117
  ref_key: "_ref",
118
- ref: u,
118
+ ref: c,
119
119
  name: i.value,
120
120
  open: a.value
121
121
  }, [
@@ -151,9 +151,9 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
151
151
  autofocus: { type: [Boolean, String] }
152
152
  },
153
153
  setup(e) {
154
- const t = e, l = o(Ie), a = o(""), i = o(!1), s = o(!1), u = o(null);
154
+ const t = e, l = o(Ie), a = o(""), i = o(!1), u = o(!1), c = o(null);
155
155
  Y(() => {
156
- l.value = t.id || "accordion-" + Q(), i.value = !0, s.value = !0;
156
+ l.value = t.id || "accordion-" + Q(), i.value = !0, u.value = !0;
157
157
  }), C(
158
158
  () => [i.value, t.name, t.behavior, l.value],
159
159
  () => {
@@ -164,10 +164,10 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
164
164
  flush: "post"
165
165
  }
166
166
  ), C(
167
- () => [u.value, a.value],
167
+ () => [c.value, a.value],
168
168
  () => {
169
- if (u.value) {
170
- const g = u.value.getElementsByTagName("details");
169
+ if (c.value) {
170
+ const g = c.value.getElementsByTagName("details");
171
171
  if (g)
172
172
  for (const h of Array.from(g))
173
173
  a.value === "" ? h.removeAttribute("name") : h.name = a.value ?? "";
@@ -178,21 +178,21 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
178
178
  flush: "post"
179
179
  }
180
180
  ), C(
181
- () => [u.value, s.value, t.initOpenIndex],
181
+ () => [c.value, u.value, t.initOpenIndex],
182
182
  () => {
183
- if (u.value && s.value) {
183
+ if (c.value && u.value) {
184
184
  if (t.initOpenIndex && t.initOpenIndex.length > 0) {
185
- const g = u.value.getElementsByTagName("details");
185
+ const g = c.value.getElementsByTagName("details");
186
186
  if (g) {
187
187
  const h = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
188
188
  Array.from(g).forEach(
189
- (k, x) => {
190
- h?.includes(x) && (k.open = !0);
189
+ (k, $) => {
190
+ h?.includes($) && (k.open = !0);
191
191
  }
192
192
  );
193
193
  }
194
194
  }
195
- s.value = !1;
195
+ u.value = !1;
196
196
  }
197
197
  },
198
198
  {
@@ -210,14 +210,14 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
210
210
  }
211
211
  return (g, h) => (v(), y("ul", {
212
212
  ref_key: "_ref",
213
- ref: u,
213
+ ref: c,
214
214
  id: l.value,
215
215
  class: U(n(O)("db-accordion", t.class)),
216
216
  "data-variant": e.variant
217
217
  }, [
218
218
  e.items ? z("", !0) : F(g.$slots, "default", { key: 0 }),
219
- e.items ? (v(!0), y(H, { key: 1 }, he(f(), (k, x) => (v(), J(Pa, {
220
- key: `accordion-item-${x}`,
219
+ e.items ? (v(!0), y(H, { key: 1 }, ge(f(), (k, $) => (v(), J(Pa, {
220
+ key: `accordion-item-${$}`,
221
221
  headlinePlain: k.headlinePlain,
222
222
  disabled: k.disabled,
223
223
  text: k.text
@@ -255,7 +255,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
255
255
  immediate: !0,
256
256
  flush: "post"
257
257
  }
258
- ), (i, s) => (v(), y("span", {
258
+ ), (i, u) => (v(), y("span", {
259
259
  ref_key: "_ref",
260
260
  ref: a,
261
261
  id: e.id,
@@ -330,10 +330,10 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
330
330
  function a() {
331
331
  return t.type ? t.type : t.onClick ? "button" : "submit";
332
332
  }
333
- function i(s) {
334
- t.onClick && t.onClick(s);
333
+ function i(u) {
334
+ t.onClick && t.onClick(u);
335
335
  }
336
- return (s, u) => (v(), y("button", {
336
+ return (u, c) => (v(), y("button", {
337
337
  ref_key: "_ref",
338
338
  ref: l,
339
339
  id: e.id,
@@ -351,11 +351,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
351
351
  name: e.name,
352
352
  form: e.form,
353
353
  value: e.value,
354
- onClick: u[0] || (u[0] = async (f) => i(f))
354
+ onClick: c[0] || (c[0] = async (f) => i(f))
355
355
  }, [
356
356
  e.text ? (v(), y(H, { key: 0 }, [
357
357
  D(B(e.text), 1)
358
- ], 64)) : F(s.$slots, "default", { key: 1 })
358
+ ], 64)) : F(u.$slots, "default", { key: 1 })
359
359
  ], 10, Ga));
360
360
  }
361
361
  }), sl = ["outlined", "brand", "filled", "ghost"], ul = ["button", "reset", "submit"], Wa = ["id", "data-behavior", "data-elevation-level", "data-spacing"], cl = /* @__PURE__ */ W({
@@ -376,7 +376,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
376
376
  function a(i) {
377
377
  t.onClick && t.onClick(i);
378
378
  }
379
- return (i, s) => (v(), y("div", {
379
+ return (i, u) => (v(), y("div", {
380
380
  ref_key: "_ref",
381
381
  ref: l,
382
382
  id: e.id,
@@ -384,7 +384,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
384
384
  "data-behavior": e.behavior,
385
385
  "data-elevation-level": e.elevationLevel,
386
386
  "data-spacing": e.spacing,
387
- onClick: s[0] || (s[0] = async (u) => a(u))
387
+ onClick: u[0] || (u[0] = async (c) => a(c))
388
388
  }, [
389
389
  F(i.$slots, "default")
390
390
  ], 10, Wa));
@@ -400,27 +400,27 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
400
400
  }, da = (e, t, l, a) => {
401
401
  Me(e, (i) => {
402
402
  K(() => {
403
- const s = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked, u = {
403
+ const u = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked, c = {
404
404
  ...i,
405
405
  target: {
406
406
  ...i.target,
407
- checked: s
407
+ checked: u
408
408
  }
409
409
  };
410
- l(u);
410
+ l(c);
411
411
  }, 1);
412
412
  }, a);
413
413
  }, Ue = (e, t, l, a) => {
414
414
  Me(e, (i) => {
415
415
  K(() => {
416
- const s = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value, u = {
416
+ const u = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value, c = {
417
417
  ...i,
418
418
  target: {
419
419
  ...i.target,
420
- value: s
420
+ value: u
421
421
  }
422
422
  };
423
- l(u);
423
+ l(c);
424
424
  }, 1);
425
425
  }, a);
426
426
  }, Ha = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], Z = /* @__PURE__ */ W({
@@ -495,28 +495,28 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
495
495
  },
496
496
  emits: ["update:checked"],
497
497
  setup(e, { emit: t }) {
498
- const l = t, a = e, i = o(!1), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(""), b = o(void 0), c = o(null);
498
+ const l = t, a = e, i = o(!1), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(""), m = o(void 0), s = o(null);
499
499
  Y(() => {
500
500
  i.value = !0;
501
501
  const L = a.id ?? `checkbox-${Q()}`;
502
- s.value = L, u.value = L + ce, f.value = L + re, g.value = L + ve, h.value = a.invalidMessage || ee;
503
- }), ge(() => {
504
- b.value?.abort();
502
+ u.value = L, c.value = L + ce, f.value = L + re, g.value = L + ve, h.value = a.invalidMessage || ee;
503
+ }), he(() => {
504
+ m.value?.abort();
505
505
  }), C(
506
- () => [c.value, a.invalidMessage],
506
+ () => [s.value, a.invalidMessage],
507
507
  () => {
508
- h.value = a.invalidMessage || c.value?.validationMessage || ee;
508
+ h.value = a.invalidMessage || s.value?.validationMessage || ee;
509
509
  },
510
510
  {
511
511
  immediate: !0,
512
512
  flush: "post"
513
513
  }
514
514
  ), C(
515
- () => [s.value],
515
+ () => [u.value],
516
516
  () => {
517
- if (s.value) {
518
- const L = s.value + ce;
519
- u.value = L, f.value = s.value + re, g.value = s.value + ve, _(a.message, a.showMessage) && (k.value = L), m();
517
+ if (u.value) {
518
+ const L = u.value + ce;
519
+ c.value = L, f.value = u.value + re, g.value = u.value + ve, _(a.message, a.showMessage) && (k.value = L), b();
520
520
  }
521
521
  },
522
522
  {
@@ -524,30 +524,30 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
524
524
  flush: "post"
525
525
  }
526
526
  ), C(
527
- () => [i.value, c.value, a.indeterminate],
527
+ () => [i.value, s.value, a.indeterminate],
528
528
  () => {
529
- c.value && a.indeterminate !== void 0 && (c.value.indeterminate = !!q(a.indeterminate));
529
+ s.value && a.indeterminate !== void 0 && (s.value.indeterminate = !!q(a.indeterminate));
530
530
  },
531
531
  {
532
532
  immediate: !0,
533
533
  flush: "post"
534
534
  }
535
535
  ), C(
536
- () => [i.value, c.value, a.checked],
536
+ () => [i.value, s.value, a.checked],
537
537
  () => {
538
- i.value && c.value && (a.checked != null && (c.value.checked = !!q(a.checked)), i.value = !1);
538
+ i.value && s.value && (a.checked != null && (s.value.checked = !!q(a.checked)), i.value = !1);
539
539
  },
540
540
  {
541
541
  immediate: !0,
542
542
  flush: "post"
543
543
  }
544
544
  ), C(
545
- () => [c.value],
545
+ () => [s.value],
546
546
  () => {
547
- if (c.value) {
548
- let S = b.value;
549
- S || (S = new AbortController(), b.value = S), da(
550
- c.value,
547
+ if (s.value) {
548
+ let S = m.value;
549
+ S || (S = new AbortController(), m.value = S), da(
550
+ s.value,
551
551
  {
552
552
  checked: a.checked,
553
553
  defaultChecked: void 0
@@ -567,11 +567,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
567
567
  function d() {
568
568
  return !!(a.validMessage ?? a.validation === "valid");
569
569
  }
570
- function m() {
571
- !c.value?.validity.valid || a.validation === "invalid" ? (k.value = g.value, h.value = a.invalidMessage || c.value?.validationMessage || ee, ue() && (x.value = h.value, K(() => x.value = "", 1e3))) : d() && c.value?.validity.valid && a.required ? (k.value = f.value, ue() && (x.value = a.validMessage ?? se, K(() => x.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : k.value = void 0;
570
+ function b() {
571
+ !s.value?.validity.valid || a.validation === "invalid" ? (k.value = g.value, h.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = h.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && a.required ? (k.value = f.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = c.value : k.value = void 0;
572
572
  }
573
573
  function I(L, S) {
574
- a.onChange && a.onChange(L), de(l, L, "checked"), m();
574
+ a.onChange && a.onChange(L), de(l, L, "checked"), b();
575
575
  }
576
576
  function T(L) {
577
577
  a.onBlur && a.onBlur(L);
@@ -585,14 +585,14 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
585
585
  "data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
586
586
  "data-hide-label": n(ne)(e.showLabel)
587
587
  }, [
588
- E("label", { for: s.value }, [
588
+ E("label", { for: u.value }, [
589
589
  E("input", {
590
590
  type: "checkbox",
591
591
  "aria-invalid": e.validation === "invalid",
592
592
  "data-custom-validity": e.validation,
593
593
  ref_key: "_ref",
594
- ref: c,
595
- id: s.value,
594
+ ref: s,
595
+ id: u.value,
596
596
  name: e.name,
597
597
  checked: n(q)(e.checked, "checked"),
598
598
  disabled: n(q)(e.disabled, "disabled"),
@@ -611,7 +611,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
611
611
  key: 0,
612
612
  size: "small",
613
613
  icon: e.messageIcon,
614
- id: u.value
614
+ id: c.value
615
615
  }, {
616
616
  default: G(() => [
617
617
  D(B(e.message), 1)
@@ -639,7 +639,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
639
639
  ]),
640
640
  _: 1
641
641
  }, 8, ["id"]),
642
- E("span", Ya, B(x.value), 1)
642
+ E("span", Ya, B($.value), 1)
643
643
  ], 10, Xa));
644
644
  }
645
645
  });
@@ -695,12 +695,12 @@ const Ja = (e) => {
695
695
  left: a,
696
696
  right: i
697
697
  } = e.getBoundingClientRect(), {
698
- innerHeight: s,
699
- innerWidth: u
698
+ innerHeight: u,
699
+ innerWidth: c
700
700
  } = window;
701
- let f = t < 0, g = l > s, h = a < 0, k = i > u;
702
- const x = e.dataset.outsideVy, b = e.dataset.outsideVx, c = e?.parentElement?.getBoundingClientRect();
703
- return c && (x && (e.dataset.outsideVy === "top" ? f = c.top - (l - c.bottom) < 0 : g = c.bottom + (c.top - t) > s), b && (e.dataset.outsideVx === "left" ? h = c.left - (i - c.right) < 0 : k = c.right + (c.left - a) > u)), {
701
+ let f = t < 0, g = l > u, h = a < 0, k = i > c;
702
+ const $ = e.dataset.outsideVy, m = e.dataset.outsideVx, s = e?.parentElement?.getBoundingClientRect();
703
+ return s && ($ && (e.dataset.outsideVy === "top" ? f = s.top - (l - s.bottom) < 0 : g = s.bottom + (s.top - t) > u), m && (e.dataset.outsideVx === "left" ? h = s.left - (i - s.right) < 0 : k = s.right + (s.left - a) > c)), {
704
704
  outTop: f,
705
705
  outBottom: g,
706
706
  outLeft: h,
@@ -713,26 +713,26 @@ const Ja = (e) => {
713
713
  outLeft: a,
714
714
  outRight: i
715
715
  } = Ja(e);
716
- let s = {};
717
- return t || l ? (s = {
716
+ let u = {};
717
+ return t || l ? (u = {
718
718
  vy: t ? "top" : "bottom"
719
- }, e.dataset.outsideVy = s.vy) : delete e.dataset.outsideVy, a || i ? (s = {
720
- ...s,
719
+ }, e.dataset.outsideVy = u.vy) : delete e.dataset.outsideVy, a || i ? (u = {
720
+ ...u,
721
721
  vx: i ? "right" : "left"
722
- }, e.dataset.outsideVx = s.vx) : delete e.dataset.outsideVx, s;
722
+ }, e.dataset.outsideVx = u.vx) : delete e.dataset.outsideVx, u;
723
723
  }, Za = (e, t, l) => {
724
724
  if (getComputedStyle(e).zIndex === "9999") return;
725
725
  const {
726
726
  top: a,
727
727
  bottom: i,
728
- childHeight: s,
729
- childWidth: u,
728
+ childHeight: u,
729
+ childWidth: c,
730
730
  width: f,
731
731
  right: g,
732
732
  left: h,
733
733
  correctedPlacement: k
734
734
  } = sa(e, t, l);
735
- e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${g - u}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${a - s}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
735
+ e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${g - c}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${a - u}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
736
736
  }, sa = (e, t, l) => {
737
737
  if (!e || !t)
738
738
  return {
@@ -750,85 +750,85 @@ const Ja = (e) => {
750
750
  };
751
751
  const a = e.getBoundingClientRect(), {
752
752
  top: i,
753
- height: s,
754
- bottom: u,
753
+ height: u,
754
+ bottom: c,
755
755
  right: f,
756
756
  left: g,
757
757
  width: h
758
758
  } = t.getBoundingClientRect(), {
759
759
  innerHeight: k,
760
- innerWidth: x
760
+ innerWidth: $
761
761
  } = window;
762
- let b = a.height, c = a.width;
763
- (l === "bottom" || l === "top") && (c = c / 2), (l === "left" || l === "right") && (b = b / 2);
764
- const d = u + b > k, m = i - b < 0, I = g - c < 0, T = f + c > x;
762
+ let m = a.height, s = a.width;
763
+ (l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (m = m / 2);
764
+ const d = c + m > k, b = i - m < 0, I = g - s < 0, T = f + s > $;
765
765
  let w = l;
766
- return l.startsWith("bottom") ? d ? (w = l?.replace("bottom", "top"), I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end")) : I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end") : l.startsWith("top") ? m ? (w = l?.replace("top", "bottom"), I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end")) : I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end") : l.startsWith("left") ? I ? (w = l?.replace("left", "right"), d && m ? w = "right" : d ? w = "right-end" : m && (w = "right-start")) : d && m ? w = "left" : d ? w = "left-end" : m && (w = "left-start") : w.startsWith("right") && (T ? (w = l?.replace("right", "left"), d && m ? w = "left" : d ? w = "left-end" : m && (w = "left-start")) : d && m ? w = "right" : d ? w = "right-end" : m && (w = "right-start")), {
766
+ return l.startsWith("bottom") ? d ? (w = l?.replace("bottom", "top"), I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end")) : I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end") : l.startsWith("top") ? b ? (w = l?.replace("top", "bottom"), I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end")) : I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end") : l.startsWith("left") ? I ? (w = l?.replace("left", "right"), d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")) : d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start") : w.startsWith("right") && (T ? (w = l?.replace("right", "left"), d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start")) : d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")), {
767
767
  top: i,
768
- bottom: u,
768
+ bottom: c,
769
769
  right: f,
770
- height: s,
770
+ height: u,
771
771
  width: h,
772
772
  left: g,
773
773
  childHeight: a.height,
774
774
  childWidth: a.width,
775
775
  correctedPlacement: w,
776
- innerWidth: x,
776
+ innerWidth: $,
777
777
  innerHeight: k
778
778
  };
779
779
  }, ua = (e, t, l) => {
780
780
  const a = getComputedStyle(e).getPropertyValue("--db-popover-distance") ?? "0px", {
781
781
  top: i,
782
- height: s,
783
- width: u,
782
+ height: u,
783
+ width: c,
784
784
  childHeight: f,
785
785
  childWidth: g,
786
786
  right: h,
787
787
  left: k,
788
- bottom: x,
789
- correctedPlacement: b,
790
- innerWidth: c,
788
+ bottom: $,
789
+ correctedPlacement: m,
790
+ innerWidth: s,
791
791
  innerHeight: d
792
792
  } = sa(e, t, l);
793
- if (g > u && (b.startsWith("bottom") || b.startsWith("top"))) {
794
- const m = u / 2 / g * 100;
795
- b.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${m}%`) : b.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - m}%`);
793
+ if (g > c && (m.startsWith("bottom") || m.startsWith("top"))) {
794
+ const b = c / 2 / g * 100;
795
+ m.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${b}%`) : m.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - b}%`);
796
796
  }
797
- if (f > s && (b.startsWith("left") || b.startsWith("bottom"))) {
798
- const m = s / 2 / f * 100;
799
- b.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${m}%`) : b.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-block-start", `${100 - m}%`);
797
+ if (f > u && (m.startsWith("left") || m.startsWith("bottom"))) {
798
+ const b = u / 2 / f * 100;
799
+ m.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${b}%`) : m.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-block-start", `${100 - b}%`);
800
800
  }
801
- if (b === "right" || b === "left")
802
- e.style.insetBlockStart = `${i + s / 2}px`;
803
- else if (b === "right-start" || b === "left-start") {
804
- const m = i + f;
805
- e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${m > d ? d : m}px`;
806
- } else if (b === "right-end" || b === "left-end") {
807
- const m = x - f;
808
- e.style.insetBlockStart = `${m < 0 ? 0 : m}px`, e.style.insetBlockEnd = `${x}px`;
809
- } else if (b === "top" || b === "bottom")
810
- e.style.insetInlineStart = `${k + u / 2}px`;
811
- else if (b === "top-start" || b === "bottom-start") {
812
- const m = k + g;
813
- e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${m > c ? c : m}px`;
814
- } else if (b === "top-end" || b === "bottom-end") {
815
- const m = k - g;
816
- e.style.insetInlineStart = `${h - g}px`, e.style.insetInlineEnd = `${m < 0 ? 0 : m}px`;
801
+ if (m === "right" || m === "left")
802
+ e.style.insetBlockStart = `${i + u / 2}px`;
803
+ else if (m === "right-start" || m === "left-start") {
804
+ const b = i + f;
805
+ e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${b > d ? d : b}px`;
806
+ } else if (m === "right-end" || m === "left-end") {
807
+ const b = $ - f;
808
+ e.style.insetBlockStart = `${b < 0 ? 0 : b}px`, e.style.insetBlockEnd = `${$}px`;
809
+ } else if (m === "top" || m === "bottom")
810
+ e.style.insetInlineStart = `${k + c / 2}px`;
811
+ else if (m === "top-start" || m === "bottom-start") {
812
+ const b = k + g;
813
+ e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${b > s ? s : b}px`;
814
+ } else if (m === "top-end" || m === "bottom-end") {
815
+ const b = k - g;
816
+ e.style.insetInlineStart = `${h - g}px`, e.style.insetInlineEnd = `${b < 0 ? 0 : b}px`;
817
817
  }
818
- if (b?.startsWith("right")) {
819
- const m = h + g;
820
- e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${m > c ? c : m}px + ${a})`;
821
- } else if (b?.startsWith("left")) {
822
- const m = k - g;
823
- e.style.insetInlineStart = `calc(${m < 0 ? 0 : m}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
824
- } else if (b?.startsWith("top")) {
825
- const m = i - f;
826
- e.style.insetBlockStart = `calc(${m < 0 ? 0 : m}px - ${a})`, e.style.insetBlockEnd = `calc(${x}px - ${a})`;
827
- } else if (b?.startsWith("bottom")) {
828
- const m = x + f;
829
- e.style.insetBlockStart = `calc(${x}px + ${a})`, e.style.insetBlockEnd = `calc(${m > d ? d : m}px + ${a})`;
818
+ if (m?.startsWith("right")) {
819
+ const b = h + g;
820
+ e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${b > s ? s : b}px + ${a})`;
821
+ } else if (m?.startsWith("left")) {
822
+ const b = k - g;
823
+ e.style.insetInlineStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
824
+ } else if (m?.startsWith("top")) {
825
+ const b = i - f;
826
+ e.style.insetBlockStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetBlockEnd = `calc(${$}px - ${a})`;
827
+ } else if (m?.startsWith("bottom")) {
828
+ const b = $ + f;
829
+ e.style.insetBlockStart = `calc(${$}px + ${a})`, e.style.insetBlockEnd = `calc(${b > d ? d : b}px + ${a})`;
830
830
  }
831
- e.style.position = "fixed", e.dataset.correctedPlacement = b;
831
+ e.style.position = "fixed", e.dataset.correctedPlacement = m;
832
832
  }, _a = ["id", "data-width"], et = /* @__PURE__ */ W({
833
833
  __name: "custom-select-dropdown",
834
834
  props: {
@@ -876,13 +876,13 @@ const Ja = (e) => {
876
876
  },
877
877
  emits: ["update:checked"],
878
878
  setup(e, { emit: t }) {
879
- const l = t, a = e, i = o(void 0), s = o(!1), u = o(null);
879
+ const l = t, a = e, i = o(void 0), u = o(!1), c = o(null);
880
880
  Y(() => {
881
881
  i.value = a.id ?? `custom-select-list-item-${Q()}`;
882
882
  }), C(
883
883
  () => [a.isGroupTitle, a.showDivider],
884
884
  () => {
885
- s.value = !!(a.isGroupTitle || a.showDivider);
885
+ u.value = !!(a.isGroupTitle || a.showDivider);
886
886
  },
887
887
  {
888
888
  immediate: !0,
@@ -898,7 +898,7 @@ const Ja = (e) => {
898
898
  }
899
899
  return (h, k) => (v(), y("li", {
900
900
  ref_key: "_ref",
901
- ref: u,
901
+ ref: c,
902
902
  id: i.value,
903
903
  class: U(
904
904
  n(O)("db-custom-select-list-item", a.class, {
@@ -906,7 +906,7 @@ const Ja = (e) => {
906
906
  "db-radio": e.type !== "checkbox" && !e.isGroupTitle
907
907
  })
908
908
  ),
909
- "data-divider": n(V)(s.value)
909
+ "data-divider": n(V)(u.value)
910
910
  }, [
911
911
  e.isGroupTitle ? (v(), y("span", lt, B(e.groupTitle), 1)) : (v(), y("label", {
912
912
  key: 0,
@@ -923,7 +923,7 @@ const Ja = (e) => {
923
923
  checked: n(q)(e.checked, "checked"),
924
924
  disabled: n(q)(e.disabled, "disabled"),
925
925
  value: e.value,
926
- onChange: k[0] || (k[0] = async (x) => f(x))
926
+ onChange: k[0] || (k[0] = async ($) => f($))
927
927
  }, null, 40, it),
928
928
  e.label ? (v(), y(H, { key: 0 }, [
929
929
  D(B(e.label), 1)
@@ -1024,12 +1024,12 @@ const Ja = (e) => {
1024
1024
  },
1025
1025
  emits: ["update:value"],
1026
1026
  setup(e, { emit: t }) {
1027
- const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(void 0), b = o(""), c = o(void 0), d = o(null);
1027
+ const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), m = o(""), s = o(void 0), d = o(null);
1028
1028
  Y(() => {
1029
1029
  const N = a.id ?? `input-${Q()}`;
1030
- i.value = N, s.value = N + ce, u.value = N + re, f.value = N + ve, h.value = N + Qe, g.value = a.invalidMessage || ee;
1031
- }), ge(() => {
1032
- c.value?.abort();
1030
+ i.value = N, u.value = N + ce, c.value = N + re, f.value = N + ve, h.value = N + Qe, g.value = a.invalidMessage || ee;
1031
+ }), he(() => {
1032
+ s.value?.abort();
1033
1033
  }), C(
1034
1034
  () => [d.value, a.invalidMessage],
1035
1035
  () => {
@@ -1044,7 +1044,7 @@ const Ja = (e) => {
1044
1044
  () => {
1045
1045
  if (i.value) {
1046
1046
  const N = i.value + ce;
1047
- s.value = N, u.value = i.value + re, f.value = i.value + ve, h.value = a.dataListId ?? i.value + Qe, _(a.message, a.showMessage) && (k.value = N), I();
1047
+ u.value = N, c.value = i.value + re, f.value = i.value + ve, h.value = a.dataListId ?? i.value + Qe, _(a.message, a.showMessage) && (k.value = N), I();
1048
1048
  }
1049
1049
  },
1050
1050
  {
@@ -1054,7 +1054,7 @@ const Ja = (e) => {
1054
1054
  ), C(
1055
1055
  () => [a.value],
1056
1056
  () => {
1057
- x.value = a.value;
1057
+ $.value = a.value;
1058
1058
  },
1059
1059
  {
1060
1060
  immediate: !0,
@@ -1064,8 +1064,8 @@ const Ja = (e) => {
1064
1064
  () => [d.value],
1065
1065
  () => {
1066
1066
  if (d.value) {
1067
- let X = c.value;
1068
- X || (X = new AbortController(), c.value = X), Ue(
1067
+ let X = s.value;
1068
+ X || (X = new AbortController(), s.value = X), Ue(
1069
1069
  d.value,
1070
1070
  {
1071
1071
  value: a.value,
@@ -1083,14 +1083,14 @@ const Ja = (e) => {
1083
1083
  flush: "post"
1084
1084
  }
1085
1085
  );
1086
- function m() {
1086
+ function b() {
1087
1087
  return !!(a.validMessage ?? a.validation === "valid");
1088
1088
  }
1089
1089
  function I() {
1090
- !d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || d.value?.validationMessage || ee, ue() && (b.value = g.value, K(() => b.value = "", 1e3))) : m() && d.value?.validity.valid && (a.required || a.minLength || a.maxLength || a.pattern) ? (k.value = u.value, ue() && (b.value = a.validMessage ?? se, K(() => b.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = s.value : k.value = void 0;
1090
+ !d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || d.value?.validationMessage || ee, ue() && (m.value = g.value, K(() => m.value = "", 1e3))) : b() && d.value?.validity.valid && (a.required || a.minLength || a.maxLength || a.pattern) ? (k.value = c.value, ue() && (m.value = a.validMessage ?? se, K(() => m.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : k.value = void 0;
1091
1091
  }
1092
1092
  function T(N, X) {
1093
- a.input && a.input(N), x.value = N.target.value, a.onInput && a.onInput(N), de(l, N), I();
1093
+ a.input && a.input(N), $.value = N.target.value, a.onInput && a.onInput(N), de(l, N), I();
1094
1094
  }
1095
1095
  function w(N, X) {
1096
1096
  a.onChange && a.onChange(N), de(l, N), I();
@@ -1135,7 +1135,7 @@ const Ja = (e) => {
1135
1135
  disabled: n(q)(e.disabled, "disabled"),
1136
1136
  required: n(q)(e.required, "required"),
1137
1137
  step: n(ke)(e.step),
1138
- value: e.value ?? x.value,
1138
+ value: e.value ?? $.value,
1139
1139
  maxLength: n(ke)(e.maxLength, e.maxlength),
1140
1140
  minLength: n(ke)(e.minLength, e.minlength),
1141
1141
  max: n(Ze)(e.max, e.type),
@@ -1162,7 +1162,7 @@ const Ja = (e) => {
1162
1162
  key: 0,
1163
1163
  id: h.value
1164
1164
  }, [
1165
- (v(!0), y(H, null, he(M(), (A) => (v(), y("option", {
1165
+ (v(!0), y(H, null, ge(M(), (A) => (v(), y("option", {
1166
1166
  key: h.value + "-option-" + A.value,
1167
1167
  value: A.value
1168
1168
  }, B(A.label), 9, vt))), 128))
@@ -1172,17 +1172,17 @@ const Ja = (e) => {
1172
1172
  key: 1,
1173
1173
  size: e.messageSize || "small",
1174
1174
  icon: e.messageIcon,
1175
- id: s.value
1175
+ id: u.value
1176
1176
  }, {
1177
1177
  default: G(() => [
1178
1178
  D(B(e.message), 1)
1179
1179
  ]),
1180
1180
  _: 1
1181
1181
  }, 8, ["size", "icon", "id"])) : z("", !0),
1182
- m() ? (v(), J(Z, {
1182
+ b() ? (v(), J(Z, {
1183
1183
  key: 2,
1184
1184
  semantic: "successful",
1185
- id: u.value,
1185
+ id: c.value,
1186
1186
  size: e.validMessageSize || "small"
1187
1187
  }, {
1188
1188
  default: G(() => [
@@ -1200,7 +1200,7 @@ const Ja = (e) => {
1200
1200
  ]),
1201
1201
  _: 1
1202
1202
  }, 8, ["id", "size"]),
1203
- E("span", ft, B(b.value), 1)
1203
+ E("span", ft, B(m.value), 1)
1204
1204
  ], 10, st));
1205
1205
  }
1206
1206
  }), gt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ W({
@@ -1220,20 +1220,20 @@ const Ja = (e) => {
1220
1220
  width: { default: void 0 }
1221
1221
  },
1222
1222
  setup(e) {
1223
- const t = e, l = o(Ie), a = o(!1), i = o(void 0), s = o(void 0), u = o(null);
1223
+ const t = e, l = o(Ie), a = o(!1), i = o(void 0), u = o(void 0), c = o(null);
1224
1224
  Y(() => {
1225
1225
  l.value = t.id || "tooltip-" + Q(), a.value = !0;
1226
1226
  }), C(
1227
- () => [u.value, a.value],
1227
+ () => [c.value, a.value],
1228
1228
  () => {
1229
- if (u.value && a.value && l.value) {
1229
+ if (c.value && a.value && l.value) {
1230
1230
  const d = h();
1231
- d && (["mouseenter", "focusin"].forEach((m) => {
1232
- d.addEventListener(m, () => c(d));
1233
- }), d.addEventListener("keydown", (m) => g(m)), ["mouseleave", "focusout"].forEach((m) => {
1234
- d.addEventListener(m, () => b());
1235
- }), d.dataset.hasTooltip = "true", t.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((m) => {
1236
- const I = m.find(({ target: T }) => T === h());
1231
+ d && (["mouseenter", "focusin"].forEach((b) => {
1232
+ d.addEventListener(b, () => s(d));
1233
+ }), d.addEventListener("keydown", (b) => g(b)), ["mouseleave", "focusout"].forEach((b) => {
1234
+ d.addEventListener(b, () => m());
1235
+ }), d.dataset.hasTooltip = "true", t.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((b) => {
1236
+ const I = b.find(({ target: T }) => T === h());
1237
1237
  I && !I.isIntersecting && g(!1);
1238
1238
  })), a.value = !1;
1239
1239
  }
@@ -1247,40 +1247,40 @@ const Ja = (e) => {
1247
1247
  d.stopPropagation();
1248
1248
  }
1249
1249
  function g(d) {
1250
- (!d || d.key === "Escape") && u.value && getComputedStyle(u.value).visibility === "visible" && h().blur();
1250
+ (!d || d.key === "Escape") && c.value && getComputedStyle(c.value).visibility === "visible" && h().blur();
1251
1251
  }
1252
1252
  function h() {
1253
- let d = u.value.parentElement;
1253
+ let d = c.value.parentElement;
1254
1254
  return d && d.localName.includes("tooltip") && (d = d.parentElement), d;
1255
1255
  }
1256
1256
  function k(d) {
1257
- d && u.value && K(() => {
1258
- u.value && ua(
1259
- u.value,
1257
+ d && c.value && K(() => {
1258
+ c.value && ua(
1259
+ c.value,
1260
1260
  d,
1261
1261
  t.placement ?? "bottom"
1262
1262
  );
1263
1263
  }, 1);
1264
1264
  }
1265
- function x(d, m) {
1266
- d?.target?.contains && d?.target?.contains(u.value) && k(m);
1265
+ function $(d, b) {
1266
+ d?.target?.contains && d?.target?.contains(c.value) && k(b);
1267
1267
  }
1268
- function b() {
1268
+ function m() {
1269
1269
  i.value && new oe().removeCallback(
1270
1270
  i.value
1271
- ), s.value?.unobserve(h());
1271
+ ), u.value?.unobserve(h());
1272
1272
  }
1273
- function c(d) {
1273
+ function s(d) {
1274
1274
  i.value = new oe().addCallback(
1275
- (m) => x(m, d)
1276
- ), k(d), s.value?.observe(h());
1275
+ (b) => $(b, d)
1276
+ ), k(d), u.value?.observe(h());
1277
1277
  }
1278
- return (d, m) => (v(), y("i", {
1278
+ return (d, b) => (v(), y("i", {
1279
1279
  role: "tooltip",
1280
1280
  "aria-hidden": "true",
1281
1281
  "data-gap": "true",
1282
1282
  ref_key: "_ref",
1283
- ref: u,
1283
+ ref: c,
1284
1284
  class: U(n(O)("db-tooltip", t.class)),
1285
1285
  id: l.value,
1286
1286
  "data-emphasis": e.emphasis,
@@ -1289,7 +1289,7 @@ const Ja = (e) => {
1289
1289
  "data-width": e.width,
1290
1290
  "data-show-arrow": n(V)(e.showArrow ?? !0),
1291
1291
  "data-placement": e.placement,
1292
- onClick: m[0] || (m[0] = async (I) => f(I))
1292
+ onClick: b[0] || (b[0] = async (I) => f(I))
1293
1293
  }, [
1294
1294
  F(d.$slots, "default")
1295
1295
  ], 10, gt));
@@ -1319,13 +1319,13 @@ const Ja = (e) => {
1319
1319
  },
1320
1320
  setup(e) {
1321
1321
  const t = e, l = o(null);
1322
- function a(s) {
1323
- s && (s.stopPropagation(), t.onRemove && t.onRemove(s));
1322
+ function a(u) {
1323
+ u && (u.stopPropagation(), t.onRemove && t.onRemove(u));
1324
1324
  }
1325
1325
  function i() {
1326
1326
  return t.removeButton ? t.removeButton : aa;
1327
1327
  }
1328
- return (s, u) => (v(), y("div", {
1328
+ return (u, c) => (v(), y("div", {
1329
1329
  ref_key: "_ref",
1330
1330
  ref: l,
1331
1331
  id: e.id,
@@ -1338,8 +1338,8 @@ const Ja = (e) => {
1338
1338
  "data-no-text": n(V)(e.noText),
1339
1339
  "data-overflow": n(V)(e.overflow)
1340
1340
  }, [
1341
- F(s.$slots, "content"),
1342
- F(s.$slots, "default"),
1341
+ F(u.$slots, "content"),
1342
+ F(u.$slots, "default"),
1343
1343
  e.text ? (v(), y(H, { key: 0 }, [
1344
1344
  D(B(e.text), 1)
1345
1345
  ], 64)) : z("", !0),
@@ -1351,7 +1351,7 @@ const Ja = (e) => {
1351
1351
  "data-no-text": "true",
1352
1352
  "data-variant": "ghost",
1353
1353
  type: "button",
1354
- onClick: u[0] || (u[0] = async (f) => a(f))
1354
+ onClick: c[0] || (c[0] = async (f) => a(f))
1355
1355
  }, [
1356
1356
  te(ca, { variant: "label" }, {
1357
1357
  default: G(() => [
@@ -1365,7 +1365,7 @@ const Ja = (e) => {
1365
1365
  }), yt = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], kt = ["id"], wt = ["id", "form", "name", "multiple", "disabled", "required"], St = ["disabled", "value"], Bt = ["open"], pt = ["id", "aria-disabled", "aria-labelledby"], Lt = ["data-visually-hidden", "id"], It = {
1366
1366
  key: 0,
1367
1367
  "data-visually-hidden": "true"
1368
- }, $t = { key: 1 }, xt = { key: 0 }, Tt = { key: 0 }, Ct = { class: "db-checkbox db-custom-select-list-item" }, Et = ["form", "checked"], At = ["aria-hidden", "id"], Dt = {
1368
+ }, xt = { key: 1 }, $t = { key: 0 }, Tt = { key: 0 }, Ct = { class: "db-checkbox db-custom-select-list-item" }, Et = ["form", "checked"], At = ["aria-hidden", "id"], Dt = {
1369
1369
  "data-visually-hidden": "true",
1370
1370
  role: "status"
1371
1371
  }, hl = /* @__PURE__ */ W({
@@ -1434,23 +1434,23 @@ const Ja = (e) => {
1434
1434
  },
1435
1435
  emits: ["update:values"],
1436
1436
  setup(e, { emit: t }) {
1437
- const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), x = o(void 0), b = o(void 0), c = o(void 0), d = o("no-validation"), m = o(!1), I = o(void 0), T = o(void 0), w = o(""), L = o(void 0), S = o(""), M = o([]), N = o(!1), X = o(!1), A = o(0), R = o([]), j = o([]), pe = o(!1), me = o(void 0), Ce = o(0), Fe = o(void 0), Ne = o(void 0), Re = o(void 0), ze = o(!1), $e = o(!1), ra = o(null), P = o(null), le = o(null), Ee = o(null), Ve = o(null);
1437
+ const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), m = o(void 0), s = o(void 0), d = o("no-validation"), b = o(!1), I = o(void 0), T = o(void 0), w = o(""), L = o(void 0), S = o(""), M = o([]), N = o(!1), X = o(!1), A = o(0), R = o([]), j = o([]), pe = o(!1), me = o(void 0), Ce = o(0), Fe = o(void 0), Ne = o(void 0), Re = o(void 0), ze = o(!1), xe = o(!1), ra = o(null), P = o(null), le = o(null), Ee = o(null), Ve = o(null);
1438
1438
  Y(() => {
1439
1439
  const r = a.id ?? `custom-select-${Q()}`;
1440
- i.value = r, s.value = r + ce, u.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, x.value = r + "-summary", b.value = r + De, L.value = r + "-selected-labels", c.value = r + "-info", g.value = a.invalidMessage || ee, typeof window < "u" && "IntersectionObserver" in window && (Ne.value = new IntersectionObserver((p) => {
1440
+ i.value = r, u.value = r + ce, c.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, $.value = r + "-summary", m.value = r + De, L.value = r + "-selected-labels", s.value = r + "-info", g.value = a.invalidMessage || ee, typeof window < "u" && "IntersectionObserver" in window && (Ne.value = new IntersectionObserver((p) => {
1441
1441
  if (P.value) {
1442
- const $ = p.find(({ target: ae }) => ae === P.value);
1443
- $ && !$.isIntersecting && P.value.open && (P.value.open = !1);
1442
+ const x = p.find(({ target: ae }) => ae === P.value);
1443
+ x && !x.isIntersecting && P.value.open && (P.value.open = !1);
1444
1444
  }
1445
1445
  }));
1446
- }), ge(() => {
1446
+ }), he(() => {
1447
1447
  I.value?.abort();
1448
1448
  }), C(
1449
1449
  () => [P.value],
1450
1450
  () => {
1451
1451
  P.value && P.value.addEventListener(
1452
1452
  "focusout",
1453
- (r) => xe(r)
1453
+ (r) => $e(r)
1454
1454
  );
1455
1455
  },
1456
1456
  {
@@ -1462,7 +1462,7 @@ const Ja = (e) => {
1462
1462
  () => {
1463
1463
  if (i.value) {
1464
1464
  const r = i.value + ce;
1465
- k.value = i.value + Ye, h.value = i.value + Je, u.value = i.value + re, f.value = i.value + ve, b.value = i.value + De, _(a.message, a.showMessage) ? Le(r) : Le();
1465
+ k.value = i.value + Ye, h.value = i.value + Je, c.value = i.value + re, f.value = i.value + ve, m.value = i.value + De, _(a.message, a.showMessage) ? Le(r) : Le();
1466
1466
  }
1467
1467
  },
1468
1468
  {
@@ -1540,8 +1540,8 @@ const Ja = (e) => {
1540
1540
  Me(
1541
1541
  le.value,
1542
1542
  () => {
1543
- const $ = p || (le.value.value ? [le.value.value] : []);
1544
- Be($), Ge();
1543
+ const x = p || (le.value.value ? [le.value.value] : []);
1544
+ Be(x), Ge();
1545
1545
  },
1546
1546
  r.signal
1547
1547
  );
@@ -1563,7 +1563,7 @@ const Ja = (e) => {
1563
1563
  ), C(
1564
1564
  () => [R.value, A.value],
1565
1565
  () => {
1566
- R.value?.length === 0 ? (ze.value = !1, $e.value = !1) : R.value?.length === A.value ? ($e.value = !1, ze.value = !0) : R.value && ($e.value = !0);
1566
+ R.value?.length === 0 ? (ze.value = !1, xe.value = !1) : R.value?.length === A.value ? (xe.value = !1, ze.value = !0) : R.value && (xe.value = !0);
1567
1567
  },
1568
1568
  {
1569
1569
  immediate: !0,
@@ -1620,7 +1620,7 @@ const Ja = (e) => {
1620
1620
  w.value = p(r);
1621
1621
  return;
1622
1622
  }
1623
- a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${M.value?.length} ${xa}` : w.value = M.value?.map((r) => Se(r)).join(", ");
1623
+ a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${M.value?.length} ${$a}` : w.value = M.value?.map((r) => Se(r)).join(", ");
1624
1624
  } else
1625
1625
  w.value = "";
1626
1626
  },
@@ -1638,9 +1638,9 @@ const Ja = (e) => {
1638
1638
  flush: "post"
1639
1639
  }
1640
1640
  ), C(
1641
- () => [$e.value, Ee.value],
1641
+ () => [xe.value, Ee.value],
1642
1642
  () => {
1643
- Ee.value && (Ee.value.indeterminate = !!$e.value);
1643
+ Ee.value && (Ee.value.indeterminate = !!xe.value);
1644
1644
  },
1645
1645
  {
1646
1646
  immediate: !0,
@@ -1663,7 +1663,7 @@ const Ja = (e) => {
1663
1663
  return !!(a.validMessage ?? a.validation === "valid");
1664
1664
  }
1665
1665
  function Ge() {
1666
- le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (S.value = g.value, K(() => S.value = "", 1e3)), m.value && (d.value = a.validation ?? "invalid")) : Oe() && le.value?.validity.valid && a.required ? (Le(u.value), ue() && (S.value = a.validMessage ?? se, K(() => S.value = "", 1e3)), d.value = a.validation ?? "valid") : _(a.message, a.showMessage) ? (Le(s.value), d.value = a.validation ?? "no-validation") : (Le(b.value), d.value = a.validation ?? "no-validation");
1666
+ le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (S.value = g.value, K(() => S.value = "", 1e3)), b.value && (d.value = a.validation ?? "invalid")) : Oe() && le.value?.validity.valid && a.required ? (Le(c.value), ue() && (S.value = a.validMessage ?? se, K(() => S.value = "", 1e3)), d.value = a.validation ?? "valid") : _(a.message, a.showMessage) ? (Le(u.value), d.value = a.validation ?? "no-validation") : (Le(m.value), d.value = a.validation ?? "no-validation");
1667
1667
  }
1668
1668
  function fa(r) {
1669
1669
  a.onDropdownToggle && (r.stopPropagation(), a.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (me.value = new fe().addCallback(
@@ -1693,9 +1693,9 @@ const Ja = (e) => {
1693
1693
  return r && R.value?.includes ? R.value?.includes(r) : !1;
1694
1694
  }
1695
1695
  function ba(r) {
1696
- const p = a.removeTagsTexts, $ = a.options;
1697
- if (p && $) {
1698
- const ae = $.findIndex((ie) => ie.value === r.value);
1696
+ const p = a.removeTagsTexts, x = a.options;
1697
+ if (p && x) {
1698
+ const ae = x.findIndex((ie) => ie.value === r.value);
1699
1699
  if (ae >= 0 && ae < p.length)
1700
1700
  return p[ae];
1701
1701
  }
@@ -1768,14 +1768,14 @@ const Ja = (e) => {
1768
1768
  }
1769
1769
  }
1770
1770
  } else
1771
- p.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? (xe(void 0, !0), Te()) : Ae(p);
1771
+ p.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? ($e(void 0, !0), Te()) : Ae(p);
1772
1772
  }
1773
1773
  } else (r.key === "ArrowDown" || r.key === "ArrowRight") && (Pe(), P.value && (P.value.open = !0), He());
1774
1774
  r.stopPropagation(), r.preventDefault();
1775
1775
  }
1776
1776
  function wa(r) {
1777
1777
  if (r.stopPropagation(), r.key === "Escape" && P.value?.open)
1778
- xe(void 0, !0), Te();
1778
+ $e(void 0, !0), Te();
1779
1779
  else if (r.key === "Enter" && P.value?.open) {
1780
1780
  if (self.document) {
1781
1781
  const p = self.document.activeElement;
@@ -1783,13 +1783,13 @@ const Ja = (e) => {
1783
1783
  }
1784
1784
  } else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") && ka(r);
1785
1785
  }
1786
- function xe(r, p) {
1786
+ function $e(r, p) {
1787
1787
  if (P.value) {
1788
1788
  if (p)
1789
1789
  P.value.open = !1, Te();
1790
1790
  else if (P.value.open && r && r.relatedTarget) {
1791
- const $ = r.relatedTarget;
1792
- P.value.contains($) || K(() => P.value.open = !1, 1);
1791
+ const x = r.relatedTarget;
1792
+ P.value.contains(x) || K(() => P.value.open = !1, 1);
1793
1793
  }
1794
1794
  }
1795
1795
  }
@@ -1800,7 +1800,7 @@ const Ja = (e) => {
1800
1800
  }
1801
1801
  }
1802
1802
  function Be(r) {
1803
- (/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (R.value = r, m.value = !0, a.onOptionSelected && a.onOptionSelected(r ?? []), de(
1803
+ (/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (R.value = r, b.value = !0, a.onOptionSelected && a.onOptionSelected(r ?? []), de(
1804
1804
  l,
1805
1805
  {
1806
1806
  target: {
@@ -1811,7 +1811,7 @@ const Ja = (e) => {
1811
1811
  ), Ce.value = (/* @__PURE__ */ new Date()).getTime());
1812
1812
  }
1813
1813
  function We(r) {
1814
- r && (a.multiple ? R.value?.includes(r) ? Be(R.value.filter((p) => p !== r)) : Be([...R.value || [], r]) : (Be([r]), xe(void 0, !0)));
1814
+ r && (a.multiple ? R.value?.includes(r) ? Be(R.value.filter((p) => p !== r)) : Be([...R.value || [], r]) : (Be([r]), $e(void 0, !0)));
1815
1815
  }
1816
1816
  function Ba(r) {
1817
1817
  if (r.stopPropagation(), R.value?.length === A.value)
@@ -1820,8 +1820,8 @@ const Ja = (e) => {
1820
1820
  const p = X.value && Ve.value ? Ve.value.value : void 0;
1821
1821
  Be(
1822
1822
  a.options ? a.options.filter(
1823
- ($) => !$.isGroupTitle && (!p || $.value?.toLowerCase().includes(p.toLowerCase()))
1824
- ).map(($) => $.value ?? "") : []
1823
+ (x) => !x.isGroupTitle && (!p || x.value?.toLowerCase().includes(p.toLowerCase()))
1824
+ ).map((x) => x.value ?? "") : []
1825
1825
  );
1826
1826
  }
1827
1827
  }
@@ -1833,7 +1833,7 @@ const Ja = (e) => {
1833
1833
  )
1834
1834
  );
1835
1835
  if (p.length) {
1836
- const $ = p.at(0), ae = $ === r && p.length > 1 ? p.at(1) : $;
1836
+ const x = p.at(0), ae = x === r && p.length > 1 ? p.at(1) : x;
1837
1837
  ae && K(() => {
1838
1838
  ae.focus();
1839
1839
  }, 1);
@@ -1855,13 +1855,13 @@ const Ja = (e) => {
1855
1855
  if (typeof r == "string")
1856
1856
  p = r;
1857
1857
  else {
1858
- const $ = r;
1859
- $.stopPropagation(), a.onSearch && a.onSearch($), p = $.target.value, Re.value = p;
1858
+ const x = r;
1859
+ x.stopPropagation(), a.onSearch && a.onSearch(x), p = x.target.value, Re.value = p;
1860
1860
  }
1861
1861
  !a.options || !p || p.length === 0 ? j.value = a.options : a.searchFilter ? j.value = a.options.filter(
1862
- ($) => a.searchFilter($, p)
1862
+ (x) => a.searchFilter(x, p)
1863
1863
  ) : j.value = a.options.filter(
1864
- ($) => !$.isGroupTitle && Se($).toLowerCase().includes(p.toLowerCase())
1864
+ (x) => !x.isGroupTitle && Se(x).toLowerCase().includes(p.toLowerCase())
1865
1865
  );
1866
1866
  }
1867
1867
  function pa(r) {
@@ -1904,27 +1904,27 @@ const Ja = (e) => {
1904
1904
  multiple: n(q)(e.multiple, "multiple"),
1905
1905
  disabled: n(q)(e.disabled, "disabled"),
1906
1906
  required: n(q)(e.required, "required"),
1907
- onChange: p[0] || (p[0] = async ($) => La($))
1907
+ onChange: p[0] || (p[0] = async (x) => La(x))
1908
1908
  }, [
1909
- e.options?.length ? (v(!0), y(H, { key: 0 }, he(e.options, ($, ae) => (v(), y("option", {
1909
+ e.options?.length ? (v(!0), y(H, { key: 0 }, ge(e.options, (x, ae) => (v(), y("option", {
1910
1910
  key: ae,
1911
- disabled: $.disabled,
1912
- value: $.value
1913
- }, B(Se($)), 9, St))), 128)) : z("", !0)
1911
+ disabled: x.disabled,
1912
+ value: x.value
1913
+ }, B(Se(x)), 9, St))), 128)) : z("", !0)
1914
1914
  ], 40, wt)
1915
1915
  ], 8, kt),
1916
1916
  E("details", {
1917
1917
  ref_key: "detailsRef",
1918
1918
  ref: P,
1919
1919
  open: e.open,
1920
- onToggle: p[2] || (p[2] = async ($) => fa($)),
1921
- onKeydown: p[3] || (p[3] = async ($) => wa($))
1920
+ onToggle: p[2] || (p[2] = async (x) => fa(x)),
1921
+ onKeydown: p[3] || (p[3] = async (x) => wa(x))
1922
1922
  }, [
1923
1923
  F(r.$slots, "default"),
1924
1924
  e.options ? (v(), y(H, { key: 0 }, [
1925
1925
  E("summary", {
1926
1926
  class: "db-custom-select-form-field",
1927
- id: x.value,
1927
+ id: $.value,
1928
1928
  "aria-disabled": n(V)(e.disabled),
1929
1929
  "aria-labelledby": k.value
1930
1930
  }, [
@@ -1936,16 +1936,16 @@ const Ja = (e) => {
1936
1936
  e.selectedPrefix ? (v(), y("span", It, B(e.selectedPrefix), 1)) : z("", !0),
1937
1937
  D(" " + B(w.value), 1)
1938
1938
  ], 8, Lt)) : z("", !0),
1939
- e.selectedType === "tag" ? (v(), y("div", $t, [
1940
- (v(!0), y(H, null, he(M.value, ($, ae) => (v(), J(bt, {
1939
+ e.selectedType === "tag" ? (v(), y("div", xt, [
1940
+ (v(!0), y(H, null, ge(M.value, (x, ae) => (v(), J(bt, {
1941
1941
  key: ae,
1942
1942
  emphasis: "strong",
1943
1943
  behavior: "removable",
1944
- removeButton: ba($),
1945
- onRemove: (ie) => ya($, ie)
1944
+ removeButton: ba(x),
1945
+ onRemove: (ie) => ya(x, ie)
1946
1946
  }, {
1947
1947
  default: G(() => [
1948
- D(B(Se($)), 1)
1948
+ D(B(Se(x)), 1)
1949
1949
  ]),
1950
1950
  _: 2
1951
1951
  }, 1032, ["removeButton", "onRemove"]))), 128))
@@ -1953,7 +1953,7 @@ const Ja = (e) => {
1953
1953
  ], 8, pt),
1954
1954
  te(et, { width: e.dropdownWidth }, {
1955
1955
  default: G(() => [
1956
- X.value ? (v(), y("div", xt, [
1956
+ X.value ? (v(), y("div", $t, [
1957
1957
  te(ht, {
1958
1958
  type: "search",
1959
1959
  ref_key: "searchInputRef",
@@ -1964,13 +1964,13 @@ const Ja = (e) => {
1964
1964
  value: Re.value,
1965
1965
  label: e.searchLabel ?? n(ye),
1966
1966
  placeholder: e.searchPlaceholder ?? e.searchLabel,
1967
- ariaDescribedBy: pe.value || e.showLoading ? c.value : void 0,
1968
- onInput: ($) => Xe($)
1967
+ ariaDescribedBy: pe.value || e.showLoading ? s.value : void 0,
1968
+ onInput: (x) => Xe(x)
1969
1969
  }, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
1970
1970
  ])) : z("", !0),
1971
1971
  pe.value || e.showLoading ? (v(), J(Z, {
1972
1972
  key: 1,
1973
- id: c.value,
1973
+ id: s.value,
1974
1974
  icon: e.showLoading ? "circular_arrows" : void 0,
1975
1975
  semantic: e.showLoading ? "informational" : "warning"
1976
1976
  }, {
@@ -1989,7 +1989,7 @@ const Ja = (e) => {
1989
1989
  ref: Ee,
1990
1990
  form: i.value,
1991
1991
  checked: ze.value,
1992
- onChange: p[1] || (p[1] = async ($) => Ba($))
1992
+ onChange: p[1] || (p[1] = async (x) => Ba(x))
1993
1993
  }, null, 40, Et),
1994
1994
  D(B(ga()), 1)
1995
1995
  ])
@@ -2000,22 +2000,22 @@ const Ja = (e) => {
2000
2000
  label: e.listLabel ?? e.label ?? n(ye)
2001
2001
  }, {
2002
2002
  default: G(() => [
2003
- (v(!0), y(H, null, he(j.value, ($, ae) => (v(), J(nt, {
2003
+ (v(!0), y(H, null, ge(j.value, (x, ae) => (v(), J(nt, {
2004
2004
  key: ae,
2005
2005
  type: e.multiple ? "checkbox" : "radio",
2006
- showDivider: $.showDivider,
2007
- icon: $.icon,
2008
- isGroupTitle: $.isGroupTitle,
2009
- groupTitle: Se($),
2006
+ showDivider: x.showDivider,
2007
+ icon: x.icon,
2008
+ isGroupTitle: x.isGroupTitle,
2009
+ groupTitle: Se(x),
2010
2010
  name: i.value,
2011
- checked: ma($.value),
2012
- disabled: $.disabled,
2013
- value: $.value,
2014
- onChange: (ie) => We($.value)
2011
+ checked: ma(x.value),
2012
+ disabled: x.disabled,
2013
+ value: x.value,
2014
+ onChange: (ie) => We(x.value)
2015
2015
  }, {
2016
2016
  default: G(() => [
2017
- $.isGroupTitle ? z("", !0) : (v(), y(H, { key: 0 }, [
2018
- D(B(Se($)), 1)
2017
+ x.isGroupTitle ? z("", !0) : (v(), y(H, { key: 0 }, [
2018
+ D(B(Se(x)), 1)
2019
2019
  ], 64))
2020
2020
  ]),
2021
2021
  _: 2
@@ -2032,7 +2032,7 @@ const Ja = (e) => {
2032
2032
  size: "small",
2033
2033
  name: i.value,
2034
2034
  form: i.value,
2035
- onClick: ($) => xe(void 0, !0)
2035
+ onClick: (x) => $e(void 0, !0)
2036
2036
  }, {
2037
2037
  default: G(() => [
2038
2038
  D(B(e.mobileCloseButtonText ?? n(qe)), 1)
@@ -2053,7 +2053,7 @@ const Ja = (e) => {
2053
2053
  noText: !0,
2054
2054
  name: i.value,
2055
2055
  form: i.value,
2056
- onClick: ($) => pa($)
2056
+ onClick: (x) => pa(x)
2057
2057
  }, {
2058
2058
  default: G(() => [
2059
2059
  D(B(e.clearSelectionText), 1),
@@ -2069,13 +2069,13 @@ const Ja = (e) => {
2069
2069
  E("span", {
2070
2070
  class: "db-custom-select-placeholder",
2071
2071
  "aria-hidden": n(V)(!0),
2072
- id: b.value
2072
+ id: m.value
2073
2073
  }, B(e.placeholder ?? e.label), 9, At),
2074
2074
  n(_)(e.message, e.showMessage) ? (v(), J(Z, {
2075
2075
  key: 1,
2076
2076
  size: "small",
2077
2077
  icon: e.messageIcon,
2078
- id: s.value
2078
+ id: u.value
2079
2079
  }, {
2080
2080
  default: G(() => [
2081
2081
  D(B(e.message), 1)
@@ -2086,7 +2086,7 @@ const Ja = (e) => {
2086
2086
  key: 2,
2087
2087
  size: "small",
2088
2088
  semantic: "successful",
2089
- id: u.value
2089
+ id: c.value
2090
2090
  }, {
2091
2091
  default: G(() => [
2092
2092
  D(B(e.validMessage || n(se)), 1)
@@ -2177,11 +2177,11 @@ const Ja = (e) => {
2177
2177
  setup(e) {
2178
2178
  const t = e, l = o(!1), a = o(null), i = o(null);
2179
2179
  Y(() => {
2180
- u(), l.value = !0;
2180
+ c(), l.value = !0;
2181
2181
  }), C(
2182
2182
  () => [t.open],
2183
2183
  () => {
2184
- u();
2184
+ c();
2185
2185
  },
2186
2186
  {
2187
2187
  immediate: !0,
@@ -2200,10 +2200,10 @@ const Ja = (e) => {
2200
2200
  flush: "post"
2201
2201
  }
2202
2202
  );
2203
- function s(f, g) {
2203
+ function u(f, g) {
2204
2204
  f && (Ra(f) ? f.key === "Escape" && (f.preventDefault(), t.onClose && t.onClose(f)) : (g && (f.stopPropagation(), t.onClose && t.onClose(f)), f.target?.nodeName === "DIALOG" && f.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(f)));
2205
2205
  }
2206
- function u() {
2206
+ function c() {
2207
2207
  if (a.value) {
2208
2208
  const f = !!t.open;
2209
2209
  f && !a.value.open && (i.value && (i.value.hidden = !1), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? a.value.show() : a.value.showModal()), !f && a.value.open && (i.value && (i.value.hidden = !0), K(() => {
@@ -2216,8 +2216,8 @@ const Ja = (e) => {
2216
2216
  id: e.id,
2217
2217
  ref_key: "_ref",
2218
2218
  ref: a,
2219
- onClick: g[0] || (g[0] = async (h) => s(h)),
2220
- onKeydown: g[1] || (g[1] = async (h) => s(h)),
2219
+ onClick: g[0] || (g[0] = async (h) => u(h)),
2220
+ onKeydown: g[1] || (g[1] = async (h) => u(h)),
2221
2221
  "data-position": e.position,
2222
2222
  "data-backdrop": e.backdrop,
2223
2223
  "data-direction": e.direction,
@@ -2242,7 +2242,7 @@ const Ja = (e) => {
2242
2242
  variant: "ghost",
2243
2243
  id: e.closeButtonId,
2244
2244
  noText: !0,
2245
- onClick: (h) => s(h, !0)
2245
+ onClick: (h) => u(h, !0)
2246
2246
  }, {
2247
2247
  default: G(() => [
2248
2248
  D(B(e.closeButtonText ?? n(qe)), 1)
@@ -2311,18 +2311,18 @@ class Ot {
2311
2311
  if (!this.triangleData)
2312
2312
  return;
2313
2313
  if (t === "fill-gap") {
2314
- const u = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, f = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
2314
+ const c = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, f = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
2315
2315
  return {
2316
- lb: `${f} ${u}`,
2316
+ lb: `${f} ${c}`,
2317
2317
  lt: `${f} 0`,
2318
2318
  rt: "100% 0",
2319
- rb: `100% ${u}`
2319
+ rb: `100% ${c}`
2320
2320
  };
2321
2321
  }
2322
- const l = this.getTriangleTipX(), a = this.getTriangleTipY(), i = `${l}px ${a}px`, s = `${l}px ${a}px`;
2322
+ const l = this.getTriangleTipX(), a = this.getTriangleTipY(), i = `${l}px ${a}px`, u = `${l}px ${a}px`;
2323
2323
  return {
2324
2324
  lb: i,
2325
- lt: s,
2325
+ lt: u,
2326
2326
  rt: "100% 0",
2327
2327
  rb: "100% 100%"
2328
2328
  };
@@ -2335,7 +2335,7 @@ class Ot {
2335
2335
  a && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`), l && (this.triangleData = void 0));
2336
2336
  }
2337
2337
  }
2338
- const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-navigation-bar" }, Yt = { class: "db-header-brand-container" }, Jt = { class: "db-header-navigation-container" }, Qt = { class: "db-header-navigation" }, Zt = { class: "db-header-primary-action" }, _t = { class: "db-header-action-container" }, ei = { class: "db-header-burger-menu-container" }, ai = { class: "db-header-secondary-action" }, $l = /* @__PURE__ */ W({
2338
+ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-navigation-bar" }, Yt = { class: "db-header-brand-container" }, Jt = { class: "db-header-navigation-container" }, Qt = { class: "db-header-navigation" }, Zt = { class: "db-header-primary-action" }, _t = { class: "db-header-action-container" }, ei = { class: "db-header-burger-menu-container" }, ai = { class: "db-header-secondary-action" }, xl = /* @__PURE__ */ W({
2339
2339
  __name: "header",
2340
2340
  props: {
2341
2341
  brand: {},
@@ -2373,12 +2373,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2373
2373
  flush: "post"
2374
2374
  }
2375
2375
  );
2376
- function s(f) {
2376
+ function u(f) {
2377
2377
  const g = !q(t.drawerOpen, "drawerOpen");
2378
2378
  t.onToggle && t.onToggle(g);
2379
2379
  }
2380
- function u(f) {
2381
- Ut(f) && s();
2380
+ function c(f) {
2381
+ Ut(f) && u();
2382
2382
  }
2383
2383
  return (f, g) => (v(), y("header", {
2384
2384
  ref_key: "_ref",
@@ -2395,13 +2395,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2395
2395
  closeButtonId: e.closeButtonId,
2396
2396
  closeButtonText: e.closeButtonText,
2397
2397
  open: n(q)(e.drawerOpen),
2398
- onClose: (h) => s()
2398
+ onClose: (h) => u()
2399
2399
  }, {
2400
2400
  default: G(() => [
2401
2401
  E("div", Wt, [
2402
2402
  E("div", {
2403
2403
  class: "db-header-navigation",
2404
- onClick: g[0] || (g[0] = async (h) => u(h))
2404
+ onClick: g[0] || (g[0] = async (h) => c(h))
2405
2405
  }, [
2406
2406
  F(f.$slots, "default")
2407
2407
  ]),
@@ -2436,7 +2436,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2436
2436
  icon: "menu",
2437
2437
  variant: "ghost",
2438
2438
  noText: !0,
2439
- onClick: (h) => s()
2439
+ onClick: (h) => u()
2440
2440
  }, {
2441
2441
  default: G(() => [
2442
2442
  D(B(e.burgerMenuLabel ?? n(Ta)), 1)
@@ -2451,7 +2451,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2451
2451
  ])
2452
2452
  ], 10, Gt));
2453
2453
  }
2454
- }), ti = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], xl = /* @__PURE__ */ W({
2454
+ }), ti = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], $l = /* @__PURE__ */ W({
2455
2455
  __name: "icon",
2456
2456
  props: {
2457
2457
  variant: { default: void 0 },
@@ -2528,7 +2528,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2528
2528
  function a(i) {
2529
2529
  t.onClick && t.onClick(i);
2530
2530
  }
2531
- return (i, s) => (v(), y("a", {
2531
+ return (i, u) => (v(), y("a", {
2532
2532
  ref_key: "_ref",
2533
2533
  ref: l,
2534
2534
  id: e.id,
@@ -2545,7 +2545,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2545
2545
  "data-variant": e.variant,
2546
2546
  "data-content": e.content || "internal",
2547
2547
  "data-wrap": n(V)(e.wrap),
2548
- onClick: s[0] || (s[0] = async (u) => a(u))
2548
+ onClick: u[0] || (u[0] = async (c) => a(c))
2549
2549
  }, [
2550
2550
  e.text ? (v(), y(H, { key: 0 }, [
2551
2551
  D(B(e.text), 1)
@@ -2565,7 +2565,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2565
2565
  const t = e, l = o(Ie), a = o(null);
2566
2566
  return Y(() => {
2567
2567
  l.value = t.id || "navigation-" + Q();
2568
- }), (i, s) => (v(), y("nav", {
2568
+ }), (i, u) => (v(), y("nav", {
2569
2569
  ref_key: "_ref",
2570
2570
  ref: a,
2571
2571
  id: l.value,
@@ -2601,7 +2601,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2601
2601
  text: { default: void 0 }
2602
2602
  },
2603
2603
  setup(e) {
2604
- const t = e, l = o(!1), a = o(!1), i = o(!0), s = o(!1), u = o(!1), f = o(
2604
+ const t = e, l = o(!1), a = o(!1), i = o(!0), u = o(!1), c = o(!1), f = o(
2605
2605
  "sub-navigation-" + Q()
2606
2606
  ), g = o(void 0), h = o(null);
2607
2607
  Y(() => {
@@ -2609,7 +2609,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2609
2609
  }), C(
2610
2610
  () => [t.subNavigationExpanded],
2611
2611
  () => {
2612
- t.subNavigationExpanded !== void 0 && (s.value = !!q(
2612
+ t.subNavigationExpanded !== void 0 && (u.value = !!q(
2613
2613
  t.subNavigationExpanded,
2614
2614
  "subNavigationExpanded"
2615
2615
  ));
@@ -2622,10 +2622,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2622
2622
  () => [l.value, h.value],
2623
2623
  () => {
2624
2624
  if (l.value && h.value) {
2625
- const c = h.value.querySelector("menu");
2626
- c && (c.children?.length > 0 ? (a.value = !0, g.value || (g.value = new Ot(
2625
+ const s = h.value.querySelector("menu");
2626
+ s && (s.children?.length > 0 ? (a.value = !0, g.value || (g.value = new Ot(
2627
2627
  h.value,
2628
- c
2628
+ s
2629
2629
  ))) : i.value = !1);
2630
2630
  }
2631
2631
  },
@@ -2634,24 +2634,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2634
2634
  flush: "post"
2635
2635
  }
2636
2636
  );
2637
- function k(c) {
2638
- c?.target?.nodeName === "A" && (u.value = !0, K(() => {
2639
- u.value = !1;
2637
+ function k(s) {
2638
+ s?.target?.nodeName === "A" && (c.value = !0, K(() => {
2639
+ c.value = !1;
2640
2640
  }, 1e3));
2641
2641
  }
2642
- function x(c) {
2643
- t.onClick && (c.stopPropagation(), t.onClick(c)), a.value && (s.value = !0);
2642
+ function $(s) {
2643
+ t.onClick && (s.stopPropagation(), t.onClick(s)), a.value && (u.value = !0);
2644
2644
  }
2645
- function b(c) {
2646
- c.stopPropagation(), s.value = !1;
2645
+ function m(s) {
2646
+ s.stopPropagation(), u.value = !1;
2647
2647
  }
2648
- return (c, d) => (v(), y("li", {
2648
+ return (s, d) => (v(), y("li", {
2649
2649
  ref_key: "_ref",
2650
2650
  ref: h,
2651
2651
  id: e.id,
2652
- onMouseover: d[2] || (d[2] = async (m) => g.value?.enableFollow()),
2653
- onMouseleave: d[3] || (d[3] = async (m) => g.value?.disableFollow()),
2654
- onMousemove: d[4] || (d[4] = async (m) => g.value?.followByMouseEvent(m)),
2652
+ onMouseover: d[2] || (d[2] = async (b) => g.value?.enableFollow()),
2653
+ onMouseleave: d[3] || (d[3] = async (b) => g.value?.disableFollow()),
2654
+ onMousemove: d[4] || (d[4] = async (b) => g.value?.followByMouseEvent(b)),
2655
2655
  class: U(n(O)("db-navigation-item", t.class)),
2656
2656
  "data-width": e.width,
2657
2657
  "data-icon": e.icon,
@@ -2663,40 +2663,40 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2663
2663
  i.value ? z("", !0) : (v(), y(H, { key: 0 }, [
2664
2664
  e.text ? (v(), y(H, { key: 0 }, [
2665
2665
  D(B(e.text), 1)
2666
- ], 64)) : F(c.$slots, "default", { key: 1 })
2666
+ ], 64)) : F(s.$slots, "default", { key: 1 })
2667
2667
  ], 64)),
2668
2668
  i.value ? (v(), y(H, { key: 1 }, [
2669
2669
  E("button", {
2670
2670
  class: "db-navigation-item-expand-button",
2671
2671
  "aria-haspopup": a.value,
2672
- "aria-expanded": s.value,
2672
+ "aria-expanded": u.value,
2673
2673
  disabled: n(q)(e.disabled, "disabled"),
2674
- onClick: d[0] || (d[0] = async (m) => x(m))
2674
+ onClick: d[0] || (d[0] = async (b) => $(b))
2675
2675
  }, [
2676
2676
  e.text ? (v(), y(H, { key: 0 }, [
2677
2677
  D(B(e.text), 1)
2678
- ], 64)) : F(c.$slots, "default", { key: 1 })
2678
+ ], 64)) : F(s.$slots, "default", { key: 1 })
2679
2679
  ], 8, oi),
2680
2680
  E("menu", {
2681
2681
  class: "db-sub-navigation",
2682
- "data-force-close": u.value,
2682
+ "data-force-close": c.value,
2683
2683
  id: f.value,
2684
- onClick: d[1] || (d[1] = async (m) => k(m))
2684
+ onClick: d[1] || (d[1] = async (b) => k(b))
2685
2685
  }, [
2686
2686
  a.value ? (v(), y("div", si, [
2687
2687
  te(we, {
2688
2688
  icon: "arrow_left",
2689
2689
  variant: "ghost",
2690
2690
  id: e.backButtonId,
2691
- onClick: (m) => b(m)
2691
+ onClick: (b) => m(b)
2692
2692
  }, {
2693
2693
  default: G(() => [
2694
- D(B(e.backButtonText ?? n($a)), 1)
2694
+ D(B(e.backButtonText ?? n(xa)), 1)
2695
2695
  ]),
2696
2696
  _: 1
2697
2697
  }, 8, ["id", "onClick"])
2698
2698
  ])) : z("", !0),
2699
- F(c.$slots, "sub-navigation")
2699
+ F(s.$slots, "sub-navigation")
2700
2700
  ], 8, di)
2701
2701
  ], 64)) : z("", !0)
2702
2702
  ], 42, ni));
@@ -2736,7 +2736,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2736
2736
  function a(i) {
2737
2737
  i && (i.stopPropagation(), t.onClose && t.onClose(i));
2738
2738
  }
2739
- return (i, s) => (v(), y("article", {
2739
+ return (i, u) => (v(), y("article", {
2740
2740
  ref_key: "_ref",
2741
2741
  ref: l,
2742
2742
  id: e.id,
@@ -2764,7 +2764,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2764
2764
  size: "small",
2765
2765
  id: e.closeButtonId,
2766
2766
  noText: !0,
2767
- onClick: (u) => a(u)
2767
+ onClick: (c) => a(c)
2768
2768
  }, {
2769
2769
  default: G(() => [
2770
2770
  D(B(e.closeButtonText ?? n(qe)), 1)
@@ -2794,9 +2794,9 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2794
2794
  l.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
2795
2795
  l.value = !0;
2796
2796
  }) : l.value = !0;
2797
- }), ge(() => {
2797
+ }), he(() => {
2798
2798
  typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
2799
- }), (i, s) => (v(), y("div", {
2799
+ }), (i, u) => (v(), y("div", {
2800
2800
  ref_key: "_ref",
2801
2801
  ref: a,
2802
2802
  id: e.id,
@@ -2832,25 +2832,25 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2832
2832
  width: { default: void 0 }
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, l = o(!1), a = o(!1), i = o(void 0), s = o(void 0), u = o(null);
2835
+ const t = e, l = o(!1), a = o(!1), i = o(void 0), u = o(void 0), c = o(null);
2836
2836
  Y(() => {
2837
2837
  l.value = !0;
2838
2838
  }), C(
2839
- () => [u.value, l.value],
2839
+ () => [c.value, l.value],
2840
2840
  () => {
2841
- if (u.value && l.value) {
2841
+ if (c.value && l.value) {
2842
2842
  l.value = !1;
2843
- const c = b();
2844
- c && (c.ariaHasPopup = "true"), g(), u.value.addEventListener(
2843
+ const s = m();
2844
+ s && (s.ariaHasPopup = "true"), g(), c.value.addEventListener(
2845
2845
  "keydown",
2846
2846
  (d) => f(d)
2847
2847
  ), ["mouseenter", "focusin"].forEach((d) => {
2848
- u.value.addEventListener(d, () => k());
2848
+ c.value.addEventListener(d, () => k());
2849
2849
  }), ["mouseleave", "focusout"].forEach((d) => {
2850
- u.value.addEventListener(d, () => x());
2851
- }), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((d) => {
2852
- const m = d.find(({ target: I }) => I === b());
2853
- m && !m.isIntersecting && f(!1);
2850
+ c.value.addEventListener(d, () => $());
2851
+ }), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((d) => {
2852
+ const b = d.find(({ target: I }) => I === m());
2853
+ b && !b.isIntersecting && f(!1);
2854
2854
  }));
2855
2855
  }
2856
2856
  },
@@ -2859,11 +2859,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2859
2859
  flush: "post"
2860
2860
  }
2861
2861
  ), C(
2862
- () => [u.value, a.value],
2862
+ () => [c.value, a.value],
2863
2863
  () => {
2864
- if (u.value) {
2865
- const c = b();
2866
- c && (c.ariaExpanded = (!!a.value).toString());
2864
+ if (c.value) {
2865
+ const s = m();
2866
+ s && (s.ariaExpanded = (!!a.value).toString());
2867
2867
  }
2868
2868
  },
2869
2869
  {
@@ -2871,58 +2871,58 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2871
2871
  flush: "post"
2872
2872
  }
2873
2873
  );
2874
- function f(c) {
2875
- if (!c || c.key === "Escape")
2876
- for (const d of Array.from(u.value.children))
2874
+ function f(s) {
2875
+ if (!s || s.key === "Escape")
2876
+ for (const d of Array.from(c.value.children))
2877
2877
  d.blur();
2878
2878
  }
2879
2879
  function g() {
2880
- if (!u.value) return;
2881
- const c = u.value.querySelector("article");
2882
- c && K(() => {
2880
+ if (!c.value) return;
2881
+ const s = c.value.querySelector("article");
2882
+ s && K(() => {
2883
2883
  ua(
2884
- c,
2885
- u.value,
2884
+ s,
2885
+ c.value,
2886
2886
  t.placement ?? "bottom"
2887
2887
  );
2888
2888
  }, 1);
2889
2889
  }
2890
- function h(c) {
2891
- c?.target?.contains && c?.target?.contains(u.value) && g();
2890
+ function h(s) {
2891
+ s?.target?.contains && s?.target?.contains(c.value) && g();
2892
2892
  }
2893
2893
  function k() {
2894
2894
  a.value = !0, i.value = new oe().addCallback(
2895
2895
  (d) => h(d)
2896
2896
  ), g();
2897
- const c = b();
2898
- c && s.value?.observe(c);
2897
+ const s = m();
2898
+ s && u.value?.observe(s);
2899
2899
  }
2900
- function x(c) {
2900
+ function $(s) {
2901
2901
  {
2902
2902
  a.value = !1, i.value && new oe().removeCallback(
2903
2903
  i.value
2904
2904
  );
2905
- const d = b();
2906
- d && s.value?.unobserve(d);
2905
+ const d = m();
2906
+ d && u.value?.unobserve(d);
2907
2907
  }
2908
2908
  }
2909
- function b() {
2910
- if (u.value) {
2911
- const c = Array.from(u.value.children);
2912
- if (c.length >= 2) {
2913
- const d = c[0];
2909
+ function m() {
2910
+ if (c.value) {
2911
+ const s = Array.from(c.value.children);
2912
+ if (s.length >= 2) {
2913
+ const d = s[0];
2914
2914
  return d.tagName.includes("-") ? d.children?.length > 0 ? d.children[0] : null : d;
2915
2915
  }
2916
2916
  }
2917
2917
  return null;
2918
2918
  }
2919
- return (c, d) => (v(), y("div", {
2919
+ return (s, d) => (v(), y("div", {
2920
2920
  ref_key: "_ref",
2921
- ref: u,
2921
+ ref: c,
2922
2922
  id: e.id,
2923
2923
  class: U(n(O)("db-popover", t.class))
2924
2924
  }, [
2925
- F(c.$slots, "trigger"),
2925
+ F(s.$slots, "trigger"),
2926
2926
  E("article", {
2927
2927
  class: "db-popover-content",
2928
2928
  "data-spacing": e.spacing,
@@ -2933,7 +2933,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2933
2933
  "data-width": e.width,
2934
2934
  "data-placement": e.placement
2935
2935
  }, [
2936
- F(c.$slots, "default")
2936
+ F(s.$slots, "default")
2937
2937
  ], 8, hi)
2938
2938
  ], 10, fi));
2939
2939
  }
@@ -2968,11 +2968,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2968
2968
  },
2969
2969
  emits: ["update:value"],
2970
2970
  setup(e, { emit: t }) {
2971
- const l = t, a = e, i = o(!1), s = o(void 0), u = o(void 0), f = o(null);
2971
+ const l = t, a = e, i = o(!1), u = o(void 0), c = o(void 0), f = o(null);
2972
2972
  Y(() => {
2973
- i.value = !0, s.value = a.id ?? `radio-${Q()}`;
2974
- }), ge(() => {
2975
- u.value?.abort();
2973
+ i.value = !0, u.value = a.id ?? `radio-${Q()}`;
2974
+ }), he(() => {
2975
+ c.value?.abort();
2976
2976
  }), C(
2977
2977
  () => [i.value, f.value, a.checked],
2978
2978
  () => {
@@ -2986,23 +2986,23 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
2986
2986
  () => [f.value],
2987
2987
  () => {
2988
2988
  if (f.value) {
2989
- let b = u.value;
2990
- b || (b = new AbortController(), u.value = b), Me(
2989
+ let m = c.value;
2990
+ m || (m = new AbortController(), c.value = m), Me(
2991
2991
  f.value,
2992
- (c) => {
2992
+ (s) => {
2993
2993
  K(() => {
2994
- const d = a.checked ? a.checked : f.value.checked, m = {
2995
- ...c,
2994
+ const d = a.checked ? a.checked : f.value.checked, b = {
2995
+ ...s,
2996
2996
  target: {
2997
- ...c.target,
2997
+ ...s.target,
2998
2998
  value: "",
2999
2999
  checked: d
3000
3000
  }
3001
3001
  };
3002
- h(m), g(m);
3002
+ h(b), g(b);
3003
3003
  }, 1);
3004
3004
  },
3005
- b.signal
3005
+ m.signal
3006
3006
  );
3007
3007
  }
3008
3008
  },
@@ -3011,24 +3011,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3011
3011
  flush: "post"
3012
3012
  }
3013
3013
  );
3014
- function g(b, c) {
3015
- a.input && a.input(b), a.onInput && a.onInput(b), de(l, b);
3014
+ function g(m, s) {
3015
+ a.input && a.input(m), a.onInput && a.onInput(m), de(l, m);
3016
3016
  }
3017
- function h(b, c) {
3018
- a.onChange && a.onChange(b), de(l, b);
3017
+ function h(m, s) {
3018
+ a.onChange && a.onChange(m), de(l, m);
3019
3019
  }
3020
- function k(b) {
3021
- a.onBlur && a.onBlur(b);
3020
+ function k(m) {
3021
+ a.onBlur && a.onBlur(m);
3022
3022
  }
3023
- function x(b) {
3024
- a.onFocus && a.onFocus(b);
3023
+ function $(m) {
3024
+ a.onFocus && a.onFocus(m);
3025
3025
  }
3026
- return (b, c) => (v(), y("label", {
3026
+ return (m, s) => (v(), y("label", {
3027
3027
  "data-size": e.size,
3028
3028
  "data-hide-label": n(ne)(e.showLabel),
3029
3029
  "data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
3030
3030
  class: U(n(O)("db-radio", a.class)),
3031
- for: s.value
3031
+ for: u.value
3032
3032
  }, [
3033
3033
  E("input", {
3034
3034
  type: "radio",
@@ -3036,20 +3036,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3036
3036
  "data-custom-validity": e.validation,
3037
3037
  ref_key: "_ref",
3038
3038
  ref: f,
3039
- id: s.value,
3039
+ id: u.value,
3040
3040
  name: e.name,
3041
3041
  checked: n(q)(e.checked, "checked"),
3042
3042
  disabled: n(q)(e.disabled, "disabled"),
3043
3043
  value: e.value,
3044
3044
  required: n(q)(e.required, "required"),
3045
- onInput: c[0] || (c[0] = async (d) => g(d)),
3046
- onChange: c[1] || (c[1] = async (d) => h(d)),
3047
- onBlur: c[2] || (c[2] = async (d) => k(d)),
3048
- onFocus: c[3] || (c[3] = async (d) => x(d))
3045
+ onInput: s[0] || (s[0] = async (d) => g(d)),
3046
+ onChange: s[1] || (s[1] = async (d) => h(d)),
3047
+ onBlur: s[2] || (s[2] = async (d) => k(d)),
3048
+ onFocus: s[3] || (s[3] = async (d) => $(d))
3049
3049
  }, null, 40, mi),
3050
3050
  e.label ? (v(), y(H, { key: 0 }, [
3051
3051
  D(B(e.label), 1)
3052
- ], 64)) : F(b.$slots, "default", { key: 1 })
3052
+ ], 64)) : F(m.$slots, "default", { key: 1 })
3053
3053
  ], 10, gi));
3054
3054
  }
3055
3055
  }), bi = ["id", "data-spacing", "data-width"], Hl = /* @__PURE__ */ W({
@@ -3067,7 +3067,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3067
3067
  const t = e, l = o(Ie), a = o(null);
3068
3068
  return Y(() => {
3069
3069
  l.value = t.id || "section-" + Q();
3070
- }), (i, s) => (v(), y("section", {
3070
+ }), (i, u) => (v(), y("section", {
3071
3071
  ref_key: "_ref",
3072
3072
  ref: a,
3073
3073
  id: l.value,
@@ -3082,7 +3082,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3082
3082
  key: 0,
3083
3083
  class: "placeholder",
3084
3084
  value: ""
3085
- }, Bi = ["label"], pi = ["value", "selected", "disabled"], Li = ["value", "disabled", "selected"], Ii = ["id"], $i = {
3085
+ }, Bi = ["label"], pi = ["value", "selected", "disabled"], Li = ["value", "disabled", "selected"], Ii = ["id"], xi = {
3086
3086
  "data-visually-hidden": "true",
3087
3087
  role: "status"
3088
3088
  }, Xl = /* @__PURE__ */ W({
@@ -3128,28 +3128,28 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3128
3128
  },
3129
3129
  emits: ["update:value"],
3130
3130
  setup(e, { emit: t }) {
3131
- const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(""), k = o(void 0), x = o(""), b = o(!1), c = o(""), d = o(void 0), m = o(null);
3131
+ const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(""), k = o(void 0), $ = o(""), m = o(!1), s = o(""), d = o(void 0), b = o(null);
3132
3132
  Y(() => {
3133
- b.value = !0;
3133
+ m.value = !0;
3134
3134
  const A = a.id ?? `select-${Q()}`;
3135
- i.value = A, s.value = A + ce, u.value = A + re, f.value = A + ve, h.value = A + De, g.value = a.invalidMessage || ee;
3136
- }), ge(() => {
3135
+ i.value = A, u.value = A + ce, c.value = A + re, f.value = A + ve, h.value = A + De, g.value = a.invalidMessage || ee;
3136
+ }), he(() => {
3137
3137
  d.value?.abort();
3138
3138
  }), C(
3139
- () => [m.value, a.invalidMessage],
3139
+ () => [b.value, a.invalidMessage],
3140
3140
  () => {
3141
- g.value = a.invalidMessage || m.value?.validationMessage || ee;
3141
+ g.value = a.invalidMessage || b.value?.validationMessage || ee;
3142
3142
  },
3143
3143
  {
3144
3144
  immediate: !0,
3145
3145
  flush: "post"
3146
3146
  }
3147
3147
  ), C(
3148
- () => [i.value, b.value],
3148
+ () => [i.value, m.value],
3149
3149
  () => {
3150
- if (i.value && b.value) {
3150
+ if (i.value && m.value) {
3151
3151
  const A = i.value + ce, R = i.value + De;
3152
- s.value = A, u.value = i.value + re, f.value = i.value + ve, h.value = R, _(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(), b.value = !1;
3152
+ u.value = A, c.value = i.value + re, f.value = i.value + ve, h.value = R, _(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(), m.value = !1;
3153
3153
  }
3154
3154
  },
3155
3155
  {
@@ -3159,19 +3159,19 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3159
3159
  ), C(
3160
3160
  () => [a.value],
3161
3161
  () => {
3162
- x.value = a.value;
3162
+ $.value = a.value;
3163
3163
  },
3164
3164
  {
3165
3165
  immediate: !0,
3166
3166
  flush: "post"
3167
3167
  }
3168
3168
  ), C(
3169
- () => [m.value],
3169
+ () => [b.value],
3170
3170
  () => {
3171
- if (m.value) {
3171
+ if (b.value) {
3172
3172
  let R = d.value;
3173
3173
  R || (R = new AbortController(), d.value = R), Ue(
3174
- m.value,
3174
+ b.value,
3175
3175
  {
3176
3176
  value: a.value,
3177
3177
  defaultValue: void 0
@@ -3192,13 +3192,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3192
3192
  return !!(a.validMessage ?? a.validation === "valid");
3193
3193
  }
3194
3194
  function T() {
3195
- !m.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || m.value?.validationMessage || ee, ue() && (c.value = g.value, K(() => c.value = "", 1e3))) : I() && m.value?.validity.valid && a.required ? (k.value = u.value, ue() && (c.value = a.validMessage ?? se, K(() => c.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = s.value : a.placeholder ? k.value = h.value : k.value = void 0;
3195
+ !b.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (s.value = g.value, K(() => s.value = "", 1e3))) : I() && b.value?.validity.valid && a.required ? (k.value = c.value, ue() && (s.value = a.validMessage ?? se, K(() => s.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : a.placeholder ? k.value = h.value : k.value = void 0;
3196
3196
  }
3197
3197
  function w(A) {
3198
3198
  a.onClick && a.onClick(A);
3199
3199
  }
3200
3200
  function L(A, R) {
3201
- a.input && a.input(A), x.value = A.target.value, a.onInput && a.onInput(A), de(l, A), T();
3201
+ a.input && a.input(A), $.value = A.target.value, a.onInput && a.onInput(A), de(l, A), T();
3202
3202
  }
3203
3203
  function S(A, R) {
3204
3204
  a.onChange && a.onChange(A), de(l, A), T();
@@ -3225,13 +3225,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3225
3225
  "aria-invalid": e.validation === "invalid",
3226
3226
  "data-custom-validity": e.validation,
3227
3227
  ref_key: "_ref",
3228
- ref: m,
3228
+ ref: b,
3229
3229
  required: n(q)(e.required, "required"),
3230
3230
  disabled: n(q)(e.disabled, "disabled"),
3231
3231
  id: i.value,
3232
3232
  name: e.name,
3233
3233
  size: e.size,
3234
- value: e.value ?? x.value,
3234
+ value: e.value ?? $.value,
3235
3235
  autocomplete: e.autocomplete,
3236
3236
  multiple: e.multiple,
3237
3237
  onInput: R[0] || (R[0] = async (j) => L(j)),
@@ -3242,12 +3242,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3242
3242
  "aria-describedby": e.ariaDescribedBy ?? k.value
3243
3243
  }, [
3244
3244
  e.variant === "floating" || e.placeholder ? (v(), y("option", Si)) : z("", !0),
3245
- e.options?.length ? (v(!0), y(H, { key: 1 }, he(e.options, (j, pe) => (v(), y(H, { key: pe }, [
3245
+ e.options?.length ? (v(!0), y(H, { key: 1 }, ge(e.options, (j, pe) => (v(), y(H, { key: pe }, [
3246
3246
  j.options ? (v(), y("optgroup", {
3247
3247
  key: 0,
3248
3248
  label: X(j)
3249
3249
  }, [
3250
- (v(!0), y(H, null, he(j.options, (me, Ce) => (v(), y("option", {
3250
+ (v(!0), y(H, null, ge(j.options, (me, Ce) => (v(), y("option", {
3251
3251
  key: Ce,
3252
3252
  value: me.value,
3253
3253
  selected: me.selected,
@@ -3270,7 +3270,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3270
3270
  key: 1,
3271
3271
  size: "small",
3272
3272
  icon: e.messageIcon,
3273
- id: s.value
3273
+ id: u.value
3274
3274
  }, {
3275
3275
  default: G(() => [
3276
3276
  D(B(e.message), 1)
@@ -3281,7 +3281,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3281
3281
  key: 2,
3282
3282
  size: "small",
3283
3283
  semantic: "successful",
3284
- id: u.value
3284
+ id: c.value
3285
3285
  }, {
3286
3286
  default: G(() => [
3287
3287
  D(B(e.validMessage || n(se)), 1)
@@ -3298,10 +3298,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3298
3298
  ]),
3299
3299
  _: 1
3300
3300
  }, 8, ["id"]),
3301
- E("span", $i, B(c.value), 1)
3301
+ E("span", xi, B(s.value), 1)
3302
3302
  ], 10, yi));
3303
3303
  }
3304
- }), xi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], jl = /* @__PURE__ */ W({
3304
+ }), $i = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], jl = /* @__PURE__ */ W({
3305
3305
  __name: "stack",
3306
3306
  props: {
3307
3307
  variant: { default: void 0 },
@@ -3331,7 +3331,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3331
3331
  "data-wrap": n(V)(e.wrap)
3332
3332
  }, [
3333
3333
  F(a.$slots, "default")
3334
- ], 10, xi));
3334
+ ], 10, $i));
3335
3335
  }
3336
3336
  }), Kl = ["simple", "divider"], Yl = ["row", "column"], Jl = ["stretch", "start", "end", "center"], Ql = ["space-between", "start", "end", "center"], Ti = ["data-visual-aid", "data-size", "data-hide-label", "data-variant", "data-hide-asterisk", "data-custom-validity"], Ci = ["for"], Ei = ["id", "checked", "value", "disabled", "aria-invalid", "aria-describedby", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ai = {
3337
3337
  "data-visually-hidden": "true",
@@ -3377,11 +3377,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3377
3377
  },
3378
3378
  emits: ["update:checked"],
3379
3379
  setup(e, { emit: t }) {
3380
- const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), x = o(void 0), b = o(null);
3380
+ const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), $ = o(void 0), m = o(null);
3381
3381
  Y(() => {
3382
- i.value = a.id ?? `switch-${Q()}`, s.value = `${i.value}${ce}`, u.value = `${i.value}${re}`, f.value = `${i.value}${ve}`, d();
3383
- }), ge(() => {
3384
- x.value?.abort();
3382
+ i.value = a.id ?? `switch-${Q()}`, u.value = `${i.value}${ce}`, c.value = `${i.value}${re}`, f.value = `${i.value}${ve}`, d();
3383
+ }), he(() => {
3384
+ $.value?.abort();
3385
3385
  }), C(
3386
3386
  () => [
3387
3387
  a.validation,
@@ -3400,18 +3400,18 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3400
3400
  flush: "post"
3401
3401
  }
3402
3402
  ), C(
3403
- () => [b.value],
3403
+ () => [m.value],
3404
3404
  () => {
3405
- if (b.value) {
3406
- let S = x.value;
3407
- S || (S = new AbortController(), x.value = S), da(
3408
- b.value,
3405
+ if (m.value) {
3406
+ let S = $.value;
3407
+ S || (S = new AbortController(), $.value = S), da(
3408
+ m.value,
3409
3409
  {
3410
3410
  checked: a.checked,
3411
3411
  defaultChecked: void 0
3412
3412
  },
3413
3413
  (M) => {
3414
- m(M);
3414
+ b(M);
3415
3415
  },
3416
3416
  S.signal
3417
3417
  );
@@ -3422,29 +3422,29 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3422
3422
  flush: "post"
3423
3423
  }
3424
3424
  );
3425
- function c() {
3425
+ function s() {
3426
3426
  return !!(a.validMessage ?? a.validation === "valid");
3427
3427
  }
3428
3428
  function d() {
3429
- if (!b.value?.validity?.valid || a.validation === "invalid") {
3430
- h.value = f.value, g.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (k.value = g.value || ee, K(() => {
3429
+ if (!m.value?.validity?.valid || a.validation === "invalid") {
3430
+ h.value = f.value, g.value = a.invalidMessage || m.value?.validationMessage || ee, ue() && (k.value = g.value || ee, K(() => {
3431
3431
  k.value = "";
3432
3432
  }, 1e3));
3433
3433
  return;
3434
3434
  }
3435
- if (c() && b.value?.validity?.valid && a.required) {
3436
- h.value = u.value, ue() && (k.value = a.validMessage ?? se, K(() => {
3435
+ if (s() && m.value?.validity?.valid && a.required) {
3436
+ h.value = c.value, ue() && (k.value = a.validMessage ?? se, K(() => {
3437
3437
  k.value = "";
3438
3438
  }, 1e3));
3439
3439
  return;
3440
3440
  }
3441
3441
  if (_(a.message, a.showMessage)) {
3442
- h.value = s.value;
3442
+ h.value = u.value;
3443
3443
  return;
3444
3444
  }
3445
3445
  h.value = void 0;
3446
3446
  }
3447
- function m(L, S) {
3447
+ function b(L, S) {
3448
3448
  a.onChange && a.onChange(L), d(), de(l, L, "checked");
3449
3449
  }
3450
3450
  function I(L) {
@@ -3454,7 +3454,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3454
3454
  a.onFocus && a.onFocus(L);
3455
3455
  }
3456
3456
  function w(L) {
3457
- L.key === "Enter" && (L.preventDefault(), a.disabled || b.value?.click());
3457
+ L.key === "Enter" && (L.preventDefault(), a.disabled || m.value?.click());
3458
3458
  }
3459
3459
  return (L, S) => (v(), y("div", {
3460
3460
  "data-visual-aid": n(V)(e.visualAid),
@@ -3471,7 +3471,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3471
3471
  role: "switch",
3472
3472
  id: i.value,
3473
3473
  ref_key: "_ref",
3474
- ref: b,
3474
+ ref: m,
3475
3475
  checked: n(q)(e.checked, "checked"),
3476
3476
  value: e.value,
3477
3477
  disabled: n(q)(e.disabled, "disabled"),
@@ -3481,7 +3481,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3481
3481
  required: n(q)(e.required, "required"),
3482
3482
  "data-aid-icon": e.iconLeading ?? e.icon,
3483
3483
  "data-aid-icon-trailing": e.iconTrailing,
3484
- onChange: S[0] || (S[0] = async (M) => m(M)),
3484
+ onChange: S[0] || (S[0] = async (M) => b(M)),
3485
3485
  onBlur: S[1] || (S[1] = async (M) => I(M)),
3486
3486
  onFocus: S[2] || (S[2] = async (M) => T(M)),
3487
3487
  onKeydown: S[3] || (S[3] = async (M) => w(M))
@@ -3494,7 +3494,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3494
3494
  key: 0,
3495
3495
  size: "small",
3496
3496
  semantic: "adaptive",
3497
- id: s.value,
3497
+ id: u.value,
3498
3498
  icon: e.messageIcon
3499
3499
  }, {
3500
3500
  default: G(() => [
@@ -3502,11 +3502,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3502
3502
  ]),
3503
3503
  _: 1
3504
3504
  }, 8, ["id", "icon"])) : z("", !0),
3505
- c() ? (v(), J(Z, {
3505
+ s() ? (v(), J(Z, {
3506
3506
  key: 1,
3507
3507
  size: "small",
3508
3508
  semantic: "successful",
3509
- id: u.value
3509
+ id: c.value
3510
3510
  }, {
3511
3511
  default: G(() => [
3512
3512
  D(B(e.validMessage ?? n(se)), 1)
@@ -3551,13 +3551,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3551
3551
  },
3552
3552
  emits: ["update:checked"],
3553
3553
  setup(e, { emit: t }) {
3554
- const l = t, a = e, i = o(!1), s = o(void 0), u = o(!1), f = o(null);
3554
+ const l = t, a = e, i = o(!1), u = o(void 0), c = o(!1), f = o(!1), g = o(void 0), h = o(null);
3555
3555
  Y(() => {
3556
- u.value = !0;
3556
+ g.value = k, c.value = !0;
3557
+ }), he(() => {
3558
+ f.value && h.value && g.value && (h.value.closest("[role=tablist]")?.removeEventListener("change", g.value), f.value = !1);
3557
3559
  }), C(
3558
- () => [f.value, u.value],
3560
+ () => [h.value, c.value, g.value],
3559
3561
  () => {
3560
- u.value && f.value && (a.active && f.value.click(), u.value = !1);
3562
+ h.value && c.value && g.value && (c.value = !1, f.value || (h.value.closest("[role=tablist]")?.addEventListener("change", g.value), f.value = !0), (a.active || h.value.checked) && (i.value = !0, h.value.click()));
3561
3563
  },
3562
3564
  {
3563
3565
  immediate: !0,
@@ -3566,17 +3568,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3566
3568
  ), C(
3567
3569
  () => [a.name],
3568
3570
  () => {
3569
- a.name && (s.value = a.name);
3571
+ a.name && (u.value = a.name);
3570
3572
  },
3571
3573
  {
3572
3574
  immediate: !0,
3573
3575
  flush: "post"
3574
3576
  }
3575
3577
  );
3576
- function g(h) {
3577
- h.stopPropagation(), a.onChange && a.onChange(h), i.value = h.target?.checked, de(l, h, "checked");
3578
+ function k(m) {
3579
+ m.stopPropagation(), i.value = m.target === h.value;
3578
3580
  }
3579
- return (h, k) => (v(), y("li", {
3581
+ function $(m) {
3582
+ a.onChange && a.onChange(m), de(l, m, "checked");
3583
+ }
3584
+ return (m, s) => (v(), y("li", {
3580
3585
  role: "none",
3581
3586
  class: U(n(O)("db-tab-item", a.class))
3582
3587
  }, [
@@ -3595,15 +3600,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3595
3600
  "aria-selected": i.value,
3596
3601
  checked: n(q)(e.checked, "checked"),
3597
3602
  ref_key: "_ref",
3598
- ref: f,
3599
- name: s.value,
3603
+ ref: h,
3604
+ name: u.value,
3600
3605
  id: e.id,
3601
- onInput: k[0] || (k[0] = async (x) => g(x))
3606
+ onInput: s[0] || (s[0] = async (d) => $(d))
3602
3607
  }, null, 40, Mi),
3603
3608
  e.label ? (v(), y(H, { key: 0 }, [
3604
3609
  D(B(e.label), 1)
3605
3610
  ], 64)) : z("", !0),
3606
- F(h.$slots, "default")
3611
+ F(m.$slots, "default")
3607
3612
  ], 8, Di)
3608
3613
  ], 2));
3609
3614
  }
@@ -3620,7 +3625,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3620
3625
  const t = e, l = o(Ie), a = o(null);
3621
3626
  return Y(() => {
3622
3627
  l.value = t.id || "tab-list-" + Q();
3623
- }), (i, s) => (v(), y("div", {
3628
+ }), (i, u) => (v(), y("div", {
3624
3629
  ref_key: "_ref",
3625
3630
  ref: a,
3626
3631
  id: l.value,
@@ -3680,20 +3685,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3680
3685
  tabSelect: {}
3681
3686
  },
3682
3687
  setup(e) {
3683
- const t = e, l = o("tabs-" + Q()), a = o(""), i = o(!1), s = o(!1), u = o(!1), f = o(null), g = o(void 0), h = o(null);
3688
+ const t = e, l = o("tabs-" + Q()), a = o(""), i = o(!1), u = o(!1), c = o(!1), f = o(null), g = o(void 0), h = o(null);
3684
3689
  Y(() => {
3685
3690
  l.value = t.id || l.value, a.value = `tabs-${t.name || Q()}`, i.value = !0;
3686
- }), ge(() => {
3691
+ }), he(() => {
3687
3692
  g.value?.disconnect(), g.value = void 0;
3688
3693
  }), C(
3689
3694
  () => [h.value, i.value],
3690
3695
  () => {
3691
3696
  if (h.value && i.value) {
3692
- c(), d(!0);
3697
+ s(), d(!0);
3693
3698
  const I = h.value.querySelector(".db-tab-list");
3694
3699
  I && new MutationObserver((w) => {
3695
3700
  w.forEach((L) => {
3696
- (L.removedNodes.length || L.addedNodes.length) && (c(), d());
3701
+ (L.removedNodes.length || L.addedNodes.length) && (s(), d());
3697
3702
  });
3698
3703
  }).observe(I, {
3699
3704
  childList: !0,
@@ -3714,11 +3719,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3714
3719
  }
3715
3720
  return [];
3716
3721
  }
3717
- function x(I) {
3722
+ function $(I) {
3718
3723
  const T = I.scrollWidth > I.clientWidth;
3719
- s.value = T && I.scrollLeft > 1, u.value = T && I.scrollLeft < I.scrollWidth - I.clientWidth;
3724
+ u.value = T && I.scrollLeft > 1, c.value = T && I.scrollLeft < I.scrollWidth - I.clientWidth;
3720
3725
  }
3721
- function b(I) {
3726
+ function m(I) {
3722
3727
  let T = Number(t.arrowScrollDistance) || 100;
3723
3728
  I && (T *= -1), f.value?.scrollBy({
3724
3729
  top: 0,
@@ -3726,7 +3731,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3726
3731
  behavior: "smooth"
3727
3732
  });
3728
3733
  }
3729
- function c() {
3734
+ function s() {
3730
3735
  if (h.value) {
3731
3736
  const I = h.value.querySelector(".db-tab-list");
3732
3737
  if (I) {
@@ -3734,11 +3739,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3734
3739
  if (T && (T.setAttribute(
3735
3740
  "aria-orientation",
3736
3741
  t.orientation || "horizontal"
3737
- ), t.behavior === "arrows" && (f.value = T, x(T), T.addEventListener("scroll", () => {
3738
- x(T);
3742
+ ), t.behavior === "arrows" && (f.value = T, $(T), T.addEventListener("scroll", () => {
3743
+ $(T);
3739
3744
  }), !g.value))) {
3740
3745
  const w = new ResizeObserver(() => {
3741
- x(T);
3746
+ $(T);
3742
3747
  });
3743
3748
  w.observe(T), g.value = w;
3744
3749
  }
@@ -3777,7 +3782,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3777
3782
  }
3778
3783
  }
3779
3784
  }
3780
- function m(I) {
3785
+ function b(I) {
3781
3786
  if (I.stopPropagation(), I.target) {
3782
3787
  const w = I.target.parentElement;
3783
3788
  if (w && w.parentElement && w.parentElement?.nodeName === "LI") {
@@ -3785,7 +3790,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3785
3790
  if (L) {
3786
3791
  const S = L.parentElement;
3787
3792
  if (S) {
3788
- const M = Array.from(S.childNodes).indexOf(L);
3793
+ const M = Array.from(S.children).indexOf(L);
3789
3794
  t.onIndexChange && t.onIndexChange(M), t.onTabSelect && t.onTabSelect(I);
3790
3795
  }
3791
3796
  }
@@ -3801,17 +3806,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3801
3806
  "data-scroll-behavior": e.behavior,
3802
3807
  "data-alignment": e.alignment ?? "start",
3803
3808
  "data-width": e.width ?? "auto",
3804
- onInput: T[0] || (T[0] = async (w) => m(w)),
3805
- onChange: T[1] || (T[1] = async (w) => m(w))
3809
+ onInput: T[0] || (T[0] = async (w) => b(w)),
3810
+ onChange: T[1] || (T[1] = async (w) => b(w))
3806
3811
  }, [
3807
- s.value ? (v(), J(we, {
3812
+ u.value ? (v(), J(we, {
3808
3813
  key: 0,
3809
3814
  class: "tabs-scroll-left",
3810
3815
  variant: "ghost",
3811
3816
  icon: "chevron_left",
3812
3817
  type: "button",
3813
3818
  noText: !0,
3814
- onClick: (w) => b(!0)
3819
+ onClick: (w) => m(!0)
3815
3820
  }, {
3816
3821
  default: G(() => [...T[2] || (T[2] = [
3817
3822
  D(" Scroll left ", -1)
@@ -3821,7 +3826,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3821
3826
  e.tabs ? (v(), y(H, { key: 1 }, [
3822
3827
  te(zi, null, {
3823
3828
  default: G(() => [
3824
- (v(!0), y(H, null, he(k(), (w, L) => (v(), J(Fi, {
3829
+ (v(!0), y(H, null, ge(k(), (w, L) => (v(), J(Fi, {
3825
3830
  key: e.name + "tab-item" + L,
3826
3831
  active: w.active,
3827
3832
  label: w.label,
@@ -3832,7 +3837,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3832
3837
  ]),
3833
3838
  _: 1
3834
3839
  }),
3835
- (v(!0), y(H, null, he(k(), (w, L) => (v(), J(Pi, {
3840
+ (v(!0), y(H, null, ge(k(), (w, L) => (v(), J(Pi, {
3836
3841
  key: e.name + "tab-panel" + L,
3837
3842
  content: w.content
3838
3843
  }, {
@@ -3842,14 +3847,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3842
3847
  _: 2
3843
3848
  }, 1032, ["content"]))), 128))
3844
3849
  ], 64)) : z("", !0),
3845
- u.value ? (v(), J(we, {
3850
+ c.value ? (v(), J(we, {
3846
3851
  key: 2,
3847
3852
  class: "tabs-scroll-right",
3848
3853
  variant: "ghost",
3849
3854
  icon: "chevron_right",
3850
3855
  type: "button",
3851
3856
  noText: !0,
3852
- onClick: (w) => b()
3857
+ onClick: (w) => m()
3853
3858
  }, {
3854
3859
  default: G(() => [...T[3] || (T[3] = [
3855
3860
  D(" Scroll right ", -1)
@@ -3912,16 +3917,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3912
3917
  },
3913
3918
  emits: ["update:value"],
3914
3919
  setup(e, { emit: t }) {
3915
- const l = t, a = e, i = o(void 0), s = o(void 0), u = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), x = o(""), b = o(void 0), c = o(null);
3920
+ const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), $ = o(""), m = o(void 0), s = o(null);
3916
3921
  Y(() => {
3917
3922
  const S = a.id ?? `textarea-${Q()}`;
3918
- i.value = S, s.value = S + ce, u.value = S + re, f.value = S + ve, g.value = a.invalidMessage || ee;
3919
- }), ge(() => {
3920
- b.value?.abort();
3923
+ i.value = S, u.value = S + ce, c.value = S + re, f.value = S + ve, g.value = a.invalidMessage || ee;
3924
+ }), he(() => {
3925
+ m.value?.abort();
3921
3926
  }), C(
3922
- () => [c.value, a.invalidMessage],
3927
+ () => [s.value, a.invalidMessage],
3923
3928
  () => {
3924
- g.value = a.invalidMessage || c.value?.validationMessage || ee;
3929
+ g.value = a.invalidMessage || s.value?.validationMessage || ee;
3925
3930
  },
3926
3931
  {
3927
3932
  immediate: !0,
@@ -3932,7 +3937,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3932
3937
  () => {
3933
3938
  if (i.value) {
3934
3939
  const S = i.value + ce;
3935
- s.value = S, u.value = i.value + re, f.value = i.value + ve, _(a.message, a.showMessage) && (h.value = S), m();
3940
+ u.value = S, c.value = i.value + re, f.value = i.value + ve, _(a.message, a.showMessage) && (h.value = S), b();
3936
3941
  }
3937
3942
  },
3938
3943
  {
@@ -3949,12 +3954,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3949
3954
  flush: "post"
3950
3955
  }
3951
3956
  ), C(
3952
- () => [c.value],
3957
+ () => [s.value],
3953
3958
  () => {
3954
- if (c.value) {
3955
- let M = b.value;
3956
- M || (M = new AbortController(), b.value = M), Ue(
3957
- c.value,
3959
+ if (s.value) {
3960
+ let M = m.value;
3961
+ M || (M = new AbortController(), m.value = M), Ue(
3962
+ s.value,
3958
3963
  {
3959
3964
  value: a.value,
3960
3965
  defaultValue: void 0
@@ -3974,14 +3979,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
3974
3979
  function d() {
3975
3980
  return !!(a.validMessage ?? a.validation === "valid");
3976
3981
  }
3977
- function m() {
3978
- !c.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, g.value = a.invalidMessage || c.value?.validationMessage || ee, ue() && (x.value = g.value, K(() => x.value = "", 1e3))) : d() && c.value?.validity.valid && (a.required || a.minLength || a.maxLength) ? (h.value = u.value, ue() && (x.value = a.validMessage ?? se, K(() => x.value = "", 1e3))) : _(a.message, a.showMessage) ? h.value = s.value : h.value = void 0;
3982
+ function b() {
3983
+ !s.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, g.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = g.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && (a.required || a.minLength || a.maxLength) ? (h.value = c.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : _(a.message, a.showMessage) ? h.value = u.value : h.value = void 0;
3979
3984
  }
3980
3985
  function I(S, M) {
3981
- a.input && a.input(S), k.value = S.target.value, a.onInput && a.onInput(S), de(l, S), m();
3986
+ a.input && a.input(S), k.value = S.target.value, a.onInput && a.onInput(S), de(l, S), b();
3982
3987
  }
3983
3988
  function T(S, M) {
3984
- a.onChange && a.onChange(S), de(l, S), m();
3989
+ a.onChange && a.onChange(S), de(l, S), b();
3985
3990
  }
3986
3991
  function w(S) {
3987
3992
  a.onBlur && a.onBlur(S);
@@ -4001,7 +4006,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
4001
4006
  "data-custom-validity": e.validation,
4002
4007
  "data-field-sizing": e.fieldSizing,
4003
4008
  ref_key: "_ref",
4004
- ref: c,
4009
+ ref: s,
4005
4010
  id: i.value,
4006
4011
  "data-resize": e.resize,
4007
4012
  "data-hide-resizer": n(ne)(e.showResizer ?? !0),
@@ -4029,7 +4034,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
4029
4034
  key: 0,
4030
4035
  size: "small",
4031
4036
  icon: e.messageIcon,
4032
- id: s.value
4037
+ id: u.value
4033
4038
  }, {
4034
4039
  default: G(() => [
4035
4040
  D(B(e.message), 1)
@@ -4040,7 +4045,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
4040
4045
  key: 1,
4041
4046
  size: "small",
4042
4047
  semantic: "successful",
4043
- id: u.value
4048
+ id: c.value
4044
4049
  }, {
4045
4050
  default: G(() => [
4046
4051
  D(B(e.validMessage || n(se)), 1)
@@ -4057,14 +4062,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
4057
4062
  ]),
4058
4063
  _: 1
4059
4064
  }, 8, ["id"]),
4060
- E("span", Wi, B(x.value), 1)
4065
+ E("span", Wi, B($.value), 1)
4061
4066
  ], 10, Ui));
4062
4067
  }
4063
- }), nn = ["none", "both", "horizontal", "vertical"], on = ["hard", "soft", "off"], dn = ["description", "label"], sn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], un = ["medium", "small", "large", "none"], cn = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], rn = [...Hi, ...Xi], vn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], fn = ["horizontal", "vertical"], hn = ["full", "auto"], gn = ["full", "medium", "large", "small"], mn = ["none", "slow", "fast"], bn = ["auto", "fixed"], yn = ["small", "medium"], kn = ["weak", "strong"], wn = ["invalid", "valid", "no-validation"], Sn = ["fixed", "content"], Bn = ["above", "floating"], pn = ["leading", "trailing"], Ln = ["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"], In = ["_self", "_blank", "_parent", "_top"], $n = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], xn = ["start", "center"];
4068
+ }), nn = ["none", "both", "horizontal", "vertical"], on = ["hard", "soft", "off"], dn = ["description", "label"], sn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], un = ["medium", "small", "large", "none"], cn = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], rn = [...Hi, ...Xi], vn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], fn = ["horizontal", "vertical"], hn = ["full", "auto"], gn = ["full", "medium", "large", "small"], mn = ["none", "slow", "fast"], bn = ["auto", "fixed"], yn = ["small", "medium"], kn = ["weak", "strong"], wn = ["invalid", "valid", "no-validation"], Sn = ["fixed", "content"], Bn = ["above", "floating"], pn = ["leading", "trailing"], Ln = ["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"], In = ["_self", "_blank", "_parent", "_top"], xn = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], $n = ["start", "center"];
4064
4069
  export {
4065
4070
  ll as AccordionBehaviorList,
4066
4071
  il as AccordionVariantList,
4067
- xn as AlignmentList,
4072
+ $n as AlignmentList,
4068
4073
  Ln as AutoCompleteList,
4069
4074
  ol as BadgePlacementList,
4070
4075
  ul as ButtonTypeList,
@@ -4092,8 +4097,8 @@ export {
4092
4097
  nt as DBCustomSelectListItem,
4093
4098
  kl as DBDivider,
4094
4099
  qt as DBDrawer,
4095
- $l as DBHeader,
4096
- xl as DBIcon,
4100
+ xl as DBHeader,
4101
+ $l as DBIcon,
4097
4102
  Z as DBInfotext,
4098
4103
  ht as DBInput,
4099
4104
  El as DBLink,
@@ -4114,7 +4119,7 @@ export {
4114
4119
  bt as DBTag,
4115
4120
  ln as DBTextarea,
4116
4121
  ca as DBTooltip,
4117
- $a as DEFAULT_BACK,
4122
+ xa as DEFAULT_BACK,
4118
4123
  Ta as DEFAULT_BURGER_MENU,
4119
4124
  qe as DEFAULT_CLOSE_BUTTON,
4120
4125
  Qe as DEFAULT_DATALIST_ID_SUFFIX,
@@ -4130,7 +4135,7 @@ export {
4130
4135
  De as DEFAULT_PLACEHOLDER_ID_SUFFIX,
4131
4136
  aa as DEFAULT_REMOVE,
4132
4137
  Ea as DEFAULT_ROWS,
4133
- xa as DEFAULT_SELECTED,
4138
+ $a as DEFAULT_SELECTED,
4134
4139
  Je as DEFAULT_SELECT_ID_SUFFIX,
4135
4140
  se as DEFAULT_VALID_MESSAGE,
4136
4141
  re as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
@@ -4155,7 +4160,7 @@ export {
4155
4160
  pn as LabelVariantHorizontalList,
4156
4161
  Bn as LabelVariantList,
4157
4162
  Ml as LinkContentList,
4158
- $n as LinkReferrerPolicyList,
4163
+ xn as LinkReferrerPolicyList,
4159
4164
  Dl as LinkSizeList,
4160
4165
  In as LinkTargetList,
4161
4166
  Al as LinkVariantList,