@db-ux/v-core-components 5.0.0 → 5.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @db-ux/v-core-components
2
2
 
3
+ ## 5.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(links): removing icon underline at 110% zoom level - [see commit dc5a0de](https://github.com/db-ux-design-system/core-web/commit/dc5a0de4067468f858a7b22e53c5565c14688949)
8
+
9
+ - refactor: prevent placeholder from being hidden when select is opened - [see commit 1421a4f](https://github.com/db-ux-design-system/core-web/commit/1421a4fb9ed5fe7307960fba00e5932f3971665a)
10
+
11
+ ## 5.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - fix: drawer close handling by removing timeout state management - [see commit 45d93f0](https://github.com/db-ux-design-system/core-web/commit/45d93f010bf0caece669f96c6f00d288ebdf5363)
16
+
17
+ - fix(select): icon overlapping the floating label - [see commit 9dff6ed](https://github.com/db-ux-design-system/core-web/commit/9dff6ed85fa5e2f6aebd89b3b2662e3a017b196e)
18
+
3
19
  ## 5.0.0
4
20
 
5
21
  We're providing a [migration guide for all 4.x to 5.0.0](https://github.com/db-ux-design-system/core-web/blob/main/docs/migration/v4.x.x-to-v5.0.0.md) changes.
package/dist/db-ux.es.js CHANGED
@@ -131,7 +131,7 @@ var x = () => {
131
131
  ref: m,
132
132
  name: l.value,
133
133
  open: s.value
134
- }, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, te)], 10, U));
134
+ }, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", {}, void 0, void 0, 1)]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, te)], 10, U));
135
135
  }
136
136
  }), ne = ["id", "data-variant"], re = /* @__PURE__ */ s({
137
137
  name: "DBAccordion",
@@ -206,7 +206,7 @@ var x = () => {
206
206
  id: i.id ?? i.propOverrides?.id,
207
207
  class: c(_(C)("db-accordion", o.class)),
208
208
  "data-variant": i.variant
209
- }, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(W, {
209
+ }, [i.items ? n("", !0) : h(a.$slots, "default", {}, void 0, void 0, 0), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(W, {
210
210
  key: `accordion-item-${n}`,
211
211
  headlinePlain: e.headlinePlain,
212
212
  disabled: e.disabled,
@@ -2575,60 +2575,54 @@ var x = () => {
2575
2575
  close: {}
2576
2576
  },
2577
2577
  setup(e) {
2578
- let t = e, n = p(!1), a = p(!1), o = p(void 0), s = p(null), l = p(null);
2578
+ let t = e, n = p(!1), a = p(!1), o = p(null), s = p(null);
2579
2579
  u(() => {
2580
- b(), n.value = !0;
2581
- }), d(() => {
2582
- if (o.value !== void 0 && clearTimeout(o.value), s.value && t.position === "absolute") {
2583
- let e = s.value.parentElement;
2584
- e && (e.style.position = "");
2585
- }
2580
+ g(), n.value = !0;
2586
2581
  }), y(() => [t.open], () => {
2587
- b();
2582
+ g();
2588
2583
  }, {
2589
2584
  immediate: !0,
2590
2585
  flush: "post"
2591
2586
  }), y(() => [
2592
- s.value,
2587
+ o.value,
2593
2588
  n.value,
2594
2589
  t.position
2595
2590
  ], () => {
2596
- if (s.value && n.value && t.position === "absolute") {
2597
- let e = s.value.parentElement;
2591
+ if (o.value && n.value && t.position === "absolute") {
2592
+ let e = o.value.parentElement;
2598
2593
  e && (e.style.position = "relative");
2599
2594
  }
2600
2595
  }, {
2601
2596
  immediate: !0,
2602
2597
  flush: "post"
2603
2598
  });
2604
- function m() {
2599
+ function l() {
2605
2600
  return t.position === "absolute" || t.backdrop === "none" || t.variant === "inside";
2606
2601
  }
2607
- function g(e) {
2602
+ function d(e) {
2608
2603
  a.value = e?.target?.nodeName === "DIALOG";
2609
2604
  }
2610
- function v(e, n) {
2605
+ function m(e) {
2611
2606
  if (e) if (B(e)) e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e));
2612
2607
  else {
2613
- n && (e.stopPropagation(), t.onClose && t.onClose(e));
2614
- let r = e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && a.value, i = !!e.target?.closest?.("[data-action=\"close\"]");
2615
- (r || i) && t.onClose && t.onClose(e), a.value = !1;
2608
+ let n = e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && a.value, r = !!e.target?.closest?.("[data-action=\"close\"]");
2609
+ (n || r) && (r && e.stopPropagation(), t.onClose && t.onClose(e)), a.value = !1;
2616
2610
  }
2617
2611
  }
2618
- function b() {
2619
- if (s.value) {
2612
+ function g() {
2613
+ if (o.value) {
2620
2614
  let e = A(t.open, "open");
2621
- if (e && o.value !== void 0 && (clearTimeout(o.value), o.value = void 0, l.value && (l.value.dataset.transition = "open")), e && !s.value.open && (l.value && l.value.removeAttribute("data-transition"), m() ? s.value.show() : s.value.showModal(), O(() => {
2622
- l.value && (l.value.dataset.transition = "open");
2623
- }, 1)), !e && s.value.open) {
2624
- l.value && (l.value.dataset.transition = "close"), o.value !== void 0 && clearTimeout(o.value);
2625
- let e = 0;
2626
- if (l.value) {
2627
- let t = getComputedStyle(l.value).getPropertyValue("--db-drawer-close-delay").trim(), n = parseFloat(t);
2615
+ if (e && !o.value.open && (s.value && s.value.removeAttribute("data-transition"), l() ? o.value.show() : o.value.showModal(), O(() => {
2616
+ s.value && (s.value.dataset.transition = "open");
2617
+ }, 1)), !e && o.value.open) {
2618
+ s.value && (s.value.dataset.transition = "close");
2619
+ let e = 401;
2620
+ if (s.value) {
2621
+ let t = getComputedStyle(s.value).getPropertyValue("--db-drawer-close-delay").trim(), n = parseFloat(t);
2628
2622
  n > 0 && (e = n * 1e3 + 1);
2629
2623
  }
2630
- o.value = window.setTimeout(() => {
2631
- s.value?.close(), o.value = void 0;
2624
+ O(() => {
2625
+ o.value?.close();
2632
2626
  }, e);
2633
2627
  }
2634
2628
  }
@@ -2637,17 +2631,17 @@ var x = () => {
2637
2631
  class: "db-drawer",
2638
2632
  id: e.id ?? e.propOverrides?.id,
2639
2633
  ref_key: "_ref",
2640
- ref: s,
2641
- onClick: a[0] ||= async (e) => v(e),
2642
- onMousedown: a[1] ||= async (e) => g(e),
2643
- onKeydown: a[2] ||= async (e) => v(e),
2634
+ ref: o,
2635
+ onClick: a[0] ||= async (e) => m(e),
2636
+ onMousedown: a[1] ||= async (e) => d(e),
2637
+ onKeydown: a[2] ||= async (e) => m(e),
2644
2638
  "data-position": e.position,
2645
2639
  "data-backdrop": e.backdrop,
2646
2640
  "data-direction": e.direction,
2647
2641
  "data-variant": e.variant
2648
2642
  }, [i("article", {
2649
2643
  ref_key: "dialogContainerRef",
2650
- ref: l,
2644
+ ref: s,
2651
2645
  class: c(_(C)("db-drawer-container", t.class)),
2652
2646
  "data-container-size": e.containerSize,
2653
2647
  "data-show-spacing": _(k)(e.showSpacing ?? !0, "showSpacing"),
@@ -2723,7 +2717,7 @@ var x = () => {
2723
2717
  i("header", {
2724
2718
  class: "db-drawer-header-container",
2725
2719
  id: s.value
2726
- }, [h(t.$slots, "start-slot"), e.text ? (f(), r("h2", xn, g(e.text), 1)) : h(t.$slots, "default", { key: 1 })], 8, bn),
2720
+ }, [h(t.$slots, "start-slot"), e.text ? (f(), r("h2", xn, g(e.text), 1)) : h(t.$slots, "default", {}, void 0, void 0, 1)], 8, bn),
2727
2721
  h(t.$slots, "end-slot"),
2728
2722
  o(Ve, {
2729
2723
  "data-action": "close",
@@ -3214,7 +3208,7 @@ var x = () => {
3214
3208
  "aria-controls": E.value,
3215
3209
  disabled: _(A)(t.disabled, "disabled"),
3216
3210
  onClick: u[0] ||= async (e) => N(e)
3217
- }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, nr), i("menu", {
3211
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", {}, void 0, void 0, 1)], 8, nr), i("menu", {
3218
3212
  class: "db-sub-navigation",
3219
3213
  id: E.value,
3220
3214
  "aria-labelledby": D.value,
@@ -3228,7 +3222,7 @@ var x = () => {
3228
3222
  }, {
3229
3223
  default: b(() => [a(g(t.backButtonText ?? _("Back")), 1)]),
3230
3224
  _: 1
3231
- }, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, rr)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, tr));
3225
+ }, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, rr)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", {}, void 0, void 0, 1)], 64))], 42, tr));
3232
3226
  }
3233
3227
  }), or = [
3234
3228
  "id",
@@ -3927,7 +3921,7 @@ var x = () => {
3927
3921
  value: t.value,
3928
3922
  disabled: t.disabled,
3929
3923
  selected: t.selected
3930
- }, g(ie(t)), 9, Mr))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, Or),
3924
+ }, g(ie(t)), 9, Mr))], 64))), 128)) : h(l.$slots, "default", {}, void 0, void 0, 2)], 40, Or),
3931
3925
  s.placeholder ? (f(), r("span", {
3932
3926
  key: 0,
3933
3927
  class: "db-select-placeholder",
@@ -4704,7 +4698,7 @@ var x = () => {
4704
4698
  "colspan",
4705
4699
  "rowSpan",
4706
4700
  "rowspan"
4707
- ]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, ai));
4701
+ ]))], 64))), 128)) : h(u.$slots, "default", {}, void 0, void 0, 1)], 10, ai));
4708
4702
  }
4709
4703
  }), si = ["id"], ci = /* @__PURE__ */ s({
4710
4704
  name: "DBTableBody",
@@ -4736,7 +4730,7 @@ var x = () => {
4736
4730
  "className",
4737
4731
  "interactive",
4738
4732
  "id"
4739
- ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, si));
4733
+ ]))), 128)) : h(s.$slots, "default", {}, void 0, void 0, 1)], 10, si));
4740
4734
  }
4741
4735
  }), li = ["id"], ui = /* @__PURE__ */ s({
4742
4736
  name: "DBTableFooter",
@@ -4768,7 +4762,7 @@ var x = () => {
4768
4762
  "className",
4769
4763
  "interactive",
4770
4764
  "id"
4771
- ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, li));
4765
+ ]))), 128)) : h(s.$slots, "default", {}, void 0, void 0, 1)], 10, li));
4772
4766
  }
4773
4767
  }), di = ["id"], fi = /* @__PURE__ */ s({
4774
4768
  name: "DBTableHead",
@@ -4808,7 +4802,7 @@ var x = () => {
4808
4802
  "subHeaderEmphasis",
4809
4803
  "interactive",
4810
4804
  "id"
4811
- ]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, di));
4805
+ ]))), 128)) : h(l.$slots, "default", {}, void 0, void 0, 1)], 10, di));
4812
4806
  }
4813
4807
  }), pi = [
4814
4808
  "data-width",
@@ -4905,7 +4899,7 @@ var x = () => {
4905
4899
  ref_key: "_ref",
4906
4900
  ref: d,
4907
4901
  id: a.id ?? a.propOverrides?.id
4908
- }, [a.captionPlain ? (f(), r("caption", hi, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
4902
+ }, [a.captionPlain ? (f(), r("caption", hi, g(a.captionPlain), 1)) : h(p.$slots, "caption", {}, void 0, void 0, 1), s.value ? (f(), r(e, { key: 2 }, [
4909
4903
  s.value?.header ? (f(), t(fi, {
4910
4904
  key: 0,
4911
4905
  rows: s.value?.header
@@ -4918,7 +4912,7 @@ var x = () => {
4918
4912
  key: 2,
4919
4913
  rows: s.value?.footer
4920
4914
  }, null, 8, ["rows"])) : n("", !0)
4921
- ], 64)) : h(p.$slots, "default", { key: 3 })], 8, mi)], 14, pi));
4915
+ ], 64)) : h(p.$slots, "default", {}, void 0, void 0, 3)], 8, mi)], 14, pi));
4922
4916
  }
