@db-ux/v-core-components 4.6.1 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/db-ux.es.js +81 -81
- package/dist/db-ux.umd.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- DBSelect: correctly hiding empty `option` element for _placeholder_ or _floating label_ components with property `showEmptyOption=false` - [see commit ec01b5c](https://github.com/db-ux-design-system/core-web/commit/ec01b5cb56e1fc05911d33cbff0fc8f385644628)
|
|
8
|
+
|
|
9
|
+
- refactor(notification): not enforcing a paragraph for it's contents anymore. You could set any block level elements now as children. - [see commit 3170b3a](https://github.com/db-ux-design-system/core-web/commit/3170b3a6ef57bb73fa32b3176b7b8cf651a38641) and [commit 2ebe315](https://github.com/db-ux-design-system/core-web/commit/2ebe3156cd45e3702cf4acdc4224cd34da31d907)
|
|
10
|
+
|
|
3
11
|
## 4.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/db-ux.es.js
CHANGED
|
@@ -2953,7 +2953,7 @@ var b = () => {
|
|
|
2953
2953
|
"data-icon",
|
|
2954
2954
|
"data-show-icon",
|
|
2955
2955
|
"data-link-variant"
|
|
2956
|
-
], Gn = { key: 0 }, Kn = { key: 1 },
|
|
2956
|
+
], Gn = { key: 0 }, Kn = { "data-area": "content" }, qn = { key: 1 }, Jn = /* @__PURE__ */ s({
|
|
2957
2957
|
name: "DBNotification",
|
|
2958
2958
|
__name: "notification",
|
|
2959
2959
|
props: {
|
|
@@ -3022,8 +3022,8 @@ var b = () => {
|
|
|
3022
3022
|
}, [
|
|
3023
3023
|
m(f.$slots, "image"),
|
|
3024
3024
|
g(F)(o.headline, o.showHeadline) ? (d(), r("header", Gn, h(o.headline), 1)) : n("", !0),
|
|
3025
|
-
i("
|
|
3026
|
-
g(F)(o.timestamp, o.showTimestamp) ? (d(), r("span",
|
|
3025
|
+
i("div", Kn, [o.text ? (d(), r(e, { key: 0 }, [a(h(o.text), 1)], 64)) : m(f.$slots, "default", { key: 1 })]),
|
|
3026
|
+
g(F)(o.timestamp, o.showTimestamp) ? (d(), r("span", qn, h(o.timestamp), 1)) : n("", !0),
|
|
3027
3027
|
m(f.$slots, "link"),
|
|
3028
3028
|
g(k)(o.closeable, "closeable") ? (d(), t(Ie, {
|
|
3029
3029
|
key: 2,
|
|
@@ -3039,20 +3039,20 @@ var b = () => {
|
|
|
3039
3039
|
}, 8, ["id", "onClick"])) : n("", !0)
|
|
3040
3040
|
], 10, Wn));
|
|
3041
3041
|
}
|
|
3042
|
-
}),
|
|
3042
|
+
}), Yn = [
|
|
3043
3043
|
"docked",
|
|
3044
3044
|
"standalone",
|
|
3045
3045
|
"overlay"
|
|
3046
|
-
],
|
|
3046
|
+
], Xn = ["block", "inline"], Zn = [
|
|
3047
3047
|
"assertive",
|
|
3048
3048
|
"polite",
|
|
3049
3049
|
"off"
|
|
3050
|
-
],
|
|
3050
|
+
], Qn = [
|
|
3051
3051
|
"id",
|
|
3052
3052
|
"data-variant",
|
|
3053
3053
|
"data-fade-in",
|
|
3054
3054
|
"data-fonts-loaded"
|
|
3055
|
-
],
|
|
3055
|
+
], $n = /* @__PURE__ */ s({
|
|
3056
3056
|
name: "DBPage",
|
|
3057
3057
|
__name: "page",
|
|
3058
3058
|
props: {
|
|
@@ -3092,9 +3092,9 @@ var b = () => {
|
|
|
3092
3092
|
m(o.$slots, "header"),
|
|
3093
3093
|
i("main", { class: c(g(S)("db-main", e.mainClass)) }, [m(o.$slots, "default")], 2),
|
|
3094
3094
|
m(o.$slots, "footer")
|
|
3095
|
-
], 10,
|
|
3095
|
+
], 10, Qn));
|
|
3096
3096
|
}
|
|
3097
|
-
}),
|
|
3097
|
+
}), er = ["auto", "fixed"], tr = ["hidden", "auto"], nr = ["id"], rr = [
|
|
3098
3098
|
"data-spacing",
|
|
3099
3099
|
"data-gap",
|
|
3100
3100
|
"data-animation",
|
|
@@ -3102,7 +3102,7 @@ var b = () => {
|
|
|
3102
3102
|
"data-delay",
|
|
3103
3103
|
"data-width",
|
|
3104
3104
|
"data-placement"
|
|
3105
|
-
],
|
|
3105
|
+
], ir = /* @__PURE__ */ s({
|
|
3106
3106
|
name: "DBPopover",
|
|
3107
3107
|
__name: "popover",
|
|
3108
3108
|
props: {
|
|
@@ -3209,14 +3209,14 @@ var b = () => {
|
|
|
3209
3209
|
"data-delay": e.delay,
|
|
3210
3210
|
"data-width": e.width,
|
|
3211
3211
|
"data-placement": e.placement
|
|
3212
|
-
}, [m(n.$slots, "default")], 8,
|
|
3212
|
+
}, [m(n.$slots, "default")], 8, rr)], 10, nr));
|
|
3213
3213
|
}
|
|
3214
|
-
}),
|
|
3214
|
+
}), ar = [
|
|
3215
3215
|
"data-size",
|
|
3216
3216
|
"data-hide-label",
|
|
3217
3217
|
"data-hide-asterisk",
|
|
3218
3218
|
"for"
|
|
3219
|
-
],
|
|
3219
|
+
], or = [
|
|
3220
3220
|
"aria-invalid",
|
|
3221
3221
|
"data-custom-validity",
|
|
3222
3222
|
"id",
|
|
@@ -3225,7 +3225,7 @@ var b = () => {
|
|
|
3225
3225
|
"disabled",
|
|
3226
3226
|
"value",
|
|
3227
3227
|
"required"
|
|
3228
|
-
],
|
|
3228
|
+
], sr = /* @__PURE__ */ s({
|
|
3229
3229
|
name: "DBRadio",
|
|
3230
3230
|
__name: "radio",
|
|
3231
3231
|
props: {
|
|
@@ -3365,13 +3365,13 @@ var b = () => {
|
|
|
3365
3365
|
onChange: o[1] ||= async (e) => T(e),
|
|
3366
3366
|
onBlur: o[2] ||= async (e) => E(e),
|
|
3367
3367
|
onFocus: o[3] ||= async (e) => O(e)
|
|
3368
|
-
}, null, 40,
|
|
3368
|
+
}, null, 40, or), t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : m(n.$slots, "default", { key: 1 })], 10, ar));
|
|
3369
3369
|
}
|
|
3370
|
-
}),
|
|
3370
|
+
}), cr = [
|
|
3371
3371
|
"id",
|
|
3372
3372
|
"data-spacing",
|
|
3373
3373
|
"data-width"
|
|
3374
|
-
],
|
|
3374
|
+
], lr = /* @__PURE__ */ s({
|
|
3375
3375
|
name: "DBSection",
|
|
3376
3376
|
__name: "section",
|
|
3377
3377
|
props: {
|
|
@@ -3393,15 +3393,15 @@ var b = () => {
|
|
|
3393
3393
|
class: c(g(S)("db-section", t.class)),
|
|
3394
3394
|
"data-spacing": e.spacing || "medium",
|
|
3395
3395
|
"data-width": e.width
|
|
3396
|
-
}, [m(i.$slots, "default")], 10,
|
|
3396
|
+
}, [m(i.$slots, "default")], 10, cr));
|
|
3397
3397
|
}
|
|
3398
|
-
}),
|
|
3398
|
+
}), ur = [
|
|
3399
3399
|
"data-variant",
|
|
3400
3400
|
"data-hide-label",
|
|
3401
3401
|
"data-hide-asterisk",
|
|
3402
3402
|
"data-icon",
|
|
3403
3403
|
"data-show-icon"
|
|
3404
|
-
],
|
|
3404
|
+
], dr = ["for"], fr = [
|
|
3405
3405
|
"aria-invalid",
|
|
3406
3406
|
"data-custom-validity",
|
|
3407
3407
|
"required",
|
|
@@ -3413,18 +3413,18 @@ var b = () => {
|
|
|
3413
3413
|
"autocomplete",
|
|
3414
3414
|
"multiple",
|
|
3415
3415
|
"aria-describedby"
|
|
3416
|
-
],
|
|
3416
|
+
], pr = ["data-show-empty-option"], mr = ["label"], hr = [
|
|
3417
3417
|
"value",
|
|
3418
3418
|
"selected",
|
|
3419
3419
|
"disabled"
|
|
3420
|
-
],
|
|
3420
|
+
], gr = [
|
|
3421
3421
|
"value",
|
|
3422
3422
|
"disabled",
|
|
3423
3423
|
"selected"
|
|
3424
|
-
],
|
|
3424
|
+
], _r = ["id"], vr = {
|
|
3425
3425
|
"data-visually-hidden": "true",
|
|
3426
3426
|
role: "status"
|
|
3427
|
-
},
|
|
3427
|
+
}, yr = /* @__PURE__ */ s({
|
|
3428
3428
|
name: "DBSelect",
|
|
3429
3429
|
__name: "select",
|
|
3430
3430
|
props: {
|
|
@@ -3594,7 +3594,7 @@ var b = () => {
|
|
|
3594
3594
|
"data-icon": s.icon,
|
|
3595
3595
|
"data-show-icon": g(O)(s.showIcon)
|
|
3596
3596
|
}, [
|
|
3597
|
-
i("label", { for: E.value }, h(s.label ?? g("LABEL SHOULD BE SET")), 9,
|
|
3597
|
+
i("label", { for: E.value }, h(s.label ?? g("LABEL SHOULD BE SET")), 9, dr),
|
|
3598
3598
|
i("select", {
|
|
3599
3599
|
"aria-invalid": s.validation === "invalid",
|
|
3600
3600
|
"data-custom-validity": s.validation,
|
|
@@ -3619,7 +3619,7 @@ var b = () => {
|
|
|
3619
3619
|
class: "placeholder",
|
|
3620
3620
|
value: "",
|
|
3621
3621
|
"data-show-empty-option": g(O)(ae())
|
|
3622
|
-
}, null, 8,
|
|
3622
|
+
}, null, 8, pr)) : n("", !0), s.options?.length ? (d(!0), r(e, { key: 1 }, p(s.options, (t, n) => (d(), r(e, { key: n }, [t.options ? (d(), r("optgroup", {
|
|
3623
3623
|
key: 0,
|
|
3624
3624
|
label: ie(t)
|
|
3625
3625
|
}, [(d(!0), r(e, null, p(t.options, (e, t) => (d(), r("option", {
|
|
@@ -3627,17 +3627,17 @@ var b = () => {
|
|
|
3627
3627
|
value: e.value,
|
|
3628
3628
|
selected: e.selected,
|
|
3629
3629
|
disabled: e.disabled
|
|
3630
|
-
}, h(ie(e)), 9,
|
|
3630
|
+
}, h(ie(e)), 9, hr))), 128))], 8, mr)) : (d(), r("option", {
|
|
3631
3631
|
key: 1,
|
|
3632
3632
|
value: t.value,
|
|
3633
3633
|
disabled: t.disabled,
|
|
3634
3634
|
selected: t.selected
|
|
3635
|
-
}, h(ie(t)), 9,
|
|
3635
|
+
}, h(ie(t)), 9, gr))], 64))), 128)) : m(l.$slots, "default", { key: 2 })], 40, fr),
|
|
3636
3636
|
s.placeholder ? (d(), r("span", {
|
|
3637
3637
|
key: 0,
|
|
3638
3638
|
class: "db-select-placeholder",
|
|
3639
3639
|
id: I.value
|
|
3640
|
-
}, h(s.placeholder), 9,
|
|
3640
|
+
}, h(s.placeholder), 9, _r)) : n("", !0),
|
|
3641
3641
|
g(F)(s.message, s.showMessage) ? (d(), t($, {
|
|
3642
3642
|
key: 1,
|
|
3643
3643
|
size: "small",
|
|
@@ -3664,10 +3664,10 @@ var b = () => {
|
|
|
3664
3664
|
default: y(() => [a(h(N.value), 1)]),
|
|
3665
3665
|
_: 1
|
|
3666
3666
|
}, 8, ["id"]),
|
|
3667
|
-
i("span",
|
|
3668
|
-
], 10,
|
|
3667
|
+
i("span", vr, h(B.value), 1)
|
|
3668
|
+
], 10, ur));
|
|
3669
3669
|
}
|
|
3670
|
-
}),
|
|
3670
|
+
}), br = [
|
|
3671
3671
|
"id",
|
|
3672
3672
|
"data-gap",
|
|
3673
3673
|
"data-variant",
|
|
@@ -3675,7 +3675,7 @@ var b = () => {
|
|
|
3675
3675
|
"data-alignment",
|
|
3676
3676
|
"data-justify-content",
|
|
3677
3677
|
"data-wrap"
|
|
3678
|
-
],
|
|
3678
|
+
], xr = /* @__PURE__ */ s({
|
|
3679
3679
|
name: "DBStack",
|
|
3680
3680
|
__name: "stack",
|
|
3681
3681
|
props: {
|
|
@@ -3708,26 +3708,26 @@ var b = () => {
|
|
|
3708
3708
|
"data-alignment": e.alignment,
|
|
3709
3709
|
"data-justify-content": e.justifyContent,
|
|
3710
3710
|
"data-wrap": g(O)(e.wrap)
|
|
3711
|
-
}, [m(i.$slots, "default")], 10,
|
|
3711
|
+
}, [m(i.$slots, "default")], 10, br));
|
|
3712
3712
|
}
|
|
3713
|
-
}),
|
|
3713
|
+
}), Sr = ["simple", "divider"], Cr = ["row", "column"], wr = [
|
|
3714
3714
|
"stretch",
|
|
3715
3715
|
"start",
|
|
3716
3716
|
"end",
|
|
3717
3717
|
"center"
|
|
3718
|
-
],
|
|
3718
|
+
], Tr = [
|
|
3719
3719
|
"space-between",
|
|
3720
3720
|
"start",
|
|
3721
3721
|
"end",
|
|
3722
3722
|
"center"
|
|
3723
|
-
],
|
|
3723
|
+
], Er = [
|
|
3724
3724
|
"data-visual-aid",
|
|
3725
3725
|
"data-size",
|
|
3726
3726
|
"data-hide-label",
|
|
3727
3727
|
"data-variant",
|
|
3728
3728
|
"data-hide-asterisk",
|
|
3729
3729
|
"data-custom-validity"
|
|
3730
|
-
],
|
|
3730
|
+
], Dr = ["for"], Or = [
|
|
3731
3731
|
"id",
|
|
3732
3732
|
"checked",
|
|
3733
3733
|
"value",
|
|
@@ -3738,10 +3738,10 @@ var b = () => {
|
|
|
3738
3738
|
"required",
|
|
3739
3739
|
"data-aid-icon",
|
|
3740
3740
|
"data-aid-icon-trailing"
|
|
3741
|
-
],
|
|
3741
|
+
], kr = {
|
|
3742
3742
|
"data-visually-hidden": "true",
|
|
3743
3743
|
role: "status"
|
|
3744
|
-
},
|
|
3744
|
+
}, Ar = /* @__PURE__ */ s({
|
|
3745
3745
|
name: "DBSwitch",
|
|
3746
3746
|
__name: "switch",
|
|
3747
3747
|
props: {
|
|
@@ -3922,7 +3922,7 @@ var b = () => {
|
|
|
3922
3922
|
onBlur: u[1] ||= async (e) => H(e),
|
|
3923
3923
|
onFocus: u[2] ||= async (e) => ee(e),
|
|
3924
3924
|
onKeydown: u[3] ||= async (e) => U(e)
|
|
3925
|
-
}, null, 40,
|
|
3925
|
+
}, null, 40, Or), s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : m(l.$slots, "default", { key: 1 })], 8, Dr),
|
|
3926
3926
|
g(F)(s.message, s.showMessage) ? (d(), t($, {
|
|
3927
3927
|
key: 0,
|
|
3928
3928
|
size: "small",
|
|
@@ -3950,23 +3950,23 @@ var b = () => {
|
|
|
3950
3950
|
default: y(() => [a(h(M.value), 1)]),
|
|
3951
3951
|
_: 1
|
|
3952
3952
|
}, 8, ["id"]),
|
|
3953
|
-
i("span",
|
|
3954
|
-
], 10,
|
|
3953
|
+
i("span", kr, h(I.value), 1)
|
|
3954
|
+
], 10, Er));
|
|
3955
3955
|
}
|
|
3956
|
-
}),
|
|
3956
|
+
}), jr = [
|
|
3957
3957
|
"for",
|
|
3958
3958
|
"data-icon",
|
|
3959
3959
|
"data-icon-trailing",
|
|
3960
3960
|
"data-show-icon",
|
|
3961
3961
|
"data-show-icon-trailing",
|
|
3962
3962
|
"data-no-text"
|
|
3963
|
-
],
|
|
3963
|
+
], Mr = [
|
|
3964
3964
|
"disabled",
|
|
3965
3965
|
"aria-selected",
|
|
3966
3966
|
"checked",
|
|
3967
3967
|
"name",
|
|
3968
3968
|
"id"
|
|
3969
|
-
],
|
|
3969
|
+
], Nr = /* @__PURE__ */ s({
|
|
3970
3970
|
name: "DBTabItem",
|
|
3971
3971
|
__name: "tab-item",
|
|
3972
3972
|
props: {
|
|
@@ -4065,12 +4065,12 @@ var b = () => {
|
|
|
4065
4065
|
name: y.value,
|
|
4066
4066
|
id: t.id ?? t.propOverrides?.id,
|
|
4067
4067
|
onInput: s[0] ||= async (e) => E(e)
|
|
4068
|
-
}, null, 40,
|
|
4068
|
+
}, null, 40, Mr),
|
|
4069
4069
|
t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
|
|
4070
4070
|
m(o.$slots, "default")
|
|
4071
|
-
], 8,
|
|
4071
|
+
], 8, jr)], 2));
|
|
4072
4072
|
}
|
|
4073
|
-
}),
|
|
4073
|
+
}), Pr = ["id"], Fr = { role: "tablist" }, Ir = /* @__PURE__ */ s({
|
|
4074
4074
|
name: "DBTabList",
|
|
4075
4075
|
__name: "tab-list",
|
|
4076
4076
|
props: {
|
|
@@ -4088,9 +4088,9 @@ var b = () => {
|
|
|
4088
4088
|
ref: n,
|
|
4089
4089
|
id: e.id ?? e.propOverrides?.id,
|
|
4090
4090
|
class: c(g(S)("db-tab-list", t.class))
|
|
4091
|
-
}, [i("ul",
|
|
4091
|
+
}, [i("ul", Fr, [m(a.$slots, "default")])], 10, Pr));
|
|
4092
4092
|
}
|
|
4093
|
-
}),
|
|
4093
|
+
}), Lr = ["id"], Rr = /* @__PURE__ */ s({
|
|
4094
4094
|
name: "DBTabPanel",
|
|
4095
4095
|
__name: "tab-panel",
|
|
4096
4096
|
props: {
|
|
@@ -4110,15 +4110,15 @@ var b = () => {
|
|
|
4110
4110
|
ref: o,
|
|
4111
4111
|
class: c(g(S)("db-tab-panel", i.class)),
|
|
4112
4112
|
id: t.id ?? t.propOverrides?.id
|
|
4113
|
-
}, [t.content ? (d(), r(e, { key: 0 }, [a(h(t.content), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10,
|
|
4113
|
+
}, [t.content ? (d(), r(e, { key: 0 }, [a(h(t.content), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, Lr));
|
|
4114
4114
|
}
|
|
4115
|
-
}),
|
|
4115
|
+
}), zr = [
|
|
4116
4116
|
"id",
|
|
4117
4117
|
"data-orientation",
|
|
4118
4118
|
"data-scroll-behavior",
|
|
4119
4119
|
"data-alignment",
|
|
4120
4120
|
"data-width"
|
|
4121
|
-
],
|
|
4121
|
+
], Br = /* @__PURE__ */ s({
|
|
4122
4122
|
name: "DBTabs",
|
|
4123
4123
|
__name: "tabs",
|
|
4124
4124
|
props: {
|
|
@@ -4269,8 +4269,8 @@ var b = () => {
|
|
|
4269
4269
|
default: y(() => [...l[2] ||= [a(" Scroll left ", -1)]]),
|
|
4270
4270
|
_: 1
|
|
4271
4271
|
}, 8, ["onClick"])) : n("", !0),
|
|
4272
|
-
i.tabs ? (d(), r(e, { key: 1 }, [o(
|
|
4273
|
-
default: y(() => [(d(!0), r(e, null, p(k(), (e, n) => (d(), t(
|
|
4272
|
+
i.tabs ? (d(), r(e, { key: 1 }, [o(Ir, null, {
|
|
4273
|
+
default: y(() => [(d(!0), r(e, null, p(k(), (e, n) => (d(), t(Nr, {
|
|
4274
4274
|
key: i.name + "tab-item" + n,
|
|
4275
4275
|
active: e.active,
|
|
4276
4276
|
label: e.label,
|
|
@@ -4285,7 +4285,7 @@ var b = () => {
|
|
|
4285
4285
|
"noText"
|
|
4286
4286
|
]))), 128))]),
|
|
4287
4287
|
_: 1
|
|
4288
|
-
}), (d(!0), r(e, null, p(k(), (e, n) => (d(), t(
|
|
4288
|
+
}), (d(!0), r(e, null, p(k(), (e, n) => (d(), t(Rr, {
|
|
4289
4289
|
key: i.name + "tab-panel" + n,
|
|
4290
4290
|
content: e.content
|
|
4291
4291
|
}, {
|
|
@@ -4305,13 +4305,13 @@ var b = () => {
|
|
|
4305
4305
|
_: 1
|
|
4306
4306
|
}, 8, ["onClick"])) : n("", !0),
|
|
4307
4307
|
m(s.$slots, "default")
|
|
4308
|
-
], 42,
|
|
4308
|
+
], 42, zr));
|
|
4309
4309
|
}
|
|
4310
|
-
}),
|
|
4310
|
+
}), Vr = ["scrollbar", "arrows"], Hr = ["auto", "manually"], Ur = ["static", "removable"], Wr = [
|
|
4311
4311
|
"data-variant",
|
|
4312
4312
|
"data-hide-asterisk",
|
|
4313
4313
|
"data-hide-label"
|
|
4314
|
-
],
|
|
4314
|
+
], Gr = ["for"], Kr = [
|
|
4315
4315
|
"aria-invalid",
|
|
4316
4316
|
"data-custom-validity",
|
|
4317
4317
|
"data-field-sizing",
|
|
@@ -4333,10 +4333,10 @@ var b = () => {
|
|
|
4333
4333
|
"placeholder",
|
|
4334
4334
|
"rows",
|
|
4335
4335
|
"cols"
|
|
4336
|
-
],
|
|
4336
|
+
], qr = {
|
|
4337
4337
|
"data-visually-hidden": "true",
|
|
4338
4338
|
role: "status"
|
|
4339
|
-
},
|
|
4339
|
+
}, Jr = /* @__PURE__ */ s({
|
|
4340
4340
|
name: "DBTextarea",
|
|
4341
4341
|
__name: "textarea",
|
|
4342
4342
|
props: {
|
|
@@ -4500,7 +4500,7 @@ var b = () => {
|
|
|
4500
4500
|
"data-hide-asterisk": g(P)(e.showRequiredAsterisk),
|
|
4501
4501
|
"data-hide-label": g(P)(e.showLabel)
|
|
4502
4502
|
}, [
|
|
4503
|
-
i("label", { for: x.value }, h(e.label ?? g("LABEL SHOULD BE SET")), 9,
|
|
4503
|
+
i("label", { for: x.value }, h(e.label ?? g("LABEL SHOULD BE SET")), 9, Gr),
|
|
4504
4504
|
i("textarea", {
|
|
4505
4505
|
"aria-invalid": e.validation === "invalid",
|
|
4506
4506
|
"data-custom-validity": e.validation,
|
|
@@ -4529,7 +4529,7 @@ var b = () => {
|
|
|
4529
4529
|
placeholder: e.placeholder ?? g(" "),
|
|
4530
4530
|
rows: g(A)(e.rows, g(4)),
|
|
4531
4531
|
cols: g(A)(e.cols)
|
|
4532
|
-
}, h(e.value), 41,
|
|
4532
|
+
}, h(e.value), 41, Kr),
|
|
4533
4533
|
g(F)(e.message, e.showMessage) ? (d(), t($, {
|
|
4534
4534
|
key: 0,
|
|
4535
4535
|
size: "small",
|
|
@@ -4556,50 +4556,50 @@ var b = () => {
|
|
|
4556
4556
|
default: y(() => [a(h(O.value), 1)]),
|
|
4557
4557
|
_: 1
|
|
4558
4558
|
}, 8, ["id"]),
|
|
4559
|
-
i("span",
|
|
4560
|
-
], 10,
|
|
4559
|
+
i("span", qr, h(N.value), 1)
|
|
4560
|
+
], 10, Wr));
|
|
4561
4561
|
}
|
|
4562
|
-
}),
|
|
4562
|
+
}), Yr = [
|
|
4563
4563
|
"none",
|
|
4564
4564
|
"both",
|
|
4565
4565
|
"horizontal",
|
|
4566
4566
|
"vertical"
|
|
4567
|
-
],
|
|
4567
|
+
], Xr = [
|
|
4568
4568
|
"hard",
|
|
4569
4569
|
"soft",
|
|
4570
4570
|
"off"
|
|
4571
|
-
],
|
|
4571
|
+
], Zr = ["description", "label"], Qr = [
|
|
4572
4572
|
"adaptive",
|
|
4573
4573
|
"neutral",
|
|
4574
4574
|
"critical",
|
|
4575
4575
|
"informational",
|
|
4576
4576
|
"warning",
|
|
4577
4577
|
"successful"
|
|
4578
|
-
],
|
|
4578
|
+
], $r = [
|
|
4579
4579
|
"medium",
|
|
4580
4580
|
"small",
|
|
4581
4581
|
"large",
|
|
4582
4582
|
"none"
|
|
4583
|
-
],
|
|
4583
|
+
], ei = [
|
|
4584
4584
|
"medium",
|
|
4585
4585
|
"small",
|
|
4586
4586
|
"large",
|
|
4587
4587
|
"none"
|
|
4588
|
-
],
|
|
4588
|
+
], ti = [
|
|
4589
4589
|
"left",
|
|
4590
4590
|
"right",
|
|
4591
4591
|
"left-start",
|
|
4592
4592
|
"left-end",
|
|
4593
4593
|
"right-start",
|
|
4594
4594
|
"right-end"
|
|
4595
|
-
],
|
|
4595
|
+
], ni = [
|
|
4596
4596
|
"top",
|
|
4597
4597
|
"bottom",
|
|
4598
4598
|
"top-start",
|
|
4599
4599
|
"top-end",
|
|
4600
4600
|
"bottom-start",
|
|
4601
4601
|
"bottom-end"
|
|
4602
|
-
],
|
|
4602
|
+
], ri = [...ti, ...ni], ii = [
|
|
4603
4603
|
"none",
|
|
4604
4604
|
"3x-large",
|
|
4605
4605
|
"2x-large",
|
|
@@ -4610,25 +4610,25 @@ var b = () => {
|
|
|
4610
4610
|
"x-small",
|
|
4611
4611
|
"2x-small",
|
|
4612
4612
|
"3x-small"
|
|
4613
|
-
],
|
|
4613
|
+
], ai = ["horizontal", "vertical"], oi = ["full", "auto"], si = [
|
|
4614
4614
|
"full",
|
|
4615
4615
|
"medium",
|
|
4616
4616
|
"large",
|
|
4617
4617
|
"small"
|
|
4618
|
-
],
|
|
4618
|
+
], ci = [
|
|
4619
4619
|
"none",
|
|
4620
4620
|
"slow",
|
|
4621
4621
|
"fast"
|
|
4622
|
-
],
|
|
4622
|
+
], li = ["auto", "fixed"], ui = ["small", "medium"], di = ["weak", "strong"], fi = [
|
|
4623
4623
|
"invalid",
|
|
4624
4624
|
"valid",
|
|
4625
4625
|
"no-validation"
|
|
4626
|
-
],
|
|
4626
|
+
], pi = ["fixed", "content"], mi = ["above", "floating"], hi = ["leading", "trailing"], gi = /* @__PURE__ */ "off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn".split("."), _i = [
|
|
4627
4627
|
"_self",
|
|
4628
4628
|
"_blank",
|
|
4629
4629
|
"_parent",
|
|
4630
4630
|
"_top"
|
|
4631
|
-
],
|
|
4631
|
+
], vi = [
|
|
4632
4632
|
"no-referrer",
|
|
4633
4633
|
"no-referrer-when-downgrade",
|
|
4634
4634
|
"origin",
|
|
@@ -4637,6 +4637,6 @@ var b = () => {
|
|
|
4637
4637
|
"strict-origin",
|
|
4638
4638
|
"strict-origin-when-cross-origin",
|
|
4639
4639
|
"unsafe-url"
|
|
4640
|
-
],
|
|
4640
|
+
], yi = ["start", "center"];
|
|
4641
4641
|
//#endregion
|
|
4642
|
-
export { W as AccordionBehaviorList, te as AccordionVariantList,
|
|
4642
|
+
export { W as AccordionBehaviorList, te as AccordionVariantList, yi as AlignmentList, gi as AutoCompleteList, Me as BadgePlacementList, Re as ButtonTypeList, Le as ButtonVariantList, X as COLOR, Z as COLORS, Se as COLORS_SIMPLE, ve as COLOR_CONST, xe as COLOR_SIMPLE, Ve as CardBehaviorList, He as CardElevationLevelList, Kt as CustomSelectDropdownWidthList, Yt as CustomSelectListItemTypeList, U as DBAccordion, H as DBAccordionItem, je as DBBadge, Pe as DBBrand, Ie as DBButton, Be as DBCard, Ze as DBCheckbox, $e as DBCustomButton, Gt as DBCustomSelect, dt as DBCustomSelectDropdown, Jt as DBCustomSelectFormField, vt as DBCustomSelectList, gt as DBCustomSelectListItem, Qt as DBDivider, sn as DBDrawer, Dn as DBHeader, kn as DBIcon, $ as DBInfotext, Tt as DBInput, Nn as DBLink, Rn as DBNavigation, Un as DBNavigationItem, Jn as DBNotification, $n as DBPage, ir as DBPopover, sr as DBRadio, lr as DBSection, yr as DBSelect, xr as DBStack, Ar as DBSwitch, Nr as DBTabItem, Ir as DBTabList, Rr as DBTabPanel, Br as DBTabs, kt as DBTag, Jr as DBTextarea, Dt as DBTooltip, Oe as DB_UX_LOCAL_STORAGE_FRAMEWORK, ke as DB_UX_LOCAL_STORAGE_MODE, de as DEFAULT_BACK, pe as DEFAULT_BURGER_MENU, ge as DEFAULT_CLOSE_BUTTON, ce as DEFAULT_DATALIST_ID_SUFFIX, me as DEFAULT_ICON, ne as DEFAULT_ID, Y as DEFAULT_INVALID_MESSAGE, J as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, re as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, ie as DEFAULT_MESSAGE, K as DEFAULT_MESSAGE_ID_SUFFIX, G as DEFAULT_PLACEHOLDER, se as DEFAULT_PLACEHOLDER_ID_SUFFIX, ue as DEFAULT_REMOVE, he as DEFAULT_ROWS, fe as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, le as DEFAULT_VALID_MESSAGE, q as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Te as DEFAULT_VIEWPORT, be as DENSITIES, ye as DENSITY, _e as DENSITY_CONST, Ee as DESKTOP_VIEWPORT, $t as DividerMarginList, en as DividerVariantList, et as DocumentClickListener, tt as DocumentScrollListener, cn as DrawerBackdropList, ln as DrawerDirectionList, dn as DrawerPositionList, un as DrawerVariantList, di as EmphasisList, pi as FieldSizingList, ii as GapSpacingList, An as IconWeightList, jn as InputTypeList, hi as LabelVariantHorizontalList, mi as LabelVariantList, In as LinkContentList, vi as LinkReferrerPolicyList, Fn as LinkSizeList, _i as LinkTargetList, Pn as LinkVariantList, ei as MarginList, si as MaxWidthList, pn as NavigationItemSafeTriangle, Zn as NotificationAriaLiveList, Xn as NotificationLinkVariantList, Yn as NotificationVariantList, ai as OrientationList, tr as PageDocumentOverflowList, er as PageVariantList, ti as PlacementHorizontalList, ri as PlacementList, ni as PlacementVerticalList, ci as PopoverDelayList, li as PopoverWidthList, Ce as SEMANTIC, we as SEMANTICS, Xt as SelectedTypeList, Qr as SemanticList, ui as SizeList, $r as SpacingList, wr as StackAlignmentList, Cr as StackDirectionList, Tr as StackJustifyContentList, Sr as StackVariantList, De as TESTING_VIEWPORTS, Vr as TabsBehaviorList, Hr as TabsInitialSelectedModeList, Ur as TagBehaviorList, Yr as TextareaResizeList, Xr as TextareaWrapList, Zr as TooltipVariantList, fi as ValidationList, oi as WidthList, x as addAttributeToChildren, S as cls, D as delay, k as getBoolean, O as getBooleanAsString, at as getFloatingProps, P as getHideProp, M as getInputValue, z as getNotificationRole, A as getNumber, L as getOptionKey, I as getSearchInput, j as getStep, rt as handleDataOutside, it as handleFixedDropdown, lt as handleFixedPopover, T as hasVoiceOver, C as isArrayOfStrings, fn as isEventTargetNavigationItem, E as isIOSSafari, R as isKeyboardEvent, F as stringPropVisible, b as uuid };
|
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=>{if(e!=null)return String(typeof e==`string`?e===`true`:e)},d=(e,t)=>{if(e!=null)return typeof e==`string`?t===e||e===`true`:!!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===`true`:e,g=e=>{if(e!=null)return u(!h(e))},_=(e,t)=>(t===void 0||h(t))&&!!e,v=e=>e.querySelector(`input[type="search"]`),y=(e,t)=>`${t}${e.id??e.value??n()}`,b=e=>e.key!==void 0,x=({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`}},S=[`id`],C=[`aria-disabled`,`name`,`open`],w=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,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`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),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),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.renderSlot)(o.$slots,`default`,{key:1})])],8,C)],10,S))}}),T=[`id`,`data-variant`],E=(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&&(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)(w,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,T))}}),D=[`divider`,`card`],O=[`multiple`,`single`],k=`OVERWRITE_DEFAULT_ID`,A=`LABEL SHOULD BE SET`,j=` `,M=`MESSAGE SHOULD BE SET`,ee=`-label`,N=`-select`,P=`-message`,F=`-valid-message`,I=`-invalid-message`,L=`-placeholder`,te=`-datalist`,R=`TODO: Add a validMessage`,z=`TODO: Add an invalidMessage`,ne=`Remove`,B=`Back`,re=`Selected`,ie=`BurgerMenu`,ae=`brand`,oe=4,se=`Close`,ce=`density`,le=`color`,ue=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),V=Object.entries(ue).map(([,e])=>e),de=function(e){return e.PRIMARY=`primary`,e}({}),H=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}({}),U=Object.entries(H).map(([,e])=>e),fe=Object.entries(de).map(([,e])=>e),pe=function(e){return e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),me=Object.entries(pe).map(([,e])=>e),he={width:390,height:884},ge={width:1920,height:1280},_e=[{name:`desktop`,...ge},{name:`tablet`,width:768,height:1024},{name:`mobile`,...he}],ve=`db-ux-framework`,W=`db-ux-mode`,ye=[`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),"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.renderSlot)(r.$slots,`default`,{key:1})],10,ye))}}),be=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],xe=[`data-icon`,`data-show-icon`,`id`],Se=(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),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[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)(a.$slots,`default`,{key:1})],10,xe))}}),Ce=[`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`],K=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{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?`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??e.showIcon),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(u)(e.wrap),"data-no-text":(0,t.unref)(u)(e.noText),name:e.name,form:e.form,value:e.value,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.renderSlot)(s.$slots,`default`,{key:1})],10,Ce))}}),we=[`outlined`,`brand`,`filled`,`ghost`],Te=[`button`,`reset`,`submit`],q=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],Ee=(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,q))}}),J=[`static`,`interactive`],De=[`1`,`2`,`3`],Y=(e,t,n=`value`)=>{e(`update:${n}`,t.target[n])},Oe=(e,t,n)=>{e.form&&!e._dbFormResetListenerAdded&&(e.form.addEventListener(`reset`,e=>{t(e)},{signal:n}),e._dbFormResetListenerAdded=!0)},ke=(e,t,n,r)=>{Oe(e,r=>{l(()=>{let i=t.checked?t.checked:t.defaultChecked?t.defaultChecked:e.checked;n({...r,target:{...r.target,checked:i}})},1)},r)},X=(e,t,n,r)=>{Oe(e,r=>{l(()=>{let i=t.value?t.value:t.defaultValue?t.defaultValue:e.value;n({...r,target:{...r.target,value:i}})},1)},r)},Ae=[`id`,`data-icon`,`data-semantic`,`data-size`,`data-wrap`,`data-show-icon-leading`],Z=(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),"data-show-icon-leading":(0,t.unref)(u)(e.showIcon??!0)},[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)(a.$slots,`default`,{key:1})],10,Ae))}}),je=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Me=[`for`],Q=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],Ne={"data-visually-hidden":`true`,role:`status`},Pe=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P;f.value=e,p.value=u.value+F,m.value=u.value+I,_(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),ke(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),Y(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+P,p.value=e+F,m.value=e+I}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,Q),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,Me),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,Ne,(0,t.toDisplayString)(y.value),1)],10,je))}}),Fe=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Ie=(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??e.showIcon),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(u)(e.noText)},[(0,t.renderSlot)(a.$slots,`default`)],10,Fe))}}),Le=class e{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}constructor(){if(e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`click`,t=>e.runCallbacks(t))}addCallback(t){let r=n();return e.callbacks[r]=t,r}removeCallback(t){delete e.callbacks[t]}},$=class e{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(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)}addCallback(t){let r=n();return e.callbacks[r]=t,r}removeCallback(t){delete e.callbacks[t]}},Re=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}},ze=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=Re(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},Be=(e,t,n)=>{if(!e||!t||getComputedStyle(e).zIndex===`9999`)return;let{top:r,bottom:i,childHeight:a,childWidth:o,width:s,right:c,left:l,correctedPlacement:u}=Ve(e,t,n);e.dataset.width===`full`&&(e.style.inlineSize=`${s}px`),u===`top`||u===`bottom`||u===`top-start`||u===`bottom-start`?e.style.insetInlineStart=`${l}px`:(u===`top-end`||u===`bottom-end`)&&(e.style.insetInlineStart=`${c-o}px`),u?.startsWith(`top`)?e.style.insetBlockStart=`${r-a}px`:u?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${i}px`),e.style.position=`fixed`},Ve=(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/=2),(n===`left`||n===`right`)&&(f/=2);let m=o+f>u,h=i-f<0,g=c-p<0,_=s+p>d,v=n;return n.startsWith(`bottom`)?m?(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?(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`)&&(_?(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}},He=10,Ue=new WeakMap,We=e=>{if(Ue.has(e))return Ue.get(e);let t=e.parentElement,n=0;for(;t&&n<He;){if(t.dataset.correctedPlacement)return Ue.set(e,t),t;t=t.parentElement,n+=1}return Ue.set(e,null),null},Ge=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=We(e),o=!a&&!i,s=getComputedStyle(e)?.getPropertyValue(`--db-popover-distance`)??`0px`,{top:c,height:l,width:u,childHeight:d,childWidth:f,right:p,left:m,bottom:h,correctedPlacement:g,innerWidth:_,innerHeight:v}=Ve(e,t,n);if(a){let e=a.getBoundingClientRect();m=Math.abs(m-e.left),p=(u+Math.abs(p-e.right))*1.5,c=Math.abs(c-e.top),h=(l+Math.abs(h-e.bottom))*1.5}if(i&&(m=0,p=u,c=0,h=l,[`auto`,`inherit`,`0`].includes(r.zIndex)&&(t.style.zIndex=`1`)),f>u&&(g.startsWith(`bottom`)||g.startsWith(`top`))){let t=u/2/f*100;g.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${t}%`):g.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-inline-start`,`50%`)}if(d>l&&(g.startsWith(`left`)||g.startsWith(`bottom`))){let t=l/2/d*100;g.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${t}%`):g.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-block-start`,`50%`)}if(g===`right`||g===`left`)e.style.insetBlockStart=`${c+l/2}px`;else if(g===`right-start`||g===`left-start`){let t=c+d;e.style.insetBlockStart=`${c}px`,e.style.insetBlockEnd=`${!i&&t>v?v:t}px`}else if(g===`right-end`||g===`left-end`){let t=h-d;e.style.insetBlockStart=`${!i&&t<0?0:t}px`,e.style.insetBlockEnd=`${h}px`}else if(g===`top`||g===`bottom`)e.style.insetInlineStart=`${m+u/2}px`;else if(g===`top-start`||g===`bottom-start`){let t=m+f;e.style.insetInlineStart=`${m}px`,e.style.insetInlineEnd=`${!i&&t>_?_:t}px`}else if(g===`top-end`||g===`bottom-end`){let t=p-f;e.style.insetInlineStart=`${!i&&t<0?0:t}px`,e.style.insetInlineEnd=`${p}px`}if(g?.startsWith(`right`)){let t=p+f;e.style.insetInlineStart=`calc(${p}px + ${s})`,e.style.insetInlineEnd=`calc(${o&&t>_?_:t}px + ${s})`}else if(g?.startsWith(`left`)){let t=m-f;e.style.insetInlineStart=`calc(${o&&t<0?0:t}px - ${s})`,e.style.insetInlineEnd=`calc(${p}px - ${s})`}else if(g?.startsWith(`top`)){let t=c-d;e.style.insetBlockStart=`calc(${o&&t<0?0:t}px - ${s})`,e.style.insetBlockEnd=`calc(${i?t:h}px - ${s})`}else if(g?.startsWith(`bottom`)){let t=h+d;e.style.insetBlockStart=`calc(${i?t:h}px + ${s})`,e.style.insetBlockEnd=`calc(${o&&t>v?v:t}px + ${s})`}e.style.position=`fixed`,e.dataset.correctedPlacement=g},Ke=[`id`,`data-width`],qe=(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,Ke))}}),Je=[`id`,`data-divider`],Ye=[`data-icon`,`data-show-icon`,`data-icon-trailing`],Xe=[`type`,`name`,`form`,`checked`,`disabled`,`value`],Ze={key:1},Qe=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),Y(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)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ze,(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),"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,Xe),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,Ye))],10,Je))}}),$e=[`role`,`aria-label`,`id`],et=(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,$e))}}),tt=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],nt=[`for`],rt=`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(`.`),it=[`id`],at=[`value`],ot={"data-visually-hidden":`true`,role:`status`},st=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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)(()=>{R(),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)&&R()},{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+P;y.value=e,b.value=v.value+F,x.value=v.value+I,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),X(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),Y(o,e),A()}function M(e,t){h.onChange&&h.onChange(e),Y(o,e),A()}function ee(e){h.onBlur&&h.onBlur(e)}function N(e){h.onFocus&&h.onFocus(e)}function L(){let e=h.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function R(){let e=h.id??h.propOverrides?.id??`input-${r}`;v.value=e,y.value=e+P,b.value=e+F,x.value=e+I,C.value=e+te}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??e.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)},[(0,t.createElementVNode)(`label`,{for:v.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,nt),(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`),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,rt),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)(L(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,at))),128))],8,it)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,ot,(0,t.toDisplayString)(E.value),1)],10,tt))}}),ct=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],lt=(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}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(k),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{y(),o.value=!0}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&y()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[d.value,o.value,a.value],()=>{if(d.value&&o.value&&a.value){let e=m();e&&(h(e),[`mouseenter`,`focusin`].forEach(t=>{e.addEventListener(t,()=>v(e))}),e.addEventListener(`keydown`,e=>p(e)),[`mouseleave`,`focusout`].forEach(t=>{e.addEventListener(t,()=>_())}),e.dataset.hasTooltip=`true`,r.variant===`label`?e.setAttribute(`aria-labelledby`,a.value):e.setAttribute(`aria-describedby`,a.value)),typeof window<`u`&&`IntersectionObserver`in window&&(c.value=new IntersectionObserver(e=>{let t=e.find(({target:e})=>e===m());t&&!t.isIntersecting&&p(!1)})),o.value=!1}},{immediate:!0,flush:`post`});function f(e){e.stopPropagation()}function p(e){(!e||e.key===`Escape`)&&d.value&&getComputedStyle(d.value).visibility===`visible`&&m().blur()}function m(){let e=d.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function h(e){e&&d.value&&l(()=>{d.value&&Ge(d.value,e,r.placement??`bottom`)},1)}function g(e,t){e?.target?.contains&&e?.target?.contains(d.value)&&h(t)}function _(){s.value&&new $().removeCallback(s.value),c.value?.unobserve(m())}function v(e){s.value=new $().addCallback(t=>g(t,e)),h(e),c.value?.observe(m())}function y(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:d,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),"data-animation":(0,t.unref)(u)(e.animation??!0),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(u)(e.showArrow??!0),"data-placement":e.placement,onClick:o[0]||=async e=>f(e)},[(0,t.renderSlot)(n.$slots,`default`)],10,ct))}}),ut=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],dt=(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:ne}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),"data-show-icon":(0,t.unref)(u)(e.showIcon),"data-no-text":(0,t.unref)(u)(e.noText),"data-overflow":(0,t.unref)(u)(e.overflow)},[(0,t.renderSlot)(s.$slots,`content`),(0,t.renderSlot)(s.$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),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)(lt,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,ut))}}),ft=[`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`],pt=[`id`],mt=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],ht=[`disabled`,`value`],gt=[`open`],_t=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],vt=[`data-visually-hidden`,`id`],yt={key:0,"data-visually-hidden":`true`},bt={key:1},xt={key:0},St={key:0},Ct={class:`db-checkbox db-custom-select-list-item`},wt=[`form`,`checked`],Tt=[`aria-hidden`,`id`],Et={"data-visually-hidden":`true`,role:`status`},Dt=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),te=(0,t.ref)(!1),R=(0,t.ref)(0),z=(0,t.ref)([]),B=(0,t.ref)([]),ie=(0,t.ref)(!1),ae=(0,t.ref)(void 0),oe=(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)(!1),V=(0,t.ref)(!1),de=(0,t.ref)(null),H=(0,t.ref)(null),U=(0,t.ref)(null),fe=(0,t.ref)(null),pe=(0,t.ref)(null);(0,t.onMounted)(()=>{Ne(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`,typeof window<`u`&&`IntersectionObserver`in window&&(ce.value=new IntersectionObserver(e=>{if(H.value){let t=e.find(({target:e})=>e===H.value);t&&!t.isIntersecting&&H.value.open&&(H.value.open=!1)}}))}),(0,t.onUnmounted)(()=>{E.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&Ne()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value],()=>{H.value&&H.value.addEventListener(`focusout`,e=>q(e))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+P;b.value=c.value+ee,y.value=c.value+N,p.value=c.value+F,m.value=c.value+I,S.value=c.value+L,_(o.message,o.showMessage)?W(e):W()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value,D.value],()=>{if(H.value){let e=H.value.querySelector(`summary`);e&&e.setAttribute(`aria-describedby`,o.ariaDescribedBy??(D.value||``))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showNoResults,o.showLoading,B.value],()=>{o.showNoResults===void 0?B.value&&(ie.value=B.value.length===0):ie.value=o.showNoResults},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSelectAll,R.value,o.multiple],()=>{M.value=!!(o.multiple&&(o.showSelectAll??R.value>5))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSearch,R.value],()=>{te.value=o.showSearch??R.value>9},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.values],()=>{let e=o.values;Array.isArray(e)?z.value!==e&&(z.value=e):e==null&&z.value?.length!==0&&(z.value=[])},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[z.value,U.value],()=>{U.value&&ge()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[U.value],()=>{if(U.value){let e=E.value;e||(e=new AbortController,E.value=e);let t=o.values;Oe(U.value,()=>{J(t||(U.value.value?[U.value.value]:[])),ge()},e.signal)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation],()=>{w.value=o.validation},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[z.value,R.value],()=>{z.value?.length===0?(ue.value=!1,V.value=!1):z.value?.length===R.value?(V.value=!1,ue.value=!0):z.value&&(V.value=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options],()=>{B.value=o.options,R.value=o.options?.filter(e=>!e.isGroupTitle).length??0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(le.value=o.searchValue,o.searchValue){let e=o.searchValue;je(e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options,z.value],()=>{o.options?.length&&(j.value=o.options?.filter(e=>!e.value||!z.value?.includes?!1:!e.isGroupTitle&&z.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} ${re}`:O.value=j.value?.map(e=>G(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)(()=>[V.value,fe.value],()=>{fe.value&&(fe.value.indeterminate=!!V.value)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[U.value,o.invalidMessage],()=>{h.value=o.invalidMessage||U.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`});function me(e){e?.target?.contains&&e?.target?.contains(H.value)&&Ce()}function he(){return!!(o.validMessage??o.validation===`valid`)}function ge(){U.value&&(U.value.value=ve()),!U.value?.validity.valid||o.validation===`invalid`?(W(m.value),h.value=o.invalidMessage||U.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(A.value=h.value,l(()=>A.value=``,1e3)),T.value&&(w.value=o.validation??`invalid`)):he()&&U.value?.validity.valid&&o.required?(W(p.value),s()&&(A.value=o.validMessage??`TODO: Add a validMessage`,l(()=>A.value=``,1e3)),w.value=o.validation??`valid`):_(o.message,o.showMessage)?(W(f.value),w.value=o.validation??`no-validation`):(W(S.value),w.value=o.validation??`no-validation`)}function _e(e){o.onDropdownToggle&&(e.stopPropagation(),o.onDropdownToggle(e)),e.target instanceof HTMLDetailsElement&&e.target.open?(ae.value=new Le().addCallback(e=>Ee(e)),se.value=new $().addCallback(e=>me(e)),Ce(),ce.value?.observe(H.value),e.target.dataset.test||Ae()):(ae.value&&new Le().removeCallback(ae.value),se.value&&new $().removeCallback(se.value),ce.value?.unobserve(H.value))}function ve(){return z.value?.length?z.value.at(0)??``:``}function W(e){let t=[];e&&t.push(e),k.value&&O.value?.length&&t.push(k.value),D.value=t.join(` `)}function ye(){return o.selectAllLabel??`LABEL SHOULD BE SET`}function G(e){return e.label??e.value?.toString()??``}function be(e){return e&&z.value?.includes?z.value?.includes(e):!1}function xe(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`${ne} ${G(e)}`}function Se(e,t){t&&t.stopPropagation(),De(e.value),Q()}function Ce(){if(H.value){let e=H.value.querySelector(`article`);e&&l(()=>{Be(e,H.value,o.placement??`bottom`)},1)}}function we(e){if(H.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||X(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=H.value.querySelector(`input[type="checkbox"]`);if(e&&e!==t)X(t);else{let e=v(H.value);if(e)l(()=>{e.focus()},100);else{let e=Array.from(H.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`)?(q(void 0,!0),Q()):X(t)}}else (e.key===`ArrowDown`||e.key===`ArrowRight`)&&(Ce(),H.value&&(H.value.open=!0),Ae());e.stopPropagation(),e.preventDefault()}function Te(e){if(e.stopPropagation(),e.key===`Escape`&&H.value?.open)q(void 0,!0),Q();else if(e.key===`Enter`&&H.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=B.value?.find(e=>!e.isGroupTitle&&!e.disabled);t?.value&&(De(t.value),e.preventDefault())}}}else (e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&we(e)}function q(e,t){if(H.value){if(t)H.value.open=!1,Q();else if(H.value.open&&e&&e.relatedTarget){let t=e.relatedTarget;!H.value.contains(t)&&t.localName!==`dialog`&&l(()=>H.value.open=!1,1)}}}function Ee(e){if(e){let t=e.target;H.value?.open&&!H.value.contains(t)&&(H.value.open=!1)}}function J(e){new Date().getTime()-oe.value<200||(z.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),Y(a,{target:{values:e}},`values`),oe.value=new Date().getTime())}function De(e){e&&(o.multiple?z.value?.includes(e)?J(z.value.filter(t=>t!==e)):J([...z.value||[],e]):(J([e]),q(void 0,!0)))}function ke(e){if(e.stopPropagation(),z.value?.length===R.value)J([]);else{let e=te.value&&pe.value?pe.value.value:void 0;J(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function X(e){if(H.value){let t=Array.from(H.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 Ae(){if(H.value){let e=v(H.value);e?l(()=>{e.focus()},1):X()}}function je(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,le.value=t}!o.options||!t||t.length===0?B.value=o.options:o.searchFilter?B.value=o.options.filter(e=>o.searchFilter(e,t)):B.value=o.options.filter(e=>!e.isGroupTitle&&G(e).toLowerCase().includes(t.toLowerCase()))}function Me(e){e.stopPropagation(),J([]),Q()}function Q(){H.value&&H.value.querySelector(`summary`)?.focus()}function Ne(){let e=o.id??o.propOverrides?.id??`custom-select-${r}`;c.value=e,f.value=e+P,p.value=e+F,m.value=e+I,y.value=e+N,b.value=e+ee,x.value=e+`-summary`,S.value=e+L,k.value=e+`-selected-labels`,C.value=e+`-info`}function Pe(e){e.stopPropagation()}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:c.value,ref_key:`_ref`,ref:de,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),"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)},[(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:U,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=>Pe(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)(G(e)),9,ht))),128)):(0,t.createCommentVNode)(``,!0)],40,mt)],8,pt),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:H,open:e.open,onToggle:r[2]||=async e=>_e(e),onKeydown:r[3]||=async e=>Te(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),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`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,yt,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,vt)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(dt,{key:n,emphasis:`strong`,behavior:`removable`,removeButton:xe(e),onRemove:t=>Se(e,t)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(G(e)),1)]),_:2},1032,[`removeButton`,`onRemove`]))),128))])):(0,t.createCommentVNode)(``,!0)],8,_t),(0,t.createVNode)(qe,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[te.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xt,[(0,t.createVNode)(st,{type:`search`,ref_key:`searchInputRef`,ref:pe,name:c.value,form:c.value,showLabel:!1,value:le.value,label:e.searchLabel??(0,t.unref)(`LABEL SHOULD BE SET`),placeholder:e.searchPlaceholder??e.searchLabel,ariaDescribedBy:ie.value||e.showLoading?C.value:void 0,onInput:e=>je(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),ie.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(Z,{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`,St,[(0,t.createElementVNode)(`div`,Ct,[(0,t.createElementVNode)(`label`,null,[(0,t.createElementVNode)(`input`,{type:`checkbox`,value:`select-all`,ref_key:`selectAllRef`,ref:fe,form:c.value,checked:ue.value,onChange:r[1]||=async e=>ke(e)},null,40,wt),(0,t.createTextVNode)((0,t.toDisplayString)(ye()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(et,{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)(B.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Qe,{key:r,type:e.multiple?`checkbox`:`radio`,showDivider:n.showDivider,icon:n.icon,isGroupTitle:n.isGroupTitle,groupTitle:G(n),name:c.value,checked:be(n.value),disabled:n.disabled,value:n.value,onChange:e=>De(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)(G(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=>q(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,gt),(e.showClearSelection??!0)&&z.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=>Me(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)(lt,{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":(0,t.unref)(u)(!0),id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,Tt),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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),he()?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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`,Et,(0,t.toDisplayString)(A.value),1)],10,ft))}}),Ot=[`fixed`,`auto`,`full`],kt=[`id`],At=(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,kt))}}),jt=[`checkbox`,`radio`],Mt=[`amount`,`text`,`tag`],Nt=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],Pt=(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,Nt))}}),Ft=[`none`,`_`],It=[`horizontal`,`vertical`],Lt=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],Rt=[`data-spacing`,`data-width`,`data-direction`,`data-rounded`],zt={class:`db-drawer-header`},Bt={class:`db-drawer-header-text`},Vt={class:`db-drawer-content`},Ht=(0,t.defineComponent)({name:`DBDrawer`,__name:`drawer`,props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},position:{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:{},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null),o=(0,t.ref)(null);(0,t.onMounted)(()=>{c(),r.value=!0}),(0,t.watch)(()=>[n.open],()=>{c()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.value,r.value,n.position],()=>{if(a.value&&r.value&&n.position===`absolute`){let e=a.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function s(e,t){e&&(b(e)?e.key===`Escape`&&(e.preventDefault(),n.onClose&&n.onClose(e)):(t&&(e.stopPropagation(),n.onClose&&n.onClose(e)),e.target?.nodeName===`DIALOG`&&e.type===`click`&&n.backdrop!==`none`&&n.onClose&&n.onClose(e)))}function c(){if(a.value){let e=!!n.open;e&&!a.value.open&&(o.value&&o.value.removeAttribute(`data-transition`),n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`?a.value.show():a.value.showModal(),l(()=>{o.value&&(o.value.dataset.transition=`open`)},1)),!e&&a.value.open&&(o.value&&(o.value.dataset.transition=`close`),l(()=>{a.value?.close()},401))}}return(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:a,onClick:c[0]||=async e=>s(e),onKeydown:c[1]||=async e=>s(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:o,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-spacing":e.spacing,"data-width":e.width,"data-direction":e.direction,"data-rounded":(0,t.unref)(u)(e.rounded)},[(0,t.createElementVNode)(`header`,zt,[(0,t.createElementVNode)(`div`,Bt,[(0,t.renderSlot)(r.$slots,`drawer-header`)]),(0,t.createVNode)(K,{class:`button-close-drawer`,icon:`cross`,variant:`ghost`,id:e.closeButtonId,noText:!0,onClick:e=>s(e,!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`id`,`onClick`])]),(0,t.createElementVNode)(`div`,Vt,[(0,t.renderSlot)(r.$slots,`default`)])],10,Rt)],40,Lt))}}),Ut=[`none`,`strong`,`weak`,`invisible`],Wt=[`left`,`right`,`up`,`down`],Gt=[`modal`,`inside`],Kt=[`fixed`,`absolute`],qt=e=>{let{target:t}=e;return!!(!t?.classList?.contains(`db-navigation-item-expand-button`)&&t?.parentElement?.classList.contains(`db-navigation-item`))},Jt=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=ze(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))}},Yt=[`id`,`data-width`,`data-on-forcing-mobile`],Xt={class:`db-header-drawer-navigation`},Zt={class:`db-header-meta-navigation`},Qt={class:`db-header-secondary-action`},$t={class:`db-header-meta-navigation`},en={class:`db-header-navigation-bar`},tn={class:`db-header-brand-container`},nn={class:`db-header-navigation-container`},rn={class:`db-header-navigation`},an={class:`db-header-primary-action`},on={class:`db-header-action-container`},sn={class:`db-header-burger-menu-container`},cn={class:`db-header-secondary-action`},ln=(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},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){qt(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.createVNode)(Ht,{class:`db-header-drawer`,spacing:`small`,rounded:!0,closeButtonId:e.closeButtonId,closeButtonText:e.closeButtonText,open:(0,t.unref)(d)(e.drawerOpen),onClose:e=>c()},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Xt,[(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`,Zt,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])]),(0,t.createElementVNode)(`div`,Qt,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3},8,[`closeButtonId`,`closeButtonText`,`open`,`onClose`]),(0,t.createElementVNode)(`div`,$t,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,en,[(0,t.createElementVNode)(`div`,tn,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,nn,[(0,t.createElementVNode)(`div`,rn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,an,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,on,[(0,t.createElementVNode)(`div`,sn,[(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)(`BurgerMenu`)),1)]),_:1},8,[`onClick`])]),(0,t.createElementVNode)(`div`,cn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])])],10,Yt))}}),un=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],dn=(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.renderSlot)(a.$slots,`default`,{key:1})],10,un))}}),fn=[`16`,`20`,`24`,`32`,`48`,`64`],pn=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],mn=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],hn=(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),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(u)(e.showIcon??!0),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(u)(e.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.renderSlot)(o.$slots,`default`,{key:1})],10,mn))}}),gn=[`adaptive`,`brand`,`inline`],_n=[`medium`,`small`],vn=[`external`,`internal`],yn=[`id`],bn=(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,yn))}}),xn=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],Sn=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],Cn=[`id`,`aria-labelledby`,`data-force-close`],wn={key:0,class:`db-mobile-navigation-back`},Tn=(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},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 Jt(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),"data-active":e.active,"data-wrap":(0,t.unref)(u)(e.wrap),"aria-disabled":(0,t.unref)(u)(e.disabled)},[s.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[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)),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(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,Sn),(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`,wn,[(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,Cn)],64)):(0,t.createCommentVNode)(``,!0)],42,xn))}}),En=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],Dn={key:0},On={key:1},kn=(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},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)(x)({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),"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`,Dn,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`p`,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.renderSlot)(o.$slots,`default`,{key:1})]),(0,t.unref)(_)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,On,(0,t.toDisplayString)(e.timestamp),1)):(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,En))}}),An=[`docked`,`standalone`,`overlay`],jn=[`block`,`inline`],Mn=[`assertive`,`polite`,`off`],Nn=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Pn=(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),"data-fonts-loaded":(0,t.unref)(u)(r.value)},[(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,Nn))}}),Fn=[`auto`,`fixed`],In=[`hidden`,`auto`],Ln=[`id`],Rn=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],zn=(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)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.watch)(()=>[c.value,r.value],()=>{if(c.value&&r.value){r.value=!1;let e=g();e&&(e.ariaHasPopup=`true`),f(),c.value.addEventListener(`keydown`,e=>d(e)),[`mouseenter`,`focusin`].forEach(e=>{c.value.addEventListener(e,()=>m())}),[`mouseleave`,`focusout`].forEach(e=>{c.value.addEventListener(e,()=>h())}),typeof window<`u`&&`IntersectionObserver`in window&&(s.value=new IntersectionObserver(e=>{let t=e.find(({target:e})=>e===g());t&&!t.isIntersecting&&d(!1)}))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=g();e&&(e.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:`post`});function d(e){if(!e||e.key===`Escape`)for(let e of Array.from(c.value.children))e.blur()}function f(){if(!c.value)return;let e=c.value.querySelector(`article`);e&&l(()=>{Ge(e,c.value,n.placement??`bottom`)},1)}function p(e){e?.target?.contains&&e?.target?.contains(c.value)&&f()}function m(){a.value=!0,o.value=new $().addCallback(e=>p(e)),f();let e=g();e&&s.value?.observe(e)}function h(e){let t=e?.target;if(!t?.parentNode||t.parentNode.querySelector(`:focus`)!==t&&t.parentNode.querySelector(`:focus-within`)!==t&&t.parentNode.querySelector(`:hover`)!==t){a.value=!1,o.value&&new $().removeCallback(o.value);let e=g();e&&s.value?.unobserve(e)}}function g(){if(c.value){let e=Array.from(c.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:c,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),"data-animation":(0,t.unref)(u)(e.animation??!0),"data-open":(0,t.unref)(u)(e.open),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,Rn)],10,Ln))}}),Bn=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],Vn=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],Hn=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),Oe(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),Y(a,e)}function m(e,t){o.onChange&&o.onChange(e),Y(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,Vn),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],10,Bn))}}),Un=[`id`,`data-spacing`,`data-width`],Wn=(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,Un))}}),Gn=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],Kn=[`for`],qn=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],Jn=[`data-show-empty-option`],Yn=[`label`],Xn=[`value`,`selected`,`disabled`],Zn=[`value`,`disabled`,`selected`],Qn=[`id`],$n={"data-visually-hidden":`true`,role:`status`},er=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P,t=c.value+L;f.value=e,p.value=c.value+F,m.value=c.value+I,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),X(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),Y(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),Y(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+P,p.value=e+F,m.value=e+I,v.value=e+L}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)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,Kn),(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())},null,8,Jn)):(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,Xn))),128))],8,Yn)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,Zn))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{key:2})],40,qn),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:v.value},(0,t.toDisplayString)(e.placeholder),9,Qn)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,$n,(0,t.toDisplayString)(S.value),1)],10,Gn))}}),tr=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],nr=(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)},[(0,t.renderSlot)(a.$slots,`default`)],10,tr))}}),rr=[`simple`,`divider`],ir=[`row`,`column`],ar=[`stretch`,`start`,`end`,`center`],or=[`space-between`,`start`,`end`,`center`],sr=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],cr=[`for`],lr=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],ur={"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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),ke(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(),Y(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}${P}`,p.value=`${e}${F}`,m.value=`${e}${I}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-visual-aid":(0,t.unref)(u)(e.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,lr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,cr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,ur,(0,t.toDisplayString)(y.value),1)],10,sr))}}),fr=[`for`,`data-icon`,`data-icon-trailing`,`data-show-icon`,`data-show-icon-trailing`,`data-no-text`],pr=[`disabled`,`aria-selected`,`checked`,`name`,`id`],mr=(0,t.defineComponent)({name:`DBTabItem`,__name:`tab-item`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},noText:{type:[Boolean,String],default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},active:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},showIcon:{type:[Boolean,String],default:void 0},name:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=n,a=e,o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(!1),l=(0,t.ref)(!1),f=(0,t.ref)(void 0),p=(0,t.ref)(null);(0,t.onMounted)(()=>{f.value=m,c.value=!0}),(0,t.onUnmounted)(()=>{l.value&&p.value&&f.value&&(p.value.closest(`[role=tablist]`)?.removeEventListener(`change`,f.value),l.value=!1)}),(0,t.watch)(()=>[p.value,c.value,f.value],()=>{p.value&&c.value&&f.value&&(c.value=!1,l.value||=(p.value.closest(`[role=tablist]`)?.addEventListener(`change`,f.value),!0),(a.active||p.value.checked)&&(o.value=!0,p.value.click()))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.name],()=>{a.name&&(s.value=a.name)},{immediate:!0,flush:`post`});function m(e){e.stopPropagation(),o.value=e.target===p.value}function h(e){a.onChange&&a.onChange(e),Y(r,e,`checked`)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{role:`none`,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-item`,a.class))},[(0,t.createElementVNode)(`label`,{for:e.id??e.propOverrides?.id,"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-show-icon":(0,t.unref)(u)(e.showIconLeading??e.showIcon),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-no-text":(0,t.unref)(u)(e.noText)},[(0,t.createElementVNode)(`input`,{type:`radio`,role:`tab`,disabled:(0,t.unref)(d)(e.disabled,`disabled`),"aria-selected":o.value,checked:(0,t.unref)(d)(e.checked,`checked`),ref_key:`_ref`,ref:p,name:s.value,id:e.id??e.propOverrides?.id,onInput:r[0]||=async e=>h(e)},null,40,pr),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,fr)],2))}}),hr=[`id`],gr={role:`tablist`},_r=(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}},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-tab-list`,n.class))},[(0,t.createElementVNode)(`ul`,gr,[(0,t.renderSlot)(a.$slots,`default`)])],10,hr))}}),vr=[`id`],yr=(0,t.defineComponent)({name:`DBTabPanel`,__name:`tab-panel`,props:{content:{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(0,t.onMounted)(()=>{}),(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{role:`tabpanel`,ref_key:`_ref`,ref:r,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-panel`,n.class)),id:e.id??e.propOverrides?.id},[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,vr))}}),br=[`id`,`data-orientation`,`data-scroll-behavior`,`data-alignment`,`data-width`],xr=(0,t.defineComponent)({name:`DBTabs`,__name:`tabs`,props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},tabs:{default:void 0},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},width:{default:void 0},alignment:{default:void 0},indexChange:{},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabSelect:{}},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)(!1),l=(0,t.ref)(null),u=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=`tabs-${r.name||n}`,o.value=!0}),(0,t.onUnmounted)(()=>{u.value?.disconnect(),u.value=void 0}),(0,t.watch)(()=>[d.value,o.value],()=>{if(d.value&&o.value){h(),g(!0);let e=d.value.querySelector(`.db-tab-list`);e&&new MutationObserver(e=>{e.forEach(e=>{(e.removedNodes.length||e.addedNodes.length)&&(h(),g())})}).observe(e,{childList:!0,subtree:!0}),o.value=!1}},{immediate:!0,flush:`post`});function f(){try{return typeof r.tabs==`string`?JSON.parse(r.tabs):r.tabs}catch(e){console.error(e)}return[]}function p(e){let t=e.scrollWidth>e.clientWidth;s.value=t&&e.scrollLeft>1,c.value=t&&e.scrollLeft<e.scrollWidth-e.clientWidth}function m(e){let t=Number(r.arrowScrollDistance)||100;e&&(t*=-1),l.value?.scrollBy({top:0,left:t,behavior:`smooth`})}function h(){if(d.value){let e=d.value.querySelector(`.db-tab-list`);if(e){let t=e.querySelector(`[role="tablist"]`);if(t&&(t.setAttribute(`aria-orientation`,r.orientation||`horizontal`),r.behavior===`arrows`&&(l.value=t,p(t),t.addEventListener(`scroll`,()=>{p(t)}),!u.value))){let e=new ResizeObserver(()=>{p(t)});e.observe(t),u.value=e}}}}function g(e){if(d.value){let t=Array.from(d.value.getElementsByClassName(`db-tab-item`)),n=Array.from(d.value.querySelectorAll(`:is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)`));for(let i of t){let o=t.indexOf(i),s=i.querySelector(`label`),c=i.querySelector(`input`);if(c&&s){if(!c.id){let e=`${a.value}-tab-${o}`;s.setAttribute(`for`,e),c.id=e,c.setAttribute(`name`,a.value),n.length>o&&c.setAttribute(`aria-controls`,`${a.value}-tab-panel-${o}`)}if(e){let e=!r.initialSelectedMode||r.initialSelectedMode===`auto`,t=r.initialSelectedIndex==null&&o===0||Number(r.initialSelectedIndex)===o;e&&t&&c.click()}}}for(let e of n){if(e.id)continue;let t=n.indexOf(e);e.id=`${a.value}-tab-panel-${t}`,e.setAttribute(`aria-labelledby`,`${a.value}-tab-${t}`)}}}function _(e){if(e.stopPropagation(),e.target){let t=e.target.parentElement;if(t&&t.parentElement&&t.parentElement?.nodeName===`LI`){let n=t.parentElement;if(n){let t=n.parentElement;if(t){let i=Array.from(t.children).indexOf(n);r.onIndexChange&&r.onIndexChange(i),r.onTabSelect&&r.onTabSelect(e)}}}}}return(n,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-tabs`,r.class)),"data-orientation":e.orientation,"data-scroll-behavior":e.behavior,"data-alignment":e.alignment??`start`,"data-width":e.width??`auto`,onInput:a[0]||=async e=>_(e),onChange:a[1]||=async e=>_(e)},[s.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,class:`tabs-scroll-left`,variant:`ghost`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>m(!0)},{default:(0,t.withCtx)(()=>[...a[2]||=[(0,t.createTextVNode)(` Scroll left `,-1)]]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),e.tabs?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(_r,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(mr,{key:e.name+`tab-item`+r,active:n.active,label:n.label,iconTrailing:n.iconTrailing,icon:n.icon,noText:n.noText},null,8,[`active`,`label`,`iconTrailing`,`icon`,`noText`]))),128))]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(yr,{key:e.name+`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.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:2,class:`tabs-scroll-right`,variant:`ghost`,icon:`chevron_right`,type:`button`,noText:!0,onClick:e=>m()},{default:(0,t.withCtx)(()=>[...a[3]||=[(0,t.createTextVNode)(` Scroll right `,-1)]]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],42,br))}}),Sr=[`scrollbar`,`arrows`],Cr=[`auto`,`manually`],wr=[`static`,`removable`],Tr=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],Er=[`for`],Dr=[`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`],Or={"data-visually-hidden":`true`,role:`status`},kr=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P;u.value=e,p.value=c.value+F,m.value=c.value+I,_(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),X(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),Y(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),Y(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+P,p.value=e+F,m.value=e+I}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,Er),(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`),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,Dr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,Or,(0,t.toDisplayString)(b.value),1)],10,Tr))}}),Ar=[`none`,`both`,`horizontal`,`vertical`],jr=[`hard`,`soft`,`off`],Mr=[`description`,`label`],Nr=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],Pr=[`medium`,`small`,`large`,`none`],Fr=[`medium`,`small`,`large`,`none`],Ir=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],Lr=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],Rr=[...Ir,...Lr],zr=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],Br=[`horizontal`,`vertical`],Vr=[`full`,`auto`],Hr=[`full`,`medium`,`large`,`small`],Ur=[`none`,`slow`,`fast`],Wr=[`auto`,`fixed`],Gr=[`small`,`medium`],Kr=[`weak`,`strong`],qr=[`invalid`,`valid`,`no-validation`],Jr=[`fixed`,`content`],Yr=[`above`,`floating`],Xr=[`leading`,`trailing`],Zr=`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=O,e.AccordionVariantList=D,e.AlignmentList=[`start`,`center`],e.AutoCompleteList=Zr,e.BadgePlacementList=be,e.ButtonTypeList=Te,e.ButtonVariantList=we,e.COLOR=H,e.COLORS=U,e.COLORS_SIMPLE=fe,e.COLOR_CONST=le,e.COLOR_SIMPLE=de,e.CardBehaviorList=J,e.CardElevationLevelList=De,e.CustomSelectDropdownWidthList=Ot,e.CustomSelectListItemTypeList=jt,e.DBAccordion=E,e.DBAccordionItem=w,e.DBBadge=G,e.DBBrand=Se,e.DBButton=K,e.DBCard=Ee,e.DBCheckbox=Pe,e.DBCustomButton=Ie,e.DBCustomSelect=Dt,e.DBCustomSelectDropdown=qe,e.DBCustomSelectFormField=At,e.DBCustomSelectList=et,e.DBCustomSelectListItem=Qe,e.DBDivider=Pt,e.DBDrawer=Ht,e.DBHeader=ln,e.DBIcon=dn,e.DBInfotext=Z,e.DBInput=st,e.DBLink=hn,e.DBNavigation=bn,e.DBNavigationItem=Tn,e.DBNotification=kn,e.DBPage=Pn,e.DBPopover=zn,e.DBRadio=Hn,e.DBSection=Wn,e.DBSelect=er,e.DBStack=nr,e.DBSwitch=dr,e.DBTabItem=mr,e.DBTabList=_r,e.DBTabPanel=yr,e.DBTabs=xr,e.DBTag=dt,e.DBTextarea=kr,e.DBTooltip=lt,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=ve,e.DB_UX_LOCAL_STORAGE_MODE=W,e.DEFAULT_BACK=B,e.DEFAULT_BURGER_MENU=ie,e.DEFAULT_CLOSE_BUTTON=se,e.DEFAULT_DATALIST_ID_SUFFIX=te,e.DEFAULT_ICON=ae,e.DEFAULT_ID=k,e.DEFAULT_INVALID_MESSAGE=z,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=I,e.DEFAULT_LABEL=A,e.DEFAULT_LABEL_ID_SUFFIX=ee,e.DEFAULT_MESSAGE=M,e.DEFAULT_MESSAGE_ID_SUFFIX=P,e.DEFAULT_PLACEHOLDER=j,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=L,e.DEFAULT_REMOVE=ne,e.DEFAULT_ROWS=oe,e.DEFAULT_SELECTED=re,e.DEFAULT_SELECT_ID_SUFFIX=N,e.DEFAULT_VALID_MESSAGE=R,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=F,e.DEFAULT_VIEWPORT=he,e.DENSITIES=V,e.DENSITY=ue,e.DENSITY_CONST=ce,e.DESKTOP_VIEWPORT=ge,e.DividerMarginList=Ft,e.DividerVariantList=It,e.DocumentClickListener=Le,e.DocumentScrollListener=$,e.DrawerBackdropList=Ut,e.DrawerDirectionList=Wt,e.DrawerPositionList=Kt,e.DrawerVariantList=Gt,e.EmphasisList=Kr,e.FieldSizingList=Jr,e.GapSpacingList=zr,e.IconWeightList=fn,e.InputTypeList=pn,e.LabelVariantHorizontalList=Xr,e.LabelVariantList=Yr,e.LinkContentList=vn,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=_n,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=gn,e.MarginList=Fr,e.MaxWidthList=Hr,e.NavigationItemSafeTriangle=Jt,e.NotificationAriaLiveList=Mn,e.NotificationLinkVariantList=jn,e.NotificationVariantList=An,e.OrientationList=Br,e.PageDocumentOverflowList=In,e.PageVariantList=Fn,e.PlacementHorizontalList=Ir,e.PlacementList=Rr,e.PlacementVerticalList=Lr,e.PopoverDelayList=Ur,e.PopoverWidthList=Wr,e.SEMANTIC=pe,e.SEMANTICS=me,e.SelectedTypeList=Mt,e.SemanticList=Nr,e.SizeList=Gr,e.SpacingList=Pr,e.StackAlignmentList=ar,e.StackDirectionList=ir,e.StackJustifyContentList=or,e.StackVariantList=rr,e.TESTING_VIEWPORTS=_e,e.TabsBehaviorList=Sr,e.TabsInitialSelectedModeList=Cr,e.TagBehaviorList=wr,e.TextareaResizeList=Ar,e.TextareaWrapList=jr,e.TooltipVariantList=Mr,e.ValidationList=qr,e.WidthList=Vr,e.addAttributeToChildren=r,e.cls=i,e.delay=l,e.getBoolean=d,e.getBooleanAsString=u,e.getFloatingProps=Ve,e.getHideProp=g,e.getInputValue=m,e.getNotificationRole=x,e.getNumber=f,e.getOptionKey=y,e.getSearchInput=v,e.getStep=p,e.handleDataOutside=ze,e.handleFixedDropdown=Be,e.handleFixedPopover=Ge,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=qt,e.isIOSSafari=c,e.isKeyboardEvent=b,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=>{if(e!=null)return String(typeof e==`string`?e===`true`:e)},d=(e,t)=>{if(e!=null)return typeof e==`string`?t===e||e===`true`:!!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===`true`:e,g=e=>{if(e!=null)return u(!h(e))},_=(e,t)=>(t===void 0||h(t))&&!!e,v=e=>e.querySelector(`input[type="search"]`),y=(e,t)=>`${t}${e.id??e.value??n()}`,b=e=>e.key!==void 0,x=({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`}},S=[`id`],C=[`aria-disabled`,`name`,`open`],w=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,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`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),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),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.renderSlot)(o.$slots,`default`,{key:1})])],8,C)],10,S))}}),T=[`id`,`data-variant`],E=(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&&(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)(w,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,T))}}),D=[`divider`,`card`],O=[`multiple`,`single`],k=`OVERWRITE_DEFAULT_ID`,A=`LABEL SHOULD BE SET`,j=` `,M=`MESSAGE SHOULD BE SET`,ee=`-label`,N=`-select`,P=`-message`,F=`-valid-message`,I=`-invalid-message`,L=`-placeholder`,te=`-datalist`,R=`TODO: Add a validMessage`,z=`TODO: Add an invalidMessage`,ne=`Remove`,B=`Back`,re=`Selected`,ie=`BurgerMenu`,ae=`brand`,oe=4,se=`Close`,ce=`density`,le=`color`,ue=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),V=Object.entries(ue).map(([,e])=>e),de=function(e){return e.PRIMARY=`primary`,e}({}),H=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}({}),U=Object.entries(H).map(([,e])=>e),fe=Object.entries(de).map(([,e])=>e),pe=function(e){return e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),me=Object.entries(pe).map(([,e])=>e),he={width:390,height:884},ge={width:1920,height:1280},_e=[{name:`desktop`,...ge},{name:`tablet`,width:768,height:1024},{name:`mobile`,...he}],ve=`db-ux-framework`,W=`db-ux-mode`,ye=[`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),"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.renderSlot)(r.$slots,`default`,{key:1})],10,ye))}}),be=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],xe=[`data-icon`,`data-show-icon`,`id`],Se=(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),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[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)(a.$slots,`default`,{key:1})],10,xe))}}),Ce=[`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`],K=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{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?`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??e.showIcon),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(u)(e.wrap),"data-no-text":(0,t.unref)(u)(e.noText),name:e.name,form:e.form,value:e.value,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.renderSlot)(s.$slots,`default`,{key:1})],10,Ce))}}),we=[`outlined`,`brand`,`filled`,`ghost`],Te=[`button`,`reset`,`submit`],q=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],Ee=(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,q))}}),J=[`static`,`interactive`],De=[`1`,`2`,`3`],Y=(e,t,n=`value`)=>{e(`update:${n}`,t.target[n])},Oe=(e,t,n)=>{e.form&&!e._dbFormResetListenerAdded&&(e.form.addEventListener(`reset`,e=>{t(e)},{signal:n}),e._dbFormResetListenerAdded=!0)},ke=(e,t,n,r)=>{Oe(e,r=>{l(()=>{let i=t.checked?t.checked:t.defaultChecked?t.defaultChecked:e.checked;n({...r,target:{...r.target,checked:i}})},1)},r)},X=(e,t,n,r)=>{Oe(e,r=>{l(()=>{let i=t.value?t.value:t.defaultValue?t.defaultValue:e.value;n({...r,target:{...r.target,value:i}})},1)},r)},Ae=[`id`,`data-icon`,`data-semantic`,`data-size`,`data-wrap`,`data-show-icon-leading`],Z=(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),"data-show-icon-leading":(0,t.unref)(u)(e.showIcon??!0)},[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)(a.$slots,`default`,{key:1})],10,Ae))}}),je=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Me=[`for`],Q=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],Ne={"data-visually-hidden":`true`,role:`status`},Pe=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P;f.value=e,p.value=u.value+F,m.value=u.value+I,_(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),ke(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),Y(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+P,p.value=e+F,m.value=e+I}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,Q),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,Me),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,Ne,(0,t.toDisplayString)(y.value),1)],10,je))}}),Fe=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Ie=(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??e.showIcon),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(u)(e.noText)},[(0,t.renderSlot)(a.$slots,`default`)],10,Fe))}}),Le=class e{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}constructor(){if(e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`click`,t=>e.runCallbacks(t))}addCallback(t){let r=n();return e.callbacks[r]=t,r}removeCallback(t){delete e.callbacks[t]}},$=class e{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(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)}addCallback(t){let r=n();return e.callbacks[r]=t,r}removeCallback(t){delete e.callbacks[t]}},Re=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}},ze=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=Re(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},Be=(e,t,n)=>{if(!e||!t||getComputedStyle(e).zIndex===`9999`)return;let{top:r,bottom:i,childHeight:a,childWidth:o,width:s,right:c,left:l,correctedPlacement:u}=Ve(e,t,n);e.dataset.width===`full`&&(e.style.inlineSize=`${s}px`),u===`top`||u===`bottom`||u===`top-start`||u===`bottom-start`?e.style.insetInlineStart=`${l}px`:(u===`top-end`||u===`bottom-end`)&&(e.style.insetInlineStart=`${c-o}px`),u?.startsWith(`top`)?e.style.insetBlockStart=`${r-a}px`:u?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${i}px`),e.style.position=`fixed`},Ve=(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/=2),(n===`left`||n===`right`)&&(f/=2);let m=o+f>u,h=i-f<0,g=c-p<0,_=s+p>d,v=n;return n.startsWith(`bottom`)?m?(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?(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`)&&(_?(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}},He=10,Ue=new WeakMap,We=e=>{if(Ue.has(e))return Ue.get(e);let t=e.parentElement,n=0;for(;t&&n<He;){if(t.dataset.correctedPlacement)return Ue.set(e,t),t;t=t.parentElement,n+=1}return Ue.set(e,null),null},Ge=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=We(e),o=!a&&!i,s=getComputedStyle(e)?.getPropertyValue(`--db-popover-distance`)??`0px`,{top:c,height:l,width:u,childHeight:d,childWidth:f,right:p,left:m,bottom:h,correctedPlacement:g,innerWidth:_,innerHeight:v}=Ve(e,t,n);if(a){let e=a.getBoundingClientRect();m=Math.abs(m-e.left),p=(u+Math.abs(p-e.right))*1.5,c=Math.abs(c-e.top),h=(l+Math.abs(h-e.bottom))*1.5}if(i&&(m=0,p=u,c=0,h=l,[`auto`,`inherit`,`0`].includes(r.zIndex)&&(t.style.zIndex=`1`)),f>u&&(g.startsWith(`bottom`)||g.startsWith(`top`))){let t=u/2/f*100;g.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${t}%`):g.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-inline-start`,`50%`)}if(d>l&&(g.startsWith(`left`)||g.startsWith(`bottom`))){let t=l/2/d*100;g.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${t}%`):g.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-block-start`,`50%`)}if(g===`right`||g===`left`)e.style.insetBlockStart=`${c+l/2}px`;else if(g===`right-start`||g===`left-start`){let t=c+d;e.style.insetBlockStart=`${c}px`,e.style.insetBlockEnd=`${!i&&t>v?v:t}px`}else if(g===`right-end`||g===`left-end`){let t=h-d;e.style.insetBlockStart=`${!i&&t<0?0:t}px`,e.style.insetBlockEnd=`${h}px`}else if(g===`top`||g===`bottom`)e.style.insetInlineStart=`${m+u/2}px`;else if(g===`top-start`||g===`bottom-start`){let t=m+f;e.style.insetInlineStart=`${m}px`,e.style.insetInlineEnd=`${!i&&t>_?_:t}px`}else if(g===`top-end`||g===`bottom-end`){let t=p-f;e.style.insetInlineStart=`${!i&&t<0?0:t}px`,e.style.insetInlineEnd=`${p}px`}if(g?.startsWith(`right`)){let t=p+f;e.style.insetInlineStart=`calc(${p}px + ${s})`,e.style.insetInlineEnd=`calc(${o&&t>_?_:t}px + ${s})`}else if(g?.startsWith(`left`)){let t=m-f;e.style.insetInlineStart=`calc(${o&&t<0?0:t}px - ${s})`,e.style.insetInlineEnd=`calc(${p}px - ${s})`}else if(g?.startsWith(`top`)){let t=c-d;e.style.insetBlockStart=`calc(${o&&t<0?0:t}px - ${s})`,e.style.insetBlockEnd=`calc(${i?t:h}px - ${s})`}else if(g?.startsWith(`bottom`)){let t=h+d;e.style.insetBlockStart=`calc(${i?t:h}px + ${s})`,e.style.insetBlockEnd=`calc(${o&&t>v?v:t}px + ${s})`}e.style.position=`fixed`,e.dataset.correctedPlacement=g},Ke=[`id`,`data-width`],qe=(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,Ke))}}),Je=[`id`,`data-divider`],Ye=[`data-icon`,`data-show-icon`,`data-icon-trailing`],Xe=[`type`,`name`,`form`,`checked`,`disabled`,`value`],Ze={key:1},Qe=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),Y(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)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ze,(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),"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,Xe),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,Ye))],10,Je))}}),$e=[`role`,`aria-label`,`id`],et=(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,$e))}}),tt=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],nt=[`for`],rt=`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(`.`),it=[`id`],at=[`value`],ot={"data-visually-hidden":`true`,role:`status`},st=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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)(()=>{R(),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)&&R()},{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+P;y.value=e,b.value=v.value+F,x.value=v.value+I,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),X(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),Y(o,e),A()}function M(e,t){h.onChange&&h.onChange(e),Y(o,e),A()}function ee(e){h.onBlur&&h.onBlur(e)}function N(e){h.onFocus&&h.onFocus(e)}function L(){let e=h.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function R(){let e=h.id??h.propOverrides?.id??`input-${r}`;v.value=e,y.value=e+P,b.value=e+F,x.value=e+I,C.value=e+te}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??e.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)},[(0,t.createElementVNode)(`label`,{for:v.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,nt),(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`),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,rt),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)(L(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,at))),128))],8,it)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,ot,(0,t.toDisplayString)(E.value),1)],10,tt))}}),ct=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],lt=(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}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(k),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{y(),o.value=!0}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&y()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[d.value,o.value,a.value],()=>{if(d.value&&o.value&&a.value){let e=m();e&&(h(e),[`mouseenter`,`focusin`].forEach(t=>{e.addEventListener(t,()=>v(e))}),e.addEventListener(`keydown`,e=>p(e)),[`mouseleave`,`focusout`].forEach(t=>{e.addEventListener(t,()=>_())}),e.dataset.hasTooltip=`true`,r.variant===`label`?e.setAttribute(`aria-labelledby`,a.value):e.setAttribute(`aria-describedby`,a.value)),typeof window<`u`&&`IntersectionObserver`in window&&(c.value=new IntersectionObserver(e=>{let t=e.find(({target:e})=>e===m());t&&!t.isIntersecting&&p(!1)})),o.value=!1}},{immediate:!0,flush:`post`});function f(e){e.stopPropagation()}function p(e){(!e||e.key===`Escape`)&&d.value&&getComputedStyle(d.value).visibility===`visible`&&m().blur()}function m(){let e=d.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function h(e){e&&d.value&&l(()=>{d.value&&Ge(d.value,e,r.placement??`bottom`)},1)}function g(e,t){e?.target?.contains&&e?.target?.contains(d.value)&&h(t)}function _(){s.value&&new $().removeCallback(s.value),c.value?.unobserve(m())}function v(e){s.value=new $().addCallback(t=>g(t,e)),h(e),c.value?.observe(m())}function y(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:d,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),"data-animation":(0,t.unref)(u)(e.animation??!0),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(u)(e.showArrow??!0),"data-placement":e.placement,onClick:o[0]||=async e=>f(e)},[(0,t.renderSlot)(n.$slots,`default`)],10,ct))}}),ut=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],dt=(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:ne}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),"data-show-icon":(0,t.unref)(u)(e.showIcon),"data-no-text":(0,t.unref)(u)(e.noText),"data-overflow":(0,t.unref)(u)(e.overflow)},[(0,t.renderSlot)(s.$slots,`content`),(0,t.renderSlot)(s.$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),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)(lt,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,ut))}}),ft=[`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`],pt=[`id`],mt=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],ht=[`disabled`,`value`],gt=[`open`],_t=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],vt=[`data-visually-hidden`,`id`],yt={key:0,"data-visually-hidden":`true`},bt={key:1},xt={key:0},St={key:0},Ct={class:`db-checkbox db-custom-select-list-item`},wt=[`form`,`checked`],Tt=[`aria-hidden`,`id`],Et={"data-visually-hidden":`true`,role:`status`},Dt=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),te=(0,t.ref)(!1),R=(0,t.ref)(0),z=(0,t.ref)([]),B=(0,t.ref)([]),ie=(0,t.ref)(!1),ae=(0,t.ref)(void 0),oe=(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)(!1),V=(0,t.ref)(!1),de=(0,t.ref)(null),H=(0,t.ref)(null),U=(0,t.ref)(null),fe=(0,t.ref)(null),pe=(0,t.ref)(null);(0,t.onMounted)(()=>{Ne(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`,typeof window<`u`&&`IntersectionObserver`in window&&(ce.value=new IntersectionObserver(e=>{if(H.value){let t=e.find(({target:e})=>e===H.value);t&&!t.isIntersecting&&H.value.open&&(H.value.open=!1)}}))}),(0,t.onUnmounted)(()=>{E.value?.abort()}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&Ne()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value],()=>{H.value&&H.value.addEventListener(`focusout`,e=>q(e))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+P;b.value=c.value+ee,y.value=c.value+N,p.value=c.value+F,m.value=c.value+I,S.value=c.value+L,_(o.message,o.showMessage)?W(e):W()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value,D.value],()=>{if(H.value){let e=H.value.querySelector(`summary`);e&&e.setAttribute(`aria-describedby`,o.ariaDescribedBy??(D.value||``))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showNoResults,o.showLoading,B.value],()=>{o.showNoResults===void 0?B.value&&(ie.value=B.value.length===0):ie.value=o.showNoResults},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSelectAll,R.value,o.multiple],()=>{M.value=!!(o.multiple&&(o.showSelectAll??R.value>5))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.showSearch,R.value],()=>{te.value=o.showSearch??R.value>9},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.values],()=>{let e=o.values;Array.isArray(e)?z.value!==e&&(z.value=e):e==null&&z.value?.length!==0&&(z.value=[])},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[z.value,U.value],()=>{U.value&&ge()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[U.value],()=>{if(U.value){let e=E.value;e||(e=new AbortController,E.value=e);let t=o.values;Oe(U.value,()=>{J(t||(U.value.value?[U.value.value]:[])),ge()},e.signal)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.validation],()=>{w.value=o.validation},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[z.value,R.value],()=>{z.value?.length===0?(ue.value=!1,V.value=!1):z.value?.length===R.value?(V.value=!1,ue.value=!0):z.value&&(V.value=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options],()=>{B.value=o.options,R.value=o.options?.filter(e=>!e.isGroupTitle).length??0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(le.value=o.searchValue,o.searchValue){let e=o.searchValue;je(e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options,z.value],()=>{o.options?.length&&(j.value=o.options?.filter(e=>!e.value||!z.value?.includes?!1:!e.isGroupTitle&&z.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} ${re}`:O.value=j.value?.map(e=>G(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)(()=>[V.value,fe.value],()=>{fe.value&&(fe.value.indeterminate=!!V.value)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[U.value,o.invalidMessage],()=>{h.value=o.invalidMessage||U.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`});function me(e){e?.target?.contains&&e?.target?.contains(H.value)&&Ce()}function he(){return!!(o.validMessage??o.validation===`valid`)}function ge(){U.value&&(U.value.value=ve()),!U.value?.validity.valid||o.validation===`invalid`?(W(m.value),h.value=o.invalidMessage||U.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(A.value=h.value,l(()=>A.value=``,1e3)),T.value&&(w.value=o.validation??`invalid`)):he()&&U.value?.validity.valid&&o.required?(W(p.value),s()&&(A.value=o.validMessage??`TODO: Add a validMessage`,l(()=>A.value=``,1e3)),w.value=o.validation??`valid`):_(o.message,o.showMessage)?(W(f.value),w.value=o.validation??`no-validation`):(W(S.value),w.value=o.validation??`no-validation`)}function _e(e){o.onDropdownToggle&&(e.stopPropagation(),o.onDropdownToggle(e)),e.target instanceof HTMLDetailsElement&&e.target.open?(ae.value=new Le().addCallback(e=>Ee(e)),se.value=new $().addCallback(e=>me(e)),Ce(),ce.value?.observe(H.value),e.target.dataset.test||Ae()):(ae.value&&new Le().removeCallback(ae.value),se.value&&new $().removeCallback(se.value),ce.value?.unobserve(H.value))}function ve(){return z.value?.length?z.value.at(0)??``:``}function W(e){let t=[];e&&t.push(e),k.value&&O.value?.length&&t.push(k.value),D.value=t.join(` `)}function ye(){return o.selectAllLabel??`LABEL SHOULD BE SET`}function G(e){return e.label??e.value?.toString()??``}function be(e){return e&&z.value?.includes?z.value?.includes(e):!1}function xe(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`${ne} ${G(e)}`}function Se(e,t){t&&t.stopPropagation(),De(e.value),Q()}function Ce(){if(H.value){let e=H.value.querySelector(`article`);e&&l(()=>{Be(e,H.value,o.placement??`bottom`)},1)}}function we(e){if(H.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||X(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=H.value.querySelector(`input[type="checkbox"]`);if(e&&e!==t)X(t);else{let e=v(H.value);if(e)l(()=>{e.focus()},100);else{let e=Array.from(H.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`)?(q(void 0,!0),Q()):X(t)}}else (e.key===`ArrowDown`||e.key===`ArrowRight`)&&(Ce(),H.value&&(H.value.open=!0),Ae());e.stopPropagation(),e.preventDefault()}function Te(e){if(e.stopPropagation(),e.key===`Escape`&&H.value?.open)q(void 0,!0),Q();else if(e.key===`Enter`&&H.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=B.value?.find(e=>!e.isGroupTitle&&!e.disabled);t?.value&&(De(t.value),e.preventDefault())}}}else (e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&we(e)}function q(e,t){if(H.value){if(t)H.value.open=!1,Q();else if(H.value.open&&e&&e.relatedTarget){let t=e.relatedTarget;!H.value.contains(t)&&t.localName!==`dialog`&&l(()=>H.value.open=!1,1)}}}function Ee(e){if(e){let t=e.target;H.value?.open&&!H.value.contains(t)&&(H.value.open=!1)}}function J(e){new Date().getTime()-oe.value<200||(z.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),Y(a,{target:{values:e}},`values`),oe.value=new Date().getTime())}function De(e){e&&(o.multiple?z.value?.includes(e)?J(z.value.filter(t=>t!==e)):J([...z.value||[],e]):(J([e]),q(void 0,!0)))}function ke(e){if(e.stopPropagation(),z.value?.length===R.value)J([]);else{let e=te.value&&pe.value?pe.value.value:void 0;J(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function X(e){if(H.value){let t=Array.from(H.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 Ae(){if(H.value){let e=v(H.value);e?l(()=>{e.focus()},1):X()}}function je(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,le.value=t}!o.options||!t||t.length===0?B.value=o.options:o.searchFilter?B.value=o.options.filter(e=>o.searchFilter(e,t)):B.value=o.options.filter(e=>!e.isGroupTitle&&G(e).toLowerCase().includes(t.toLowerCase()))}function Me(e){e.stopPropagation(),J([]),Q()}function Q(){H.value&&H.value.querySelector(`summary`)?.focus()}function Ne(){let e=o.id??o.propOverrides?.id??`custom-select-${r}`;c.value=e,f.value=e+P,p.value=e+F,m.value=e+I,y.value=e+N,b.value=e+ee,x.value=e+`-summary`,S.value=e+L,k.value=e+`-selected-labels`,C.value=e+`-info`}function Pe(e){e.stopPropagation()}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:c.value,ref_key:`_ref`,ref:de,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),"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)},[(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:U,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=>Pe(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)(G(e)),9,ht))),128)):(0,t.createCommentVNode)(``,!0)],40,mt)],8,pt),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:H,open:e.open,onToggle:r[2]||=async e=>_e(e),onKeydown:r[3]||=async e=>Te(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),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`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,yt,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,vt)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(dt,{key:n,emphasis:`strong`,behavior:`removable`,removeButton:xe(e),onRemove:t=>Se(e,t)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(G(e)),1)]),_:2},1032,[`removeButton`,`onRemove`]))),128))])):(0,t.createCommentVNode)(``,!0)],8,_t),(0,t.createVNode)(qe,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[te.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xt,[(0,t.createVNode)(st,{type:`search`,ref_key:`searchInputRef`,ref:pe,name:c.value,form:c.value,showLabel:!1,value:le.value,label:e.searchLabel??(0,t.unref)(`LABEL SHOULD BE SET`),placeholder:e.searchPlaceholder??e.searchLabel,ariaDescribedBy:ie.value||e.showLoading?C.value:void 0,onInput:e=>je(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),ie.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(Z,{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`,St,[(0,t.createElementVNode)(`div`,Ct,[(0,t.createElementVNode)(`label`,null,[(0,t.createElementVNode)(`input`,{type:`checkbox`,value:`select-all`,ref_key:`selectAllRef`,ref:fe,form:c.value,checked:ue.value,onChange:r[1]||=async e=>ke(e)},null,40,wt),(0,t.createTextVNode)((0,t.toDisplayString)(ye()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(et,{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)(B.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Qe,{key:r,type:e.multiple?`checkbox`:`radio`,showDivider:n.showDivider,icon:n.icon,isGroupTitle:n.isGroupTitle,groupTitle:G(n),name:c.value,checked:be(n.value),disabled:n.disabled,value:n.value,onChange:e=>De(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)(G(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=>q(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,gt),(e.showClearSelection??!0)&&z.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=>Me(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)(lt,{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":(0,t.unref)(u)(!0),id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,Tt),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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),he()?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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`,Et,(0,t.toDisplayString)(A.value),1)],10,ft))}}),Ot=[`fixed`,`auto`,`full`],kt=[`id`],At=(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,kt))}}),jt=[`checkbox`,`radio`],Mt=[`amount`,`text`,`tag`],Nt=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],Pt=(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,Nt))}}),Ft=[`none`,`_`],It=[`horizontal`,`vertical`],Lt=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],Rt=[`data-spacing`,`data-width`,`data-direction`,`data-rounded`],zt={class:`db-drawer-header`},Bt={class:`db-drawer-header-text`},Vt={class:`db-drawer-content`},Ht=(0,t.defineComponent)({name:`DBDrawer`,__name:`drawer`,props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},position:{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:{},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null),o=(0,t.ref)(null);(0,t.onMounted)(()=>{c(),r.value=!0}),(0,t.watch)(()=>[n.open],()=>{c()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.value,r.value,n.position],()=>{if(a.value&&r.value&&n.position===`absolute`){let e=a.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function s(e,t){e&&(b(e)?e.key===`Escape`&&(e.preventDefault(),n.onClose&&n.onClose(e)):(t&&(e.stopPropagation(),n.onClose&&n.onClose(e)),e.target?.nodeName===`DIALOG`&&e.type===`click`&&n.backdrop!==`none`&&n.onClose&&n.onClose(e)))}function c(){if(a.value){let e=!!n.open;e&&!a.value.open&&(o.value&&o.value.removeAttribute(`data-transition`),n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`?a.value.show():a.value.showModal(),l(()=>{o.value&&(o.value.dataset.transition=`open`)},1)),!e&&a.value.open&&(o.value&&(o.value.dataset.transition=`close`),l(()=>{a.value?.close()},401))}}return(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:a,onClick:c[0]||=async e=>s(e),onKeydown:c[1]||=async e=>s(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:o,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-spacing":e.spacing,"data-width":e.width,"data-direction":e.direction,"data-rounded":(0,t.unref)(u)(e.rounded)},[(0,t.createElementVNode)(`header`,zt,[(0,t.createElementVNode)(`div`,Bt,[(0,t.renderSlot)(r.$slots,`drawer-header`)]),(0,t.createVNode)(K,{class:`button-close-drawer`,icon:`cross`,variant:`ghost`,id:e.closeButtonId,noText:!0,onClick:e=>s(e,!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`id`,`onClick`])]),(0,t.createElementVNode)(`div`,Vt,[(0,t.renderSlot)(r.$slots,`default`)])],10,Rt)],40,Lt))}}),Ut=[`none`,`strong`,`weak`,`invisible`],Wt=[`left`,`right`,`up`,`down`],Gt=[`modal`,`inside`],Kt=[`fixed`,`absolute`],qt=e=>{let{target:t}=e;return!!(!t?.classList?.contains(`db-navigation-item-expand-button`)&&t?.parentElement?.classList.contains(`db-navigation-item`))},Jt=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=ze(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))}},Yt=[`id`,`data-width`,`data-on-forcing-mobile`],Xt={class:`db-header-drawer-navigation`},Zt={class:`db-header-meta-navigation`},Qt={class:`db-header-secondary-action`},$t={class:`db-header-meta-navigation`},en={class:`db-header-navigation-bar`},tn={class:`db-header-brand-container`},nn={class:`db-header-navigation-container`},rn={class:`db-header-navigation`},an={class:`db-header-primary-action`},on={class:`db-header-action-container`},sn={class:`db-header-burger-menu-container`},cn={class:`db-header-secondary-action`},ln=(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},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){qt(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.createVNode)(Ht,{class:`db-header-drawer`,spacing:`small`,rounded:!0,closeButtonId:e.closeButtonId,closeButtonText:e.closeButtonText,open:(0,t.unref)(d)(e.drawerOpen),onClose:e=>c()},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Xt,[(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`,Zt,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])]),(0,t.createElementVNode)(`div`,Qt,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3},8,[`closeButtonId`,`closeButtonText`,`open`,`onClose`]),(0,t.createElementVNode)(`div`,$t,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,en,[(0,t.createElementVNode)(`div`,tn,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,nn,[(0,t.createElementVNode)(`div`,rn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,an,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,on,[(0,t.createElementVNode)(`div`,sn,[(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)(`BurgerMenu`)),1)]),_:1},8,[`onClick`])]),(0,t.createElementVNode)(`div`,cn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])])],10,Yt))}}),un=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],dn=(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.renderSlot)(a.$slots,`default`,{key:1})],10,un))}}),fn=[`16`,`20`,`24`,`32`,`48`,`64`],pn=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],mn=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],hn=(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),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(u)(e.showIcon??!0),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(u)(e.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.renderSlot)(o.$slots,`default`,{key:1})],10,mn))}}),gn=[`adaptive`,`brand`,`inline`],_n=[`medium`,`small`],vn=[`external`,`internal`],yn=[`id`],bn=(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,yn))}}),xn=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],Sn=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],Cn=[`id`,`aria-labelledby`,`data-force-close`],wn={key:0,class:`db-mobile-navigation-back`},Tn=(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},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 Jt(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),"data-active":e.active,"data-wrap":(0,t.unref)(u)(e.wrap),"aria-disabled":(0,t.unref)(u)(e.disabled)},[s.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[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)),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(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,Sn),(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`,wn,[(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,Cn)],64)):(0,t.createCommentVNode)(``,!0)],42,xn))}}),En=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],Dn={key:0},On={"data-area":`content`},kn={key:1},An=(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},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)(x)({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),"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`,Dn,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,On,[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)(o.$slots,`default`,{key:1})]),(0,t.unref)(_)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kn,(0,t.toDisplayString)(e.timestamp),1)):(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,En))}}),jn=[`docked`,`standalone`,`overlay`],Mn=[`block`,`inline`],Nn=[`assertive`,`polite`,`off`],Pn=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Fn=(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),"data-fonts-loaded":(0,t.unref)(u)(r.value)},[(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,Pn))}}),In=[`auto`,`fixed`],Ln=[`hidden`,`auto`],Rn=[`id`],zn=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],Bn=(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)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.watch)(()=>[c.value,r.value],()=>{if(c.value&&r.value){r.value=!1;let e=g();e&&(e.ariaHasPopup=`true`),f(),c.value.addEventListener(`keydown`,e=>d(e)),[`mouseenter`,`focusin`].forEach(e=>{c.value.addEventListener(e,()=>m())}),[`mouseleave`,`focusout`].forEach(e=>{c.value.addEventListener(e,()=>h())}),typeof window<`u`&&`IntersectionObserver`in window&&(s.value=new IntersectionObserver(e=>{let t=e.find(({target:e})=>e===g());t&&!t.isIntersecting&&d(!1)}))}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=g();e&&(e.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:`post`});function d(e){if(!e||e.key===`Escape`)for(let e of Array.from(c.value.children))e.blur()}function f(){if(!c.value)return;let e=c.value.querySelector(`article`);e&&l(()=>{Ge(e,c.value,n.placement??`bottom`)},1)}function p(e){e?.target?.contains&&e?.target?.contains(c.value)&&f()}function m(){a.value=!0,o.value=new $().addCallback(e=>p(e)),f();let e=g();e&&s.value?.observe(e)}function h(e){let t=e?.target;if(!t?.parentNode||t.parentNode.querySelector(`:focus`)!==t&&t.parentNode.querySelector(`:focus-within`)!==t&&t.parentNode.querySelector(`:hover`)!==t){a.value=!1,o.value&&new $().removeCallback(o.value);let e=g();e&&s.value?.unobserve(e)}}function g(){if(c.value){let e=Array.from(c.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:c,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),"data-animation":(0,t.unref)(u)(e.animation??!0),"data-open":(0,t.unref)(u)(e.open),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,zn)],10,Rn))}}),Vn=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],Hn=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],Un=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),Oe(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),Y(a,e)}function m(e,t){o.onChange&&o.onChange(e),Y(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,Hn),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],10,Vn))}}),Wn=[`id`,`data-spacing`,`data-width`],Gn=(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,Wn))}}),Kn=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],qn=[`for`],Jn=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],Yn=[`data-show-empty-option`],Xn=[`label`],Zn=[`value`,`selected`,`disabled`],Qn=[`value`,`disabled`,`selected`],$n=[`id`],er={"data-visually-hidden":`true`,role:`status`},tr=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P,t=c.value+L;f.value=e,p.value=c.value+F,m.value=c.value+I,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),X(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),Y(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),Y(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+P,p.value=e+F,m.value=e+I,v.value=e+L}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)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,qn),(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())},null,8,Yn)):(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,Zn))),128))],8,Xn)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,Qn))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{key:2})],40,Jn),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:v.value},(0,t.toDisplayString)(e.placeholder),9,$n)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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)(S.value),1)],10,Kn))}}),nr=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],rr=(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)},[(0,t.renderSlot)(a.$slots,`default`)],10,nr))}}),ir=[`simple`,`divider`],ar=[`row`,`column`],or=[`stretch`,`start`,`end`,`center`],sr=[`space-between`,`start`,`end`,`center`],cr=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],lr=[`for`],ur=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],dr={"data-visually-hidden":`true`,role:`status`},fr=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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),ke(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(),Y(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}${P}`,p.value=`${e}${F}`,m.value=`${e}${I}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-visual-aid":(0,t.unref)(u)(e.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,ur),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,lr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,dr,(0,t.toDisplayString)(y.value),1)],10,cr))}}),pr=[`for`,`data-icon`,`data-icon-trailing`,`data-show-icon`,`data-show-icon-trailing`,`data-no-text`],mr=[`disabled`,`aria-selected`,`checked`,`name`,`id`],hr=(0,t.defineComponent)({name:`DBTabItem`,__name:`tab-item`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},noText:{type:[Boolean,String],default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},active:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},showIcon:{type:[Boolean,String],default:void 0},name:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=n,a=e,o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(!1),l=(0,t.ref)(!1),f=(0,t.ref)(void 0),p=(0,t.ref)(null);(0,t.onMounted)(()=>{f.value=m,c.value=!0}),(0,t.onUnmounted)(()=>{l.value&&p.value&&f.value&&(p.value.closest(`[role=tablist]`)?.removeEventListener(`change`,f.value),l.value=!1)}),(0,t.watch)(()=>[p.value,c.value,f.value],()=>{p.value&&c.value&&f.value&&(c.value=!1,l.value||=(p.value.closest(`[role=tablist]`)?.addEventListener(`change`,f.value),!0),(a.active||p.value.checked)&&(o.value=!0,p.value.click()))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.name],()=>{a.name&&(s.value=a.name)},{immediate:!0,flush:`post`});function m(e){e.stopPropagation(),o.value=e.target===p.value}function h(e){a.onChange&&a.onChange(e),Y(r,e,`checked`)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{role:`none`,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-item`,a.class))},[(0,t.createElementVNode)(`label`,{for:e.id??e.propOverrides?.id,"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-show-icon":(0,t.unref)(u)(e.showIconLeading??e.showIcon),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing),"data-no-text":(0,t.unref)(u)(e.noText)},[(0,t.createElementVNode)(`input`,{type:`radio`,role:`tab`,disabled:(0,t.unref)(d)(e.disabled,`disabled`),"aria-selected":o.value,checked:(0,t.unref)(d)(e.checked,`checked`),ref_key:`_ref`,ref:p,name:s.value,id:e.id??e.propOverrides?.id,onInput:r[0]||=async e=>h(e)},null,40,mr),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,pr)],2))}}),gr=[`id`],_r={role:`tablist`},vr=(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}},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-tab-list`,n.class))},[(0,t.createElementVNode)(`ul`,_r,[(0,t.renderSlot)(a.$slots,`default`)])],10,gr))}}),yr=[`id`],br=(0,t.defineComponent)({name:`DBTabPanel`,__name:`tab-panel`,props:{content:{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(0,t.onMounted)(()=>{}),(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{role:`tabpanel`,ref_key:`_ref`,ref:r,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tab-panel`,n.class)),id:e.id??e.propOverrides?.id},[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,yr))}}),xr=[`id`,`data-orientation`,`data-scroll-behavior`,`data-alignment`,`data-width`],Sr=(0,t.defineComponent)({name:`DBTabs`,__name:`tabs`,props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},tabs:{default:void 0},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},width:{default:void 0},alignment:{default:void 0},indexChange:{},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabSelect:{}},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)(!1),l=(0,t.ref)(null),u=(0,t.ref)(void 0),d=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=`tabs-${r.name||n}`,o.value=!0}),(0,t.onUnmounted)(()=>{u.value?.disconnect(),u.value=void 0}),(0,t.watch)(()=>[d.value,o.value],()=>{if(d.value&&o.value){h(),g(!0);let e=d.value.querySelector(`.db-tab-list`);e&&new MutationObserver(e=>{e.forEach(e=>{(e.removedNodes.length||e.addedNodes.length)&&(h(),g())})}).observe(e,{childList:!0,subtree:!0}),o.value=!1}},{immediate:!0,flush:`post`});function f(){try{return typeof r.tabs==`string`?JSON.parse(r.tabs):r.tabs}catch(e){console.error(e)}return[]}function p(e){let t=e.scrollWidth>e.clientWidth;s.value=t&&e.scrollLeft>1,c.value=t&&e.scrollLeft<e.scrollWidth-e.clientWidth}function m(e){let t=Number(r.arrowScrollDistance)||100;e&&(t*=-1),l.value?.scrollBy({top:0,left:t,behavior:`smooth`})}function h(){if(d.value){let e=d.value.querySelector(`.db-tab-list`);if(e){let t=e.querySelector(`[role="tablist"]`);if(t&&(t.setAttribute(`aria-orientation`,r.orientation||`horizontal`),r.behavior===`arrows`&&(l.value=t,p(t),t.addEventListener(`scroll`,()=>{p(t)}),!u.value))){let e=new ResizeObserver(()=>{p(t)});e.observe(t),u.value=e}}}}function g(e){if(d.value){let t=Array.from(d.value.getElementsByClassName(`db-tab-item`)),n=Array.from(d.value.querySelectorAll(`:is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)`));for(let i of t){let o=t.indexOf(i),s=i.querySelector(`label`),c=i.querySelector(`input`);if(c&&s){if(!c.id){let e=`${a.value}-tab-${o}`;s.setAttribute(`for`,e),c.id=e,c.setAttribute(`name`,a.value),n.length>o&&c.setAttribute(`aria-controls`,`${a.value}-tab-panel-${o}`)}if(e){let e=!r.initialSelectedMode||r.initialSelectedMode===`auto`,t=r.initialSelectedIndex==null&&o===0||Number(r.initialSelectedIndex)===o;e&&t&&c.click()}}}for(let e of n){if(e.id)continue;let t=n.indexOf(e);e.id=`${a.value}-tab-panel-${t}`,e.setAttribute(`aria-labelledby`,`${a.value}-tab-${t}`)}}}function _(e){if(e.stopPropagation(),e.target){let t=e.target.parentElement;if(t&&t.parentElement&&t.parentElement?.nodeName===`LI`){let n=t.parentElement;if(n){let t=n.parentElement;if(t){let i=Array.from(t.children).indexOf(n);r.onIndexChange&&r.onIndexChange(i),r.onTabSelect&&r.onTabSelect(e)}}}}}return(n,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-tabs`,r.class)),"data-orientation":e.orientation,"data-scroll-behavior":e.behavior,"data-alignment":e.alignment??`start`,"data-width":e.width??`auto`,onInput:a[0]||=async e=>_(e),onChange:a[1]||=async e=>_(e)},[s.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:0,class:`tabs-scroll-left`,variant:`ghost`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>m(!0)},{default:(0,t.withCtx)(()=>[...a[2]||=[(0,t.createTextVNode)(` Scroll left `,-1)]]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),e.tabs?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(vr,null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(hr,{key:e.name+`tab-item`+r,active:n.active,label:n.label,iconTrailing:n.iconTrailing,icon:n.icon,noText:n.noText},null,8,[`active`,`label`,`iconTrailing`,`icon`,`noText`]))),128))]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f(),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(br,{key:e.name+`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.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(K,{key:2,class:`tabs-scroll-right`,variant:`ghost`,icon:`chevron_right`,type:`button`,noText:!0,onClick:e=>m()},{default:(0,t.withCtx)(()=>[...a[3]||=[(0,t.createTextVNode)(` Scroll right `,-1)]]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],42,xr))}}),Cr=[`scrollbar`,`arrows`],wr=[`auto`,`manually`],Tr=[`static`,`removable`],Er=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],Dr=[`for`],Or=[`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`],kr={"data-visually-hidden":`true`,role:`status`},Ar=(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},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{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+P;u.value=e,p.value=c.value+F,m.value=c.value+I,_(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),X(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),Y(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),Y(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+P,p.value=e+F,m.value=e+I}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,Dr),(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`),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,Or),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Z,{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)(Z,{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)(Z,{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`,kr,(0,t.toDisplayString)(b.value),1)],10,Er))}}),jr=[`none`,`both`,`horizontal`,`vertical`],Mr=[`hard`,`soft`,`off`],Nr=[`description`,`label`],Pr=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],Fr=[`medium`,`small`,`large`,`none`],Ir=[`medium`,`small`,`large`,`none`],Lr=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],Rr=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],zr=[...Lr,...Rr],Br=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],Vr=[`horizontal`,`vertical`],Hr=[`full`,`auto`],Ur=[`full`,`medium`,`large`,`small`],Wr=[`none`,`slow`,`fast`],Gr=[`auto`,`fixed`],Kr=[`small`,`medium`],qr=[`weak`,`strong`],Jr=[`invalid`,`valid`,`no-validation`],Yr=[`fixed`,`content`],Xr=[`above`,`floating`],Zr=[`leading`,`trailing`],Qr=`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=O,e.AccordionVariantList=D,e.AlignmentList=[`start`,`center`],e.AutoCompleteList=Qr,e.BadgePlacementList=be,e.ButtonTypeList=Te,e.ButtonVariantList=we,e.COLOR=H,e.COLORS=U,e.COLORS_SIMPLE=fe,e.COLOR_CONST=le,e.COLOR_SIMPLE=de,e.CardBehaviorList=J,e.CardElevationLevelList=De,e.CustomSelectDropdownWidthList=Ot,e.CustomSelectListItemTypeList=jt,e.DBAccordion=E,e.DBAccordionItem=w,e.DBBadge=G,e.DBBrand=Se,e.DBButton=K,e.DBCard=Ee,e.DBCheckbox=Pe,e.DBCustomButton=Ie,e.DBCustomSelect=Dt,e.DBCustomSelectDropdown=qe,e.DBCustomSelectFormField=At,e.DBCustomSelectList=et,e.DBCustomSelectListItem=Qe,e.DBDivider=Pt,e.DBDrawer=Ht,e.DBHeader=ln,e.DBIcon=dn,e.DBInfotext=Z,e.DBInput=st,e.DBLink=hn,e.DBNavigation=bn,e.DBNavigationItem=Tn,e.DBNotification=An,e.DBPage=Fn,e.DBPopover=Bn,e.DBRadio=Un,e.DBSection=Gn,e.DBSelect=tr,e.DBStack=rr,e.DBSwitch=fr,e.DBTabItem=hr,e.DBTabList=vr,e.DBTabPanel=br,e.DBTabs=Sr,e.DBTag=dt,e.DBTextarea=Ar,e.DBTooltip=lt,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=ve,e.DB_UX_LOCAL_STORAGE_MODE=W,e.DEFAULT_BACK=B,e.DEFAULT_BURGER_MENU=ie,e.DEFAULT_CLOSE_BUTTON=se,e.DEFAULT_DATALIST_ID_SUFFIX=te,e.DEFAULT_ICON=ae,e.DEFAULT_ID=k,e.DEFAULT_INVALID_MESSAGE=z,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=I,e.DEFAULT_LABEL=A,e.DEFAULT_LABEL_ID_SUFFIX=ee,e.DEFAULT_MESSAGE=M,e.DEFAULT_MESSAGE_ID_SUFFIX=P,e.DEFAULT_PLACEHOLDER=j,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=L,e.DEFAULT_REMOVE=ne,e.DEFAULT_ROWS=oe,e.DEFAULT_SELECTED=re,e.DEFAULT_SELECT_ID_SUFFIX=N,e.DEFAULT_VALID_MESSAGE=R,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=F,e.DEFAULT_VIEWPORT=he,e.DENSITIES=V,e.DENSITY=ue,e.DENSITY_CONST=ce,e.DESKTOP_VIEWPORT=ge,e.DividerMarginList=Ft,e.DividerVariantList=It,e.DocumentClickListener=Le,e.DocumentScrollListener=$,e.DrawerBackdropList=Ut,e.DrawerDirectionList=Wt,e.DrawerPositionList=Kt,e.DrawerVariantList=Gt,e.EmphasisList=qr,e.FieldSizingList=Yr,e.GapSpacingList=Br,e.IconWeightList=fn,e.InputTypeList=pn,e.LabelVariantHorizontalList=Zr,e.LabelVariantList=Xr,e.LinkContentList=vn,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=_n,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=gn,e.MarginList=Ir,e.MaxWidthList=Ur,e.NavigationItemSafeTriangle=Jt,e.NotificationAriaLiveList=Nn,e.NotificationLinkVariantList=Mn,e.NotificationVariantList=jn,e.OrientationList=Vr,e.PageDocumentOverflowList=Ln,e.PageVariantList=In,e.PlacementHorizontalList=Lr,e.PlacementList=zr,e.PlacementVerticalList=Rr,e.PopoverDelayList=Wr,e.PopoverWidthList=Gr,e.SEMANTIC=pe,e.SEMANTICS=me,e.SelectedTypeList=Mt,e.SemanticList=Pr,e.SizeList=Kr,e.SpacingList=Fr,e.StackAlignmentList=or,e.StackDirectionList=ar,e.StackJustifyContentList=sr,e.StackVariantList=ir,e.TESTING_VIEWPORTS=_e,e.TabsBehaviorList=Cr,e.TabsInitialSelectedModeList=wr,e.TagBehaviorList=Tr,e.TextareaResizeList=jr,e.TextareaWrapList=Mr,e.TooltipVariantList=Nr,e.ValidationList=Jr,e.WidthList=Hr,e.addAttributeToChildren=r,e.cls=i,e.delay=l,e.getBoolean=d,e.getBooleanAsString=u,e.getFloatingProps=Ve,e.getHideProp=g,e.getInputValue=m,e.getNotificationRole=x,e.getNumber=f,e.getOptionKey=y,e.getSearchInput=v,e.getStep=p,e.handleDataOutside=ze,e.handleFixedDropdown=Be,e.handleFixedPopover=Ge,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=qt,e.isIOSSafari=c,e.isKeyboardEvent=b,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": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"replace-in-file": "8.4.0",
|
|
46
46
|
"tsx": "4.21.0",
|
|
47
47
|
"typescript": "5.9.3",
|
|
48
|
-
"vite": "8.0.
|
|
49
|
-
"vue": "3.5.
|
|
50
|
-
"vue-tsc": "3.2.
|
|
48
|
+
"vite": "8.0.10",
|
|
49
|
+
"vue": "3.5.33",
|
|
50
|
+
"vue-tsc": "3.2.7"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"sideEffects": false,
|
|
57
57
|
"source": "src/index.ts",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@db-ux/core-components": "4.
|
|
60
|
-
"@db-ux/core-foundations": "4.
|
|
59
|
+
"@db-ux/core-components": "4.7.0",
|
|
60
|
+
"@db-ux/core-foundations": "4.7.0"
|
|
61
61
|
}
|
|
62
62
|
}
|