@db-ux/v-core-components 4.13.1-angular-signal-forms12-ac097f6 → 4.14.0-shell-52d18db
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 +14 -0
- package/agent/ControlPanelBrand.md +15 -0
- package/agent/ControlPanelDesktop.md +48 -0
- package/agent/ControlPanelMeta.md +19 -0
- package/agent/ControlPanelMobile.md +40 -0
- package/agent/ControlPanelNavigation.md +24 -0
- package/agent/ControlPanelNavigationItem.md +39 -0
- package/agent/ControlPanelPrimaryActions.md +20 -0
- package/agent/ControlPanelSecondaryActions.md +24 -0
- package/agent/Drawer.md +0 -8
- package/agent/Shell.md +28 -0
- package/agent/ShellSubNavigation.md +6 -0
- package/agent/_instructions.md +11 -1
- package/dist/components/accordion/accordion.vue.d.ts +1 -1
- package/dist/components/accordion/model.d.ts +2 -8
- package/dist/components/control-panel-brand/control-panel-brand.vue.d.ts +18 -0
- package/dist/components/control-panel-brand/index.d.ts +1 -0
- package/dist/components/control-panel-brand/model.d.ts +5 -0
- package/dist/components/control-panel-desktop/control-panel-desktop.vue.d.ts +34 -0
- package/dist/components/control-panel-desktop/index.d.ts +1 -0
- package/dist/components/control-panel-desktop/model.d.ts +5 -0
- package/dist/components/control-panel-flat-icon/control-panel-flat-icon.vue.d.ts +22 -0
- package/dist/components/control-panel-flat-icon/index.d.ts +1 -0
- package/dist/components/control-panel-flat-icon/model.d.ts +12 -0
- package/dist/components/control-panel-meta/control-panel-meta.vue.d.ts +18 -0
- package/dist/components/control-panel-meta/index.d.ts +1 -0
- package/dist/components/control-panel-meta/model.d.ts +5 -0
- package/dist/components/control-panel-mobile/control-panel-mobile.vue.d.ts +33 -0
- package/dist/components/control-panel-mobile/index.d.ts +1 -0
- package/dist/components/control-panel-mobile/model.d.ts +21 -0
- package/dist/components/control-panel-navigation/control-panel-navigation.vue.d.ts +25 -0
- package/dist/components/control-panel-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-navigation/model.d.ts +25 -0
- package/dist/components/control-panel-navigation-item/control-panel-navigation-item.vue.d.ts +27 -0
- package/dist/components/control-panel-navigation-item/index.d.ts +1 -0
- package/dist/components/control-panel-navigation-item/model.d.ts +20 -0
- package/dist/components/control-panel-navigation-item-group/control-panel-navigation-item-group.vue.d.ts +32 -0
- package/dist/components/control-panel-navigation-item-group/index.d.ts +1 -0
- package/dist/components/control-panel-navigation-item-group/model.d.ts +44 -0
- package/dist/components/control-panel-primary-actions/control-panel-primary-actions.vue.d.ts +18 -0
- package/dist/components/control-panel-primary-actions/index.d.ts +1 -0
- package/dist/components/control-panel-primary-actions/model.d.ts +5 -0
- package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.vue.d.ts +18 -0
- package/dist/components/control-panel-secondary-actions/index.d.ts +1 -0
- package/dist/components/control-panel-secondary-actions/model.d.ts +5 -0
- package/dist/components/control-panel-skip-navigation/control-panel-skip-navigation.vue.d.ts +21 -0
- package/dist/components/control-panel-skip-navigation/index.d.ts +1 -0
- package/dist/components/control-panel-skip-navigation/model.d.ts +16 -0
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +5 -1
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +7 -7
- package/dist/components/drawer/model.d.ts +20 -5
- package/dist/components/drawer-footer/drawer-footer.vue.d.ts +18 -0
- package/dist/components/drawer-footer/index.d.ts +1 -0
- package/dist/components/drawer-footer/model.d.ts +5 -0
- package/dist/components/drawer-header/drawer-header.vue.d.ts +26 -0
- package/dist/components/drawer-header/index.d.ts +1 -0
- package/dist/components/drawer-header/model.d.ts +9 -0
- package/dist/components/header/header.vue.d.ts +4 -3
- package/dist/components/header/model.d.ts +5 -1
- package/dist/components/input/input.vue.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.vue.d.ts +2 -2
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/model.d.ts +34 -0
- package/dist/components/shell/shell.vue.d.ts +25 -0
- package/dist/components/shell-content/index.d.ts +1 -0
- package/dist/components/shell-content/model.d.ts +28 -0
- package/dist/components/shell-content/shell-content.vue.d.ts +27 -0
- package/dist/components/shell-sub-navigation/index.d.ts +1 -0
- package/dist/components/shell-sub-navigation/model.d.ts +5 -0
- package/dist/components/shell-sub-navigation/shell-sub-navigation.vue.d.ts +22 -0
- package/dist/components/tabs/model.d.ts +4 -12
- package/dist/components/tabs/tabs.vue.d.ts +4 -2
- package/dist/db-ux.es.js +2484 -1235
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/shared/constants.d.ts +7 -1
- package/dist/shared/model.d.ts +109 -7
- package/dist/utils/abstract-document-listener.d.ts +18 -0
- package/dist/utils/abstract-observer-listener.d.ts +39 -0
- package/dist/utils/document-click-listener.d.ts +3 -3
- package/dist/utils/document-scroll-listener.d.ts +3 -3
- package/dist/utils/floating-components.d.ts +29 -6
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/intersection-observer-listener.d.ts +15 -0
- package/dist/utils/navigation.d.ts +22 -11
- package/dist/utils/resize-observer-listener.d.ts +15 -0
- package/package.json +4 -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,t)=>{if(e!=null)return String(typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():e)},d=(e,t)=>{if(e!=null)return typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():!!e},f=(e,t)=>{if(!(e==null&&t==null))return Number(e??t)},p=e=>{if(e!=null)return e===`any`?`any`:Number(e)},m=(e,t)=>t&&[`number`,`range`].includes(t)?f(e):e,h=e=>typeof e==`string`?e!==`false`:e,g=e=>{if(e!=null)return u(!h(e),`show`)},_=(e,t)=>(t===void 0||h(t))&&!!e,v=e=>e.querySelector(`input[type="search"]`),y=new WeakMap,b=(e,t)=>{if(e.id)return`${t}${e.id}`;let r=e.value!==void 0&&e.value!==``?String(e.value):``,i=e.label??``;if(r||i)return`${t}${r.length}:${r}.${i}`;let a=y.get(e);return a||(a=n(),y.set(e,a)),`${t}${a}`},x=e=>e.key!==void 0,S=({semantic:e,role:t,ariaLive:n})=>{if(t)return t;if(n)return`article`;switch(e){case`critical`:case`warning`:return`alert`;case`informational`:case`successful`:return`status`;default:return`article`}},C=[`id`],w=[`aria-disabled`,`name`,`open`],T=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,default:void 0},open:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{n.defaultOpen&&(r.value=n.defaultOpen),o.value=!0}),(0,t.watch)(()=>[s.value,o.value],()=>{s.value&&o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.name],()=>{n.name&&(a.value=n.name)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.open],()=>{let e=d(n.open,`open`);e!==void 0&&(r.value=e)},{immediate:!0,flush:`post`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),n.open===void 0&&(r.value=t)}return(o,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion-item`,n.class))},[(0,t.createElementVNode)(`details`,{"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),ref_key:`_ref`,ref:s,name:a.value,open:r.value},[(0,t.createElementVNode)(`summary`,{onClick:l[0]||=async e=>c(e)},[e.headlinePlain?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.headlinePlain),1)],64)):(0,t.createCommentVNode)(``,!0),e.headlinePlain?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(o.$slots,`headline`,{key:1})]),(0,t.createElementVNode)(`div`,null,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)])],8,w)],10,C))}}),E=[`id`,`data-variant`],D=(0,t.defineComponent)({name:`DBAccordion`,__name:`accordion`,props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(``),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(null);(0,t.onMounted)(()=>{o.value=!0,s.value=!0}),(0,t.watch)(()=>[o.value,r.name,r.behavior],()=>{o.value&&c.value&&(r.behavior===`single`?r.name?a.value!==r.name&&(a.value=r.name):a.value=`accordion-${n}`:a.value=``)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=c.value.getElementsByTagName(`details`);if(e)for(let t of Array.from(e))a.value===``?t.removeAttribute(`name`):t.name=a.value??``}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,s.value,r.initOpenIndex],()=>{if(c.value&&s.value){if(r.initOpenIndex&&r.initOpenIndex.length>0){let e=c.value.getElementsByTagName(`details`);if(e){let t=r.behavior===`single`&&r.initOpenIndex.length>1?[r.initOpenIndex[0]]:r.initOpenIndex;Array.from(e).forEach((e,n)=>{t?.includes(n)&&(e.open=!0)})}}s.value=!1}},{immediate:!0,flush:`post`});function l(){try{return typeof r.items==`string`?JSON.parse(r.items):r.items}catch(e){console.error(e)}return[]}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{ref_key:`_ref`,ref:c,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion`,r.class)),"data-variant":e.variant},[e.items?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0}),e.items?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l(),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(T,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,E))}}),O=[`divider`,`card`],k=[`multiple`,`single`],A=`OVERWRITE_DEFAULT_ID`,j=`LABEL SHOULD BE SET`,M=` `,N=`MESSAGE SHOULD BE SET`,ee=`-label`,te=`-select`,P=`-message`,F=`-valid-message`,I=`-invalid-message`,L=`-placeholder`,R=`-datalist`,z=`TODO: Add a validMessage`,B=`TODO: Add an invalidMessage`,ne=`Remove`,re=`Back`,ie=`Selected`,ae=`BurgerMenu`,oe=`brand`,se=4,ce=`Close`,le=`density`,ue=`color`,V=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),de=Object.entries(V).map(([,e])=>e),H=function(e){return e.PRIMARY=`primary`,e}({}),U=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}({}),fe=Object.entries(U).map(([,e])=>e),pe=Object.entries(H).map(([,e])=>e),me=function(e){return e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),he=Object.entries(me).map(([,e])=>e),ge={width:390,height:884},_e={width:1920,height:1280},ve=[{name:`desktop`,..._e},{name:`tablet`,width:768,height:1024},{name:`mobile`,...ge}],W=`db-ux-framework`,ye=`db-ux-mode`,G=[`id`,`data-semantic`,`data-size`,`data-emphasis`,`data-placement`,`data-wrap`,`data-label`],be=(0,t.defineComponent)({name:`DBBadge`,__name:`badge`,props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return(0,t.onMounted)(()=>{r.value=!0}),(0,t.watch)(()=>[a.value,r.value],()=>{if(a.value&&r.value&&n.placement?.startsWith(`corner`)){let e=a.value.parentElement;e&&e.localName.includes(`badge`)&&(e=e.parentElement),e&&(e.dataset.hasBadge=`true`)}},{immediate:!0,flush:`post`}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-badge`,n.class)),"data-semantic":e.semantic,"data-size":e.size,"data-emphasis":e.emphasis,"data-placement":e.placement,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-label":e.placement?.startsWith(`corner`)&&(e.label??(0,t.unref)(`LABEL SHOULD BE SET`))},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],10,G))}}),xe=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],Se=[`data-icon`,`data-show-icon`,`id`],K=(0,t.defineComponent)({name:`DBBrand`,__name:`brand`,props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,"data-icon":e.hideLogo?`none`:e.icon??(0,t.unref)(`brand`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[(0,t.renderSlot)(a.$slots,`default`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0)],10,Se))}}),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`,`command`,`commandfor`],q=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{command:{default:void 0},commandfor:{default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},wrap:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(){return n.type?n.type:n.onClick||n.commandfor?`button`:`submit`}function o(e){n.onClick&&n.onClick(e)}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-button`,n.class)),type:a(),disabled:(0,t.unref)(d)(e.disabled,`disabled`),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),name:e.name,form:e.form,value:e.value,command:e.command,commandfor:e.commandfor,onClick:c[0]||=async e=>o(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`)],10,Ce))}}),we=[`outlined`,`brand`,`filled`,`ghost`],J=[`button`,`reset`,`submit`],Te=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],Y=(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,Te))}}),Ee=[`static`,`interactive`],De=[`1`,`2`,`3`],X=(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)},Z=(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)},ke=(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`],Q=(0,t.defineComponent)({name:`DBInfotext`,__name:`infotext`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-infotext`,n.class)),"data-icon":e.icon,"data-semantic":e.semantic,"data-size":e.size,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-show-icon-leading":(0,t.unref)(u)(e.showIcon??!0,`showIcon`)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Ae))}}),je=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Me=[`for`],Ne=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],Pe={"data-visually-hidden":`true`,role:`status`},Fe=(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),Z(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),X(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,Ne),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,Me),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,Pe,(0,t.toDisplayString)(y.value),1)],10,je))}}),Ie=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Le=(0,t.defineComponent)({name:`DBCustomButton`,__name:`custom-button`,props:{variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},noText:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String]}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-button`,n.class)),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(u)(e.noText,`noText`)},[(0,t.renderSlot)(a.$slots,`default`)],10,Ie))}}),Re=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]}},ze=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}},Be=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=ze(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},Ve=(e,t,n)=>{if(!e||!t)return;let r=e.dataset.width===`full`,i=e.dataset.width===`auto`;if(e.style.inlineSize=``,e.style.minInlineSize=``,getComputedStyle(e).zIndex===`9999`)return;let{top:a,bottom:o,childHeight:s,childWidth:c,width:l,right:u,left:d,correctedPlacement:f,innerWidth:p}=He(e,t,n),m=l;if(i){let t=parseFloat(getComputedStyle(e).maxInlineSize);!isNaN(t)&&t>0&&(m=Math.min(l,t))}r?e.style.inlineSize=`${l}px`:i&&(e.style.minInlineSize=`${m}px`);let h=c;i?h=Math.max(c,m):r&&(h=l);let g=f;i&&(g===`top`||g===`bottom`||g===`top-start`||g===`bottom-start`)&&d+h>p&&(g=g.startsWith(`top`)?`top-end`:`bottom-end`),g===`top`||g===`bottom`||g===`top-start`||g===`bottom-start`?e.style.insetInlineStart=`${d}px`:(g===`top-end`||g===`bottom-end`)&&(e.style.insetInlineStart=`${Math.max(u-h,0)}px`),g?.startsWith(`top`)?e.style.insetBlockStart=`${a-s}px`:g?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${o}px`),e.style.position=`fixed`},He=(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}},Ue=10,We=new WeakMap,Ge=e=>{if(We.has(e))return We.get(e);let t=e.parentElement,n=0;for(;t&&n<Ue;){if(t.dataset.correctedPlacement)return We.set(e,t),t;t=t.parentElement,n+=1}return We.set(e,null),null},Ke=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=Ge(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}=He(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},qe=[`id`,`data-width`],Je=(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,qe))}}),Ye=[`id`,`data-divider`],Xe=[`data-icon`,`data-show-icon`,`data-icon-trailing`],Ze=[`type`,`name`,`form`,`checked`,`disabled`,`value`],Qe={class:`db-custom-select-list-item-label`},$e={key:1},et=(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),X(r,e,`checked`)}function l(){if(!(a.isGroupTitle||a.type===`checkbox`))return d(a.checked,`checked`)?`check`:`x_placeholder`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:s,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-custom-select-list-item`,a.class,{"db-checkbox":e.type===`checkbox`&&!e.isGroupTitle,"db-radio":e.type!==`checkbox`&&!e.isGroupTitle})),"data-divider":(0,t.unref)(u)(o.value,`hasDivider`)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$e,(0,t.toDisplayString)(e.groupTitle),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:0,"data-icon":e.type!==`checkbox`&&e.icon?e.icon:void 0,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon-trailing":l()},[(0,t.createElementVNode)(`input`,{class:`db-custom-select-list-item-checkbox`,"data-disable-focus":`true`,type:e.type,name:e.name,form:e.name,checked:(0,t.unref)(d)(e.checked,`checked`),disabled:(0,t.unref)(d)(e.disabled,`disabled`),value:e.value,onChange:r[0]||=async e=>c(e)},null,40,Ze),(0,t.createElementVNode)(`span`,Qe,[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,Xe))],10,Ye))}}),tt=[`role`,`aria-label`,`id`],nt=(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,tt))}}),rt=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],it=[`for`],at=`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(`.`),ot=[`id`],st=[`value`],ct={"data-visually-hidden":`true`,role:`status`},lt=(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)(()=>{L(),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)&&L()},{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),ke(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),X(o,e),A()}function M(e,t){h.onChange&&h.onChange(e),X(o,e),A()}function N(e){h.onBlur&&h.onBlur(e)}function ee(e){h.onFocus&&h.onFocus(e)}function te(){let e=h.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function L(){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+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-input`,h.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-show-icon":(0,t.unref)(u)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`label`,{for:v.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,it),(0,t.createElementVNode)(`input`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:O,id:v.value,name:e.name,type:e.type||`text`,multiple:(0,t.unref)(d)(e.multiple,`multiple`),accept:e.accept,placeholder:e.placeholder??(0,t.unref)(` `),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),step:(0,t.unref)(p)(e.step),value:e.value??T.value??``,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),max:(0,t.unref)(m)(e.max,e.type),min:(0,t.unref)(m)(e.min,e.type),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,pattern:e.pattern,size:e.size,autoComplete:e.autocomplete,autoFocus:(0,t.unref)(d)(e.autofocus,`autofocus`),enterKeyHint:e.enterkeyhint,inputMode:e.inputmode,onInput:r[0]||=async e=>j(e),onChange:r[1]||=async e=>M(e),onBlur:r[2]||=async e=>N(e),onFocus:r[3]||=async e=>ee(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,at),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)(te(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,st))),128))],8,ot)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,ct,(0,t.toDisplayString)(E.value),1)],10,rt))}}),ut=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],dt=(0,t.defineComponent)({name:`DBTooltip`,__name:`tooltip`,props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(A),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),d=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(0),m=(0,t.ref)([]),h=(0,t.ref)(null);(0,t.onMounted)(()=>{C(),o.value=!0}),(0,t.onUnmounted)(()=>{w()}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&C()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[h.value,o.value,a.value],()=>{if(h.value&&o.value&&a.value){let e=v();if(e){y(e);let t=()=>S(e),n=()=>x(),i=e=>_(e);e.addEventListener(`mouseenter`,t),e.addEventListener(`focusin`,t),e.addEventListener(`keydown`,i),e.addEventListener(`mouseleave`,n),e.addEventListener(`focusout`,n),m.value=[...m.value??[],{parent:e,type:`mouseenter`,fn:t},{parent:e,type:`focusin`,fn:t},{parent:e,type:`keydown`,fn:i},{parent:e,type:`mouseleave`,fn:n},{parent:e,type:`focusout`,fn:n}],e.dataset.hasTooltip=`true`,r.variant===`label`?e.setAttribute(`aria-labelledby`,a.value):e.setAttribute(`aria-describedby`,a.value),d.value=e,f.value=a.value}typeof window<`u`&&`IntersectionObserver`in window&&(c.value=new IntersectionObserver(e=>{let t=e.find(({target:e})=>e===v());t&&!t.isIntersecting&&_(!1)})),o.value=!1}},{immediate:!0,flush:`post`});function g(e){e.stopPropagation()}function _(e){(!e||e.key===`Escape`)&&h.value&&getComputedStyle(h.value).visibility===`visible`&&v().blur()}function v(){let e=h.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function y(e){e&&h.value&&l(()=>{h.value&&Ke(h.value,e,r.placement??`bottom`)},1)}function b(e,t){e?.target?.contains&&e?.target?.contains(h.value)&&y(t)}function x(){p.value=Math.max((p.value??0)-1,0),!((p.value??0)>0)&&(s.value&&=(new $().removeCallback(s.value),void 0),c.value?.unobserve(v()))}function S(e){p.value=(p.value??0)+1,p.value===1&&(s.value=new $().addCallback(t=>b(t,e)),c.value?.observe(v())),y(e)}function C(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}function w(){let e=s.value;e&&(new $().removeCallback(e),s.value=void 0),c.value?.disconnect(),c.value=void 0,p.value=0,(m.value??[]).forEach(e=>{e.parent.removeEventListener(e.type,e.fn)}),m.value=[];let t=d.value;if(t){let e=f.value??a.value,n=t.querySelectorAll(`.db-tooltip`),r=Array.from(n).some(e=>e!==h.value);t.dataset.hasTooltip===`true`&&!r&&delete t.dataset.hasTooltip,t.getAttribute(`aria-labelledby`)===e&&t.removeAttribute(`aria-labelledby`),t.getAttribute(`aria-describedby`)===e&&t.removeAttribute(`aria-describedby`),d.value=void 0,f.value=void 0}}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:h,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tooltip`,r.class)),id:a.value,"data-emphasis":e.emphasis,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(u)(e.showArrow??!0,`showArrow`),"data-placement":e.placement,onClick:o[0]||=async e=>g(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,ut))}}),ft=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],pt=(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,`showCheckState`),"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-no-text":(0,t.unref)(u)(e.noText,`noText`),"data-overflow":(0,t.unref)(u)(e.overflow,`overflow`)},[(0,t.renderSlot)(s.$slots,`content`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`),e.behavior===`removable`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`db-button db-tab-remove-button`,"data-icon":`cross`,"data-size":`small`,"data-no-text":`true`,"data-variant":`ghost`,type:`button`,onClick:c[0]||=async e=>a(e)},[(0,t.createVNode)(dt,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,ft))}}),mt=[`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`],ht=[`id`],gt=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],_t=[`disabled`,`value`],vt=[`open`],yt=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],bt=[`data-visually-hidden`,`id`],xt={key:0,"data-visually-hidden":`true`},St={key:1},Ct={key:0},wt={key:0},Tt={class:`db-checkbox db-custom-select-list-item`},Et=[`form`,`checked`],Dt=[`id`],Ot={"data-visually-hidden":`true`,role:`status`},kt=(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),N=(0,t.ref)(!1),R=(0,t.ref)(0),z=(0,t.ref)([]),B=(0,t.ref)([]),re=(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=>J(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+te,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&&(re.value=B.value.length===0):re.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],()=>{N.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,()=>{Y(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,H.value?.open&&K()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(le.value=o.searchValue,o.searchValue){let e=o.searchValue;Ae(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} ${ie}`: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)&&K()}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 Re().addCallback(e=>Te(e)),se.value=new $().addCallback(e=>me(e)),K(),ce.value?.observe(H.value),e.target.dataset.test||ke()):(ae.value&&new Re().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(),Ee(e.value),Me()}function K(){if(H.value){let e=H.value.querySelector(`article`);e&&l(()=>{Ve(e,H.value,o.placement??`bottom`)},1)}}function Ce(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||Z(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)Z(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`)?(J(void 0,!0),Me()):Z(t)}}else(e.key===`ArrowDown`||e.key===`ArrowRight`)&&(K(),H.value&&(H.value.open=!0),ke());e.stopPropagation(),e.preventDefault()}function we(e){if(e.stopPropagation(),e.key===`Escape`&&H.value?.open)J(void 0,!0),Me();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&&(Ee(t.value),e.preventDefault())}}}else(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&Ce(e)}function J(e,t){if(H.value){if(t)H.value.open=!1,Me();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 Te(e){if(e){let t=e.target;H.value?.open&&!H.value.contains(t)&&(H.value.open=!1)}}function Y(e){new Date().getTime()-oe.value<200||(z.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),X(a,{target:{values:e}},`values`),oe.value=new Date().getTime())}function Ee(e){e&&(o.multiple?z.value?.includes(e)?Y(z.value.filter(t=>t!==e)):Y([...z.value||[],e]):(Y([e]),J(void 0,!0)))}function De(e){if(e.stopPropagation(),z.value?.length===R.value)Y([]);else{let e=N.value&&pe.value?pe.value.value:void 0;Y(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function Z(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 ke(){if(H.value){let e=v(H.value);e?l(()=>{e.focus()},1):Z()}}function Ae(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())),H.value?.open&&K()}function je(e){e.stopPropagation(),Y([]),Me()}function Me(){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+te,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,`required`),"data-hide-asterisk":(0,t.unref)(g)(e.showRequiredAsterisk),"data-placement":e.placement,"data-selected-type":e.multiple?e.selectedType:`text`,"data-hide-label":(0,t.unref)(g)(e.showLabel),"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{id:b.value},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),1),(0,t.createElementVNode)(`select`,{role:`none`,hidden:!0,id:y.value,tabIndex:-1,ref_key:`selectRef`,ref: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,_t))),128)):(0,t.createCommentVNode)(``,!0)],40,gt)],8,ht),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:H,open:e.open,onToggle:r[2]||=async e=>_e(e),onKeydown:r[3]||=async e=>we(e)},[(0,t.renderSlot)(n.$slots,`default`),e.options?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`summary`,{class:`db-custom-select-form-field`,id:x.value,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:void 0,"aria-labelledby":b.value},[O.value?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,"data-visually-hidden":(0,t.unref)(u)(e.selectedType===`tag`,`selectedType`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,xt,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,bt)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,St,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(pt,{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,yt),(0,t.createVNode)(Je,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[N.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ct,[(0,t.createVNode)(lt,{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:re.value||e.showLoading?C.value:void 0,onInput:e=>Ae(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),re.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(Q,{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`,wt,[(0,t.createElementVNode)(`div`,Tt,[(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=>De(e)},null,40,Et),(0,t.createTextVNode)((0,t.toDisplayString)(ye()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(nt,{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)(et,{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=>Ee(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)(q,{variant:`ghost`,width:`full`,icon:`cross`,size:`small`,name:c.value,form:c.value,onClick:e=>J(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,vt),(e.showClearSelection??!0)&&z.value?.length?((0,t.openBlock)(),(0,t.createBlock)(q,{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=>je(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)(dt,{placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1)]),_:1})]),_:1},8,[`name`,`form`,`disabled`,`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`db-custom-select-placeholder`,"aria-hidden":`true`,id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,Dt),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,Ot,(0,t.toDisplayString)(A.value),1)],10,mt))}}),At=[`fixed`,`auto`,`full`],jt=[`id`],Mt=(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,jt))}}),Nt=[`checkbox`,`radio`],Pt=[`amount`,`text`,`tag`],Ft=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],It=(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,Ft))}}),Lt=[`none`,`_`],Rt=[`horizontal`,`vertical`],zt=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],Bt=[`data-spacing`,`data-width`,`data-direction`,`data-rounded`],Vt={class:`db-drawer-header`},Ht={class:`db-drawer-header-text`},Ut={class:`db-drawer-content`},Wt=(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)(!1),o=(0,t.ref)(null),s=(0,t.ref)(null);(0,t.onMounted)(()=>{m(),r.value=!0}),(0,t.watch)(()=>[n.open],()=>{m()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.value,r.value,n.position],()=>{if(o.value&&r.value&&n.position===`absolute`){let e=o.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function c(){return n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`}function f(e){a.value=e?.target?.nodeName===`DIALOG`}function p(e,t){e&&(x(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`&&a.value&&n.onClose&&n.onClose(e),a.value=!1))}function m(){if(o.value){let e=d(n.open,`open`);e&&!o.value.open&&(s.value&&s.value.removeAttribute(`data-transition`),c()?o.value.show():(o.value.setAttribute(`closedby`,`any`),o.value.showModal()),l(()=>{s.value&&(s.value.dataset.transition=`open`)},1)),!e&&o.value.open&&(s.value&&(s.value.dataset.transition=`close`),l(()=>{o.value?.close()},401))}}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:o,onClick:a[0]||=async e=>p(e),onMousedown:a[1]||=async e=>f(e),onKeydown:a[2]||=async e=>p(e),"data-position":e.position,"data-backdrop":e.backdrop,"data-direction":e.direction,"data-variant":e.variant},[(0,t.createElementVNode)(`article`,{ref_key:`dialogContainerRef`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-spacing":e.spacing,"data-width":e.width,"data-direction":e.direction,"data-rounded":(0,t.unref)(u)(e.rounded,`rounded`)},[(0,t.createElementVNode)(`header`,Vt,[(0,t.createElementVNode)(`div`,Ht,[(0,t.renderSlot)(r.$slots,`drawer-header`)]),(0,t.createVNode)(q,{class:`button-close-drawer`,icon:`cross`,variant:`ghost`,id:e.closeButtonId,noText:!0,onClick:e=>p(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`,Ut,[(0,t.renderSlot)(r.$slots,`default`)])],10,Bt)],40,zt))}}),Gt=[`none`,`strong`,`weak`,`invisible`],Kt=[`left`,`right`,`up`,`down`],qt=[`modal`,`inside`],Jt=[`fixed`,`absolute`],Yt=e=>{let{target:t}=e;return!!(!t?.classList?.contains(`db-navigation-item-expand-button`)&&t?.parentElement?.classList.contains(`db-navigation-item`))},Xt=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=Be(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))}},Zt=[`id`,`data-width`,`data-on-forcing-mobile`],Qt={class:`db-header-meta-navigation`},$t={class:`db-header-navigation-bar`},en={class:`db-header-brand-container`},tn={class:`db-header-navigation-container`},nn={class:`db-header-navigation`},rn={class:`db-header-primary-action`},an={class:`db-header-action-container`},on={class:`db-header-burger-menu-container`},sn={class:`db-header-secondary-action`},cn={class:`db-header-drawer-navigation`},ln={class:`db-header-meta-navigation`},un={class:`db-header-secondary-action`},dn=(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){Yt(e)&&c()}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-header`,n.class)),id:e.id??e.propOverrides?.id,"data-width":e.width,"data-on-forcing-mobile":e.forceMobile&&!o.value},[(0,t.createElementVNode)(`div`,Qt,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,$t,[(0,t.createElementVNode)(`div`,en,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,tn,[(0,t.createElementVNode)(`div`,nn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,rn,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,an,[(0,t.createElementVNode)(`div`,on,[(0,t.createVNode)(q,{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`,sn,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])]),(0,t.createVNode)(Wt,{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`,cn,[(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`,ln,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])]),(0,t.createElementVNode)(`div`,un,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3},8,[`closeButtonId`,`closeButtonText`,`open`,`onClose`])],10,Zt))}}),fn=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],pn=(0,t.defineComponent)({name:`DBIcon`,__name:`icon`,props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{"aria-hidden":`true`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-icon`,n.class)),"data-icon":e.icon,"data-icon-weight":e.weight,"data-icon-variant":e.variant},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,fn))}}),mn=[`16`,`20`,`24`,`32`,`48`,`64`],hn=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],gn=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],_n=(0,t.defineComponent)({name:`DBLink`,__name:`link`,props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},disabled:{type:[Boolean,String],default:void 0},href:{default:void 0},hreflang:{default:void 0},target:{default:void 0},rel:{default:void 0},referrerpolicy:{default:void 0},referrerPolicy:{default:void 0},role:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},wrap:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){n.onClick&&n.onClick(e)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-link`,n.class)),href:e.href,target:e.target,rel:e.rel,role:e.role,referrerPolicy:e.referrerpolicy??e.referrerPolicy,hrefLang:e.hreflang,"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(u)(e.showIcon??!0,`showIcon`),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),onClick:s[0]||=async e=>a(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)],10,gn))}}),vn=[`adaptive`,`brand`,`inline`],yn=[`medium`,`small`],bn=[`external`,`internal`],xn=[`id`],Sn=(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,xn))}}),Cn=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],wn=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],Tn=[`id`,`aria-labelledby`,`data-force-close`],En={key:0,class:`db-mobile-navigation-back`},Dn=(0,t.defineComponent)({name:`DBNavigationItem`,__name:`navigation-item`,props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},hideSubNavigation:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!0),c=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0;let e=`sub-nav-${r.id??n}`;m.value=e,h.value=`${e}-toggle`}),(0,t.watch)(()=>[r.subNavigationExpanded],()=>{r.subNavigationExpanded!==void 0&&(c.value=!!d(r.subNavigationExpanded,`subNavigationExpanded`))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[a.value,g.value],()=>{if(a.value&&g.value){let e=g.value.querySelector(`menu`);e&&(e.children?.length>0?(o.value=!0,p.value||=new Xt(g.value,e)):s.value=!1)}},{immediate:!0,flush:`post`});function _(e){e?.target?.nodeName===`A`&&(f.value=!0,l(()=>{f.value=!1},1e3))}function v(e){r.onClick&&(e.stopPropagation(),r.onClick(e)),o.value&&(c.value=!0)}function y(e){e.stopPropagation(),c.value=!1}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:g,id:e.id??e.propOverrides?.id,onMouseover:a[2]||=async e=>p.value?.enableFollow(),onMouseleave:a[3]||=async e=>p.value?.disableFollow(),onMousemove:a[4]||=async e=>p.value?.followByMouseEvent(e),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-navigation-item`,r.class)),"data-width":e.width,"data-icon":e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-active":e.active,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`),"aria-disabled":(0,t.unref)(u)(e.disabled,`disabled`)},[!(0,t.unref)(d)(e.hideSubNavigation,`hideSubNavigation`)&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`button`,{class:`db-navigation-item-expand-button`,id:h.value,"aria-haspopup":o.value?`true`:void 0,"aria-expanded":c.value,"aria-controls":m.value,disabled:(0,t.unref)(d)(e.disabled,`disabled`),onClick:a[0]||=async e=>v(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,wn),(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`,En,[(0,t.createVNode)(q,{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,Tn)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],64))],42,Cn))}}),On=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],kn={key:0,"data-area":`head`},An={"data-area":`content`},jn=[`dateTime`],Mn=(0,t.defineComponent)({name:`DBNotification`,__name:`notification`,props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},timestampDatetime:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},role:{default:void 0},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onClose&&n.onClose(e))}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-notification`,n.class)),role:(0,t.unref)(S)({semantic:e.semantic,role:e.role,ariaLive:e.ariaLive}),"aria-live":e.ariaLive,"data-semantic":e.semantic,"data-variant":e.variant,"data-icon":(0,t.unref)(d)(e.showIcon)===!1?void 0:e.icon,"data-show-icon":(0,t.unref)(u)(e.showIcon,`showIcon`),"data-link-variant":e.linkVariant},[(0,t.renderSlot)(o.$slots,`image`),(0,t.unref)(_)(e.headline,e.showHeadline)?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,kn,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,An,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)]),(0,t.unref)(_)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`time`,{key:1,"data-area":`timestamp`,dateTime:e.timestampDatetime},(0,t.toDisplayString)(e.timestamp),9,jn)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`link`),(0,t.unref)(d)(e.closeable,`closeable`)?((0,t.openBlock)(),(0,t.createBlock)(q,{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,On))}}),Nn=[`docked`,`standalone`,`overlay`],Pn=[`block`,`inline`],Fn=[`assertive`,`polite`,`off`],In=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Ln=(0,t.defineComponent)({name:`DBPage`,__name:`page`,props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return typeof window<`u`&&document&&(n.documentOverflow===`hidden`||n.variant===`fixed`&&n.documentOverflow!==`auto`)&&document.documentElement.classList.add(`db-page-document`),(0,t.onMounted)(()=>{r.value=!n.fadeIn,document&&n.fadeIn?document.fonts.ready.then(()=>{r.value=!0}):r.value=!0}),(0,t.onUnmounted)(()=>{typeof window<`u`&&document.documentElement.classList.contains(`db-page-document`)&&document.documentElement.classList.remove(`db-page-document`)}),(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-page`,n.class)),"data-variant":e.variant,"data-fade-in":(0,t.unref)(u)(e.fadeIn,`fadeIn`),"data-fonts-loaded":(0,t.unref)(u)(r.value,`fontsLoaded`)},[(0,t.renderSlot)(o.$slots,`header`),(0,t.createElementVNode)(`main`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-main`,e.mainClass))},[(0,t.renderSlot)(o.$slots,`default`)],2),(0,t.renderSlot)(o.$slots,`footer`)],10,In))}}),Rn=[`auto`,`fixed`],zn=[`hidden`,`auto`],Bn=[`id`],Vn=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],Hn=(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(()=>{Ke(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,`gap`),"data-animation":(0,t.unref)(u)(e.animation??!0,`animation`),"data-open":(0,t.unref)(u)(e.open,`open`),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,Vn)],10,Bn))}}),Un=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],Wn=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],Gn=(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),X(a,e)}function m(e,t){o.onChange&&o.onChange(e),X(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,Wn),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,Un))}}),Kn=[`id`,`data-spacing`,`data-width`],qn=(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,Kn))}}),Jn=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],Yn=[`for`],Xn=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],Zn=[`data-show-empty-option`],Qn=[`label`],$n=[`value`,`selected`,`disabled`],er=[`value`,`disabled`,`selected`],tr=[`id`],nr={"data-visually-hidden":`true`,role:`status`},rr=(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,ee(),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)&&ee()},{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),ke(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),X(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),X(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 N(){return o.variant===`floating`||o.placeholder?o.showEmptyOption===void 0?!o.required:o.showEmptyOption:!1}function ee(){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,`showIcon`)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,Yn),(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)(N(),`showEmptyOption`)},null,8,Zn)):(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,$n))),128))],8,Qn)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,er))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{key:2})],40,Xn),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:v.value},(0,t.toDisplayString)(e.placeholder),9,tr)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,nr,(0,t.toDisplayString)(S.value),1)],10,Jn))}}),ir=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],ar=(0,t.defineComponent)({name:`DBStack`,__name:`stack`,props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},gap:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-stack`,n.class)),"data-gap":e.gap,"data-variant":e.variant,"data-direction":e.direction,"data-alignment":e.alignment,"data-justify-content":e.justifyContent,"data-wrap":(0,t.unref)(u)(e.wrap,`wrap`)},[(0,t.renderSlot)(a.$slots,`default`)],10,ir))}}),or=[`simple`,`divider`],sr=[`row`,`column`],cr=[`stretch`,`start`,`end`,`center`],lr=[`space-between`,`start`,`end`,`center`],ur=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],dr=[`for`],fr=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],pr={"data-visually-hidden":`true`,role:`status`},mr=(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),Z(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(),X(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,`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,fr),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,dr),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,pr,(0,t.toDisplayString)(y.value),1)],10,ur))}}),hr=[`for`,`data-icon`,`data-icon-trailing`,`data-show-icon`,`data-show-icon-trailing`,`data-no-text`],gr=[`disabled`,`aria-selected`,`checked`,`name`,`id`],_r=(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),X(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,`showIconLeading`)||(0,t.unref)(u)(e.showIcon,`showIcon`),"data-show-icon-trailing":(0,t.unref)(u)(e.showIconTrailing,`showIconTrailing`),"data-no-text":(0,t.unref)(u)(e.noText,`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,gr),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,hr)],2))}}),vr=[`id`],yr={role:`tablist`},br=(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`,yr,[(0,t.renderSlot)(a.$slots,`default`)])],10,vr))}}),xr=[`id`],Sr=(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,xr))}}),Cr=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`colSpan`,`rowSpan`,`headers`],wr=(0,t.defineComponent)({name:`DBTableDataCell`,__name:`table-data-cell`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-data-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers},[(0,t.renderSlot)(a.$slots,`default`)],10,Cr))}}),Tr=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`data-no-text`,`scope`,`colSpan`,`rowSpan`,`headers`,`abbr`],Er=(0,t.defineComponent)({name:`DBTableHeaderCell`,__name:`table-header-cell`,props:{abbr:{default:void 0},scope:{default:void 0},noText:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-header-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,"data-no-text":(0,t.unref)(u)(e.noText),scope:e.scope,colSpan:(0,t.unref)(f)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(f)(e.rowSpan,e.rowspan),headers:e.headers,abbr:e.abbr},[(0,t.renderSlot)(a.$slots,`default`)],10,Tr))}}),Dr=[`id`,`data-interactive`,`data-sub-header-emphasis`],Or=(0,t.defineComponent)({name:`DBTableRow`,__name:`table-row`,props:{cells:{default:void 0},subHeaderEmphasis:{default:void 0},interactive:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){if(e.headerCell)return e}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-row`,r.class)),"data-interactive":(0,t.unref)(u)(e.interactive),"data-sub-header-emphasis":e.subHeaderEmphasis},[e.cells?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.cells,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[r.headerCell?((0,t.openBlock)(),(0,t.createBlock)(Er,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-header-cell-${i}`,id:r.id,abbr:o(r)?.abbr,scope:o(r)?.scope,noText:o(r)?.noText,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(_n,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`abbr`,`scope`,`noText`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`])):((0,t.openBlock)(),(0,t.createBlock)(wr,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-data-cell-${i}`,id:r.id,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(_n,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`]))],64))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,Dr))}}),kr=[`id`],Ar=(0,t.defineComponent)({name:`DBTableBody`,__name:`table-body`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tbody`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-body`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Or,{key:`${r.id??e.id??(0,t.unref)(n)}-table-body-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,kr))}}),jr=[`id`],Mr=(0,t.defineComponent)({name:`DBTableFooter`,__name:`table-footer`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tfoot`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-footer`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Or,{key:`${r.id??e.id??(0,t.unref)(n)}-table-footer-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,jr))}}),Nr=[`id`],Pr=(0,t.defineComponent)({name:`DBTableHead`,__name:`table-head`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){return e?.map(e=>({...e,headerCell:!0}))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`thead`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-head`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Or,{key:`${r.id??e.id??(0,t.unref)(n)}-table-head-row-${i}`,cells:o(r.cells),className:r.className??r.class,subHeaderEmphasis:r.subHeaderEmphasis,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`subHeaderEmphasis`,`interactive`,`id`]))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,Nr))}}),Fr=[`data-width`,`data-size`,`data-divider`,`data-variant`,`data-mobile-variant`,`data-show-caption`,`data-sticky-header`],Ir=[`id`],Lr={key:0},Rr=(0,t.defineComponent)({name:`DBTable`,__name:`table`,props:{caption:{},captionPlain:{default:void 0},data:{default:void 0},divider:{default:void 0},showCaption:{type:[Boolean,String],default:void 0},size:{default:void 0},variant:{default:void 0},mobileVariant:{default:void 0},stickyHeader:{default:void 0},columnSizes:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(void 0),o=(0,t.ref)(null);(0,t.watch)(()=>[n.data],()=>{n.data?r.value=s():r.value=void 0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.mobileVariant,o.value,r.value],()=>{o.value&&n.mobileVariant===`list`&&l(()=>{let e=o.value;if(!e)return;let t=e.querySelectorAll(`thead tr th`);t.length&&e.querySelectorAll(`:is(tbody,tfoot) tr`).forEach(e=>{e.querySelectorAll(`:is(td,th)`).forEach((e,n)=>{let r=t[n];if(r){let t=Array.from(r.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent?.trim()).filter(Boolean).join(` `);t&&(e.dataset.header=t)}})})},1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.columnSizes],()=>{if(n.columnSizes){let e={};Object.entries(n.columnSizes).forEach(([t,n])=>{e[`--db-table-column-size-${t}`]=n}),a.value=e}else a.value=void 0},{immediate:!0,flush:`post`});function s(){try{return typeof n.data==`string`?JSON.parse(n.data):n.data}catch(e){console.error(e)}return{}}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table`,n.class)),style:(0,t.normalizeStyle)(a.value),"data-width":e.width,"data-size":e.size,"data-divider":e.divider,"data-variant":e.variant,"data-mobile-variant":e.mobileVariant,"data-show-caption":(0,t.unref)(u)(e.showCaption),"data-sticky-header":e.stickyHeader},[(0,t.createElementVNode)(`table`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id},[e.captionPlain?((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,Lr,(0,t.toDisplayString)(e.captionPlain),1)):(0,t.renderSlot)(s.$slots,`caption`,{key:1}),r.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[r.value?.header?((0,t.openBlock)(),(0,t.createBlock)(Pr,{key:0,rows:r.value?.header},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.body?((0,t.openBlock)(),(0,t.createBlock)(Ar,{key:1,rows:r.value?.body},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.footer?((0,t.openBlock)(),(0,t.createBlock)(Mr,{key:2,rows:r.value?.footer},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0)],64)):(0,t.renderSlot)(s.$slots,`default`,{key:3})],8,Ir)],14,Fr))}}),zr=[`id`],Br=(0,t.defineComponent)({name:`DBTableCaption`,__name:`table-caption`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-caption`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,zr))}}),Vr=[`row`,`col`,`rowgroup`,`colgroup`],Hr=[`none`,`weak`,`strong`],Ur=[`x-small`,`small`,`medium`,`large`],Wr=[`flat`,`zebra`,`spaced`],Gr=[`none`,`both`,`horizontal`,`vertical`],Kr=[`table`,`list`],qr=[`none`,`both`,`horizontal`,`vertical`],Jr=[`auto`,`1fr`,`min-content`,`max-content`],Yr=[`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)(q,{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)(br,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)(_r,{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)(Sr,{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)(q,{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,Yr))}}),Zr=[`scrollbar`,`arrows`],Qr=[`auto`,`manually`],$r=[`static`,`removable`],ei=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],ti=[`for`],ni=[`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`],ri={"data-visually-hidden":`true`,role:`status`},ii=(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),ke(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),X(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),X(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,ti),(0,t.createElementVNode)(`textarea`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,"data-field-sizing":e.fieldSizing,ref_key:`_ref`,ref:S,id:c.value,"data-resize":e.resize,"data-hide-resizer":(0,t.unref)(g)(e.showResizer??!0),disabled:(0,t.unref)(d)(e.disabled,`disabled`),required:(0,t.unref)(d)(e.required,`required`),readOnly:(0,t.unref)(d)(e.readOnly,`readOnly`)||(0,t.unref)(d)(e.readonly,`readonly`)||void 0,form:e.form,maxLength:(0,t.unref)(f)(e.maxLength,e.maxlength),minLength:(0,t.unref)(f)(e.minLength,e.minlength),name:e.name,wrap:e.wrap,spellcheck:e.spellCheck,autocomplete:e.autocomplete,onInput:r[0]||=async e=>T(e),onChange:r[1]||=async e=>E(e),onBlur:r[2]||=async e=>D(e),onFocus:r[3]||=async e=>O(e),value:e.value??y.value??``,"aria-describedby":e.ariaDescribedBy??v.value,placeholder:e.placeholder??(0,t.unref)(` `),rows:(0,t.unref)(f)(e.rows,(0,t.unref)(4)),cols:(0,t.unref)(f)(e.cols)},(0,t.toDisplayString)(e.value),41,ni),(0,t.unref)(_)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Q,{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)(Q,{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)(Q,{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`,ri,(0,t.toDisplayString)(b.value),1)],10,ei))}}),ai=[`none`,`both`,`horizontal`,`vertical`],oi=[`hard`,`soft`,`off`],si=[`description`,`label`],ci=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],li=[`medium`,`small`,`large`,`none`],ui=[`medium`,`small`,`large`,`none`],di=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],fi=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],pi=[...di,...fi],mi=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],hi=[`horizontal`,`vertical`],gi=[`full`,`auto`],_i=[`full`,`medium`,`large`,`small`],vi=[`none`,`slow`,`fast`],yi=[`auto`,`fixed`],bi=[`small`,`medium`],xi=[`weak`,`strong`],Si=[`invalid`,`valid`,`no-validation`],Ci=[`fixed`,`content`],wi=[`above`,`floating`],Ti=[`leading`,`trailing`],Ei=`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=k,e.AccordionVariantList=O,e.AlignmentList=[`start`,`center`,`end`],e.AutoCompleteList=Ei,e.BadgePlacementList=xe,e.ButtonTypeList=J,e.ButtonVariantList=we,e.COLOR=U,e.COLORS=fe,e.COLORS_SIMPLE=pe,e.COLOR_CONST=ue,e.COLOR_SIMPLE=H,e.CardBehaviorList=Ee,e.CardElevationLevelList=De,e.CustomSelectDropdownWidthList=At,e.CustomSelectListItemTypeList=Nt,e.DBAccordion=D,e.DBAccordionItem=T,e.DBBadge=be,e.DBBrand=K,e.DBButton=q,e.DBCard=Y,e.DBCheckbox=Fe,e.DBCustomButton=Le,e.DBCustomSelect=kt,e.DBCustomSelectDropdown=Je,e.DBCustomSelectFormField=Mt,e.DBCustomSelectList=nt,e.DBCustomSelectListItem=et,e.DBDivider=It,e.DBDrawer=Wt,e.DBHeader=dn,e.DBIcon=pn,e.DBInfotext=Q,e.DBInput=lt,e.DBLink=_n,e.DBNavigation=Sn,e.DBNavigationItem=Dn,e.DBNotification=Mn,e.DBPage=Ln,e.DBPopover=Hn,e.DBRadio=Gn,e.DBSection=qn,e.DBSelect=rr,e.DBStack=ar,e.DBSwitch=mr,e.DBTabItem=_r,e.DBTabList=br,e.DBTabPanel=Sr,e.DBTable=Rr,e.DBTableBody=Ar,e.DBTableCaption=Br,e.DBTableColumnsSizeList=Jr,e.DBTableDataCell=wr,e.DBTableDividerList=Gr,e.DBTableFooter=Mr,e.DBTableHead=Pr,e.DBTableHeaderCell=Er,e.DBTableHeaderCellScopeList=Vr,e.DBTableMobileVariantList=Kr,e.DBTableRow=Or,e.DBTableRowSizeList=Ur,e.DBTableRowSubHeaderEmphasisList=Hr,e.DBTableStickyHeaderList=qr,e.DBTableVariantList=Wr,e.DBTabs=Xr,e.DBTag=pt,e.DBTextarea=ii,e.DBTooltip=dt,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=W,e.DB_UX_LOCAL_STORAGE_MODE=ye,e.DEFAULT_BACK=re,e.DEFAULT_BURGER_MENU=ae,e.DEFAULT_CLOSE_BUTTON=ce,e.DEFAULT_DATALIST_ID_SUFFIX=R,e.DEFAULT_ICON=oe,e.DEFAULT_ID=A,e.DEFAULT_INVALID_MESSAGE=B,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=I,e.DEFAULT_LABEL=j,e.DEFAULT_LABEL_ID_SUFFIX=ee,e.DEFAULT_MESSAGE=N,e.DEFAULT_MESSAGE_ID_SUFFIX=P,e.DEFAULT_PLACEHOLDER=M,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=L,e.DEFAULT_REMOVE=ne,e.DEFAULT_ROWS=se,e.DEFAULT_SELECTED=ie,e.DEFAULT_SELECT_ID_SUFFIX=te,e.DEFAULT_VALID_MESSAGE=z,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=F,e.DEFAULT_VIEWPORT=ge,e.DENSITIES=de,e.DENSITY=V,e.DENSITY_CONST=le,e.DESKTOP_VIEWPORT=_e,e.DividerMarginList=Lt,e.DividerVariantList=Rt,e.DocumentClickListener=Re,e.DocumentScrollListener=$,e.DrawerBackdropList=Gt,e.DrawerDirectionList=Kt,e.DrawerPositionList=Jt,e.DrawerVariantList=qt,e.EmphasisList=xi,e.FieldSizingList=Ci,e.GapSpacingList=mi,e.IconWeightList=mn,e.InputTypeList=hn,e.LabelVariantHorizontalList=Ti,e.LabelVariantList=wi,e.LinkContentList=bn,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=yn,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=vn,e.MarginList=ui,e.MaxWidthList=_i,e.NavigationItemSafeTriangle=Xt,e.NotificationAriaLiveList=Fn,e.NotificationLinkVariantList=Pn,e.NotificationVariantList=Nn,e.OrientationList=hi,e.PageDocumentOverflowList=zn,e.PageVariantList=Rn,e.PlacementHorizontalList=di,e.PlacementList=pi,e.PlacementVerticalList=fi,e.PopoverDelayList=vi,e.PopoverWidthList=yi,e.SEMANTIC=me,e.SEMANTICS=he,e.SelectedTypeList=Pt,e.SemanticList=ci,e.SizeList=bi,e.SpacingList=li,e.StackAlignmentList=cr,e.StackDirectionList=sr,e.StackJustifyContentList=lr,e.StackVariantList=or,e.TESTING_VIEWPORTS=ve,e.TabsBehaviorList=Zr,e.TabsInitialSelectedModeList=Qr,e.TagBehaviorList=$r,e.TextareaResizeList=ai,e.TextareaWrapList=oi,e.TooltipVariantList=si,e.ValidationList=Si,e.WidthList=gi,e.addAttributeToChildren=r,e.cls=i,e.delay=l,e.getBoolean=d,e.getBooleanAsString=u,e.getFloatingProps=He,e.getHideProp=g,e.getInputValue=m,e.getNotificationRole=S,e.getNumber=f,e.getOptionKey=b,e.getSearchInput=v,e.getStep=p,e.handleDataOutside=Be,e.handleFixedDropdown=Ve,e.handleFixedPopover=Ke,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=Yt,e.isIOSSafari=c,e.isKeyboardEvent=x,e.stringPropVisible=_,e.uuid=n});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`DB-UX`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=()=>{if(typeof window<`u`){if(window.crypto?.randomUUID)return window.crypto.randomUUID();if(window.crypto?.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join(`-`)}return Math.random().toString().substring(2)},r=(e,t)=>{let n=e.children;Object.values(n).forEach(e=>{e.setAttribute(t.key,t.value),e.children.length>0&&r(e,t)})},i=(...e)=>{let t=``;for(let n of e)if(n)if(typeof n==`string`)t+=`${n} `;else for(let e in n)n[e]&&(t+=`${e} `);return t.trim()},a=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),o=[`Mac`,`iPhone`,`iPad`,`iPod`],s=()=>typeof window<`u`&&o.some(e=>window.navigator.userAgent.includes(e)),c=()=>{if(typeof window>`u`||typeof navigator>`u`)return!1;let e=navigator.userAgent,t=/iP(ad|hone|od)/.test(e),n=!!e.match(/Safari/)&&!e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);return t&&n},l=(e,t)=>new Promise(()=>setTimeout(e,t)),u=(e,t)=>typeof window<`u`&&getComputedStyle(e).getPropertyValue(t).trim()===`1`,d=(e,t)=>{if(e!=null)return String(typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():e)},f=(e,t)=>{if(e!=null)return typeof e==`string`?e===``||e===`true`||t?.toLowerCase()===e.toLowerCase():!!e},p=(e,t)=>{if(!(e==null&&t==null))return Number(e??t)},m=e=>{if(e!=null)return e===`any`?`any`:Number(e)},h=(e,t)=>t&&[`number`,`range`].includes(t)?p(e):e,g=e=>typeof e==`string`?e!==`false`:e,_=e=>{if(e!=null)return d(!g(e),`show`)},v=(e,t)=>(t===void 0||g(t))&&!!e,y=e=>e.querySelector(`input[type="search"]`),b=new WeakMap,x=(e,t)=>{if(e.id)return`${t}${e.id}`;let r=e.value!==void 0&&e.value!==``?String(e.value):``,i=e.label??``;if(r||i)return`${t}${r.length}:${r}.${i}`;let a=b.get(e);return a||(a=n(),b.set(e,a)),`${t}${a}`},S=e=>e.key!==void 0,C=({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`}},w=[`id`],T=[`aria-disabled`,`name`,`open`],E=(0,t.defineComponent)({name:`DBAccordionItem`,__name:`accordion-item`,props:{defaultOpen:{type:Boolean,default:void 0},open:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(void 0),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{n.defaultOpen&&(r.value=n.defaultOpen),o.value=!0}),(0,t.watch)(()=>[s.value,o.value],()=>{s.value&&o.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.name],()=>{n.name&&(a.value=n.name)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.open],()=>{let e=f(n.open,`open`);e!==void 0&&(r.value=e)},{immediate:!0,flush:`post`});function c(e){e?.preventDefault();let t=!r.value;n.onToggle&&n.onToggle(t),n.open===void 0&&(r.value=t)}return(o,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion-item`,n.class))},[(0,t.createElementVNode)(`details`,{"aria-disabled":(0,t.unref)(d)(e.disabled,`disabled`),ref_key:`_ref`,ref:s,name:a.value,open:r.value},[(0,t.createElementVNode)(`summary`,{onClick:l[0]||=async e=>c(e)},[e.headlinePlain?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.headlinePlain),1)],64)):(0,t.createCommentVNode)(``,!0),e.headlinePlain?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(o.$slots,`headline`,{key:1})]),(0,t.createElementVNode)(`div`,null,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)])],8,T)],10,w))}}),D=[`id`,`data-variant`],O=(0,t.defineComponent)({name:`DBAccordion`,__name:`accordion`,props:{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},behavior:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(``),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(null);(0,t.onMounted)(()=>{o.value=!0,s.value=!0}),(0,t.watch)(()=>[o.value,r.name,r.behavior],()=>{o.value&&c.value&&(r.behavior===`single`?r.name?a.value!==r.name&&(a.value=r.name):a.value=`accordion-${n}`:a.value=``)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,a.value],()=>{if(c.value){let e=c.value.getElementsByTagName(`details`);if(e)for(let t of Array.from(e))a.value===``?t.removeAttribute(`name`):t.name=a.value??``}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value,s.value,r.initOpenIndex],()=>{if(c.value&&s.value){if(r.initOpenIndex&&r.initOpenIndex.length>0){let e=c.value.getElementsByTagName(`details`);if(e){let t=r.behavior===`single`&&r.initOpenIndex.length>1?[r.initOpenIndex[0]]:r.initOpenIndex;Array.from(e).forEach((e,n)=>{t?.includes(n)&&(e.open=!0)})}}s.value=!1}},{immediate:!0,flush:`post`});function l(){try{return typeof r.items==`string`?JSON.parse(r.items):r.items}catch(e){console.error(e)}return[]}return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{ref_key:`_ref`,ref:c,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-accordion`,r.class)),"data-variant":e.variant},[e.items?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0}),e.items?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(l(),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(E,{key:`accordion-item-${n}`,headlinePlain:e.headlinePlain,disabled:e.disabled,text:e.text},null,8,[`headlinePlain`,`disabled`,`text`]))),128)):(0,t.createCommentVNode)(``,!0)],10,D))}}),k=[`divider`,`card`],A=`OVERWRITE_DEFAULT_ID`,j=`LABEL SHOULD BE SET`,M=` `,N=`MESSAGE SHOULD BE SET`,P=`-label`,ee=`-select`,F=`-message`,I=`-valid-message`,L=`-invalid-message`,te=`-placeholder`,R=`-datalist`,z=`TODO: Add a validMessage`,B=`TODO: Add an invalidMessage`,ne=`Remove`,re=`Back`,ie=`Selected`,ae=`Expand`,oe=`Collapse`,se=`Scroll left`,ce=`Scroll right`,le=`brand`,ue=`Open navigation menu`,de=4,V=`Close`,fe=`main-content`,H=`density`,U=`color`,pe=function(e){return e.FUNCTIONAL=`functional`,e.REGULAR=`regular`,e.EXPRESSIVE=`expressive`,e}({}),me=Object.entries(pe).map(([,e])=>e),he=function(e){return e.PRIMARY=`primary`,e}({}),ge=function(e){return e.NEUTRAL_BG_LEVEL_1=`neutral-bg-basic-level-1`,e.NEUTRAL_BG_LEVEL_2=`neutral-bg-basic-level-2`,e.NEUTRAL_BG_LEVEL_3=`neutral-bg-basic-level-3`,e.NEUTRAL_BG_TRANSPARENT_SEMI=`neutral-bg-basic-transparent-semi`,e.NEUTRAL_BG_TRANSPARENT_FULL=`neutral-bg-basic-transparent-full`,e.BRAND_BG_LEVEL_1=`brand-bg-basic-level-1`,e.BRAND_BG_LEVEL_2=`brand-bg-basic-level-2`,e.BRAND_BG_LEVEL_3=`brand-bg-basic-level-3`,e.BRAND_BG_TRANSPARENT_SEMI=`brand-bg-basic-transparent-semi`,e.BRAND_BG_TRANSPARENT_FULL=`brand-bg-basic-transparent-full`,e.SUCCESSFUL_BG_LEVEL_1=`successful-bg-basic-level-1`,e.SUCCESSFUL_BG_LEVEL_2=`successful-bg-basic-level-2`,e.SUCCESSFUL_BG_LEVEL_3=`successful-bg-basic-level-3`,e.SUCCESSFUL_BG_TRANSPARENT_SEMI=`successful-bg-basic-transparent-semi`,e.SUCCESSFUL_BG_TRANSPARENT_FULL=`successful-bg-basic-transparent-full`,e.CRITICAL_BG_LEVEL_1=`critical-bg-basic-level-1`,e.CRITICAL_BG_LEVEL_2=`critical-bg-basic-level-2`,e.CRITICAL_BG_LEVEL_3=`critical-bg-basic-level-3`,e.CRITICAL_BG_TRANSPARENT_SEMI=`critical-bg-basic-transparent-semi`,e.CRITICAL_BG_TRANSPARENT_Full=`critical-bg-basic-transparent-full`,e.WARNING_BG_LEVEL_1=`warning-bg-basic-level-1`,e.WARNING_BG_LEVEL_2=`warning-bg-basic-level-2`,e.WARNING_BG_LEVEL_3=`warning-bg-basic-level-3`,e.WARNING_BG_TRANSPARENT_SEMI=`warning-bg-basic-transparent-semi`,e.WARNING_BG_TRANSPARENT_FULL=`warning-bg-basic-transparent-full`,e.INFORMATIONAL_BG_LEVEL_1=`informational-bg-basic-level-1`,e.INFORMATIONAL_BG_LEVEL_2=`informational-bg-basic-level-2`,e.INFORMATIONAL_BG_LEVEL_3=`informational-bg-basic-level-3`,e.INFORMATIONAL_BG_TRANSPARENT_SEMI=`informational-bg-basic-transparent-semi`,e.INFORMATIONAL_BG_TRANSPARENT_FULL=`informational-bg-basic-transparent-full`,e}({}),_e=Object.entries(ge).map(([,e])=>e),ve=Object.entries(he).map(([,e])=>e),ye=function(e){return e.NEUTRAL=`neutral`,e.CRITICAL=`critical`,e.INFORMATIONAL=`informational`,e.WARNING=`warning`,e.SUCCESSFUL=`successful`,e}({}),W=Object.entries(ye).map(([,e])=>e),be={width:390,height:884},G={width:1920,height:1280},xe=[{name:`desktop`,...G},{name:`tablet`,width:768,height:1024},{name:`mobile`,...be}],Se=`db-ux-framework`,Ce=`db-ux-mode`,we=[`id`,`data-semantic`,`data-size`,`data-emphasis`,`data-placement`,`data-wrap`,`data-label`],Te=(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)(d)(e.wrap,`wrap`),"data-label":e.placement?.startsWith(`corner`)&&(e.label??(0,t.unref)(`LABEL SHOULD BE SET`))},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(r.$slots,`default`)],10,we))}}),Ee=[`inline`,`corner-top-left`,`corner-top-right`,`corner-center-left`,`corner-center-right`,`corner-bottom-left`,`corner-bottom-right`],De=[`data-icon`,`data-show-icon`,`id`],Oe=(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)(d)(e.showIcon,`showIcon`),id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-brand`,n.class))},[(0,t.renderSlot)(a.$slots,`default`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0)],10,De))}}),K=[`id`,`type`,`disabled`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-wrap`,`data-no-text`,`name`,`form`,`value`,`command`,`commandfor`],q=(0,t.defineComponent)({name:`DBButton`,__name:`button`,props:{command:{default:void 0},commandfor:{default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},iconTrailing:{default:void 0},wrap:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(){return n.type?n.type:n.onClick||n.commandfor?`button`:`submit`}function o(e){n.onClick&&n.onClick(e)}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-button`,n.class)),type:a(),disabled:(0,t.unref)(f)(e.disabled,`disabled`),"data-icon":e.iconLeading??e.icon,"data-show-icon":(0,t.unref)(d)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(d)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(d)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-wrap":(0,t.unref)(d)(e.wrap,`wrap`),"data-no-text":(0,t.unref)(d)(e.noText,`noText`),name:e.name,form:e.form,value:e.value,command:e.command,commandfor:e.commandfor,onClick:c[0]||=async e=>o(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`)],10,K))}}),ke=[`outlined`,`brand`,`filled`,`ghost`],Ae=[`button`,`reset`,`submit`],je=[`id`,`data-behavior`,`data-elevation-level`,`data-spacing`],Me=(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,je))}}),Ne=[`static`,`interactive`],Pe=[`1`,`2`,`3`],J=(e,t,n=`value`)=>{e(`update:${n}`,t.target[n])},Fe=(e,t,n)=>{e.form&&!e._dbFormResetListenerAdded&&(e.form.addEventListener(`reset`,e=>{t(e)},{signal:n}),e._dbFormResetListenerAdded=!0)},Ie=(e,t,n,r)=>{Fe(e,r=>{l(()=>{let i=t.checked?t.checked:t.defaultChecked?t.defaultChecked:e.checked;n({...r,target:{...r.target,checked:i}})},1)},r)},Le=(e,t,n,r)=>{Fe(e,r=>{l(()=>{let i=t.value?t.value:t.defaultValue?t.defaultValue:e.value;n({...r,target:{...r.target,value:i}})},1)},r)},Re=[`id`,`data-icon`,`data-semantic`,`data-size`,`data-wrap`,`data-show-icon-leading`],Y=(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)(d)(e.wrap,`wrap`),"data-show-icon-leading":(0,t.unref)(d)(e.showIcon??!0,`showIcon`)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,Re))}}),ze=[`data-size`,`data-hide-asterisk`,`data-hide-label`],Be=[`for`],Ve=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`,`aria-describedby`],He={"data-visually-hidden":`true`,role:`status`},Ue=(0,t.defineComponent)({name:`DBCheckbox`,__name:`checkbox`,props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(!1),u=(0,t.ref)(void 0),d=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(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+F;d.value=e,p.value=u.value+I,m.value=u.value+L,v(o.message,o.showMessage)&&(g.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=!!f(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=!!f(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),Ie(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`?(g.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?(g.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>y.value=``,1e3))):v(o.message,o.showMessage)?g.value=d.value:g.value=void 0}function w(e,t){o.onChange&&o.onChange(e),J(a,e,`checked`),C()}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(){let e=o.id??o.propOverrides?.id??`checkbox-${r}`;u.value=e,d.value=e+F,p.value=e+I,m.value=e+L}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)(_)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(_)(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)(f)(e.checked,`checked`),disabled:(0,t.unref)(f)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(f)(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??g.value},null,40,Ve),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,Be),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{key:0,size:`small`,icon:e.messageIcon,id:d.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)(Y,{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)(Y,{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`,He,(0,t.toDisplayString)(y.value),1)],10,ze))}}),We=[`id`],Ge=(0,t.defineComponent)({name:`DBControlPanelBrand`,__name:`control-panel-brand`,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-control-panel-brand`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,We))}}),Ke=class{addCallback(e){let t=n(),r=this.getCallbacks();return r[t]=e,t}removeCallback(e){let t=this.getCallbacks();delete t[e]}},X=class e extends Ke{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}ticking=!1;constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`scroll`,t=>{this.ticking||=(window.requestAnimationFrame(()=>{e.runCallbacks(t),this.ticking=!1}),!0)},!0)}getCallbacks(){return e.callbacks}},qe=(e,t,n)=>{if(!e||!t)return;let r=e.dataset.width===`full`,i=e.dataset.width===`auto`;e.style.inlineSize=``,e.style.minInlineSize=``;let a=getComputedStyle(e);if(a.zIndex===`9999`||a.position!==`fixed`&&a.position!==`absolute`)return;let{top:o,bottom:s,childHeight:c,childWidth:l,width:u,right:d,left:f,correctedPlacement:p,innerWidth:m}=Je(e,t,n),h=u;if(i){let t=parseFloat(getComputedStyle(e).maxInlineSize);!isNaN(t)&&t>0&&(h=Math.min(u,t))}r?e.style.inlineSize=`${u}px`:i&&(e.style.minInlineSize=`${h}px`);let g=l;i?g=Math.max(l,h):r&&(g=u);let _=p;i&&(_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`)&&f+g>m&&(_=_.startsWith(`top`)?`top-end`:`bottom-end`),_===`top`||_===`bottom`||_===`top-start`||_===`bottom-start`?e.style.insetInlineStart=`${f}px`:(_===`top-end`||_===`bottom-end`)&&(e.style.insetInlineStart=`${Math.max(d-g,0)}px`),_?.startsWith(`top`)?e.style.insetBlockStart=`${o-c}px`:_?.startsWith(`bottom`)&&(e.style.insetBlockStart=`${s}px`),e.style.position=`fixed`},Je=(e,t,n)=>{if(!e||!t)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:n,innerWidth:window.innerWidth,innerHeight:window.innerHeight};let r=e.getBoundingClientRect(),{top:i,height:a,bottom:o,right:s,left:c,width:l}=t.getBoundingClientRect(),{innerHeight:u,innerWidth:d}=window,f=r.height,p=r.width;(n===`bottom`||n===`top`)&&(p=l>p?0:p/2),(n===`left`||n===`right`)&&(f=a>f?0:f/2);let m=Math.floor(o+f)>u,h=Math.ceil(i-f)<0,g=Math.ceil(c-p)<0,_=Math.floor(s+p)>d,v=n;return n.startsWith(`bottom`)?m?h?g?v=`bottom-start`:_&&(v=`bottom-end`):(v=n?.replace(`bottom`,`top`),g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`)):g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`):n.startsWith(`top`)?h?m?g?v=`top-start`:_&&(v=`top-end`):(v=n?.replace(`top`,`bottom`),g&&_?v=`bottom`:g?v=`bottom-start`:_&&(v=`bottom-end`)):g&&_?v=`top`:g?v=`top-start`:_&&(v=`top-end`):n.startsWith(`left`)?g?_||(v=n?.replace(`left`,`right`),m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)):m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`):v.startsWith(`right`)&&(_?g||(v=n?.replace(`right`,`left`),m&&h?v=`left`:m?v=`left-end`:h&&(v=`left-start`)):m&&h?v=`right`:m?v=`right-end`:h&&(v=`right-start`)),{top:i,bottom:o,right:s,height:a,width:l,left:c,childHeight:r.height,childWidth:r.width,correctedPlacement:v,innerWidth:d,innerHeight:u,outsideYBoth:h&&m}},Ye=10,Xe=new WeakMap,Ze=e=>{if(Xe.has(e))return Xe.get(e);let t=e.parentElement,n=0;for(;t&&n<Ye;){if(t.dataset.correctedPlacement)return Xe.set(e,t),t;t=t.parentElement,n+=1}return Xe.set(e,null),null},Qe=(e,t,n)=>{if(!e||!t)return;let r=getComputedStyle(t),i=[`absolute`,`fixed`].includes(r.position),a=Ze(e),o=!a&&!i,s=getComputedStyle(e);if(s.position!==`fixed`&&s.position!==`absolute`)return;let c=s.getPropertyValue(`--db-popover-distance`);c.length||(c=`0px`);let{top:l,height:u,width:d,childHeight:f,childWidth:p,right:m,left:h,bottom:g,correctedPlacement:_,innerWidth:v,innerHeight:y,outsideYBoth:b}=Je(e,t,e?.dataset?.placement??n??`bottom`);if(a){let e=a.getBoundingClientRect();h=Math.abs(h-e.left),m=(d+Math.abs(m-e.right))*1.5,l=Math.abs(l-e.top),g=(u+Math.abs(g-e.bottom))*1.5}if(i&&(h=0,m=d,l=0,g=u,[`auto`,`inherit`,`0`].includes(r.zIndex)&&(t.style.zIndex=`1`)),p>d&&(_.startsWith(`bottom`)||_.startsWith(`top`))){let t=d/2/p*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-inline-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-inline-start`,`50%`)}if(f>u&&(_.startsWith(`left`)||_.startsWith(`bottom`))){let t=u/2/f*100;_.endsWith(`start`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${t}%`):_.endsWith(`end`)?e.style.setProperty(`--db-tooltip-arrow-block-start`,`${100-t}%`):e.style.setProperty(`--db-tooltip-arrow-block-start`,`50%`)}if(e.style.insetBlock=``,e.style.insetInline=``,_===`right`||_===`left`)e.style.insetBlockStart=`${l+u/2}px`;else if(_===`right-start`||_===`left-start`){let t=l+f;e.style.insetBlockStart=`${l}px`,e.style.insetBlockEnd=`${!i&&t>y?y:t}px`}else if(_===`right-end`||_===`left-end`){let t=g-f;e.style.insetBlockStart=`${!i&&t<0?0:t}px`,e.style.insetBlockEnd=`${g}px`}else if(_===`top`||_===`bottom`)e.style.insetInlineStart=`${h+d/2}px`;else if(_===`top-start`||_===`bottom-start`){let t=h+p;e.style.insetInlineStart=`${h}px`,e.style.insetInlineEnd=`${!i&&t>v?v:t}px`}else if(_===`top-end`||_===`bottom-end`){let t=m-p;e.style.insetInlineStart=`${!i&&t<0?0:t}px`,e.style.insetInlineEnd=`${m}px`}if(_?.startsWith(`right`)){let t=m+p;e.style.insetInlineStart=`calc(${m}px + ${c})`,e.style.insetInlineEnd=`calc(${o&&t>v?v:t}px + ${c})`}else if(_?.startsWith(`left`)){let t=h-p;e.style.insetInlineStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetInlineEnd=`calc(${m}px - ${c})`}else if(_?.startsWith(`top`)){let t=l-f;e.style.insetBlockStart=`calc(${o&&t<0?0:t}px - ${c})`,e.style.insetBlockEnd=`calc(${i?t:g}px - ${c})`}else if(_?.startsWith(`bottom`)){let t=g+f;e.style.insetBlockStart=`calc(${i?t:g}px + ${c})`,e.style.insetBlockEnd=`calc(${o&&t>y?y:t}px + ${c})`}b?(e.style.overflow=`hidden auto`,e.style.insetBlock=c,e.style.maxBlockSize=`calc(${y}px - 2 * ${c})`):(e.style.overflow=``,e.style.maxBlockSize=``),e.style.position=`fixed`,e.dataset.correctedPlacement=_,$e(e)},$e=e=>{let{outTop:t,outBottom:n,outLeft:r,outRight:i}=et(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},et=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}},tt=class{observe(e,t){let r=this.getObserver();if(!r)return;let i=n(),a=this.getCallbacksByElement(),o=this.getIdToElement(),s=a.get(e);return s||(s=new Map,a.set(e,s),this.observeElement(r,e)),s.set(i,t),o.set(i,e),i}unobserve(e){let t=this.getCallbacksByElement(),n=this.getIdToElement(),r=this.getObserver(),i=n.get(e);if(!i||!r)return;let a=t.get(i);a&&(a.delete(e),a.size===0&&(t.delete(i),this.unobserveElement(r,i))),n.delete(e)}dispatchEntry(e,t){let n=this.getCallbacksByElement().get(e);n&&n.forEach(e=>{e(t)})}},Z=class e extends tt{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`IntersectionObserver`in window&&(e.observer=new IntersectionObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},Q=class e extends tt{static _instance=null;static callbacksByElement=new Map;static idToElement=new Map;static observer=null;constructor(){if(super(),e._instance)return e._instance;e._instance=this,typeof window<`u`&&`ResizeObserver`in window&&(e.observer=new ResizeObserver(e=>{for(let t of e)this.dispatchEntry(t.target,t)}))}getCallbacksByElement(){return e.callbacksByElement}getIdToElement(){return e.idToElement}getObserver(){return e.observer}observeElement(e,t){e.observe(t)}unobserveElement(e,t){e.unobserve(t)}},nt=[`id`,`data-emphasis`,`data-wrap`,`data-animation`,`data-delay`,`data-width`,`data-show-arrow`,`data-placement`],$=(0,t.defineComponent)({name:`DBTooltip`,__name:`tooltip`,props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(A),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(0),h=(0,t.ref)([]),g=(0,t.ref)(null);(0,t.onMounted)(()=>{w(),o.value=!0}),(0,t.onUnmounted)(()=>{T()}),(0,t.watch)(()=>[r.id,r.propOverrides?.id],()=>{(r.id??r.propOverrides?.id)&&w()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[g.value,o.value,a.value],()=>{if(g.value&&o.value&&a.value){let e=y();if(e){b(e);let t=()=>C(e),n=()=>S(),i=e=>v(e);e.addEventListener(`mouseenter`,t),e.addEventListener(`focusin`,t),e.addEventListener(`keydown`,i),e.addEventListener(`mouseleave`,n),e.addEventListener(`focusout`,n),h.value=[...h.value??[],{parent:e,type:`mouseenter`,fn:t},{parent:e,type:`focusin`,fn:t},{parent:e,type:`keydown`,fn:i},{parent:e,type:`mouseleave`,fn:n},{parent:e,type:`focusout`,fn:n}],e.dataset.hasTooltip=`true`,r.variant===`label`?e.setAttribute(`aria-labelledby`,a.value):e.setAttribute(`aria-describedby`,a.value),f.value=e,p.value=a.value}o.value=!1}},{immediate:!0,flush:`post`});function _(e){e.stopPropagation()}function v(e){(!e||e.key===`Escape`)&&g.value&&getComputedStyle(g.value).visibility===`visible`&&y().blur()}function y(){let e=g.value.parentElement;return e&&e.localName.includes(`tooltip`)&&(e=e.parentElement),e}function b(e){e&&g.value&&l(()=>{g.value&&Qe(g.value,e)},1)}function x(e,t){e?.target?.contains&&e?.target?.contains(g.value)&&b(t)}function S(){m.value=Math.max((m.value??0)-1,0),!((m.value??0)>0)&&(s.value&&=(new X().removeCallback(s.value),void 0),u.value&&=(new Q().unobserve(u.value),void 0),c.value&&=(new Z().unobserve(c.value),void 0))}function C(e){m.value=(m.value??0)+1,m.value===1&&(s.value=new X().addCallback(t=>x(t,e)),u.value=new Q().observe(document.documentElement,()=>b(e)),c.value=new Z().observe(y(),e=>{e.isIntersecting||v(!1)})),b(e)}function w(){a.value=r.id??r.propOverrides?.id??`tooltip-`+n}function T(){let e=s.value;e&&(new X().removeCallback(e),s.value=void 0),u.value&&=(new Q().unobserve(u.value),void 0),c.value&&=(new Z().unobserve(c.value),void 0),m.value=0,(h.value??[]).forEach(e=>{e.parent.removeEventListener(e.type,e.fn)}),h.value=[];let t=f.value;if(t){let e=p.value??a.value,n=t.querySelectorAll(`.db-tooltip`),r=Array.from(n).some(e=>e!==g.value);t.dataset.hasTooltip===`true`&&!r&&delete t.dataset.hasTooltip,t.getAttribute(`aria-labelledby`)===e&&t.removeAttribute(`aria-labelledby`),t.getAttribute(`aria-describedby`)===e&&t.removeAttribute(`aria-describedby`),f.value=void 0,p.value=void 0}}return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{role:`tooltip`,"aria-hidden":`true`,"data-gap":`true`,ref_key:`_ref`,ref:g,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-tooltip`,r.class)),id:a.value,"data-emphasis":e.emphasis,"data-wrap":(0,t.unref)(d)(e.wrap,`wrap`),"data-animation":(0,t.unref)(d)(e.animation??!0,`animation`),"data-delay":e.delay,"data-width":e.width,"data-show-arrow":(0,t.unref)(d)(e.showArrow??!0,`showArrow`),"data-placement":e.placement,onClick:o[0]||=async e=>_(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,nt))}}),rt=[`id`,`data-width`,`data-orientation`,`data-open`],it={class:`db-control-panel-desktop-brand-container`},at={class:`db-control-panel-desktop-button`},ot=[`aria-controls`,`aria-expanded`],st=(0,t.defineComponent)({name:`DBControlPanelDesktop`,__name:`control-panel-desktop`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},width:{default:void 0},brand:{},meta:{},primaryActions:{},secondaryActions:{},skipNavigation:{},orientation:{default:void 0},expanded:{type:[Boolean,String],default:void 0},expandButtonTooltip:{default:void 0},expandButtonTooltipFn:{},onExpandButtonTooltipFn:{type:Function,default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(void 0),o=(0,t.ref)(!0),s=(0,t.ref)(null),c=(0,t.ref)(null);p(),(0,t.watch)(()=>[r.id,r.propOverrides],()=>{p()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.expanded],()=>{r.expanded!==void 0&&(o.value=f(r.expanded,`expanded`)??!0)},{immediate:!0,flush:`post`});function l(e){typeof e.detail!=`object`&&(e.stopPropagation(),o.value=!o.value)}function u(){return r.expandButtonTooltip?r.expandButtonTooltip:(()=>{if(r.onExpandButtonTooltipFn){let e=o.value;return r.onExpandButtonTooltipFn(e)}})()??(o.value?`Collapse`:`Expand`)}function p(){a.value=r.id??r.propOverrides?.id??`db-control-panel-desktop-${n}`}return(n,f)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-desktop`,r.class)),id:a.value,"data-width":e.width,"data-orientation":e.orientation,"data-open":(0,t.unref)(d)(o.value)},[(0,t.renderSlot)(n.$slots,`skip-navigation`),(0,t.createElementVNode)(`div`,it,[(0,t.renderSlot)(n.$slots,`brand`)]),(0,t.createElementVNode)(`div`,{class:`db-control-panel-desktop-scroll-container`,ref_key:`_scrollContainerRef`,ref:c},[(0,t.renderSlot)(n.$slots,`default`),(0,t.renderSlot)(n.$slots,`meta`)],512),(0,t.renderSlot)(n.$slots,`primary-actions`),(0,t.renderSlot)(n.$slots,`secondary-actions`),(0,t.createElementVNode)(`div`,at,[(0,t.createElementVNode)(`button`,{class:`db-button`,"data-variant":`ghost`,"data-no-text":`true`,type:`button`,"data-icon":`double_chevron_left`,onClick:f[0]||=async e=>l(e),"aria-controls":a.value,"aria-expanded":(0,t.unref)(d)(o.value)},[(0,t.createVNode)($,{variant:`label`,placement:`right`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(u()),1)]),_:1})],8,ot)])],10,rt))}}),ct=[`id`,`data-no-text`],lt=(0,t.defineComponent)({name:`DBControlPanelFlatIcon`,__name:`control-panel-flat-icon`,props:{skipNavigation:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},noText:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(null);return(0,t.onUnmounted)(()=>{r.value&&=(new Q().unobserve(r.value),void 0)}),(0,t.watch)(()=>[a.value],()=>{if(a.value&&!r.value){let e=a.value.getAttribute(`data-density`);e&&a.value.setAttribute(`data-initial-density`,e),r.value=new Q().observe(a.value,()=>{if(!a.value)return;let e=u(a.value,`--db-control-panel-flat-icon-mobile`),t=a.value.getAttribute(`data-initial-density`);e?a.value.setAttribute(`data-density`,`regular`):t?a.value.setAttribute(`data-density`,t):a.value.removeAttribute(`data-density`)})}},{immediate:!0,flush:`post`}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,"data-no-text":(0,t.unref)(d)(e.noText,`noText`),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-flat-icon`,n.class))},[(0,t.renderSlot)(r.$slots,`skip-navigation`),(0,t.renderSlot)(r.$slots,`default`)],10,ct))}}),ut=[`id`],dt=(0,t.defineComponent)({name:`DBControlPanelMeta`,__name:`control-panel-meta`,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-control-panel-meta`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,ut))}}),ft=e=>{if(!e||e.dataset.correctedPlacement||getComputedStyle(e).position!==`absolute`)return;e.style.transform=``;let t=e.getBoundingClientRect(),{innerHeight:n,innerWidth:r}=window,i=0,a=0;t.bottom>n&&(i=n-t.bottom),t.top+i<0&&(i=-t.top),t.right>r&&(a=r-t.right),t.left+a<0&&(a=-t.left),i!==0||a!==0?e.style.transform=`translate(${a}px, ${i}px)`:e.style.transform=`translate(0px, 0px)`},pt=e=>{let{target:t}=e;return!!t?.closest(`.db-control-panel-navigation-item`)},mt=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-control-panel-navigation-item-group-menu`)??this.element,this.element.closest(`.db-drawer`)||this.init())}init(){let e=this.parentSubNavigation?.getBoundingClientRect().width??0;this.element?.style.setProperty(`--db-control-panel-navigation-item-inline-size`,`${e}px`),this.initialized=!0}enableFollow(){if(!this.initialized||!this.element||!this.subNavigation)return;let e=this.element.getBoundingClientRect(),t=this.subNavigation.getBoundingClientRect(),n=this.parentSubNavigation?.getBoundingClientRect().width??0,r;r=t.top>=e.bottom-4?`bottom`:t.left>=e.right-4?`right`:`left`,this.triangleData={itemRect:e,parentElementWidth:n,subNavigationHeight:t.height,padding:(n-e.width)/2,openDirection:r}}disableFollow(){this.triangleData=void 0}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;switch(this.triangleData.openDirection){case`left`:return this.mouseX<-1*this.triangleData.padding;case`right`:return this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding;case`bottom`:return this.mouseY>this.triangleData.itemRect.height;default:return this.triangleData.openDirection,!1}}followByMouseEvent(e){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;if(this.mouseX=e.clientX-this.triangleData.itemRect.left,this.mouseY=e.clientY-this.triangleData.itemRect.top,this.hasMouseEnteredSubNavigation()){this.disableFollow();return}let t=this.subNavigation.getBoundingClientRect(),n=t.left-this.triangleData.parentElementWidth,r=this.triangleData.parentElementWidth,i=t.top,a=t.height,o=e.clientX-n,s=Math.max(0,Math.min(100,(e.clientY-i)/a*100)),c;switch(this.triangleData.openDirection){case`right`:c=`${Math.min(o,r-8)}px ${s}%, 100% 0%, 100% 100%`;break;case`left`:c=`0% 0%, ${Math.max(o,8)}px ${s}%, 0% 100%`;break;case`bottom`:c=`${o}px ${s}%, ${r}px 100%, 0px 100%`;break;default:this.triangleData.openDirection,c=`0% 0%, 100% 0%, 100% 100%, 0% 100%`;break}this.element.style.setProperty(`--db-control-panel-navigation-item-clip-path`,`polygon(${c})`)}},ht=10,gt=(e,t,n=!1)=>{if(!e)return;let r=t??parseInt(e.dataset.level??`-1`,10)+1;if(r>=ht)return;let i=e.querySelectorAll(`:scope > .db-control-panel-navigation-item-group, db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group`);for(let e of Array.from(i)){let t=e.querySelector(`:scope > .db-control-panel-navigation-item-group-menu`),i=e.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);if(t&&i){if(u(t,`--db-control-panel-navigation-item-group-menu-mobile`)){t.style.insetBlock=``,t.style.insetInline=``;continue}t.dataset.level=r.toString(),r===0&&(n?(Qe(t,i,`bottom-start`),t.dataset.open=`vertical`):(Qe(t,i,`right-start`),t.dataset.open=`horizontal`)),gt(t,r+1)}}},_t=[`id`],vt=(0,t.defineComponent)({name:`DBDrawerFooter`,__name:`drawer-footer`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-footer`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,_t))}}),yt=[`id`],bt=[`id`],xt={key:0},St=(0,t.defineComponent)({name:`DBDrawerHeader`,__name:`drawer-header`,props:{closeButtonId:{default:void 0},closeButtonText:{default:V},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},startSlot:{},endSlot:{}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(`db-drawer-header-heading-`+n),o=(0,t.ref)(null);(0,t.onMounted)(()=>{s()}),(0,t.onUnmounted)(()=>{c()});function s(){if(o.value){let e=o.value.closest(`dialog`);e&&e.setAttribute(`aria-labelledby`,a.value)}}function c(){if(o.value){let e=o.value.closest(`dialog`);e&&e.getAttribute(`aria-labelledby`)===a.value&&e.removeAttribute(`aria-labelledby`)}}return(n,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-header`,r.class))},[(0,t.createElementVNode)(`header`,{class:`db-drawer-header-container`,id:a.value},[(0,t.renderSlot)(n.$slots,`start-slot`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`h2`,xt,(0,t.toDisplayString)(e.text),1)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],8,bt),(0,t.renderSlot)(n.$slots,`end-slot`),(0,t.createVNode)(q,{"data-action":`close`,icon:`cross`,variant:`ghost`,type:`button`,id:e.closeButtonId,noText:!0},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1),(0,t.createVNode)($,null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.closeButtonText),1)]),_:1})]),_:1},8,[`id`])],10,yt))}}),Ct=[`id`,`data-position`,`data-backdrop`,`data-direction`,`data-variant`],wt=[`data-container-size`,`data-show-spacing`,`data-direction`,`data-rounded`],Tt={class:`db-drawer-content`},Et=(0,t.defineComponent)({name:`DBDrawer`,__name:`drawer`,props:{backdrop:{default:void 0},direction:{default:void 0},header:{},footer:{},showSpacing:{type:[Boolean,String],default:void 0},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},position:{default:void 0},containerSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClose:{type:Function,default:void 0},close:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(void 0),s=(0,t.ref)(null),c=(0,t.ref)(null);(0,t.onMounted)(()=>{h(),r.value=!0}),(0,t.onUnmounted)(()=>{if(o.value!==void 0&&clearTimeout(o.value),s.value&&n.position===`absolute`){let e=s.value.parentElement;e&&(e.style.position=``)}}),(0,t.watch)(()=>[n.open],()=>{h()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[s.value,r.value,n.position],()=>{if(s.value&&r.value&&n.position===`absolute`){let e=s.value.parentElement;e&&(e.style.position=`relative`)}},{immediate:!0,flush:`post`});function u(){return n.position===`absolute`||n.backdrop===`none`||n.variant===`inside`}function p(e){a.value=e?.target?.nodeName===`DIALOG`}function m(e,t){if(e)if(S(e))e.key===`Escape`&&(e.preventDefault(),n.onClose&&n.onClose(e));else{t&&(e.stopPropagation(),n.onClose&&n.onClose(e));let r=e.target?.nodeName===`DIALOG`&&e.type===`click`&&n.backdrop!==`none`&&a.value,i=!!e.target?.closest?.(`[data-action="close"]`);(r||i)&&n.onClose&&n.onClose(e),a.value=!1}}function h(){if(s.value){let e=f(n.open,`open`);if(e&&o.value!==void 0&&(clearTimeout(o.value),o.value=void 0),e&&!s.value.open&&(c.value&&c.value.removeAttribute(`data-transition`),u()?s.value.show():s.value.showModal(),l(()=>{c.value&&(c.value.dataset.transition=`open`)},1)),!e&&s.value.open){c.value&&(c.value.dataset.transition=`close`),o.value!==void 0&&clearTimeout(o.value);let e=0;if(c.value){let t=getComputedStyle(c.value).getPropertyValue(`--db-drawer-close-delay`).trim(),n=parseFloat(t);n>0&&(e=n*1e3+1)}o.value=window.setTimeout(()=>{s.value?.close(),o.value=void 0},e)}}}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`dialog`,{class:`db-drawer`,id:e.id??e.propOverrides?.id,ref_key:`_ref`,ref:s,onClick:a[0]||=async e=>m(e),onMousedown:a[1]||=async e=>p(e),onKeydown:a[2]||=async e=>m(e),"data-position":e.position,"data-backdrop":e.backdrop,"data-direction":e.direction,"data-variant":e.variant},[(0,t.createElementVNode)(`article`,{ref_key:`dialogContainerRef`,ref:c,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-drawer-container`,n.class)),"data-container-size":e.containerSize,"data-show-spacing":(0,t.unref)(d)(e.showSpacing??!0,`showSpacing`),"data-direction":e.direction,"data-rounded":(0,t.unref)(d)(e.rounded,`rounded`)},[(0,t.renderSlot)(r.$slots,`header`),(0,t.createElementVNode)(`div`,Tt,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.renderSlot)(r.$slots,`footer`)],10,wt)],40,Ct))}}),Dt=[`id`,`data-position`],Ot=(0,t.defineComponent)({name:`DBControlPanelMobile`,__name:`control-panel-mobile`,props:{drawerHeaderText:{default:void 0},burgerMenuLabel:{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},toggle:{},onToggle:{type:Function,default:void 0},brand:{},meta:{},primaryActions:{},secondaryActions:{},skipNavigation:{}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);function o(e){e.stopPropagation&&e.stopPropagation();let t=!r.value;r.value=t,n.onToggle&&n.onToggle(t)}function s(e){e.stopPropagation&&e.stopPropagation(),r.value=!1,n.onToggle&&n.onToggle(!1)}function c(e){pt(e)&&s(e)}return(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{"data-density":`regular`,ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,"data-position":e.position,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-mobile`,n.class))},[(0,t.renderSlot)(l.$slots,`skip-navigation`),(0,t.createVNode)(Et,{rounded:!0,open:r.value,onClose:e=>s(e)},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(St,{text:e.drawerHeaderText},null,8,[`text`])]),footer:(0,t.withCtx)(()=>[(0,t.createVNode)(vt,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(l.$slots,`secondary-actions`)]),_:3})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`db-control-panel-mobile-drawer-scroll-container`,onClick:u[0]||=async e=>c(e)},[(0,t.renderSlot)(l.$slots,`default`),(0,t.renderSlot)(l.$slots,`meta`)])]),_:3},8,[`open`,`onClose`]),(0,t.renderSlot)(l.$slots,`brand`),(0,t.renderSlot)(l.$slots,`primary-actions`),(0,t.createVNode)(q,{class:`db-control-panel-mobile-button`,icon:`menu`,type:`button`,variant:`ghost`,noText:!0,onClick:e=>o(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.burgerMenuLabel??(0,t.unref)(`Open navigation menu`)),1)]),_:1},8,[`onClick`])],10,Dt))}}),kt=[`id`,`data-variant`,`data-behavior`,`data-show-tree-line`],At=[`role`],jt=(0,t.defineComponent)({name:`DBControlPanelNavigation`,__name:`control-panel-navigation`,props:{showTreeLine:{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},arrowScrollDistance:{default:void 0},scrollLeftText:{default:void 0},scrollRightText:{default:void 0},variant:{default:void 0},behavior:{default:`multiple`}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(void 0),c=(0,t.ref)(!1),l=(0,t.ref)(void 0),f=(0,t.ref)(void 0),p=(0,t.ref)(null),m=(0,t.ref)(null);(0,t.onMounted)(()=>{c.value=!0}),(0,t.onUnmounted)(()=>{l.value&&=(new Q().unobserve(l.value),void 0),f.value?.disconnect(),f.value=void 0}),(0,t.watch)(()=>[p.value,c.value],()=>{p.value&&c.value&&(s.value=u(p.value,`--db-control-panel-navigation-horizontal`)?`top`:`left`,h())},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[m.value,n.variant,s.value,o.value,n.behavior],()=>{if(m.value){let e=m.value;if(!n.variant||n.variant===`popover`||o.value){for(let t of Array.from(e.querySelectorAll(`.db-control-panel-navigation-item-group-menu[role="group"]`)))t.removeAttribute(`role`);e.removeAttribute(`aria-label`),e.removeAttribute(`role`);for(let t of Array.from(e.querySelectorAll(`.db-control-panel-navigation-item[role="none"], .db-control-panel-navigation-item-group[role="none"]`))){t.removeAttribute(`role`);let e=t.querySelector(`[role="treeitem"]`);e&&(e.removeAttribute(`role`),e.removeAttribute(`tabindex`))}b()}else if(n.variant===`tree`){for(let t of Array.from(e.querySelectorAll(`.db-control-panel-navigation-item-group-menu`)))t.style.position=``,t.setAttribute(`role`,`group`);let t=p.value?.getAttribute(`aria-label`);t&&e.setAttribute(`aria-label`,t);let r=[];for(let t of Array.from(e.querySelectorAll(`.db-control-panel-navigation-item, .db-control-panel-navigation-item-group`))){t.setAttribute(`role`,`none`);let e=t.querySelector(`a, button`);e&&(e.setAttribute(`role`,`treeitem`),e.setAttribute(`tabindex`,`-1`),r.push(e))}r.length>0&&r[0].setAttribute(`tabindex`,`0`),n.behavior===`single`&&g()}}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[m.value,s.value],()=>{s.value&&(b(),_(m.value),l.value||=new Q().observe(m.value,()=>{_(m.value),b()}))},{immediate:!0,flush:`post`});function h(){o.value=u(p.value,`--db-control-panel-sub-navigation-mobile`)}function g(){if(!m.value)return;let e=!1,t=new MutationObserver(t=>{if(!e){for(let n of t)if(n.type===`attributes`&&n.attributeName===`aria-expanded`){let t=n.target,r=t.getAttribute(`aria-expanded`);if(r===n.oldValue||r!==`true`)continue;let i=t.closest(`.db-control-panel-navigation-item-group`),a=i?.closest(`menu, .db-control-panel-navigation-item-group-menu`)??i?.parentElement;if(a){let n=a.querySelectorAll(`:scope > .db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group-expand-button, :scope > db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group-expand-button`);e=!0;for(let e of Array.from(n))if(e!==t&&e.getAttribute(`aria-expanded`)===`true`){let t=e;t.dataset.isCollapsing===`true`?t.removeAttribute(`data-is-collapsing`):(t.dataset.isCollapsing=`true`,t.dispatchEvent(new MouseEvent(`click`,{bubbles:!1,cancelable:!0})))}e=!1}}}}),n=m.value.querySelectorAll(`.db-control-panel-navigation-item-group-expand-button`);for(let e of Array.from(n))t.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:[`aria-expanded`]});f.value=t}function _(e){if(!e)return;let t=e.scrollWidth>e.clientWidth,n=Math.ceil(e.scrollLeft);r.value=t&&n>1,a.value=t&&n<e.scrollWidth-e.clientWidth}function v(e){let t=Number(n.arrowScrollDistance)||100;e&&(t*=-1),m.value?.scrollBy({top:0,left:t,behavior:`smooth`})}function y(){_(m.value),b()}function b(){gt(m.value,0,s.value===`top`)}function x(e){m.value&&(n.variant===`tree`?T(e):n.variant===`popover`&&w(e))}function S(e){let t=(e?.closest(`.db-control-panel-navigation-item-group-menu`))?.closest(`.db-control-panel-navigation-item-group`);if(t){let n=t.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);if(n)return e.setAttribute(`tabindex`,`-1`),n.setAttribute(`tabindex`,`0`),n.focus(),!0}return!1}function C(e){let t=e.closest(`.db-control-panel-navigation-item-group`);if(t){let e=t.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);e&&(e.click(),e.focus())}}function w(e){let t=m.value,n=document.activeElement;if(!n)return;let r=e.key,i=`:scope > .db-control-panel-navigation-item > a, :scope > .db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group-expand-button, :scope > db-control-panel-navigation-item > .db-control-panel-navigation-item > a, :scope > db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group > .db-control-panel-navigation-item-group-expand-button`,a=n.closest(`.db-control-panel-navigation-item-group-menu`),o=!a,c=o&&s.value===`top`,l=o?t:a,u=Array.from(l.querySelectorAll(i)),d=u.indexOf(n),f=c?`ArrowLeft`:`ArrowUp`,p=c?`ArrowRight`:`ArrowDown`,h=c?`ArrowDown`:`ArrowRight`,g=c?`ArrowUp`:`ArrowLeft`;if(n.closest(`.db-control-panel-navigation-item-group-back-button`)&&!o){r===p?(e.preventDefault(),u[0]?.focus()):r===f&&(e.preventDefault(),u[u.length-1]?.focus());return}if(r===p)if(e.preventDefault(),d===-1)u[0]?.focus();else if(d<u.length-1)u[d+1]?.focus();else if(o)u[0]?.focus();else{let e=a.querySelector(`:scope > .db-control-panel-navigation-item-group-back-button button`);e&&e.offsetParent!==null?e.focus():C(a)}else if(r===f)if(e.preventDefault(),d>0)u[d-1]?.focus();else if(o)u[u.length-1]?.focus();else{let e=a.querySelector(`:scope > .db-control-panel-navigation-item-group-back-button button`);e&&e.offsetParent!==null?e.focus():C(a)}else if(r===h){let t=n.closest(`.db-control-panel-navigation-item-group`);if(t){e.preventDefault();let n=t.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);n&&n.getAttribute(`aria-expanded`)!==`true`&&n.click();let r=t.querySelector(`:scope > .db-control-panel-navigation-item-group-menu`);if(r){let e=r.querySelector(i);e&&e.focus()}}}else r===g||r===`Escape`?o||(e.preventDefault(),C(a)):r===`Home`?(e.preventDefault(),u[0]?.focus()):r===`End`&&(e.preventDefault(),u[u.length-1]?.focus())}function T(e){let t=m.value,n=Array.from(t.querySelectorAll(`[role="treeitem"]`));if(n.length===0)return;let r=n.filter(e=>{let t=e.closest(`.db-control-panel-navigation-item-group-menu`);return!t||(t.closest(`.db-control-panel-navigation-item-group`)?.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`))?.getAttribute(`aria-expanded`)===`true`});if(r.length===0)return;let i=document.activeElement,a=r.indexOf(i),o=e.key,s=-1;if(o===`ArrowDown`)e.preventDefault(),s=a<r.length-1?a+1:0;else if(o===`ArrowUp`)e.preventDefault(),s=a>0?a-1:r.length-1;else if(o===`Home`)e.preventDefault(),s=0;else if(o===`End`)e.preventDefault(),s=r.length-1;else if(o===`ArrowRight`){e.preventDefault();let t=i?.closest(`.db-control-panel-navigation-item-group`);if(t){let e=t.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);if(e===i&&e.getAttribute(`aria-expanded`)!==`true`)e.click();else if(e?.getAttribute(`aria-expanded`)===`true`){let e=t.querySelector(`:scope > .db-control-panel-navigation-item-group-menu`)?.querySelector(`[role="treeitem"]`);if(e){i.setAttribute(`tabindex`,`-1`),e.setAttribute(`tabindex`,`0`),e.focus();return}}}}else if(o===`ArrowLeft`){e.preventDefault();let t=i?.closest(`.db-control-panel-navigation-item-group`);if(t){let e=t.querySelector(`:scope > .db-control-panel-navigation-item-group-expand-button`);if(e===i&&e.getAttribute(`aria-expanded`)===`true`)e.click();else if(S(i))return}else if(S(i))return}else if(o===`Escape`){e.preventDefault(),i?.blur();return}else return;s>=0&&s<r.length&&(i?.setAttribute(`tabindex`,`-1`),r[s].setAttribute(`tabindex`,`0`),r[s].focus())}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{ref_key:`_ref`,ref:p,id:e.id??e.propOverrides?.id,"data-variant":e.variant,"data-behavior":e.behavior,"data-show-tree-line":(0,t.unref)(d)(e.showTreeLine??`true`,`showTreeLine`),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-navigation`,n.class))},[r.value?((0,t.openBlock)(),(0,t.createBlock)(q,{key:0,class:`overflow-scroll-left-button`,variant:`filled`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>v(!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollLeftText??(0,t.unref)(`Scroll left`)),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`menu`,{role:e.variant===`tree`?`tree`:void 0,ref_key:`menuRef`,ref:m,onScroll:s[0]||=async e=>y(),onKeydown:s[1]||=async e=>x(e)},[(0,t.renderSlot)(o.$slots,`default`)],40,At),a.value?((0,t.openBlock)(),(0,t.createBlock)(q,{key:1,class:`overflow-scroll-right-button`,variant:`filled`,icon:`chevron_right`,type:`button`,noText:!0,onClick:e=>v()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollRightText??(0,t.unref)(`Scroll right`)),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0)],10,kt))}}),Mt=[`id`,`role`,`data-icon`,`data-show-icon`,`data-active`,`aria-disabled`],Nt={class:`db-control-panel-navigation-item-end-slot-container`},Pt=(0,t.defineComponent)({name:`DBControlPanelNavigationItem`,__name:`control-panel-navigation-item`,props:{active:{type:Boolean,default:void 0},tooltip:{default:void 0},endSlot:{},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},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(void 0),o=(0,t.ref)(void 0),s=(0,t.ref)(void 0),c=(0,t.ref)(!1),l=(0,t.ref)(null);return(0,t.onMounted)(()=>{c.value=!0}),(0,t.onUnmounted)(()=>{s.value?.disconnect(),s.value=void 0}),(0,t.watch)(()=>[l.value,c.value],()=>{if(!c.value||!l.value||s.value)return;let e=l.value.getAttribute(`role`)??void 0;e!==o.value&&(o.value=e);let t=new MutationObserver(e=>{for(let t of e)if(t.attributeName===`role`){let e=l.value.getAttribute(`role`)??void 0;e!==o.value&&(o.value=e)}});t.observe(l.value,{attributes:!0,attributeFilter:[`role`]}),s.value=t},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[l.value,n.tooltip,n.text],()=>{if(n.tooltip)r.value=n.tooltip;else if(n.text)r.value=n.text;else if(l.value){let e=l.value.querySelector(`a`);e&&(r.value=e.textContent)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[l.value,n.disabled],()=>{if(l.value){let e=l.value.querySelector(`a`);if(e)if(f(n.disabled,`disabled`)){let t=e.getAttribute(`href`);t!==null&&(a.value=t),e.removeAttribute(`href`),e.setAttribute(`tabindex`,`-1`),e.setAttribute(`aria-disabled`,`true`)}else a.value&&=(e.setAttribute(`href`,a.value),void 0),e.removeAttribute(`tabindex`),e.removeAttribute(`aria-disabled`)}},{immediate:!0,flush:`post`}),(a,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:l,id:e.id??e.propOverrides?.id,role:o.value,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-navigation-item`,n.class)),"data-icon":e.icon,"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`),"data-active":(0,t.unref)(d)(e.active,`active`),"aria-disabled":(0,t.unref)(d)(e.disabled,`disabled`)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`),(0,t.createElementVNode)(`div`,Nt,[(0,t.renderSlot)(a.$slots,`end-slot`)]),r.value?((0,t.openBlock)(),(0,t.createBlock)($,{key:1,placement:`right`,delay:`slow`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.value),1)]),_:1})):(0,t.createCommentVNode)(``,!0)],10,Mt))}}),Ft=[`id`,`role`,`data-icon`,`data-show-icon`,`data-active`,`aria-disabled`],It=[`aria-haspopup`,`aria-controls`,`aria-expanded`,`disabled`],Lt={class:`db-control-panel-navigation-item-group-expand-button-end-slot-container`},Rt=[`data-force-close`,`id`],zt={class:`db-control-panel-navigation-item-group-back-button`},Bt=(0,t.defineComponent)({name:`DBControlPanelNavigationItemGroup`,__name:`control-panel-navigation-item-group`,props:{expanded:{type:[Boolean,String],default:void 0},menuId:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},onClick:{type:Function,default:void 0},click:{},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},active:{type:Boolean,default:void 0},tooltip:{},endSlot:{},text:{default:void 0},disabled:{type:[Boolean,String],default:void 0}},setup(e){let n=(0,t.useId)(),r=e;(0,t.ref)(!0);let a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(!1),p=(0,t.ref)(!1),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(0,t.ref)(`db-control-panel-navigation-item-group-menu-`+n),_=(0,t.ref)(void 0),v=(0,t.ref)(void 0),y=(0,t.ref)(!1),b=(0,t.ref)(void 0),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null);(0,t.onMounted)(()=>{c.value=!0}),(0,t.onUnmounted)(()=>{j(),O(!1),h.value?.disconnect(),h.value=void 0}),(0,t.watch)(()=>[x.value,c.value],()=>{if(!c.value||!x.value||h.value)return;let e=x.value.getAttribute(`role`)??void 0;e!==m.value&&(m.value=e);let t=new MutationObserver(e=>{for(let t of e)if(t.attributeName===`role`){let e=x.value.getAttribute(`role`)??void 0;e!==m.value&&(m.value=e)}});t.observe(x.value,{attributes:!0,attributeFilter:[`role`]}),h.value=t},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[r.expanded],()=>{r.expanded!==void 0&&(a.value=!!f(r.expanded,`expanded`))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,c.value],()=>{x.value&&c.value&&(c.value=!1,s.value=u(x.value,`--db-control-panel-navigation-item-group-menu-popover`),S.value&&(p.value=u(S.value,`--db-control-panel-navigation-item-group-menu-mobile`)))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[p.value,a.value],()=>{if(p.value&&a.value){if(O(!0),S.value){let e=S.value.querySelector(`.db-control-panel-navigation-item a`);e&&e.focus()}}else O(!1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[x.value,S.value,C.value,s.value],()=>{x.value&&C.value&&S.value&&s.value&&(b.value||=new mt(x.value,S.value),k(),_.value||=new Z().observe(C.value,e=>{e.isIntersecting||P()}),v.value||=new Q().observe(document.documentElement,()=>{S.value&>(S.value)})),s.value||j()},{immediate:!0,flush:`post`});function w(){s.value&&(a.value=!0)}function T(e){if(!s.value)return;let t=e.relatedTarget;(!t||!x.value.contains(t))&&(a.value=!1)}function E(){s.value&&(S.value&&(gt(S.value),ft(S.value),$e(S.value)),a.value=!0)}function D(){s.value&&(a.value=!1)}function O(e){if(!x.value||!S.value)return;let t=x.value.parentElement;if(t){let n=t.children;for(let t=0;t<n.length;t++){let r=n[t];r!==x.value&&(e?r.setAttribute(`inert`,``):r.removeAttribute(`inert`))}}C.value&&(e?C.value.setAttribute(`inert`,``):C.value.removeAttribute(`inert`));let n=x.value.closest(`.db-control-panel-mobile-drawer-scroll-container`);if(n){let t=x.value.closest(`.db-control-panel-navigation`),r=n.children;for(let n=0;n<r.length;n++){let i=r[n];i!==t&&(e?i.setAttribute(`inert`,``):i.removeAttribute(`inert`))}}}function k(){y.value||!x.value||(x.value.addEventListener(`mouseenter`,E),x.value.addEventListener(`mouseleave`,D),x.value.addEventListener(`focusin`,w),x.value.addEventListener(`focusout`,T),y.value=!0)}function A(){!y.value||!x.value||(x.value.removeEventListener(`mouseenter`,E),x.value.removeEventListener(`mouseleave`,D),x.value.removeEventListener(`focusin`,w),x.value.removeEventListener(`focusout`,T),a.value=!1,y.value=!1)}function j(){A(),b.value=void 0,_.value&&=(new Z().unobserve(_.value),void 0),v.value&&=(new Q().unobserve(v.value),void 0)}function M(){s.value&&S.value&>(S.value)}function N(e){e?.target?.nodeName===`A`&&P()}function P(){o.value=!0,l(()=>{o.value=!1},300)}function ee(e){s.value||(a.value=!a.value),r.onClick&&(e.stopPropagation(),r.onClick(e))}function F(e){e.stopPropagation(),a.value=!1,l(()=>{C.value&&C.value.focus()},1)}function I(e){(!e||e.key===`Escape`)&&(P(),C.value.blur())}return(n,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{ref_key:`_ref`,ref:x,id:e.id??e.propOverrides?.id,role:m.value,onMouseover:c[3]||=async e=>b.value?.enableFollow(),onMouseleave:c[4]||=async e=>b.value?.disableFollow(),onMousemove:c[5]||=async e=>b.value?.followByMouseEvent(e),onKeydown:c[6]||=async e=>I(e),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-navigation-item-group`,r.class)),"data-icon":e.icon,"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`),"data-active":(0,t.unref)(d)(e.active,`active`),"aria-disabled":(0,t.unref)(d)(e.disabled,`disabled`)},[(0,t.createElementVNode)(`button`,{type:`button`,class:`db-control-panel-navigation-item-group-expand-button`,ref_key:`_buttonRef`,ref:C,"aria-haspopup":(0,t.unref)(d)(s.value?!0:void 0),"aria-controls":e.menuId??g.value,"aria-expanded":(0,t.unref)(d)(a.value),disabled:(0,t.unref)(f)(e.disabled,`disabled`),onClick:c[0]||=async e=>ee(e)},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text)+` `,1),(0,t.createElementVNode)(`div`,Lt,[(0,t.renderSlot)(n.$slots,`end-slot`)])],8,It),(0,t.createElementVNode)(`menu`,{class:`db-control-panel-navigation-item-group-menu`,ref_key:`_menuRef`,ref:S,"data-force-close":(0,t.unref)(d)(o.value),id:e.menuId??g.value,onScroll:c[1]||=async e=>M(),onClick:c[2]||=async e=>N(e)},[(0,t.createElementVNode)(`li`,zt,[(0,t.createVNode)(q,{icon:`arrow_left`,variant:`ghost`,id:e.backButtonId,onClick:e=>F(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.backButtonText??(0,t.unref)(`Back`)),1)]),_:1},8,[`id`,`onClick`])]),(0,t.renderSlot)(n.$slots,`default`)],40,Rt)],42,Ft))}}),Vt=[`id`],Ht=(0,t.defineComponent)({name:`DBControlPanelPrimaryActions`,__name:`control-panel-primary-actions`,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-control-panel-primary-actions`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Vt))}}),Ut=[`id`],Wt=(0,t.defineComponent)({name:`DBControlPanelSecondaryActions`,__name:`control-panel-secondary-actions`,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-control-panel-secondary-actions`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Ut))}}),Gt=[`id`],Kt=[`href`],qt=(0,t.defineComponent)({name:`DBControlPanelSkipNavigation`,__name:`control-panel-skip-navigation`,props:{text:{default:void 0},target:{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`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-control-panel-skip-navigation`,n.class))},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,href:`#${e.target??(0,t.unref)(`main-content`)}`},(0,t.toDisplayString)(e.text),9,Kt)):(0,t.renderSlot)(a.$slots,`default`,{key:1})],10,Gt))}}),Jt=[`id`,`data-icon`,`data-show-icon`,`data-icon-trailing`,`data-show-icon-trailing`,`data-size`,`data-width`,`data-variant`,`data-no-text`],Yt=(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)(d)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(d)(e.showIcon,`showIcon`),"data-icon-trailing":e.iconTrailing,"data-show-icon-trailing":(0,t.unref)(d)(e.showIconTrailing,`showIconTrailing`),"data-size":e.size,"data-width":e.width,"data-variant":e.variant,"data-no-text":(0,t.unref)(d)(e.noText,`noText`)},[(0,t.renderSlot)(a.$slots,`default`)],10,Jt))}}),Xt=class e extends Ke{static callbacks={};static _instance=null;static runCallbacks(t){for(let n of Object.values(e.callbacks))typeof n==`function`&&n(t)}constructor(){if(super(),e._instance)return e._instance;e._instance=this,self.document&&self.document.addEventListener(`click`,t=>e.runCallbacks(t))}getCallbacks(){return e.callbacks}},Zt=[`id`,`data-width`],Qt=(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,Zt))}}),$t=[`id`,`data-divider`],en=[`data-icon`,`data-show-icon`,`data-icon-trailing`],tn=[`type`,`name`,`form`,`checked`,`disabled`,`value`],nn={class:`db-custom-select-list-item-label`},rn={key:1},an=(0,t.defineComponent)({name:`DBCustomSelectListItem`,__name:`custom-select-list-item`,props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=n,a=e,o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.watch)(()=>[a.isGroupTitle,a.showDivider],()=>{o.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:`post`});function c(e){e.stopPropagation(),a.onChange&&a.onChange(e),J(r,e,`checked`)}function l(){if(!(a.isGroupTitle||a.type===`checkbox`))return f(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)(d)(o.value,`hasDivider`)},[e.isGroupTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rn,(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)(d)(e.showIcon,`showIcon`),"data-icon-trailing":l()},[(0,t.createElementVNode)(`input`,{class:`db-custom-select-list-item-checkbox`,"data-disable-focus":`true`,type:e.type,name:e.name,form:e.name,checked:(0,t.unref)(f)(e.checked,`checked`),disabled:(0,t.unref)(f)(e.disabled,`disabled`),value:e.value,onChange:r[0]||=async e=>c(e)},null,40,tn),(0,t.createElementVNode)(`span`,nn,[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,en))],10,$t))}}),on=[`role`,`aria-label`,`id`],sn=(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,on))}}),cn=[`data-variant`,`data-hide-label`,`data-show-icon`,`data-icon`,`data-icon-trailing`,`data-hide-asterisk`,`data-show-icon-trailing`],ln=[`for`],un=`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(`.`),dn=[`id`],fn=[`value`],pn={"data-visually-hidden":`true`,role:`status`},mn=(0,t.defineComponent)({name:`DBInput`,__name:`input`,props:{dataList:{default:void 0},dataListId:{default:void 0},multiple:{type:[Boolean,String],default:void 0},accept:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},enterkeyhint:{default:void 0},inputmode:{default:void 0},messageSize:{default:void 0},validMessageSize:{default:void 0},invalidMessageSize:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String],default:void 0},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},iconLeading:{default:void 0},showIconLeading:{type:[Boolean,String],default:void 0},showIconTrailing:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),o=n,u=e,g=(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)(()=>{te(),S.value=u.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{D.value?.abort()}),(0,t.watch)(()=>[u.id,u.propOverrides?.id],()=>{(u.id??u.propOverrides?.id)&&te()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value,u.invalidMessage],()=>{S.value=u.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[g.value],()=>{if(g.value){let e=g.value+F;y.value=e,b.value=g.value+I,x.value=g.value+L,C.value=u.dataListId??g.value+`-datalist`,v(u.message,u.showMessage)&&(w.value=e),A()}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[u.value],()=>{T.value=u.value},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[O.value],()=>{if(O.value){let e=D.value;e||(e=new AbortController,D.value=e),Le(O.value,{value:u.value,defaultValue:void 0},e=>{M(e,!0),j(e,!0)},e.signal)}},{immediate:!0,flush:`post`});function k(){return!!(u.validMessage??u.validation===`valid`)}function A(){!O.value?.validity.valid||u.validation===`invalid`?(w.value=x.value,S.value=u.invalidMessage||O.value?.validationMessage||`TODO: Add an invalidMessage`,s()&&(E.value=S.value,l(()=>E.value=``,1e3))):k()&&O.value?.validity.valid&&(u.required||u.minLength||u.maxLength||u.pattern)?(w.value=b.value,s()&&(E.value=u.validMessage??`TODO: Add a validMessage`,l(()=>E.value=``,1e3))):v(u.message,u.showMessage)?w.value=y.value:w.value=void 0}function j(e,t){u.input&&u.input(e),T.value=e.target.value,u.onInput&&u.onInput(e),J(o,e),A()}function M(e,t){u.onChange&&u.onChange(e),J(o,e),A()}function N(e){u.onBlur&&u.onBlur(e)}function P(e){u.onFocus&&u.onFocus(e)}function ee(){let e=u.dataList;return Array.from((a(e)?e?.map(e=>({value:e,label:void 0})):e)||[])}function te(){let e=u.id??u.propOverrides?.id??`input-${r}`;g.value=e,y.value=e+F,b.value=e+I,x.value=e+L,C.value=e+R}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-input`,u.class)),"data-variant":e.variant,"data-hide-label":(0,t.unref)(_)(e.showLabel),"data-show-icon":(0,t.unref)(d)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(d)(e.showIcon,`showIcon`),"data-icon":e.iconLeading??e.icon,"data-icon-trailing":e.iconTrailing,"data-hide-asterisk":(0,t.unref)(_)(e.showRequiredAsterisk),"data-show-icon-trailing":(0,t.unref)(d)(e.showIconTrailing,`showIconTrailing`)},[(0,t.createElementVNode)(`label`,{for:g.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,ln),(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:g.value,name:e.name,type:e.type||`text`,multiple:(0,t.unref)(f)(e.multiple,`multiple`),accept:e.accept,placeholder:e.placeholder??(0,t.unref)(` `),disabled:(0,t.unref)(f)(e.disabled,`disabled`),required:(0,t.unref)(f)(e.required,`required`),step:(0,t.unref)(m)(e.step),value:e.value??T.value??``,maxLength:(0,t.unref)(p)(e.maxLength,e.maxlength),minLength:(0,t.unref)(p)(e.minLength,e.minlength),max:(0,t.unref)(h)(e.max,e.type),min:(0,t.unref)(h)(e.min,e.type),readOnly:(0,t.unref)(f)(e.readOnly,`readOnly`)||(0,t.unref)(f)(e.readonly,`readonly`)||void 0,form:e.form,pattern:e.pattern,size:e.size,autoComplete:e.autocomplete,autoFocus:(0,t.unref)(f)(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=>N(e),onFocus:r[3]||=async e=>P(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,un),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)(ee(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:C.value+`-option-`+e.value,value:e.value},(0,t.toDisplayString)(e.label),9,fn))),128))],8,dn)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{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)(Y,{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)(Y,{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`,pn,(0,t.toDisplayString)(E.value),1)],10,cn))}}),hn=[`id`,`data-semantic`,`data-emphasis`,`data-icon`,`data-show-check-state`,`data-show-icon`,`data-no-text`,`data-overflow`],gn=(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)(d)(e.showCheckState??!0,`showCheckState`),"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`),"data-no-text":(0,t.unref)(d)(e.noText,`noText`),"data-overflow":(0,t.unref)(d)(e.overflow,`overflow`)},[(0,t.renderSlot)(s.$slots,`content`),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(s.$slots,`default`),e.behavior===`removable`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`db-button db-tab-remove-button`,"data-icon":`cross`,"data-size":`small`,"data-no-text":`true`,"data-variant":`ghost`,type:`button`,onClick:c[0]||=async e=>a(e)},[(0,t.createVNode)($,{variant:`label`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o()),1)]),_:1})])):(0,t.createCommentVNode)(``,!0)],10,hn))}}),_n=[`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`],vn=[`id`],yn=[`id`,`form`,`name`,`data-custom-validity`,`multiple`,`disabled`,`required`],bn=[`disabled`,`value`],xn=[`open`],Sn=[`id`,`aria-disabled`,`tabIndex`,`aria-labelledby`],Cn=[`data-visually-hidden`,`id`],wn={key:0,"data-visually-hidden":`true`},Tn={key:1},En={key:0},Dn={key:0},On={class:`db-checkbox db-custom-select-list-item`},kn=[`form`,`checked`],An=[`id`],jn={"data-visually-hidden":`true`,role:`status`},Mn=(0,t.defineComponent)({name:`DBCustomSelect`,__name:`custom-select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},amountText:{default:void 0},listLabel:{default:void 0},clearSelectionText:{default:`Clear selection`},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchFilter:{type:Function,default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},searchValue:{default:void 0},selectAllLabel:{default:void 0},selectedLabels:{default:void 0},selectedPrefix:{default:void 0},selectedType:{default:void 0},showClearSelection:{type:Boolean,default:!0},showLoading:{type:Boolean,default:void 0},showNoResults:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},showSelectAll:{type:Boolean,default:void 0},transformSelectedLabels:{type:Function,default:void 0},values:{default:void 0},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},onSearch:{type:Function,default:void 0},search:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:[`update:values`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(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),N=(0,t.ref)(!1),R=(0,t.ref)(0),z=(0,t.ref)([]),B=(0,t.ref)([]),re=(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)(void 0),de=(0,t.ref)(!1),V=(0,t.ref)(!1),fe=(0,t.ref)(null),H=(0,t.ref)(null),U=(0,t.ref)(null),pe=(0,t.ref)(null),me=(0,t.ref)(null);(0,t.onMounted)(()=>{Le(),h.value=o.invalidMessage||`TODO: Add an invalidMessage`}),(0,t.onUnmounted)(()=>{E.value?.abort(),ae.value&&new Xt().removeCallback(ae.value),se.value&&new X().removeCallback(se.value),le.value&&new Q().unobserve(le.value),ce.value&&new Z().unobserve(ce.value)}),(0,t.watch)(()=>[o.id,o.propOverrides?.id],()=>{(o.id??o.propOverrides?.id)&&Le()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[H.value],()=>{H.value&&H.value.addEventListener(`focusout`,e=>De(e))},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[c.value],()=>{if(c.value){let e=c.value+F;b.value=c.value+P,g.value=c.value+ee,p.value=c.value+I,m.value=c.value+L,S.value=c.value+te,v(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&&(re.value=B.value.length===0):re.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],()=>{N.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&&_e()},{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;Fe(U.value,()=>{K(t||(U.value.value?[U.value.value]:[])),_e()},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?(de.value=!1,V.value=!1):z.value?.length===R.value?(V.value=!1,de.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,H.value?.open&&we()},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.searchValue],()=>{if(ue.value=o.searchValue,o.searchValue){let e=o.searchValue;Ne(e)}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[o.options,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} ${ie}`: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,pe.value],()=>{pe.value&&(pe.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 he(e){e?.target?.contains&&e?.target?.contains(H.value)&&we()}function ge(){return!!(o.validMessage??o.validation===`valid`)}function _e(){U.value&&(U.value.value=ye()),!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`)):ge()&&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`):v(o.message,o.showMessage)?(W(u.value),w.value=o.validation??`no-validation`):(W(S.value),w.value=o.validation??`no-validation`)}function ve(e){o.onDropdownToggle&&(e.stopPropagation(),o.onDropdownToggle(e)),e.target instanceof HTMLDetailsElement&&e.target.open?(ae.value=new Xt().addCallback(e=>Oe(e)),se.value=new X().addCallback(e=>he(e)),we(),le.value=new Q().observe(document.documentElement,()=>we()),ce.value=new Z().observe(H.value,e=>{!e.isIntersecting&&H.value.open&&(H.value.open=!1)}),e.target.dataset.test||Me()):(ae.value&&new Xt().removeCallback(ae.value),se.value&&new X().removeCallback(se.value),le.value&&new Q().unobserve(le.value),ce.value&&new Z().unobserve(ce.value))}function ye(){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 be(){return o.selectAllLabel??`LABEL SHOULD BE SET`}function G(e){return e.label??e.value?.toString()??``}function xe(e){return e&&z.value?.includes?z.value?.includes(e):!1}function Se(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 Ce(e,t){t&&t.stopPropagation(),ke(e.value),Ie()}function we(){if(H.value){let e=H.value.querySelector(`article`);e&&l(()=>{qe(e,H.value,o.placement??`bottom`)},1)}}function Te(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||je(t)}else{let e=n?.previousElementSibling;for(;e;){let t=e.querySelector(`input`);if(t){t.focus();break}e=e.previousElementSibling}if(!e){let e=H.value.querySelector(`input[type="checkbox"]`);if(e&&e!==t)je(t);else{let e=y(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`)?(De(void 0,!0),Ie()):je(t)}}else(e.key===`ArrowDown`||e.key===`ArrowRight`)&&(we(),H.value&&(H.value.open=!0),Me());e.stopPropagation(),e.preventDefault()}function Ee(e){if(e.stopPropagation(),e.key===`Escape`&&H.value?.open)De(void 0,!0),Ie();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&&(ke(t.value),e.preventDefault())}}}else(e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`ArrowRight`)&&Te(e)}function De(e,t){if(H.value){if(t)H.value.open=!1,Ie();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 Oe(e){if(e){let t=e.target;H.value?.open&&!H.value.contains(t)&&(H.value.open=!1)}}function K(e){new Date().getTime()-oe.value<200||(z.value=e,T.value=!0,o.onOptionSelected&&o.onOptionSelected(e??[]),J(a,{target:{values:e}},`values`),oe.value=new Date().getTime())}function ke(e){e&&(o.multiple?z.value?.includes(e)?K(z.value.filter(t=>t!==e)):K([...z.value||[],e]):(K([e]),De(void 0,!0)))}function Ae(e){if(e.stopPropagation(),z.value?.length===R.value)K([]);else{let e=N.value&&me.value?me.value.value:void 0;K(o.options?o.options.filter(t=>!t.isGroupTitle&&(!e||t.value?.toLowerCase().includes(e.toLowerCase()))).map(e=>e.value??``):[])}}function je(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 Me(){if(H.value){let e=y(H.value);e?l(()=>{e.focus()},1):je()}}function Ne(e){if(e===void 0)return;let t;if(typeof e==`string`)t=e;else{let n=e;n.stopPropagation(),o.onSearch&&o.onSearch(n),t=n.target.value,ue.value=t}!o.options||!t||t.length===0?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())),H.value?.open&&we()}function Pe(e){e.stopPropagation(),K([]),Ie()}function Ie(){H.value&&H.value.querySelector(`summary`)?.focus()}function Le(){let e=o.id??o.propOverrides?.id??`custom-select-${r}`;c.value=e,u.value=e+F,p.value=e+I,m.value=e+L,g.value=e+ee,b.value=e+P,x.value=e+`-summary`,S.value=e+te,k.value=e+`-selected-labels`,C.value=e+`-info`}function Re(e){e.stopPropagation()}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:c.value,ref_key:`_ref`,ref:fe,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)(d)(e.required,`required`),"data-hide-asterisk":(0,t.unref)(_)(e.showRequiredAsterisk),"data-placement":e.placement,"data-selected-type":e.multiple?e.selectedType:`text`,"data-hide-label":(0,t.unref)(_)(e.showLabel),"data-icon":e.icon,"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{id:b.value},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),1),(0,t.createElementVNode)(`select`,{role:`none`,hidden:!0,id:g.value,tabIndex:-1,ref_key:`selectRef`,ref:U,form:e.form,name:e.name,"data-custom-validity":w.value,multiple:(0,t.unref)(f)(e.multiple,`multiple`),disabled:(0,t.unref)(f)(e.disabled,`disabled`),required:(0,t.unref)(f)(e.required,`required`),onChange:r[0]||=async e=>Re(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,bn))),128)):(0,t.createCommentVNode)(``,!0)],40,yn)],8,vn),(0,t.createElementVNode)(`details`,{ref_key:`detailsRef`,ref:H,open:e.open,onToggle:r[2]||=async e=>ve(e),onKeydown:r[3]||=async e=>Ee(e)},[(0,t.renderSlot)(n.$slots,`default`),e.options?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`summary`,{class:`db-custom-select-form-field`,id:x.value,"aria-disabled":(0,t.unref)(d)(e.disabled,`disabled`),tabIndex:e.disabled?-1:void 0,"aria-labelledby":b.value},[O.value?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,"data-visually-hidden":(0,t.unref)(d)(e.selectedType===`tag`,`selectedType`),id:k.value},[e.selectedPrefix?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,wn,(0,t.toDisplayString)(e.selectedPrefix),1)):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(O.value),1)],8,Cn)):(0,t.createCommentVNode)(``,!0),e.selectedType===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(j.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(gn,{key:n,emphasis:`strong`,behavior:`removable`,removeButton:Se(e),onRemove:t=>Ce(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,Sn),(0,t.createVNode)(Qt,{width:e.dropdownWidth},{default:(0,t.withCtx)(()=>[N.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,En,[(0,t.createVNode)(mn,{type:`search`,ref_key:`searchInputRef`,ref:me,name:c.value,form:c.value,showLabel:!1,value:ue.value,label:e.searchLabel??(0,t.unref)(`LABEL SHOULD BE SET`),placeholder:e.searchPlaceholder??e.searchLabel,ariaDescribedBy:re.value||e.showLoading?C.value:void 0,onInput:e=>Ne(e)},null,8,[`name`,`form`,`value`,`label`,`placeholder`,`ariaDescribedBy`,`onInput`])])):(0,t.createCommentVNode)(``,!0),re.value||e.showLoading?((0,t.openBlock)(),(0,t.createBlock)(Y,{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`,Dn,[(0,t.createElementVNode)(`div`,On,[(0,t.createElementVNode)(`label`,null,[(0,t.createElementVNode)(`input`,{type:`checkbox`,value:`select-all`,ref_key:`selectAllRef`,ref:pe,form:c.value,checked:de.value,onChange:r[1]||=async e=>Ae(e)},null,40,kn),(0,t.createTextVNode)((0,t.toDisplayString)(be()),1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(sn,{multiple:(0,t.unref)(f)(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)(an,{key:r,type:e.multiple?`checkbox`:`radio`,showDivider:n.showDivider,icon:n.icon,isGroupTitle:n.isGroupTitle,groupTitle:G(n),name:c.value,checked:xe(n.value),disabled:n.disabled,value:n.value,onChange:e=>ke(n.value)},{default:(0,t.withCtx)(()=>[n.isGroupTitle?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(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)(q,{variant:`ghost`,width:`full`,icon:`cross`,size:`small`,name:c.value,form:c.value,onClick:e=>De(void 0,!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.mobileCloseButtonText??(0,t.unref)(`Close`)),1)]),_:1},8,[`name`,`form`,`onClick`])])]),_:1},8,[`width`])],64)):(0,t.createCommentVNode)(``,!0)],40,xn),(e.showClearSelection??!0)&&z.value?.length?((0,t.openBlock)(),(0,t.createBlock)(q,{key:0,icon:`cross`,variant:`ghost`,size:`small`,noText:!0,name:c.value,form:c.value,disabled:(0,t.unref)(f)(e.disabled,`disabled`),onClick:e=>Pe(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1),(0,t.createVNode)($,{placement:`top`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.clearSelectionText),1)]),_:1})]),_:1},8,[`name`,`form`,`disabled`,`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`db-custom-select-placeholder`,"aria-hidden":`true`,id:S.value},(0,t.toDisplayString)(e.placeholder??e.label),9,An),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{key:1,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),ge()?((0,t.openBlock)(),(0,t.createBlock)(Y,{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)(Y,{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`,jn,(0,t.toDisplayString)(A.value),1)],10,_n))}}),Nn=[`fixed`,`auto`,`full`],Pn=[`id`],Fn=(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,Pn))}}),In=[`checkbox`,`radio`],Ln=[`amount`,`text`,`tag`],Rn=[`id`,`data-margin`,`data-variant`,`data-emphasis`,`data-width`],zn=(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,Rn))}}),Bn=[`none`,`_`],Vn=[`horizontal`,`vertical`],Hn=[`none`,`strong`,`weak`,`invisible`],Un=[`to-left`,`to-right`,`up`,`down`],Wn=[`modal`,`inside`],Gn=[`fixed`,`absolute`],Kn=[`small`,`medium`,`large`,`full`],qn=[`id`,`data-width`,`data-on-forcing-mobile`],Jn={class:`db-header-meta-navigation`},Yn={class:`db-header-navigation-bar`},Xn={class:`db-header-brand-container`},Zn={class:`db-header-navigation-container`},Qn={class:`db-header-navigation`},$n={class:`db-header-primary-action`},er={class:`db-header-action-container`},tr={class:`db-header-burger-menu-container`},nr={class:`db-header-secondary-action`},rr={class:`db-header-drawer-navigation`},ir={class:`db-header-meta-navigation`},ar={class:`db-header-secondary-action`},or=(0,t.defineComponent)({name:`DBHeader`,__name:`header`,props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},drawerHeaderText:{default:void 0},burgerMenuLabel:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(e){let n=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(null);(0,t.onMounted)(()=>{a.value=!0}),(0,t.watch)(()=>[a.value,s.value],()=>{a.value&&s.value&&n.forceMobile&&(r(s.value,{key:`data-force-mobile`,value:`true`}),o.value=!0)},{immediate:!0,flush:`post`});function c(e){e&&e.stopPropagation&&e.stopPropagation();let t=!f(n.drawerOpen,`drawerOpen`);n.onToggle&&n.onToggle(t)}function l(e){pt(e)&&c()}return(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,{ref_key:`_ref`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-header`,n.class)),id:e.id??e.propOverrides?.id,"data-width":e.width,"data-on-forcing-mobile":e.forceMobile&&!o.value},[(0,t.createElementVNode)(`div`,Jn,[(0,t.renderSlot)(r.$slots,`meta-navigation`)]),(0,t.createElementVNode)(`div`,Yn,[(0,t.createElementVNode)(`div`,Xn,[(0,t.renderSlot)(r.$slots,`brand`)]),(0,t.createElementVNode)(`div`,Zn,[(0,t.createElementVNode)(`div`,Qn,[(0,t.renderSlot)(r.$slots,`default`)]),(0,t.createElementVNode)(`div`,$n,[(0,t.renderSlot)(r.$slots,`primary-action`)])]),(0,t.createElementVNode)(`div`,er,[(0,t.createElementVNode)(`div`,tr,[(0,t.createVNode)(q,{icon:`menu`,variant:`ghost`,noText:!0,onClick:e=>c()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.burgerMenuLabel??(0,t.unref)(`Open navigation menu`)),1)]),_:1},8,[`onClick`])]),(0,t.createElementVNode)(`div`,nr,[(0,t.renderSlot)(r.$slots,`secondary-action`)])])]),(0,t.createVNode)(Et,{rounded:!0,open:(0,t.unref)(f)(e.drawerOpen),onClose:e=>c()},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(St,{closeButtonId:e.closeButtonId,closeButtonText:e.closeButtonText,text:e.drawerHeaderText},null,8,[`closeButtonId`,`closeButtonText`,`text`])]),footer:(0,t.withCtx)(()=>[(0,t.createVNode)(vt,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ar,[(0,t.renderSlot)(r.$slots,`secondary-action`)])]),_:3})]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,rr,[(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`,ir,[(0,t.renderSlot)(r.$slots,`meta-navigation`)])])]),_:3},8,[`open`,`onClose`])],10,qn))}}),sr=[`id`,`data-icon`,`data-icon-weight`,`data-icon-variant`],cr=(0,t.defineComponent)({name:`DBIcon`,__name:`icon`,props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},icon:{default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{"aria-hidden":`true`,ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-icon`,n.class)),"data-icon":e.icon,"data-icon-weight":e.weight,"data-icon-variant":e.variant},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`default`)],10,sr))}}),lr=[`16`,`20`,`24`,`32`,`48`,`64`],ur=[`color`,`date`,`datetime-local`,`email`,`file`,`hidden`,`month`,`number`,`password`,`range`,`search`,`tel`,`text`,`time`,`url`,`week`],dr=[`id`,`href`,`target`,`rel`,`role`,`referrerPolicy`,`hrefLang`,`aria-disabled`,`tabIndex`,`data-size`,`data-show-icon-trailing`,`data-variant`,`data-content`,`data-wrap`],fr=(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)(d)(e.disabled,`disabled`),tabIndex:e.disabled?-1:0,"data-size":e.size,"data-show-icon-trailing":(0,t.unref)(d)(e.showIcon??!0,`showIcon`),"data-variant":e.variant,"data-content":e.content||`internal`,"data-wrap":(0,t.unref)(d)(e.wrap,`wrap`),onClick:s[0]||=async e=>a(e)},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)],10,dr))}}),pr=[`adaptive`,`brand`,`inline`],mr=[`medium`,`small`],hr=[`external`,`internal`],gr=[`id`],_r=(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,gr))}}),vr=[`id`,`data-width`,`data-icon`,`data-show-icon`,`data-active`,`data-wrap`,`aria-disabled`],yr=[`id`,`aria-haspopup`,`aria-expanded`,`aria-controls`,`disabled`],br=[`id`,`aria-labelledby`,`data-force-close`],xr={key:0,class:`db-mobile-navigation-back`},Sr=(0,t.defineComponent)({name:`DBNavigationItem`,__name:`navigation-item`,props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},hideSubNavigation:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},icon:{default:void 0},width:{default:void 0},wrap:{type:[Boolean,String],default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(!0),c=(0,t.ref)(!1),u=(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=!!f(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 mt(g.value,e)):s.value=!1)}},{immediate:!0,flush:`post`});function _(e){e?.target?.nodeName===`A`&&(u.value=!0,l(()=>{u.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)(d)(e.showIcon,`showIcon`),"data-active":e.active,"data-wrap":(0,t.unref)(d)(e.wrap,`wrap`),"aria-disabled":(0,t.unref)(d)(e.disabled,`disabled`)},[!(0,t.unref)(f)(e.hideSubNavigation,`hideSubNavigation`)&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`button`,{class:`db-navigation-item-expand-button`,id:h.value,"aria-haspopup":o.value?`true`:void 0,"aria-expanded":c.value,"aria-controls":m.value,disabled:(0,t.unref)(f)(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,yr),(0,t.createElementVNode)(`menu`,{class:`db-sub-navigation`,id:m.value,"aria-labelledby":h.value,"data-force-close":u.value,onClick:a[1]||=async e=>_(e)},[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xr,[(0,t.createVNode)(q,{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,br)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(n.$slots,`default`,{key:1})],64))],42,vr))}}),Cr=[`id`,`role`,`aria-live`,`data-semantic`,`data-variant`,`data-icon`,`data-show-icon`,`data-link-variant`],wr={key:0,"data-area":`head`},Tr={"data-area":`content`},Er=[`dateTime`],Dr=(0,t.defineComponent)({name:`DBNotification`,__name:`notification`,props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},timestampDatetime:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},role:{default:void 0},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);function a(e){e&&(e.stopPropagation(),n.onClose&&n.onClose(e))}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-notification`,n.class)),role:(0,t.unref)(C)({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)(f)(e.showIcon)===!1?void 0:e.icon,"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`),"data-link-variant":e.linkVariant},[(0,t.renderSlot)(o.$slots,`image`),(0,t.unref)(v)(e.headline,e.showHeadline)?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,wr,(0,t.toDisplayString)(e.headline),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Tr,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`default`)]),(0,t.unref)(v)(e.timestamp,e.showTimestamp)?((0,t.openBlock)(),(0,t.createElementBlock)(`time`,{key:1,"data-area":`timestamp`,dateTime:e.timestampDatetime},(0,t.toDisplayString)(e.timestamp),9,Er)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(o.$slots,`link`),(0,t.unref)(f)(e.closeable,`closeable`)?((0,t.openBlock)(),(0,t.createBlock)(q,{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,Cr))}}),Or=[`docked`,`standalone`,`overlay`],kr=[`block`,`inline`],Ar=[`assertive`,`polite`,`off`],jr=[`id`,`data-variant`,`data-fade-in`,`data-fonts-loaded`],Mr=(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)(d)(e.fadeIn,`fadeIn`),"data-fonts-loaded":(0,t.unref)(d)(r.value,`fontsLoaded`)},[(0,t.renderSlot)(o.$slots,`header`),(0,t.createElementVNode)(`main`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-main`,e.mainClass))},[(0,t.renderSlot)(o.$slots,`default`)],2),(0,t.renderSlot)(o.$slots,`footer`)],10,jr))}}),Nr=[`auto`,`fixed`],Pr=[`hidden`,`auto`],Fr=[`id`],Ir=[`data-spacing`,`data-gap`,`data-animation`,`data-open`,`data-delay`,`data-width`,`data-placement`],Lr=(0,t.defineComponent)({name:`DBPopover`,__name:`popover`,props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(!1),o=(0,t.ref)(void 0),s=(0,t.ref)(void 0),c=(0,t.ref)(void 0),u=(0,t.ref)(null);(0,t.onMounted)(()=>{r.value=!0}),(0,t.onUnmounted)(()=>{o.value&&=(new X().removeCallback(o.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0),s.value&&=(new Z().unobserve(s.value),void 0)}),(0,t.watch)(()=>[u.value,r.value],()=>{if(u.value&&r.value){r.value=!1;let e=_();e&&(e.ariaHasPopup=`true`),p(),u.value.addEventListener(`keydown`,e=>f(e)),[`mouseenter`,`focusin`].forEach(e=>{u.value.addEventListener(e,()=>h())}),[`mouseleave`,`focusout`].forEach(e=>{u.value.addEventListener(e,()=>g())})}},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[u.value,a.value],()=>{if(u.value){let e=_();e&&(e.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:`post`});function f(e){if(!e||e.key===`Escape`)for(let e of Array.from(u.value.children))e.blur()}function p(){if(!u.value)return;let e=u.value.querySelector(`article`);e&&l(()=>{Qe(e,u.value)},1)}function m(e){e?.target?.contains&&e?.target?.contains(u.value)&&p()}function h(){a.value=!0,o.value&&=(new X().removeCallback(o.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0),s.value&&=(new Z().unobserve(s.value),void 0),o.value=new X().addCallback(e=>m(e)),p(),c.value=new Q().observe(document.documentElement,()=>p());let e=_();e&&(s.value=new Z().observe(e,e=>{e.isIntersecting||f(!1)}))}function g(e){let t=e?.target;(!t?.parentNode||t.parentNode.querySelector(`:focus`)!==t&&t.parentNode.querySelector(`:focus-within`)!==t&&t.parentNode.querySelector(`:hover`)!==t)&&(a.value=!1,o.value&&=(new X().removeCallback(o.value),void 0),c.value&&=(new Q().unobserve(c.value),void 0),s.value&&=(new Z().unobserve(s.value),void 0))}function _(){if(u.value){let e=Array.from(u.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:u,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)(d)(e.gap,`gap`),"data-animation":(0,t.unref)(d)(e.animation??!0,`animation`),"data-open":(0,t.unref)(d)(e.open,`open`),"data-delay":e.delay,"data-width":e.width,"data-placement":e.placement},[(0,t.renderSlot)(r.$slots,`default`)],8,Ir)],10,Fr))}}),Rr=[`data-size`,`data-hide-label`,`data-hide-asterisk`,`for`],zr=[`aria-invalid`,`data-custom-validity`,`id`,`name`,`checked`,`disabled`,`value`,`required`],Br=(0,t.defineComponent)({name:`DBRadio`,__name:`radio`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,s=(0,t.ref)(!1),c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),d=(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,d.value,o.checked],()=>{o.checked&&s.value&&d.value&&(d.value.checked=!0)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[d.value],()=>{if(d.value){let e=u.value;e||(e=new AbortController,u.value=e),Fe(d.value,e=>{l(()=>{let t=o.checked?o.checked:d.value.checked,n={...e,target:{...e.target,value:``,checked:t}};m(n,!0),p(n,!0)},1)},e.signal)}},{immediate:!0,flush:`post`});function p(e,t){o.input&&o.input(e),o.onInput&&o.onInput(e),J(a,e)}function m(e,t){o.onChange&&o.onChange(e),J(a,e)}function h(e){o.onBlur&&o.onBlur(e)}function g(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)(_)(e.showLabel),"data-hide-asterisk":(0,t.unref)(_)(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:d,id:c.value,name:e.name,checked:(0,t.unref)(f)(e.checked,`checked`),disabled:(0,t.unref)(f)(e.disabled,`disabled`),value:e.value,required:(0,t.unref)(f)(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=>g(e)},null,40,zr),e.label?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,Rr))}}),Vr=[`id`,`data-spacing`,`data-width`],Hr=(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,Vr))}}),Ur=[`data-variant`,`data-hide-label`,`data-hide-asterisk`,`data-icon`,`data-show-icon`],Wr=[`for`],Gr=[`aria-invalid`,`data-custom-validity`,`required`,`disabled`,`id`,`name`,`size`,`value`,`autocomplete`,`multiple`,`aria-describedby`],Kr=[`data-show-empty-option`],qr=[`label`],Jr=[`value`,`selected`,`disabled`],Yr=[`value`,`disabled`,`selected`],Xr=[`id`],Zr={"data-visually-hidden":`true`,role:`status`},Qr=(0,t.defineComponent)({name:`DBSelect`,__name:`select`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},onClick:{type:Function,default:void 0},click:{},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showEmptyOption:{type:Boolean,default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(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,P(),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)&&P()},{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+F,t=c.value+te;u.value=e,p.value=c.value+I,m.value=c.value+L,g.value=t,v(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),Le(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))):v(o.message,o.showMessage)?y.value=u.value:o.placeholder?y.value=g.value:y.value=void 0}function D(e){o.onClick&&o.onClick(e)}function O(e,t){o.input&&o.input(e),b.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),E()}function k(e,t){o.onChange&&o.onChange(e),J(a,e),E()}function A(e){o.onBlur&&o.onBlur(e)}function j(e){o.onFocus&&o.onFocus(e)}function M(e){return e.label??e.value?.toString()}function N(){return o.variant===`floating`||o.placeholder?o.showEmptyOption===void 0?!o.required:o.showEmptyOption:!1}function P(){let e=o.id??o.propOverrides?.id??`select-${r}`;c.value=e,u.value=e+F,p.value=e+I,m.value=e+L,g.value=e+te}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)(_)(e.showLabel),"data-hide-asterisk":(0,t.unref)(_)(e.showRequiredAsterisk),"data-icon":e.icon,"data-show-icon":(0,t.unref)(d)(e.showIcon,`showIcon`)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,Wr),(0,t.createElementVNode)(`select`,{"aria-invalid":e.validation===`invalid`,"data-custom-validity":e.validation,ref_key:`_ref`,ref:w,required:(0,t.unref)(f)(e.required,`required`),disabled:(0,t.unref)(f)(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)(d)(N(),`showEmptyOption`)},null,8,Kr)):(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,Jr))),128))],8,qr)):((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:1,value:e.value,disabled:e.disabled,selected:e.selected},(0,t.toDisplayString)(M(e)),9,Yr))],64))),128)):(0,t.renderSlot)(n.$slots,`default`,{key:2})],40,Gr),e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`db-select-placeholder`,id:g.value},(0,t.toDisplayString)(e.placeholder),9,Xr)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{key:1,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),T()?((0,t.openBlock)(),(0,t.createBlock)(Y,{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)(Y,{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`,Zr,(0,t.toDisplayString)(S.value),1)],10,Ur))}}),$r=[`id`,`data-control-panel-desktop-position`,`data-control-panel-mobile-position`,`data-sub-navigation-desktop-position`,`data-sub-navigation-mobile-position`,`data-show-sub-navigation`,`data-fade-in`,`data-fonts-loaded`],ei=(0,t.defineComponent)({name:`DBShell`,__name:`shell`,props:{controlPanelDesktopPosition:{default:void 0},controlPanelMobilePosition:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},subNavigationDesktopPosition:{default:void 0},subNavigationMobilePosition:{default:void 0},showSubNavigation:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(!1),a=(0,t.ref)(null);return(0,t.onMounted)(()=>{let e=f(n.fadeIn,`fadeIn`);r.value=!e,document&&e?document.fonts?.ready?.then(()=>{r.value=!0}).catch(()=>{r.value=!0}):r.value=!0}),(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-shell`,n.class)),"data-control-panel-desktop-position":e.controlPanelDesktopPosition??`top`,"data-control-panel-mobile-position":e.controlPanelMobilePosition??`top`,"data-sub-navigation-desktop-position":e.subNavigationDesktopPosition??`top`,"data-sub-navigation-mobile-position":e.subNavigationMobilePosition??`top`,"data-show-sub-navigation":(0,t.unref)(d)(e.showSubNavigation,`showSubNavigation`),"data-fade-in":(0,t.unref)(d)(e.fadeIn,`fadeIn`),"data-fonts-loaded":(0,t.unref)(d)(r.value)},[(0,t.renderSlot)(o.$slots,`default`)],10,$r))}}),ti=[`id`,`data-variant`],ni=[`id`,`aria-label`],ri=(0,t.defineComponent)({name:`DBShellContent`,__name:`shell-content`,props:{mainClass:{default:void 0},mainId:{default:void 0},mainLabel:{default:void 0},variant:{default:`auto`},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},startSlot:{},endSlot:{}},setup(e){let n=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-shell-content`,n.class)),"data-variant":e.variant},[(0,t.renderSlot)(a.$slots,`start-slot`),(0,t.createElementVNode)(`main`,{id:e.mainId??(0,t.unref)(`main-content`),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-main`,e.mainClass)),"aria-label":e.mainLabel},[(0,t.renderSlot)(a.$slots,`default`)],10,ni),(0,t.renderSlot)(a.$slots,`end-slot`)],10,ti))}}),ii=[`auto`,`fixed`],ai=[`id`,`data-open`],oi={class:`db-shell-sub-navigation-button`},si=[`aria-controls`,`aria-expanded`],ci=(0,t.defineComponent)({name:`DBShellSubNavigation`,__name:`shell-sub-navigation`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},expanded:{type:[Boolean,String],default:void 0},expandButtonTooltip:{default:void 0},expandButtonTooltipFn:{},onExpandButtonTooltipFn:{type:Function,default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(`db-shell-sub-navigation-${n}`),o=(0,t.ref)(!0),s=(0,t.ref)(null);r.expanded!==void 0&&(o.value=f(r.expanded,`expanded`)??!0);function c(e){e.stopPropagation(),o.value=!o.value}function l(){return r.expandButtonTooltip?r.expandButtonTooltip:(()=>{if(r.onExpandButtonTooltipFn){let e=o.value;return r.onExpandButtonTooltipFn(e)}})()??(o.value?`Collapse`:`Expand`)}return(n,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(`aside`,{ref_key:`_ref`,ref:s,id:e.id??e.propOverrides?.id??a.value,"data-open":(0,t.unref)(d)(o.value),class:(0,t.normalizeClass)((0,t.unref)(i)(`db-shell-sub-navigation`,r.class))},[(0,t.renderSlot)(n.$slots,`default`),(0,t.createElementVNode)(`div`,oi,[(0,t.createElementVNode)(`button`,{class:`db-button`,"data-variant":`ghost`,"data-no-text":`true`,"data-icon":`double_chevron_left`,onClick:u[0]||=async e=>c(e),"aria-controls":e.id??e.propOverrides?.id??a.value,"aria-expanded":(0,t.unref)(d)(o.value)},[(0,t.createVNode)($,{variant:`label`,placement:`right`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(l()),1)]),_:1})],8,si)])],10,ai))}}),li=[`top`,`bottom`,`none`],ui=[`id`,`data-gap`,`data-variant`,`data-direction`,`data-alignment`,`data-justify-content`,`data-wrap`],di=(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)(d)(e.wrap,`wrap`)},[(0,t.renderSlot)(a.$slots,`default`)],10,ui))}}),fi=[`simple`,`divider`],pi=[`row`,`column`],mi=[`stretch`,`start`,`end`,`center`],hi=[`space-between`,`start`,`end`,`center`],gi=[`data-visual-aid`,`data-size`,`data-hide-label`,`data-variant`,`data-hide-asterisk`,`data-custom-validity`],_i=[`for`],vi=[`id`,`checked`,`value`,`disabled`,`aria-invalid`,`aria-describedby`,`name`,`required`,`data-aid-icon`,`data-aid-icon-trailing`],yi={"data-visually-hidden":`true`,role:`status`},bi=(0,t.defineComponent)({name:`DBSwitch`,__name:`switch`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0},icon:{default:void 0},iconTrailing:{default:void 0},iconLeading:{default:void 0},visualAid:{type:[Boolean,String],default:void 0},variant:{default:void 0}},emits:[`update:checked`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),p=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(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),Ie(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`){g.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){g.value=p.value,s()&&(y.value=o.validMessage??`TODO: Add a validMessage`,l(()=>{y.value=``},1e3));return}if(v(o.message,o.showMessage)){g.value=u.value;return}g.value=void 0}function w(e,t){o.onChange&&o.onChange(e),C(),J(a,e,`checked`)}function T(e){o.onBlur&&o.onBlur(e)}function E(e){o.onFocus&&o.onFocus(e)}function D(e){e.key===`Enter`&&(e.preventDefault(),o.disabled||x.value?.click())}function O(){let e=o.id??o.propOverrides?.id??`switch-${r}`;c.value=e,u.value=`${e}${F}`,p.value=`${e}${I}`,m.value=`${e}${L}`}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-visual-aid":(0,t.unref)(d)(e.visualAid,`visualAid`),"data-size":e.size,"data-hide-label":(0,t.unref)(_)(e.showLabel),"data-variant":e.variant,"data-hide-asterisk":(0,t.unref)(_)(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)(f)(e.checked,`checked`),value:e.value,disabled:(0,t.unref)(f)(e.disabled,`disabled`),"aria-invalid":e.validation===`invalid`?`true`:void 0,"aria-describedby":g.value,name:e.name,required:(0,t.unref)(f)(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,vi),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,_i),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{key:0,size:`small`,semantic:`adaptive`,id:u.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)(Y,{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)(Y,{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`,yi,(0,t.toDisplayString)(y.value),1)],10,gi))}}),xi=[`for`,`data-icon`,`data-icon-trailing`,`data-show-icon`,`data-show-icon-trailing`,`data-no-text`],Si=[`disabled`,`aria-selected`,`checked`,`name`,`id`],Ci=(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),u=(0,t.ref)(void 0),p=(0,t.ref)(null);(0,t.onMounted)(()=>{u.value=m,c.value=!0}),(0,t.onUnmounted)(()=>{l.value&&p.value&&u.value&&(p.value.closest(`[role=tablist]`)?.removeEventListener(`change`,u.value),l.value=!1)}),(0,t.watch)(()=>[p.value,c.value,u.value],()=>{p.value&&c.value&&u.value&&(c.value=!1,l.value||=(p.value.closest(`[role=tablist]`)?.addEventListener(`change`,u.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),J(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)(d)(e.showIconLeading,`showIconLeading`)||(0,t.unref)(d)(e.showIcon,`showIcon`),"data-show-icon-trailing":(0,t.unref)(d)(e.showIconTrailing,`showIconTrailing`),"data-no-text":(0,t.unref)(d)(e.noText,`noText`)},[(0,t.createElementVNode)(`input`,{type:`radio`,role:`tab`,disabled:(0,t.unref)(f)(e.disabled,`disabled`),"aria-selected":o.value,checked:(0,t.unref)(f)(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,Si),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,xi)],2))}}),wi=[`id`],Ti={role:`tablist`},Ei=(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`,Ti,[(0,t.renderSlot)(a.$slots,`default`)])],10,wi))}}),Di=[`id`],Oi=(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,Di))}}),ki=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`colSpan`,`rowSpan`,`headers`],Ai=(0,t.defineComponent)({name:`DBTableDataCell`,__name:`table-data-cell`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-data-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,colSpan:(0,t.unref)(p)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(p)(e.rowSpan,e.rowspan),headers:e.headers},[(0,t.renderSlot)(a.$slots,`default`)],10,ki))}}),ji=[`id`,`data-horizontal-alignment`,`data-vertical-alignment`,`data-no-text`,`scope`,`colSpan`,`rowSpan`,`headers`,`abbr`],Mi=(0,t.defineComponent)({name:`DBTableHeaderCell`,__name:`table-header-cell`,props:{abbr:{default:void 0},scope:{default:void 0},noText:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},colSpan:{default:void 0},colspan:{default:void 0},headers:{default:void 0},rowSpan:{default:void 0},rowspan:{default:void 0},horizontalAlignment:{default:void 0},verticalAlignment:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-header-cell`,n.class)),"data-horizontal-alignment":e.horizontalAlignment,"data-vertical-alignment":e.verticalAlignment,"data-no-text":(0,t.unref)(d)(e.noText),scope:e.scope,colSpan:(0,t.unref)(p)(e.colSpan,e.colspan),rowSpan:(0,t.unref)(p)(e.rowSpan,e.rowspan),headers:e.headers,abbr:e.abbr},[(0,t.renderSlot)(a.$slots,`default`)],10,ji))}}),Ni=[`id`,`data-interactive`,`data-sub-header-emphasis`],Pi=(0,t.defineComponent)({name:`DBTableRow`,__name:`table-row`,props:{cells:{default:void 0},subHeaderEmphasis:{default:void 0},interactive:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){if(e.headerCell)return e}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-row`,r.class)),"data-interactive":(0,t.unref)(d)(e.interactive),"data-sub-header-emphasis":e.subHeaderEmphasis},[e.cells?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.cells,(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[r.headerCell?((0,t.openBlock)(),(0,t.createBlock)(Mi,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-header-cell-${i}`,id:r.id,abbr:o(r)?.abbr,scope:o(r)?.scope,noText:o(r)?.noText,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(fr,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`abbr`,`scope`,`noText`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`])):((0,t.openBlock)(),(0,t.createBlock)(Ai,{key:`${r.id??e.id??(0,t.unref)(n)}-table-row-data-cell-${i}`,id:r.id,className:r.className??r.class,horizontalAlignment:r.horizontalAlignment,verticalAlignment:r.verticalAlignment,headers:r.headers,colSpan:r.colSpan,colspan:r.colspan,rowSpan:r.rowSpan,rowspan:r.rowspan},{default:(0,t.withCtx)(()=>[r.link?((0,t.openBlock)(),(0,t.createBlock)(fr,{key:0,content:r.link?.content,size:r.link?.size,variant:r.link?.variant,className:r.link?.className??r.link?.class,id:r.link?.id,autofocus:r.link?.autofocus,disabled:r.link?.disabled,href:r.link?.href,hreflang:r.link?.hreflang,target:r.link?.target,rel:r.link?.rel,referrerPolicy:r.link?.referrerPolicy,role:r.link?.role,showIcon:r.link?.showIcon,text:r.link?.text,wrap:r.link?.wrap},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.link?.children),1)]),_:2},1032,[`content`,`size`,`variant`,`className`,`id`,`autofocus`,`disabled`,`href`,`hreflang`,`target`,`rel`,`referrerPolicy`,`role`,`showIcon`,`text`,`wrap`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r.content),1)],64))]),_:2},1032,[`id`,`className`,`horizontalAlignment`,`verticalAlignment`,`headers`,`colSpan`,`colspan`,`rowSpan`,`rowspan`]))],64))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,Ni))}}),Fi=[`id`],Ii=(0,t.defineComponent)({name:`DBTableBody`,__name:`table-body`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tbody`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-body`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Pi,{key:`${r.id??e.id??(0,t.unref)(n)}-table-body-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,Fi))}}),Li=[`id`],Ri=(0,t.defineComponent)({name:`DBTableFooter`,__name:`table-footer`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tfoot`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-footer`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Pi,{key:`${r.id??e.id??(0,t.unref)(n)}-table-footer-row-${i}`,cells:r.cells,className:r.className??r.class,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`interactive`,`id`]))),128)):(0,t.renderSlot)(o.$slots,`default`,{key:1})],10,Li))}}),zi=[`id`],Bi=(0,t.defineComponent)({name:`DBTableHead`,__name:`table-head`,props:{rows:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=(0,t.useId)(),r=e,a=(0,t.ref)(null);function o(e){return e?.map(e=>({...e,headerCell:!0}))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`thead`,{ref_key:`_ref`,ref:a,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-head`,r.class))},[e.rows?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.rows,(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(Pi,{key:`${r.id??e.id??(0,t.unref)(n)}-table-head-row-${i}`,cells:o(r.cells),className:r.className??r.class,subHeaderEmphasis:r.subHeaderEmphasis,interactive:r.interactive,id:r.id},null,8,[`cells`,`className`,`subHeaderEmphasis`,`interactive`,`id`]))),128)):(0,t.renderSlot)(s.$slots,`default`,{key:1})],10,zi))}}),Vi=[`data-width`,`data-size`,`data-divider`,`data-variant`,`data-mobile-variant`,`data-show-caption`,`data-sticky-header`],Hi=[`id`],Ui={key:0},Wi=(0,t.defineComponent)({name:`DBTable`,__name:`table`,props:{caption:{},captionPlain:{default:void 0},data:{default:void 0},divider:{default:void 0},showCaption:{type:[Boolean,String],default:void 0},size:{default:void 0},variant:{default:void 0},mobileVariant:{default:void 0},stickyHeader:{default:void 0},columnSizes:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},width:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(void 0),a=(0,t.ref)(void 0),o=(0,t.ref)(null);(0,t.watch)(()=>[n.data],()=>{n.data?r.value=s():r.value=void 0},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.mobileVariant,o.value,r.value],()=>{o.value&&n.mobileVariant===`list`&&l(()=>{let e=o.value;if(!e)return;let t=e.querySelectorAll(`thead tr th`);t.length&&e.querySelectorAll(`:is(tbody,tfoot) tr`).forEach(e=>{e.querySelectorAll(`:is(td,th)`).forEach((e,n)=>{let r=t[n];if(r){let t=Array.from(r.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent?.trim()).filter(Boolean).join(` `);t&&(e.dataset.header=t)}})})},1)},{immediate:!0,flush:`post`}),(0,t.watch)(()=>[n.columnSizes],()=>{if(n.columnSizes){let e={};Object.entries(n.columnSizes).forEach(([t,n])=>{e[`--db-table-column-size-${t}`]=n}),a.value=e}else a.value=void 0},{immediate:!0,flush:`post`});function s(){try{return typeof n.data==`string`?JSON.parse(n.data):n.data}catch(e){console.error(e)}return{}}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table`,n.class)),style:(0,t.normalizeStyle)(a.value),"data-width":e.width,"data-size":e.size,"data-divider":e.divider,"data-variant":e.variant,"data-mobile-variant":e.mobileVariant,"data-show-caption":(0,t.unref)(d)(e.showCaption),"data-sticky-header":e.stickyHeader},[(0,t.createElementVNode)(`table`,{ref_key:`_ref`,ref:o,id:e.id??e.propOverrides?.id},[e.captionPlain?((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,Ui,(0,t.toDisplayString)(e.captionPlain),1)):(0,t.renderSlot)(s.$slots,`caption`,{key:1}),r.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[r.value?.header?((0,t.openBlock)(),(0,t.createBlock)(Bi,{key:0,rows:r.value?.header},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.body?((0,t.openBlock)(),(0,t.createBlock)(Ii,{key:1,rows:r.value?.body},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0),r.value?.footer?((0,t.openBlock)(),(0,t.createBlock)(Ri,{key:2,rows:r.value?.footer},null,8,[`rows`])):(0,t.createCommentVNode)(``,!0)],64)):(0,t.renderSlot)(s.$slots,`default`,{key:3})],8,Hi)],14,Vi))}}),Gi=[`id`],Ki=(0,t.defineComponent)({name:`DBTableCaption`,__name:`table-caption`,props:{children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0}},setup(e){let n=e,r=(0,t.ref)(null);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,{ref_key:`_ref`,ref:r,id:e.id??e.propOverrides?.id,class:(0,t.normalizeClass)((0,t.unref)(i)(`db-table-caption`,n.class))},[(0,t.renderSlot)(a.$slots,`default`)],10,Gi))}}),qi=[`row`,`col`,`rowgroup`,`colgroup`],Ji=[`none`,`weak`,`strong`],Yi=[`x-small`,`small`,`medium`,`large`],Xi=[`flat`,`zebra`,`spaced`],Zi=[`none`,`both`,`horizontal`,`vertical`],Qi=[`table`,`list`],$i=[`none`,`both`,`horizontal`,`vertical`],ea=[`auto`,`1fr`,`min-content`,`max-content`],ta=[`id`,`data-orientation`,`data-scroll-behavior`,`data-alignment`,`data-width`],na=(0,t.defineComponent)({name:`DBTabs`,__name:`tabs`,props:{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},arrowScrollDistance:{default:void 0},scrollLeftText:{default:void 0},scrollRightText:{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&&=(new Q().unobserve(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"]`);t&&(t.setAttribute(`aria-orientation`,r.orientation||`horizontal`),r.behavior===`arrows`&&(l.value=t,p(t),t.addEventListener(`scroll`,()=>{p(t)}),u.value||=new Q().observe(t,()=>{p(t)})))}}}function g(e){if(d.value){let t=Array.from(d.value.querySelectorAll(`:is(:scope > db-tab-list .db-tab-item, :scope > .db-tab-list .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)(q,{key:0,class:`overflow-scroll-left-button`,variant:`ghost`,icon:`chevron_left`,type:`button`,noText:!0,onClick:e=>m(!0)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollLeftText??(0,t.unref)(`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)(Ei,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)(Ci,{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)(Oi,{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)(q,{key:2,class:`overflow-scroll-right-button`,variant:`ghost`,icon:`chevron_right`,type:`button`,noText:!0,onClick:e=>m()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.scrollRightText??(0,t.unref)(`Scroll right`)),1)]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],42,ta))}}),ra=[`scrollbar`,`arrows`],ia=[`auto`,`manually`],aa=[`static`,`removable`],oa=[`data-variant`,`data-hide-asterisk`,`data-hide-label`],sa=[`for`],ca=[`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`],la={"data-visually-hidden":`true`,role:`status`},ua=(0,t.defineComponent)({name:`DBTextarea`,__name:`textarea`,props:{cols:{default:void 0},resize:{default:void 0},showResizer:{type:[Boolean,String],default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},label:{default:void 0},name:{default:void 0},disabled:{type:[Boolean,String],default:void 0},required:{type:[Boolean,String],default:void 0},showRequiredAsterisk:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:[Boolean,String]},propOverrides:{default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:[`update:value`],setup(e,{emit:n}){let r=(0,t.useId)(),a=n,o=e,c=(0,t.ref)(void 0),u=(0,t.ref)(void 0),d=(0,t.ref)(void 0),m=(0,t.ref)(void 0),h=(0,t.ref)(void 0),g=(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+F;u.value=e,d.value=c.value+I,m.value=c.value+L,v(o.message,o.showMessage)&&(g.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),Le(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`?(g.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)?(g.value=d.value,s()&&(b.value=o.validMessage??`TODO: Add a validMessage`,l(()=>b.value=``,1e3))):v(o.message,o.showMessage)?g.value=u.value:g.value=void 0}function T(e,t){o.input&&o.input(e),y.value=e.target.value,o.onInput&&o.onInput(e),J(a,e),w()}function E(e,t){o.onChange&&o.onChange(e),J(a,e),w()}function D(e){o.onBlur&&o.onBlur(e)}function O(e){o.onFocus&&o.onFocus(e)}function k(){let e=o.id??o.propOverrides?.id??`textarea-${r}`;c.value=e,u.value=e+F,d.value=e+I,m.value=e+L}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)(_)(e.showRequiredAsterisk),"data-hide-label":(0,t.unref)(_)(e.showLabel)},[(0,t.createElementVNode)(`label`,{for:c.value},(0,t.toDisplayString)(e.label??(0,t.unref)(`LABEL SHOULD BE SET`)),9,sa),(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)(_)(e.showResizer??!0),disabled:(0,t.unref)(f)(e.disabled,`disabled`),required:(0,t.unref)(f)(e.required,`required`),readOnly:(0,t.unref)(f)(e.readOnly,`readOnly`)||(0,t.unref)(f)(e.readonly,`readonly`)||void 0,form:e.form,maxLength:(0,t.unref)(p)(e.maxLength,e.maxlength),minLength:(0,t.unref)(p)(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??g.value,placeholder:e.placeholder??(0,t.unref)(` `),rows:(0,t.unref)(p)(e.rows,(0,t.unref)(4)),cols:(0,t.unref)(p)(e.cols)},(0,t.toDisplayString)(e.value),41,ca),(0,t.unref)(v)(e.message,e.showMessage)?((0,t.openBlock)(),(0,t.createBlock)(Y,{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)(Y,{key:1,size:`small`,semantic:`successful`,id:d.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)(Y,{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`,la,(0,t.toDisplayString)(b.value),1)],10,oa))}}),da=[`none`,`both`,`horizontal`,`vertical`],fa=[`hard`,`soft`,`off`],pa=[`description`,`label`],ma=[`adaptive`,`neutral`,`critical`,`informational`,`warning`,`successful`],ha=[`medium`,`small`,`large`,`none`],ga=[`medium`,`small`,`large`,`none`],_a=[`top`,`left`],va=[`top`,`bottom`],ya=[`left`,`right`,`left-start`,`left-end`,`right-start`,`right-end`],ba=[`top`,`bottom`,`top-start`,`top-end`,`bottom-start`,`bottom-end`],xa=[...ya,...ba],Sa=[`none`,`3x-large`,`2x-large`,`x-large`,`large`,`medium`,`small`,`x-small`,`2x-small`,`3x-small`],Ca=[`horizontal`,`vertical`],wa=[`full`,`auto`],Ta=[`full`,`medium`,`large`,`small`],Ea=[`none`,`slow`,`fast`],Da=[`auto`,`fixed`],Oa=[`small`,`medium`],ka=[`weak`,`strong`],Aa=[`invalid`,`valid`,`no-validation`],ja=[`fixed`,`content`],Ma=[`above`,`floating`],Na=[`leading`,`trailing`],Pa=`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.AccordionVariantList=k,e.AlignmentList=[`start`,`center`,`end`],e.AutoCompleteList=Pa,e.BadgePlacementList=Ee,e.ButtonTypeList=Ae,e.ButtonVariantList=ke,e.COLOR=ge,e.COLORS=_e,e.COLORS_SIMPLE=ve,e.COLOR_CONST=U,e.COLOR_SIMPLE=he,e.CardBehaviorList=Ne,e.CardElevationLevelList=Pe,e.CollapsibleBehaviorList=[`single`,`multiple`],e.CustomSelectDropdownWidthList=Nn,e.CustomSelectListItemTypeList=In,e.DBAccordion=O,e.DBAccordionItem=E,e.DBBadge=Te,e.DBBrand=Oe,e.DBButton=q,e.DBCard=Me,e.DBCheckbox=Ue,e.DBControlPanelBrand=Ge,e.DBControlPanelDesktop=st,e.DBControlPanelFlatIcon=lt,e.DBControlPanelMeta=dt,e.DBControlPanelMobile=Ot,e.DBControlPanelNavigation=jt,e.DBControlPanelNavigationItem=Pt,e.DBControlPanelNavigationItemGroup=Bt,e.DBControlPanelPrimaryActions=Ht,e.DBControlPanelSecondaryActions=Wt,e.DBControlPanelSkipNavigation=qt,e.DBCustomButton=Yt,e.DBCustomSelect=Mn,e.DBCustomSelectDropdown=Qt,e.DBCustomSelectFormField=Fn,e.DBCustomSelectList=sn,e.DBCustomSelectListItem=an,e.DBDivider=zn,e.DBDrawer=Et,e.DBDrawerFooter=vt,e.DBDrawerHeader=St,e.DBHeader=or,e.DBIcon=cr,e.DBInfotext=Y,e.DBInput=mn,e.DBLink=fr,e.DBNavigation=_r,e.DBNavigationItem=Sr,e.DBNotification=Dr,e.DBPage=Mr,e.DBPopover=Lr,e.DBRadio=Br,e.DBSection=Hr,e.DBSelect=Qr,e.DBShell=ei,e.DBShellContent=ri,e.DBShellSubNavigation=ci,e.DBStack=di,e.DBSwitch=bi,e.DBTabItem=Ci,e.DBTabList=Ei,e.DBTabPanel=Oi,e.DBTable=Wi,e.DBTableBody=Ii,e.DBTableCaption=Ki,e.DBTableColumnsSizeList=ea,e.DBTableDataCell=Ai,e.DBTableDividerList=Zi,e.DBTableFooter=Ri,e.DBTableHead=Bi,e.DBTableHeaderCell=Mi,e.DBTableHeaderCellScopeList=qi,e.DBTableMobileVariantList=Qi,e.DBTableRow=Pi,e.DBTableRowSizeList=Yi,e.DBTableRowSubHeaderEmphasisList=Ji,e.DBTableStickyHeaderList=$i,e.DBTableVariantList=Xi,e.DBTabs=na,e.DBTag=gn,e.DBTextarea=ua,e.DBTooltip=$,e.DB_UX_LOCAL_STORAGE_FRAMEWORK=Se,e.DB_UX_LOCAL_STORAGE_MODE=Ce,e.DEFAULT_BACK=re,e.DEFAULT_BURGER_MENU=ue,e.DEFAULT_CLOSE_BUTTON=V,e.DEFAULT_COLLAPSE=oe,e.DEFAULT_DATALIST_ID_SUFFIX=R,e.DEFAULT_EXPAND=ae,e.DEFAULT_ICON=le,e.DEFAULT_ID=A,e.DEFAULT_INVALID_MESSAGE=B,e.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=L,e.DEFAULT_LABEL=j,e.DEFAULT_LABEL_ID_SUFFIX=P,e.DEFAULT_MESSAGE=N,e.DEFAULT_MESSAGE_ID_SUFFIX=F,e.DEFAULT_PLACEHOLDER=M,e.DEFAULT_PLACEHOLDER_ID_SUFFIX=te,e.DEFAULT_REMOVE=ne,e.DEFAULT_ROWS=de,e.DEFAULT_SCROLL_LEFT=se,e.DEFAULT_SCROLL_RIGHT=ce,e.DEFAULT_SELECTED=ie,e.DEFAULT_SELECT_ID_SUFFIX=ee,e.DEFAULT_VALID_MESSAGE=z,e.DEFAULT_VALID_MESSAGE_ID_SUFFIX=I,e.DEFAULT_VIEWPORT=be,e.DENSITIES=me,e.DENSITY=pe,e.DENSITY_CONST=H,e.DESKTOP_VIEWPORT=G,e.DividerMarginList=Bn,e.DividerVariantList=Vn,e.DocumentClickListener=Xt,e.DocumentScrollListener=X,e.DrawerBackdropList=Hn,e.DrawerContainerSizeList=Kn,e.DrawerDirectionList=Un,e.DrawerPositionList=Gn,e.DrawerVariantList=Wn,e.EmphasisList=ka,e.FieldSizingList=ja,e.GapSpacingList=Sa,e.IconWeightList=lr,e.InputTypeList=ur,e.LabelVariantHorizontalList=Na,e.LabelVariantList=Ma,e.LinkContentList=hr,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=mr,e.LinkTargetList=[`_self`,`_blank`,`_parent`,`_top`],e.LinkVariantList=pr,e.MAIN_CONTENT_ID=fe,e.MarginList=ga,e.MaxWidthList=Ta,e.NavigationItemGroupVariantList=[`popover`,`tree`],e.NavigationItemSafeTriangle=mt,e.NotificationAriaLiveList=Ar,e.NotificationLinkVariantList=kr,e.NotificationVariantList=Or,e.OrientationList=Ca,e.PageDocumentOverflowList=Pr,e.PageVariantList=Nr,e.PlacementHorizontalList=ya,e.PlacementList=xa,e.PlacementVerticalList=ba,e.PopoverDelayList=Ea,e.PopoverWidthList=Da,e.SEMANTIC=ye,e.SEMANTICS=W,e.SelectedTypeList=Ln,e.SemanticList=ma,e.ShellContentVariantList=ii,e.ShellControlPanelDesktopPosition=_a,e.ShellControlPanelMobilePosition=va,e.ShellSubNavigationMobilePosition=li,e.SizeList=Oa,e.SpacingList=ha,e.StackAlignmentList=mi,e.StackDirectionList=pi,e.StackJustifyContentList=hi,e.StackVariantList=fi,e.TESTING_VIEWPORTS=xe,e.TabsBehaviorList=ra,e.TabsInitialSelectedModeList=ia,e.TagBehaviorList=aa,e.TextareaResizeList=da,e.TextareaWrapList=fa,e.TooltipVariantList=pa,e.ValidationList=Aa,e.WidthList=wa,e.addAttributeToChildren=r,e.adjustNestedSubNavigationPosition=ft,e.cls=i,e.delay=l,e.getBoolean=f,e.getBooleanAsString=d,e.getFloatingProps=Je,e.getHideProp=_,e.getInputValue=h,e.getNotificationRole=C,e.getNumber=p,e.getOptionKey=x,e.getSearchInput=y,e.getStep=m,e.handleDataOutside=$e,e.handleFixedDropdown=qe,e.handleFixedPopover=Qe,e.handleSubNavigationPosition=gt,e.hasCssFlag=u,e.hasVoiceOver=s,e.isArrayOfStrings=a,e.isEventTargetNavigationItem=pt,e.isIOSSafari=c,e.isKeyboardEvent=S,e.stringPropVisible=v,e.uuid=n});
|