4923
4917
  }), _i = ["id"], vi = /* @__PURE__ */ s({
4924
4918
  name: "DBTableCaption",
@@ -5379,7 +5373,7 @@ var x = () => {
5379
5373
  }, {
5380
5374
  default: b(() => [a(g(e.children), 1)]),
5381
5375
  _: 2
5382
- }, 1032, ["content"]))), 128))], 64)) : h(s.$slots, "default", { key: 2 }),
5376
+ }, 1032, ["content"]))), 128))], 64)) : h(s.$slots, "default", {}, void 0, void 0, 2),
5383
5377
  T.value ? (f(), t(Ve, {
5384
5378
  key: 3,
5385
5379
  class: "tabs-scroll-end",
package/dist/db-ux.umd.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`DB-UX`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=()=>{if(typeof window<`u`){if(window.crypto?.randomUUID)return window.crypto.randomUUID();if(window.crypto?.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join(`-`)}return Math.random().toString().substring(2)},r=(e,t)=>{let n=e.children;Object.values(n).forEach(e=>{e.setAttribute(t.key,t.value),e.children.length>0&&r(e,t)})},i=(...e)=>{let t=``;for(let n of e)if(n)if(typeof n==`string`)t+=`${n} `;else for(let e in n)n[e]&&(t+=`${e} `);return t.trim()},a=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),o=[`Mac`,`iPhone`,`iPad`,`iPod`],s=()=>typeof window<`u`&&o.some(e=>window.navigator.userAgent.includes(e)),c=()=>{if(typeof window>`u`||typeof navigator>`u`)return!1;let e=navigator.userAgent,t=/iP(ad|hone|od)/.test(e),n=!!e.match(/Safari/)&&!e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);return t&&n},l=(e,t)=>new Promise(()=>setTimeout(e,t)),u=(e,t)=>{if(e!=null)return String(typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():e)},d=(e,t)=>{if(e!=null)return typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():!!e},f=(e,t)=>{if(!(e==null&&t==null))return Number(e??t)},p=e=>{if(e!=null)return e===`any`?`any`:Number(e)},m=(e,t)=>t&&[`number`,`range`].includes(t)?f(e):e,h=e=>typeof e==`string`?e!==`false`:e,g=e=>{if(e!=null)return u(!h(e),`show`)},_=(e,t)=>(t===void 0||h(t))&&!!e,v=e=>e.querySelector(`input[type="search"]`),y=new WeakMap,b=(e,t)=>{if(e.id)return`${t}${e.id}`;let r=e.value!==void 0&&e.value!==``?String(e.value):``,i=e.label??``;if(r||i)return`${t}${r.length}:${r}.${i}`;let a=y.get(e);return a||(a=n(),y.set(e,a)),`${t}${a}`},x=e=>e.key!==void 0,S=({semantic:e,role:t,ariaLive:n})=>{if(t)return t;if(n)return`article`;switch(e){case`critical`:case`warning`:return`alert`;case`informational`:case`successful`:return`status`;default:return`article`}},C=[`ArrowRight`,`ArrowDown`,`ArrowLeft`,`ArrowUp`,`Home`,`End`,`Enter`,` `],w=()=>typeof HTMLElement>`u`?!1:`focusGroup`in HTMLElement.prototype||`focusgroup`in HTMLElement.prototype,T=[`id`],E=[`aria-disabled`,`name`,`open`],D=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,default:void 0},open:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{n.defaultOpen&&(r.value=n.defaultOpen),o.value=!0}),(0,t.watch)(()=>[s.value,o.value],()=>{s.value&&o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.name],()=>{n.name&&(a.value=n.name)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.open],()=>{let e=d(n.open,`open`);e!==void 0&&(r.value=e)},{immediate:!0,flush:`post`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),n.open===void 0&&(r.value=t)}return(o,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion-item`,n.class))},[(0,t.createElementVNode)(`details`,{"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),ref_key:`_ref`,ref:s,name:a.value,open:r.value},[(0,t.createElementVNode)(`summary`,{onClick:l[0]||=async e=>c(e)},[e.headlinePlain?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.headlinePlain),1)],64)):(0,t.createCommentVNode)(``,!0),e.headlinePlain?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(o.$slots,`headline`,{key:1})]),(0,t.createElementVNode)(`div`,null,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)])],8,E)],10,T))}}),O=[`id`,`data-variant`],k=(0,t.defineComponent)({name:`DBAccordion`,__name:`accordion`,props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(``),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(null);(0,t.onMounted)(()=>{o.value=!0,s.value=!0}),(0,t.watch)(()=>[o.value,r.name,r.behavior],()=>{o.value&&c.value&&(r.behavior===`single`?r.name?a.value!==r.name&&(a.value=r.name):a.value=`accordion-${n}`:a.value=``)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=c.value.getElementsByTagName(`details`);if(e)for(let t of Array.from(e))a.value===``?t.removeAttribute(`name`):t.name=a.value??``}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,s.value,r.initOpenIndex],()=>{if(c.value&&s.value){if(r.initOpenIndex&&r.initOpenIndex.length>0){let e=c.value.getElementsByTagName(`details`);if(e){let t=r.behavior===`single`&&r.initOpenIndex.length>1?[r.initOpenIndex[0]]:r.initOpenIndex;Array.from(e).forEach((e,n)=>{t?.includes(n)&&(e.open=!0)})}}s.value=!1}},{immediate:!0,flush:`post`});function l(){try{return typeof r.items==`string`?JSON.parse(r.items):r.items}catch(e){console.error(e)}return[]}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{ref_key:`_ref`,ref:c,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion`,r.class)),"data-variant":e.variant},[e.items?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0}),e.items?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l(),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(D,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,O))}}),A=[`divider`,`card`],j=[`multiple`,`single`],M=`OVERWRITE_DEFAULT_ID`,ee=`LABEL SHOULD BE SET`,N=` `,P=`MESSAGE SHOULD BE SET`,F=`-label`,te=`-select`,I=`-message`,L=`-valid-message`,R=`-invalid-message`,ne=`-placeholder`,z=`-datalist`,B=`TODO: Add a validMessage`,re=`TODO: Add an invalidMessage`,ie=`Remove`,ae=`Back`,oe=`Selected`,se=`Scroll left`,ce=`Scroll right`,le=`Open navigation menu`,ue=`brand`,de=4,fe=`Close`,pe=`density`,V=`color`,H=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),me=Object.entries(H).map(([,e])=>e),he=function(e){return e.PRIMARY=`primary`,e}({}),ge=function(e){return e.NEUTRAL_BG_LEVEL_1=`neutral-bg-basic-level-1`,e.NEUTRAL_BG_LEVEL_2=`neutral-bg-basic-level-2`,e.NEUTRAL_BG_LEVEL_3=`neutral-bg-basic-level-3`,e.NEUTRAL_BG_TRANSPARENT_SEMI=`neutral-bg-basic-transparent-semi`,e.NEUTRAL_BG_TRANSPARENT_FULL=`neutral-bg-basic-transparent-full`,e.BRAND_BG_LEVEL_1=`brand-bg-basic-level-1`,e.BRAND_BG_LEVEL_2=`brand-bg-basic-level-2`,e.BRAND_BG_LEVEL_3=`brand-bg-basic-level-3`,e.BRAND_BG_TRANSPARENT_SEMI=`brand-bg-basic-transparent-semi`,e.BRAND_BG_TRANSPARENT_FULL=`brand-bg-basic-transparent-full`,e.SUCCESSFUL_BG_LEVEL_1=`successful-bg-basic-level-1`,e.SUCCESSFUL_BG_LEVEL_2=`successful-bg-basic-level-2`,e.SUCCESSFUL_BG_LEVEL_3=`successful-bg-basic-level-3`,e.SUCCESSFUL_BG_TRANSPARENT_SEMI=`successful-bg-basic-transparent-semi`,e.SUCCESSFUL_BG_TRANSPARENT_FULL=`successful-bg-basic-transparent-full`,e.CRITICAL_BG_LEVEL_1=`critical-bg-basic-level-1`,e.CRITICAL_BG_LEVEL_2=`critical-bg-basic-level-2`,e.CRITICAL_BG_LEVEL_3=`critical-bg-basic-level-3`,e.CRITICAL_BG_TRANSPARENT_SEMI=`critical-bg-basic-transparent-semi`,e.CRITICAL_BG_TRANSPARENT_Full=`critical-bg-basic-transparent-full`,e.WARNING_BG_LEVEL_1=`warning-bg-basic-level-1`,e.WARNING_BG_LEVEL_2=`warning-bg-basic-level-2`,e.WARNING_BG_LEVEL_3=`warning-bg-basic-level-3`,e.WARNING_BG_TRANSPARENT_SEMI=`warning-bg-basic-transparent-semi`,e.WARNING_BG_TRANSPARENT_FULL=`warning-bg-basic-transparent-full`,e.INFORMATIONAL_BG_LEVEL_1=`informational-bg-basic-level-1`,e.INFORMATIONAL_BG_LEVEL_2=`informational-bg-basic-level-2`,e.INFORMATIONAL_BG_LEVEL_3=`informational-bg-basic-level-3`,e.INFORMATIONAL_BG_TRANSPARENT_SEMI=`informational-bg-basic-transparent-semi`,e.INFORMATIONAL_BG_TRANSPARENT_FULL=`informational-bg-basic-transparent-full`,e}({}),_e=Object.entries(ge).map(([,e])=>e),ve=Object.entries(he).map(([,e])=>e),ye=function(e){return e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),be=Object.entries(ye).map(([,e])=>e),U={width:390,height:884},xe={width:1920,height:1280},W=[{name:`desktop`,...xe},{name:`tablet`,width:768,height:1024},{name:`mobile`,...U}],Se=`db-ux-framework`,Ce=`db-ux-mode`,we=[`id`,`data-semantic`,`data-size`,`data-emphasis`,`data-placement`,`data-wrap`,`data-label`],G=(0,t.defineComponent)({name:`DBBadge`,__name:`badge`,props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return(0,t.onMounted)(()=>{r.value=!0}),(0,t.watch)(()=>[a.value,r.value],()=>{if(a.value&&r.value&&n.placement?.startsWith(`corner`)){let e=a.value.parentElement;e&&e.localName.includes(`badge`)&&(e=e.parentElement),e&&(e.dataset.hasBadge=`true`)}},{immediate:!0,flush:`post`}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-badge`,n.class)),"data-semantic":e.semantic,"data-size":e.size,"data-emphasis":e.emphasis,"data-placement":e.placement,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-label":e.placement?.startsWith(`corner`)&&(e.label??(0,t.unref)(`LABEL SHOULD BE SET`))},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],10,we))}}),Te=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],Ee=[`data-icon`,`data-show-icon`,`id`],De=(0,t.defineComponent)({name:`DBBrand`,__name:`brand`,props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,"data-icon":e.hideLogo?`none`:e.icon??(0,t.unref)(`brand`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[(0,t.renderSlot)(a.$slots,`default`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0)],10,Ee))}}),Oe=[`id`,`type`,`disabled`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-wrap`,`data-no-text`,`name`,`form`,`value`,`command`,`commandfor`],K=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{command:{default:void 0},commandfor:{default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},wrap:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(){return n.type?n.type:n.onClick||n.commandfor?`button`:`submit`}function o(e){n.onClick&&n.onClick(e)}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-button`,n.class)),type:a(),disabled:(0,t.unref)(d)(e.disabled,`disabled`),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),name:e.name,form:e.form,value:e.value,command:e.command,commandfor:e.commandfor,onClick:c[0]||=async e=>o(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`)],10,Oe))}}),q=[`outlined`,`brand`,`filled`,`ghost`],ke=[`button`,`reset`,`submit`],Ae=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],je=(0,t.defineComponent)({name:`DBCard`,__name:`card`,props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},spacing:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){n.onClick&&n.onClick(e)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-card`,n.class)),"data-behavior":e.behavior,"data-elevation-level":e.elevationLevel,"data-spacing":e.spacing,onClick:s[0]||=async e=>a(e)},[(0,t.renderSlot)(o.$slots,`default`)],10,Ae))}}),Me=[`static`,`interactive`],Ne=[`1`,`2`,`3`],J=(e,t,n=`value`)=>{e(`update:${n}`,t.target[n])},Pe=(e,t,n)=>{e.form&&!e._dbFormResetListenerAdded&&(e.form.addEventListener(`reset`,e=>{t(e)},{signal:n}),e._dbFormResetListenerAdded=!0)},Fe=(e,t,n,r)=>{Pe(e,r=>{l(()=>{let i=t.checked?t.checked:t.defaultChecked?t.defaultChecked:e.checked;n({...r,target:{...r.target,checked:i}})},1)},r)},Y=(e,t,n,r)=>{Pe(e,r=>{l(()=>{let i=t.value?t.value:t.defaultValue?t.defaultValue:e.value;n({...r,target:{...r.target,value:i}})},1)},r)},Ie=[`id`,`data-icon`,`data-semantic`,`data-size`,`data-wrap`,`data-show-icon-leading`],X=(0,t.defineComponent)({name:`DBInfotext`,__name:`infotext`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-infotext`,n.class)),"data-icon":e.icon,"data-semantic":e.semantic,"data-size":e.size,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-show-icon-leading":(0,t.unref)(u)(e.showIcon??!0,`showIcon`)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Ie))}}),Le=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Re=[`for`],ze=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],Be={"data-visually-hidden":`true`,role:`status`},Ve=(0,t.defineComponent)({name:`DBCheckbox`,__name:`checkbox`,props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(!1),u=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(void 0),x=(0,t.ref)(null);(0,t.onMounted)(()=>{c.value=!0,D(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{b.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&D()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,o.invalidMessage],()=>{h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[u.value],()=>{if(u.value){let e=u.value+I;f.value=e,p.value=u.value+L,m.value=u.value+R,_(o.message,o.showMessage)&&(v.value=e),C()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value,o.indeterminate],()=>{x.value&&o.indeterminate!==void 0&&(x.value.indeterminate=!!d(o.indeterminate))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value,o.checked],()=>{c.value&&x.value&&(o.checked!=null&&(x.value.checked=!!d(o.checked)),c.value=!1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value],()=>{if(x.value){let e=b.value;e||(e=new AbortController,b.value=e),Fe(x.value,{checked:o.checked,defaultChecked:void 0},e=>{w(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function S(){return!!(o.validMessage??o.validation===`valid`)}function C(){!x.value?.validity.valid||o.validation===`invalid`?(v.value=m.value,h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(y.value=h.value,l(()=>y.value=``,1e3))):S()&&x.value?.validity.valid&&o.required?(v.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>y.value=``,1e3))):_(o.message,o.showMessage)?v.value=f.value:v.value=void 0}function w(e,t){o.onChange&&o.onChange(e),J(a,e,`checked`),C()}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(){let e=o.id??o.propOverrides?.id??`checkbox-${r}`;u.value=e,f.value=e+I,p.value=e+L,m.value=e+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-checkbox`,o.class)),"data-size":e.size,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(g)(e.showLabel)},[(0,t.createElementVNode)(`label`,{for:u.value},[(0,t.createElementVNode)(`input`,{type:`checkbox`,"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:x,id:u.value,name:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(d)(e.required,`required`),onChange:r[0]||=async e=>w(e),onBlur:r[1]||=async e=>T(e),onFocus:r[2]||=async e=>E(e),"aria-describedby":e.ariaDescribedBy??v.value},null,40,ze),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],8,Re),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),S()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,Be,(0,t.toDisplayString)(y.value),1)],10,Le))}}),He=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Ue=(0,t.defineComponent)({name:`DBCustomButton`,__name:`custom-button`,props:{variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},noText:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String]}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-button`,n.class)),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(u)(e.noText,`noText`)},[(0,t.renderSlot)(a.$slots,`default`)],10,He))}}),We=class{addCallback(e){let t=n(),r=this.getCallbacks();return r[t]=e,t}removeCallback(e){let t=this.getCallbacks();delete t[e]}},Ge=class e extends We{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`click`,t=>e.runCallbacks(t))}getCallbacks(){return e.callbacks}},Z=class e extends We{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}ticking=!1;constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`scroll`,t=>{this.ticking||=(window.requestAnimationFrame(()=>{e.runCallbacks(t),this.ticking=!1}),!0)},!0)}getCallbacks(){return e.callbacks}},Ke=(e,t,n)=>{if(!e||!t)return;let r=e.dataset.width===`full`,i=e.dataset.width===`auto`;e.style.inlineSize=``,e.style.minInlineSize=``;let a=getComputedStyle(e);if(a.zIndex===`9999`||a.position!==`fixed`&&a.position!==`absolute`)return;let{top:o,bottom:s,childHeight:c,childWidth:l,width:u,right:d,left:f,correctedPlacement:p,innerWidth:m}=qe(e,t,n),h=u;if(i){let t=parseFloat(getComputedStyle(e).maxInlineSize);!isNaN(t)&&t>0&&(h=Math.min(u,t))}r?e.style.inlineSize=`${u}px`:i&&(e.style.minInlineSize=`${h}px`);let g=l;i?g=Math.max(l,h):r&&(g=u);let _=p;i&&(_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`)&&f+g>m&&(_=_.startsWith(`top`)?`top-end`:`bottom-end`),_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`?e.style.insetInlineStart=`${f}px`:(_===`top-end`||_===`bottom-end`)&&(e.style.insetInlineStart=`${Math.max(d-g,0)}px`),_?.startsWith(`top`)?e.style.insetBlockStart=`${o-c}px`:_?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${s}px`),e.style.position=`fixed`},qe=(e,t,n)=>{if(!e||!t)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:n,innerWidth:window.innerWidth,innerHeight:window.innerHeight};let r=e.getBoundingClientRect(),{top:i,height:a,bottom:o,right:s,left:c,width:l}=t.getBoundingClientRect(),{innerHeight:u,innerWidth:d}=window,f=r.height,p=r.width;(n===`bottom`||n===`top`)&&(p=l>p?0:p/2),(n===`left`||n===`right`)&&(f=a>f?0:f/2);let m=Math.floor(o+f)>u,h=Math.ceil(i-f)<0,g=Math.ceil(c-p)<0,_=Math.floor(s+p)>d,v=n;return n.startsWith(`bottom`)?m?h?g?v=`bottom-start`:_&&(v=`bottom-end`):(v=n?.replace(`bottom`,`top`),g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`)):g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`):n.startsWith(`top`)?h?m?g?v=`top-start`:_&&(v=`top-end`):(v=n?.replace(`top`,`bottom`),g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`)):g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`):n.startsWith(`left`)?g?_||(v=n?.replace(`left`,`right`),m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)):m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`):v.startsWith(`right`)&&(_?g||(v=n?.replace(`right`,`left`),m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`)):m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)),{top:i,bottom:o,right:s,height:a,width:l,left:c,childHeight:r.height,childWidth:r.width,correctedPlacement:v,innerWidth:d,innerHeight:u,outsideYBoth:h&&m}},Je=10,Ye=new WeakMap,Xe=e=>{if(Ye.has(e))return Ye.get(e);let t=e.parentElement,n=0;for(;t&&n<Je;){if(t.dataset.correctedPlacement)return Ye.set(e,t),t;t=t.parentElement,n+=1}return Ye.set(e,null),null},Ze=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=Xe(e),o=!a&&!i,s=getComputedStyle(e);if(s.position!==`fixed`&&s.position!==`absolute`)return;let c=s.getPropertyValue(`--db-popover-distance`);c.length||(c=`0px`);let{top:l,height:u,width:d,childHeight:f,childWidth:p,right:m,left:h,bottom:g,correctedPlacement:_,innerWidth:v,innerHeight:y,outsideYBoth:b}=qe(e,t,e?.dataset?.placement??n??`bottom`);if(a){let e=a.getBoundingClientRect();h=Math.abs(h-e.left),m=(d+Math.abs(m-e.right))*1.5,l=Math.abs(l-e.top),g=(u+Math.abs(g-e.bottom))*1.5}if(i&&(h=0,m=d,l=0,g=u,[`auto`,`inherit`,`0`].includes(r.zIndex)&&(t.style.zIndex=`1`)),p>d&&(_.startsWith(`bottom`)||_.startsWith(`top`))){let t=d/2/p*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-inline-start`,`50%`)}if(f>u&&(_.startsWith(`left`)||_.startsWith(`bottom`))){let t=u/2/f*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-block-start`,`50%`)}if(e.style.insetBlock=``,e.style.insetInline=``,_===`right`||_===`left`)e.style.insetBlockStart=`${l+u/2}px`;else if(_===`right-start`||_===`left-start`){let t=l+f;e.style.insetBlockStart=`${l}px`,e.style.insetBlockEnd=`${!i&&t>y?y:t}px`}else if(_===`right-end`||_===`left-end`){let t=g-f;e.style.insetBlockStart=`${!i&&t<0?0:t}px`,e.style.insetBlockEnd=`${g}px`}else if(_===`top`||_===`bottom`)e.style.insetInlineStart=`${h+d/2}px`;else if(_===`top-start`||_===`bottom-start`){let t=h+p;e.style.insetInlineStart=`${h}px`,e.style.insetInlineEnd=`${!i&&t>v?v:t}px`}else if(_===`top-end`||_===`bottom-end`){let t=m-p;e.style.insetInlineStart=`${!i&&t<0?0:t}px`,e.style.insetInlineEnd=`${m}px`}if(_?.startsWith(`right`)){let t=m+p;e.style.insetInlineStart=`calc(${m}px + ${c})`,e.style.insetInlineEnd=`calc(${o&&t>v?v:t}px + ${c})`}else if(_?.startsWith(`left`)){let t=h-p;e.style.insetInlineStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetInlineEnd=`calc(${m}px - ${c})`}else if(_?.startsWith(`top`)){let t=l-f;e.style.insetBlockStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetBlockEnd=`calc(${i?t:g}px - ${c})`}else if(_?.startsWith(`bottom`)){let t=g+f;e.style.insetBlockStart=`calc(${i?t:g}px + ${c})`,e.style.insetBlockEnd=`calc(${o&&t>y?y:t}px + ${c})`}b?(e.style.overflow=`hidden auto`,e.style.insetBlock=c,e.style.maxBlockSize=`calc(${y}px - 2 * ${c})`):(e.style.overflow=``,e.style.maxBlockSize=``),e.style.position=`fixed`,e.dataset.correctedPlacement=_,Qe(e)},Qe=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=$e(e),a={};return t||n?(a={vy:t?`top`:`bottom`},e.dataset.outsideVy=a.vy):delete e.dataset.outsideVy,r||i?(a={...a,vx:i?`right`:`left`},e.dataset.outsideVx=a.vx):delete e.dataset.outsideVx,a},$e=e=>{let{top:t,bottom:n,left:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window,s=t<0,c=n>a,l=r<0,u=i>o,d=e.dataset.outsideVy,f=e.dataset.outsideVx,p=e?.parentElement?.getBoundingClientRect();return p&&(d&&(e.dataset.outsideVy===`top`?s=p.top-(n-p.bottom)<0:c=p.bottom+(p.top-t)>a),f&&(e.dataset.outsideVx===`left`?l=p.left-(i-p.right)<0:u=p.right+(p.left-r)>o)),{outTop:s,outBottom:c,outLeft:l,outRight:u}},et=class{observe(e,t){let r=this.getObserver();if(!r)return;let i=n(),a=this.getCallbacksByElement(),o=this.getIdToElement(),s=a.get(e);return s||(s=new Map,a.set(e,s),this.observeElement(r,e)),s.set(i,t),o.set(i,e),i}unobserve(e){let t=this.getCallbacksByElement(),n=this.getIdToElement(),r=this.getObserver(),i=n.get(e);if(!i||!r)return;let a=t.get(i);a&&(a.delete(e),a.size===0&&(t.delete(i),this.unobserveElement(r,i))),n.delete(e)}dispatchEntry(e,t){let n=this.getCallbacksByElement().get(e);n&&n.forEach(e=>{e(t)})}},Q=class e extends et{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`IntersectionObserver`in window&&(e.observer=new IntersectionObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},$=class e extends et{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`ResizeObserver`in window&&(e.observer=new ResizeObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},tt=[`id`,`data-width`],nt=(0,t.defineComponent)({name:`DBCustomSelectDropdown`,__name:`custom-select-dropdown`,props:{width:{default:`fixed`},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{"data-spacing":`none`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-dropdown db-card`,n.class)),"data-width":e.width},[(0,t.renderSlot)(a.$slots,`default`)],10,tt))}}),rt=[`id`,`data-divider`],it=[`data-icon`,`data-show-icon`,`data-icon-trailing`],at=[`type`,`name`,`form`,`checked`,`disabled`,`value`],ot={class:`db-custom-select-list-item-label`},st={key:1},ct=(0,t.defineComponent)({name:`DBCustomSelectListItem`,__name:`custom-select-list-item`,props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=n,a=e,o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.watch)(()=>[a.isGroupTitle,a.showDivider],()=>{o.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:`post`});function c(e){e.stopPropagation(),a.onChange&&a.onChange(e),J(r,e,`checked`)}function l(){if(!(a.isGroupTitle||a.type===`checkbox`))return d(a.checked,`checked`)?`check`:`x_placeholder`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:s,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-list-item`,a.class,{"db-checkbox":e.type===`checkbox`&&!e.isGroupTitle,"db-radio":e.type!==`checkbox`&&!e.isGroupTitle})),"data-divider":(0,t.unref)(u)(o.value,`hasDivider`)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,st,(0,t.toDisplayString)(e.groupTitle),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:0,"data-icon":e.type!==`checkbox`&&e.icon?e.icon:void 0,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":l()},[(0,t.createElementVNode)(`input`,{class:`db-custom-select-list-item-checkbox`,"data-disable-focus":`true`,type:e.type,name:e.name,form:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,onChange:r[0]||=async e=>c(e)},null,40,at),(0,t.createElementVNode)(`span`,ot,[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)])],8,it))],10,rt))}}),lt=[`role`,`aria-label`,`id`],ut=(0,t.defineComponent)({name:`DBCustomSelectList`,__name:`custom-select-list`,props:{label:{default:void 0},multiple:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:e.multiple?`group`:`radiogroup`,"aria-label":e.label,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-list`,n.class))},[(0,t.createElementVNode)(`ul`,null,[(0,t.renderSlot)(a.$slots,`default`)])],10,lt))}}),dt=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],ft=[`for`],pt=`aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role`.split(`.`),mt=[`id`],ht=[`value`],gt={"data-visually-hidden":`true`,role:`status`},_t=(0,t.defineComponent)({name:`DBInput`,__name:`input`,props:{dataList:{default:void 0},dataListId:{default:void 0},multiple:{type:[Boolean,String],default:void 0},accept:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},enterkeyhint:{default:void 0},inputmode:{default:void 0},messageSize:{default:void 0},validMessageSize:{default:void 0},invalidMessageSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String],default:void 0},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),o=n,h=e,v=(0,t.ref)(void 0),y=(0,t.ref)(void 0),b=(0,t.ref)(void 0),x=(0,t.ref)(void 0),S=(0,t.ref)(void 0),C=(0,t.ref)(void 0),w=(0,t.ref)(void 0),T=(0,t.ref)(``),E=(0,t.ref)(``),D=(0,t.ref)(void 0),O=(0,t.ref)(null);(0,t.onMounted)(()=>{F(),S.value=h.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{D.value?.abort()}),(0,t.watch)(()=>[h.id,h.propOverrides?.id],()=>{(h.id??h.propOverrides?.id)&&F()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value,h.invalidMessage],()=>{S.value=h.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[v.value],()=>{if(v.value){let e=v.value+I;y.value=e,b.value=v.value+L,x.value=v.value+R,C.value=h.dataListId??v.value+`-datalist`,_(h.message,h.showMessage)&&(w.value=e),A()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[h.value],()=>{T.value=h.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value],()=>{if(O.value){let e=D.value;e||(e=new AbortController,D.value=e),Y(O.value,{value:h.value,defaultValue:void 0},e=>{M(e,!0),j(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function k(){return!!(h.validMessage??h.validation===`valid`)}function A(){!O.value?.validity.valid||h.validation===`invalid`?(w.value=x.value,S.value=h.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(E.value=S.value,l(()=>E.value=``,1e3))):k()&&O.value?.validity.valid&&(h.required||h.minLength||h.maxLength||h.pattern)?(w.value=b.value,s()&&(E.value=h.validMessage??`TODO: Add a validMessage`,l(()=>E.value=``,1e3))):_(h.message,h.showMessage)?w.value=y.value:w.value=void 0}function j(e,t){h.input&&h.input(e),T.value=e.target.value,h.onInput&&h.onInput(e),J(o,e),A()}function M(e,t){h.onChange&&h.onChange(e),J(o,e),A()}function ee(e){h.onBlur&&h.onBlur(e)}function N(e){h.onFocus&&h.onFocus(e)}function P(){let e=h.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function F(){let e=h.id??h.propOverrides?.id??`input-${r}`;v.value=e,y.value=e+I,b.value=e+L,x.value=e+R,C.value=e+z}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-input`,h.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`label`,{for:v.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,ft),(0,t.createElementVNode)(`input`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:O,id:v.value,name:e.name,type:e.type||`text`,multiple:(0,t.unref)(d)(e.multiple,`multiple`),accept:e.accept,placeholder:e.placeholder??(0,t.unref)(` `),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),step:(0,t.unref)(p)(e.step),value:e.value??T.value??``,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),max:(0,t.unref)(m)(e.max,e.type),min:(0,t.unref)(m)(e.min,e.type),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,pattern:e.pattern,size:e.size,autoComplete:e.autocomplete,autoFocus:(0,t.unref)(d)(e.autofocus,`autofocus`),enterKeyHint:e.enterkeyhint,inputMode:e.inputmode,onInput:r[0]||=async e=>j(e),onChange:r[1]||=async e=>M(e),onBlur:r[2]||=async e=>ee(e),onFocus:r[3]||=async e=>N(e),list:e.dataList&&C.value,"aria-describedby":e.ariaDescribedBy??w.value,role:[`datetime-local`,`date`,`time`,`week`,`month`,`color`].includes(e.type??``)&&(0,t.unref)(c)()?`textbox`:void 0},null,40,pt),e.dataList?((0,t.openBlock)(),(0,t.createElementBlock)(`datalist`,{key:0,id:C.value},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(P(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,ht))),128))],8,mt)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:e.messageSize||`small`,icon:e.messageIcon,id:y.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`size`,`icon`,`id`])):(0,t.createCommentVNode)(``,!0),k()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,semantic:`successful`,id:b.value,size:e.validMessageSize||`small`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`,`size`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{semantic:`critical`,id:x.value,size:e.invalidMessageSize||`small`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(S.value),1)]),_:1},8,[`id`,`size`]),(0,t.createElementVNode)(`span`,gt,(0,t.toDisplayString)(E.value),1)],10,dt))}}),vt=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],yt=(0,t.defineComponent)({name:`DBTooltip`,__name:`tooltip`,props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(0),h=(0,t.ref)([]),g=(0,t.ref)(null);(0,t.onMounted)(()=>{w(),o.value=!0}),(0,t.onUnmounted)(()=>{T()}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&w()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[g.value,o.value,a.value],()=>{if(g.value&&o.value&&a.value){let e=y();if(e){b(e);let t=()=>C(e),n=()=>S(),i=e=>v(e);if(e.addEventListener(`mouseenter`,t),e.addEventListener(`focusin`,t),e.addEventListener(`keydown`,i),e.addEventListener(`mouseleave`,n),e.addEventListener(`focusout`,n),h.value=[...h.value??[],{parent:e,type:`mouseenter`,fn:t},{parent:e,type:`focusin`,fn:t},{parent:e,type:`keydown`,fn:i},{parent:e,type:`mouseleave`,fn:n},{parent:e,type:`focusout`,fn:n}],e.dataset.hasTooltip=`true`,r.variant===`label`)e.setAttribute(`aria-labelledby`,a.value);else{let t=(e.getAttribute(`aria-describedby`)||``).split(` `).filter(e=>e!==``);t.includes(a.value)||t.push(a.value),e.setAttribute(`aria-describedby`,t.join(` `))}f.value=e,p.value=a.value}o.value=!1}},{immediate:!0,flush:`post`});function _(e){e.stopPropagation()}function v(e){(!e||e.key===`Escape`)&&g.value&&getComputedStyle(g.value).visibility===`visible`&&y().blur()}function y(){let e=g.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function b(e){e&&g.value&&l(()=>{g.value&&Ze(g.value,e)},1)}function x(e,t){e?.target?.contains&&e?.target?.contains(g.value)&&b(t)}function S(){m.value=Math.max((m.value??0)-1,0),!((m.value??0)>0)&&(s.value&&=(new Z().removeCallback(s.value),void 0),d.value&&=(new $().unobserve(d.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0))}function C(e){m.value=(m.value??0)+1,m.value===1&&(s.value=new Z().addCallback(t=>x(t,e)),d.value=new $().observe(document.documentElement,()=>b(e)),c.value=new Q().observe(y(),e=>{e.isIntersecting||v(!1)})),b(e)}function w(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}function T(){let e=s.value;e&&(new Z().removeCallback(e),s.value=void 0),d.value&&=(new $().unobserve(d.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0),m.value=0,(h.value??[]).forEach(e=>{e.parent.removeEventListener(e.type,e.fn)}),h.value=[];let t=f.value;if(t){let e=p.value??a.value,n=t.querySelectorAll(`.db-tooltip`),r=Array.from(n).some(e=>e!==g.value);t.dataset.hasTooltip===`true`&&!r&&delete t.dataset.hasTooltip,t.getAttribute(`aria-labelledby`)===e&&t.removeAttribute(`aria-labelledby`);let i=t.getAttribute(`aria-describedby`)||``,o=i.split(` `).filter(t=>t!==``&&t!==e).join(` `);o?t.setAttribute(`aria-describedby`,o):i&&t.removeAttribute(`aria-describedby`),f.value=void 0,p.value=void 0}}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:g,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tooltip`,r.class)),id:a.value,"data-emphasis":e.emphasis,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(u)(e.showArrow??!0,`showArrow`),"data-placement":e.placement,onClick:o[0]||=async e=>_(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,vt))}}),bt=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],xt=(0,t.defineComponent)({name:`DBTag`,__name:`tag`,props:{behavior:{default:void 0},removeButton:{default:void 0},showCheckState:{type:[Boolean,String],default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},semantic:{default:void 0},overflow:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},content:{},onRemove:{type:Function,default:void 0},remove:{},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onRemove&&n.onRemove(e))}function o(){return n.removeButton?n.removeButton:ie}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tag`,n.class)),"data-semantic":e.semantic,"data-emphasis":e.emphasis,"data-icon":e.icon,"data-show-check-state":(0,t.unref)(u)(e.showCheckState??!0,`showCheckState`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),"data-overflow":(0,t.unref)(u)(e.overflow,`overflow`)},[(0,t.renderSlot)(s.$slots,`content`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`),e.behavior===`removable`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`db-button db-tab-remove-button`,"data-icon":`cross`,"data-size":`small`,"data-no-text":`true`,"data-variant":`ghost`,type:`button`,onClick:c[0]||=async e=>a(e)},[(0,t.createVNode)(yt,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,bt))}}),St=[`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`],Ct=[`id`],wt=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],Tt=[`disabled`,`value`],Et=[`open`],Dt=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],Ot=[`data-visually-hidden`,`id`],kt={key:0,"data-visually-hidden":`true`},At={key:1},jt={key:0},Mt={key:0},Nt={class:`db-checkbox db-custom-select-list-item`},Pt=[`form`,`checked`],Ft=[`id`],It={"data-visually-hidden":`true`,role:`status`},Lt=(0,t.defineComponent)({name:`DBCustomSelect`,__name:`custom-select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},amountText:{default:void 0},listLabel:{default:void 0},clearSelectionText:{default:`Clear selection`},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchFilter:{type:Function,default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},searchValue:{default:void 0},selectAllLabel:{default:void 0},selectedLabels:{default:void 0},selectedPrefix:{default:void 0},selectedType:{default:void 0},showClearSelection:{type:Boolean,default:!0},showLoading:{type:Boolean,default:void 0},showNoResults:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},showSelectAll:{type:Boolean,default:void 0},transformSelectedLabels:{type:Function,default:void 0},values:{default:void 0},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},onSearch:{type:Function,default:void 0},search:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:[`update:values`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),y=(0,t.ref)(void 0),b=(0,t.ref)(void 0),x=(0,t.ref)(void 0),S=(0,t.ref)(void 0),C=(0,t.ref)(void 0),w=(0,t.ref)(`no-validation`),T=(0,t.ref)(!1),E=(0,t.ref)(void 0),D=(0,t.ref)(void 0),O=(0,t.ref)(``),k=(0,t.ref)(void 0),A=(0,t.ref)(``),j=(0,t.ref)([]),M=(0,t.ref)(!1),ee=(0,t.ref)(!1),N=(0,t.ref)(0),P=(0,t.ref)([]),z=(0,t.ref)([]),B=(0,t.ref)(!1),re=(0,t.ref)(void 0),ae=(0,t.ref)(0),se=(0,t.ref)(void 0),ce=(0,t.ref)(void 0),le=(0,t.ref)(void 0),ue=(0,t.ref)(void 0),de=(0,t.ref)(!1),fe=(0,t.ref)(!1),pe=(0,t.ref)(null),V=(0,t.ref)(null),H=(0,t.ref)(null),me=(0,t.ref)(null),he=(0,t.ref)(null);(0,t.onMounted)(()=>{Ie(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{E.value?.abort(),re.value&&new Ge().removeCallback(re.value),se.value&&new Z().removeCallback(se.value),le.value&&new $().unobserve(le.value),ce.value&&new Q().unobserve(ce.value)}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&Ie()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[V.value],()=>{V.value&&V.value.addEventListener(`focusout`,e=>De(e))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+I;b.value=c.value+F,y.value=c.value+te,p.value=c.value+L,m.value=c.value+R,S.value=c.value+ne,_(o.message,o.showMessage)?U(e):U()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[V.value,D.value],()=>{if(V.value){let e=V.value.querySelector(`summary`);e&&e.setAttribute(`aria-describedby`,o.ariaDescribedBy??(D.value||``))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showNoResults,o.showLoading,z.value],()=>{o.showNoResults===void 0?z.value&&(B.value=z.value.length===0):B.value=o.showNoResults},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSelectAll,N.value,o.multiple],()=>{M.value=!!(o.multiple&&(o.showSelectAll??N.value>5))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSearch,N.value],()=>{ee.value=o.showSearch??N.value>9},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.values],()=>{let e=o.values;Array.isArray(e)?P.value!==e&&(P.value=e):e==null&&P.value?.length!==0&&(P.value=[])},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[P.value,H.value],()=>{H.value&&ve()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value],()=>{if(H.value){let e=E.value;e||(e=new AbortController,E.value=e);let t=o.values;Pe(H.value,()=>{q(t||(H.value.value?[H.value.value]:[])),ve()},e.signal)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation],()=>{w.value=o.validation},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[P.value,N.value],()=>{P.value?.length===0?(de.value=!1,fe.value=!1):P.value?.length===N.value?(fe.value=!1,de.value=!0):P.value&&(fe.value=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options],()=>{z.value=o.options,N.value=o.options?.filter(e=>!e.isGroupTitle).length??0,V.value?.open&&G()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(ue.value=o.searchValue,o.searchValue){let e=o.searchValue;Ne(e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options,P.value],()=>{o.options?.length&&(j.value=o.options?.filter(e=>!e.value||!P.value?.includes?!1:!e.isGroupTitle&&P.value?.includes(e.value)))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[j.value,o.selectedType,o.amountText,o.selectedLabels,o.transformSelectedLabels],()=>{if(o.selectedLabels){O.value=o.selectedLabels;return}if(j.value?.length){if(o.transformSelectedLabels){let e=j.value,t=o.transformSelectedLabels;O.value=t(e);return}o.selectedType===`amount`?O.value=o.amountText?o.amountText:`${j.value?.length} ${oe}`:O.value=j.value?.map(e=>W(e)).join(`, `)}else O.value=``},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[j.value],()=>{o.onAmountChange&&o.onAmountChange(j.value?.length??0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[fe.value,me.value],()=>{me.value&&(me.value.indeterminate=!!fe.value)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value,o.invalidMessage],()=>{h.value=o.invalidMessage||H.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`});function ge(e){e?.target?.contains&&e?.target?.contains(V.value)&&G()}function _e(){return!!(o.validMessage??o.validation===`valid`)}function ve(){H.value&&(H.value.value=be()),!H.value?.validity.valid||o.validation===`invalid`?(U(m.value),h.value=o.invalidMessage||H.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(A.value=h.value,l(()=>A.value=``,1e3)),T.value&&(w.value=o.validation??`invalid`)):_e()&&H.value?.validity.valid&&o.required?(U(p.value),s()&&(A.value=o.validMessage??`TODO: Add a validMessage`,l(()=>A.value=``,1e3)),w.value=o.validation??`valid`):_(o.message,o.showMessage)?(U(f.value),w.value=o.validation??`no-validation`):(U(S.value),w.value=o.validation??`no-validation`)}function ye(e){o.onDropdownToggle&&(e.stopPropagation(),o.onDropdownToggle(e)),e.target instanceof HTMLDetailsElement&&e.target.open?(re.value=new Ge().addCallback(e=>Oe(e)),se.value=new Z().addCallback(e=>ge(e)),G(),le.value=new $().observe(document.documentElement,()=>G()),ce.value=new Q().observe(V.value,e=>{!e.isIntersecting&&V.value.open&&(V.value.open=!1)}),e.target.dataset.test||Me()):(re.value&&new Ge().removeCallback(re.value),se.value&&new Z().removeCallback(se.value),le.value&&new $().unobserve(le.value),ce.value&&new Q().unobserve(ce.value))}function be(){return P.value?.length?P.value.at(0)??``:``}function U(e){let t=[];e&&t.push(e),k.value&&O.value?.length&&t.push(k.value),D.value=t.join(` `)}function xe(){return o.selectAllLabel??`LABEL SHOULD BE SET`}function W(e){return e.label??e.value?.toString()??``}function Se(e){return e&&P.value?.includes?P.value?.includes(e):!1}function Ce(e){let t=o.removeTagsTexts,n=o.options;if(t&&n){let r=n.findIndex(t=>t.value===e.value);if(r>=0&&r<t.length)return t[r]}return`${ie} ${W(e)}`}function we(e,t){t&&t.stopPropagation(),ke(e.value),Y()}function G(){if(V.value){let e=V.value.querySelector(`article`);e&&l(()=>{Ke(e,V.value,o.placement??`bottom`)},1)}}function Te(e){if(V.value?.open){if(self.document){let t=self.document.activeElement;if(t)if(t.getAttribute(`type`)===`checkbox`||t.getAttribute(`type`)===`radio`){let n=t?.closest(`li`);if(e.key===`ArrowDown`||e.key===`ArrowRight`){let e=n?.nextElementSibling;for(;e;){let t=e.querySelector(`input`);if(t){t.focus();break}e=e.nextElementSibling}e||je(t)}else{let e=n?.previousElementSibling;for(;e;){let t=e.querySelector(`input`);if(t){t.focus();break}e=e.previousElementSibling}if(!e){let e=V.value.querySelector(`input[type="checkbox"]`);if(e&&e!==t)je(t);else{let e=v(V.value);if(e)l(()=>{e.focus()},100);else{let e=Array.from(V.value?.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));e.length&&e.at(-1)?.focus()}}}}}else t.getAttribute(`type`)===`search`&&(e.key===`ArrowUp`||e.key===`ArrowLeft`)?(De(void 0,!0),Y()):je(t)}}else(e.key===`ArrowDown`||e.key===`ArrowRight`)&&(G(),V.value&&(V.value.open=!0),Me());e.stopPropagation(),e.preventDefault()}function Ee(e){if(e.stopPropagation(),e.key===`Escape`&&V.value?.open)De(void 0,!0),Y();else if(e.key===`Enter`&&V.value?.open){if(self.document){let t=self.document.activeElement;if([`checkbox`,`radio`].includes(t.getAttribute(`type`)||``))t.click(),e.preventDefault();else if(t.getAttribute(`type`)===`search`){let t=z.value?.find(e=>!e.isGroupTitle&&!e.disabled);t?.value&&(ke(t.value),e.preventDefault())}}}else(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&Te(e)}function De(e,t){if(V.value){if(t)V.value.open=!1,Y();else if(V.value.open&&e&&e.relatedTarget){let t=e.relatedTarget;!V.value.contains(t)&&t.localName!==`dialog`&&l(()=>V.value.open=!1,1)}}}function Oe(e){if(e){let t=e.target;V.value?.open&&!V.value.contains(t)&&(V.value.open=!1)}}function q(e){new Date().getTime()-ae.value<200||(P.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),J(a,{target:{values:e}},`values`),ae.value=new Date().getTime())}function ke(e){e&&(o.multiple?P.value?.includes(e)?q(P.value.filter(t=>t!==e)):q([...P.value||[],e]):(q([e]),De(void 0,!0)))}function Ae(e){if(e.stopPropagation(),P.value?.length===N.value)q([]);else{let e=ee.value&&he.value?he.value.value:void 0;q(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function je(e){if(V.value){let t=Array.from(V.value.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(t.length){let n=t.at(0),r=n===e&&t.length>1?t.at(1):n;r&&l(()=>{r.focus()},1)}}}function Me(){if(V.value){let e=v(V.value);e?l(()=>{e.focus()},1):je()}}function Ne(e){if(e===void 0)return;let t;if(typeof e==`string`)t=e;else{let n=e;n.stopPropagation(),o.onSearch&&o.onSearch(n),t=n.target.value,ue.value=t}!o.options||!t||t.length===0?z.value=o.options:o.searchFilter?z.value=o.options.filter(e=>o.searchFilter(e,t)):z.value=o.options.filter(e=>!e.isGroupTitle&&W(e).toLowerCase().includes(t.toLowerCase())),V.value?.open&&G()}function Fe(e){e.stopPropagation(),q([]),Y()}function Y(){V.value&&V.value.querySelector(`summary`)?.focus()}function Ie(){let e=o.id??o.propOverrides?.id??`custom-select-${r}`;c.value=e,f.value=e+I,p.value=e+L,m.value=e+R,y.value=e+te,b.value=e+F,x.value=e+`-summary`,S.value=e+ne,k.value=e+`-selected-labels`,C.value=e+`-info`}function Le(e){e.stopPropagation()}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:c.value,ref_key:`_ref`,ref:pe,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select`,o.class)),"aria-invalid":w.value===`invalid`,"data-custom-validity":w.value,"data-width":e.formFieldWidth,"data-variant":e.variant===`floating`&&e.selectedType===`tag`&&e.multiple?`above`:e.variant,"data-required":(0,t.unref)(u)(e.required,`required`),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-placement":e.placement,"data-selected-type":e.multiple?e.selectedType:`text`,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{id:b.value},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),1),(0,t.createElementVNode)(`select`,{role:`none`,hidden:!0,id:y.value,tabIndex:-1,ref_key:`selectRef`,ref:H,form:e.form,name:e.name,"data-custom-validity":w.value,multiple:(0,t.unref)(d)(e.multiple,`multiple`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),onChange:r[0]||=async e=>Le(e)},[e.options?.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,disabled:e.disabled,value:e.value},(0,t.toDisplayString)(W(e)),9,Tt))),128)):(0,t.createCommentVNode)(``,!0)],40,wt)],8,Ct),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:V,open:e.open,onToggle:r[2]||=async e=>ye(e),onKeydown:r[3]||=async e=>Ee(e)},[(0,t.renderSlot)(n.$slots,`default`),e.options?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`summary`,{class:`db-custom-select-form-field`,id:x.value,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:void 0,"aria-labelledby":b.value},[O.value?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,"data-visually-hidden":(0,t.unref)(u)(e.selectedType===`tag`,`selectedType`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kt,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,Ot)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,At,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(xt,{key:n,emphasis:`strong`,behavior:`removable`,removeButton:Ce(e),onRemove:t=>we(e,t)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(W(e)),1)]),_:2},1032,[`removeButton`,`onRemove`]))),128))])):(0,t.createCommentVNode)(``,!0)],8,Dt),(0,t.createVNode)(nt,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[ee.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jt,[(0,t.createVNode)(_t,{type:`search`,ref_key:`searchInputRef`,ref:he,name:c.value,form:c.value,showLabel:!1,value:ue.value,label:e.searchLabel??(0,t.unref)(`LABEL SHOULD BE SET`),placeholder:e.searchPlaceholder??e.searchLabel,ariaDescribedBy:B.value||e.showLoading?C.value:void 0,onInput:e=>Ne(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),B.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,id:C.value,icon:e.showLoading?`circular_arrows`:void 0,semantic:e.showLoading?`informational`:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((e.showLoading?e.loadingText:e.noResultsText)??(0,t.unref)(`MESSAGE SHOULD BE SET`)),1)]),_:1},8,[`id`,`icon`,`semantic`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[M.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Mt,[(0,t.createElementVNode)(`div`,Nt,[(0,t.createElementVNode)(`label`,null,[(0,t.createElementVNode)(`input`,{type:`checkbox`,value:`select-all`,ref_key:`selectAllRef`,ref:me,form:c.value,checked:de.value,onChange:r[1]||=async e=>Ae(e)},null,40,Pt),(0,t.createTextVNode)((0,t.toDisplayString)(xe()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(ut,{multiple:(0,t.unref)(d)(e.multiple,`multiple`),label:e.listLabel??e.label??(0,t.unref)(`LABEL SHOULD BE SET`)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(z.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(ct,{key:r,type:e.multiple?`checkbox`:`radio`,showDivider:n.showDivider,icon:n.icon,isGroupTitle:n.isGroupTitle,groupTitle:W(n),name:c.value,checked:Se(n.value),disabled:n.disabled,value:n.value,onChange:e=>ke(n.value)},{default:(0,t.withCtx)(()=>[n.isGroupTitle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(W(n)),1)],64))]),_:2},1032,[`type`,`showDivider`,`icon`,`isGroupTitle`,`groupTitle`,`name`,`checked`,`disabled`,`value`,`onChange`]))),128))]),_:1},8,[`multiple`,`label`])],64)),(0,t.createElementVNode)(`div`,null,[(0,t.createVNode)(K,{variant:`ghost`,width:`full`,icon:`cross`,size:`small`,name:c.value,form:c.value,onClick:e=>De(void 0,!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.mobileCloseButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`name`,`form`,`onClick`])])]),_:1},8,[`width`])],64)):(0,t.createCommentVNode)(``,!0)],40,Et),(e.showClearSelection??!0)&&P.value?.length?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,icon:`cross`,variant:`ghost`,size:`small`,noText:!0,name:c.value,form:c.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),onClick:e=>Fe(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)(yt,{placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1)]),_:1})]),_:1},8,[`name`,`form`,`disabled`,`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`db-custom-select-placeholder`,"aria-hidden":`true`,id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,Ft),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),_e()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,It,(0,t.toDisplayString)(A.value),1)],10,St))}}),Rt=[`fixed`,`auto`,`full`],zt=[`id`],Bt=(0,t.defineComponent)({name:`DBCustomSelectFormField`,__name:`custom-select-form-field`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`summary`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-form-field`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,zt))}}),Vt=[`checkbox`,`radio`],Ht=[`amount`,`text`,`tag`],Ut=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],Wt=(0,t.defineComponent)({name:`DBDivider`,__name:`divider`,props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,"data-margin":e.margin,"data-variant":e.variant,"data-emphasis":e.emphasis,"data-width":e.width,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-divider`,n.class))},null,10,Ut))}}),Gt=[`none`,`_`],Kt=[`horizontal`,`vertical`],qt=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],Jt=[`data-container-size`,`data-show-spacing`,`data-direction`,`data-rounded`],Yt={class:`db-drawer-content`},Xt=(0,t.defineComponent)({name:`DBDrawer`,__name:`drawer`,props:{backdrop:{default:void 0},direction:{default:void 0},header:{},footer:{},showSpacing:{type:[Boolean,String],default:void 0},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},position:{default:void 0},containerSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClose:{type:Function,default:void 0},close:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(void 0),s=(0,t.ref)(null),c=(0,t.ref)(null);(0,t.onMounted)(()=>{h(),r.value=!0}),(0,t.onUnmounted)(()=>{if(o.value!==void 0&&clearTimeout(o.value),s.value&&n.position===`absolute`){let e=s.value.parentElement;e&&(e.style.position=``)}}),(0,t.watch)(()=>[n.open],()=>{h()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[s.value,r.value,n.position],()=>{if(s.value&&r.value&&n.position===`absolute`){let e=s.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function f(){return n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`}function p(e){a.value=e?.target?.nodeName===`DIALOG`}function m(e,t){if(e)if(x(e))e.key===`Escape`&&(e.preventDefault(),n.onClose&&n.onClose(e));else{t&&(e.stopPropagation(),n.onClose&&n.onClose(e));let r=e.target?.nodeName===`DIALOG`&&e.type===`click`&&n.backdrop!==`none`&&a.value,i=!!e.target?.closest?.(`[data-action="close"]`);(r||i)&&n.onClose&&n.onClose(e),a.value=!1}}function h(){if(s.value){let e=d(n.open,`open`);if(e&&o.value!==void 0&&(clearTimeout(o.value),o.value=void 0,c.value&&(c.value.dataset.transition=`open`)),e&&!s.value.open&&(c.value&&c.value.removeAttribute(`data-transition`),f()?s.value.show():s.value.showModal(),l(()=>{c.value&&(c.value.dataset.transition=`open`)},1)),!e&&s.value.open){c.value&&(c.value.dataset.transition=`close`),o.value!==void 0&&clearTimeout(o.value);let e=0;if(c.value){let t=getComputedStyle(c.value).getPropertyValue(`--db-drawer-close-delay`).trim(),n=parseFloat(t);n>0&&(e=n*1e3+1)}o.value=window.setTimeout(()=>{s.value?.close(),o.value=void 0},e)}}}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:s,onClick:a[0]||=async e=>m(e),onMousedown:a[1]||=async e=>p(e),onKeydown:a[2]||=async e=>m(e),"data-position":e.position,"data-backdrop":e.backdrop,"data-direction":e.direction,"data-variant":e.variant},[(0,t.createElementVNode)(`article`,{ref_key:`dialogContainerRef`,ref:c,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-container-size":e.containerSize,"data-show-spacing":(0,t.unref)(u)(e.showSpacing??!0,`showSpacing`),"data-direction":e.direction,"data-rounded":(0,t.unref)(u)(e.rounded,`rounded`)},[(0,t.renderSlot)(r.$slots,`header`),(0,t.createElementVNode)(`div`,Yt,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.renderSlot)(r.$slots,`footer`)],10,Jt)],40,qt))}}),Zt=[`id`],Qt=(0,t.defineComponent)({name:`DBDrawerFooter`,__name:`drawer-footer`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-footer`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Zt))}}),$t=[`id`],en=[`id`],tn={key:0},nn=(0,t.defineComponent)({name:`DBDrawerHeader`,__name:`drawer-header`,props:{closeButtonId:{default:void 0},closeButtonText:{default:fe},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},startSlot:{},endSlot:{}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(`db-drawer-header-heading-`+n),o=(0,t.ref)(null);(0,t.onMounted)(()=>{s()}),(0,t.onUnmounted)(()=>{c()});function s(){if(o.value){let e=o.value.closest(`dialog`);e&&e.setAttribute(`aria-labelledby`,a.value)}}function c(){if(o.value){let e=o.value.closest(`dialog`);e&&e.getAttribute(`aria-labelledby`)===a.value&&e.removeAttribute(`aria-labelledby`)}}return(n,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-header`,r.class))},[(0,t.createElementVNode)(`header`,{class:`db-drawer-header-container`,id:a.value},[(0,t.renderSlot)(n.$slots,`start-slot`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`h2`,tn,(0,t.toDisplayString)(e.text),1)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,en),(0,t.renderSlot)(n.$slots,`end-slot`),(0,t.createVNode)(K,{"data-action":`close`,icon:`cross`,variant:`ghost`,type:`button`,id:e.closeButtonId,noText:!0},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1),(0,t.createVNode)(yt,null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1)]),_:1})]),_:1},8,[`id`])],10,$t))}}),rn=[`none`,`strong`,`weak`,`invisible`],an=[`to-left`,`to-right`,`up`,`down`],on=[`modal`,`inside`],sn=[`fixed`,`absolute`],cn=[`small`,`medium`,`large`,`full`],ln=e=>{let{target:t}=e;return!!(!t?.classList?.contains(`db-navigation-item-expand-button`)&&t?.parentElement?.classList.contains(`db-navigation-item`))},un=class{element;subNavigation;parentSubNavigation=null;triangleData;initialized=!1;mouseX=0;mouseY=0;constructor(e,t){this.element=e,this.subNavigation=t,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=this.element?.closest(`.db-sub-navigation`),this.parentSubNavigation&&!this.element.closest(`.db-drawer`)&&this.init())}init(){let e=this.parentSubNavigation?.getBoundingClientRect().width??0;this.element?.style.setProperty(`--db-navigation-item-inline-size`,`${e}px`),this.initialized=!0}enableFollow(){if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;let e=Qe(this.subNavigation),t=this.element.getBoundingClientRect(),n=this.parentSubNavigation?.getBoundingClientRect().width??0;this.triangleData={itemRect:t,parentElementWidth:n,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(n-t.width)/2,outsideVX:e.vx,outsideVY:e.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?this.triangleData.outsideVX===`right`?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,this.triangleData.itemRect.width*.75):0}getTriangleTipY(){if(!this.triangleData)return 0;let e=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY===`bottom`?e+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):e}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;let e=this.triangleData.outsideVX===`right`;return!!(e&&this.mouseX<-1*this.triangleData.padding||!e&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(e){if(!this.triangleData)return;if(e===`fill-gap`){let e=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${t} ${e}`,lt:`${t} 0`,rt:`100% 0`,rb:`100% ${e}`}}let t=this.getTriangleTipX(),n=this.getTriangleTipY();return{lb:`${t}px ${n}px`,lt:`${t}px ${n}px`,rt:`100% 0`,rb:`100% 100%`}}followByMouseEvent(e){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=e.clientX-this.triangleData.itemRect.left,this.mouseY=e.clientY-this.triangleData.itemRect.top;let t=this.hasMouseEnteredSubNavigation(),n=this.getTriangleCoordinates(t?`fill-gap`:`safe-triangle`);n&&(this.element.style.setProperty(`--db-navigation-item-clip-path`,`polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`),t&&(this.triangleData=void 0))}},dn=[`id`,`data-width`,`data-on-forcing-mobile`],fn={class:`db-header-meta-navigation`},pn={class:`db-header-navigation-bar`},mn={class:`db-header-brand-container`},hn={class:`db-header-navigation-container`},gn={class:`db-header-navigation`},_n={class:`db-header-primary-action`},vn={class:`db-header-action-container`},yn={class:`db-header-burger-menu-container`},bn={class:`db-header-secondary-action`},xn={class:`db-header-drawer-navigation`},Sn={class:`db-header-meta-navigation`},Cn={class:`db-header-secondary-action`},wn=(0,t.defineComponent)({name:`DBHeader`,__name:`header`,props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},drawerHeaderText:{default:void 0},burgerMenuLabel:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(e){let n=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0}),(0,t.watch)(()=>[a.value,s.value],()=>{a.value&&s.value&&n.forceMobile&&(r(s.value,{key:`data-force-mobile`,value:`true`}),o.value=!0)},{immediate:!0,flush:`post`});function c(e){e&&e.stopPropagation&&e.stopPropagation();let t=!d(n.drawerOpen,`drawerOpen`);n.onToggle&&n.onToggle(t)}function l(e){ln(e)&&c()}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-header`,n.class)),id:e.id??e.propOverrides?.id,"data-width":e.width,"data-on-forcing-mobile":e.forceMobile&&!o.value},[(0,t.createElementVNode)(`div`,fn,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,pn,[(0,t.createElementVNode)(`div`,mn,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,hn,[(0,t.createElementVNode)(`div`,gn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,_n,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,vn,[(0,t.createElementVNode)(`div`,yn,[(0,t.createVNode)(K,{icon:`menu`,variant:`ghost`,noText:!0,onClick:e=>c()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.burgerMenuLabel??(0,t.unref)(`Open navigation menu`)),1)]),_:1},8,[`onClick`])]),(0,t.createElementVNode)(`div`,bn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])]),(0,t.createVNode)(Xt,{rounded:!0,open:(0,t.unref)(d)(e.drawerOpen),onClose:e=>c()},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(nn,{closeButtonId:e.closeButtonId,closeButtonText:e.closeButtonText,text:e.drawerHeaderText},null,8,[`closeButtonId`,`closeButtonText`,`text`])]),footer:(0,t.withCtx)(()=>[(0,t.createVNode)(Qt,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Cn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,xn,[(0,t.createElementVNode)(`div`,{class:`db-header-navigation`,onClick:a[0]||=async e=>l(e)},[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,Sn,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])])]),_:3},8,[`open`,`onClose`])],10,dn))}}),Tn=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],En=(0,t.defineComponent)({name:`DBIcon`,__name:`icon`,props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{"aria-hidden":`true`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-icon`,n.class)),"data-icon":e.icon,"data-icon-weight":e.weight,"data-icon-variant":e.variant},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Tn))}}),Dn=[`16`,`20`,`24`,`32`,`48`,`64`],On=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],kn=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],An=(0,t.defineComponent)({name:`DBLink`,__name:`link`,props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},disabled:{type:[Boolean,String],default:void 0},href:{default:void 0},hreflang:{default:void 0},target:{default:void 0},rel:{default:void 0},referrerpolicy:{default:void 0},referrerPolicy:{default:void 0},role:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){n.onClick&&n.onClick(e)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-link`,n.class)),href:e.href,target:e.target,rel:e.rel,role:e.role,referrerPolicy:e.referrerpolicy??e.referrerPolicy,hrefLang:e.hreflang,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(u)(e.showIcon??!0,`showIcon`),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),onClick:s[0]||=async e=>a(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)],10,kn))}}),jn=[`adaptive`,`brand`,`inline`],Mn=[`medium`,`small`],Nn=[`external`,`internal`],Pn=[`id`],Fn=(0,t.defineComponent)({name:`DBNavigation`,__name:`navigation`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-navigation`,n.class))},[(0,t.createElementVNode)(`menu`,null,[(0,t.renderSlot)(a.$slots,`default`)])],10,Pn))}}),In=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],Ln=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],Rn=[`id`,`aria-labelledby`,`data-force-close`],zn={key:0,class:`db-mobile-navigation-back`},Bn=(0,t.defineComponent)({name:`DBNavigationItem`,__name:`navigation-item`,props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},hideSubNavigation:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!0),c=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0;let e=`sub-nav-${r.id??n}`;m.value=e,h.value=`${e}-toggle`}),(0,t.watch)(()=>[r.subNavigationExpanded],()=>{r.subNavigationExpanded!==void 0&&(c.value=!!d(r.subNavigationExpanded,`subNavigationExpanded`))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.value,g.value],()=>{if(a.value&&g.value){let e=g.value.querySelector(`menu`);e&&(e.children?.length>0?(o.value=!0,p.value||=new un(g.value,e)):s.value=!1)}},{immediate:!0,flush:`post`});function _(e){e?.target?.nodeName===`A`&&(f.value=!0,l(()=>{f.value=!1},1e3))}function v(e){r.onClick&&(e.stopPropagation(),r.onClick(e)),o.value&&(c.value=!0)}function y(e){e.stopPropagation(),c.value=!1}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:g,id:e.id??e.propOverrides?.id,onMouseover:a[2]||=async e=>p.value?.enableFollow(),onMouseleave:a[3]||=async e=>p.value?.disableFollow(),onMousemove:a[4]||=async e=>p.value?.followByMouseEvent(e),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-navigation-item`,r.class)),"data-width":e.width,"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-active":(0,t.unref)(d)(e.active,`active`),"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`)},[!(0,t.unref)(d)(e.hideSubNavigation,`hideSubNavigation`)&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`button`,{class:`db-navigation-item-expand-button`,id:h.value,"aria-haspopup":o.value?`true`:void 0,"aria-expanded":c.value,"aria-controls":m.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),onClick:a[0]||=async e=>v(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,Ln),(0,t.createElementVNode)(`menu`,{class:`db-sub-navigation`,id:m.value,"aria-labelledby":h.value,"data-force-close":f.value,onClick:a[1]||=async e=>_(e)},[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zn,[(0,t.createVNode)(K,{icon:`arrow_left`,variant:`ghost`,id:e.backButtonId,onClick:e=>y(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.backButtonText??(0,t.unref)(`Back`)),1)]),_:1},8,[`id`,`onClick`])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`sub-navigation`)],8,Rn)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],64))],42,In))}}),Vn=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],Hn={key:0,"data-area":`head`},Un={"data-area":`content`},Wn=[`dateTime`],Gn=(0,t.defineComponent)({name:`DBNotification`,__name:`notification`,props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},timestampDatetime:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},role:{default:void 0},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onClose&&n.onClose(e))}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-notification`,n.class)),role:(0,t.unref)(S)({semantic:e.semantic,role:e.role,ariaLive:e.ariaLive}),"aria-live":e.ariaLive,"data-semantic":e.semantic,"data-variant":e.variant,"data-icon":(0,t.unref)(d)(e.showIcon)===!1?void 0:e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-link-variant":e.linkVariant},[(0,t.renderSlot)(o.$slots,`image`),(0,t.unref)(_)(e.headline,e.showHeadline)?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Hn,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Un,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)]),(0,t.unref)(_)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`time`,{key:1,"data-area":`timestamp`,dateTime:e.timestampDatetime},(0,t.toDisplayString)(e.timestamp),9,Wn)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`link`),(0,t.unref)(d)(e.closeable,`closeable`)?((0,t.openBlock)(),(0,t.createBlock)(K,{key:2,icon:`cross`,variant:`ghost`,size:`small`,id:e.closeButtonId,noText:!0,onClick:e=>a(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`id`,`onClick`])):(0,t.createCommentVNode)(``,!0)],10,Vn))}}),Kn=[`docked`,`standalone`,`overlay`],qn=[`block`,`inline`],Jn=[`assertive`,`polite`,`off`],Yn=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Xn=(0,t.defineComponent)({name:`DBPage`,__name:`page`,props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return typeof window<`u`&&document&&(n.documentOverflow===`hidden`||n.variant===`fixed`&&n.documentOverflow!==`auto`)&&document.documentElement.classList.add(`db-page-document`),(0,t.onMounted)(()=>{r.value=!n.fadeIn,document&&n.fadeIn?document.fonts.ready.then(()=>{r.value=!0}):r.value=!0}),(0,t.onUnmounted)(()=>{typeof window<`u`&&document.documentElement.classList.contains(`db-page-document`)&&document.documentElement.classList.remove(`db-page-document`)}),(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-page`,n.class)),"data-variant":e.variant,"data-fade-in":(0,t.unref)(u)(e.fadeIn,`fadeIn`),"data-fonts-loaded":(0,t.unref)(u)(r.value,`fontsLoaded`)},[(0,t.renderSlot)(o.$slots,`header`),(0,t.createElementVNode)(`main`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-main`,e.mainClass))},[(0,t.renderSlot)(o.$slots,`default`)],2),(0,t.renderSlot)(o.$slots,`footer`)],10,Yn))}}),Zn=[`auto`,`fixed`],Qn=[`hidden`,`auto`],$n=[`id`],er=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],tr=(0,t.defineComponent)({name:`DBPopover`,__name:`popover`,props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(void 0),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.onUnmounted)(()=>{o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0)}),(0,t.watch)(()=>[d.value,r.value],()=>{if(d.value&&r.value){r.value=!1;let e=_();e&&(e.ariaHasPopup=`true`),p(),d.value.addEventListener(`keydown`,e=>f(e)),[`mouseenter`,`focusin`].forEach(e=>{d.value.addEventListener(e,()=>h())}),[`mouseleave`,`focusout`].forEach(e=>{d.value.addEventListener(e,()=>g())})}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[d.value,a.value],()=>{if(d.value){let e=_();e&&(e.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:`post`});function f(e){if(!e||e.key===`Escape`)for(let e of Array.from(d.value.children))e.blur()}function p(){if(!d.value)return;let e=d.value.querySelector(`article`);e&&l(()=>{Ze(e,d.value)},1)}function m(e){e?.target?.contains&&e?.target?.contains(d.value)&&p()}function h(){a.value=!0,o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0),o.value=new Z().addCallback(e=>m(e)),p(),c.value=new $().observe(document.documentElement,()=>p());let e=_();e&&(s.value=new Q().observe(e,e=>{e.isIntersecting||f(!1)}))}function g(e){let t=e?.target;(!t?.parentNode||t.parentNode.querySelector(`:focus`)!==t&&t.parentNode.querySelector(`:focus-within`)!==t&&t.parentNode.querySelector(`:hover`)!==t)&&(a.value=!1,o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0))}function _(){if(d.value){let e=Array.from(d.value.children);if(e.length>=2){let t=e[0];return t.tagName.includes(`-`)?t.children?.length>0?t.children[0]:null:t}}return null}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:d,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-popover`,n.class))},[(0,t.renderSlot)(r.$slots,`trigger`),(0,t.createElementVNode)(`article`,{class:`db-popover-content`,"data-spacing":e.spacing,"data-gap":(0,t.unref)(u)(e.gap,`gap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-open":(0,t.unref)(u)(e.open,`open`),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,er)],10,$n))}}),nr=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],rr=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],ir=(0,t.defineComponent)({name:`DBRadio`,__name:`radio`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,s=(0,t.ref)(!1),c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),f=(0,t.ref)(null);(0,t.onMounted)(()=>{s.value=!0,v()}),(0,t.onUnmounted)(()=>{u.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&v()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[s.value,f.value,o.checked],()=>{o.checked&&s.value&&f.value&&(f.value.checked=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[f.value],()=>{if(f.value){let e=u.value;e||(e=new AbortController,u.value=e),Pe(f.value,e=>{l(()=>{let t=o.checked?o.checked:f.value.checked,n={...e,target:{...e.target,value:``,checked:t}};m(n,!0),p(n,!0)},1)},e.signal)}},{immediate:!0,flush:`post`});function p(e,t){o.input&&o.input(e),o.onInput&&o.onInput(e),J(a,e)}function m(e,t){o.onChange&&o.onChange(e),J(a,e)}function h(e){o.onBlur&&o.onBlur(e)}function _(e){o.onFocus&&o.onFocus(e)}function v(){c.value=o.id??o.propOverrides?.id??`radio-${r}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{"data-size":e.size,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-radio`,o.class)),for:c.value},[(0,t.createElementVNode)(`input`,{type:`radio`,"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:f,id:c.value,name:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(d)(e.required,`required`),onInput:r[0]||=async e=>p(e),onChange:r[1]||=async e=>m(e),onBlur:r[2]||=async e=>h(e),onFocus:r[3]||=async e=>_(e)},null,40,rr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,nr))}}),ar=[`id`,`data-spacing`,`data-width`],or=(0,t.defineComponent)({name:`DBSection`,__name:`section`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},spacing:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-section`,n.class)),"data-spacing":e.spacing||`medium`,"data-width":e.width},[(0,t.renderSlot)(a.$slots,`default`)],10,ar))}}),sr=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],cr=[`for`],lr=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],ur=[`data-show-empty-option`],dr=[`label`],fr=[`value`,`selected`,`disabled`],pr=[`value`,`disabled`,`selected`],mr=[`id`],hr={"data-visually-hidden":`true`,role:`status`},gr=(0,t.defineComponent)({name:`DBSelect`,__name:`select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showEmptyOption:{type:Boolean,default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(``),y=(0,t.ref)(void 0),b=(0,t.ref)(``),x=(0,t.ref)(!1),S=(0,t.ref)(``),C=(0,t.ref)(void 0),w=(0,t.ref)(null);(0,t.onMounted)(()=>{x.value=!0,N(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{C.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&N()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[w.value,o.invalidMessage],()=>{h.value=o.invalidMessage||w.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value],()=>{if(c.value&&x.value){let e=c.value+I,t=c.value+ne;f.value=e,p.value=c.value+L,m.value=c.value+R,v.value=t,_(o.message,o.showMessage)?y.value=e:o.placeholder?y.value=t:y.value=void 0,E(),x.value=!1}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value],()=>{b.value=o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[w.value],()=>{if(w.value){let e=C.value;e||(e=new AbortController,C.value=e),Y(w.value,{value:o.value,defaultValue:void 0},e=>{k(e,!0),O(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function T(){return!!(o.validMessage??o.validation===`valid`)}function E(){!w.value?.validity.valid||o.validation===`invalid`?(y.value=m.value,h.value=o.invalidMessage||w.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(S.value=h.value,l(()=>S.value=``,1e3))):T()&&w.value?.validity.valid&&o.required?(y.value=p.value,s()&&(S.value=o.validMessage??`TODO: Add a validMessage`,l(()=>S.value=``,1e3))):_(o.message,o.showMessage)?y.value=f.value:o.placeholder?y.value=v.value:y.value=void 0}function D(e){o.onClick&&o.onClick(e)}function O(e,t){o.input&&o.input(e),b.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),J(a,e),E()}function A(e){o.onBlur&&o.onBlur(e)}function j(e){o.onFocus&&o.onFocus(e)}function M(e){return e.label??e.value?.toString()}function ee(){return o.variant===`floating`||o.placeholder?o.showEmptyOption===void 0?!o.required:o.showEmptyOption:!1}function N(){let e=o.id??o.propOverrides?.id??`select-${r}`;c.value=e,f.value=e+I,p.value=e+L,m.value=e+R,v.value=e+ne}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-select`,o.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,cr),(0,t.createElementVNode)(`select`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:w,required:(0,t.unref)(d)(e.required,`required`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),id:c.value,name:e.name,size:e.size,value:e.value??b.value??``,autocomplete:e.autocomplete,multiple:e.multiple,onInput:r[0]||=async e=>O(e),onClick:r[1]||=async e=>D(e),onChange:r[2]||=async e=>k(e),onBlur:r[3]||=async e=>A(e),onFocus:r[4]||=async e=>j(e),"aria-describedby":e.ariaDescribedBy??y.value},[e.variant===`floating`||e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:0,class:`placeholder`,value:``,"data-show-empty-option":(0,t.unref)(u)(ee(),`showEmptyOption`)},null,8,ur)):(0,t.createCommentVNode)(``,!0),e.options?.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.options?((0,t.openBlock)(),(0,t.createElementBlock)(`optgroup`,{key:0,label:M(e)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,value:e.value,selected:e.selected,disabled:e.disabled},(0,t.toDisplayString)(M(e)),9,fr))),128))],8,dr)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,pr))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{key:2})],40,lr),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:v.value},(0,t.toDisplayString)(e.placeholder),9,mr)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),T()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,hr,(0,t.toDisplayString)(S.value),1)],10,sr))}}),_r=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],vr=(0,t.defineComponent)({name:`DBStack`,__name:`stack`,props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},gap:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-stack`,n.class)),"data-gap":e.gap,"data-variant":e.variant,"data-direction":e.direction,"data-alignment":e.alignment,"data-justify-content":e.justifyContent,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`)},[(0,t.renderSlot)(a.$slots,`default`)],10,_r))}}),yr=[`simple`,`divider`],br=[`row`,`column`],xr=[`stretch`,`start`,`end`,`center`],Sr=[`space-between`,`start`,`center`,`end`],Cr=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],wr=[`for`],Tr=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],Er={"data-visually-hidden":`true`,role:`status`},Dr=(0,t.defineComponent)({name:`DBSwitch`,__name:`switch`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},visualAid:{type:[Boolean,String],default:void 0},variant:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(void 0),x=(0,t.ref)(null);(0,t.onMounted)(()=>{O(),C(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{b.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&O()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation,o.required,o.message,o.showMessage,o.validMessage,o.invalidMessage,o.checked],()=>{C()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,o.invalidMessage],()=>{h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value],()=>{if(x.value){let e=b.value;e||(e=new AbortController,b.value=e),Fe(x.value,{checked:o.checked,defaultChecked:void 0},e=>{w(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function S(){return!!(o.validMessage??o.validation===`valid`)}function C(){if(!x.value?.validity?.valid||o.validation===`invalid`){v.value=m.value,h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(y.value=h.value||`TODO: Add an invalidMessage`,l(()=>{y.value=``},1e3));return}if(S()&&x.value?.validity?.valid&&o.required){v.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>{y.value=``},1e3));return}if(_(o.message,o.showMessage)){v.value=f.value;return}v.value=void 0}function w(e,t){o.onChange&&o.onChange(e),C(),J(a,e,`checked`)}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(e){e.key===`Enter`&&(e.preventDefault(),o.disabled||x.value?.click())}function O(){let e=o.id??o.propOverrides?.id??`switch-${r}`;c.value=e,f.value=`${e}${I}`,p.value=`${e}${L}`,m.value=`${e}${R}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-visual-aid":(0,t.unref)(u)(e.visualAid,`visualAid`),"data-size":e.size,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-variant":e.variant,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-custom-validity":e.validation,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-switch`,o.class))},[(0,t.createElementVNode)(`label`,{for:c.value},[(0,t.createElementVNode)(`input`,{type:`checkbox`,role:`switch`,id:c.value,ref_key:`_ref`,ref:x,checked:(0,t.unref)(d)(e.checked,`checked`),value:e.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),"aria-invalid":e.validation===`invalid`?`true`:void 0,"aria-describedby":v.value,name:e.name,required:(0,t.unref)(d)(e.required,`required`),"data-aid-icon":e.iconLeading??e.icon,"data-aid-icon-trailing":e.iconTrailing,onChange:r[0]||=async e=>w(e),onBlur:r[1]||=async e=>T(e),onFocus:r[2]||=async e=>E(e),onKeydown:r[3]||=async e=>D(e)},null,40,Tr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],8,wr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,semantic:`adaptive`,id:f.value,icon:e.messageIcon},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`id`,`icon`])):(0,t.createCommentVNode)(``,!0),S()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage??(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,Er,(0,t.toDisplayString)(y.value),1)],10,Cr))}}),Or=[`disabled`,`aria-selected`,`focusgroupstart`,`data-value`],kr=[`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`],Ar={class:`db-tab-item-label-end-slot`},jr=(0,t.defineComponent)({name:`DBTabItem`,__name:`tab-item`,props:{disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},tabIndex:{},value:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},autofocus:{type:[Boolean,String]},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},active:{type:[Boolean,String],default:void 0},width:{},endSlot:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(``),s=(0,t.ref)(null),c=(0,t.ref)(null),l=(0,t.ref)(null),f=(0,t.ref)(!1),p=(0,t.ref)(null),m=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.onUnmounted)(()=>{f.value=!0;let e=l.value;e!==null&&(cancelAnimationFrame(e),l.value=null),s.value?.disconnect(),c.value?.disconnect()}),(0,t.watch)(()=>[m.value,r.value],()=>{if(typeof window<`u`&&m.value&&r.value&&!s.value){let e=()=>{l.value=requestAnimationFrame(()=>{if(l.value=null,!f.value){if(g(),m.value&&!s.value){let e=new ResizeObserver(()=>{requestAnimationFrame(()=>{f.value||g()})});e.observe(m.value),s.value=e}if(m.value&&!c.value){let e=new MutationObserver(()=>{requestAnimationFrame(()=>{f.value||g()})});e.observe(m.value,{childList:!0,subtree:!0,characterData:!0}),c.value=e}}})};(n.iconLeading??n.icon??n.iconTrailing)&&document.fonts?.ready?document.fonts.ready.then(()=>{f.value||e()}):e()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.label,r.value,m.value],()=>{m.value&&r.value&&g()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[p.value,a.value],()=>{p.value&&!a.value&&h()},{immediate:!0,flush:`post`});function h(){if(!p.value||!p.value.hasAttribute(`data-has-tooltip`))return;p.value.removeAttribute(`data-has-tooltip`);let e=p.value.querySelector(`.db-tooltip`);if(!e||!e.id)return;let t=(p.value.getAttribute(`aria-describedby`)||``).split(` `).filter(t=>t!==``&&t!==e.id).join(` `);t?p.value.setAttribute(`aria-describedby`,t):p.value.removeAttribute(`aria-describedby`)}function g(){if(m.value){let e=Math.ceil(m.value.scrollWidth)>Math.ceil(m.value.clientWidth)+1;a.value!==e&&(a.value=e,e?p.value&&p.value.setAttribute(`title`,``):(h(),p.value&&p.value.getAttribute(`title`)===``&&p.value.removeAttribute(`title`))),o.value=e&&(n.label||m.value.innerText||m.value.textContent)||``}}return(r,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{type:`button`,role:`tab`,ref_key:`_ref`,ref:p,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-item`,n.class)),disabled:(0,t.unref)(d)(e.disabled,`disabled`)?!0:void 0,"aria-selected":(0,t.unref)(u)(e.active,`active`),focusgroupstart:(0,t.unref)(d)(e.active,`active`)?``:void 0,"data-value":e.value},[(0,t.createElementVNode)(`span`,{class:`db-tab-item-label`,"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`span`,{class:`db-tab-item-label-text`,ref_key:`_labelRef`,ref:m},[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],512),(0,t.createElementVNode)(`span`,Ar,[(0,t.renderSlot)(r.$slots,`end-slot`)])],8,kr),a.value&&o.value?((0,t.openBlock)(),(0,t.createBlock)(yt,{key:0,placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.value),1)]),_:1})):(0,t.createCommentVNode)(``,!0)],10,Or))}}),Mr=[`id`,`aria-orientation`,`focusgroup`],Nr=(0,t.defineComponent)({name:`DBTabList`,__name:`tab-list`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},orientation:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(void 0),o=(0,t.ref)(null);return(0,t.onMounted)(()=>{a.value=r.id||r.propOverrides?.id||`tab-list-`+n}),(n,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:`tablist`,ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id??a.value,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-list`,r.class)),"aria-orientation":e.orientation??`horizontal`,focusgroup:e.orientation===`vertical`?`tablist block wrap`:`tablist`},[(0,t.renderSlot)(n.$slots,`default`)],10,Mr))}}),Pr=[`hidden`],Fr=(0,t.defineComponent)({name:`DBTabPanel`,__name:`tab-panel`,props:{content:{},hidden:{type:Boolean},children:{},className:{},class:{},autofocus:{type:[Boolean,String]}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:`tabpanel`,ref_key:`_ref`,ref:r,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-panel`,n.class)),hidden:e.hidden,tabIndex:0},[e.content?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.content),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Pr))}}),Ir=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`colSpan`,`rowSpan`,`headers`],Lr=(0,t.defineComponent)({name:`DBTableDataCell`,__name:`table-data-cell`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-data-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers},[(0,t.renderSlot)(a.$slots,`default`)],10,Ir))}}),Rr=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`data-no-text`,`scope`,`colSpan`,`rowSpan`,`headers`,`abbr`],zr=(0,t.defineComponent)({name:`DBTableHeaderCell`,__name:`table-header-cell`,props:{abbr:{default:void 0},scope:{default:void 0},noText:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-header-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,"data-no-text":(0,t.unref)(u)(e.noText),scope:e.scope,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers,abbr:e.abbr},[(0,t.renderSlot)(a.$slots,`default`)],10,Rr))}}),Br=[`id`,`data-interactive`,`data-sub-header-emphasis`],Vr=(0,t.defineComponent)({name:`DBTableRow`,__name:`table-row`,props:{cells:{default:void 0},subHeaderEmphasis:{default:void 0},interactive:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){if(e.headerCell)return e}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-row`,r.class)),"data-interactive":(0,t.unref)(u)(e.interactive),"data-sub-header-emphasis":e.subHeaderEmphasis},[e.cells?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.cells,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[r.headerCell?((0,t.openBlock)(),(0,t.createBlock)(zr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-header-cell-${i}`,id:r.id,abbr:o(r)?.abbr,scope:o(r)?.scope,noText:o(r)?.noText,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(An,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`abbr`,`scope`,`noText`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`])):((0,t.openBlock)(),(0,t.createBlock)(Lr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-data-cell-${i}`,id:r.id,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(An,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`]))],64))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,Br))}}),Hr=[`id`],Ur=(0,t.defineComponent)({name:`DBTableBody`,__name:`table-body`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tbody`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-body`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-body-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,Hr))}}),Wr=[`id`],Gr=(0,t.defineComponent)({name:`DBTableFooter`,__name:`table-footer`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tfoot`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-footer`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-footer-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,Wr))}}),Kr=[`id`],qr=(0,t.defineComponent)({name:`DBTableHead`,__name:`table-head`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){return e?.map(e=>({...e,headerCell:!0}))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`thead`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-head`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-head-row-${i}`,cells:o(r.cells),className:r.className??r.class,subHeaderEmphasis:r.subHeaderEmphasis,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`subHeaderEmphasis`,`interactive`,`id`]))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,Kr))}}),Jr=[`data-width`,`data-size`,`data-divider`,`data-variant`,`data-mobile-variant`,`data-show-caption`,`data-sticky-header`],Yr=[`id`],Xr={key:0},Zr=(0,t.defineComponent)({name:`DBTable`,__name:`table`,props:{caption:{},captionPlain:{default:void 0},data:{default:void 0},divider:{default:void 0},showCaption:{type:[Boolean,String],default:void 0},size:{default:void 0},variant:{default:void 0},mobileVariant:{default:void 0},stickyHeader:{default:void 0},columnSizes:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(void 0),o=(0,t.ref)(null);(0,t.watch)(()=>[n.data],()=>{n.data?r.value=s():r.value=void 0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.mobileVariant,o.value,r.value],()=>{o.value&&n.mobileVariant===`list`&&l(()=>{let e=o.value;if(!e)return;let t=e.querySelectorAll(`thead tr th`);t.length&&e.querySelectorAll(`:is(tbody,tfoot) tr`).forEach(e=>{e.querySelectorAll(`:is(td,th)`).forEach((e,n)=>{let r=t[n];if(r){let t=Array.from(r.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent?.trim()).filter(Boolean).join(` `);t&&(e.dataset.header=t)}})})},1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.columnSizes],()=>{if(n.columnSizes){let e={};Object.entries(n.columnSizes).forEach(([t,n])=>{e[`--db-table-column-size-${t}`]=n}),a.value=e}else a.value=void 0},{immediate:!0,flush:`post`});function s(){try{return typeof n.data==`string`?JSON.parse(n.data):n.data}catch(e){console.error(e)}return{}}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table`,n.class)),style:(0,t.normalizeStyle)(a.value),"data-width":e.width,"data-size":e.size,"data-divider":e.divider,"data-variant":e.variant,"data-mobile-variant":e.mobileVariant,"data-show-caption":(0,t.unref)(u)(e.showCaption),"data-sticky-header":e.stickyHeader},[(0,t.createElementVNode)(`table`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id},[e.captionPlain?((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,Xr,(0,t.toDisplayString)(e.captionPlain),1)):(0,t.renderSlot)(s.$slots,`caption`,{key:1}),r.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[r.value?.header?((0,t.openBlock)(),(0,t.createBlock)(qr,{key:0,rows:r.value?.header},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.body?((0,t.openBlock)(),(0,t.createBlock)(Ur,{key:1,rows:r.value?.body},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.footer?((0,t.openBlock)(),(0,t.createBlock)(Gr,{key:2,rows:r.value?.footer},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0)],64)):(0,t.renderSlot)(s.$slots,`default`,{key:3})],8,Yr)],14,Jr))}}),Qr=[`id`],$r=(0,t.defineComponent)({name:`DBTableCaption`,__name:`table-caption`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-caption`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Qr))}}),ei=[`row`,`col`,`rowgroup`,`colgroup`],ti=[`none`,`weak`,`strong`],ni=[`x-small`,`small`,`medium`,`large`],ri=[`flat`,`zebra`,`spaced`],ii=[`none`,`both`,`horizontal`,`vertical`],ai=[`table`,`list`],oi=[`none`,`both`,`horizontal`,`vertical`],si=[`auto`,`1fr`,`min-content`,`max-content`],ci=[`id`,`data-orientation`,`data-scroll-behavior`,`data-tab-item-alignment`,`data-tab-item-width`,`data-initial-selected-mode`],li=(0,t.defineComponent)({name:`DBTabs`,__name:`tabs`,props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},activeIndex:{default:void 0},initialSelectedMode:{default:void 0},label:{default:void 0},tabs:{default:void 0},tabItemWidth:{default:`auto`},scrollStartLabel:{default:`Scroll start`},scrollEndLabel:{default:`Scroll end`},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},orientation:{default:void 0},tabItemAlignment:{default:`start`},indexChange:{},onIndexChange:{type:Function,default:void 0},valueChange:{},onValueChange:{type:Function,default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(0),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(null),u=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)([]),g=(0,t.ref)([]),_=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(null);(0,t.onMounted)(()=>{m.value=w(),b();let{startIndex:e,hashApplied:t}=ne();if(a.value=e,o.value=!0,typeof window<`u`&&y.value){I(),B();let n=e;if(ee(t)){let e=M();e>-1&&(n=e,a.value=e)}T(n)}z()}),(0,t.onUnmounted)(()=>{let e=f.value;e!==null&&(cancelAnimationFrame(e),f.value=null),L(),u.value?.disconnect(),u.value=null}),(0,t.watch)(()=>[r.tabs,o.value],()=>{o.value&&r.tabs&&(I(),B(),T(a.value))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&b()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[_.value],()=>{_.value&&B()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.orientation],()=>{if(y.value){let e=N();if(e?.setAttribute(`aria-orientation`,r.orientation??`horizontal`),e){let t=r.orientation===`vertical`?`tablist block wrap`:`tablist`;e.setAttribute(`focusgroup`,t)}}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.label],()=>{if(y.value){let e=r.label,t=N();e?(t?.setAttribute(`aria-label`,e),v.value=e):v.value&&=(t?.getAttribute(`aria-label`)===v.value&&t?.removeAttribute(`aria-label`),void 0)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.behavior],()=>{y.value&&(r.behavior===`arrows`?I():L())},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.activeIndex],()=>{if(r.activeIndex!==void 0){let e=Number(r.activeIndex);isNaN(e)||(a.value=e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[h.value,g.value,a.value,o.value],()=>{o.value&&h.value.length>0&&T(a.value)},{immediate:!0,flush:`post`});function b(){_.value=r.id??r.propOverrides?.id??`tabs-${n}`}function x(){return r.id??r.propOverrides?.id}function S(e){let t=h.value;if(t.length>0){let n=t[e];if(n?.disabled||n?.getAttribute(`aria-disabled`)===`true`)return}let n=t[e]?.dataset?.value;if(r.activeIndex!==void 0){if(e===Number(r.activeIndex))return;r.onIndexChange&&r.onIndexChange(e),r.onValueChange&&r.onValueChange(n);return}a.value!==e&&(a.value=e,r.onIndexChange&&r.onIndexChange(e),r.onValueChange&&r.onValueChange(n),T(e))}function T(e){let t=h.value,n=g.value,i=e===void 0?a.value:e,o=e=>!!e&&!e.disabled&&e.getAttribute(`aria-disabled`)!==`true`,s=i;s!==-1&&t.length>0&&(s<0||s>=t.length||!o(t[s]))&&(s=t.findIndex(e=>o(e))),s!==i&&r.activeIndex===void 0&&(a.value=s);let c=s===-1?t.findIndex(e=>o(e)):s;t.forEach((e,t)=>{let n=s===t,r=c===t?0:-1;e.setAttribute(`aria-selected`,String(n)),m.value||e.setAttribute(`tabindex`,String(r))}),n.forEach((e,t)=>{e.hidden=s!==t})}function E(e){let t=e.target.closest(`[role="tab"]`);if(!t||!y.value||t.closest(`.db-tabs`)!==y.value)return;let n=h.value.indexOf(t);n!==-1&&(e.preventDefault(),S(n))}function D(e){if(!y.value)return;let t=e.key;if(!C.includes(t))return;let n=h.value;if(n.length===0)return;let i=e.target?.closest(`[role="tab"]`);if(!i||i.closest(`.db-tabs`)!==y.value)return;let a=n.indexOf(i);if(a===-1)return;if(t===`Enter`||t===` `){e.preventDefault(),S(a);return}if(m.value)return;let o=r.orientation===`vertical`,s=o?`ArrowUp`:`ArrowLeft`,c=o?`ArrowDown`:`ArrowRight`,l,u=n.length;if(t===c?l=(a+1)%u:t===s?l=(a-1+u)%u:t===`Home`?l=0:t===`End`&&(l=u-1),l!==void 0){e.preventDefault();let r=t===c||t===`Home`;for(let e=0;e<u;e++){let e=n[l];if(!e?.disabled&&e?.getAttribute(`aria-disabled`)!==`true`)break;l=r?(l+1)%u:(l-1+u)%u}let i=n[l];i&&!i.disabled&&i.getAttribute(`aria-disabled`)!==`true`&&(O(l),i.focus())}}function O(e){m.value||h.value.forEach((t,n)=>{t.setAttribute(`tabindex`,e===n?`0`:`-1`)})}function k(){try{if(typeof r.tabs==`string`)return JSON.parse(r.tabs).map(e=>{let t=e;return!t.ariaLabel&&t[`aria-label`]?{...t,ariaLabel:t[`aria-label`]}:e});if(r.tabs)return r.tabs.map(e=>{let t=e;return!t.ariaLabel&&t[`aria-label`]?{...t,ariaLabel:t[`aria-label`]}:e})}catch(e){console.error(e)}return[]}function A(){return o.value?a.value:j()}function j(){let e=k(),t=e=>!d(e.disabled,`disabled`);if(r.activeIndex!==void 0){let n=Number(r.activeIndex),i=isNaN(n)?0:n;if(e.length>0&&(i<0||i>=e.length||e[i]&&!t(e[i]))){let n=e.findIndex(t);return n>-1?n:0}return i}if(r.initialSelectedIndex!==void 0){let n=Number(r.initialSelectedIndex);if(isNaN(n))return 0;if(e.length>0&&n>=e.length){let n=e.findIndex(t);return n>-1?n:0}if(e.length>0&&e[n]&&!t(e[n])){let n=e.findIndex(t);return n>-1?n:0}return n}if(r.initialSelectedMode===`manually`)return-1;let n=e.findIndex(e=>d(e.active,`active`)&&t(e));if(n>-1)return n;let i=e.findIndex(t);return i>-1?i:0}function M(){return h.value.findIndex(e=>e.getAttribute(`aria-selected`)===`true`&&!e.disabled&&e.getAttribute(`aria-disabled`)!==`true`)}function ee(e){return!e&&!r.tabs&&r.activeIndex===void 0&&r.initialSelectedIndex===void 0&&(r.initialSelectedMode===void 0||r.initialSelectedMode===`auto`)}function N(){return y.value?.querySelector(`[role="tablist"]`)??null}function P(){let e=N();return!!e&&typeof getComputedStyle<`u`&&getComputedStyle(e).direction===`rtl`}function F(e){if(!(e.scrollWidth>e.clientWidth)){s.value=!1,c.value=!1;return}let t=Math.abs(e.scrollLeft),n=e.scrollWidth-e.clientWidth;s.value=t>2,c.value=t<n-2}function te(e){let t=N();if(!t)return;let n=Number(r.arrowScrollDistance)||120;!!e!==P()&&(n*=-1),t.scrollBy({left:n,behavior:`smooth`})}function I(){if(y.value){let e=N();if(e){e.setAttribute(`aria-orientation`,r.orientation??`horizontal`);let t=r.orientation===`vertical`?`tablist block wrap`:`tablist`;e.setAttribute(`focusgroup`,t);let n=r.label;if(n&&(e.setAttribute(`aria-label`,n),v.value=n),r.behavior===`arrows`){if(F(e),!p.value){let t=()=>F(e);p.value={fn:t},e.addEventListener(`scroll`,t)}if(!l.value){let t=new ResizeObserver(()=>{F(e)});t.observe(e),l.value=t}}}}}function L(){let e=p.value,t=N();e&&t&&t.removeEventListener(`scroll`,e.fn),p.value=null,l.value?.disconnect(),l.value=null,s.value=!1,c.value=!1}function R(e){return e.parentElement?.closest(`.db-tabs, [role="tabpanel"]`)===y.value}function ne(){let e=j(),t=!1,n=x();if(typeof window<`u`&&window.location.hash&&n){let r=window.location.hash.substring(1),i=`${n}-tab-`;if(r.startsWith(i)){let n=r.replace(i,``),a=parseInt(n,10);isNaN(a)||(e=a,t=!0)}}return{startIndex:e,hashApplied:t}}function z(){if(!y.value)return;let e=new MutationObserver(e=>{let t=e=>{let t=e;return!!t.matches&&(t.matches(`[role="tab"], [role="tabpanel"]`)||!!t.querySelector?.(`[role="tab"], [role="tabpanel"]`))},n=e.some(e=>Array.from(e.addedNodes).some(t)||Array.from(e.removedNodes).some(t)),r=e.some(e=>e.type===`characterData`),i=e.some(e=>e.type===`attributes`&&(e.attributeName===`disabled`||e.attributeName===`aria-disabled`)&&e.target?.getAttribute?.(`role`)===`tab`);if(!n&&!r&&!i)return;let o=f.value;o!==null&&cancelAnimationFrame(o),f.value=requestAnimationFrame(()=>{f.value=null,I(),n&&B(),i&&T(a.value)})});e.observe(y.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`disabled`,`aria-disabled`]}),u.value=e}function B(){let e=r.id??r.propOverrides?.id??_.value;if(!e||!y.value)return;let t=N(),n=Array.from(y.value?.querySelectorAll(`[role="tabpanel"]`)??[]).filter(e=>R(e));if(!t)return;let i=Array.from(t.querySelectorAll(`[role="tab"]`));h.value=i,g.value=n,i.forEach((t,r)=>{let i=n[r],a=`${e}-tab-${r}`;if(t.id=a,i){let n=`${e}-tab-panel-${r}`;i.id=n,t.setAttribute(`aria-controls`,n),i.setAttribute(`aria-labelledby`,a)}})}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:y,id:e.id??e.propOverrides?.id??_.value,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tabs`,r.class)),"data-orientation":e.orientation,"data-scroll-behavior":e.behavior,"data-tab-item-alignment":e.tabItemAlignment,"data-tab-item-width":e.tabItemWidth,"data-initial-selected-mode":e.initialSelectedMode,onClick:a[0]||=async e=>E(e),onKeydown:a[1]||=async e=>D(e)},[s.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,class:`tabs-scroll-start`,variant:`ghost`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>te(!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollStartLabel),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),k().length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(Nr,{orientation:e.orientation,"aria-label":e.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(jr,{key:e.label+`tab-item`+r,"aria-label":n.ariaLabel,label:n.label,icon:n.icon,showIcon:n.showIcon,iconTrailing:n.iconTrailing,showIconTrailing:n.showIconTrailing,disabled:n.disabled,active:A()!==-1&&A()===r,value:n.value},null,8,[`aria-label`,`label`,`icon`,`showIcon`,`iconTrailing`,`showIconTrailing`,`disabled`,`active`,`value`]))),128))]),_:1},8,[`orientation`,`aria-label`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Fr,{key:e.label+`tab-panel`+r,content:n.content},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.children),1)]),_:2},1032,[`content`]))),128))],64)):(0,t.renderSlot)(n.$slots,`default`,{key:2}),c.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:3,class:`tabs-scroll-end`,variant:`ghost`,icon:`chevron_right`,noText:!0,onClick:e=>te(!1)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollEndLabel),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0)],42,ci))}}),ui=[`scrollbar`,`arrows`],di=[`auto`,`manually`],fi=[`static`,`removable`],pi=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],mi=[`for`],hi=[`aria-invalid`,`data-custom-validity`,`data-field-sizing`,`id`,`data-resize`,`data-hide-resizer`,`disabled`,`required`,`readOnly`,`form`,`maxLength`,`minLength`,`name`,`wrap`,`spellcheck`,`autocomplete`,`value`,`aria-describedby`,`placeholder`,`rows`,`cols`],gi={"data-visually-hidden":`true`,role:`status`},_i=(0,t.defineComponent)({name:`DBTextarea`,__name:`textarea`,props:{cols:{default:void 0},resize:{default:void 0},showResizer:{type:[Boolean,String],default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(``),x=(0,t.ref)(void 0),S=(0,t.ref)(null);(0,t.onMounted)(()=>{k(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{x.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&k()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[S.value,o.invalidMessage],()=>{h.value=o.invalidMessage||S.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+I;u.value=e,p.value=c.value+L,m.value=c.value+R,_(o.message,o.showMessage)&&(v.value=e),w()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value],()=>{y.value=o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[S.value],()=>{if(S.value){let e=x.value;e||(e=new AbortController,x.value=e),Y(S.value,{value:o.value,defaultValue:void 0},e=>{E(e,!0),T(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function C(){return!!(o.validMessage??o.validation===`valid`)}function w(){!S.value?.validity.valid||o.validation===`invalid`?(v.value=m.value,h.value=o.invalidMessage||S.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(b.value=h.value,l(()=>b.value=``,1e3))):C()&&S.value?.validity.valid&&(o.required||o.minLength||o.maxLength)?(v.value=p.value,s()&&(b.value=o.validMessage??`TODO: Add a validMessage`,l(()=>b.value=``,1e3))):_(o.message,o.showMessage)?v.value=u.value:v.value=void 0}function T(e,t){o.input&&o.input(e),y.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),J(a,e),w()}function D(e){o.onBlur&&o.onBlur(e)}function O(e){o.onFocus&&o.onFocus(e)}function k(){let e=o.id??o.propOverrides?.id??`textarea-${r}`;c.value=e,u.value=e+I,p.value=e+L,m.value=e+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-textarea`,o.class)),"data-variant":e.variant,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(g)(e.showLabel)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,mi),(0,t.createElementVNode)(`textarea`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:S,id:c.value,"data-resize":e.resize,"data-hide-resizer":(0,t.unref)(g)(e.showResizer??!0),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),name:e.name,wrap:e.wrap,spellcheck:e.spellCheck,autocomplete:e.autocomplete,onInput:r[0]||=async e=>T(e),onChange:r[1]||=async e=>E(e),onBlur:r[2]||=async e=>D(e),onFocus:r[3]||=async e=>O(e),value:e.value??y.value??``,"aria-describedby":e.ariaDescribedBy??v.value,placeholder:e.placeholder??(0,t.unref)(` `),rows:(0,t.unref)(f)(e.rows,(0,t.unref)(4)),cols:(0,t.unref)(f)(e.cols)},(0,t.toDisplayString)(e.value),41,hi),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,icon:e.messageIcon,id:u.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),C()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,gi,(0,t.toDisplayString)(b.value),1)],10,pi))}}),vi=[`none`,`both`,`horizontal`,`vertical`],yi=[`hard`,`soft`,`off`],bi=[`description`,`label`],xi=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],Si=[`medium`,`small`,`large`,`none`],Ci=[`medium`,`small`,`large`,`none`],wi=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],Ti=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],Ei=[...wi,...Ti],Di=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],Oi=[`horizontal`,`vertical`],ki=[`full`,`auto`],Ai=[`full`,`medium`,`large`,`small`],ji=[`none`,`slow`,`fast`],Mi=[`auto`,`fixed`],Ni=[`small`,`medium`],Pi=[`weak`,`strong`],Fi=[`invalid`,`valid`,`no-validation`],Ii=[`fixed`,`content`],Li=[`above`,`floating`],Ri=[`leading`,`trailing`],zi=`off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn`.split(`.`);e.AccordionBehaviorList=j,e.AccordionVariantList=A,e.AlignmentList=[`start`,`center`,`end`],e.AutoCompleteList=zi,e.BadgePlacementList=Te,e.ButtonTypeList=ke,e.ButtonVariantList=q,e.COLOR=ge,e.COLORS=_e,e.COLORS_SIMPLE=ve,e.COLOR_CONST=V,e.COLOR_SIMPLE=he,e.CardBehaviorList=Me,e.CardElevationLevelList=Ne,e.CustomSelectDropdownWidthList=Rt,e.CustomSelectListItemTypeList=Vt,e.DBAccordion=k,e.DBAccordionItem=D,e.DBBadge=G,e.DBBrand=De,e.DBButton=K,e.DBCard=je,e.DBCheckbox=Ve,e.DBCustomButton=Ue,e.DBCustomSelect=Lt,e.DBCustomSelectDropdown=nt,e.DBCustomSelectFormField=Bt,e.DBCustomSelectList=ut,e.DBCustomSelectListItem=ct,e.DBDivider=Wt,e.DBDrawer=Xt,e.DBDrawerFooter=Qt,e.DBDrawerHeader=nn,e.DBHeader=wn,e.DBIcon=En,e.DBInfotext=X,e.DBInput=_t,e.DBLink=An,e.DBNavigation=Fn,e.DBNavigationItem=Bn,e.DBNotification=Gn,e.DBPage=Xn,e.DBPopover=tr,e.DBRadio=ir,e.DBSection=or,e.DBSelect=gr,e.DBStack=vr,e.DBSwitch=Dr,e.DBTabItem=jr,e.DBTabList=Nr,e.DBTabPanel=Fr,e.DBTable=Zr,e.DBTableBody=Ur,e.DBTableCaption=$r,e.DBTableColumnsSizeList=si,e.DBTableDataCell=Lr,e.DBTableDividerList=ii,e.DBTableFooter=Gr,e.DBTableHead=qr,e.DBTableHeaderCell=zr,e.DBTableHeaderCellScopeList=ei,e.DBTableMobileVariantList=ai,e.DBTableRow=Vr,e.DBTableRowSizeList=ni,e.DBTableRowSubHeaderEmphasisList=ti,e.DBTableStickyHeaderList=oi,e.DBTableVariantList=ri,e.DBTabs=li,e.DBTag=xt,e.DBTextarea=_i,e.DBTooltip=yt,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=Se,e.DB_UX_LOCAL_STORAGE_MODE=Ce,e.DEFAULT_BACK=ae,e.DEFAULT_BURGER_MENU=le,e.DEFAULT_CLOSE_BUTTON=fe,e.DEFAULT_DATALIST_ID_SUFFIX=z,e.DEFAULT_ICON=ue,e.DEFAULT_ID=M,e.DEFAULT_INVALID_MESSAGE=re,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=R,e.DEFAULT_LABEL=ee,e.DEFAULT_LABEL_ID_SUFFIX=F,e.DEFAULT_MESSAGE=P,e.DEFAULT_MESSAGE_ID_SUFFIX=I,e.DEFAULT_PLACEHOLDER=N,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=ne,e.DEFAULT_REMOVE=ie,e.DEFAULT_ROWS=de,e.DEFAULT_SCROLL_LEFT=se,e.DEFAULT_SCROLL_RIGHT=ce,e.DEFAULT_SELECTED=oe,e.DEFAULT_SELECT_ID_SUFFIX=te,e.DEFAULT_VALID_MESSAGE=B,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=L,e.DEFAULT_VIEWPORT=U,e.DENSITIES=me,e.DENSITY=H,e.DENSITY_CONST=pe,e.DESKTOP_VIEWPORT=xe,e.DividerMarginList=Gt,e.DividerVariantList=Kt,e.DocumentClickListener=Ge,e.DocumentScrollListener=Z,e.DrawerBackdropList=rn,e.DrawerContainerSizeList=cn,e.DrawerDirectionList=an,e.DrawerPositionList=sn,e.DrawerVariantList=on,e.EmphasisList=Pi,e.FieldSizingList=Ii,e.GapSpacingList=Di,e.IconWeightList=Dn,e.InputTypeList=On,e.LabelVariantHorizontalList=Ri,e.LabelVariantList=Li,e.LinkContentList=Nn,e.LinkReferrerPolicyList=[`no-referrer`,`no-referrer-when-downgrade`,`origin`,`origin-when-cross-origin`,`same-origin`,`strict-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],e.LinkSizeList=Mn,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=jn,e.MarginList=Ci,e.MaxWidthList=Ai,e.NAVIGATION_KEYS=C,e.NavigationItemSafeTriangle=un,e.NotificationAriaLiveList=Jn,e.NotificationLinkVariantList=qn,e.NotificationVariantList=Kn,e.OrientationList=Oi,e.PageDocumentOverflowList=Qn,e.PageVariantList=Zn,e.PlacementHorizontalList=wi,e.PlacementList=Ei,e.PlacementVerticalList=Ti,e.PopoverDelayList=ji,e.PopoverWidthList=Mi,e.SEMANTIC=ye,e.SEMANTICS=be,e.SelectedTypeList=Ht,e.SemanticList=xi,e.SizeList=Ni,e.SpacingList=Si,e.StackAlignmentList=xr,e.StackDirectionList=br,e.StackJustifyContentList=Sr,e.StackVariantList=yr,e.TESTING_VIEWPORTS=W,e.TabsBehaviorList=ui,e.TabsInitialSelectedModeList=di,e.TagBehaviorList=fi,e.TextareaResizeList=vi,e.TextareaWrapList=yi,e.TooltipVariantList=bi,e.ValidationList=Fi,e.WidthList=ki,e.addAttributeToChildren=r,e.cls=i,e.delay=l,e.getBoolean=d,e.getBooleanAsString=u,e.getFloatingProps=qe,e.getHideProp=g,e.getInputValue=m,e.getNotificationRole=S,e.getNumber=f,e.getOptionKey=b,e.getSearchInput=v,e.getStep=p,e.handleDataOutside=Qe,e.handleFixedDropdown=Ke,e.handleFixedPopover=Ze,e.hasFocusgroupSupport=w,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=ln,e.isIOSSafari=c,e.isKeyboardEvent=x,e.stringPropVisible=_,e.uuid=n});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`DB-UX`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=()=>{if(typeof window<`u`){if(window.crypto?.randomUUID)return window.crypto.randomUUID();if(window.crypto?.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join(`-`)}return Math.random().toString().substring(2)},r=(e,t)=>{let n=e.children;Object.values(n).forEach(e=>{e.setAttribute(t.key,t.value),e.children.length>0&&r(e,t)})},i=(...e)=>{let t=``;for(let n of e)if(n)if(typeof n==`string`)t+=`${n} `;else for(let e in n)n[e]&&(t+=`${e} `);return t.trim()},a=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),o=[`Mac`,`iPhone`,`iPad`,`iPod`],s=()=>typeof window<`u`&&o.some(e=>window.navigator.userAgent.includes(e)),c=()=>{if(typeof window>`u`||typeof navigator>`u`)return!1;let e=navigator.userAgent,t=/iP(ad|hone|od)/.test(e),n=!!e.match(/Safari/)&&!e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);return t&&n},l=(e,t)=>new Promise(()=>setTimeout(e,t)),u=(e,t)=>{if(e!=null)return String(typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():e)},d=(e,t)=>{if(e!=null)return typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():!!e},f=(e,t)=>{if(!(e==null&&t==null))return Number(e??t)},p=e=>{if(e!=null)return e===`any`?`any`:Number(e)},m=(e,t)=>t&&[`number`,`range`].includes(t)?f(e):e,h=e=>typeof e==`string`?e!==`false`:e,g=e=>{if(e!=null)return u(!h(e),`show`)},_=(e,t)=>(t===void 0||h(t))&&!!e,v=e=>e.querySelector(`input[type="search"]`),y=new WeakMap,b=(e,t)=>{if(e.id)return`${t}${e.id}`;let r=e.value!==void 0&&e.value!==``?String(e.value):``,i=e.label??``;if(r||i)return`${t}${r.length}:${r}.${i}`;let a=y.get(e);return a||(a=n(),y.set(e,a)),`${t}${a}`},x=e=>e.key!==void 0,S=({semantic:e,role:t,ariaLive:n})=>{if(t)return t;if(n)return`article`;switch(e){case`critical`:case`warning`:return`alert`;case`informational`:case`successful`:return`status`;default:return`article`}},C=[`ArrowRight`,`ArrowDown`,`ArrowLeft`,`ArrowUp`,`Home`,`End`,`Enter`,` `],w=()=>typeof HTMLElement>`u`?!1:`focusGroup`in HTMLElement.prototype||`focusgroup`in HTMLElement.prototype,T=[`id`],E=[`aria-disabled`,`name`,`open`],D=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,default:void 0},open:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{n.defaultOpen&&(r.value=n.defaultOpen),o.value=!0}),(0,t.watch)(()=>[s.value,o.value],()=>{s.value&&o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.name],()=>{n.name&&(a.value=n.name)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.open],()=>{let e=d(n.open,`open`);e!==void 0&&(r.value=e)},{immediate:!0,flush:`post`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),n.open===void 0&&(r.value=t)}return(o,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion-item`,n.class))},[(0,t.createElementVNode)(`details`,{"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),ref_key:`_ref`,ref:s,name:a.value,open:r.value},[(0,t.createElementVNode)(`summary`,{onClick:l[0]||=async e=>c(e)},[e.headlinePlain?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.headlinePlain),1)],64)):(0,t.createCommentVNode)(``,!0),e.headlinePlain?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(o.$slots,`headline`,{},void 0,void 0,1)]),(0,t.createElementVNode)(`div`,null,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)])],8,E)],10,T))}}),O=[`id`,`data-variant`],k=(0,t.defineComponent)({name:`DBAccordion`,__name:`accordion`,props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(``),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(null);(0,t.onMounted)(()=>{o.value=!0,s.value=!0}),(0,t.watch)(()=>[o.value,r.name,r.behavior],()=>{o.value&&c.value&&(r.behavior===`single`?r.name?a.value!==r.name&&(a.value=r.name):a.value=`accordion-${n}`:a.value=``)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=c.value.getElementsByTagName(`details`);if(e)for(let t of Array.from(e))a.value===``?t.removeAttribute(`name`):t.name=a.value??``}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,s.value,r.initOpenIndex],()=>{if(c.value&&s.value){if(r.initOpenIndex&&r.initOpenIndex.length>0){let e=c.value.getElementsByTagName(`details`);if(e){let t=r.behavior===`single`&&r.initOpenIndex.length>1?[r.initOpenIndex[0]]:r.initOpenIndex;Array.from(e).forEach((e,n)=>{t?.includes(n)&&(e.open=!0)})}}s.value=!1}},{immediate:!0,flush:`post`});function l(){try{return typeof r.items==`string`?JSON.parse(r.items):r.items}catch(e){console.error(e)}return[]}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{ref_key:`_ref`,ref:c,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion`,r.class)),"data-variant":e.variant},[e.items?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,0),e.items?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l(),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(D,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,O))}}),A=[`divider`,`card`],j=[`multiple`,`single`],M=`OVERWRITE_DEFAULT_ID`,ee=`LABEL SHOULD BE SET`,N=` `,P=`MESSAGE SHOULD BE SET`,F=`-label`,te=`-select`,I=`-message`,L=`-valid-message`,R=`-invalid-message`,ne=`-placeholder`,z=`-datalist`,B=`TODO: Add a validMessage`,re=`TODO: Add an invalidMessage`,ie=`Remove`,ae=`Back`,oe=`Selected`,se=`Scroll left`,ce=`Scroll right`,le=`Open navigation menu`,ue=`brand`,de=4,fe=`Close`,pe=`density`,V=`color`,H=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),me=Object.entries(H).map(([,e])=>e),he=function(e){return e.PRIMARY=`primary`,e}({}),ge=function(e){return e.NEUTRAL_BG_LEVEL_1=`neutral-bg-basic-level-1`,e.NEUTRAL_BG_LEVEL_2=`neutral-bg-basic-level-2`,e.NEUTRAL_BG_LEVEL_3=`neutral-bg-basic-level-3`,e.NEUTRAL_BG_TRANSPARENT_SEMI=`neutral-bg-basic-transparent-semi`,e.NEUTRAL_BG_TRANSPARENT_FULL=`neutral-bg-basic-transparent-full`,e.BRAND_BG_LEVEL_1=`brand-bg-basic-level-1`,e.BRAND_BG_LEVEL_2=`brand-bg-basic-level-2`,e.BRAND_BG_LEVEL_3=`brand-bg-basic-level-3`,e.BRAND_BG_TRANSPARENT_SEMI=`brand-bg-basic-transparent-semi`,e.BRAND_BG_TRANSPARENT_FULL=`brand-bg-basic-transparent-full`,e.SUCCESSFUL_BG_LEVEL_1=`successful-bg-basic-level-1`,e.SUCCESSFUL_BG_LEVEL_2=`successful-bg-basic-level-2`,e.SUCCESSFUL_BG_LEVEL_3=`successful-bg-basic-level-3`,e.SUCCESSFUL_BG_TRANSPARENT_SEMI=`successful-bg-basic-transparent-semi`,e.SUCCESSFUL_BG_TRANSPARENT_FULL=`successful-bg-basic-transparent-full`,e.CRITICAL_BG_LEVEL_1=`critical-bg-basic-level-1`,e.CRITICAL_BG_LEVEL_2=`critical-bg-basic-level-2`,e.CRITICAL_BG_LEVEL_3=`critical-bg-basic-level-3`,e.CRITICAL_BG_TRANSPARENT_SEMI=`critical-bg-basic-transparent-semi`,e.CRITICAL_BG_TRANSPARENT_Full=`critical-bg-basic-transparent-full`,e.WARNING_BG_LEVEL_1=`warning-bg-basic-level-1`,e.WARNING_BG_LEVEL_2=`warning-bg-basic-level-2`,e.WARNING_BG_LEVEL_3=`warning-bg-basic-level-3`,e.WARNING_BG_TRANSPARENT_SEMI=`warning-bg-basic-transparent-semi`,e.WARNING_BG_TRANSPARENT_FULL=`warning-bg-basic-transparent-full`,e.INFORMATIONAL_BG_LEVEL_1=`informational-bg-basic-level-1`,e.INFORMATIONAL_BG_LEVEL_2=`informational-bg-basic-level-2`,e.INFORMATIONAL_BG_LEVEL_3=`informational-bg-basic-level-3`,e.INFORMATIONAL_BG_TRANSPARENT_SEMI=`informational-bg-basic-transparent-semi`,e.INFORMATIONAL_BG_TRANSPARENT_FULL=`informational-bg-basic-transparent-full`,e}({}),_e=Object.entries(ge).map(([,e])=>e),ve=Object.entries(he).map(([,e])=>e),ye=function(e){return e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),be=Object.entries(ye).map(([,e])=>e),U={width:390,height:884},xe={width:1920,height:1280},W=[{name:`desktop`,...xe},{name:`tablet`,width:768,height:1024},{name:`mobile`,...U}],Se=`db-ux-framework`,Ce=`db-ux-mode`,we=[`id`,`data-semantic`,`data-size`,`data-emphasis`,`data-placement`,`data-wrap`,`data-label`],G=(0,t.defineComponent)({name:`DBBadge`,__name:`badge`,props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return(0,t.onMounted)(()=>{r.value=!0}),(0,t.watch)(()=>[a.value,r.value],()=>{if(a.value&&r.value&&n.placement?.startsWith(`corner`)){let e=a.value.parentElement;e&&e.localName.includes(`badge`)&&(e=e.parentElement),e&&(e.dataset.hasBadge=`true`)}},{immediate:!0,flush:`post`}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-badge`,n.class)),"data-semantic":e.semantic,"data-size":e.size,"data-emphasis":e.emphasis,"data-placement":e.placement,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-label":e.placement?.startsWith(`corner`)&&(e.label??(0,t.unref)(`LABEL SHOULD BE SET`))},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],10,we))}}),Te=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],Ee=[`data-icon`,`data-show-icon`,`id`],De=(0,t.defineComponent)({name:`DBBrand`,__name:`brand`,props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,"data-icon":e.hideLogo?`none`:e.icon??(0,t.unref)(`brand`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[(0,t.renderSlot)(a.$slots,`default`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0)],10,Ee))}}),Oe=[`id`,`type`,`disabled`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-wrap`,`data-no-text`,`name`,`form`,`value`,`command`,`commandfor`],K=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{command:{default:void 0},commandfor:{default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},wrap:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(){return n.type?n.type:n.onClick||n.commandfor?`button`:`submit`}function o(e){n.onClick&&n.onClick(e)}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-button`,n.class)),type:a(),disabled:(0,t.unref)(d)(e.disabled,`disabled`),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),name:e.name,form:e.form,value:e.value,command:e.command,commandfor:e.commandfor,onClick:c[0]||=async e=>o(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`)],10,Oe))}}),q=[`outlined`,`brand`,`filled`,`ghost`],ke=[`button`,`reset`,`submit`],Ae=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],je=(0,t.defineComponent)({name:`DBCard`,__name:`card`,props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},spacing:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){n.onClick&&n.onClick(e)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-card`,n.class)),"data-behavior":e.behavior,"data-elevation-level":e.elevationLevel,"data-spacing":e.spacing,onClick:s[0]||=async e=>a(e)},[(0,t.renderSlot)(o.$slots,`default`)],10,Ae))}}),Me=[`static`,`interactive`],Ne=[`1`,`2`,`3`],J=(e,t,n=`value`)=>{e(`update:${n}`,t.target[n])},Pe=(e,t,n)=>{e.form&&!e._dbFormResetListenerAdded&&(e.form.addEventListener(`reset`,e=>{t(e)},{signal:n}),e._dbFormResetListenerAdded=!0)},Fe=(e,t,n,r)=>{Pe(e,r=>{l(()=>{let i=t.checked?t.checked:t.defaultChecked?t.defaultChecked:e.checked;n({...r,target:{...r.target,checked:i}})},1)},r)},Y=(e,t,n,r)=>{Pe(e,r=>{l(()=>{let i=t.value?t.value:t.defaultValue?t.defaultValue:e.value;n({...r,target:{...r.target,value:i}})},1)},r)},Ie=[`id`,`data-icon`,`data-semantic`,`data-size`,`data-wrap`,`data-show-icon-leading`],X=(0,t.defineComponent)({name:`DBInfotext`,__name:`infotext`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-infotext`,n.class)),"data-icon":e.icon,"data-semantic":e.semantic,"data-size":e.size,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-show-icon-leading":(0,t.unref)(u)(e.showIcon??!0,`showIcon`)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Ie))}}),Le=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Re=[`for`],ze=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],Be={"data-visually-hidden":`true`,role:`status`},Ve=(0,t.defineComponent)({name:`DBCheckbox`,__name:`checkbox`,props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(!1),u=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(void 0),x=(0,t.ref)(null);(0,t.onMounted)(()=>{c.value=!0,D(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{b.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&D()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,o.invalidMessage],()=>{h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[u.value],()=>{if(u.value){let e=u.value+I;f.value=e,p.value=u.value+L,m.value=u.value+R,_(o.message,o.showMessage)&&(v.value=e),C()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value,o.indeterminate],()=>{x.value&&o.indeterminate!==void 0&&(x.value.indeterminate=!!d(o.indeterminate))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value,o.checked],()=>{c.value&&x.value&&(o.checked!=null&&(x.value.checked=!!d(o.checked)),c.value=!1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value],()=>{if(x.value){let e=b.value;e||(e=new AbortController,b.value=e),Fe(x.value,{checked:o.checked,defaultChecked:void 0},e=>{w(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function S(){return!!(o.validMessage??o.validation===`valid`)}function C(){!x.value?.validity.valid||o.validation===`invalid`?(v.value=m.value,h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(y.value=h.value,l(()=>y.value=``,1e3))):S()&&x.value?.validity.valid&&o.required?(v.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>y.value=``,1e3))):_(o.message,o.showMessage)?v.value=f.value:v.value=void 0}function w(e,t){o.onChange&&o.onChange(e),J(a,e,`checked`),C()}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(){let e=o.id??o.propOverrides?.id??`checkbox-${r}`;u.value=e,f.value=e+I,p.value=e+L,m.value=e+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-checkbox`,o.class)),"data-size":e.size,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(g)(e.showLabel)},[(0,t.createElementVNode)(`label`,{for:u.value},[(0,t.createElementVNode)(`input`,{type:`checkbox`,"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:x,id:u.value,name:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(d)(e.required,`required`),onChange:r[0]||=async e=>w(e),onBlur:r[1]||=async e=>T(e),onFocus:r[2]||=async e=>E(e),"aria-describedby":e.ariaDescribedBy??v.value},null,40,ze),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],8,Re),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),S()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,Be,(0,t.toDisplayString)(y.value),1)],10,Le))}}),He=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Ue=(0,t.defineComponent)({name:`DBCustomButton`,__name:`custom-button`,props:{variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},noText:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String]}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-button`,n.class)),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(u)(e.noText,`noText`)},[(0,t.renderSlot)(a.$slots,`default`)],10,He))}}),We=class{addCallback(e){let t=n(),r=this.getCallbacks();return r[t]=e,t}removeCallback(e){let t=this.getCallbacks();delete t[e]}},Ge=class e extends We{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`click`,t=>e.runCallbacks(t))}getCallbacks(){return e.callbacks}},Z=class e extends We{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}ticking=!1;constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`scroll`,t=>{this.ticking||=(window.requestAnimationFrame(()=>{e.runCallbacks(t),this.ticking=!1}),!0)},!0)}getCallbacks(){return e.callbacks}},Ke=(e,t,n)=>{if(!e||!t)return;let r=e.dataset.width===`full`,i=e.dataset.width===`auto`;e.style.inlineSize=``,e.style.minInlineSize=``;let a=getComputedStyle(e);if(a.zIndex===`9999`||a.position!==`fixed`&&a.position!==`absolute`)return;let{top:o,bottom:s,childHeight:c,childWidth:l,width:u,right:d,left:f,correctedPlacement:p,innerWidth:m}=qe(e,t,n),h=u;if(i){let t=parseFloat(getComputedStyle(e).maxInlineSize);!isNaN(t)&&t>0&&(h=Math.min(u,t))}r?e.style.inlineSize=`${u}px`:i&&(e.style.minInlineSize=`${h}px`);let g=l;i?g=Math.max(l,h):r&&(g=u);let _=p;i&&(_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`)&&f+g>m&&(_=_.startsWith(`top`)?`top-end`:`bottom-end`),_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`?e.style.insetInlineStart=`${f}px`:(_===`top-end`||_===`bottom-end`)&&(e.style.insetInlineStart=`${Math.max(d-g,0)}px`),_?.startsWith(`top`)?e.style.insetBlockStart=`${o-c}px`:_?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${s}px`),e.style.position=`fixed`},qe=(e,t,n)=>{if(!e||!t)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:n,innerWidth:window.innerWidth,innerHeight:window.innerHeight};let r=e.getBoundingClientRect(),{top:i,height:a,bottom:o,right:s,left:c,width:l}=t.getBoundingClientRect(),{innerHeight:u,innerWidth:d}=window,f=r.height,p=r.width;(n===`bottom`||n===`top`)&&(p=l>p?0:p/2),(n===`left`||n===`right`)&&(f=a>f?0:f/2);let m=Math.floor(o+f)>u,h=Math.ceil(i-f)<0,g=Math.ceil(c-p)<0,_=Math.floor(s+p)>d,v=n;return n.startsWith(`bottom`)?m?h?g?v=`bottom-start`:_&&(v=`bottom-end`):(v=n?.replace(`bottom`,`top`),g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`)):g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`):n.startsWith(`top`)?h?m?g?v=`top-start`:_&&(v=`top-end`):(v=n?.replace(`top`,`bottom`),g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`)):g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`):n.startsWith(`left`)?g?_||(v=n?.replace(`left`,`right`),m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)):m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`):v.startsWith(`right`)&&(_?g||(v=n?.replace(`right`,`left`),m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`)):m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)),{top:i,bottom:o,right:s,height:a,width:l,left:c,childHeight:r.height,childWidth:r.width,correctedPlacement:v,innerWidth:d,innerHeight:u,outsideYBoth:h&&m}},Je=10,Ye=new WeakMap,Xe=e=>{if(Ye.has(e))return Ye.get(e);let t=e.parentElement,n=0;for(;t&&n<Je;){if(t.dataset.correctedPlacement)return Ye.set(e,t),t;t=t.parentElement,n+=1}return Ye.set(e,null),null},Ze=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=Xe(e),o=!a&&!i,s=getComputedStyle(e);if(s.position!==`fixed`&&s.position!==`absolute`)return;let c=s.getPropertyValue(`--db-popover-distance`);c.length||(c=`0px`);let{top:l,height:u,width:d,childHeight:f,childWidth:p,right:m,left:h,bottom:g,correctedPlacement:_,innerWidth:v,innerHeight:y,outsideYBoth:b}=qe(e,t,e?.dataset?.placement??n??`bottom`);if(a){let e=a.getBoundingClientRect();h=Math.abs(h-e.left),m=(d+Math.abs(m-e.right))*1.5,l=Math.abs(l-e.top),g=(u+Math.abs(g-e.bottom))*1.5}if(i&&(h=0,m=d,l=0,g=u,[`auto`,`inherit`,`0`].includes(r.zIndex)&&(t.style.zIndex=`1`)),p>d&&(_.startsWith(`bottom`)||_.startsWith(`top`))){let t=d/2/p*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-inline-start`,`50%`)}if(f>u&&(_.startsWith(`left`)||_.startsWith(`bottom`))){let t=u/2/f*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-block-start`,`50%`)}if(e.style.insetBlock=``,e.style.insetInline=``,_===`right`||_===`left`)e.style.insetBlockStart=`${l+u/2}px`;else if(_===`right-start`||_===`left-start`){let t=l+f;e.style.insetBlockStart=`${l}px`,e.style.insetBlockEnd=`${!i&&t>y?y:t}px`}else if(_===`right-end`||_===`left-end`){let t=g-f;e.style.insetBlockStart=`${!i&&t<0?0:t}px`,e.style.insetBlockEnd=`${g}px`}else if(_===`top`||_===`bottom`)e.style.insetInlineStart=`${h+d/2}px`;else if(_===`top-start`||_===`bottom-start`){let t=h+p;e.style.insetInlineStart=`${h}px`,e.style.insetInlineEnd=`${!i&&t>v?v:t}px`}else if(_===`top-end`||_===`bottom-end`){let t=m-p;e.style.insetInlineStart=`${!i&&t<0?0:t}px`,e.style.insetInlineEnd=`${m}px`}if(_?.startsWith(`right`)){let t=m+p;e.style.insetInlineStart=`calc(${m}px + ${c})`,e.style.insetInlineEnd=`calc(${o&&t>v?v:t}px + ${c})`}else if(_?.startsWith(`left`)){let t=h-p;e.style.insetInlineStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetInlineEnd=`calc(${m}px - ${c})`}else if(_?.startsWith(`top`)){let t=l-f;e.style.insetBlockStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetBlockEnd=`calc(${i?t:g}px - ${c})`}else if(_?.startsWith(`bottom`)){let t=g+f;e.style.insetBlockStart=`calc(${i?t:g}px + ${c})`,e.style.insetBlockEnd=`calc(${o&&t>y?y:t}px + ${c})`}b?(e.style.overflow=`hidden auto`,e.style.insetBlock=c,e.style.maxBlockSize=`calc(${y}px - 2 * ${c})`):(e.style.overflow=``,e.style.maxBlockSize=``),e.style.position=`fixed`,e.dataset.correctedPlacement=_,Qe(e)},Qe=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=$e(e),a={};return t||n?(a={vy:t?`top`:`bottom`},e.dataset.outsideVy=a.vy):delete e.dataset.outsideVy,r||i?(a={...a,vx:i?`right`:`left`},e.dataset.outsideVx=a.vx):delete e.dataset.outsideVx,a},$e=e=>{let{top:t,bottom:n,left:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window,s=t<0,c=n>a,l=r<0,u=i>o,d=e.dataset.outsideVy,f=e.dataset.outsideVx,p=e?.parentElement?.getBoundingClientRect();return p&&(d&&(e.dataset.outsideVy===`top`?s=p.top-(n-p.bottom)<0:c=p.bottom+(p.top-t)>a),f&&(e.dataset.outsideVx===`left`?l=p.left-(i-p.right)<0:u=p.right+(p.left-r)>o)),{outTop:s,outBottom:c,outLeft:l,outRight:u}},et=class{observe(e,t){let r=this.getObserver();if(!r)return;let i=n(),a=this.getCallbacksByElement(),o=this.getIdToElement(),s=a.get(e);return s||(s=new Map,a.set(e,s),this.observeElement(r,e)),s.set(i,t),o.set(i,e),i}unobserve(e){let t=this.getCallbacksByElement(),n=this.getIdToElement(),r=this.getObserver(),i=n.get(e);if(!i||!r)return;let a=t.get(i);a&&(a.delete(e),a.size===0&&(t.delete(i),this.unobserveElement(r,i))),n.delete(e)}dispatchEntry(e,t){let n=this.getCallbacksByElement().get(e);n&&n.forEach(e=>{e(t)})}},Q=class e extends et{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`IntersectionObserver`in window&&(e.observer=new IntersectionObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},$=class e extends et{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`ResizeObserver`in window&&(e.observer=new ResizeObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},tt=[`id`,`data-width`],nt=(0,t.defineComponent)({name:`DBCustomSelectDropdown`,__name:`custom-select-dropdown`,props:{width:{default:`fixed`},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{"data-spacing":`none`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-dropdown db-card`,n.class)),"data-width":e.width},[(0,t.renderSlot)(a.$slots,`default`)],10,tt))}}),rt=[`id`,`data-divider`],it=[`data-icon`,`data-show-icon`,`data-icon-trailing`],at=[`type`,`name`,`form`,`checked`,`disabled`,`value`],ot={class:`db-custom-select-list-item-label`},st={key:1},ct=(0,t.defineComponent)({name:`DBCustomSelectListItem`,__name:`custom-select-list-item`,props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=n,a=e,o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.watch)(()=>[a.isGroupTitle,a.showDivider],()=>{o.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:`post`});function c(e){e.stopPropagation(),a.onChange&&a.onChange(e),J(r,e,`checked`)}function l(){if(!(a.isGroupTitle||a.type===`checkbox`))return d(a.checked,`checked`)?`check`:`x_placeholder`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:s,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-list-item`,a.class,{"db-checkbox":e.type===`checkbox`&&!e.isGroupTitle,"db-radio":e.type!==`checkbox`&&!e.isGroupTitle})),"data-divider":(0,t.unref)(u)(o.value,`hasDivider`)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,st,(0,t.toDisplayString)(e.groupTitle),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:0,"data-icon":e.type!==`checkbox`&&e.icon?e.icon:void 0,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":l()},[(0,t.createElementVNode)(`input`,{class:`db-custom-select-list-item-checkbox`,"data-disable-focus":`true`,type:e.type,name:e.name,form:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,onChange:r[0]||=async e=>c(e)},null,40,at),(0,t.createElementVNode)(`span`,ot,[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)])],8,it))],10,rt))}}),lt=[`role`,`aria-label`,`id`],ut=(0,t.defineComponent)({name:`DBCustomSelectList`,__name:`custom-select-list`,props:{label:{default:void 0},multiple:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:e.multiple?`group`:`radiogroup`,"aria-label":e.label,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-list`,n.class))},[(0,t.createElementVNode)(`ul`,null,[(0,t.renderSlot)(a.$slots,`default`)])],10,lt))}}),dt=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],ft=[`for`],pt=`aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role`.split(`.`),mt=[`id`],ht=[`value`],gt={"data-visually-hidden":`true`,role:`status`},_t=(0,t.defineComponent)({name:`DBInput`,__name:`input`,props:{dataList:{default:void 0},dataListId:{default:void 0},multiple:{type:[Boolean,String],default:void 0},accept:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},enterkeyhint:{default:void 0},inputmode:{default:void 0},messageSize:{default:void 0},validMessageSize:{default:void 0},invalidMessageSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String],default:void 0},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),o=n,h=e,v=(0,t.ref)(void 0),y=(0,t.ref)(void 0),b=(0,t.ref)(void 0),x=(0,t.ref)(void 0),S=(0,t.ref)(void 0),C=(0,t.ref)(void 0),w=(0,t.ref)(void 0),T=(0,t.ref)(``),E=(0,t.ref)(``),D=(0,t.ref)(void 0),O=(0,t.ref)(null);(0,t.onMounted)(()=>{F(),S.value=h.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{D.value?.abort()}),(0,t.watch)(()=>[h.id,h.propOverrides?.id],()=>{(h.id??h.propOverrides?.id)&&F()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value,h.invalidMessage],()=>{S.value=h.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[v.value],()=>{if(v.value){let e=v.value+I;y.value=e,b.value=v.value+L,x.value=v.value+R,C.value=h.dataListId??v.value+`-datalist`,_(h.message,h.showMessage)&&(w.value=e),A()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[h.value],()=>{T.value=h.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value],()=>{if(O.value){let e=D.value;e||(e=new AbortController,D.value=e),Y(O.value,{value:h.value,defaultValue:void 0},e=>{M(e,!0),j(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function k(){return!!(h.validMessage??h.validation===`valid`)}function A(){!O.value?.validity.valid||h.validation===`invalid`?(w.value=x.value,S.value=h.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(E.value=S.value,l(()=>E.value=``,1e3))):k()&&O.value?.validity.valid&&(h.required||h.minLength||h.maxLength||h.pattern)?(w.value=b.value,s()&&(E.value=h.validMessage??`TODO: Add a validMessage`,l(()=>E.value=``,1e3))):_(h.message,h.showMessage)?w.value=y.value:w.value=void 0}function j(e,t){h.input&&h.input(e),T.value=e.target.value,h.onInput&&h.onInput(e),J(o,e),A()}function M(e,t){h.onChange&&h.onChange(e),J(o,e),A()}function ee(e){h.onBlur&&h.onBlur(e)}function N(e){h.onFocus&&h.onFocus(e)}function P(){let e=h.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function F(){let e=h.id??h.propOverrides?.id??`input-${r}`;v.value=e,y.value=e+I,b.value=e+L,x.value=e+R,C.value=e+z}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-input`,h.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`label`,{for:v.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,ft),(0,t.createElementVNode)(`input`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:O,id:v.value,name:e.name,type:e.type||`text`,multiple:(0,t.unref)(d)(e.multiple,`multiple`),accept:e.accept,placeholder:e.placeholder??(0,t.unref)(` `),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),step:(0,t.unref)(p)(e.step),value:e.value??T.value??``,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),max:(0,t.unref)(m)(e.max,e.type),min:(0,t.unref)(m)(e.min,e.type),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,pattern:e.pattern,size:e.size,autoComplete:e.autocomplete,autoFocus:(0,t.unref)(d)(e.autofocus,`autofocus`),enterKeyHint:e.enterkeyhint,inputMode:e.inputmode,onInput:r[0]||=async e=>j(e),onChange:r[1]||=async e=>M(e),onBlur:r[2]||=async e=>ee(e),onFocus:r[3]||=async e=>N(e),list:e.dataList&&C.value,"aria-describedby":e.ariaDescribedBy??w.value,role:[`datetime-local`,`date`,`time`,`week`,`month`,`color`].includes(e.type??``)&&(0,t.unref)(c)()?`textbox`:void 0},null,40,pt),e.dataList?((0,t.openBlock)(),(0,t.createElementBlock)(`datalist`,{key:0,id:C.value},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(P(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,ht))),128))],8,mt)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:e.messageSize||`small`,icon:e.messageIcon,id:y.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`size`,`icon`,`id`])):(0,t.createCommentVNode)(``,!0),k()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,semantic:`successful`,id:b.value,size:e.validMessageSize||`small`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`,`size`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{semantic:`critical`,id:x.value,size:e.invalidMessageSize||`small`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(S.value),1)]),_:1},8,[`id`,`size`]),(0,t.createElementVNode)(`span`,gt,(0,t.toDisplayString)(E.value),1)],10,dt))}}),vt=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],yt=(0,t.defineComponent)({name:`DBTooltip`,__name:`tooltip`,props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(0),h=(0,t.ref)([]),g=(0,t.ref)(null);(0,t.onMounted)(()=>{w(),o.value=!0}),(0,t.onUnmounted)(()=>{T()}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&w()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[g.value,o.value,a.value],()=>{if(g.value&&o.value&&a.value){let e=y();if(e){b(e);let t=()=>C(e),n=()=>S(),i=e=>v(e);if(e.addEventListener(`mouseenter`,t),e.addEventListener(`focusin`,t),e.addEventListener(`keydown`,i),e.addEventListener(`mouseleave`,n),e.addEventListener(`focusout`,n),h.value=[...h.value??[],{parent:e,type:`mouseenter`,fn:t},{parent:e,type:`focusin`,fn:t},{parent:e,type:`keydown`,fn:i},{parent:e,type:`mouseleave`,fn:n},{parent:e,type:`focusout`,fn:n}],e.dataset.hasTooltip=`true`,r.variant===`label`)e.setAttribute(`aria-labelledby`,a.value);else{let t=(e.getAttribute(`aria-describedby`)||``).split(` `).filter(e=>e!==``);t.includes(a.value)||t.push(a.value),e.setAttribute(`aria-describedby`,t.join(` `))}f.value=e,p.value=a.value}o.value=!1}},{immediate:!0,flush:`post`});function _(e){e.stopPropagation()}function v(e){(!e||e.key===`Escape`)&&g.value&&getComputedStyle(g.value).visibility===`visible`&&y().blur()}function y(){let e=g.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function b(e){e&&g.value&&l(()=>{g.value&&Ze(g.value,e)},1)}function x(e,t){e?.target?.contains&&e?.target?.contains(g.value)&&b(t)}function S(){m.value=Math.max((m.value??0)-1,0),!((m.value??0)>0)&&(s.value&&=(new Z().removeCallback(s.value),void 0),d.value&&=(new $().unobserve(d.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0))}function C(e){m.value=(m.value??0)+1,m.value===1&&(s.value=new Z().addCallback(t=>x(t,e)),d.value=new $().observe(document.documentElement,()=>b(e)),c.value=new Q().observe(y(),e=>{e.isIntersecting||v(!1)})),b(e)}function w(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}function T(){let e=s.value;e&&(new Z().removeCallback(e),s.value=void 0),d.value&&=(new $().unobserve(d.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0),m.value=0,(h.value??[]).forEach(e=>{e.parent.removeEventListener(e.type,e.fn)}),h.value=[];let t=f.value;if(t){let e=p.value??a.value,n=t.querySelectorAll(`.db-tooltip`),r=Array.from(n).some(e=>e!==g.value);t.dataset.hasTooltip===`true`&&!r&&delete t.dataset.hasTooltip,t.getAttribute(`aria-labelledby`)===e&&t.removeAttribute(`aria-labelledby`);let i=t.getAttribute(`aria-describedby`)||``,o=i.split(` `).filter(t=>t!==``&&t!==e).join(` `);o?t.setAttribute(`aria-describedby`,o):i&&t.removeAttribute(`aria-describedby`),f.value=void 0,p.value=void 0}}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:g,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tooltip`,r.class)),id:a.value,"data-emphasis":e.emphasis,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(u)(e.showArrow??!0,`showArrow`),"data-placement":e.placement,onClick:o[0]||=async e=>_(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,vt))}}),bt=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],xt=(0,t.defineComponent)({name:`DBTag`,__name:`tag`,props:{behavior:{default:void 0},removeButton:{default:void 0},showCheckState:{type:[Boolean,String],default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},semantic:{default:void 0},overflow:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},content:{},onRemove:{type:Function,default:void 0},remove:{},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onRemove&&n.onRemove(e))}function o(){return n.removeButton?n.removeButton:ie}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tag`,n.class)),"data-semantic":e.semantic,"data-emphasis":e.emphasis,"data-icon":e.icon,"data-show-check-state":(0,t.unref)(u)(e.showCheckState??!0,`showCheckState`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),"data-overflow":(0,t.unref)(u)(e.overflow,`overflow`)},[(0,t.renderSlot)(s.$slots,`content`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`),e.behavior===`removable`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`db-button db-tab-remove-button`,"data-icon":`cross`,"data-size":`small`,"data-no-text":`true`,"data-variant":`ghost`,type:`button`,onClick:c[0]||=async e=>a(e)},[(0,t.createVNode)(yt,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,bt))}}),St=[`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`],Ct=[`id`],wt=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],Tt=[`disabled`,`value`],Et=[`open`],Dt=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],Ot=[`data-visually-hidden`,`id`],kt={key:0,"data-visually-hidden":`true`},At={key:1},jt={key:0},Mt={key:0},Nt={class:`db-checkbox db-custom-select-list-item`},Pt=[`form`,`checked`],Ft=[`id`],It={"data-visually-hidden":`true`,role:`status`},Lt=(0,t.defineComponent)({name:`DBCustomSelect`,__name:`custom-select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},amountText:{default:void 0},listLabel:{default:void 0},clearSelectionText:{default:`Clear selection`},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchFilter:{type:Function,default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},searchValue:{default:void 0},selectAllLabel:{default:void 0},selectedLabels:{default:void 0},selectedPrefix:{default:void 0},selectedType:{default:void 0},showClearSelection:{type:Boolean,default:!0},showLoading:{type:Boolean,default:void 0},showNoResults:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},showSelectAll:{type:Boolean,default:void 0},transformSelectedLabels:{type:Function,default:void 0},values:{default:void 0},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},onSearch:{type:Function,default:void 0},search:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:[`update:values`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),y=(0,t.ref)(void 0),b=(0,t.ref)(void 0),x=(0,t.ref)(void 0),S=(0,t.ref)(void 0),C=(0,t.ref)(void 0),w=(0,t.ref)(`no-validation`),T=(0,t.ref)(!1),E=(0,t.ref)(void 0),D=(0,t.ref)(void 0),O=(0,t.ref)(``),k=(0,t.ref)(void 0),A=(0,t.ref)(``),j=(0,t.ref)([]),M=(0,t.ref)(!1),ee=(0,t.ref)(!1),N=(0,t.ref)(0),P=(0,t.ref)([]),z=(0,t.ref)([]),B=(0,t.ref)(!1),re=(0,t.ref)(void 0),ae=(0,t.ref)(0),se=(0,t.ref)(void 0),ce=(0,t.ref)(void 0),le=(0,t.ref)(void 0),ue=(0,t.ref)(void 0),de=(0,t.ref)(!1),fe=(0,t.ref)(!1),pe=(0,t.ref)(null),V=(0,t.ref)(null),H=(0,t.ref)(null),me=(0,t.ref)(null),he=(0,t.ref)(null);(0,t.onMounted)(()=>{Ie(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{E.value?.abort(),re.value&&new Ge().removeCallback(re.value),se.value&&new Z().removeCallback(se.value),le.value&&new $().unobserve(le.value),ce.value&&new Q().unobserve(ce.value)}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&Ie()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[V.value],()=>{V.value&&V.value.addEventListener(`focusout`,e=>De(e))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+I;b.value=c.value+F,y.value=c.value+te,p.value=c.value+L,m.value=c.value+R,S.value=c.value+ne,_(o.message,o.showMessage)?U(e):U()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[V.value,D.value],()=>{if(V.value){let e=V.value.querySelector(`summary`);e&&e.setAttribute(`aria-describedby`,o.ariaDescribedBy??(D.value||``))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showNoResults,o.showLoading,z.value],()=>{o.showNoResults===void 0?z.value&&(B.value=z.value.length===0):B.value=o.showNoResults},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSelectAll,N.value,o.multiple],()=>{M.value=!!(o.multiple&&(o.showSelectAll??N.value>5))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSearch,N.value],()=>{ee.value=o.showSearch??N.value>9},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.values],()=>{let e=o.values;Array.isArray(e)?P.value!==e&&(P.value=e):e==null&&P.value?.length!==0&&(P.value=[])},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[P.value,H.value],()=>{H.value&&ve()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value],()=>{if(H.value){let e=E.value;e||(e=new AbortController,E.value=e);let t=o.values;Pe(H.value,()=>{q(t||(H.value.value?[H.value.value]:[])),ve()},e.signal)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation],()=>{w.value=o.validation},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[P.value,N.value],()=>{P.value?.length===0?(de.value=!1,fe.value=!1):P.value?.length===N.value?(fe.value=!1,de.value=!0):P.value&&(fe.value=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options],()=>{z.value=o.options,N.value=o.options?.filter(e=>!e.isGroupTitle).length??0,V.value?.open&&G()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(ue.value=o.searchValue,o.searchValue){let e=o.searchValue;Ne(e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options,P.value],()=>{o.options?.length&&(j.value=o.options?.filter(e=>!e.value||!P.value?.includes?!1:!e.isGroupTitle&&P.value?.includes(e.value)))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[j.value,o.selectedType,o.amountText,o.selectedLabels,o.transformSelectedLabels],()=>{if(o.selectedLabels){O.value=o.selectedLabels;return}if(j.value?.length){if(o.transformSelectedLabels){let e=j.value,t=o.transformSelectedLabels;O.value=t(e);return}o.selectedType===`amount`?O.value=o.amountText?o.amountText:`${j.value?.length} ${oe}`:O.value=j.value?.map(e=>W(e)).join(`, `)}else O.value=``},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[j.value],()=>{o.onAmountChange&&o.onAmountChange(j.value?.length??0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[fe.value,me.value],()=>{me.value&&(me.value.indeterminate=!!fe.value)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value,o.invalidMessage],()=>{h.value=o.invalidMessage||H.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`});function ge(e){e?.target?.contains&&e?.target?.contains(V.value)&&G()}function _e(){return!!(o.validMessage??o.validation===`valid`)}function ve(){H.value&&(H.value.value=be()),!H.value?.validity.valid||o.validation===`invalid`?(U(m.value),h.value=o.invalidMessage||H.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(A.value=h.value,l(()=>A.value=``,1e3)),T.value&&(w.value=o.validation??`invalid`)):_e()&&H.value?.validity.valid&&o.required?(U(p.value),s()&&(A.value=o.validMessage??`TODO: Add a validMessage`,l(()=>A.value=``,1e3)),w.value=o.validation??`valid`):_(o.message,o.showMessage)?(U(f.value),w.value=o.validation??`no-validation`):(U(S.value),w.value=o.validation??`no-validation`)}function ye(e){o.onDropdownToggle&&(e.stopPropagation(),o.onDropdownToggle(e)),e.target instanceof HTMLDetailsElement&&e.target.open?(re.value=new Ge().addCallback(e=>Oe(e)),se.value=new Z().addCallback(e=>ge(e)),G(),le.value=new $().observe(document.documentElement,()=>G()),ce.value=new Q().observe(V.value,e=>{!e.isIntersecting&&V.value.open&&(V.value.open=!1)}),e.target.dataset.test||Me()):(re.value&&new Ge().removeCallback(re.value),se.value&&new Z().removeCallback(se.value),le.value&&new $().unobserve(le.value),ce.value&&new Q().unobserve(ce.value))}function be(){return P.value?.length?P.value.at(0)??``:``}function U(e){let t=[];e&&t.push(e),k.value&&O.value?.length&&t.push(k.value),D.value=t.join(` `)}function xe(){return o.selectAllLabel??`LABEL SHOULD BE SET`}function W(e){return e.label??e.value?.toString()??``}function Se(e){return e&&P.value?.includes?P.value?.includes(e):!1}function Ce(e){let t=o.removeTagsTexts,n=o.options;if(t&&n){let r=n.findIndex(t=>t.value===e.value);if(r>=0&&r<t.length)return t[r]}return`${ie} ${W(e)}`}function we(e,t){t&&t.stopPropagation(),ke(e.value),Y()}function G(){if(V.value){let e=V.value.querySelector(`article`);e&&l(()=>{Ke(e,V.value,o.placement??`bottom`)},1)}}function Te(e){if(V.value?.open){if(self.document){let t=self.document.activeElement;if(t)if(t.getAttribute(`type`)===`checkbox`||t.getAttribute(`type`)===`radio`){let n=t?.closest(`li`);if(e.key===`ArrowDown`||e.key===`ArrowRight`){let e=n?.nextElementSibling;for(;e;){let t=e.querySelector(`input`);if(t){t.focus();break}e=e.nextElementSibling}e||je(t)}else{let e=n?.previousElementSibling;for(;e;){let t=e.querySelector(`input`);if(t){t.focus();break}e=e.previousElementSibling}if(!e){let e=V.value.querySelector(`input[type="checkbox"]`);if(e&&e!==t)je(t);else{let e=v(V.value);if(e)l(()=>{e.focus()},100);else{let e=Array.from(V.value?.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));e.length&&e.at(-1)?.focus()}}}}}else t.getAttribute(`type`)===`search`&&(e.key===`ArrowUp`||e.key===`ArrowLeft`)?(De(void 0,!0),Y()):je(t)}}else(e.key===`ArrowDown`||e.key===`ArrowRight`)&&(G(),V.value&&(V.value.open=!0),Me());e.stopPropagation(),e.preventDefault()}function Ee(e){if(e.stopPropagation(),e.key===`Escape`&&V.value?.open)De(void 0,!0),Y();else if(e.key===`Enter`&&V.value?.open){if(self.document){let t=self.document.activeElement;if([`checkbox`,`radio`].includes(t.getAttribute(`type`)||``))t.click(),e.preventDefault();else if(t.getAttribute(`type`)===`search`){let t=z.value?.find(e=>!e.isGroupTitle&&!e.disabled);t?.value&&(ke(t.value),e.preventDefault())}}}else(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&Te(e)}function De(e,t){if(V.value){if(t)V.value.open=!1,Y();else if(V.value.open&&e&&e.relatedTarget){let t=e.relatedTarget;!V.value.contains(t)&&t.localName!==`dialog`&&l(()=>V.value.open=!1,1)}}}function Oe(e){if(e){let t=e.target;V.value?.open&&!V.value.contains(t)&&(V.value.open=!1)}}function q(e){new Date().getTime()-ae.value<200||(P.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),J(a,{target:{values:e}},`values`),ae.value=new Date().getTime())}function ke(e){e&&(o.multiple?P.value?.includes(e)?q(P.value.filter(t=>t!==e)):q([...P.value||[],e]):(q([e]),De(void 0,!0)))}function Ae(e){if(e.stopPropagation(),P.value?.length===N.value)q([]);else{let e=ee.value&&he.value?he.value.value:void 0;q(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function je(e){if(V.value){let t=Array.from(V.value.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));if(t.length){let n=t.at(0),r=n===e&&t.length>1?t.at(1):n;r&&l(()=>{r.focus()},1)}}}function Me(){if(V.value){let e=v(V.value);e?l(()=>{e.focus()},1):je()}}function Ne(e){if(e===void 0)return;let t;if(typeof e==`string`)t=e;else{let n=e;n.stopPropagation(),o.onSearch&&o.onSearch(n),t=n.target.value,ue.value=t}!o.options||!t||t.length===0?z.value=o.options:o.searchFilter?z.value=o.options.filter(e=>o.searchFilter(e,t)):z.value=o.options.filter(e=>!e.isGroupTitle&&W(e).toLowerCase().includes(t.toLowerCase())),V.value?.open&&G()}function Fe(e){e.stopPropagation(),q([]),Y()}function Y(){V.value&&V.value.querySelector(`summary`)?.focus()}function Ie(){let e=o.id??o.propOverrides?.id??`custom-select-${r}`;c.value=e,f.value=e+I,p.value=e+L,m.value=e+R,y.value=e+te,b.value=e+F,x.value=e+`-summary`,S.value=e+ne,k.value=e+`-selected-labels`,C.value=e+`-info`}function Le(e){e.stopPropagation()}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:c.value,ref_key:`_ref`,ref:pe,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select`,o.class)),"aria-invalid":w.value===`invalid`,"data-custom-validity":w.value,"data-width":e.formFieldWidth,"data-variant":e.variant===`floating`&&e.selectedType===`tag`&&e.multiple?`above`:e.variant,"data-required":(0,t.unref)(u)(e.required,`required`),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-placement":e.placement,"data-selected-type":e.multiple?e.selectedType:`text`,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{id:b.value},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),1),(0,t.createElementVNode)(`select`,{role:`none`,hidden:!0,id:y.value,tabIndex:-1,ref_key:`selectRef`,ref:H,form:e.form,name:e.name,"data-custom-validity":w.value,multiple:(0,t.unref)(d)(e.multiple,`multiple`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),onChange:r[0]||=async e=>Le(e)},[e.options?.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,disabled:e.disabled,value:e.value},(0,t.toDisplayString)(W(e)),9,Tt))),128)):(0,t.createCommentVNode)(``,!0)],40,wt)],8,Ct),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:V,open:e.open,onToggle:r[2]||=async e=>ye(e),onKeydown:r[3]||=async e=>Ee(e)},[(0,t.renderSlot)(n.$slots,`default`),e.options?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`summary`,{class:`db-custom-select-form-field`,id:x.value,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:void 0,"aria-labelledby":b.value},[O.value?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,"data-visually-hidden":(0,t.unref)(u)(e.selectedType===`tag`,`selectedType`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kt,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,Ot)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,At,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(xt,{key:n,emphasis:`strong`,behavior:`removable`,removeButton:Ce(e),onRemove:t=>we(e,t)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(W(e)),1)]),_:2},1032,[`removeButton`,`onRemove`]))),128))])):(0,t.createCommentVNode)(``,!0)],8,Dt),(0,t.createVNode)(nt,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[ee.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jt,[(0,t.createVNode)(_t,{type:`search`,ref_key:`searchInputRef`,ref:he,name:c.value,form:c.value,showLabel:!1,value:ue.value,label:e.searchLabel??(0,t.unref)(`LABEL SHOULD BE SET`),placeholder:e.searchPlaceholder??e.searchLabel,ariaDescribedBy:B.value||e.showLoading?C.value:void 0,onInput:e=>Ne(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),B.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,id:C.value,icon:e.showLoading?`circular_arrows`:void 0,semantic:e.showLoading?`informational`:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((e.showLoading?e.loadingText:e.noResultsText)??(0,t.unref)(`MESSAGE SHOULD BE SET`)),1)]),_:1},8,[`id`,`icon`,`semantic`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[M.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Mt,[(0,t.createElementVNode)(`div`,Nt,[(0,t.createElementVNode)(`label`,null,[(0,t.createElementVNode)(`input`,{type:`checkbox`,value:`select-all`,ref_key:`selectAllRef`,ref:me,form:c.value,checked:de.value,onChange:r[1]||=async e=>Ae(e)},null,40,Pt),(0,t.createTextVNode)((0,t.toDisplayString)(xe()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(ut,{multiple:(0,t.unref)(d)(e.multiple,`multiple`),label:e.listLabel??e.label??(0,t.unref)(`LABEL SHOULD BE SET`)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(z.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(ct,{key:r,type:e.multiple?`checkbox`:`radio`,showDivider:n.showDivider,icon:n.icon,isGroupTitle:n.isGroupTitle,groupTitle:W(n),name:c.value,checked:Se(n.value),disabled:n.disabled,value:n.value,onChange:e=>ke(n.value)},{default:(0,t.withCtx)(()=>[n.isGroupTitle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(W(n)),1)],64))]),_:2},1032,[`type`,`showDivider`,`icon`,`isGroupTitle`,`groupTitle`,`name`,`checked`,`disabled`,`value`,`onChange`]))),128))]),_:1},8,[`multiple`,`label`])],64)),(0,t.createElementVNode)(`div`,null,[(0,t.createVNode)(K,{variant:`ghost`,width:`full`,icon:`cross`,size:`small`,name:c.value,form:c.value,onClick:e=>De(void 0,!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.mobileCloseButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`name`,`form`,`onClick`])])]),_:1},8,[`width`])],64)):(0,t.createCommentVNode)(``,!0)],40,Et),(e.showClearSelection??!0)&&P.value?.length?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,icon:`cross`,variant:`ghost`,size:`small`,noText:!0,name:c.value,form:c.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),onClick:e=>Fe(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)(yt,{placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1)]),_:1})]),_:1},8,[`name`,`form`,`disabled`,`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`db-custom-select-placeholder`,"aria-hidden":`true`,id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,Ft),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),_e()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,It,(0,t.toDisplayString)(A.value),1)],10,St))}}),Rt=[`fixed`,`auto`,`full`],zt=[`id`],Bt=(0,t.defineComponent)({name:`DBCustomSelectFormField`,__name:`custom-select-form-field`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`summary`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-form-field`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,zt))}}),Vt=[`checkbox`,`radio`],Ht=[`amount`,`text`,`tag`],Ut=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],Wt=(0,t.defineComponent)({name:`DBDivider`,__name:`divider`,props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,"data-margin":e.margin,"data-variant":e.variant,"data-emphasis":e.emphasis,"data-width":e.width,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-divider`,n.class))},null,10,Ut))}}),Gt=[`none`,`_`],Kt=[`horizontal`,`vertical`],qt=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],Jt=[`data-container-size`,`data-show-spacing`,`data-direction`,`data-rounded`],Yt={class:`db-drawer-content`},Xt=(0,t.defineComponent)({name:`DBDrawer`,__name:`drawer`,props:{backdrop:{default:void 0},direction:{default:void 0},header:{},footer:{},showSpacing:{type:[Boolean,String],default:void 0},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},position:{default:void 0},containerSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClose:{type:Function,default:void 0},close:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(null),s=(0,t.ref)(null);(0,t.onMounted)(()=>{m(),r.value=!0}),(0,t.watch)(()=>[n.open],()=>{m()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value,r.value,n.position],()=>{if(o.value&&r.value&&n.position===`absolute`){let e=o.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function c(){return n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`}function f(e){a.value=e?.target?.nodeName===`DIALOG`}function p(e){if(e)if(x(e))e.key===`Escape`&&(e.preventDefault(),n.onClose&&n.onClose(e));else{let t=e.target?.nodeName===`DIALOG`&&e.type===`click`&&n.backdrop!==`none`&&a.value,r=!!e.target?.closest?.(`[data-action="close"]`);(t||r)&&(r&&e.stopPropagation(),n.onClose&&n.onClose(e)),a.value=!1}}function m(){if(o.value){let e=d(n.open,`open`);if(e&&!o.value.open&&(s.value&&s.value.removeAttribute(`data-transition`),c()?o.value.show():o.value.showModal(),l(()=>{s.value&&(s.value.dataset.transition=`open`)},1)),!e&&o.value.open){s.value&&(s.value.dataset.transition=`close`);let e=401;if(s.value){let t=getComputedStyle(s.value).getPropertyValue(`--db-drawer-close-delay`).trim(),n=parseFloat(t);n>0&&(e=n*1e3+1)}l(()=>{o.value?.close()},e)}}}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:o,onClick:a[0]||=async e=>p(e),onMousedown:a[1]||=async e=>f(e),onKeydown:a[2]||=async e=>p(e),"data-position":e.position,"data-backdrop":e.backdrop,"data-direction":e.direction,"data-variant":e.variant},[(0,t.createElementVNode)(`article`,{ref_key:`dialogContainerRef`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-container-size":e.containerSize,"data-show-spacing":(0,t.unref)(u)(e.showSpacing??!0,`showSpacing`),"data-direction":e.direction,"data-rounded":(0,t.unref)(u)(e.rounded,`rounded`)},[(0,t.renderSlot)(r.$slots,`header`),(0,t.createElementVNode)(`div`,Yt,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.renderSlot)(r.$slots,`footer`)],10,Jt)],40,qt))}}),Zt=[`id`],Qt=(0,t.defineComponent)({name:`DBDrawerFooter`,__name:`drawer-footer`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-footer`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Zt))}}),$t=[`id`],en=[`id`],tn={key:0},nn=(0,t.defineComponent)({name:`DBDrawerHeader`,__name:`drawer-header`,props:{closeButtonId:{default:void 0},closeButtonText:{default:fe},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},startSlot:{},endSlot:{}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(`db-drawer-header-heading-`+n),o=(0,t.ref)(null);(0,t.onMounted)(()=>{s()}),(0,t.onUnmounted)(()=>{c()});function s(){if(o.value){let e=o.value.closest(`dialog`);e&&e.setAttribute(`aria-labelledby`,a.value)}}function c(){if(o.value){let e=o.value.closest(`dialog`);e&&e.getAttribute(`aria-labelledby`)===a.value&&e.removeAttribute(`aria-labelledby`)}}return(n,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-header`,r.class))},[(0,t.createElementVNode)(`header`,{class:`db-drawer-header-container`,id:a.value},[(0,t.renderSlot)(n.$slots,`start-slot`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`h2`,tn,(0,t.toDisplayString)(e.text),1)):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,1)],8,en),(0,t.renderSlot)(n.$slots,`end-slot`),(0,t.createVNode)(K,{"data-action":`close`,icon:`cross`,variant:`ghost`,type:`button`,id:e.closeButtonId,noText:!0},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1),(0,t.createVNode)(yt,null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1)]),_:1})]),_:1},8,[`id`])],10,$t))}}),rn=[`none`,`strong`,`weak`,`invisible`],an=[`to-left`,`to-right`,`up`,`down`],on=[`modal`,`inside`],sn=[`fixed`,`absolute`],cn=[`small`,`medium`,`large`,`full`],ln=e=>{let{target:t}=e;return!!(!t?.classList?.contains(`db-navigation-item-expand-button`)&&t?.parentElement?.classList.contains(`db-navigation-item`))},un=class{element;subNavigation;parentSubNavigation=null;triangleData;initialized=!1;mouseX=0;mouseY=0;constructor(e,t){this.element=e,this.subNavigation=t,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=this.element?.closest(`.db-sub-navigation`),this.parentSubNavigation&&!this.element.closest(`.db-drawer`)&&this.init())}init(){let e=this.parentSubNavigation?.getBoundingClientRect().width??0;this.element?.style.setProperty(`--db-navigation-item-inline-size`,`${e}px`),this.initialized=!0}enableFollow(){if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;let e=Qe(this.subNavigation),t=this.element.getBoundingClientRect(),n=this.parentSubNavigation?.getBoundingClientRect().width??0;this.triangleData={itemRect:t,parentElementWidth:n,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(n-t.width)/2,outsideVX:e.vx,outsideVY:e.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?this.triangleData.outsideVX===`right`?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,this.triangleData.itemRect.width*.75):0}getTriangleTipY(){if(!this.triangleData)return 0;let e=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY===`bottom`?e+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):e}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;let e=this.triangleData.outsideVX===`right`;return!!(e&&this.mouseX<-1*this.triangleData.padding||!e&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(e){if(!this.triangleData)return;if(e===`fill-gap`){let e=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${t} ${e}`,lt:`${t} 0`,rt:`100% 0`,rb:`100% ${e}`}}let t=this.getTriangleTipX(),n=this.getTriangleTipY();return{lb:`${t}px ${n}px`,lt:`${t}px ${n}px`,rt:`100% 0`,rb:`100% 100%`}}followByMouseEvent(e){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=e.clientX-this.triangleData.itemRect.left,this.mouseY=e.clientY-this.triangleData.itemRect.top;let t=this.hasMouseEnteredSubNavigation(),n=this.getTriangleCoordinates(t?`fill-gap`:`safe-triangle`);n&&(this.element.style.setProperty(`--db-navigation-item-clip-path`,`polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`),t&&(this.triangleData=void 0))}},dn=[`id`,`data-width`,`data-on-forcing-mobile`],fn={class:`db-header-meta-navigation`},pn={class:`db-header-navigation-bar`},mn={class:`db-header-brand-container`},hn={class:`db-header-navigation-container`},gn={class:`db-header-navigation`},_n={class:`db-header-primary-action`},vn={class:`db-header-action-container`},yn={class:`db-header-burger-menu-container`},bn={class:`db-header-secondary-action`},xn={class:`db-header-drawer-navigation`},Sn={class:`db-header-meta-navigation`},Cn={class:`db-header-secondary-action`},wn=(0,t.defineComponent)({name:`DBHeader`,__name:`header`,props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},drawerHeaderText:{default:void 0},burgerMenuLabel:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(e){let n=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0}),(0,t.watch)(()=>[a.value,s.value],()=>{a.value&&s.value&&n.forceMobile&&(r(s.value,{key:`data-force-mobile`,value:`true`}),o.value=!0)},{immediate:!0,flush:`post`});function c(e){e&&e.stopPropagation&&e.stopPropagation();let t=!d(n.drawerOpen,`drawerOpen`);n.onToggle&&n.onToggle(t)}function l(e){ln(e)&&c()}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-header`,n.class)),id:e.id??e.propOverrides?.id,"data-width":e.width,"data-on-forcing-mobile":e.forceMobile&&!o.value},[(0,t.createElementVNode)(`div`,fn,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,pn,[(0,t.createElementVNode)(`div`,mn,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,hn,[(0,t.createElementVNode)(`div`,gn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,_n,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,vn,[(0,t.createElementVNode)(`div`,yn,[(0,t.createVNode)(K,{icon:`menu`,variant:`ghost`,noText:!0,onClick:e=>c()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.burgerMenuLabel??(0,t.unref)(`Open navigation menu`)),1)]),_:1},8,[`onClick`])]),(0,t.createElementVNode)(`div`,bn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])]),(0,t.createVNode)(Xt,{rounded:!0,open:(0,t.unref)(d)(e.drawerOpen),onClose:e=>c()},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(nn,{closeButtonId:e.closeButtonId,closeButtonText:e.closeButtonText,text:e.drawerHeaderText},null,8,[`closeButtonId`,`closeButtonText`,`text`])]),footer:(0,t.withCtx)(()=>[(0,t.createVNode)(Qt,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Cn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,xn,[(0,t.createElementVNode)(`div`,{class:`db-header-navigation`,onClick:a[0]||=async e=>l(e)},[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,Sn,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])])]),_:3},8,[`open`,`onClose`])],10,dn))}}),Tn=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],En=(0,t.defineComponent)({name:`DBIcon`,__name:`icon`,props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{"aria-hidden":`true`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-icon`,n.class)),"data-icon":e.icon,"data-icon-weight":e.weight,"data-icon-variant":e.variant},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Tn))}}),Dn=[`16`,`20`,`24`,`32`,`48`,`64`],On=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],kn=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],An=(0,t.defineComponent)({name:`DBLink`,__name:`link`,props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},disabled:{type:[Boolean,String],default:void 0},href:{default:void 0},hreflang:{default:void 0},target:{default:void 0},rel:{default:void 0},referrerpolicy:{default:void 0},referrerPolicy:{default:void 0},role:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){n.onClick&&n.onClick(e)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-link`,n.class)),href:e.href,target:e.target,rel:e.rel,role:e.role,referrerPolicy:e.referrerpolicy??e.referrerPolicy,hrefLang:e.hreflang,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(u)(e.showIcon??!0,`showIcon`),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),onClick:s[0]||=async e=>a(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)],10,kn))}}),jn=[`adaptive`,`brand`,`inline`],Mn=[`medium`,`small`],Nn=[`external`,`internal`],Pn=[`id`],Fn=(0,t.defineComponent)({name:`DBNavigation`,__name:`navigation`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-navigation`,n.class))},[(0,t.createElementVNode)(`menu`,null,[(0,t.renderSlot)(a.$slots,`default`)])],10,Pn))}}),In=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],Ln=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],Rn=[`id`,`aria-labelledby`,`data-force-close`],zn={key:0,class:`db-mobile-navigation-back`},Bn=(0,t.defineComponent)({name:`DBNavigationItem`,__name:`navigation-item`,props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},hideSubNavigation:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!0),c=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0;let e=`sub-nav-${r.id??n}`;m.value=e,h.value=`${e}-toggle`}),(0,t.watch)(()=>[r.subNavigationExpanded],()=>{r.subNavigationExpanded!==void 0&&(c.value=!!d(r.subNavigationExpanded,`subNavigationExpanded`))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.value,g.value],()=>{if(a.value&&g.value){let e=g.value.querySelector(`menu`);e&&(e.children?.length>0?(o.value=!0,p.value||=new un(g.value,e)):s.value=!1)}},{immediate:!0,flush:`post`});function _(e){e?.target?.nodeName===`A`&&(f.value=!0,l(()=>{f.value=!1},1e3))}function v(e){r.onClick&&(e.stopPropagation(),r.onClick(e)),o.value&&(c.value=!0)}function y(e){e.stopPropagation(),c.value=!1}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:g,id:e.id??e.propOverrides?.id,onMouseover:a[2]||=async e=>p.value?.enableFollow(),onMouseleave:a[3]||=async e=>p.value?.disableFollow(),onMousemove:a[4]||=async e=>p.value?.followByMouseEvent(e),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-navigation-item`,r.class)),"data-width":e.width,"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-active":(0,t.unref)(d)(e.active,`active`),"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`)},[!(0,t.unref)(d)(e.hideSubNavigation,`hideSubNavigation`)&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`button`,{class:`db-navigation-item-expand-button`,id:h.value,"aria-haspopup":o.value?`true`:void 0,"aria-expanded":c.value,"aria-controls":m.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),onClick:a[0]||=async e=>v(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,1)],8,Ln),(0,t.createElementVNode)(`menu`,{class:`db-sub-navigation`,id:m.value,"aria-labelledby":h.value,"data-force-close":f.value,onClick:a[1]||=async e=>_(e)},[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zn,[(0,t.createVNode)(K,{icon:`arrow_left`,variant:`ghost`,id:e.backButtonId,onClick:e=>y(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.backButtonText??(0,t.unref)(`Back`)),1)]),_:1},8,[`id`,`onClick`])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`sub-navigation`)],8,Rn)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,1)],64))],42,In))}}),Vn=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],Hn={key:0,"data-area":`head`},Un={"data-area":`content`},Wn=[`dateTime`],Gn=(0,t.defineComponent)({name:`DBNotification`,__name:`notification`,props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},timestampDatetime:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},role:{default:void 0},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onClose&&n.onClose(e))}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-notification`,n.class)),role:(0,t.unref)(S)({semantic:e.semantic,role:e.role,ariaLive:e.ariaLive}),"aria-live":e.ariaLive,"data-semantic":e.semantic,"data-variant":e.variant,"data-icon":(0,t.unref)(d)(e.showIcon)===!1?void 0:e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-link-variant":e.linkVariant},[(0,t.renderSlot)(o.$slots,`image`),(0,t.unref)(_)(e.headline,e.showHeadline)?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Hn,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Un,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)]),(0,t.unref)(_)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`time`,{key:1,"data-area":`timestamp`,dateTime:e.timestampDatetime},(0,t.toDisplayString)(e.timestamp),9,Wn)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`link`),(0,t.unref)(d)(e.closeable,`closeable`)?((0,t.openBlock)(),(0,t.createBlock)(K,{key:2,icon:`cross`,variant:`ghost`,size:`small`,id:e.closeButtonId,noText:!0,onClick:e=>a(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`id`,`onClick`])):(0,t.createCommentVNode)(``,!0)],10,Vn))}}),Kn=[`docked`,`standalone`,`overlay`],qn=[`block`,`inline`],Jn=[`assertive`,`polite`,`off`],Yn=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Xn=(0,t.defineComponent)({name:`DBPage`,__name:`page`,props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return typeof window<`u`&&document&&(n.documentOverflow===`hidden`||n.variant===`fixed`&&n.documentOverflow!==`auto`)&&document.documentElement.classList.add(`db-page-document`),(0,t.onMounted)(()=>{r.value=!n.fadeIn,document&&n.fadeIn?document.fonts.ready.then(()=>{r.value=!0}):r.value=!0}),(0,t.onUnmounted)(()=>{typeof window<`u`&&document.documentElement.classList.contains(`db-page-document`)&&document.documentElement.classList.remove(`db-page-document`)}),(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-page`,n.class)),"data-variant":e.variant,"data-fade-in":(0,t.unref)(u)(e.fadeIn,`fadeIn`),"data-fonts-loaded":(0,t.unref)(u)(r.value,`fontsLoaded`)},[(0,t.renderSlot)(o.$slots,`header`),(0,t.createElementVNode)(`main`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-main`,e.mainClass))},[(0,t.renderSlot)(o.$slots,`default`)],2),(0,t.renderSlot)(o.$slots,`footer`)],10,Yn))}}),Zn=[`auto`,`fixed`],Qn=[`hidden`,`auto`],$n=[`id`],er=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],tr=(0,t.defineComponent)({name:`DBPopover`,__name:`popover`,props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(void 0),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.onUnmounted)(()=>{o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0)}),(0,t.watch)(()=>[d.value,r.value],()=>{if(d.value&&r.value){r.value=!1;let e=_();e&&(e.ariaHasPopup=`true`),p(),d.value.addEventListener(`keydown`,e=>f(e)),[`mouseenter`,`focusin`].forEach(e=>{d.value.addEventListener(e,()=>h())}),[`mouseleave`,`focusout`].forEach(e=>{d.value.addEventListener(e,()=>g())})}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[d.value,a.value],()=>{if(d.value){let e=_();e&&(e.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:`post`});function f(e){if(!e||e.key===`Escape`)for(let e of Array.from(d.value.children))e.blur()}function p(){if(!d.value)return;let e=d.value.querySelector(`article`);e&&l(()=>{Ze(e,d.value)},1)}function m(e){e?.target?.contains&&e?.target?.contains(d.value)&&p()}function h(){a.value=!0,o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0),o.value=new Z().addCallback(e=>m(e)),p(),c.value=new $().observe(document.documentElement,()=>p());let e=_();e&&(s.value=new Q().observe(e,e=>{e.isIntersecting||f(!1)}))}function g(e){let t=e?.target;(!t?.parentNode||t.parentNode.querySelector(`:focus`)!==t&&t.parentNode.querySelector(`:focus-within`)!==t&&t.parentNode.querySelector(`:hover`)!==t)&&(a.value=!1,o.value&&=(new Z().removeCallback(o.value),void 0),c.value&&=(new $().unobserve(c.value),void 0),s.value&&=(new Q().unobserve(s.value),void 0))}function _(){if(d.value){let e=Array.from(d.value.children);if(e.length>=2){let t=e[0];return t.tagName.includes(`-`)?t.children?.length>0?t.children[0]:null:t}}return null}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:d,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-popover`,n.class))},[(0,t.renderSlot)(r.$slots,`trigger`),(0,t.createElementVNode)(`article`,{class:`db-popover-content`,"data-spacing":e.spacing,"data-gap":(0,t.unref)(u)(e.gap,`gap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-open":(0,t.unref)(u)(e.open,`open`),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,er)],10,$n))}}),nr=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],rr=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],ir=(0,t.defineComponent)({name:`DBRadio`,__name:`radio`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,s=(0,t.ref)(!1),c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),f=(0,t.ref)(null);(0,t.onMounted)(()=>{s.value=!0,v()}),(0,t.onUnmounted)(()=>{u.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&v()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[s.value,f.value,o.checked],()=>{o.checked&&s.value&&f.value&&(f.value.checked=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[f.value],()=>{if(f.value){let e=u.value;e||(e=new AbortController,u.value=e),Pe(f.value,e=>{l(()=>{let t=o.checked?o.checked:f.value.checked,n={...e,target:{...e.target,value:``,checked:t}};m(n,!0),p(n,!0)},1)},e.signal)}},{immediate:!0,flush:`post`});function p(e,t){o.input&&o.input(e),o.onInput&&o.onInput(e),J(a,e)}function m(e,t){o.onChange&&o.onChange(e),J(a,e)}function h(e){o.onBlur&&o.onBlur(e)}function _(e){o.onFocus&&o.onFocus(e)}function v(){c.value=o.id??o.propOverrides?.id??`radio-${r}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{"data-size":e.size,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-radio`,o.class)),for:c.value},[(0,t.createElementVNode)(`input`,{type:`radio`,"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:f,id:c.value,name:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(d)(e.required,`required`),onInput:r[0]||=async e=>p(e),onChange:r[1]||=async e=>m(e),onBlur:r[2]||=async e=>h(e),onFocus:r[3]||=async e=>_(e)},null,40,rr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,nr))}}),ar=[`id`,`data-spacing`,`data-width`],or=(0,t.defineComponent)({name:`DBSection`,__name:`section`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},spacing:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-section`,n.class)),"data-spacing":e.spacing||`medium`,"data-width":e.width},[(0,t.renderSlot)(a.$slots,`default`)],10,ar))}}),sr=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],cr=[`for`],lr=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],ur=[`data-show-empty-option`],dr=[`label`],fr=[`value`,`selected`,`disabled`],pr=[`value`,`disabled`,`selected`],mr=[`id`],hr={"data-visually-hidden":`true`,role:`status`},gr=(0,t.defineComponent)({name:`DBSelect`,__name:`select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showEmptyOption:{type:Boolean,default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(``),y=(0,t.ref)(void 0),b=(0,t.ref)(``),x=(0,t.ref)(!1),S=(0,t.ref)(``),C=(0,t.ref)(void 0),w=(0,t.ref)(null);(0,t.onMounted)(()=>{x.value=!0,N(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{C.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&N()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[w.value,o.invalidMessage],()=>{h.value=o.invalidMessage||w.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,x.value],()=>{if(c.value&&x.value){let e=c.value+I,t=c.value+ne;f.value=e,p.value=c.value+L,m.value=c.value+R,v.value=t,_(o.message,o.showMessage)?y.value=e:o.placeholder?y.value=t:y.value=void 0,E(),x.value=!1}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value],()=>{b.value=o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[w.value],()=>{if(w.value){let e=C.value;e||(e=new AbortController,C.value=e),Y(w.value,{value:o.value,defaultValue:void 0},e=>{k(e,!0),O(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function T(){return!!(o.validMessage??o.validation===`valid`)}function E(){!w.value?.validity.valid||o.validation===`invalid`?(y.value=m.value,h.value=o.invalidMessage||w.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(S.value=h.value,l(()=>S.value=``,1e3))):T()&&w.value?.validity.valid&&o.required?(y.value=p.value,s()&&(S.value=o.validMessage??`TODO: Add a validMessage`,l(()=>S.value=``,1e3))):_(o.message,o.showMessage)?y.value=f.value:o.placeholder?y.value=v.value:y.value=void 0}function D(e){o.onClick&&o.onClick(e)}function O(e,t){o.input&&o.input(e),b.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),J(a,e),E()}function A(e){o.onBlur&&o.onBlur(e)}function j(e){o.onFocus&&o.onFocus(e)}function M(e){return e.label??e.value?.toString()}function ee(){return o.variant===`floating`||o.placeholder?o.showEmptyOption===void 0?!o.required:o.showEmptyOption:!1}function N(){let e=o.id??o.propOverrides?.id??`select-${r}`;c.value=e,f.value=e+I,p.value=e+L,m.value=e+R,v.value=e+ne}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-select`,o.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,cr),(0,t.createElementVNode)(`select`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:w,required:(0,t.unref)(d)(e.required,`required`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),id:c.value,name:e.name,size:e.size,value:e.value??b.value??``,autocomplete:e.autocomplete,multiple:e.multiple,onInput:r[0]||=async e=>O(e),onClick:r[1]||=async e=>D(e),onChange:r[2]||=async e=>k(e),onBlur:r[3]||=async e=>A(e),onFocus:r[4]||=async e=>j(e),"aria-describedby":e.ariaDescribedBy??y.value},[e.variant===`floating`||e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:0,class:`placeholder`,value:``,"data-show-empty-option":(0,t.unref)(u)(ee(),`showEmptyOption`)},null,8,ur)):(0,t.createCommentVNode)(``,!0),e.options?.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.options?((0,t.openBlock)(),(0,t.createElementBlock)(`optgroup`,{key:0,label:M(e)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:n,value:e.value,selected:e.selected,disabled:e.disabled},(0,t.toDisplayString)(M(e)),9,fr))),128))],8,dr)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,pr))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,2)],40,lr),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:v.value},(0,t.toDisplayString)(e.placeholder),9,mr)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,icon:e.messageIcon,id:f.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),T()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:2,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,hr,(0,t.toDisplayString)(S.value),1)],10,sr))}}),_r=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],vr=(0,t.defineComponent)({name:`DBStack`,__name:`stack`,props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},gap:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-stack`,n.class)),"data-gap":e.gap,"data-variant":e.variant,"data-direction":e.direction,"data-alignment":e.alignment,"data-justify-content":e.justifyContent,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`)},[(0,t.renderSlot)(a.$slots,`default`)],10,_r))}}),yr=[`simple`,`divider`],br=[`row`,`column`],xr=[`stretch`,`start`,`end`,`center`],Sr=[`space-between`,`start`,`center`,`end`],Cr=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],wr=[`for`],Tr=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],Er={"data-visually-hidden":`true`,role:`status`},Dr=(0,t.defineComponent)({name:`DBSwitch`,__name:`switch`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},visualAid:{type:[Boolean,String],default:void 0},variant:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(void 0),x=(0,t.ref)(null);(0,t.onMounted)(()=>{O(),C(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{b.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&O()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation,o.required,o.message,o.showMessage,o.validMessage,o.invalidMessage,o.checked],()=>{C()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,o.invalidMessage],()=>{h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value],()=>{if(x.value){let e=b.value;e||(e=new AbortController,b.value=e),Fe(x.value,{checked:o.checked,defaultChecked:void 0},e=>{w(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function S(){return!!(o.validMessage??o.validation===`valid`)}function C(){if(!x.value?.validity?.valid||o.validation===`invalid`){v.value=m.value,h.value=o.invalidMessage||x.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(y.value=h.value||`TODO: Add an invalidMessage`,l(()=>{y.value=``},1e3));return}if(S()&&x.value?.validity?.valid&&o.required){v.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>{y.value=``},1e3));return}if(_(o.message,o.showMessage)){v.value=f.value;return}v.value=void 0}function w(e,t){o.onChange&&o.onChange(e),C(),J(a,e,`checked`)}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(e){e.key===`Enter`&&(e.preventDefault(),o.disabled||x.value?.click())}function O(){let e=o.id??o.propOverrides?.id??`switch-${r}`;c.value=e,f.value=`${e}${I}`,p.value=`${e}${L}`,m.value=`${e}${R}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-visual-aid":(0,t.unref)(u)(e.visualAid,`visualAid`),"data-size":e.size,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-variant":e.variant,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-custom-validity":e.validation,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-switch`,o.class))},[(0,t.createElementVNode)(`label`,{for:c.value},[(0,t.createElementVNode)(`input`,{type:`checkbox`,role:`switch`,id:c.value,ref_key:`_ref`,ref:x,checked:(0,t.unref)(d)(e.checked,`checked`),value:e.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),"aria-invalid":e.validation===`invalid`?`true`:void 0,"aria-describedby":v.value,name:e.name,required:(0,t.unref)(d)(e.required,`required`),"data-aid-icon":e.iconLeading??e.icon,"data-aid-icon-trailing":e.iconTrailing,onChange:r[0]||=async e=>w(e),onBlur:r[1]||=async e=>T(e),onFocus:r[2]||=async e=>E(e),onKeydown:r[3]||=async e=>D(e)},null,40,Tr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],8,wr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,semantic:`adaptive`,id:f.value,icon:e.messageIcon},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`id`,`icon`])):(0,t.createCommentVNode)(``,!0),S()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage??(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,Er,(0,t.toDisplayString)(y.value),1)],10,Cr))}}),Or=[`disabled`,`aria-selected`,`focusgroupstart`,`data-value`],kr=[`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`],Ar={class:`db-tab-item-label-end-slot`},jr=(0,t.defineComponent)({name:`DBTabItem`,__name:`tab-item`,props:{disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},tabIndex:{},value:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},autofocus:{type:[Boolean,String]},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},active:{type:[Boolean,String],default:void 0},width:{},endSlot:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(``),s=(0,t.ref)(null),c=(0,t.ref)(null),l=(0,t.ref)(null),f=(0,t.ref)(!1),p=(0,t.ref)(null),m=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.onUnmounted)(()=>{f.value=!0;let e=l.value;e!==null&&(cancelAnimationFrame(e),l.value=null),s.value?.disconnect(),c.value?.disconnect()}),(0,t.watch)(()=>[m.value,r.value],()=>{if(typeof window<`u`&&m.value&&r.value&&!s.value){let e=()=>{l.value=requestAnimationFrame(()=>{if(l.value=null,!f.value){if(g(),m.value&&!s.value){let e=new ResizeObserver(()=>{requestAnimationFrame(()=>{f.value||g()})});e.observe(m.value),s.value=e}if(m.value&&!c.value){let e=new MutationObserver(()=>{requestAnimationFrame(()=>{f.value||g()})});e.observe(m.value,{childList:!0,subtree:!0,characterData:!0}),c.value=e}}})};(n.iconLeading??n.icon??n.iconTrailing)&&document.fonts?.ready?document.fonts.ready.then(()=>{f.value||e()}):e()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.label,r.value,m.value],()=>{m.value&&r.value&&g()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[p.value,a.value],()=>{p.value&&!a.value&&h()},{immediate:!0,flush:`post`});function h(){if(!p.value||!p.value.hasAttribute(`data-has-tooltip`))return;p.value.removeAttribute(`data-has-tooltip`);let e=p.value.querySelector(`.db-tooltip`);if(!e||!e.id)return;let t=(p.value.getAttribute(`aria-describedby`)||``).split(` `).filter(t=>t!==``&&t!==e.id).join(` `);t?p.value.setAttribute(`aria-describedby`,t):p.value.removeAttribute(`aria-describedby`)}function g(){if(m.value){let e=Math.ceil(m.value.scrollWidth)>Math.ceil(m.value.clientWidth)+1;a.value!==e&&(a.value=e,e?p.value&&p.value.setAttribute(`title`,``):(h(),p.value&&p.value.getAttribute(`title`)===``&&p.value.removeAttribute(`title`))),o.value=e&&(n.label||m.value.innerText||m.value.textContent)||``}}return(r,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{type:`button`,role:`tab`,ref_key:`_ref`,ref:p,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-item`,n.class)),disabled:(0,t.unref)(d)(e.disabled,`disabled`)?!0:void 0,"aria-selected":(0,t.unref)(u)(e.active,`active`),focusgroupstart:(0,t.unref)(d)(e.active,`active`)?``:void 0,"data-value":e.value},[(0,t.createElementVNode)(`span`,{class:`db-tab-item-label`,"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`span`,{class:`db-tab-item-label-text`,ref_key:`_labelRef`,ref:m},[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],512),(0,t.createElementVNode)(`span`,Ar,[(0,t.renderSlot)(r.$slots,`end-slot`)])],8,kr),a.value&&o.value?((0,t.openBlock)(),(0,t.createBlock)(yt,{key:0,placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.value),1)]),_:1})):(0,t.createCommentVNode)(``,!0)],10,Or))}}),Mr=[`id`,`aria-orientation`,`focusgroup`],Nr=(0,t.defineComponent)({name:`DBTabList`,__name:`tab-list`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},orientation:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(void 0),o=(0,t.ref)(null);return(0,t.onMounted)(()=>{a.value=r.id||r.propOverrides?.id||`tab-list-`+n}),(n,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:`tablist`,ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id??a.value,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-list`,r.class)),"aria-orientation":e.orientation??`horizontal`,focusgroup:e.orientation===`vertical`?`tablist block wrap`:`tablist`},[(0,t.renderSlot)(n.$slots,`default`)],10,Mr))}}),Pr=[`hidden`],Fr=(0,t.defineComponent)({name:`DBTabPanel`,__name:`tab-panel`,props:{content:{},hidden:{type:Boolean},children:{},className:{},class:{},autofocus:{type:[Boolean,String]}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{role:`tabpanel`,ref_key:`_ref`,ref:r,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-panel`,n.class)),hidden:e.hidden,tabIndex:0},[e.content?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.content),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Pr))}}),Ir=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`colSpan`,`rowSpan`,`headers`],Lr=(0,t.defineComponent)({name:`DBTableDataCell`,__name:`table-data-cell`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-data-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers},[(0,t.renderSlot)(a.$slots,`default`)],10,Ir))}}),Rr=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`data-no-text`,`scope`,`colSpan`,`rowSpan`,`headers`,`abbr`],zr=(0,t.defineComponent)({name:`DBTableHeaderCell`,__name:`table-header-cell`,props:{abbr:{default:void 0},scope:{default:void 0},noText:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-header-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,"data-no-text":(0,t.unref)(u)(e.noText),scope:e.scope,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers,abbr:e.abbr},[(0,t.renderSlot)(a.$slots,`default`)],10,Rr))}}),Br=[`id`,`data-interactive`,`data-sub-header-emphasis`],Vr=(0,t.defineComponent)({name:`DBTableRow`,__name:`table-row`,props:{cells:{default:void 0},subHeaderEmphasis:{default:void 0},interactive:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){if(e.headerCell)return e}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-row`,r.class)),"data-interactive":(0,t.unref)(u)(e.interactive),"data-sub-header-emphasis":e.subHeaderEmphasis},[e.cells?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.cells,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[r.headerCell?((0,t.openBlock)(),(0,t.createBlock)(zr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-header-cell-${i}`,id:r.id,abbr:o(r)?.abbr,scope:o(r)?.scope,noText:o(r)?.noText,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(An,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`abbr`,`scope`,`noText`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`])):((0,t.openBlock)(),(0,t.createBlock)(Lr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-data-cell-${i}`,id:r.id,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(An,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`]))],64))),128)):(0,t.renderSlot)(s.$slots,`default`,{},void 0,void 0,1)],10,Br))}}),Hr=[`id`],Ur=(0,t.defineComponent)({name:`DBTableBody`,__name:`table-body`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tbody`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-body`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-body-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{},void 0,void 0,1)],10,Hr))}}),Wr=[`id`],Gr=(0,t.defineComponent)({name:`DBTableFooter`,__name:`table-footer`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tfoot`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-footer`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-footer-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{},void 0,void 0,1)],10,Wr))}}),Kr=[`id`],qr=(0,t.defineComponent)({name:`DBTableHead`,__name:`table-head`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){return e?.map(e=>({...e,headerCell:!0}))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`thead`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-head`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Vr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-head-row-${i}`,cells:o(r.cells),className:r.className??r.class,subHeaderEmphasis:r.subHeaderEmphasis,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`subHeaderEmphasis`,`interactive`,`id`]))),128)):(0,t.renderSlot)(s.$slots,`default`,{},void 0,void 0,1)],10,Kr))}}),Jr=[`data-width`,`data-size`,`data-divider`,`data-variant`,`data-mobile-variant`,`data-show-caption`,`data-sticky-header`],Yr=[`id`],Xr={key:0},Zr=(0,t.defineComponent)({name:`DBTable`,__name:`table`,props:{caption:{},captionPlain:{default:void 0},data:{default:void 0},divider:{default:void 0},showCaption:{type:[Boolean,String],default:void 0},size:{default:void 0},variant:{default:void 0},mobileVariant:{default:void 0},stickyHeader:{default:void 0},columnSizes:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(void 0),o=(0,t.ref)(null);(0,t.watch)(()=>[n.data],()=>{n.data?r.value=s():r.value=void 0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.mobileVariant,o.value,r.value],()=>{o.value&&n.mobileVariant===`list`&&l(()=>{let e=o.value;if(!e)return;let t=e.querySelectorAll(`thead tr th`);t.length&&e.querySelectorAll(`:is(tbody,tfoot) tr`).forEach(e=>{e.querySelectorAll(`:is(td,th)`).forEach((e,n)=>{let r=t[n];if(r){let t=Array.from(r.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent?.trim()).filter(Boolean).join(` `);t&&(e.dataset.header=t)}})})},1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.columnSizes],()=>{if(n.columnSizes){let e={};Object.entries(n.columnSizes).forEach(([t,n])=>{e[`--db-table-column-size-${t}`]=n}),a.value=e}else a.value=void 0},{immediate:!0,flush:`post`});function s(){try{return typeof n.data==`string`?JSON.parse(n.data):n.data}catch(e){console.error(e)}return{}}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table`,n.class)),style:(0,t.normalizeStyle)(a.value),"data-width":e.width,"data-size":e.size,"data-divider":e.divider,"data-variant":e.variant,"data-mobile-variant":e.mobileVariant,"data-show-caption":(0,t.unref)(u)(e.showCaption),"data-sticky-header":e.stickyHeader},[(0,t.createElementVNode)(`table`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id},[e.captionPlain?((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,Xr,(0,t.toDisplayString)(e.captionPlain),1)):(0,t.renderSlot)(s.$slots,`caption`,{},void 0,void 0,1),r.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[r.value?.header?((0,t.openBlock)(),(0,t.createBlock)(qr,{key:0,rows:r.value?.header},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.body?((0,t.openBlock)(),(0,t.createBlock)(Ur,{key:1,rows:r.value?.body},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.footer?((0,t.openBlock)(),(0,t.createBlock)(Gr,{key:2,rows:r.value?.footer},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0)],64)):(0,t.renderSlot)(s.$slots,`default`,{},void 0,void 0,3)],8,Yr)],14,Jr))}}),Qr=[`id`],$r=(0,t.defineComponent)({name:`DBTableCaption`,__name:`table-caption`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-caption`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Qr))}}),ei=[`row`,`col`,`rowgroup`,`colgroup`],ti=[`none`,`weak`,`strong`],ni=[`x-small`,`small`,`medium`,`large`],ri=[`flat`,`zebra`,`spaced`],ii=[`none`,`both`,`horizontal`,`vertical`],ai=[`table`,`list`],oi=[`none`,`both`,`horizontal`,`vertical`],si=[`auto`,`1fr`,`min-content`,`max-content`],ci=[`id`,`data-orientation`,`data-scroll-behavior`,`data-tab-item-alignment`,`data-tab-item-width`,`data-initial-selected-mode`],li=(0,t.defineComponent)({name:`DBTabs`,__name:`tabs`,props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},activeIndex:{default:void 0},initialSelectedMode:{default:void 0},label:{default:void 0},tabs:{default:void 0},tabItemWidth:{default:`auto`},scrollStartLabel:{default:`Scroll start`},scrollEndLabel:{default:`Scroll end`},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},orientation:{default:void 0},tabItemAlignment:{default:`start`},indexChange:{},onIndexChange:{type:Function,default:void 0},valueChange:{},onValueChange:{type:Function,default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(0),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(null),u=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)([]),g=(0,t.ref)([]),_=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(null);(0,t.onMounted)(()=>{m.value=w(),b();let{startIndex:e,hashApplied:t}=ne();if(a.value=e,o.value=!0,typeof window<`u`&&y.value){I(),B();let n=e;if(ee(t)){let e=M();e>-1&&(n=e,a.value=e)}T(n)}z()}),(0,t.onUnmounted)(()=>{let e=f.value;e!==null&&(cancelAnimationFrame(e),f.value=null),L(),u.value?.disconnect(),u.value=null}),(0,t.watch)(()=>[r.tabs,o.value],()=>{o.value&&r.tabs&&(I(),B(),T(a.value))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&b()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[_.value],()=>{_.value&&B()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.orientation],()=>{if(y.value){let e=N();if(e?.setAttribute(`aria-orientation`,r.orientation??`horizontal`),e){let t=r.orientation===`vertical`?`tablist block wrap`:`tablist`;e.setAttribute(`focusgroup`,t)}}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.label],()=>{if(y.value){let e=r.label,t=N();e?(t?.setAttribute(`aria-label`,e),v.value=e):v.value&&=(t?.getAttribute(`aria-label`)===v.value&&t?.removeAttribute(`aria-label`),void 0)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[y.value,r.behavior],()=>{y.value&&(r.behavior===`arrows`?I():L())},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.activeIndex],()=>{if(r.activeIndex!==void 0){let e=Number(r.activeIndex);isNaN(e)||(a.value=e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[h.value,g.value,a.value,o.value],()=>{o.value&&h.value.length>0&&T(a.value)},{immediate:!0,flush:`post`});function b(){_.value=r.id??r.propOverrides?.id??`tabs-${n}`}function x(){return r.id??r.propOverrides?.id}function S(e){let t=h.value;if(t.length>0){let n=t[e];if(n?.disabled||n?.getAttribute(`aria-disabled`)===`true`)return}let n=t[e]?.dataset?.value;if(r.activeIndex!==void 0){if(e===Number(r.activeIndex))return;r.onIndexChange&&r.onIndexChange(e),r.onValueChange&&r.onValueChange(n);return}a.value!==e&&(a.value=e,r.onIndexChange&&r.onIndexChange(e),r.onValueChange&&r.onValueChange(n),T(e))}function T(e){let t=h.value,n=g.value,i=e===void 0?a.value:e,o=e=>!!e&&!e.disabled&&e.getAttribute(`aria-disabled`)!==`true`,s=i;s!==-1&&t.length>0&&(s<0||s>=t.length||!o(t[s]))&&(s=t.findIndex(e=>o(e))),s!==i&&r.activeIndex===void 0&&(a.value=s);let c=s===-1?t.findIndex(e=>o(e)):s;t.forEach((e,t)=>{let n=s===t,r=c===t?0:-1;e.setAttribute(`aria-selected`,String(n)),m.value||e.setAttribute(`tabindex`,String(r))}),n.forEach((e,t)=>{e.hidden=s!==t})}function E(e){let t=e.target.closest(`[role="tab"]`);if(!t||!y.value||t.closest(`.db-tabs`)!==y.value)return;let n=h.value.indexOf(t);n!==-1&&(e.preventDefault(),S(n))}function D(e){if(!y.value)return;let t=e.key;if(!C.includes(t))return;let n=h.value;if(n.length===0)return;let i=e.target?.closest(`[role="tab"]`);if(!i||i.closest(`.db-tabs`)!==y.value)return;let a=n.indexOf(i);if(a===-1)return;if(t===`Enter`||t===` `){e.preventDefault(),S(a);return}if(m.value)return;let o=r.orientation===`vertical`,s=o?`ArrowUp`:`ArrowLeft`,c=o?`ArrowDown`:`ArrowRight`,l,u=n.length;if(t===c?l=(a+1)%u:t===s?l=(a-1+u)%u:t===`Home`?l=0:t===`End`&&(l=u-1),l!==void 0){e.preventDefault();let r=t===c||t===`Home`;for(let e=0;e<u;e++){let e=n[l];if(!e?.disabled&&e?.getAttribute(`aria-disabled`)!==`true`)break;l=r?(l+1)%u:(l-1+u)%u}let i=n[l];i&&!i.disabled&&i.getAttribute(`aria-disabled`)!==`true`&&(O(l),i.focus())}}function O(e){m.value||h.value.forEach((t,n)=>{t.setAttribute(`tabindex`,e===n?`0`:`-1`)})}function k(){try{if(typeof r.tabs==`string`)return JSON.parse(r.tabs).map(e=>{let t=e;return!t.ariaLabel&&t[`aria-label`]?{...t,ariaLabel:t[`aria-label`]}:e});if(r.tabs)return r.tabs.map(e=>{let t=e;return!t.ariaLabel&&t[`aria-label`]?{...t,ariaLabel:t[`aria-label`]}:e})}catch(e){console.error(e)}return[]}function A(){return o.value?a.value:j()}function j(){let e=k(),t=e=>!d(e.disabled,`disabled`);if(r.activeIndex!==void 0){let n=Number(r.activeIndex),i=isNaN(n)?0:n;if(e.length>0&&(i<0||i>=e.length||e[i]&&!t(e[i]))){let n=e.findIndex(t);return n>-1?n:0}return i}if(r.initialSelectedIndex!==void 0){let n=Number(r.initialSelectedIndex);if(isNaN(n))return 0;if(e.length>0&&n>=e.length){let n=e.findIndex(t);return n>-1?n:0}if(e.length>0&&e[n]&&!t(e[n])){let n=e.findIndex(t);return n>-1?n:0}return n}if(r.initialSelectedMode===`manually`)return-1;let n=e.findIndex(e=>d(e.active,`active`)&&t(e));if(n>-1)return n;let i=e.findIndex(t);return i>-1?i:0}function M(){return h.value.findIndex(e=>e.getAttribute(`aria-selected`)===`true`&&!e.disabled&&e.getAttribute(`aria-disabled`)!==`true`)}function ee(e){return!e&&!r.tabs&&r.activeIndex===void 0&&r.initialSelectedIndex===void 0&&(r.initialSelectedMode===void 0||r.initialSelectedMode===`auto`)}function N(){return y.value?.querySelector(`[role="tablist"]`)??null}function P(){let e=N();return!!e&&typeof getComputedStyle<`u`&&getComputedStyle(e).direction===`rtl`}function F(e){if(!(e.scrollWidth>e.clientWidth)){s.value=!1,c.value=!1;return}let t=Math.abs(e.scrollLeft),n=e.scrollWidth-e.clientWidth;s.value=t>2,c.value=t<n-2}function te(e){let t=N();if(!t)return;let n=Number(r.arrowScrollDistance)||120;!!e!==P()&&(n*=-1),t.scrollBy({left:n,behavior:`smooth`})}function I(){if(y.value){let e=N();if(e){e.setAttribute(`aria-orientation`,r.orientation??`horizontal`);let t=r.orientation===`vertical`?`tablist block wrap`:`tablist`;e.setAttribute(`focusgroup`,t);let n=r.label;if(n&&(e.setAttribute(`aria-label`,n),v.value=n),r.behavior===`arrows`){if(F(e),!p.value){let t=()=>F(e);p.value={fn:t},e.addEventListener(`scroll`,t)}if(!l.value){let t=new ResizeObserver(()=>{F(e)});t.observe(e),l.value=t}}}}}function L(){let e=p.value,t=N();e&&t&&t.removeEventListener(`scroll`,e.fn),p.value=null,l.value?.disconnect(),l.value=null,s.value=!1,c.value=!1}function R(e){return e.parentElement?.closest(`.db-tabs, [role="tabpanel"]`)===y.value}function ne(){let e=j(),t=!1,n=x();if(typeof window<`u`&&window.location.hash&&n){let r=window.location.hash.substring(1),i=`${n}-tab-`;if(r.startsWith(i)){let n=r.replace(i,``),a=parseInt(n,10);isNaN(a)||(e=a,t=!0)}}return{startIndex:e,hashApplied:t}}function z(){if(!y.value)return;let e=new MutationObserver(e=>{let t=e=>{let t=e;return!!t.matches&&(t.matches(`[role="tab"], [role="tabpanel"]`)||!!t.querySelector?.(`[role="tab"], [role="tabpanel"]`))},n=e.some(e=>Array.from(e.addedNodes).some(t)||Array.from(e.removedNodes).some(t)),r=e.some(e=>e.type===`characterData`),i=e.some(e=>e.type===`attributes`&&(e.attributeName===`disabled`||e.attributeName===`aria-disabled`)&&e.target?.getAttribute?.(`role`)===`tab`);if(!n&&!r&&!i)return;let o=f.value;o!==null&&cancelAnimationFrame(o),f.value=requestAnimationFrame(()=>{f.value=null,I(),n&&B(),i&&T(a.value)})});e.observe(y.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`disabled`,`aria-disabled`]}),u.value=e}function B(){let e=r.id??r.propOverrides?.id??_.value;if(!e||!y.value)return;let t=N(),n=Array.from(y.value?.querySelectorAll(`[role="tabpanel"]`)??[]).filter(e=>R(e));if(!t)return;let i=Array.from(t.querySelectorAll(`[role="tab"]`));h.value=i,g.value=n,i.forEach((t,r)=>{let i=n[r],a=`${e}-tab-${r}`;if(t.id=a,i){let n=`${e}-tab-panel-${r}`;i.id=n,t.setAttribute(`aria-controls`,n),i.setAttribute(`aria-labelledby`,a)}})}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:y,id:e.id??e.propOverrides?.id??_.value,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tabs`,r.class)),"data-orientation":e.orientation,"data-scroll-behavior":e.behavior,"data-tab-item-alignment":e.tabItemAlignment,"data-tab-item-width":e.tabItemWidth,"data-initial-selected-mode":e.initialSelectedMode,onClick:a[0]||=async e=>E(e),onKeydown:a[1]||=async e=>D(e)},[s.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,class:`tabs-scroll-start`,variant:`ghost`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>te(!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollStartLabel),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),k().length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(Nr,{orientation:e.orientation,"aria-label":e.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(jr,{key:e.label+`tab-item`+r,"aria-label":n.ariaLabel,label:n.label,icon:n.icon,showIcon:n.showIcon,iconTrailing:n.iconTrailing,showIconTrailing:n.showIconTrailing,disabled:n.disabled,active:A()!==-1&&A()===r,value:n.value},null,8,[`aria-label`,`label`,`icon`,`showIcon`,`iconTrailing`,`showIconTrailing`,`disabled`,`active`,`value`]))),128))]),_:1},8,[`orientation`,`aria-label`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Fr,{key:e.label+`tab-panel`+r,content:n.content},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.children),1)]),_:2},1032,[`content`]))),128))],64)):(0,t.renderSlot)(n.$slots,`default`,{},void 0,void 0,2),c.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:3,class:`tabs-scroll-end`,variant:`ghost`,icon:`chevron_right`,noText:!0,onClick:e=>te(!1)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollEndLabel),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0)],42,ci))}}),ui=[`scrollbar`,`arrows`],di=[`auto`,`manually`],fi=[`static`,`removable`],pi=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],mi=[`for`],hi=[`aria-invalid`,`data-custom-validity`,`data-field-sizing`,`id`,`data-resize`,`data-hide-resizer`,`disabled`,`required`,`readOnly`,`form`,`maxLength`,`minLength`,`name`,`wrap`,`spellcheck`,`autocomplete`,`value`,`aria-describedby`,`placeholder`,`rows`,`cols`],gi={"data-visually-hidden":`true`,role:`status`},_i=(0,t.defineComponent)({name:`DBTextarea`,__name:`textarea`,props:{cols:{default:void 0},resize:{default:void 0},showResizer:{type:[Boolean,String],default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(``),b=(0,t.ref)(``),x=(0,t.ref)(void 0),S=(0,t.ref)(null);(0,t.onMounted)(()=>{k(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{x.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&k()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[S.value,o.invalidMessage],()=>{h.value=o.invalidMessage||S.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+I;u.value=e,p.value=c.value+L,m.value=c.value+R,_(o.message,o.showMessage)&&(v.value=e),w()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value],()=>{y.value=o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[S.value],()=>{if(S.value){let e=x.value;e||(e=new AbortController,x.value=e),Y(S.value,{value:o.value,defaultValue:void 0},e=>{E(e,!0),T(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function C(){return!!(o.validMessage??o.validation===`valid`)}function w(){!S.value?.validity.valid||o.validation===`invalid`?(v.value=m.value,h.value=o.invalidMessage||S.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(b.value=h.value,l(()=>b.value=``,1e3))):C()&&S.value?.validity.valid&&(o.required||o.minLength||o.maxLength)?(v.value=p.value,s()&&(b.value=o.validMessage??`TODO: Add a validMessage`,l(()=>b.value=``,1e3))):_(o.message,o.showMessage)?v.value=u.value:v.value=void 0}function T(e,t){o.input&&o.input(e),y.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),J(a,e),w()}function D(e){o.onBlur&&o.onBlur(e)}function O(e){o.onFocus&&o.onFocus(e)}function k(){let e=o.id??o.propOverrides?.id??`textarea-${r}`;c.value=e,u.value=e+I,p.value=e+L,m.value=e+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-textarea`,o.class)),"data-variant":e.variant,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(g)(e.showLabel)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,mi),(0,t.createElementVNode)(`textarea`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:S,id:c.value,"data-resize":e.resize,"data-hide-resizer":(0,t.unref)(g)(e.showResizer??!0),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),name:e.name,wrap:e.wrap,spellcheck:e.spellCheck,autocomplete:e.autocomplete,onInput:r[0]||=async e=>T(e),onChange:r[1]||=async e=>E(e),onBlur:r[2]||=async e=>D(e),onFocus:r[3]||=async e=>O(e),value:e.value??y.value??``,"aria-describedby":e.ariaDescribedBy??v.value,placeholder:e.placeholder??(0,t.unref)(` `),rows:(0,t.unref)(f)(e.rows,(0,t.unref)(4)),cols:(0,t.unref)(f)(e.cols)},(0,t.toDisplayString)(e.value),41,hi),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(X,{key:0,size:`small`,icon:e.messageIcon,id:u.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.message),1)]),_:1},8,[`icon`,`id`])):(0,t.createCommentVNode)(``,!0),C()?((0,t.openBlock)(),(0,t.createBlock)(X,{key:1,size:`small`,semantic:`successful`,id:p.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.validMessage||(0,t.unref)(`TODO: Add a validMessage`)),1)]),_:1},8,[`id`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(X,{size:`small`,semantic:`critical`,id:m.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(h.value),1)]),_:1},8,[`id`]),(0,t.createElementVNode)(`span`,gi,(0,t.toDisplayString)(b.value),1)],10,pi))}}),vi=[`none`,`both`,`horizontal`,`vertical`],yi=[`hard`,`soft`,`off`],bi=[`description`,`label`],xi=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],Si=[`medium`,`small`,`large`,`none`],Ci=[`medium`,`small`,`large`,`none`],wi=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],Ti=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],Ei=[...wi,...Ti],Di=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],Oi=[`horizontal`,`vertical`],ki=[`full`,`auto`],Ai=[`full`,`medium`,`large`,`small`],ji=[`none`,`slow`,`fast`],Mi=[`auto`,`fixed`],Ni=[`small`,`medium`],Pi=[`weak`,`strong`],Fi=[`invalid`,`valid`,`no-validation`],Ii=[`fixed`,`content`],Li=[`above`,`floating`],Ri=[`leading`,`trailing`],zi=`off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn`.split(`.`);e.AccordionBehaviorList=j,e.AccordionVariantList=A,e.AlignmentList=[`start`,`center`,`end`],e.AutoCompleteList=zi,e.BadgePlacementList=Te,e.ButtonTypeList=ke,e.ButtonVariantList=q,e.COLOR=ge,e.COLORS=_e,e.COLORS_SIMPLE=ve,e.COLOR_CONST=V,e.COLOR_SIMPLE=he,e.CardBehaviorList=Me,e.CardElevationLevelList=Ne,e.CustomSelectDropdownWidthList=Rt,e.CustomSelectListItemTypeList=Vt,e.DBAccordion=k,e.DBAccordionItem=D,e.DBBadge=G,e.DBBrand=De,e.DBButton=K,e.DBCard=je,e.DBCheckbox=Ve,e.DBCustomButton=Ue,e.DBCustomSelect=Lt,e.DBCustomSelectDropdown=nt,e.DBCustomSelectFormField=Bt,e.DBCustomSelectList=ut,e.DBCustomSelectListItem=ct,e.DBDivider=Wt,e.DBDrawer=Xt,e.DBDrawerFooter=Qt,e.DBDrawerHeader=nn,e.DBHeader=wn,e.DBIcon=En,e.DBInfotext=X,e.DBInput=_t,e.DBLink=An,e.DBNavigation=Fn,e.DBNavigationItem=Bn,e.DBNotification=Gn,e.DBPage=Xn,e.DBPopover=tr,e.DBRadio=ir,e.DBSection=or,e.DBSelect=gr,e.DBStack=vr,e.DBSwitch=Dr,e.DBTabItem=jr,e.DBTabList=Nr,e.DBTabPanel=Fr,e.DBTable=Zr,e.DBTableBody=Ur,e.DBTableCaption=$r,e.DBTableColumnsSizeList=si,e.DBTableDataCell=Lr,e.DBTableDividerList=ii,e.DBTableFooter=Gr,e.DBTableHead=qr,e.DBTableHeaderCell=zr,e.DBTableHeaderCellScopeList=ei,e.DBTableMobileVariantList=ai,e.DBTableRow=Vr,e.DBTableRowSizeList=ni,e.DBTableRowSubHeaderEmphasisList=ti,e.DBTableStickyHeaderList=oi,e.DBTableVariantList=ri,e.DBTabs=li,e.DBTag=xt,e.DBTextarea=_i,e.DBTooltip=yt,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=Se,e.DB_UX_LOCAL_STORAGE_MODE=Ce,e.DEFAULT_BACK=ae,e.DEFAULT_BURGER_MENU=le,e.DEFAULT_CLOSE_BUTTON=fe,e.DEFAULT_DATALIST_ID_SUFFIX=z,e.DEFAULT_ICON=ue,e.DEFAULT_ID=M,e.DEFAULT_INVALID_MESSAGE=re,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=R,e.DEFAULT_LABEL=ee,e.DEFAULT_LABEL_ID_SUFFIX=F,e.DEFAULT_MESSAGE=P,e.DEFAULT_MESSAGE_ID_SUFFIX=I,e.DEFAULT_PLACEHOLDER=N,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=ne,e.DEFAULT_REMOVE=ie,e.DEFAULT_ROWS=de,e.DEFAULT_SCROLL_LEFT=se,e.DEFAULT_SCROLL_RIGHT=ce,e.DEFAULT_SELECTED=oe,e.DEFAULT_SELECT_ID_SUFFIX=te,e.DEFAULT_VALID_MESSAGE=B,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=L,e.DEFAULT_VIEWPORT=U,e.DENSITIES=me,e.DENSITY=H,e.DENSITY_CONST=pe,e.DESKTOP_VIEWPORT=xe,e.DividerMarginList=Gt,e.DividerVariantList=Kt,e.DocumentClickListener=Ge,e.DocumentScrollListener=Z,e.DrawerBackdropList=rn,e.DrawerContainerSizeList=cn,e.DrawerDirectionList=an,e.DrawerPositionList=sn,e.DrawerVariantList=on,e.EmphasisList=Pi,e.FieldSizingList=Ii,e.GapSpacingList=Di,e.IconWeightList=Dn,e.InputTypeList=On,e.LabelVariantHorizontalList=Ri,e.LabelVariantList=Li,e.LinkContentList=Nn,e.LinkReferrerPolicyList=[`no-referrer`,`no-referrer-when-downgrade`,`origin`,`origin-when-cross-origin`,`same-origin`,`strict-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],e.LinkSizeList=Mn,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=jn,e.MarginList=Ci,e.MaxWidthList=Ai,e.NAVIGATION_KEYS=C,e.NavigationItemSafeTriangle=un,e.NotificationAriaLiveList=Jn,e.NotificationLinkVariantList=qn,e.NotificationVariantList=Kn,e.OrientationList=Oi,e.PageDocumentOverflowList=Qn,e.PageVariantList=Zn,e.PlacementHorizontalList=wi,e.PlacementList=Ei,e.PlacementVerticalList=Ti,e.PopoverDelayList=ji,e.PopoverWidthList=Mi,e.SEMANTIC=ye,e.SEMANTICS=be,e.SelectedTypeList=Ht,e.SemanticList=xi,e.SizeList=Ni,e.SpacingList=Si,e.StackAlignmentList=xr,e.StackDirectionList=br,e.StackJustifyContentList=Sr,e.StackVariantList=yr,e.TESTING_VIEWPORTS=W,e.TabsBehaviorList=ui,e.TabsInitialSelectedModeList=di,e.TagBehaviorList=fi,e.TextareaResizeList=vi,e.TextareaWrapList=yi,e.TooltipVariantList=bi,e.ValidationList=Fi,e.WidthList=ki,e.addAttributeToChildren=r,e.cls=i,e.delay=l,e.getBoolean=d,e.getBooleanAsString=u,e.getFloatingProps=qe,e.getHideProp=g,e.getInputValue=m,e.getNotificationRole=S,e.getNumber=f,e.getOptionKey=b,e.getSearchInput=v,e.getStep=p,e.handleDataOutside=Qe,e.handleFixedDropdown=Ke,e.handleFixedPopover=Ze,e.hasFocusgroupSupport=w,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=ln,e.isIOSSafari=c,e.isKeyboardEvent=x,e.stringPropVisible=_,e.uuid=n});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "type": "module",
5
5
  "description": "Vue components for @db-ux/core-components",
6
6
  "repository": {
@@ -28,20 +28,20 @@
28
28
  "dist/"
29
29
  ],
30
30
  "dependencies": {
31
- "@db-ux/core-components": "5.0.0",
32
- "@db-ux/core-foundations": "5.0.0"
31
+ "@db-ux/core-components": "5.0.2",
32
+ "@db-ux/core-foundations": "5.0.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@playwright/experimental-ct-vue": "1.60.0",
36
- "@vitejs/plugin-vue": "6.0.7",
37
- "@vue/compiler-dom": "3.5.39",
36
+ "@vitejs/plugin-vue": "6.0.8",
37
+ "@vue/compiler-dom": "3.5.40",
38
38
  "cpr": "3.0.1",
39
39
  "npm-run-all2": "9.0.2",
40
40
  "replace-in-file": "8.4.0",
41
- "tsx": "4.23.0",
41
+ "tsx": "4.23.1",
42
42
  "typescript": "5.9.3",
43
- "vite": "8.1.4",
44
- "vue": "3.5.39",
43
+ "vite": "8.1.5",
44
+ "vue": "3.5.40",
45
45
  "vue-tsc": "3.3.7"
46
46
  },
47
47
  "publishConfig": {