@db-ux/v-core-components 4.5.4-tailwind-inline-5d37a00 → 4.6.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @db-ux/v-core-components
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- refactor: exclude whitelabel-theme from default bundle to reduce size and to align with "how to import a theme" - [see commit f272967](https://github.com/db-ux-design-system/core-web/commit/f272967acb7a37dc9b07d9786134e437b284e9b6)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- fix: issue with tailwind duplicating some classes by using `@theme` inline - [see commit 92de4e6](https://github.com/db-ux-design-system/core-web/commit/92de4e6e5fdad3be5629d7457944d3b9b7396cf4)
|
|
12
|
+
|
|
13
|
+
- docs(vite): mentioning version 8 configuration in `README.md` file - [see commit 4c5fc92](https://github.com/db-ux-design-system/core-web/commit/4c5fc9266402d9585087f4738a1a800cff1515f1)
|
|
14
|
+
|
|
15
|
+
- fix(number input): prevent from clearing on intermediate decimal entry - [see commit aa85967](https://github.com/db-ux-design-system/core-web/commit/aa85967ffeaa685f6b647069d0e1d415d812dc87):
|
|
16
|
+
- fix(input,textarea): allow using `undefined` as `value`
|
|
17
|
+
|
|
3
18
|
## 4.5.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/db-ux.es.js
CHANGED
|
@@ -1262,7 +1262,7 @@ var b = () => {
|
|
|
1262
1262
|
immediate: !0,
|
|
1263
1263
|
flush: "post"
|
|
1264
1264
|
}), v(() => [N.value], () => {
|
|
1265
|
-
|
|
1265
|
+
ee.value = N.value;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
immediate: !0,
|
|
1268
1268
|
flush: "post"
|
|
@@ -1335,7 +1335,7 @@ var b = () => {
|
|
|
1335
1335
|
disabled: g(k)(s.disabled, "disabled"),
|
|
1336
1336
|
required: g(k)(s.required, "required"),
|
|
1337
1337
|
step: g(j)(s.step),
|
|
1338
|
-
value: s.value ?? ee.value,
|
|
1338
|
+
value: s.value ?? ee.value ?? "",
|
|
1339
1339
|
maxLength: g(A)(s.maxLength, s.maxlength),
|
|
1340
1340
|
minLength: g(A)(s.minLength, s.minlength),
|
|
1341
1341
|
max: g(M)(s.max, s.type),
|
|
@@ -3605,7 +3605,7 @@ var b = () => {
|
|
|
3605
3605
|
id: E.value,
|
|
3606
3606
|
name: s.name,
|
|
3607
3607
|
size: s.size,
|
|
3608
|
-
value: s.value ?? R.value,
|
|
3608
|
+
value: s.value ?? R.value ?? "",
|
|
3609
3609
|
autocomplete: s.autocomplete,
|
|
3610
3610
|
multiple: s.multiple,
|
|
3611
3611
|
onInput: u[0] ||= async (e) => W(e),
|
|
@@ -4454,7 +4454,7 @@ var b = () => {
|
|
|
4454
4454
|
immediate: !0,
|
|
4455
4455
|
flush: "post"
|
|
4456
4456
|
}), v(() => [b.value], () => {
|
|
4457
|
-
|
|
4457
|
+
M.value = b.value;
|
|
4458
4458
|
}, {
|
|
4459
4459
|
immediate: !0,
|
|
4460
4460
|
flush: "post"
|
|
@@ -4524,7 +4524,7 @@ var b = () => {
|
|
|
4524
4524
|
onChange: l[1] ||= async (e) => V(e),
|
|
4525
4525
|
onBlur: l[2] ||= async (e) => H(e),
|
|
4526
4526
|
onFocus: l[3] ||= async (e) => ee(e),
|
|
4527
|
-
value: e.value ?? M.value,
|
|
4527
|
+
value: e.value ?? M.value ?? "",
|
|
4528
4528
|
"aria-describedby": e.ariaDescribedBy ?? j.value,
|
|
4529
4529
|
placeholder: e.placeholder ?? g(" "),
|
|
4530
4530
|
rows: g(A)(e.rows, g(4)),
|
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],()=>{h.value!==void 0&&(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],()=>{o.value!==void 0&&(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={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,4 +1,4 @@
|
|
|
1
|
-
export declare const handleFrameworkEventAngular: (component: any, event: any, modelValue?: string) => void;
|
|
1
|
+
export declare const handleFrameworkEventAngular: (component: any, event: any, modelValue?: string, lastValue?: any) => void;
|
|
2
2
|
export declare const handleFrameworkEventVue: (emit: (event: string, ...args: any[]) => void, event: any, modelValue?: string) => void;
|
|
3
3
|
export declare const addResetEventListener: (element: any, resetFunction: (event: Event) => void, signal: AbortSignal) => void;
|
|
4
4
|
export declare const addCheckedResetEventListener: (element: any, props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"test:components:ui": "playwright test --config playwright.config.ts --ui"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@playwright/experimental-ct-vue": "1.
|
|
43
|
+
"@playwright/experimental-ct-vue": "1.59.1",
|
|
44
44
|
"@vitejs/plugin-vue": "6.0.5",
|
|
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.31",
|
|
48
|
+
"vite": "8.0.6",
|
|
49
|
+
"vue": "^3.5.31",
|
|
50
50
|
"vue-tsc": "^3.2.6"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
@@ -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.6.0",
|
|
60
|
+
"@db-ux/core-foundations": "4.6.0"
|
|
61
61
|
}
|
|
62
62
|
}
|