@db-ux/v-core-components 1.1.1 → 2.0.0-0-custom-select-16b8cce
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/README.md +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts +1 -1
- package/dist/components/brand/brand.vue.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -3
- package/dist/components/card/card.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +60 -0
- package/dist/components/custom-select/index.d.ts +1 -0
- package/dist/components/custom-select/model.d.ts +173 -0
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +15 -0
- package/dist/components/custom-select-dropdown/index.d.ts +1 -0
- package/dist/components/custom-select-dropdown/model.d.ts +15 -0
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +13 -0
- package/dist/components/custom-select-form-field/index.d.ts +1 -0
- package/dist/components/custom-select-form-field/model.d.ts +5 -0
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +16 -0
- package/dist/components/custom-select-list/index.d.ts +1 -0
- package/dist/components/custom-select-list/model.d.ts +8 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +31 -0
- package/dist/components/custom-select-list-item/index.d.ts +1 -0
- package/dist/components/custom-select-list-item/model.d.ts +29 -0
- package/dist/components/divider/divider.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +1 -1
- package/dist/components/infotext/infotext.vue.d.ts +1 -1
- package/dist/components/input/input.vue.d.ts +5 -4
- package/dist/components/link/link.vue.d.ts +2 -2
- 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/page/model.d.ts +4 -0
- package/dist/components/page/page.vue.d.ts +1 -0
- package/dist/components/popover/popover.vue.d.ts +2 -2
- package/dist/components/radio/radio.vue.d.ts +1 -1
- package/dist/components/section/section.vue.d.ts +1 -1
- package/dist/components/select/model.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +3 -2
- package/dist/components/switch/switch.vue.d.ts +1 -1
- package/dist/components/tab-item/tab-item.vue.d.ts +1 -1
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/tag/model.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/db-ux.es.js +2042 -1240
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/shared/constants.d.ts +5 -0
- package/dist/shared/model.d.ts +36 -19
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/react.d.ts +4 -4
- package/package.json +5 -5
package/dist/db-ux.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s["DB-UX"]={},s.Vue))})(this,function(s,e){"use strict";var On=Object.defineProperty;var Gn=(s,e,L)=>e in s?On(s,e,{enumerable:!0,configurable:!0,writable:!0,value:L}):s[e]=L;var U=(s,e,L)=>Gn(s,typeof e!="symbol"?e+"":e,L);const L=()=>{var d,t;if(typeof window<"u"){if((d=window.crypto)!=null&&d.randomUUID)return window.crypto.randomUUID();if((t=window.crypto)!=null&&t.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},H=(d,t)=>{const l=d.children;Object.values(l).forEach(a=>{a.setAttribute(t.key,t.value),a.children.length>0&&H(a,t)})},E=(...d)=>{let t="";for(const l of d)if(l)if(typeof l=="string")t+=`${l} `;else for(const a in l)l[a]&&(t+=`${a} `);return t.trim()},be=d=>{const{left:t,right:l}=d.getBoundingClientRect(),{innerWidth:a}=window;return t>=0&&l<=a},ye=d=>{const{top:t,bottom:l}=d.getBoundingClientRect(),{innerHeight:a}=window;return t>=0&&l<=a},ne=d=>{var B;const{top:t,bottom:l,left:a,right:n}=d.getBoundingClientRect(),{innerHeight:m,innerWidth:o}=window;let p=t<0,i=l>m,h=a<0,r=n>o;const y=d.hasAttribute("data-outside-vy"),k=d.hasAttribute("data-outside-vx"),C=(B=d==null?void 0:d.parentElement)==null?void 0:B.getBoundingClientRect();return C&&(y&&(d.getAttribute("data-outside-vy")==="top"?p=C.top-(l-C.bottom)<0:i=C.bottom+(C.top-t)>m),k&&(d.getAttribute("data-outside-vx")==="left"?h=C.left-(n-C.right)<0:r=C.right+(C.left-a)>o)),{outTop:p,outBottom:i,outLeft:h,outRight:r}},X=d=>{const{outTop:t,outBottom:l,outLeft:a,outRight:n}=ne(d);let m={};return t||l?(m={vy:t?"top":"bottom"},d.setAttribute("data-outside-vy",m.vy)):d.removeAttribute("data-outside-vy"),a||n?(m={...m,vx:n?"right":"left"},d.setAttribute("data-outside-vx",m.vx)):d.removeAttribute("data-outside-vx"),m},te=d=>Array.isArray(d)&&d.every(t=>typeof t=="string"),Be=["Mac","iPhone","iPad","iPod"],A=()=>typeof window<"u"&&Be.some(d=>window.navigator.userAgent.includes(d)),F=(d,t)=>new Promise(()=>setTimeout(d,t)),_=d=>d&&String(d),I=d=>{if(d!=null)return _(!d)},T=(d,t)=>t===void 0?!!d:t&&d,ke=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","value","aria-describedby","aria-expanded","aria-pressed"],P=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},state:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-button",t.class)),type:n.type||"button",disabled:n.disabled,"aria-label":n.label,"data-icon":n.icon,"data-hide-icon":e.unref(I)(n.showIcon),"data-size":n.size,"data-state":n.state,"data-width":n.width,"data-variant":n.variant,"data-no-text":e.unref(_)(n.noText),name:n.name,value:n.value,"aria-describedby":n.describedbyid,"aria-expanded":n.ariaexpanded,"aria-pressed":n.ariapressed,onClick:m[0]||(m[0]=async o=>a(o))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,ke))}}),R="OVERWRITE_DEFAULT_ID",q="LABEL SHOULD BE SET",Y=" ",V="-message",$="-valid-message",M="-invalid-message",j="-placeholder",K="-datalist",v="TODO: Add a validMessage",z="TODO: Add an invalidMessage",de="Back",ie="BurgerMenu",le="brand",oe=4,J="Close Button",Ee="density",Ne="color";var Q=(d=>(d.FUNCTIONAL="functional",d.REGULAR="regular",d.EXPRESSIVE="expressive",d))(Q||{});const Se=Object.entries(Q).map(([,d])=>d);var Z=(d=>(d.PRIMARY="primary",d))(Z||{}),x=(d=>(d.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",d.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",d.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",d.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",d.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",d.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",d.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",d.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",d.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",d.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",d.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",d.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",d.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",d.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",d.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",d.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",d.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",d.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",d.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",d.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",d.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",d.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",d.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",d.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",d.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",d.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",d.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",d.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",d.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",d.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full",d))(x||{});const we=Object.entries(x).map(([,d])=>d),Ce=Object.entries(Z).map(([,d])=>d);var ee=(d=>(d.CRITICAL="critical",d.INFORMATIONAL="informational",d.WARNING="warning",d.SUCCESSFUL="successful",d))(ee||{});const Le=Object.entries(ee).map(([,d])=>d),se={width:390,height:884},re={width:1920,height:1280},Ie=[{name:"desktop",...re},{name:"tablet",width:768,height:1024},{name:"mobile",...se}],_e=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Te={key:0},De={key:1},Fe=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:Boolean,default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:Boolean,default:void 0},timestamp:{default:void 0},showTimestamp:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:Boolean},width:{},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClose&&t.onClose()}return(n,m)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-notification",t.class)),"aria-live":n.ariaLive,"data-semantic":n.semantic,"data-variant":n.variant,"data-icon":n.icon,"data-hide-icon":e.unref(I)(n.showIcon),"data-link-variant":n.linkVariant},[e.renderSlot(n.$slots,"image"),e.unref(T)(n.headline,n.showHeadline)?(e.openBlock(),e.createElementBlock("header",Te,e.toDisplayString(n.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})]),e.unref(T)(n.timestamp,n.showTimestamp)?(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(n.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"link"),n.closeable?(e.openBlock(),e.createBlock(P,{key:2,icon:"cross",variant:"ghost",size:"small",id:n.closeButtonId,noText:!0,onClick:o=>a()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,_e))}}),Ae=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Ve=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var n;if(a.value&&l.value&&(n=t.placement)!=null&&n.startsWith("corner")){let m=a.value.parentElement;m&&m.localName.includes("badge")&&(m=m.parentElement),m&&m.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(n,m)=>{var o;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:n.id,class:e.normalizeClass(e.unref(E)("db-badge",t.class)),"data-semantic":n.semantic,"data-size":n.size,"data-emphasis":n.emphasis,"data-placement":n.placement,"data-label":((o=n.placement)==null?void 0:o.startsWith("corner"))&&(n.label??e.unref(q))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,Ae)}}}),$e=["data-icon","data-hide-icon","id"],Me=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(le),"data-hide-icon":e.unref(I)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(E)("db-brand",t.class))},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,$e))}}),ve=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],ze=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-card",t.class)),"data-behavior":n.behavior,"data-elevation-level":n.elevationLevel,"data-spacing":n.spacing,role:n.behavior==="interactive"?"button":void 0,tabIndex:n.behavior==="interactive"?0:void 0,onClick:m[0]||(m[0]=async o=>a(o))},[e.renderSlot(n.$slots,"default")],10,ve))}}),O=(d,t,l="value")=>{d(`update:${l}`,t.target[l])},Re=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],D=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-infotext",t.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(I)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Re))}}),Ue=["data-size","data-hide-label"],Pe=["for"],Oe=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],Ge={"data-visually-hidden":"true",role:"status"},qe=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,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,default:void 0},size:{default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{n.value=!0;const c=a.id??`checkbox-${L()}`;m.value=c,o.value=c+V,p.value=c+$,i.value=c+M}),e.watch(()=>[m.value],()=>{if(m.value){const c=m.value+V;o.value=c,p.value=m.value+$,i.value=m.value+M,T(a.message,a.showMessage)&&(h.value=c)}},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,y.value,a.indeterminate],()=>{y.value&&a.indeterminate!==void 0&&(y.value.indeterminate=a.indeterminate)},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,y.value,a.checked],()=>{n.value&&y.value&&(a.checked!=null&&(y.value.checked=a.checked),n.value=!1)},{immediate:!0,flush:"post"});function k(c){var f,b,u;a.onChange&&a.onChange(c),a.change&&a.change(c),O(l,c,"checked"),!((f=y.value)!=null&&f.validity.valid)||a.validation==="invalid"?(h.value=i.value,A()&&(r.value=a.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??z,F(()=>r.value="",1e3))):a.validation==="valid"||(u=y.value)!=null&&u.validity.valid&&a.required?(h.value=p.value,A()&&(r.value=a.validMessage??v,F(()=>r.value="",1e3))):T(a.message,a.showMessage)?h.value=o.value:h.value=""}function C(c){a.onBlur&&a.onBlur(c),a.blur&&a.blur(c)}function B(c){a.onFocus&&a.onFocus(c),a.focus&&a.focus(c)}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-checkbox",a.class)),"data-size":c.size,"data-hide-label":e.unref(I)(c.showLabel)},[e.createElementVNode("label",{for:m.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":c.validation==="invalid","data-custom-validity":c.validation,ref_key:"_ref",ref:y,id:m.value,name:c.name,checked:c.checked,disabled:c.disabled,value:c.value,required:c.required,onChange:f[0]||(f[0]=async b=>k(b)),onBlur:f[1]||(f[1]=async b=>C(b)),onFocus:f[2]||(f[2]=async b=>B(b)),"aria-describedby":h.value},null,40,Oe),c.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.label),1)],64)):e.renderSlot(c.$slots,"default",{key:1})],8,Pe),e.unref(T)(c.message,c.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:c.messageIcon,id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:i.value},{default:e.withCtx(()=>{var b;return[e.createTextVNode(e.toDisplayString(c.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ge,e.toDisplayString(r.value),1)],10,Ue))}}),We=["id","data-margin","data-variant","data-emphasis","data-width"],Xe=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(E)("db-divider",t.class))},null,10,We))}}),He=["id","data-backdrop","data-variant"],Ye=["data-spacing","data-width","data-direction","data-rounded"],je={class:"db-drawer-header"},Ke={class:"db-drawer-header-text"},Je={class:"db-drawer-content"},fe=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:Boolean,default:void 0},rounded:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(d){const t=d,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{m()}),e.watch(()=>[t.open],()=>{m()},{immediate:!0,flush:"post"});function n(o){o.key==="Escape"&&o.preventDefault(),(o==="close"||o.key==="Escape"||o.target.nodeName==="DIALOG"&&o.type==="click"&&t.backdrop!=="none")&&t.onClose&&t.onClose(o)}function m(){l.value&&(t.open&&!l.value.open&&(a.value&&(a.value.hidden=!1),t.backdrop==="none"||t.variant==="inside"?l.value.show():l.value.showModal()),!t.open&&l.value.open&&(a.value&&(a.value.hidden=!0),F(()=>{var o;a.value&&(a.value.hidden=!1),(o=l.value)==null||o.close()},401)))}return(o,p)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:o.id,ref_key:"_ref",ref:l,onClick:p[0]||(p[0]=async i=>{n(i)}),onKeydown:p[1]||(p[1]=async i=>n(i)),"data-backdrop":o.backdrop,"data-variant":o.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(E)("db-drawer-container",t.class)),"data-spacing":o.spacing,"data-width":o.width,"data-direction":o.direction,"data-rounded":o.rounded},[e.createElementVNode("header",je,[e.createElementVNode("div",Ke,[e.renderSlot(o.$slots,"drawer-header")]),e.createVNode(P,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:o.closeButtonId,noText:!0,onClick:i=>n("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Je,[e.renderSlot(o.$slots,"default")])],10,Ye)],40,He))}}),ae=d=>{var l,a;const{target:t}=d;return!!(!((l=t==null?void 0:t.classList)!=null&&l.contains("db-navigation-item-expand-button"))&&((a=t==null?void 0:t.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class ue{constructor(t,l){U(this,"element");U(this,"subNavigation");U(this,"parentSubNavigation",null);U(this,"triangleData");U(this,"initialized",!1);U(this,"mouseX",0);U(this,"mouseY",0);var a;this.element=t,this.subNavigation=l,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var l,a;const t=((l=this.parentSubNavigation)==null?void 0:l.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${t}px`),this.initialized=!0}enableFollow(){var n;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const t=X(this.subNavigation),l=this.element.getBoundingClientRect(),a=((n=this.parentSubNavigation)==null?void 0:n.getBoundingClientRect().width)??0;this.triangleData={itemRect:l,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-l.width)/2,outsideVX:t.vx,outsideVY:t.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;const t=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?t+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):t}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const t=this.triangleData.outsideVX==="right";return!!(t&&this.mouseX<-1*this.triangleData.padding||!t&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(t){if(!this.triangleData)return;if(t==="fill-gap"){const o=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,p=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${p} ${o}`,lt:`${p} 0`,rt:"100% 0",rb:`100% ${o}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),n=`${l}px ${a}px`,m=`${l}px ${a}px`;return{lb:n,lt:m,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(t){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=t.clientX-this.triangleData.itemRect.left,this.mouseY=t.clientY-this.triangleData.itemRect.top;const l=this.hasMouseEnteredSubNavigation(),a=this.getTriangleCoordinates(l?"fill-gap":"safe-triangle");a&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`),l&&(this.triangleData=void 0))}}const Qe=["id","data-width","data-on-forcing-mobile"],Ze={class:"db-header-drawer-navigation"},xe={class:"db-header-meta-navigation"},ea={class:"db-header-secondary-action"},aa={class:"db-header-meta-navigation"},na={class:"db-header-navigation-bar"},ta={class:"db-header-brand-container"},da={class:"db-header-navigation-container"},ia={class:"db-header-navigation"},la={class:"db-header-primary-action"},oa={class:"db-header-action-container"},sa={class:"db-header-burger-menu-container"},ra={class:"db-header-secondary-action"},fa=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:Boolean,default:void 0},forceMobile:{type:Boolean,default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(!1),m=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=t.id||"header-"+L()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&t.forceMobile){const i=document.getElementById(l.value);i&&H(i,{key:"data-force-mobile",value:"true"}),n.value=!0}},{immediate:!0,flush:"post"});function o(){t.onToggle&&t.onToggle(!t.drawerOpen)}function p(i){ae(i)&&o()}return(i,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:m,class:e.normalizeClass(e.unref(E)("db-header",t.class)),id:l.value,"data-width":i.width,"data-on-forcing-mobile":i.forceMobile&&!n.value},[e.createVNode(fe,{class:"db-header-drawer",spacing:"small",rounded:!0,open:i.drawerOpen,onClose:()=>o()},{default:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:"db-header-navigation",onClick:h[0]||(h[0]=async r=>p(r))},[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",xe,[e.renderSlot(i.$slots,"meta-navigation")])]),e.createElementVNode("div",ea,[e.renderSlot(i.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",aa,[e.renderSlot(i.$slots,"meta-navigation")]),e.createElementVNode("div",na,[e.createElementVNode("div",ta,[e.renderSlot(i.$slots,"brand")]),e.createElementVNode("div",da,[e.createElementVNode("div",ia,[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",la,[e.renderSlot(i.$slots,"primary-action")])]),e.createElementVNode("div",oa,[e.createElementVNode("div",sa,[e.createVNode(P,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:()=>o()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.burgerMenuLabel??e.unref(ie)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",ra,[e.renderSlot(i.$slots,"secondary-action")])])])],10,Qe))}}),ua=["id","data-icon","data-icon-weight","data-icon-variant"],ca=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-icon",t.class)),"data-icon":a.icon,"data-icon-weight":a.weight,"data-icon-variant":a.variant},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,ua))}}),ma=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],pa=["for"],ha=["aria-invalid","data-custom-validity","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],ga=["id"],ba=["value"],ya={"data-visually-hidden":"true",role:"status"},Ba=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean,default:void 0},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{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,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(""),k=e.ref(null);e.onMounted(()=>{const u=a.id??`input-${L()}`;n.value=u,m.value=u+V,o.value=u+$,p.value=u+M,i.value=u+K}),e.watch(()=>[n.value],()=>{if(n.value){const u=n.value+V;m.value=u,o.value=n.value+$,p.value=n.value+M,i.value=a.dataListId??n.value+K,T(a.message,a.showMessage)&&(h.value=u)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function C(u){r.value=u.target.value,a.onInput&&a.onInput(u),a.input&&a.input(u)}function B(u){var S,g,w;a.onChange&&a.onChange(u),a.change&&a.change(u),O(l,u),!((S=k.value)!=null&&S.validity.valid)||a.validation==="invalid"?(h.value=p.value,A()&&(y.value=a.invalidMessage??((g=k.value)==null?void 0:g.validationMessage)??z,F(()=>y.value="",1e3))):a.validation==="valid"||(w=k.value)!=null&&w.validity.valid&&(a.required||a.minLength||a.maxLength||a.pattern)?(h.value=o.value,A()&&(y.value=a.validMessage??v,F(()=>y.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=""}function c(u){a.onBlur&&a.onBlur(u),a.blur&&a.blur(u)}function f(u){a.onFocus&&a.onFocus(u),a.focus&&a.focus(u)}function b(u){return Array.from((te(u)?u.map(S=>({value:S,label:void 0})):u)||[])}return(u,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-input",a.class)),"data-variant":u.variant,"data-hide-label":e.unref(I)(u.showLabel),"data-hide-icon":e.unref(I)(u.showIcon),"data-icon":u.icon,"data-icon-after":u.iconAfter,"data-hide-icon-after":e.unref(I)(u.showIcon)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(u.label??e.unref(q)),9,pa),e.createElementVNode("input",{"aria-invalid":u.validation==="invalid","data-custom-validity":u.validation,ref_key:"_ref",ref:k,id:n.value,name:u.name,type:u.type||"text",placeholder:u.placeholder??e.unref(Y),disabled:u.disabled,required:u.required,step:u.step,value:u.value??r.value,maxLength:u.maxLength,minLength:u.minLength,max:u.max,min:u.min,readOnly:u.readOnly,form:u.form,pattern:u.pattern,size:u.size,autoComplete:u.autocomplete,autoFocus:u.autofocus,onInput:S[0]||(S[0]=async g=>C(g)),onChange:S[1]||(S[1]=async g=>B(g)),onBlur:S[2]||(S[2]=async g=>c(g)),onFocus:S[3]||(S[3]=async g=>f(g)),list:u.dataList&&i.value,"aria-describedby":h.value},null,40,ha),u.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:i.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b(u.dataList),g=>(e.openBlock(),e.createElementBlock("option",{key:i.value+"-option-"+g.value,value:g.value},e.toDisplayString(g.label),9,ba))),128))],8,ga)):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),e.unref(T)(u.message,u.showMessage)?(e.openBlock(),e.createBlock(D,{key:1,size:"small",icon:u.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var g;return[e.createTextVNode(e.toDisplayString(u.invalidMessage??((g=k.value)==null?void 0:g.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",ya,e.toDisplayString(y.value),1)],10,ma))}}),ka=["id","href","target","rel","role","hrefLang","aria-disabled","tabIndex","aria-selected","aria-label","aria-current","data-size","data-hide-icon-after","data-variant","data-content"],Ea=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-link",t.class)),href:n.href,target:n.target,rel:n.rel,role:n.role,hrefLang:n.hreflang,"aria-disabled":e.unref(_)(n.disabled),tabIndex:n.disabled?-1:0,"aria-selected":n.selected,"aria-label":n.label,"aria-current":n.current,"data-size":n.size,"data-hide-icon-after":e.unref(I)(n.showIcon??!0),"data-variant":n.variant,"data-content":n.content||"internal",onClick:m[0]||(m[0]=async o=>a(o))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,ka))}}),Na=["id","data-variant","data-fade-in","data-fonts-loaded"],Sa={class:"db-main"},wa=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:Boolean,default:void 0},footer:{},header:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(t.documentOverflow==="hidden"||t.variant==="fixed"&&t.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{l.value=!t.fadeIn,document&&t.fadeIn?document.fonts.ready.then(()=>{l.value=!0}):l.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:n.id,class:e.normalizeClass(e.unref(E)("db-page",t.class)),"data-variant":n.variant,"data-fade-in":n.fadeIn,"data-fonts-loaded":e.unref(_)(l.value)},[e.renderSlot(n.$slots,"header"),e.createElementVNode("main",Sa,[e.renderSlot(n.$slots,"default")]),e.renderSlot(n.$slots,"footer")],10,Na))}}),Ca=["data-size","data-hide-label","for"],La=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],Ia=e.defineComponent({__name:"radio",props:{describedbyid:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(void 0),o=e.ref(null);e.onMounted(()=>{n.value=!0,m.value=a.id??`radio-${L()}`}),e.watch(()=>[n.value,o.value,a.checked],()=>{a.checked&&n.value&&o.value&&(o.value.checked=!0)},{immediate:!0,flush:"post"});function p(r){a.onChange&&a.onChange(r),a.change&&a.change(r),O(l,r)}function i(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-size":r.size,"data-hide-label":e.unref(I)(r.showLabel),class:e.normalizeClass(e.unref(E)("db-radio",a.class)),for:m.value},[e.createElementVNode("input",{type:"radio","aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,ref_key:"_ref",ref:o,id:m.value,name:r.name,checked:r.checked,disabled:r.disabled,"aria-describedby":r.describedbyid,value:r.value,required:r.required,onChange:y[0]||(y[0]=async k=>p(k)),onBlur:y[1]||(y[1]=async k=>i(k)),onFocus:y[2]||(y[2]=async k=>h(k))},null,40,La),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Ca))}}),_a=["id","data-spacing","data-width"],Ta=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"section-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(E)("db-section",t.class)),"data-spacing":n.spacing||"medium","data-width":n.width},[e.renderSlot(n.$slots,"default")],10,_a))}}),Da=["data-variant","data-hide-label","data-icon","data-hide-icon"],Fa=["for"],Aa=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","aria-describedby"],Va=["label"],$a=["value","selected","disabled"],Ma=["value","disabled","selected"],va=["id"],za={"data-visually-hidden":"true",role:"status"},Ra=e.defineComponent({__name:"select",props:{description:{},options:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,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,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(!1),k=e.ref(""),C=e.ref(null);e.onMounted(()=>{y.value=!0;const g=a.id??`select-${L()}`;n.value=g,m.value=g+V,o.value=g+$,p.value=g+M,i.value=g+j}),e.watch(()=>[n.value,y.value],()=>{if(n.value&&y.value){const g=n.value+V,w=n.value+j;m.value=g,o.value=n.value+$,p.value=n.value+M,i.value=w,T(a.message,a.showMessage)?h.value=g:h.value=w,y.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function B(g){a.onClick&&a.onClick(g)}function c(g){r.value=g.target.value,a.onInput&&a.onInput(g),a.input&&a.input(g)}function f(g){var w,N,G;a.onChange&&a.onChange(g),a.change&&a.change(g),O(l,g),!((w=C.value)!=null&&w.validity.valid)||a.validation==="invalid"?(h.value=p.value,A()&&(k.value=a.invalidMessage??((N=C.value)==null?void 0:N.validationMessage)??z,F(()=>k.value="",1e3))):a.validation==="valid"||(G=C.value)!=null&&G.validity.valid&&a.required?(h.value=o.value,A()&&(k.value=a.validMessage??v,F(()=>k.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=i.value}function b(g){a.onBlur&&a.onBlur(g),a.blur&&a.blur(g)}function u(g){a.onFocus&&a.onFocus(g),a.focus&&a.focus(g)}function S(g){return g.label??g.value.toString()}return(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-select",a.class)),"data-variant":g.variant,"data-hide-label":e.unref(I)(g.showLabel),"data-icon":g.icon,"data-hide-icon":e.unref(I)(g.showIcon)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(g.label??e.unref(q)),9,Fa),e.createElementVNode("select",{"aria-invalid":g.validation==="invalid","data-custom-validity":g.validation,ref_key:"_ref",ref:C,required:g.required,disabled:g.disabled,id:n.value,name:g.name,size:g.size,value:g.value??r.value,autocomplete:g.autocomplete,onInput:w[0]||(w[0]=async N=>c(N)),onClick:w[1]||(w[1]=async N=>B(N)),onChange:w[2]||(w[2]=async N=>f(N)),onBlur:w[3]||(w[3]=async N=>b(N)),onFocus:w[4]||(w[4]=async N=>u(N)),"aria-describedby":h.value},[w[5]||(w[5]=e.createElementVNode("option",{hidden:!0},null,-1)),g.options?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(g.options,(N,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[N.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:S(N)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,(W,qn)=>(e.openBlock(),e.createElementBlock("option",{key:W.value.toString(),value:W.value,selected:W.selected,disabled:W.disabled},e.toDisplayString(S(W)),9,$a))),128))],8,Va)):e.createCommentVNode("",!0),N.options?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("option",{key:1,value:N.value,disabled:N.disabled,selected:N.selected},e.toDisplayString(S(N)),9,Ma))],64))),128)):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default")],40,Aa),e.createElementVNode("span",{id:i.value},e.toDisplayString(g.placeholder??g.label),9,va),e.unref(T)(g.message,g.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:g.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var N;return[e.createTextVNode(e.toDisplayString(g.invalidMessage??((N=C.value)==null?void 0:N.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",za,e.toDisplayString(k.value),1)],10,Da))}}),Ua=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Pa=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],Oa=e.defineComponent({__name:"switch",props:{visualAid:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{n.value=a.id??`switch-${L()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(m.value=!!a.checked)},{immediate:!0,flush:"post"});function p(r){var y;a.onChange&&a.onChange(r),a.change&&a.change(r),m.value=(y=r.target)==null?void 0:y.checked,O(l,r,"checked")}function i(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(_)(r.visualAid),"data-size":r.size,"data-hide-label":e.unref(I)(r.showLabel),"data-emphasis":r.emphasis,for:n.value,class:e.normalizeClass(e.unref(E)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:n.value,"aria-checked":e.unref(_)(m.value),ref_key:"_ref",ref:o,checked:r.checked,value:r.value,disabled:r.disabled,"aria-describedby":r.describedbyid,"aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,name:r.name,required:r.required,"data-aid-icon":r.icon,"data-aid-icon-after":r.iconAfter,onChange:y[0]||(y[0]=async k=>p(k)),onBlur:y[1]||(y[1]=async k=>i(k)),onFocus:y[2]||(y[2]=async k=>h(k))},null,40,Pa),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Ua))}}),Ga=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],qa=["disabled","aria-selected","aria-controls","checked","id"],ce=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},noText:{type:Boolean,default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:Boolean,default:void 0},controls:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},showIcon:{type:Boolean,default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{n.value=!0}),e.watch(()=>[o.value,n.value],()=>{a.active&&n.value&&o.value&&(o.value.click(),n.value=!1)},{immediate:!0,flush:"post"});function p(i){var h;a.onChange&&a.onChange(i),a.change&&a.change(i),m.value=(h=i.target)==null?void 0:h.checked,O(l,i,"checked")}return(i,h)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(E)("db-tab-item",a.class))},[e.createElementVNode("label",{for:i.id,"data-icon":i.icon,"data-icon-after":i.iconAfter,"data-hide-icon":e.unref(I)(i.showIcon),"data-hide-icon-after":e.unref(I)(i.showIcon),"data-no-text":i.noText},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:i.disabled,"aria-selected":m.value,"aria-controls":i.controls,checked:i.checked,ref_key:"_ref",ref:o,id:i.id,onInput:h[0]||(h[0]=async r=>p(r))},null,40,qa),i.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")],8,Ga)],2))}}),Wa=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],Xa=["title"],Ha=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},onRemove:{type:Function,default:void 0},removeButton:{default:void 0},showCheckState:{type:Boolean,default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},semantic:{default:void 0},overflow:{type:Boolean,default:void 0},emphasis:{default:void 0},showIcon:{type:Boolean,default:void 0},content:{}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,t.disabled,a.value],()=>{var o,p;if(l.value&&a.value&&t.disabled!==void 0){const i=(o=a.value)==null?void 0:o.querySelector("button:not(.db-tab-remove-button)"),h=(p=a.value)==null?void 0:p.querySelector("input");for(const r of[i,h])r&&(r.disabled=t.disabled)}},{immediate:!0,flush:"post"});function n(){t.onRemove&&t.onRemove()}function m(){return t.removeButton?t.removeButton:"Remove tag"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:o.id,class:e.normalizeClass(e.unref(E)("db-tag",t.class)),"data-disabled":e.unref(_)(o.disabled),"data-semantic":o.semantic,"data-emphasis":o.emphasis,"data-icon":o.icon,"data-show-check-state":e.unref(_)(o.showCheckState??!0),"data-hide-icon":e.unref(I)(o.showIcon),"data-no-text":e.unref(_)(o.noText),"data-overflow":e.unref(_)(o.overflow)},[e.renderSlot(o.$slots,"content"),e.renderSlot(o.$slots,"default"),o.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.text),1)],64)):e.createCommentVNode("",!0),o.behavior==="removable"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",onClick:p[0]||(p[0]=async i=>n()),title:m()},e.toDisplayString(m()),9,Xa)):e.createCommentVNode("",!0)],10,Wa))}}),Ya=["data-variant","data-hide-label"],ja=["for"],Ka=["aria-invalid","data-custom-validity","id","data-resize","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Ja={"data-visually-hidden":"true",role:"status"},Qa=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,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,default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{const f=a.id??`textarea-${L()}`;n.value=f,m.value=f+V,o.value=f+$,p.value=f+M}),e.watch(()=>[n.value],()=>{if(n.value){const f=n.value+V;m.value=f,o.value=n.value+$,p.value=n.value+M,T(a.message,a.showMessage)&&(i.value=f)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{h.value=a.value},{immediate:!0,flush:"post"});function k(f){h.value=f.target.value,a.onInput&&a.onInput(f),a.input&&a.input(f)}function C(f){var b,u,S;a.onChange&&a.onChange(f),a.change&&a.change(f),O(l,f),!((b=y.value)!=null&&b.validity.valid)||a.validation==="invalid"?(i.value=p.value,A()&&(r.value=a.invalidMessage??((u=y.value)==null?void 0:u.validationMessage)??z,F(()=>r.value="",1e3))):a.validation==="valid"||(S=y.value)!=null&&S.validity.valid&&(a.required||a.minLength||a.maxLength)?(i.value=o.value,A()&&(r.value=a.validMessage??v,F(()=>r.value="",1e3))):T(a.message,a.showMessage)?i.value=m.value:i.value=""}function B(f){a.onBlur&&a.onBlur(f),a.blur&&a.blur(f)}function c(f){a.onFocus&&a.onFocus(f),a.focus&&a.focus(f)}return(f,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-textarea",a.class)),"data-variant":f.variant,"data-hide-label":e.unref(I)(f.showLabel)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(f.label??e.unref(q)),9,ja),e.createElementVNode("textarea",{"aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,ref_key:"_ref",ref:y,id:n.value,"data-resize":f.resize,disabled:f.disabled,required:f.required,readOnly:f.readOnly,form:f.form,maxLength:f.maxLength,minLength:f.minLength,name:f.name,wrap:f.wrap,spellcheck:f.spellCheck,autocomplete:f.autocomplete,onInput:b[0]||(b[0]=async u=>k(u)),onChange:b[1]||(b[1]=async u=>C(u)),onBlur:b[2]||(b[2]=async u=>B(u)),onFocus:b[3]||(b[3]=async u=>c(u)),value:f.value??h.value,"aria-describedby":i.value,placeholder:f.placeholder??e.unref(Y),rows:f.rows??e.unref(oe),cols:f.cols},null,40,Ka),e.unref(T)(f.message,f.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:f.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var u;return[e.createTextVNode(e.toDisplayString(f.invalidMessage??((u=y.value)==null?void 0:u.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ja,e.toDisplayString(r.value),1)],10,Ya))}}),Za=["id","data-width","data-icon","data-hide-icon","data-active","aria-disabled"],xa=["aria-haspopup","aria-expanded","disabled"],en=["data-auto-close","id"],an={key:0,class:"db-mobile-navigation-back"},nn=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},subNavigation:{},subNavigationExpanded:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(!1),n=e.ref(!0),m=e.ref(!1),o=e.ref(!1),p=e.ref("sub-navigation-"+L()),i=e.ref(void 0),h=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.subNavigationExpanded],()=>{t.subNavigationExpanded!==void 0&&(m.value=!!t.subNavigationExpanded)},{immediate:!0,flush:"post"}),e.watch(()=>[l.value],()=>{C()},{immediate:!0,flush:"post"});function r(B){ae(B)&&(o.value=!0,F(()=>{o.value=!1},300))}function y(B){t.onClick&&t.onClick(B),a.value&&(m.value=!0)}function k(B){B.stopPropagation(),m.value=!1}function C(){var B;if(l.value&&document&&p.value){const c=document==null?void 0:document.getElementById(p.value);c&&(((B=c.children)==null?void 0:B.length)>0?(a.value=!0,i.value||(i.value=new ue(h.value,c))):n.value=!1)}}return(B,c)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:h,id:B.id,onMouseover:c[2]||(c[2]=async f=>{var b;return(b=i.value)==null?void 0:b.enableFollow()}),onMouseleave:c[3]||(c[3]=async f=>{var b;return(b=i.value)==null?void 0:b.disableFollow()}),onMousemove:c[4]||(c[4]=async f=>{var b;return(b=i.value)==null?void 0:b.followByMouseEvent(f)}),class:e.normalizeClass(e.unref(E)("db-navigation-item",t.class)),"data-width":B.width,"data-icon":B.icon,"data-hide-icon":e.unref(I)(B.showIcon),"data-active":B.active,"aria-disabled":e.unref(_)(B.disabled)},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(B.text),1)],64)):e.renderSlot(B.$slots,"default",{key:1})],64)),n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":m.value,disabled:B.disabled,onClick:c[0]||(c[0]=async f=>y(f))},[B.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(B.text),1)],64)):e.renderSlot(B.$slots,"default",{key:1})],8,xa),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":o.value,id:p.value,onClick:c[1]||(c[1]=async f=>r(f))},[a.value?(e.openBlock(),e.createElementBlock("div",an,[e.createVNode(P,{icon:"arrow_left",variant:"ghost",id:B.backButtonId,onClick:f=>k(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.backButtonText??e.unref(de)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"sub-navigation")],8,en)],64)):e.createCommentVNode("",!0)],42,Za))}}),tn=["id"],dn=["aria-disabled","open"],me=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-item-"+L(),t.defaultOpen&&(a.value=t.defaultOpen)});function m(o){o==null||o.preventDefault();const p=!a.value;t.onToggle&&t.onToggle(p),a.value=p}return(o,p)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(E)("db-accordion-item",t.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(_)(o.disabled),ref_key:"_ref",ref:n,open:a.value},[e.createElementVNode("summary",{onClick:p[0]||(p[0]=async i=>m(i))},[o.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.headlinePlain),1)],64)):e.createCommentVNode("",!0),o.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(o.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[o.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.text),1)],64)):e.renderSlot(o.$slots,"default",{key:1})])],8,dn)],10,tn))}}),ln=["id","data-variant"],on=e.defineComponent({__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:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(R),a=e.ref(""),n=e.ref(!1),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-"+L(),n.value=!0,m.value=!0}),e.watch(()=>[n.value,t.name,t.behavior,l.value],()=>{n.value&&(t.behavior==="single"?t.name?a.value!==t.name&&(a.value=t.name):a.value!==l.value&&l.value&&(a.value=l.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[o.value,a.value],()=>{if(o.value){const i=o.value.getElementsByTagName("details");if(i)for(const h of Array.from(i))a.value===""?h.removeAttribute("name"):h.name=a.value}},{immediate:!0,flush:"post"}),e.watch(()=>[o.value,m.value,t.initOpenIndex],()=>{var i;if(o.value&&m.value){if(t.initOpenIndex&&((i=t.initOpenIndex)==null?void 0:i.length)>0){const h=o.value.getElementsByTagName("details");if(h){const r=t.behavior==="single"&&t.initOpenIndex.length>1?[t.initOpenIndex[0]]:t.initOpenIndex;Array.from(h).forEach((y,k)=>{r.includes(k)&&(y.open=!0)})}}m.value=!1}},{immediate:!0,flush:"post"});function p(i){try{return typeof i=="string"?JSON.parse(i):i}catch(h){console.error(h)}return[]}return(i,h)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:o,id:l.value,class:e.normalizeClass(e.unref(E)("db-accordion",t.class)),"data-variant":i.variant},[i.items?e.createCommentVNode("",!0):e.renderSlot(i.$slots,"default",{key:0}),i.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p(i.items),(r,y)=>(e.openBlock(),e.createBlock(me,{key:`accordion-item-${y}`,headlinePlain:r.headlinePlain,disabled:r.disabled,text:r.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,ln))}}),sn=["id","aria-labelledby"],rn=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"navigation-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":n.labelledBy,class:e.normalizeClass(e.unref(E)("db-navigation",t.class))},[e.createElementVNode("menu",null,[e.renderSlot(n.$slots,"default")])],10,sn))}}),fn=["id"],un=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],cn=e.defineComponent({__name:"popover",props:{open:{type:Boolean,default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},placement:{default:void 0},gap:{type:Boolean,default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[n.value,l.value],()=>{if(n.value&&l.value){const i=p();i&&(i.ariaHasPopup="true"),l.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,a.value],()=>{if(n.value){const i=p();i&&(i.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function m(){if(a.value=!0,!n.value)return;const i=n.value.querySelector("article");i&&X(i)}function o(i){const h=i.target;(!h.parentNode||h.parentNode.querySelector(":focus")!==h&&h.parentNode.querySelector(":focus-within")!==h&&h.parentNode.querySelector(":hover")!==h)&&(a.value=!1)}function p(){var i;if(n.value){const h=Array.from(n.value.children);if(h.length>=2){const r=h[0];return r.tagName.includes("-")?((i=r.children)==null?void 0:i.length)>0?r.children[0]:null:r}}return null}return(i,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:n,id:i.id,class:e.normalizeClass(e.unref(E)("db-popover",t.class)),onFocus:h[0]||(h[0]=async r=>m()),onBlur:h[1]||(h[1]=async r=>o(r)),onMouseenter:h[2]||(h[2]=async r=>m()),onMouseleave:h[3]||(h[3]=async r=>o(r))},[e.renderSlot(i.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":i.spacing,"data-gap":e.unref(_)(i.gap),"data-animation":e.unref(_)(i.animation??!0),"data-open":i.open,"data-delay":i.delay,"data-width":i.width,"data-placement":i.placement},[e.renderSlot(i.$slots,"default")],8,un)],42,fn))}}),mn=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],pn=e.defineComponent({__name:"tooltip",props:{showArrow:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=t.id||"tooltip-"+L(),a.value=!0}),e.watch(()=>[n.value,a.value],()=>{if(n.value&&a.value&&l.value){let p=n.value.parentElement;p&&p.localName.includes("tooltip")&&(p=p.parentElement),p&&(["mouseenter","focus"].forEach(i=>{p.addEventListener(i,()=>o())}),p.setAttribute("data-has-tooltip","true"),p.setAttribute("aria-describedby",l.value)),a.value=!1}},{immediate:!0,flush:"post"});function m(p){p.stopPropagation()}function o(){n.value&&X(n.value)}return(p,i)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:n,class:e.normalizeClass(e.unref(E)("db-tooltip",t.class)),id:l.value,"data-emphasis":p.emphasis,"data-animation":e.unref(_)(p.animation??!0),"data-delay":p.delay,"data-width":p.width,"data-show-arrow":e.unref(_)(p.showArrow??!0),"data-placement":p.placement,onClick:i[0]||(i[0]=async h=>m(h))},[e.renderSlot(p.$slots,"default")],10,mn))}}),hn=["id"],gn={role:"tablist"},pe=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"tab-list-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(E)("db-tab-list",t.class))},[e.createElementVNode("ul",gn,[e.renderSlot(n.$slots,"default")])],10,hn))}}),bn=["id","aria-labelledby"],he=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(d){const t=d,l=e.ref(null);return e.onMounted(()=>{}),(a,n)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(E)("db-tab-panel",t.class)),id:a.id,"aria-labelledby":a.labelledBy},[a.content?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.content),1)],64)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,bn))}}),yn=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],Bn=e.defineComponent({__name:"tabs",props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0}},setup(d){const t=d,l=e.ref("tabs-"+L()),a=e.ref(""),n=e.ref(!1),m=e.ref(!1),o=e.ref(!1),p=e.ref(null),i=e.ref(null);e.onMounted(()=>{l.value=t.id||l.value,a.value=`tabs-${t.name||L()}`,n.value=!0}),e.watch(()=>[i.value,n.value],()=>{if(i.value&&n.value){k(),C(!0);const c=i.value.querySelector(".db-tab-list");c&&new MutationObserver(b=>{b.forEach(u=>{(u.removedNodes.length||u.addedNodes.length)&&(k(),C())})}).observe(c,{childList:!0,subtree:!0}),n.value=!1}},{immediate:!0,flush:"post"});function h(c){try{return typeof c=="string"?JSON.parse(c):c}catch(f){console.error(f)}return[]}function r(c){const f=c.scrollWidth>c.clientWidth;m.value=f&&c.scrollLeft>1,o.value=f&&c.scrollLeft<c.scrollWidth-c.clientWidth}function y(c){var b;let f=t.arrowScrollDistance||100;c&&(f*=-1),(b=p.value)==null||b.scrollBy({top:0,left:f,behavior:"smooth"})}function k(){if(i.value){const c=i.value.querySelector(".db-tab-list");if(c){const f=c.querySelector('[role="tablist"]');f&&(f.setAttribute("aria-orientation",t.orientation||"horizontal"),t.behavior==="arrows"&&(p.value=f,r(f),f.addEventListener("scroll",()=>{r(f)})))}}}function C(c){if(i.value){const f=Array.from(i.value.getElementsByClassName("db-tab-item"));for(const u of f){const S=f.indexOf(u),g=u.querySelector("label"),w=u.querySelector("input");if(w&&g){if(!w.id){const N=`${a.value}-tab-${S}`;g.setAttribute("for",N),w.setAttribute("aria-controls",`${a.value}-tab-panel-${S}`),w.id=N,w.setAttribute("name",a.value)}if(c){const N=!t.initialSelectedMode||t.initialSelectedMode==="auto",G=t.initialSelectedIndex==null&&S===0||t.initialSelectedIndex===S;N&&G&&w.click()}}}const b=Array.from(i.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const u of b){if(u.id)continue;const S=b.indexOf(u);u.id=`${a.value}-tab-panel-${S}`,u.setAttribute("aria-labelledby",`${a.value}-tab-${S}`)}}}function B(c){if(t.onIndexChange&&c.target){const f=c.target.closest("ul"),b=c.target.closest("db-tab-item")??c.target.closest("li");f!==null&&b!==null&&t.onIndexChange(Array.from(f.childNodes).indexOf(b))}t.onTabSelect&&t.onTabSelect(c)}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:i,id:l.value,class:e.normalizeClass(e.unref(E)("db-tabs",t.class)),"data-orientation":c.orientation,"data-scroll-behavior":c.behavior,"data-alignment":c.alignment??"start","data-width":c.width??"auto",onInput:f[0]||(f[0]=async b=>B(b))},[m.value?(e.openBlock(),e.createBlock(P,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:b=>y(!0)},{default:e.withCtx(()=>f[1]||(f[1]=[e.createTextVNode(" Scroll left ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),c.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(pe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(c.tabs),(b,u)=>(e.openBlock(),e.createBlock(ce,{key:c.name+"tab-item"+u,active:b.active,label:b.label,iconAfter:b.iconAfter,icon:b.icon,noText:b.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(c.tabs),(b,u)=>(e.openBlock(),e.createBlock(he,{key:c.name+"tab-panel"+u,content:b.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createBlock(P,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:b=>y()},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode(" Scroll right ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],42,yn))}}),kn=["adaptive","neutral","critical","informational","warning","successful"],En=["medium","small","large","none"],Nn=["medium","small","large","none"],Sn=["left","right","top","bottom","left-start","left-end","right-start","right-end","top-start","top-end","bottom-start","bottom-end"],wn=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Cn=["horizontal","vertical"],Ln=["full","auto"],In=["full","medium","large","small"],_n=["none","slow","fast"],Tn=["auto","fixed"],Dn=["small","medium"],ge=["weak","strong"],Fn=[...ge,"origin"],An=["invalid","valid","no-validation"],Vn=["above","floating"],$n=["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"],Mn=["time","true","false","date","page","step","location"],vn=["_self","_blank","_parent","_top"],zn=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Rn=["start","center"],Un=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Pn=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:Boolean,default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},gap:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-stack",t.class)),"data-gap":a.gap,"data-variant":a.variant,"data-direction":a.direction,"data-alignment":a.alignment,"data-justify-content":a.justifyContent,"data-wrap":e.unref(_)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Un))}});s.AlignmentList=Rn,s.AutoCompleteList=$n,s.COLOR=x,s.COLORS=we,s.COLORS_SIMPLE=Ce,s.COLOR_CONST=Ne,s.COLOR_SIMPLE=Z,s.DBAccordion=on,s.DBAccordionItem=me,s.DBBadge=Ve,s.DBBrand=Me,s.DBButton=P,s.DBCard=ze,s.DBCheckbox=qe,s.DBDivider=Xe,s.DBDrawer=fe,s.DBHeader=fa,s.DBIcon=ca,s.DBInfotext=D,s.DBInput=Ba,s.DBLink=Ea,s.DBNavigation=rn,s.DBNavigationItem=nn,s.DBNotification=Fe,s.DBPage=wa,s.DBPopover=cn,s.DBRadio=Ia,s.DBSection=Ta,s.DBSelect=Ra,s.DBStack=Pn,s.DBSwitch=Oa,s.DBTabItem=ce,s.DBTabList=pe,s.DBTabPanel=he,s.DBTabs=Bn,s.DBTag=Ha,s.DBTextarea=Qa,s.DBTooltip=pn,s.DEFAULT_BACK=de,s.DEFAULT_BURGER_MENU=ie,s.DEFAULT_CLOSE_BUTTON=J,s.DEFAULT_DATALIST_ID_SUFFIX=K,s.DEFAULT_ICON=le,s.DEFAULT_ID=R,s.DEFAULT_INVALID_MESSAGE=z,s.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=M,s.DEFAULT_LABEL=q,s.DEFAULT_MESSAGE_ID_SUFFIX=V,s.DEFAULT_PLACEHOLDER=Y,s.DEFAULT_PLACEHOLDER_ID_SUFFIX=j,s.DEFAULT_ROWS=oe,s.DEFAULT_VALID_MESSAGE=v,s.DEFAULT_VALID_MESSAGE_ID_SUFFIX=$,s.DEFAULT_VIEWPORT=se,s.DENSITIES=Se,s.DENSITY=Q,s.DENSITY_CONST=Ee,s.DESKTOP_VIEWPORT=re,s.EmphasisList=ge,s.GapSpacingList=wn,s.LabelVariantList=Vn,s.LinkCurrentList=Mn,s.LinkReferrerPolicyList=zn,s.LinkTargetList=vn,s.MarginList=Nn,s.MaxWidthList=In,s.NavigationItemSafeTriangle=ue,s.OrientationList=Cn,s.PlacementList=Sn,s.PopoverDelayList=_n,s.PopoverWidthList=Tn,s.SEMANTIC=ee,s.SEMANTICS=Le,s.SemanticList=kn,s.SizeList=Dn,s.SpacingList=En,s.TESTING_VIEWPORTS=Ie,s.TagEmphasisList=Fn,s.ValidationList=An,s.WidthList=Ln,s.addAttributeToChildren=H,s.cls=E,s.delay=F,s.getBooleanAsString=_,s.getHideProp=I,s.handleDataOutside=X,s.hasVoiceOver=A,s.isArrayOfStrings=te,s.isEventTargetNavigationItem=ae,s.isInView=ne,s.stringPropVisible=T,s.uuid=L,s.visibleInVX=be,s.visibleInVY=ye,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r["DB-UX"]={},r.Vue))})(this,function(r,e){"use strict";var li=Object.defineProperty;var ni=(r,e,A)=>e in r?li(r,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):r[e]=A;var ee=(r,e,A)=>ni(r,typeof e!="symbol"?e+"":e,A);const A=()=>{var i,o;if(typeof window<"u"){if((i=window.crypto)!=null&&i.randomUUID)return window.crypto.randomUUID();if((o=window.crypto)!=null&&o.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},he=(i,o)=>{const d=i.children;Object.values(d).forEach(a=>{a.setAttribute(o.key,o.value),a.children.length>0&&he(a,o)})},S=(...i)=>{let o="";for(const d of i)if(d)if(typeof d=="string")o+=`${d} `;else for(const a in d)d[a]&&(o+=`${a} `);return o.trim()},ia=i=>{const{left:o,right:d}=i.getBoundingClientRect(),{innerWidth:a}=window;return o>=0&&d<=a},la=i=>{const{top:o,bottom:d}=i.getBoundingClientRect(),{innerHeight:a}=window;return o>=0&&d<=a},Le=i=>{var k;const{top:o,bottom:d,left:a,right:t}=i.getBoundingClientRect(),{innerHeight:c,innerWidth:s}=window;let g=o<0,n=d>c,u=a<0,f=t>s;const B=i.hasAttribute("data-outside-vy"),E=i.hasAttribute("data-outside-vx"),I=(k=i==null?void 0:i.parentElement)==null?void 0:k.getBoundingClientRect();return I&&(B&&(i.getAttribute("data-outside-vy")==="top"?g=I.top-(d-I.bottom)<0:n=I.bottom+(I.top-o)>c),E&&(i.getAttribute("data-outside-vx")==="left"?u=I.left-(t-I.right)<0:f=I.right+(I.left-a)>s)),{outTop:g,outBottom:n,outLeft:u,outRight:f}},de=i=>{const{outTop:o,outBottom:d,outLeft:a,outRight:t}=Le(i);let c={};return o||d?(c={vy:o?"top":"bottom"},i.setAttribute("data-outside-vy",c.vy)):i.removeAttribute("data-outside-vy"),a||t?(c={...c,vx:t?"right":"left"},i.setAttribute("data-outside-vx",c.vx)):i.removeAttribute("data-outside-vx"),c},_e=i=>Array.isArray(i)&&i.every(o=>typeof o=="string"),na=["Mac","iPhone","iPad","iPod"],O=()=>typeof window<"u"&&na.some(i=>window.navigator.userAgent.includes(i)),$=(i,o)=>new Promise(()=>setTimeout(i,o)),F=i=>i&&String(i),V=i=>{if(i!=null)return F(!i)},z=(i,o)=>o===void 0?!!i:o&&i,ge=i=>i.querySelector('input[type="search"]'),da=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","value","aria-describedby","aria-expanded","aria-pressed"],K=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},state:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);function a(t){o.onClick&&o.onClick(t)}return(t,c)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:d,id:t.id,class:e.normalizeClass(e.unref(S)("db-button",o.class)),type:t.type||"button",disabled:t.disabled,"aria-label":t.label,"data-icon":t.icon,"data-hide-icon":e.unref(V)(t.showIcon),"data-size":t.size,"data-state":t.state,"data-width":t.width,"data-variant":t.variant,"data-no-text":e.unref(F)(t.noText),name:t.name,value:t.value,"aria-describedby":t.describedbyid,"aria-expanded":t.ariaexpanded,"aria-pressed":t.ariapressed,onClick:c[0]||(c[0]=async s=>a(s))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,da))}}),Z="OVERWRITE_DEFAULT_ID",q="LABEL SHOULD BE SET",be=" ",De="MESSAGE SHOULD BE SET",ye="-label",ve="-select",W="-message",X="-valid-message",H="-invalid-message",se="-placeholder",Be="-datalist",j="TODO: Add a validMessage",Y="TODO: Add an invalidMessage",ke="Remove",Ie="Back",Ae="Selected",Fe="BurgerMenu",Ve="brand",$e=4,ue="Close",sa="density",ra="color";var Ee=(i=>(i.FUNCTIONAL="functional",i.REGULAR="regular",i.EXPRESSIVE="expressive",i))(Ee||{});const ca=Object.entries(Ee).map(([,i])=>i);var we=(i=>(i.PRIMARY="primary",i))(we||{}),Se=(i=>(i.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",i.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",i.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",i.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",i.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",i.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",i.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",i.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",i.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",i.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",i.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",i.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",i.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",i.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",i.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",i.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",i.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",i.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",i.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",i.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",i.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",i.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",i.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",i.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",i.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",i.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",i.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",i.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",i.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",i.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full",i))(Se||{});const fa=Object.entries(Se).map(([,i])=>i),ua=Object.entries(we).map(([,i])=>i);var Ne=(i=>(i.CRITICAL="critical",i.INFORMATIONAL="informational",i.WARNING="warning",i.SUCCESSFUL="successful",i))(Ne||{});const ma=Object.entries(Ne).map(([,i])=>i),Me={width:390,height:884},ze={width:1920,height:1280},pa=[{name:"desktop",...ze},{name:"tablet",width:768,height:1024},{name:"mobile",...Me}],ha=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],ga={key:0},ba={key:1},ya=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:Boolean,default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:Boolean,default:void 0},timestamp:{default:void 0},showTimestamp:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:Boolean},width:{},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);function a(t){o.onClose&&o.onClose()}return(t,c)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:d,id:t.id,class:e.normalizeClass(e.unref(S)("db-notification",o.class)),"aria-live":t.ariaLive,"data-semantic":t.semantic,"data-variant":t.variant,"data-icon":t.icon,"data-hide-icon":e.unref(V)(t.showIcon),"data-link-variant":t.linkVariant},[e.renderSlot(t.$slots,"image"),e.unref(z)(t.headline,t.showHeadline)?(e.openBlock(),e.createElementBlock("header",ga,e.toDisplayString(t.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})]),e.unref(z)(t.timestamp,t.showTimestamp)?(e.openBlock(),e.createElementBlock("span",ba,e.toDisplayString(t.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"link"),t.closeable?(e.openBlock(),e.createBlock(K,{key:2,icon:"cross",variant:"ghost",size:"small",id:t.closeButtonId,noText:!0,onClick:s=>a()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeButtonText??e.unref(ue)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,ha))}}),va=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Ba=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{d.value=!0}),e.watch(()=>[a.value,d.value],()=>{var t;if(a.value&&d.value&&(t=o.placement)!=null&&t.startsWith("corner")){let c=a.value.parentElement;c&&c.localName.includes("badge")&&(c=c.parentElement),c&&c.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(t,c)=>{var s;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:t.id,class:e.normalizeClass(e.unref(S)("db-badge",o.class)),"data-semantic":t.semantic,"data-size":t.size,"data-emphasis":t.emphasis,"data-placement":t.placement,"data-label":((s=t.placement)==null?void 0:s.startsWith("corner"))&&(t.label??e.unref(q))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,va)}}}),ka=["data-icon","data-hide-icon","id"],Ea=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,"data-icon":a.hideLogo?"none":a.icon??e.unref(Ve),"data-hide-icon":e.unref(V)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(S)("db-brand",o.class))},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,ka))}}),wa=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],Sa=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(i){const o=i,d=e.ref(null);function a(t){o.onClick&&o.onClick(t)}return(t,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:t.id,class:e.normalizeClass(e.unref(S)("db-card",o.class)),"data-behavior":t.behavior,"data-elevation-level":t.elevationLevel,"data-spacing":t.spacing,role:t.behavior==="interactive"?"button":void 0,tabIndex:t.behavior==="interactive"?0:void 0,onClick:c[0]||(c[0]=async s=>a(s))},[e.renderSlot(t.$slots,"default")],10,wa))}}),J=(i,o,d="value")=>{i(`update:${d}`,o.target[d])},Na=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],M=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-infotext",o.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(V)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Na))}}),Ca=["data-size","data-hide-label"],Ta=["for"],La=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],_a={"data-visually-hidden":"true",role:"status"},Da=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,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,default:void 0},size:{default:void 0}},emits:["update:checked"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(!1),c=e.ref(void 0),s=e.ref(void 0),g=e.ref(void 0),n=e.ref(void 0),u=e.ref(""),f=e.ref(""),B=e.ref(null);e.onMounted(()=>{t.value=!0;const h=a.id??`checkbox-${A()}`;c.value=h,s.value=h+W,g.value=h+X,n.value=h+H}),e.watch(()=>[c.value],()=>{if(c.value){const h=c.value+W;s.value=h,g.value=c.value+X,n.value=c.value+H,z(a.message,a.showMessage)&&(u.value=h)}},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,B.value,a.indeterminate],()=>{B.value&&a.indeterminate!==void 0&&(B.value.indeterminate=a.indeterminate)},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,B.value,a.checked],()=>{t.value&&B.value&&(a.checked!=null&&(B.value.checked=a.checked),t.value=!1)},{immediate:!0,flush:"post"});function E(h){var m,v,p;a.onChange&&a.onChange(h),a.change&&a.change(h),J(d,h,"checked"),!((m=B.value)!=null&&m.validity.valid)||a.validation==="invalid"?(u.value=n.value,O()&&(f.value=a.invalidMessage??((v=B.value)==null?void 0:v.validationMessage)??Y,$(()=>f.value="",1e3))):a.validation==="valid"||(p=B.value)!=null&&p.validity.valid&&a.required?(u.value=g.value,O()&&(f.value=a.validMessage??j,$(()=>f.value="",1e3))):z(a.message,a.showMessage)?u.value=s.value:u.value=""}function I(h){a.onBlur&&a.onBlur(h),a.blur&&a.blur(h)}function k(h){a.onFocus&&a.onFocus(h),a.focus&&a.focus(h)}return(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)("db-checkbox",a.class)),"data-size":h.size,"data-hide-label":e.unref(V)(h.showLabel)},[e.createElementVNode("label",{for:c.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":h.validation==="invalid","data-custom-validity":h.validation,ref_key:"_ref",ref:B,id:c.value,name:h.name,checked:h.checked,disabled:h.disabled,value:h.value,required:h.required,onChange:m[0]||(m[0]=async v=>E(v)),onBlur:m[1]||(m[1]=async v=>I(v)),onFocus:m[2]||(m[2]=async v=>k(v)),"aria-describedby":u.value},null,40,La),h.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.label),1)],64)):e.renderSlot(h.$slots,"default",{key:1})],8,Ta),e.unref(z)(h.message,h.showMessage)?(e.openBlock(),e.createBlock(M,{key:0,size:"small",icon:h.messageIcon,id:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(M,{size:"small",semantic:"successful",id:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.validMessage??e.unref(j)),1)]),_:1},8,["id"]),e.createVNode(M,{size:"small",semantic:"critical",id:n.value},{default:e.withCtx(()=>{var v;return[e.createTextVNode(e.toDisplayString(h.invalidMessage??(((v=B.value)==null?void 0:v.validationMessage)||e.unref(Y))),1)]}),_:1},8,["id"]),e.createElementVNode("span",_a,e.toDisplayString(f.value),1)],10,Ca))}}),Ia=["id","data-margin","data-variant","data-emphasis","data-width"],Aa=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},width:{default:void 0}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(S)("db-divider",o.class))},null,10,Ia))}}),Fa=["id","data-backdrop","data-variant"],Va=["data-spacing","data-width","data-direction","data-rounded"],$a={class:"db-drawer-header"},Ma={class:"db-drawer-header-text"},za={class:"db-drawer-content"},Re=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:Boolean,default:void 0},rounded:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(i){const o=i,d=e.ref(null),a=e.ref(null);e.onMounted(()=>{c()}),e.watch(()=>[o.open],()=>{c()},{immediate:!0,flush:"post"});function t(s){s.key==="Escape"&&s.preventDefault(),(s==="close"||s.key==="Escape"||s.target.nodeName==="DIALOG"&&s.type==="click"&&o.backdrop!=="none")&&o.onClose&&o.onClose(s)}function c(){d.value&&(o.open&&!d.value.open&&(a.value&&(a.value.hidden=!1),o.backdrop==="none"||o.variant==="inside"?d.value.show():d.value.showModal()),!o.open&&d.value.open&&(a.value&&(a.value.hidden=!0),$(()=>{var s;a.value&&(a.value.hidden=!1),(s=d.value)==null||s.close()},401)))}return(s,g)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:s.id,ref_key:"_ref",ref:d,onClick:g[0]||(g[0]=async n=>{t(n)}),onKeydown:g[1]||(g[1]=async n=>t(n)),"data-backdrop":s.backdrop,"data-variant":s.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(S)("db-drawer-container",o.class)),"data-spacing":s.spacing,"data-width":s.width,"data-direction":s.direction,"data-rounded":s.rounded},[e.createElementVNode("header",$a,[e.createElementVNode("div",Ma,[e.renderSlot(s.$slots,"drawer-header")]),e.createVNode(K,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:s.closeButtonId,noText:!0,onClick:n=>t("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.closeButtonText??e.unref(ue)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",za,[e.renderSlot(s.$slots,"default")])],10,Va)],40,Fa))}}),Ce=i=>{var d,a;const{target:o}=i;return!!(!((d=o==null?void 0:o.classList)!=null&&d.contains("db-navigation-item-expand-button"))&&((a=o==null?void 0:o.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class Ue{constructor(o,d){ee(this,"element");ee(this,"subNavigation");ee(this,"parentSubNavigation",null);ee(this,"triangleData");ee(this,"initialized",!1);ee(this,"mouseX",0);ee(this,"mouseY",0);var a;this.element=o,this.subNavigation=d,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var d,a;const o=((d=this.parentSubNavigation)==null?void 0:d.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${o}px`),this.initialized=!0}enableFollow(){var t;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const o=de(this.subNavigation),d=this.element.getBoundingClientRect(),a=((t=this.parentSubNavigation)==null?void 0:t.getBoundingClientRect().width)??0;this.triangleData={itemRect:d,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-d.width)/2,outsideVX:o.vx,outsideVY:o.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;const o=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?o+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):o}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const o=this.triangleData.outsideVX==="right";return!!(o&&this.mouseX<-1*this.triangleData.padding||!o&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(o){if(!this.triangleData)return;if(o==="fill-gap"){const s=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,g=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${g} ${s}`,lt:`${g} 0`,rt:"100% 0",rb:`100% ${s}`}}const d=this.getTriangleTipX(),a=this.getTriangleTipY(),t=`${d}px ${a}px`,c=`${d}px ${a}px`;return{lb:t,lt:c,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(o){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=o.clientX-this.triangleData.itemRect.left,this.mouseY=o.clientY-this.triangleData.itemRect.top;const d=this.hasMouseEnteredSubNavigation(),a=this.getTriangleCoordinates(d?"fill-gap":"safe-triangle");a&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`),d&&(this.triangleData=void 0))}}const Ra=["id","data-width","data-on-forcing-mobile"],Ua={class:"db-header-drawer-navigation"},Pa={class:"db-header-meta-navigation"},Ga={class:"db-header-secondary-action"},Oa={class:"db-header-meta-navigation"},qa={class:"db-header-navigation-bar"},Wa={class:"db-header-brand-container"},Xa={class:"db-header-navigation-container"},Ha={class:"db-header-navigation"},ja={class:"db-header-primary-action"},Ya={class:"db-header-action-container"},Ka={class:"db-header-burger-menu-container"},Ja={class:"db-header-secondary-action"},Qa=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:Boolean,default:void 0},forceMobile:{type:Boolean,default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(i){const o=i,d=e.ref(Z),a=e.ref(!1),t=e.ref(!1),c=e.ref(null);e.onMounted(()=>{a.value=!0,d.value=o.id||"header-"+A()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&d.value&&o.forceMobile){const n=document.getElementById(d.value);n&&he(n,{key:"data-force-mobile",value:"true"}),t.value=!0}},{immediate:!0,flush:"post"});function s(){o.onToggle&&o.onToggle(!o.drawerOpen)}function g(n){Ce(n)&&s()}return(n,u)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:c,class:e.normalizeClass(e.unref(S)("db-header",o.class)),id:d.value,"data-width":n.width,"data-on-forcing-mobile":n.forceMobile&&!t.value},[e.createVNode(Re,{class:"db-header-drawer",spacing:"small",rounded:!0,open:n.drawerOpen,onClose:()=>s()},{default:e.withCtx(()=>[e.createElementVNode("div",Ua,[e.createElementVNode("div",{class:"db-header-navigation",onClick:u[0]||(u[0]=async f=>g(f))},[e.renderSlot(n.$slots,"default")]),e.createElementVNode("div",Pa,[e.renderSlot(n.$slots,"meta-navigation")])]),e.createElementVNode("div",Ga,[e.renderSlot(n.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",Oa,[e.renderSlot(n.$slots,"meta-navigation")]),e.createElementVNode("div",qa,[e.createElementVNode("div",Wa,[e.renderSlot(n.$slots,"brand")]),e.createElementVNode("div",Xa,[e.createElementVNode("div",Ha,[e.renderSlot(n.$slots,"default")]),e.createElementVNode("div",ja,[e.renderSlot(n.$slots,"primary-action")])]),e.createElementVNode("div",Ya,[e.createElementVNode("div",Ka,[e.createVNode(K,{icon:"menu",variant:"ghost",id:d.value+"-burger-menu",noText:!0,onClick:()=>s()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.burgerMenuLabel??e.unref(Fe)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Ja,[e.renderSlot(n.$slots,"secondary-action")])])])],10,Ra))}}),Za=["id","data-icon","data-icon-weight","data-icon-variant"],xa=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-icon",o.class)),"data-icon":a.icon,"data-icon-weight":a.weight,"data-icon-variant":a.variant},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Za))}}),et=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],at=["for"],tt=["aria-invalid","data-custom-validity","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],ot=["id"],it=["value"],lt={"data-visually-hidden":"true",role:"status"},Pe=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean,default:void 0},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{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,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(void 0),s=e.ref(void 0),g=e.ref(void 0),n=e.ref(void 0),u=e.ref(""),f=e.ref(""),B=e.ref(""),E=e.ref(null);e.onMounted(()=>{const p=a.id??`input-${A()}`;t.value=p,c.value=p+W,s.value=p+X,g.value=p+H,n.value=p+Be}),e.watch(()=>[t.value],()=>{if(t.value){const p=t.value+W;c.value=p,s.value=t.value+X,g.value=t.value+H,n.value=a.dataListId??t.value+Be,z(a.message,a.showMessage)&&(u.value=p)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{f.value=a.value},{immediate:!0,flush:"post"});function I(p){f.value=p.target.value,a.onInput&&a.onInput(p),a.input&&a.input(p)}function k(p){var w,b,T;a.onChange&&a.onChange(p),a.change&&a.change(p),J(d,p),!((w=E.value)!=null&&w.validity.valid)||a.validation==="invalid"?(u.value=g.value,O()&&(B.value=a.invalidMessage??((b=E.value)==null?void 0:b.validationMessage)??Y,$(()=>B.value="",1e3))):a.validation==="valid"||(T=E.value)!=null&&T.validity.valid&&(a.required||a.minLength||a.maxLength||a.pattern)?(u.value=s.value,O()&&(B.value=a.validMessage??j,$(()=>B.value="",1e3))):z(a.message,a.showMessage)?u.value=c.value:u.value=""}function h(p){a.onBlur&&a.onBlur(p),a.blur&&a.blur(p)}function m(p){a.onFocus&&a.onFocus(p),a.focus&&a.focus(p)}function v(p){return Array.from((_e(p)?p.map(w=>({value:w,label:void 0})):p)||[])}return(p,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)("db-input",a.class)),"data-variant":p.variant,"data-hide-label":e.unref(V)(p.showLabel),"data-hide-icon":e.unref(V)(p.showIcon),"data-icon":p.icon,"data-icon-after":p.iconAfter,"data-hide-icon-after":e.unref(V)(p.showIcon)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(p.label??e.unref(q)),9,at),e.createElementVNode("input",{"aria-invalid":p.validation==="invalid","data-custom-validity":p.validation,ref_key:"_ref",ref:E,id:t.value,name:p.name,type:p.type||"text",placeholder:p.placeholder??e.unref(be),disabled:p.disabled,required:p.required,step:p.step,value:p.value??f.value,maxLength:p.maxLength,minLength:p.minLength,max:p.max,min:p.min,readOnly:p.readOnly,form:p.form,pattern:p.pattern,size:p.size,autoComplete:p.autocomplete,autoFocus:p.autofocus,onInput:w[0]||(w[0]=async b=>I(b)),onChange:w[1]||(w[1]=async b=>k(b)),onBlur:w[2]||(w[2]=async b=>h(b)),onFocus:w[3]||(w[3]=async b=>m(b)),list:p.dataList&&n.value,"aria-describedby":p.ariaDescribedBy??u.value},null,40,tt),p.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:n.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v(p.dataList),b=>(e.openBlock(),e.createElementBlock("option",{key:n.value+"-option-"+b.value,value:b.value},e.toDisplayString(b.label),9,it))),128))],8,ot)):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"default"),e.unref(z)(p.message,p.showMessage)?(e.openBlock(),e.createBlock(M,{key:1,size:"small",icon:p.messageIcon,id:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(M,{size:"small",semantic:"successful",id:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.validMessage??e.unref(j)),1)]),_:1},8,["id"]),e.createVNode(M,{size:"small",semantic:"critical",id:g.value},{default:e.withCtx(()=>{var b;return[e.createTextVNode(e.toDisplayString(p.invalidMessage??(((b=E.value)==null?void 0:b.validationMessage)||e.unref(Y))),1)]}),_:1},8,["id"]),e.createElementVNode("span",lt,e.toDisplayString(B.value),1)],10,et))}}),nt=["id","href","target","rel","role","hrefLang","aria-disabled","tabIndex","aria-selected","aria-label","aria-current","data-size","data-hide-icon-after","data-variant","data-content"],dt=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(null);function a(t){o.onClick&&o.onClick(t)}return(t,c)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:d,id:t.id,class:e.normalizeClass(e.unref(S)("db-link",o.class)),href:t.href,target:t.target,rel:t.rel,role:t.role,hrefLang:t.hreflang,"aria-disabled":e.unref(F)(t.disabled),tabIndex:t.disabled?-1:0,"aria-selected":t.selected,"aria-label":t.label,"aria-current":t.current,"data-size":t.size,"data-hide-icon-after":e.unref(V)(t.showIcon??!0),"data-variant":t.variant,"data-content":t.content||"internal",onClick:c[0]||(c[0]=async s=>a(s))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,nt))}}),st=["id","data-variant","data-fade-in","data-fonts-loaded"],rt=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:Boolean,default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(o.documentOverflow==="hidden"||o.variant==="fixed"&&o.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{d.value=!o.fadeIn,document&&o.fadeIn?document.fonts.ready.then(()=>{d.value=!0}):d.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(t,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:t.id,class:e.normalizeClass(e.unref(S)("db-page",o.class)),"data-variant":t.variant,"data-fade-in":t.fadeIn,"data-fonts-loaded":e.unref(F)(d.value)},[e.renderSlot(t.$slots,"header"),e.createElementVNode("main",{class:e.normalizeClass(e.unref(S)("db-main",t.mainClass))},[e.renderSlot(t.$slots,"default")],2),e.renderSlot(t.$slots,"footer")],10,st))}}),ct=["data-size","data-hide-label","for"],ft=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],ut=e.defineComponent({__name:"radio",props:{describedbyid:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(!1),c=e.ref(void 0),s=e.ref(null);e.onMounted(()=>{t.value=!0,c.value=a.id??`radio-${A()}`}),e.watch(()=>[t.value,s.value,a.checked],()=>{a.checked&&t.value&&s.value&&(s.value.checked=!0)},{immediate:!0,flush:"post"});function g(f){a.onChange&&a.onChange(f),a.change&&a.change(f),J(d,f)}function n(f){a.onBlur&&a.onBlur(f),a.blur&&a.blur(f)}function u(f){a.onFocus&&a.onFocus(f),a.focus&&a.focus(f)}return(f,B)=>(e.openBlock(),e.createElementBlock("label",{"data-size":f.size,"data-hide-label":e.unref(V)(f.showLabel),class:e.normalizeClass(e.unref(S)("db-radio",a.class)),for:c.value},[e.createElementVNode("input",{type:"radio","aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,ref_key:"_ref",ref:s,id:c.value,name:f.name,checked:f.checked,disabled:f.disabled,"aria-describedby":f.describedbyid,value:f.value,required:f.required,onChange:B[0]||(B[0]=async E=>g(E)),onBlur:B[1]||(B[1]=async E=>n(E)),onFocus:B[2]||(B[2]=async E=>u(E))},null,40,ft),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.renderSlot(f.$slots,"default",{key:1})],10,ct))}}),mt=["id","data-spacing","data-width"],pt=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},width:{default:void 0}},setup(i){const o=i,d=e.ref(Z),a=e.ref(null);return e.onMounted(()=>{d.value=o.id||"section-"+A()}),(t,c)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:d.value,class:e.normalizeClass(e.unref(S)("db-section",o.class)),"data-spacing":t.spacing||"medium","data-width":t.width},[e.renderSlot(t.$slots,"default")],10,mt))}}),ht=["data-variant","data-hide-label","data-icon","data-hide-icon"],gt=["for"],bt=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","multiple","aria-describedby"],yt=["label"],vt=["value","selected","disabled"],Bt=["value","disabled","selected"],kt=["id"],Et={"data-visually-hidden":"true",role:"status"},wt=e.defineComponent({__name:"select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,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,default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(void 0),s=e.ref(void 0),g=e.ref(void 0),n=e.ref(""),u=e.ref(""),f=e.ref(""),B=e.ref(!1),E=e.ref(""),I=e.ref(null);e.onMounted(()=>{B.value=!0;const b=a.id??`select-${A()}`;t.value=b,c.value=b+W,s.value=b+X,g.value=b+H,n.value=b+se}),e.watch(()=>[t.value,B.value],()=>{if(t.value&&B.value){const b=t.value+W,T=t.value+se;c.value=b,s.value=t.value+X,g.value=t.value+H,n.value=T,z(a.message,a.showMessage)?u.value=b:u.value=T,B.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{f.value=a.value},{immediate:!0,flush:"post"});function k(b){a.onClick&&a.onClick(b)}function h(b){f.value=b.target.value,a.onInput&&a.onInput(b),a.input&&a.input(b)}function m(b){var T,N,L;a.onChange&&a.onChange(b),a.change&&a.change(b),J(d,b),!((T=I.value)!=null&&T.validity.valid)||a.validation==="invalid"?(u.value=g.value,O()&&(E.value=a.invalidMessage??((N=I.value)==null?void 0:N.validationMessage)??Y,$(()=>E.value="",1e3))):a.validation==="valid"||(L=I.value)!=null&&L.validity.valid&&a.required?(u.value=s.value,O()&&(E.value=a.validMessage??j,$(()=>E.value="",1e3))):z(a.message,a.showMessage)?u.value=c.value:u.value=n.value}function v(b){a.onBlur&&a.onBlur(b),a.blur&&a.blur(b)}function p(b){a.onFocus&&a.onFocus(b),a.focus&&a.focus(b)}function w(b){var T;return b.label??((T=b.value)==null?void 0:T.toString())}return(b,T)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)("db-select",a.class)),"data-variant":b.variant,"data-hide-label":e.unref(V)(b.showLabel),"data-icon":b.icon,"data-hide-icon":e.unref(V)(b.showIcon)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(b.label??e.unref(q)),9,gt),e.createElementVNode("select",{"aria-invalid":b.validation==="invalid","data-custom-validity":b.validation,ref_key:"_ref",ref:I,required:b.required,disabled:b.disabled,id:t.value,name:b.name,size:b.size,value:b.value??f.value,autocomplete:b.autocomplete,multiple:b.multiple,onInput:T[0]||(T[0]=async N=>h(N)),onClick:T[1]||(T[1]=async N=>k(N)),onChange:T[2]||(T[2]=async N=>m(N)),onBlur:T[3]||(T[3]=async N=>v(N)),onFocus:T[4]||(T[4]=async N=>p(N)),"aria-describedby":u.value},[T[5]||(T[5]=e.createElementVNode("option",{hidden:!0},null,-1)),b.options?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(b.options,(N,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:L},[N.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:w(N)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,(R,x)=>(e.openBlock(),e.createElementBlock("option",{key:R.value.toString(),value:R.value,selected:R.selected,disabled:R.disabled},e.toDisplayString(w(R)),9,vt))),128))],8,yt)):e.createCommentVNode("",!0),N.options?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("option",{key:1,value:N.value,disabled:N.disabled,selected:N.selected},e.toDisplayString(w(N)),9,Bt))],64))),128)):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"default")],40,bt),e.createElementVNode("span",{id:n.value},e.toDisplayString(b.placeholder??b.label),9,kt),e.unref(z)(b.message,b.showMessage)?(e.openBlock(),e.createBlock(M,{key:0,size:"small",icon:b.messageIcon,id:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(M,{size:"small",semantic:"successful",id:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.validMessage??e.unref(j)),1)]),_:1},8,["id"]),e.createVNode(M,{size:"small",semantic:"critical",id:g.value},{default:e.withCtx(()=>{var N;return[e.createTextVNode(e.toDisplayString(b.invalidMessage??(((N=I.value)==null?void 0:N.validationMessage)||e.unref(Y))),1)]}),_:1},8,["id"]),e.createElementVNode("span",Et,e.toDisplayString(E.value),1)],10,ht))}}),St=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Nt=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],Ct=e.defineComponent({__name:"switch",props:{visualAid:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(!1),s=e.ref(null);e.onMounted(()=>{t.value=a.id??`switch-${A()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(c.value=!!a.checked)},{immediate:!0,flush:"post"});function g(f){var B;a.onChange&&a.onChange(f),a.change&&a.change(f),c.value=(B=f.target)==null?void 0:B.checked,J(d,f,"checked")}function n(f){a.onBlur&&a.onBlur(f),a.blur&&a.blur(f)}function u(f){a.onFocus&&a.onFocus(f),a.focus&&a.focus(f)}return(f,B)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(F)(f.visualAid),"data-size":f.size,"data-hide-label":e.unref(V)(f.showLabel),"data-emphasis":f.emphasis,for:t.value,class:e.normalizeClass(e.unref(S)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:t.value,"aria-checked":e.unref(F)(c.value),ref_key:"_ref",ref:s,checked:f.checked,value:f.value,disabled:f.disabled,"aria-describedby":f.describedbyid,"aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,name:f.name,required:f.required,"data-aid-icon":f.icon,"data-aid-icon-after":f.iconAfter,onChange:B[0]||(B[0]=async E=>g(E)),onBlur:B[1]||(B[1]=async E=>n(E)),onFocus:B[2]||(B[2]=async E=>u(E))},null,40,Nt),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.renderSlot(f.$slots,"default",{key:1})],10,St))}}),Tt=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],Lt=["disabled","aria-selected","aria-controls","checked","id"],Ge=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},noText:{type:Boolean,default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:Boolean,default:void 0},controls:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},showIcon:{type:Boolean,default:void 0}},emits:["update:checked"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(!1),c=e.ref(!1),s=e.ref(null);e.onMounted(()=>{t.value=!0}),e.watch(()=>[s.value,t.value],()=>{a.active&&t.value&&s.value&&(s.value.click(),t.value=!1)},{immediate:!0,flush:"post"});function g(n){var u;a.onChange&&a.onChange(n),a.change&&a.change(n),c.value=(u=n.target)==null?void 0:u.checked,J(d,n,"checked")}return(n,u)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(S)("db-tab-item",a.class))},[e.createElementVNode("label",{for:n.id,"data-icon":n.icon,"data-icon-after":n.iconAfter,"data-hide-icon":e.unref(V)(n.showIcon),"data-hide-icon-after":e.unref(V)(n.showIcon),"data-no-text":n.noText},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:n.disabled,"aria-selected":c.value,"aria-controls":n.controls,checked:n.checked,ref_key:"_ref",ref:s,id:n.id,onInput:u[0]||(u[0]=async f=>g(f))},null,40,Lt),n.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],8,Tt)],2))}}),_t=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],Dt=["title"],Oe=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},onRemove:{type:Function,default:void 0},removeButton:{default:void 0},showCheckState:{type:Boolean,default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},semantic:{default:void 0},overflow:{type:Boolean,default:void 0},emphasis:{default:void 0},showIcon:{type:Boolean,default:void 0},content:{}},setup(i){const o=i,d=e.ref(!1),a=e.ref(null);d.value=!0,e.watch(()=>[d.value,o.disabled,a.value],()=>{var s,g;if(d.value&&a.value&&o.disabled!==void 0){const n=(s=a.value)==null?void 0:s.querySelector("button:not(.db-tab-remove-button)"),u=(g=a.value)==null?void 0:g.querySelector("input");for(const f of[n,u])f&&(f.disabled=o.disabled)}},{immediate:!0,flush:"post"});function t(s){o.onRemove&&o.onRemove(s)}function c(){return o.removeButton?o.removeButton:ke}return(s,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:s.id,class:e.normalizeClass(e.unref(S)("db-tag",o.class)),"data-disabled":e.unref(F)(s.disabled),"data-semantic":s.semantic,"data-emphasis":s.emphasis,"data-icon":s.icon,"data-show-check-state":e.unref(F)(s.showCheckState??!0),"data-hide-icon":e.unref(V)(s.showIcon),"data-no-text":e.unref(F)(s.noText),"data-overflow":e.unref(F)(s.overflow)},[e.renderSlot(s.$slots,"content"),e.renderSlot(s.$slots,"default"),s.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.text),1)],64)):e.createCommentVNode("",!0),s.behavior==="removable"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",onClick:g[0]||(g[0]=async n=>t(n)),title:c()},e.toDisplayString(c()),9,Dt)):e.createCommentVNode("",!0)],10,_t))}}),It=["data-variant","data-hide-label"],At=["for"],Ft=["aria-invalid","data-custom-validity","id","data-resize","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Vt={"data-visually-hidden":"true",role:"status"},$t=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,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,default:void 0}},emits:["update:value"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(void 0),s=e.ref(void 0),g=e.ref(void 0),n=e.ref(""),u=e.ref(""),f=e.ref(""),B=e.ref(null);e.onMounted(()=>{const m=a.id??`textarea-${A()}`;t.value=m,c.value=m+W,s.value=m+X,g.value=m+H}),e.watch(()=>[t.value],()=>{if(t.value){const m=t.value+W;c.value=m,s.value=t.value+X,g.value=t.value+H,z(a.message,a.showMessage)&&(n.value=m)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{u.value=a.value},{immediate:!0,flush:"post"});function E(m){u.value=m.target.value,a.onInput&&a.onInput(m),a.input&&a.input(m)}function I(m){var v,p,w;a.onChange&&a.onChange(m),a.change&&a.change(m),J(d,m),!((v=B.value)!=null&&v.validity.valid)||a.validation==="invalid"?(n.value=g.value,O()&&(f.value=a.invalidMessage??((p=B.value)==null?void 0:p.validationMessage)??Y,$(()=>f.value="",1e3))):a.validation==="valid"||(w=B.value)!=null&&w.validity.valid&&(a.required||a.minLength||a.maxLength)?(n.value=s.value,O()&&(f.value=a.validMessage??j,$(()=>f.value="",1e3))):z(a.message,a.showMessage)?n.value=c.value:n.value=""}function k(m){a.onBlur&&a.onBlur(m),a.blur&&a.blur(m)}function h(m){a.onFocus&&a.onFocus(m),a.focus&&a.focus(m)}return(m,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)("db-textarea",a.class)),"data-variant":m.variant,"data-hide-label":e.unref(V)(m.showLabel)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(m.label??e.unref(q)),9,At),e.createElementVNode("textarea",{"aria-invalid":m.validation==="invalid","data-custom-validity":m.validation,ref_key:"_ref",ref:B,id:t.value,"data-resize":m.resize,disabled:m.disabled,required:m.required,readOnly:m.readOnly,form:m.form,maxLength:m.maxLength,minLength:m.minLength,name:m.name,wrap:m.wrap,spellcheck:m.spellCheck,autocomplete:m.autocomplete,onInput:v[0]||(v[0]=async p=>E(p)),onChange:v[1]||(v[1]=async p=>I(p)),onBlur:v[2]||(v[2]=async p=>k(p)),onFocus:v[3]||(v[3]=async p=>h(p)),value:m.value??u.value,"aria-describedby":n.value,placeholder:m.placeholder??e.unref(be),rows:m.rows??e.unref($e),cols:m.cols},null,40,Ft),e.unref(z)(m.message,m.showMessage)?(e.openBlock(),e.createBlock(M,{key:0,size:"small",icon:m.messageIcon,id:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(M,{size:"small",semantic:"successful",id:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.validMessage??e.unref(j)),1)]),_:1},8,["id"]),e.createVNode(M,{size:"small",semantic:"critical",id:g.value},{default:e.withCtx(()=>{var p;return[e.createTextVNode(e.toDisplayString(m.invalidMessage??(((p=B.value)==null?void 0:p.validationMessage)||e.unref(Y))),1)]}),_:1},8,["id"]),e.createElementVNode("span",Vt,e.toDisplayString(f.value),1)],10,It))}}),Mt=["id","data-width","data-icon","data-hide-icon","data-active","aria-disabled"],zt=["aria-haspopup","aria-expanded","disabled"],Rt=["data-auto-close","id"],Ut={key:0,class:"db-mobile-navigation-back"},Pt=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},subNavigation:{},subNavigationExpanded:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(i){const o=i,d=e.ref(!1),a=e.ref(!1),t=e.ref(!0),c=e.ref(!1),s=e.ref(!1),g=e.ref("sub-navigation-"+A()),n=e.ref(void 0),u=e.ref(null);e.onMounted(()=>{d.value=!0}),e.watch(()=>[o.subNavigationExpanded],()=>{o.subNavigationExpanded!==void 0&&(c.value=!!o.subNavigationExpanded)},{immediate:!0,flush:"post"}),e.watch(()=>[d.value],()=>{I()},{immediate:!0,flush:"post"});function f(k){Ce(k)&&(s.value=!0,$(()=>{s.value=!1},300))}function B(k){o.onClick&&o.onClick(k),a.value&&(c.value=!0)}function E(k){k.stopPropagation(),c.value=!1}function I(){var k;if(d.value&&document&&g.value){const h=document==null?void 0:document.getElementById(g.value);h&&(((k=h.children)==null?void 0:k.length)>0?(a.value=!0,n.value||(n.value=new Ue(u.value,h))):t.value=!1)}}return(k,h)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:u,id:k.id,onMouseover:h[2]||(h[2]=async m=>{var v;return(v=n.value)==null?void 0:v.enableFollow()}),onMouseleave:h[3]||(h[3]=async m=>{var v;return(v=n.value)==null?void 0:v.disableFollow()}),onMousemove:h[4]||(h[4]=async m=>{var v;return(v=n.value)==null?void 0:v.followByMouseEvent(m)}),class:e.normalizeClass(e.unref(S)("db-navigation-item",o.class)),"data-width":k.width,"data-icon":k.icon,"data-hide-icon":e.unref(V)(k.showIcon),"data-active":k.active,"aria-disabled":e.unref(F)(k.disabled)},[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(k.text),1)],64)):e.renderSlot(k.$slots,"default",{key:1})],64)),t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":c.value,disabled:k.disabled,onClick:h[0]||(h[0]=async m=>B(m))},[k.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(k.text),1)],64)):e.renderSlot(k.$slots,"default",{key:1})],8,zt),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":s.value,id:g.value,onClick:h[1]||(h[1]=async m=>f(m))},[a.value?(e.openBlock(),e.createElementBlock("div",Ut,[e.createVNode(K,{icon:"arrow_left",variant:"ghost",id:k.backButtonId,onClick:m=>E(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.backButtonText??e.unref(Ie)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"sub-navigation")],8,Rt)],64)):e.createCommentVNode("",!0)],42,Mt))}}),Gt=["id"],Ot=["aria-disabled","open"],qe=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0}},setup(i){const o=i,d=e.ref(Z),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{d.value=o.id||"accordion-item-"+A(),o.defaultOpen&&(a.value=o.defaultOpen)});function c(s){s==null||s.preventDefault();const g=!a.value;o.onToggle&&o.onToggle(g),a.value=g}return(s,g)=>(e.openBlock(),e.createElementBlock("li",{id:d.value,class:e.normalizeClass(e.unref(S)("db-accordion-item",o.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(F)(s.disabled),ref_key:"_ref",ref:t,open:a.value},[e.createElementVNode("summary",{onClick:g[0]||(g[0]=async n=>c(n))},[s.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.headlinePlain),1)],64)):e.createCommentVNode("",!0),s.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(s.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[s.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.text),1)],64)):e.renderSlot(s.$slots,"default",{key:1})])],8,Ot)],10,Gt))}}),qt=["id","data-variant"],Wt=e.defineComponent({__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:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(Z),a=e.ref(""),t=e.ref(!1),c=e.ref(!1),s=e.ref(null);e.onMounted(()=>{d.value=o.id||"accordion-"+A(),t.value=!0,c.value=!0}),e.watch(()=>[t.value,o.name,o.behavior,d.value],()=>{t.value&&(o.behavior==="single"?o.name?a.value!==o.name&&(a.value=o.name):a.value!==d.value&&d.value&&(a.value=d.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[s.value,a.value],()=>{if(s.value){const n=s.value.getElementsByTagName("details");if(n)for(const u of Array.from(n))a.value===""?u.removeAttribute("name"):u.name=a.value}},{immediate:!0,flush:"post"}),e.watch(()=>[s.value,c.value,o.initOpenIndex],()=>{var n;if(s.value&&c.value){if(o.initOpenIndex&&((n=o.initOpenIndex)==null?void 0:n.length)>0){const u=s.value.getElementsByTagName("details");if(u){const f=o.behavior==="single"&&o.initOpenIndex.length>1?[o.initOpenIndex[0]]:o.initOpenIndex;Array.from(u).forEach((B,E)=>{f.includes(E)&&(B.open=!0)})}}c.value=!1}},{immediate:!0,flush:"post"});function g(n){try{return typeof n=="string"?JSON.parse(n):n}catch(u){console.error(u)}return[]}return(n,u)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:s,id:d.value,class:e.normalizeClass(e.unref(S)("db-accordion",o.class)),"data-variant":n.variant},[n.items?e.createCommentVNode("",!0):e.renderSlot(n.$slots,"default",{key:0}),n.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(g(n.items),(f,B)=>(e.openBlock(),e.createBlock(qe,{key:`accordion-item-${B}`,headlinePlain:f.headlinePlain,disabled:f.disabled,text:f.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,qt))}}),Xt=["id","aria-labelledby"],Ht=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(i){const o=i,d=e.ref(Z),a=e.ref(null);return e.onMounted(()=>{d.value=o.id||"navigation-"+A()}),(t,c)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:d.value,"aria-labelledby":t.labelledBy,class:e.normalizeClass(e.unref(S)("db-navigation",o.class))},[e.createElementVNode("menu",null,[e.renderSlot(t.$slots,"default")])],10,Xt))}}),jt=["id"],Yt=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],Kt=e.defineComponent({__name:"popover",props:{open:{type:Boolean,default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},placement:{default:void 0},gap:{type:Boolean,default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(i){const o=i,d=e.ref(!1),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{d.value=!0}),e.watch(()=>[t.value,d.value],()=>{if(t.value&&d.value){const n=g();n&&(n.ariaHasPopup="true"),d.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,a.value],()=>{if(t.value){const n=g();n&&(n.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function c(){if(a.value=!0,!t.value)return;const n=t.value.querySelector("article");n&&de(n)}function s(n){const u=n.target;(!u.parentNode||u.parentNode.querySelector(":focus")!==u&&u.parentNode.querySelector(":focus-within")!==u&&u.parentNode.querySelector(":hover")!==u)&&(a.value=!1)}function g(){var n;if(t.value){const u=Array.from(t.value.children);if(u.length>=2){const f=u[0];return f.tagName.includes("-")?((n=f.children)==null?void 0:n.length)>0?f.children[0]:null:f}}return null}return(n,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:t,id:n.id,class:e.normalizeClass(e.unref(S)("db-popover",o.class)),onFocus:u[0]||(u[0]=async f=>c()),onBlur:u[1]||(u[1]=async f=>s(f)),onMouseenter:u[2]||(u[2]=async f=>c()),onMouseleave:u[3]||(u[3]=async f=>s(f))},[e.renderSlot(n.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":n.spacing,"data-gap":e.unref(F)(n.gap),"data-animation":e.unref(F)(n.animation??!0),"data-open":n.open,"data-delay":n.delay,"data-width":n.width,"data-placement":n.placement},[e.renderSlot(n.$slots,"default")],8,Yt)],42,jt))}}),Jt=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],We=e.defineComponent({__name:"tooltip",props:{showArrow:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(i){const o=i,d=e.ref(Z),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{d.value=o.id||"tooltip-"+A(),a.value=!0}),e.watch(()=>[t.value,a.value],()=>{if(t.value&&a.value&&d.value){let g=t.value.parentElement;g&&g.localName.includes("tooltip")&&(g=g.parentElement),g&&(["mouseenter","focus"].forEach(n=>{g.addEventListener(n,()=>s())}),g.setAttribute("data-has-tooltip","true"),g.setAttribute("aria-describedby",d.value)),a.value=!1}},{immediate:!0,flush:"post"});function c(g){g.stopPropagation()}function s(){t.value&&de(t.value)}return(g,n)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:t,class:e.normalizeClass(e.unref(S)("db-tooltip",o.class)),id:d.value,"data-emphasis":g.emphasis,"data-animation":e.unref(F)(g.animation??!0),"data-delay":g.delay,"data-width":g.width,"data-show-arrow":e.unref(F)(g.showArrow??!0),"data-placement":g.placement,onClick:n[0]||(n[0]=async u=>c(u))},[e.renderSlot(g.$slots,"default")],10,Jt))}}),Qt=["id"],Zt={role:"tablist"},Xe=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(Z),a=e.ref(null);return e.onMounted(()=>{d.value=o.id||"tab-list-"+A()}),(t,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:d.value,class:e.normalizeClass(e.unref(S)("db-tab-list",o.class))},[e.createElementVNode("ul",Zt,[e.renderSlot(t.$slots,"default")])],10,Qt))}}),xt=["id","aria-labelledby"],He=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(i){const o=i,d=e.ref(null);return e.onMounted(()=>{}),(a,t)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:d,class:e.normalizeClass(e.unref(S)("db-tab-panel",o.class)),id:a.id,"aria-labelledby":a.labelledBy},[a.content?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.content),1)],64)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,xt))}}),eo=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],ao=e.defineComponent({__name:"tabs",props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0}},setup(i){const o=i,d=e.ref("tabs-"+A()),a=e.ref(""),t=e.ref(!1),c=e.ref(!1),s=e.ref(!1),g=e.ref(null),n=e.ref(null);e.onMounted(()=>{d.value=o.id||d.value,a.value=`tabs-${o.name||A()}`,t.value=!0}),e.watch(()=>[n.value,t.value],()=>{if(n.value&&t.value){E(),I(!0);const h=n.value.querySelector(".db-tab-list");h&&new MutationObserver(v=>{v.forEach(p=>{(p.removedNodes.length||p.addedNodes.length)&&(E(),I())})}).observe(h,{childList:!0,subtree:!0}),t.value=!1}},{immediate:!0,flush:"post"});function u(h){try{return typeof h=="string"?JSON.parse(h):h}catch(m){console.error(m)}return[]}function f(h){const m=h.scrollWidth>h.clientWidth;c.value=m&&h.scrollLeft>1,s.value=m&&h.scrollLeft<h.scrollWidth-h.clientWidth}function B(h){var v;let m=o.arrowScrollDistance||100;h&&(m*=-1),(v=g.value)==null||v.scrollBy({top:0,left:m,behavior:"smooth"})}function E(){if(n.value){const h=n.value.querySelector(".db-tab-list");if(h){const m=h.querySelector('[role="tablist"]');m&&(m.setAttribute("aria-orientation",o.orientation||"horizontal"),o.behavior==="arrows"&&(g.value=m,f(m),m.addEventListener("scroll",()=>{f(m)})))}}}function I(h){if(n.value){const m=Array.from(n.value.getElementsByClassName("db-tab-item"));for(const p of m){const w=m.indexOf(p),b=p.querySelector("label"),T=p.querySelector("input");if(T&&b){if(!T.id){const N=`${a.value}-tab-${w}`;b.setAttribute("for",N),T.setAttribute("aria-controls",`${a.value}-tab-panel-${w}`),T.id=N,T.setAttribute("name",a.value)}if(h){const N=!o.initialSelectedMode||o.initialSelectedMode==="auto",L=o.initialSelectedIndex==null&&w===0||o.initialSelectedIndex===w;N&&L&&T.click()}}}const v=Array.from(n.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const p of v){if(p.id)continue;const w=v.indexOf(p);p.id=`${a.value}-tab-panel-${w}`,p.setAttribute("aria-labelledby",`${a.value}-tab-${w}`)}}}function k(h){if(o.onIndexChange&&h.target){const m=h.target.closest("ul"),v=h.target.closest("db-tab-item")??h.target.closest("li");m!==null&&v!==null&&o.onIndexChange(Array.from(m.childNodes).indexOf(v))}o.onTabSelect&&o.onTabSelect(h)}return(h,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:n,id:d.value,class:e.normalizeClass(e.unref(S)("db-tabs",o.class)),"data-orientation":h.orientation,"data-scroll-behavior":h.behavior,"data-alignment":h.alignment??"start","data-width":h.width??"auto",onInput:m[0]||(m[0]=async v=>k(v))},[c.value?(e.openBlock(),e.createBlock(K,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:v=>B(!0)},{default:e.withCtx(()=>m[1]||(m[1]=[e.createTextVNode(" Scroll left ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),h.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Xe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u(h.tabs),(v,p)=>(e.openBlock(),e.createBlock(Ge,{key:h.name+"tab-item"+p,active:v.active,label:v.label,iconAfter:v.iconAfter,icon:v.icon,noText:v.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u(h.tabs),(v,p)=>(e.openBlock(),e.createBlock(He,{key:h.name+"tab-panel"+p,content:v.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createBlock(K,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:v=>B()},{default:e.withCtx(()=>m[2]||(m[2]=[e.createTextVNode(" Scroll right ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default")],42,eo))}}),to=["adaptive","neutral","critical","informational","warning","successful"],oo=["medium","small","large","none"],io=["medium","small","large","none"],je=["left","right","left-start","left-end","right-start","right-end"],Ye=["top","bottom","top-start","top-end","bottom-start","bottom-end"],lo=[...je,...Ye],no=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],so=["horizontal","vertical"],ro=["full","auto"],co=["full","medium","large","small"],fo=["none","slow","fast"],uo=["auto","fixed"],mo=["small","medium"],Ke=["weak","strong"],po=[...Ke,"origin"],ho=["invalid","valid","no-validation"],go=["above","floating"],bo=["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"],yo=["time","true","false","date","page","step","location"],vo=["_self","_blank","_parent","_top"],Bo=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],ko=["start","center"],Eo=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],wo=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:Boolean,default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},gap:{default:void 0}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-stack",o.class)),"data-gap":a.gap,"data-variant":a.variant,"data-direction":a.direction,"data-alignment":a.alignment,"data-justify-content":a.justifyContent,"data-wrap":e.unref(F)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Eo))}}),So=["role","aria-label","id"],Je=e.defineComponent({__name:"custom-select-list",props:{label:{default:void 0},multiple:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{role:a.multiple?"group":"radiogroup","aria-label":a.label,ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-custom-select-list",o.class))},[e.createElementVNode("ul",null,[e.renderSlot(a.$slots,"default")])],10,So))}}),No=["id","data-divider"],Co=["data-icon","data-hide-icon","data-icon-after"],To=["type","name","checked","disabled","value"],Lo={key:1},Qe=e.defineComponent({__name:"custom-select-list-item",props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},change:{type:Function,default:void 0},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,default:void 0}},emits:["update:checked"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(!1),s=e.ref(null);e.onMounted(()=>{t.value=a.id??`custom-select-list-item-${A()}`}),e.watch(()=>[a.isGroupTitle,a.showDivider],()=>{c.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:"post"});function g(u){a.onChange&&a.onChange(u),a.change&&a.change(u),J(d,u,"checked")}function n(){if(!(a.isGroupTitle||a.type==="checkbox"))return a.checked?"check":"x_placeholder"}return(u,f)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:s,id:t.value,class:e.normalizeClass(e.unref(S)("db-custom-select-list-item",a.class,{"db-checkbox":u.type==="checkbox"&&!u.isGroupTitle,"db-radio":u.type!=="checkbox"&&!u.isGroupTitle})),"data-divider":e.unref(F)(c.value)},[u.isGroupTitle?(e.openBlock(),e.createElementBlock("span",Lo,e.toDisplayString(u.groupTitle),1)):(e.openBlock(),e.createElementBlock("label",{key:0,"data-icon":u.type!=="checkbox"&&u.icon?u.icon:void 0,"data-hide-icon":e.unref(V)(u.showIcon),"data-icon-after":n()},[e.createElementVNode("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:u.type,name:u.name,checked:u.checked,disabled:u.disabled,value:u.value,onChange:f[0]||(f[0]=async B=>g(B))},null,40,To),u.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(u.label),1)],64)):e.createCommentVNode("",!0),u.label?e.createCommentVNode("",!0):e.renderSlot(u.$slots,"default",{key:1})],8,Co))],10,No))}}),_o=["id","data-width"],Ze=e.defineComponent({__name:"custom-select-dropdown",props:{width:{default:"fixed"},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("article",{"data-spacing":"none",ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-custom-select-dropdown db-card",o.class)),"data-width":a.width},[e.renderSlot(a.$slots,"default")],10,_o))}}),Do=["id","aria-invalid","data-custom-validity","data-width","data-variant","data-required","data-placement","data-selected-type","data-hide-label","data-icon","data-hide-icon"],Io=["id"],Ao=["id","form","disabled","multiple","required"],Fo=["disabled","value"],Vo=["open","aria-disabled"],$o=["id","aria-labelledby"],Mo=["data-visually-hidden","id"],zo={key:1},Ro={key:0},Uo={key:0},Po={class:"db-checkbox db-custom-select-list-item"},Go=["form","checked"],Oo=["aria-hidden","id"],qo={"data-visually-hidden":"true",role:"status"},Wo=e.defineComponent({__name:"custom-select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},ariaDescribedBy:{},form:{default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,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,default:void 0},amountText:{default:void 0},clearSelectionLabel:{default:"Clear selection"},deSelectAllLabel:{default:void 0},dropdownWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:Boolean,default:void 0},noResultsText:{default:void 0},onAmountChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},selectAllLabel:{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},values:{default:void 0},open:{type:Boolean,default:void 0},onDropdownToggle:{type:Function,default:void 0},width:{default:void 0},icon:{default:void 0},showIcon:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0}},emits:["update:values"],setup(i,{emit:o}){const d=o,a=i,t=e.ref(void 0),c=e.ref(void 0),s=e.ref(void 0),g=e.ref(void 0),n=e.ref(void 0),u=e.ref(void 0),f=e.ref(void 0),B=e.ref(void 0),E=e.ref(void 0),I=e.ref(void 0),k=e.ref("no-validation"),h=e.ref(""),m=e.ref(""),v=e.ref(void 0),p=e.ref(""),w=e.ref([]),b=e.ref(!1),T=e.ref(!1),N=e.ref(0),L=e.ref([]),R=e.ref([]),x=e.ref(!1),ae=e.ref(-1),ie=e.ref(-1),me=e.ref(!1),re=e.ref(!1),jo=e.ref(null),_=e.ref(null),te=e.ref(null),le=e.ref(null);e.onMounted(()=>{const l=a.id??`custom-select-${A()}`;c.value=l,s.value=l+W,g.value=l+X,n.value=l+H,u.value=l+ve,f.value=l+ye,B.value=l+"-summary",E.value=l+se,v.value=l+"-selected-labels",I.value=l+"-info",document&&document.addEventListener("click",ea)}),e.onUnmounted(()=>{document&&document.removeEventListener("click",ea)}),e.watch(()=>[a.name,c.value],()=>{t.value=a.name??c.value},{immediate:!0,flush:"post"}),e.watch(()=>[c.value],()=>{if(c.value){const l=c.value+W;f.value=c.value+ye,u.value=c.value+ve,g.value=c.value+X,n.value=c.value+H,E.value=c.value+se,z(a.message,a.showMessage)?ne(l):ne()}},{immediate:!0,flush:"post"}),e.watch(()=>[_.value,h.value],()=>{if(_.value){const l=_.value.querySelector("summary");l&&l.setAttribute("aria-describedby",h.value||"")}},{immediate:!0,flush:"post"}),e.watch(()=>[_.value],()=>{if(_.value){const l=_.value.querySelector("summary");l&&(l.addEventListener("click",()=>{xe(),Te(!0)}),l.addEventListener("keydown",y=>{var D;y.code==="Space"&&!((D=_.value)!=null&&D.open)&&Te()})),_.value.addEventListener("focusout",y=>ce(y))}},{immediate:!0,flush:"post"}),e.watch(()=>[a.showNoResults,R.value],()=>{a.showNoResults!==void 0?x.value=a.showNoResults:R.value&&(x.value=R.value.length===0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSelectAll,N.value,a.multiple],()=>{b.value=!!(a.multiple&&(a.showSelectAll||N.value>5))},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSearch,N.value],()=>{T.value=a.showSearch||N.value>9},{immediate:!0,flush:"post"}),e.watch(()=>[ie.value,ae.value,a.onSelect],()=>{if(a.onSelect&&(ie.value||ae.value)){const l=ae.value&&!ie.value,y=ae.value&&ie.value&&ae.value>ie.value;if(l||y){a.onSelect(L.value??[]);const D={target:{values:L.value}};J(d,D,"values")}}},{immediate:!0,flush:"post"}),e.watch(()=>[a.values],()=>{a.values&&Array.isArray(a.values)&&(L.value=a.values??[],ie.value=new Date().getTime())},{immediate:!0,flush:"post"}),e.watch(()=>[L.value],()=>{var l,y,D;te.value&&(te.value.value=Ko()),!((l=te.value)!=null&&l.validity.valid)||a.validation==="invalid"?(k.value="invalid",ne(n.value),O()&&(p.value=a.invalidMessage??((y=te.value)==null?void 0:y.validationMessage)??Y,$(()=>p.value="",1e3))):a.validation==="valid"||(D=te.value)!=null&&D.validity.valid&&a.required?(k.value="valid",ne(g.value),O()&&(p.value=a.validMessage??j,$(()=>p.value="",1e3))):a.message?(k.value="no-validation",ne(s.value)):(k.value="no-validation",ne(E.value))},{immediate:!0,flush:"post"}),e.watch(()=>[a.validation],()=>{k.value=a.validation},{immediate:!0,flush:"post"}),e.watch(()=>[L.value,N.value],()=>{var l,y;((l=L.value)==null?void 0:l.length)===0?(me.value=!1,re.value=!1):((y=L.value)==null?void 0:y.length)===N.value?(re.value=!1,me.value=!0):L.value&&(re.value=!0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.options],()=>{var l;R.value=a.options,N.value=((l=a.options)==null?void 0:l.filter(y=>!y.isGroupTitle).length)??0},{immediate:!0,flush:"post"}),e.watch(()=>[R.value,L.value],()=>{var l,y;(l=R.value)!=null&&l.length&&(w.value=(y=R.value)==null?void 0:y.filter(D=>{var U,C;return!D.value||!((U=L.value)!=null&&U.includes)?!1:!D.isGroupTitle&&((C=L.value)==null?void 0:C.includes(D.value))}))},{immediate:!0,flush:"post"}),e.watch(()=>[w.value,a.selectedType,a.amountText],()=>{var l,y,D;(l=w.value)!=null&&l.length?a.selectedType==="amount"?m.value=a.amountText?a.amountText:`${(y=w.value)==null?void 0:y.length} ${Ae}`:m.value=(D=w.value)==null?void 0:D.map(U=>oe(U)).join(", "):m.value=""},{immediate:!0,flush:"post"}),e.watch(()=>[w.value],()=>{var l;a.onAmountChange&&a.onAmountChange(((l=w.value)==null?void 0:l.length)??0)},{immediate:!0,flush:"post"}),e.watch(()=>[re.value,le.value],()=>{le.value&&(le.value.indeterminate=!!re.value)},{immediate:!0,flush:"post"});function Yo(l){a.onDropdownToggle&&a.onDropdownToggle(l)}function Ko(){var l;return(l=L.value)!=null&&l.length?L.value.at(0)??"":""}function ne(l){var D;const y=[];l&&y.push(l),v.value&&((D=m.value)!=null&&D.length)&&y.push(v.value),h.value=y.join(" ")}function Jo(){return!le.value||le.value.indeterminate||!me.value?a.selectAllLabel??q:a.deSelectAllLabel??q}function oe(l){var y;return l.label??((y=l.value)==null?void 0:y.toString())??""}function Qo(l){var y;return l&&L.value&&L.value.includes?(y=L.value)==null?void 0:y.includes(l):!1}function Zo(l){return a.removeTagsTexts&&a.removeTagsTexts.length>l?a.removeTagsTexts.at(l):`${ke} ${w.value?oe(w.value[l]):""}`}function xo(l,y){y.stopPropagation(),aa(l.value),fe()}function xe(){if(_.value){const l=_.value.querySelector("article");l&&$(()=>{de(l)},100)}}function ei(l){var y,D,U,C,Q;if((y=_.value)!=null&&y.open){if(document){const P=document.activeElement;if(P)if(P.getAttribute("type")==="checkbox"||P.getAttribute("type")==="radio"){const G=P==null?void 0:P.closest("li");if(l.key==="ArrowDown"||l.key==="ArrowRight")G!=null&&G.nextElementSibling?(D=G==null?void 0:G.nextElementSibling.querySelector("input"))==null||D.focus():pe(P);else if(G!=null&&G.previousElementSibling)(U=G==null?void 0:G.previousElementSibling.querySelector("input"))==null||U.focus();else if(_.value.querySelector('input[type="checkbox"]')!==P)pe(P);else{const ta=ge(_.value);if(ta)$(()=>{ta.focus()},100);else{const oa=Array.from((C=_.value)==null?void 0:C.querySelectorAll('input[type="checkbox"],input[type="radio"]'));oa.length&&((Q=oa.at(-1))==null||Q.focus())}}}else P.getAttribute("type")==="search"&&(l.key==="ArrowUp"||l.key==="ArrowLeft")?(ce("close"),fe()):pe(P)}l.stopPropagation(),l.preventDefault()}else(l.key==="ArrowDown"||l.key==="ArrowRight")&&(xe(),_.value&&(_.value.open=!0),Te(),l.stopPropagation(),l.preventDefault())}function ai(l){var y;l.key==="Escape"&&_.value&&((y=_.value)!=null&&y.open)?(ce("close"),fe()):(l.key==="ArrowDown"||l.key==="ArrowUp"||l.key==="ArrowLeft"||l.key==="ArrowRight")&&ei(l)}function ce(l){if(_.value){if(l==="close")_.value.open=!1,fe();else if(_.value.open&&(l!=null&&l.relatedTarget)){const y=l.relatedTarget;_.value.contains(y)||(_.value.open=!1)}}}function ea(l){var y;(y=_.value)!=null&&y.open&&!_.value.contains(l.target)&&(_.value.open=!1)}function aa(l){var y,D;l&&(a.multiple?(y=L.value)!=null&&y.includes(l)?L.value=(D=L.value)==null?void 0:D.filter(U=>U!==l):L.value=[...L.value||[],l]:(L.value=[l],ce("close")),ae.value=new Date().getTime())}function ti(){var l;((l=L.value)==null?void 0:l.length)===N.value?L.value=[]:L.value=a.options?a.options.filter(y=>!y.isGroupTitle).map(y=>y.value??""):[],ae.value=new Date().getTime()}function pe(l){if(_.value){const y=Array.from(_.value.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(y.length){const D=y.at(0),U=D===l&&y.length>1?y.at(1):D;U&&$(()=>{U.focus()},100)}}}function Te(l){if(_.value){const y=ge(_.value);y?$(()=>{y.focus()},100):l||pe()}}function oi(l){const y=l.target.value;R.value=!a.options||!y||y.length===0?a.options:a.options.filter(D=>!D.isGroupTitle&&oe(D).toLowerCase().includes(y.toLowerCase()))}function ii(){L.value=[],fe()}function fe(){var l,y;(y=(l=_.value)==null?void 0:l.querySelector("summary"))==null||y.focus()}return(l,y)=>{var D,U;return e.openBlock(),e.createElementBlock("div",{id:c.value,ref_key:"_ref",ref:jo,class:e.normalizeClass(e.unref(S)("db-custom-select",a.class)),"aria-invalid":k.value==="invalid","data-custom-validity":k.value,"data-width":l.width,"data-variant":l.variant,"data-required":e.unref(F)(l.required),"data-placement":l.placement,"data-selected-type":l.multiple?l.selectedType:"text","data-hide-label":e.unref(V)(l.showLabel),"data-icon":l.icon,"data-hide-icon":e.unref(V)(l.showIcon)},[e.createElementVNode("label",{id:f.value},[e.createTextVNode(e.toDisplayString(l.label??e.unref(q)),1),e.createElementVNode("select",{role:"none",hidden:!0,id:u.value,tabIndex:-1,ref_key:"selectRef",ref:te,form:l.form,disabled:l.disabled,multiple:l.multiple,required:l.required,onChange:y[0]||(y[0]=async C=>{})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(C,Q)=>(e.openBlock(),e.createElementBlock("option",{key:Q,disabled:C.disabled,value:C.value},e.toDisplayString(oe(C)),9,Fo))),128))],40,Ao)],8,Io),e.createElementVNode("details",{ref_key:"detailsRef",ref:_,open:l.open,"aria-disabled":l.disabled,onToggle:y[2]||(y[2]=async C=>Yo(C)),onKeydown:y[3]||(y[3]=async C=>ai(C))},[e.renderSlot(l.$slots,"default"),l.options?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("summary",{class:"db-custom-select-form-field",id:B.value,"aria-labelledby":f.value},[(D=m.value)!=null&&D.length?(e.openBlock(),e.createElementBlock("span",{key:0,"data-visually-hidden":e.unref(F)(l.selectedType==="tag"),id:v.value},e.toDisplayString(m.value),9,Mo)):e.createCommentVNode("",!0),l.selectedType==="tag"?(e.openBlock(),e.createElementBlock("div",zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(C,Q)=>(e.openBlock(),e.createBlock(Oe,{key:Q,emphasis:"strong",behavior:"removable",removeButton:Zo(Q),onRemove:P=>{xo(C,P)}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(oe(C)),1)]),_:2},1032,["removeButton","onRemove"]))),128))])):e.createCommentVNode("",!0)],8,$o),e.createVNode(Ze,{width:l.dropdownWidth},{default:e.withCtx(()=>[T.value?(e.openBlock(),e.createElementBlock("div",Ro,[e.createVNode(Pe,{type:"search",showLabel:!1,label:l.searchLabel??e.unref(q),placeholder:l.searchPlaceholder??l.searchLabel,ariaDescribedBy:x.value||l.showLoading?I.value:void 0,onInput:C=>oi(C)},null,8,["label","placeholder","ariaDescribedBy","onInput"])])):e.createCommentVNode("",!0),x.value||l.showLoading?(e.openBlock(),e.createBlock(M,{key:1,id:I.value,icon:x.value?void 0:"circular_arrows",semantic:x.value?"warning":"informational"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((x.value?l.noResultsText:l.loadingText)??e.unref(De)),1)]),_:1},8,["id","icon","semantic"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[b.value?(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",Po,[e.createElementVNode("label",null,[e.createElementVNode("input",{type:"checkbox",value:"select-all",ref_key:"selectAllRef",ref:le,form:c.value,checked:me.value,onChange:y[1]||(y[1]=async C=>ti())},null,40,Go),e.createTextVNode(e.toDisplayString(Jo()),1)])])])):e.createCommentVNode("",!0),e.createVNode(Je,{multiple:l.multiple,label:l.label??e.unref(q)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(C,Q)=>(e.openBlock(),e.createBlock(Qe,{key:Q,type:l.multiple?"checkbox":"radio",showDivider:C.showDivider,icon:C.icon,isGroupTitle:C.isGroupTitle,groupTitle:oe(C),name:t.value,checked:Qo(C.value),disabled:C.disabled,value:C.value,onChange:P=>{aa(C.value)}},{default:e.withCtx(()=>[C.isGroupTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(oe(C)),1)],64))]),_:2},1032,["type","showDivider","icon","isGroupTitle","groupTitle","name","checked","disabled","value","onChange"]))),128))]),_:1},8,["multiple","label"])],64)),e.createElementVNode("div",null,[e.createVNode(K,{variant:"ghost",width:"full",icon:"cross",size:"small",onClick:C=>{ce("close")}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.mobileCloseButtonText??e.unref(ue)),1)]),_:1},8,["onClick"])])]),_:1},8,["width"])],64)):e.createCommentVNode("",!0)],40,Vo),(l.showClearSelection??!0)&&((U=L.value)!=null&&U.length)?(e.openBlock(),e.createBlock(K,{key:0,icon:"cross",variant:"ghost",size:"small",noText:!0,onClick:C=>ii()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.clearSelectionLabel),1),e.createVNode(We,{placement:"top"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.clearSelectionLabel),1)]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.createElementVNode("span",{"aria-hidden":e.unref(F)(!0),id:E.value},e.toDisplayString(l.placeholder??l.label),9,Oo),l.message?(e.openBlock(),e.createBlock(M,{key:1,size:"small",icon:l.messageIcon,id:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(M,{size:"small",semantic:"successful",id:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.validMessage??e.unref(j)),1)]),_:1},8,["id"]),e.createVNode(M,{size:"small",semantic:"critical",id:n.value},{default:e.withCtx(()=>{var C;return[e.createTextVNode(e.toDisplayString(l.invalidMessage??(((C=te.value)==null?void 0:C.validationMessage)||e.unref(Y))),1)]}),_:1},8,["id"]),e.createElementVNode("span",qo,e.toDisplayString(p.value),1)],10,Do)}}}),Xo=["id"],Ho=e.defineComponent({__name:"custom-select-form-field",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(i){const o=i,d=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("summary",{ref_key:"_ref",ref:d,id:a.id,class:e.normalizeClass(e.unref(S)("db-custom-select-form-field",o.class))},[e.renderSlot(a.$slots,"default")],10,Xo))}});r.AlignmentList=ko,r.AutoCompleteList=bo,r.COLOR=Se,r.COLORS=fa,r.COLORS_SIMPLE=ua,r.COLOR_CONST=ra,r.COLOR_SIMPLE=we,r.DBAccordion=Wt,r.DBAccordionItem=qe,r.DBBadge=Ba,r.DBBrand=Ea,r.DBButton=K,r.DBCard=Sa,r.DBCheckbox=Da,r.DBCustomSelect=Wo,r.DBCustomSelectDropdown=Ze,r.DBCustomSelectFormField=Ho,r.DBCustomSelectList=Je,r.DBCustomSelectListItem=Qe,r.DBDivider=Aa,r.DBDrawer=Re,r.DBHeader=Qa,r.DBIcon=xa,r.DBInfotext=M,r.DBInput=Pe,r.DBLink=dt,r.DBNavigation=Ht,r.DBNavigationItem=Pt,r.DBNotification=ya,r.DBPage=rt,r.DBPopover=Kt,r.DBRadio=ut,r.DBSection=pt,r.DBSelect=wt,r.DBStack=wo,r.DBSwitch=Ct,r.DBTabItem=Ge,r.DBTabList=Xe,r.DBTabPanel=He,r.DBTabs=ao,r.DBTag=Oe,r.DBTextarea=$t,r.DBTooltip=We,r.DEFAULT_BACK=Ie,r.DEFAULT_BURGER_MENU=Fe,r.DEFAULT_CLOSE_BUTTON=ue,r.DEFAULT_DATALIST_ID_SUFFIX=Be,r.DEFAULT_ICON=Ve,r.DEFAULT_ID=Z,r.DEFAULT_INVALID_MESSAGE=Y,r.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=H,r.DEFAULT_LABEL=q,r.DEFAULT_LABEL_ID_SUFFIX=ye,r.DEFAULT_MESSAGE=De,r.DEFAULT_MESSAGE_ID_SUFFIX=W,r.DEFAULT_PLACEHOLDER=be,r.DEFAULT_PLACEHOLDER_ID_SUFFIX=se,r.DEFAULT_REMOVE=ke,r.DEFAULT_ROWS=$e,r.DEFAULT_SELECTED=Ae,r.DEFAULT_SELECT_ID_SUFFIX=ve,r.DEFAULT_VALID_MESSAGE=j,r.DEFAULT_VALID_MESSAGE_ID_SUFFIX=X,r.DEFAULT_VIEWPORT=Me,r.DENSITIES=ca,r.DENSITY=Ee,r.DENSITY_CONST=sa,r.DESKTOP_VIEWPORT=ze,r.EmphasisList=Ke,r.GapSpacingList=no,r.LabelVariantList=go,r.LinkCurrentList=yo,r.LinkReferrerPolicyList=Bo,r.LinkTargetList=vo,r.MarginList=io,r.MaxWidthList=co,r.NavigationItemSafeTriangle=Ue,r.OrientationList=so,r.PlacementHorizontalList=je,r.PlacementList=lo,r.PlacementVerticalList=Ye,r.PopoverDelayList=fo,r.PopoverWidthList=uo,r.SEMANTIC=Ne,r.SEMANTICS=ma,r.SemanticList=to,r.SizeList=mo,r.SpacingList=oo,r.TESTING_VIEWPORTS=pa,r.TagEmphasisList=po,r.ValidationList=ho,r.WidthList=ro,r.addAttributeToChildren=he,r.cls=S,r.delay=$,r.getBooleanAsString=F,r.getHideProp=V,r.getSearchInput=ge,r.handleDataOutside=de,r.hasVoiceOver=O,r.isArrayOfStrings=_e,r.isEventTargetNavigationItem=Ce,r.isInView=Le,r.stringPropVisible=z,r.uuid=A,r.visibleInVX=ia,r.visibleInVY=la,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
CHANGED
|
@@ -34,3 +34,8 @@ export * from './shared/model';
|
|
|
34
34
|
export * from './utils/index';
|
|
35
35
|
export * from './utils/navigation';
|
|
36
36
|
export * from './components/stack';
|
|
37
|
+
export * from './components/custom-select';
|
|
38
|
+
export * from './components/custom-select-form-field';
|
|
39
|
+
export * from './components/custom-select-dropdown';
|
|
40
|
+
export * from './components/custom-select-list';
|
|
41
|
+
export * from './components/custom-select-list-item';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const DEFAULT_ID: string;
|
|
2
2
|
export declare const DEFAULT_LABEL: string;
|
|
3
3
|
export declare const DEFAULT_PLACEHOLDER: string;
|
|
4
|
+
export declare const DEFAULT_MESSAGE: string;
|
|
5
|
+
export declare const DEFAULT_LABEL_ID_SUFFIX: string;
|
|
6
|
+
export declare const DEFAULT_SELECT_ID_SUFFIX: string;
|
|
4
7
|
export declare const DEFAULT_MESSAGE_ID_SUFFIX: string;
|
|
5
8
|
export declare const DEFAULT_VALID_MESSAGE_ID_SUFFIX: string;
|
|
6
9
|
export declare const DEFAULT_INVALID_MESSAGE_ID_SUFFIX: string;
|
|
@@ -8,7 +11,9 @@ export declare const DEFAULT_PLACEHOLDER_ID_SUFFIX: string;
|
|
|
8
11
|
export declare const DEFAULT_DATALIST_ID_SUFFIX: string;
|
|
9
12
|
export declare const DEFAULT_VALID_MESSAGE: string;
|
|
10
13
|
export declare const DEFAULT_INVALID_MESSAGE: string;
|
|
14
|
+
export declare const DEFAULT_REMOVE: string;
|
|
11
15
|
export declare const DEFAULT_BACK: string;
|
|
16
|
+
export declare const DEFAULT_SELECTED: string;
|
|
12
17
|
export declare const DEFAULT_BURGER_MENU: string;
|
|
13
18
|
export declare const DEFAULT_ICON: string;
|
|
14
19
|
export declare const DEFAULT_ROWS: number;
|