@db-ux/v-core-components 2.0.0-0-custom-select-16b8cce → 2.0.1
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/dist/components/accordion/accordion.vue.d.ts +33 -8
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +40 -8
- package/dist/components/accordion-item/model.d.ts +5 -5
- package/dist/components/badge/badge.vue.d.ts +30 -8
- package/dist/components/badge/model.d.ts +2 -2
- package/dist/components/brand/brand.vue.d.ts +27 -6
- package/dist/components/button/button.vue.d.ts +54 -15
- package/dist/components/button/model.d.ts +11 -7
- package/dist/components/card/card.vue.d.ts +30 -9
- package/dist/components/checkbox/checkbox.vue.d.ts +83 -20
- package/dist/components/checkbox/model.d.ts +3 -3
- package/dist/components/custom-select/custom-select.vue.d.ts +221 -22
- package/dist/components/custom-select/model.d.ts +49 -29
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +20 -5
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +18 -4
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +20 -4
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +53 -12
- package/dist/components/divider/divider.vue.d.ts +3 -3
- package/dist/components/drawer/drawer.vue.d.ts +47 -13
- package/dist/components/drawer/model.d.ts +2 -2
- package/dist/components/header/header.vue.d.ts +57 -13
- package/dist/components/header/model.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +25 -7
- package/dist/components/infotext/infotext.vue.d.ts +28 -8
- package/dist/components/input/input.vue.d.ts +131 -33
- package/dist/components/input/model.d.ts +3 -3
- package/dist/components/link/link.vue.d.ts +48 -14
- package/dist/components/navigation/navigation.vue.d.ts +21 -4
- package/dist/components/navigation-item/model.d.ts +6 -3
- package/dist/components/navigation-item/navigation-item.vue.d.ts +76 -12
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.vue.d.ts +58 -17
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/page.vue.d.ts +32 -9
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/popover.vue.d.ts +40 -13
- package/dist/components/radio/radio.vue.d.ts +56 -17
- package/dist/components/section/section.vue.d.ts +24 -6
- package/dist/components/select/model.d.ts +2 -2
- package/dist/components/select/select.vue.d.ts +106 -24
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/stack.vue.d.ts +31 -10
- package/dist/components/switch/model.d.ts +2 -2
- package/dist/components/switch/switch.vue.d.ts +67 -21
- package/dist/components/tab-item/model.d.ts +6 -6
- package/dist/components/tab-item/tab-item.vue.d.ts +52 -14
- package/dist/components/tab-list/tab-list.vue.d.ts +20 -4
- package/dist/components/tab-panel/tab-panel.vue.d.ts +20 -4
- package/dist/components/tabs/model.d.ts +11 -3
- package/dist/components/tabs/tabs.vue.d.ts +60 -15
- package/dist/components/tag/model.d.ts +9 -5
- package/dist/components/tag/tag.vue.d.ts +49 -15
- package/dist/components/textarea/model.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +24 -23
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +37 -11
- package/dist/db-ux.es.js +1969 -1812
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +56 -31
- package/dist/utils/document-click-listener.d.ts +8 -0
- package/dist/utils/index.d.ts +5 -28
- package/package.json +8 -7
package/dist/db-ux.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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"})});
|
|
1
|
+
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c["DB-UX"]={},c.Vue))})(this,function(c,e){"use strict";var ul=Object.defineProperty;var ml=(c,e,$)=>e in c?ul(c,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):c[e]=$;var x=(c,e,$)=>ml(c,typeof e!="symbol"?e+"":e,$);const $=()=>{var o,t;if(typeof window<"u"){if((o=window.crypto)!=null&&o.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)},ke=(o,t)=>{const l=o.children;Object.values(l).forEach(a=>{a.setAttribute(t.key,t.value),a.children.length>0&&ke(a,t)})},L=(...o)=>{let t="";for(const l of o)if(l)if(typeof l=="string")t+=`${l} `;else for(const a in l)l[a]&&(t+=`${a} `);return t.trim()},ca=o=>{const{left:t,right:l}=o.getBoundingClientRect(),{innerWidth:a}=window;return t>=0&&l<=a},fa=o=>{const{top:t,bottom:l}=o.getBoundingClientRect(),{innerHeight:a}=window;return t>=0&&l<=a},Fe=o=>{var C;const{top:t,bottom:l,left:a,right:i}=o.getBoundingClientRect(),{innerHeight:u,innerWidth:r}=window;let p=t<0,d=l>u,s=a<0,f=i>r;const B=o.hasAttribute("data-outside-vy"),S=o.hasAttribute("data-outside-vx"),v=(C=o==null?void 0:o.parentElement)==null?void 0:C.getBoundingClientRect();return v&&(B&&(o.getAttribute("data-outside-vy")==="top"?p=v.top-(l-v.bottom)<0:d=v.bottom+(v.top-t)>u),S&&(o.getAttribute("data-outside-vx")==="left"?s=v.left-(i-v.right)<0:f=v.right+(v.left-a)>r)),{outTop:p,outBottom:d,outLeft:s,outRight:f}},ce=o=>{const{outTop:t,outBottom:l,outLeft:a,outRight:i}=Fe(o);let u={};return t||l?(u={vy:t?"top":"bottom"},o.setAttribute("data-outside-vy",u.vy)):o.removeAttribute("data-outside-vy"),a||i?(u={...u,vx:i?"right":"left"},o.setAttribute("data-outside-vx",u.vx)):o.removeAttribute("data-outside-vx"),u},$e=o=>Array.isArray(o)&&o.every(t=>typeof t=="string"),ua=["Mac","iPhone","iPad","iPod"],X=()=>typeof window<"u"&&ua.some(o=>window.navigator.userAgent.includes(o)),U=(o,t)=>new Promise(()=>setTimeout(o,t)),V=o=>{if(o!=null)return String(typeof o=="string"?!!o:o)},T=(o,t)=>{if(o!=null)return typeof o=="string"&&t?!!(t===o||o):!!o},Z=(o,t)=>{if(!(o==null&&t==null))return Number(o??t)},z=o=>{if(o!=null)return V(!o)},R=(o,t)=>(t===void 0||!!t)&&!!o,Be=o=>o.querySelector('input[type="search"]'),ma=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","form","value","aria-describedby","aria-expanded","aria-pressed"],ee=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},noText:{type:[Boolean,String],default:void 0},state:{default:void 0},type:{default:void 0},value:{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,String]},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,u)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-button",t.class)),type:i.type||"button",disabled:e.unref(T)(i.disabled,"disabled"),"aria-label":i.label,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-size":i.size,"data-state":i.state,"data-width":i.width,"data-variant":i.variant,"data-no-text":e.unref(V)(i.noText),name:i.name,form:i.form,value:i.value,"aria-describedby":i.describedbyid,"aria-expanded":i.ariaexpanded,"aria-pressed":i.ariapressed,onClick:u[0]||(u[0]=async r=>a(r))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,ma))}}),le="OVERWRITE_DEFAULT_ID",ae="LABEL SHOULD BE SET",Se=" ",Me="MESSAGE SHOULD BE SET",Ee="-label",we="-select",H="-message",j="-valid-message",Y="-invalid-message",fe="-placeholder",Ce="-datalist",K="TODO: Add a validMessage",G="TODO: Add an invalidMessage",Ne="Remove",ze="Back",Re="Selected",Ue="BurgerMenu",Pe="brand",Ge=4,he="Close",pa="density",ha="color";var Te=(o=>(o.FUNCTIONAL="functional",o.REGULAR="regular",o.EXPRESSIVE="expressive",o))(Te||{});const ga=Object.entries(Te).map(([,o])=>o);var Le=(o=>(o.PRIMARY="primary",o))(Le||{}),_e=(o=>(o.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",o.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",o.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",o.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",o.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",o.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",o.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",o.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",o.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",o.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",o.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",o.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",o.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",o.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",o.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",o.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",o.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",o.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",o.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",o.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",o.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",o.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",o.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",o.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",o.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",o.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",o.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",o.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",o.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",o.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full",o))(_e||{});const ba=Object.entries(_e).map(([,o])=>o),ya=Object.entries(Le).map(([,o])=>o);var De=(o=>(o.CRITICAL="critical",o.INFORMATIONAL="informational",o.WARNING="warning",o.SUCCESSFUL="successful",o))(De||{});const va=Object.entries(De).map(([,o])=>o),Oe={width:390,height:884},qe={width:1920,height:1280},ka=[{name:"desktop",...qe},{name:"tablet",width:768,height:1024},{name:"mobile",...Oe}],Ba=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Sa={key:0},Ea={key:1},wa=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:[Boolean,String]},width:{},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClose&&t.onClose(i)}return(i,u)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-notification",t.class)),"aria-live":i.ariaLive,"data-semantic":i.semantic,"data-variant":i.variant,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-link-variant":i.linkVariant},[e.renderSlot(i.$slots,"image"),e.unref(R)(i.headline,i.showHeadline)?(e.openBlock(),e.createElementBlock("header",Sa,e.toDisplayString(i.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})]),e.unref(R)(i.timestamp,i.showTimestamp)?(e.openBlock(),e.createElementBlock("span",Ea,e.toDisplayString(i.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"link"),e.unref(T)(i.closeable,"closeable")?(e.openBlock(),e.createBlock(ee,{key:2,icon:"cross",variant:"ghost",size:"small",id:i.closeButtonId,noText:!0,onClick:r=>a(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.closeButtonText??e.unref(he)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,Ba))}}),Ca=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Na=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,String]},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var i;if(a.value&&l.value&&(i=t.placement)!=null&&i.startsWith("corner")){let u=a.value.parentElement;u&&u.localName.includes("badge")&&(u=u.parentElement),u&&u.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(i,u)=>{var r;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(L)("db-badge",t.class)),"data-semantic":i.semantic,"data-size":i.size,"data-emphasis":i.emphasis,"data-placement":i.placement,"data-label":((r=i.placement)==null?void 0:r.startsWith("corner"))&&(i.label??e.unref(ae))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,Ca)}}}),Ta=["data-icon","data-hide-icon","id"],La=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,String]},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(Pe),"data-hide-icon":e.unref(z)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(L)("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,Ta))}}),_a=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],Da=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,String]},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-card",t.class)),"data-behavior":i.behavior,"data-elevation-level":i.elevationLevel,"data-spacing":i.spacing,role:i.behavior==="interactive"?"button":void 0,tabIndex:i.behavior==="interactive"?0:void 0,onClick:u[0]||(u[0]=async r=>a(r))},[e.renderSlot(i.$slots,"default")],10,_a))}}),q=(o,t,l="value")=>{o(`update:${l}`,t.target[l])},Ia=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],P=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-infotext",t.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(z)(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,Ia))}}),Aa=["data-size","data-hide-label"],Va=["for"],Fa=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],$a={"data-visually-hidden":"true",role:"status"},Ma=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),u=e.ref(void 0),r=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),s=e.ref(void 0),f=e.ref(""),B=e.ref(""),S=e.ref(null);e.onMounted(()=>{i.value=!0;const b=a.id??`checkbox-${$()}`;u.value=b,r.value=b+H,p.value=b+j,d.value=b+Y,s.value=a.invalidMessage||G}),e.watch(()=>[S.value,a.invalidMessage],()=>{var b;s.value=a.invalidMessage||((b=S.value)==null?void 0:b.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[u.value],()=>{if(u.value){const b=u.value+H;r.value=b,p.value=u.value+j,d.value=u.value+Y,R(a.message,a.showMessage)&&(f.value=b)}},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,S.value,a.indeterminate],()=>{S.value&&a.indeterminate!==void 0&&(S.value.indeterminate=!!T(a.indeterminate))},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,S.value,a.checked],()=>{i.value&&S.value&&(a.checked!=null&&(S.value.checked=!!T(a.checked)),i.value=!1)},{immediate:!0,flush:"post"});function v(){return!!(a.validMessage??a.validation==="valid")}function C(){var b,g,I;!((b=S.value)!=null&&b.validity.valid)||a.validation==="invalid"?(f.value=d.value,s.value=a.invalidMessage||((g=S.value)==null?void 0:g.validationMessage)||G,X()&&(B.value=s.value,U(()=>B.value="",1e3))):v()&&((I=S.value)!=null&&I.validity.valid)&&a.required?(f.value=p.value,X()&&(B.value=a.validMessage??K,U(()=>B.value="",1e3))):R(a.message,a.showMessage)?f.value=r.value:f.value=""}function k(b){a.onChange&&a.onChange(b),q(l,b,"checked"),C()}function E(b){a.onBlur&&a.onBlur(b)}function _(b){a.onFocus&&a.onFocus(b)}return(b,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-checkbox",a.class)),"data-size":b.size,"data-hide-label":e.unref(z)(b.showLabel)},[e.createElementVNode("label",{for:u.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":b.validation==="invalid","data-custom-validity":b.validation,ref_key:"_ref",ref:S,id:u.value,name:b.name,checked:e.unref(T)(b.checked,"checked"),disabled:e.unref(T)(b.disabled,"disabled"),value:b.value,required:e.unref(T)(b.required,"required"),onChange:g[0]||(g[0]=async I=>k(I)),onBlur:g[1]||(g[1]=async I=>E(I)),onFocus:g[2]||(g[2]=async I=>_(I)),"aria-describedby":f.value},null,40,Fa),b.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.label),1)],64)):e.renderSlot(b.$slots,"default",{key:1})],8,Va),e.unref(R)(b.message,b.showMessage)?(e.openBlock(),e.createBlock(P,{key:0,size:"small",icon:b.messageIcon,id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),v()?(e.openBlock(),e.createBlock(P,{key:1,size:"small",semantic:"successful",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.validMessage||e.unref(K)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(P,{size:"small",semantic:"critical",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},8,["id"]),e.createElementVNode("span",$a,e.toDisplayString(B.value),1)],10,Aa))}}),za=["id","data-margin","data-variant","data-emphasis","data-width"],Ra=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,String]},emphasis:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(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(L)("db-divider",t.class))},null,10,za))}}),Ua=["id","data-backdrop","data-variant"],Pa=["data-spacing","data-width","data-direction","data-rounded"],Ga={class:"db-drawer-header"},Oa={class:"db-drawer-header-text"},qa={class:"db-drawer-content"},We=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{u()}),e.watch(()=>[t.open],()=>{u()},{immediate:!0,flush:"post"});function i(r){r.key==="Escape"&&r.preventDefault(),(r==="close"||r.key==="Escape"||r.target.nodeName==="DIALOG"&&r.type==="click"&&t.backdrop!=="none")&&t.onClose&&t.onClose(r)}function u(){if(l.value){const r=!!t.open;r&&!l.value.open&&(a.value&&(a.value.hidden=!1),t.backdrop==="none"||t.variant==="inside"?l.value.show():l.value.showModal()),!r&&l.value.open&&(a.value&&(a.value.hidden=!0),U(()=>{var p;a.value&&(a.value.hidden=!1),(p=l.value)==null||p.close()},401))}}return(r,p)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:r.id,ref_key:"_ref",ref:l,onClick:p[0]||(p[0]=async d=>i(d)),onKeydown:p[1]||(p[1]=async d=>i(d)),"data-backdrop":r.backdrop,"data-variant":r.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(L)("db-drawer-container",t.class)),"data-spacing":r.spacing,"data-width":r.width,"data-direction":r.direction,"data-rounded":e.unref(V)(r.rounded)},[e.createElementVNode("header",Ga,[e.createElementVNode("div",Oa,[e.renderSlot(r.$slots,"drawer-header")]),e.createVNode(ee,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:r.closeButtonId,noText:!0,onClick:d=>i("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.closeButtonText??e.unref(he)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",qa,[e.renderSlot(r.$slots,"default")])],10,Pa)],40,Ua))}}),Ie=o=>{var l,a;const{target:t}=o;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 Xe{constructor(t,l){x(this,"element");x(this,"subNavigation");x(this,"parentSubNavigation",null);x(this,"triangleData");x(this,"initialized",!1);x(this,"mouseX",0);x(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 i;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const t=ce(this.subNavigation),l=this.element.getBoundingClientRect(),a=((i=this.parentSubNavigation)==null?void 0:i.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 r=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,p=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${p} ${r}`,lt:`${p} 0`,rt:"100% 0",rb:`100% ${r}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),i=`${l}px ${a}px`,u=`${l}px ${a}px`;return{lb:i,lt:u,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 Wa=["id","data-width","data-on-forcing-mobile"],Xa={class:"db-header-drawer-navigation"},Ha={class:"db-header-meta-navigation"},ja={class:"db-header-secondary-action"},Ya={class:"db-header-meta-navigation"},Ka={class:"db-header-navigation-bar"},Ja={class:"db-header-brand-container"},Qa={class:"db-header-navigation-container"},Za={class:"db-header-navigation"},xa={class:"db-header-primary-action"},et={class:"db-header-action-container"},at={class:"db-header-burger-menu-container"},tt={class:"db-header-secondary-action"},it=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(le),a=e.ref(!1),i=e.ref(!1),u=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=t.id||"header-"+$()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&t.forceMobile){const d=document.getElementById(l.value??"");d&&ke(d,{key:"data-force-mobile",value:"true"}),i.value=!0}},{immediate:!0,flush:"post"});function r(){const d=!T(t.drawerOpen,"drawerOpen");t.onToggle&&t.onToggle(d)}function p(d){Ie(d)&&r()}return(d,s)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:u,class:e.normalizeClass(e.unref(L)("db-header",t.class)),id:l.value,"data-width":d.width,"data-on-forcing-mobile":d.forceMobile&&!i.value},[e.createVNode(We,{class:"db-header-drawer",spacing:"small",rounded:!0,open:e.unref(T)(d.drawerOpen),onClose:f=>r()},{default:e.withCtx(()=>[e.createElementVNode("div",Xa,[e.createElementVNode("div",{class:"db-header-navigation",onClick:s[0]||(s[0]=async f=>p(f))},[e.renderSlot(d.$slots,"default")]),e.createElementVNode("div",Ha,[e.renderSlot(d.$slots,"meta-navigation")])]),e.createElementVNode("div",ja,[e.renderSlot(d.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",Ya,[e.renderSlot(d.$slots,"meta-navigation")]),e.createElementVNode("div",Ka,[e.createElementVNode("div",Ja,[e.renderSlot(d.$slots,"brand")]),e.createElementVNode("div",Qa,[e.createElementVNode("div",Za,[e.renderSlot(d.$slots,"default")]),e.createElementVNode("div",xa,[e.renderSlot(d.$slots,"primary-action")])]),e.createElementVNode("div",et,[e.createElementVNode("div",at,[e.createVNode(ee,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:f=>r()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.burgerMenuLabel??e.unref(Ue)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",tt,[e.renderSlot(d.$slots,"secondary-action")])])])],10,Wa))}}),lt=["id","data-icon","data-icon-weight","data-icon-variant"],ot=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,String]},icon:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("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,lt))}}),nt=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],dt=["for"],st=["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"],rt=["id"],ct=["value"],ft={"data-visually-hidden":"true",role:"status"},He=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,String],default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],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,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),u=e.ref(void 0),r=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),s=e.ref(void 0),f=e.ref(""),B=e.ref(""),S=e.ref(""),v=e.ref(null);e.onMounted(()=>{const m=a.id??`input-${$()}`;i.value=m,u.value=m+H,r.value=m+j,p.value=m+Y,s.value=m+Ce,d.value=a.invalidMessage||G}),e.watch(()=>[v.value,a.invalidMessage],()=>{var m;d.value=a.invalidMessage||((m=v.value)==null?void 0:m.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const m=i.value+H;u.value=m,r.value=i.value+j,p.value=i.value+Y,s.value=a.dataListId??i.value+Ce,R(a.message,a.showMessage)&&(f.value=m)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{B.value=a.value},{immediate:!0,flush:"post"});function C(){return!!(a.validMessage??a.validation==="valid")}function k(){var m,w,h;!((m=v.value)!=null&&m.validity.valid)||a.validation==="invalid"?(f.value=p.value,d.value=a.invalidMessage||((w=v.value)==null?void 0:w.validationMessage)||G,X()&&(S.value=d.value,U(()=>S.value="",1e3))):C()&&((h=v.value)!=null&&h.validity.valid)&&(a.required||a.minLength||a.maxLength||a.pattern)?(f.value=r.value,X()&&(S.value=a.validMessage??K,U(()=>S.value="",1e3))):R(a.message,a.showMessage)?f.value=u.value:f.value=""}function E(m){a.input&&a.input(m),B.value=m.target.value,a.onInput&&a.onInput(m),q(l,m),k()}function _(m){a.onChange&&a.onChange(m),q(()=>{},m),k()}function b(m){a.onBlur&&a.onBlur(m)}function g(m){a.onFocus&&a.onFocus(m)}function I(){const m=a.dataList;return Array.from(($e(m)?m==null?void 0:m.map(w=>({value:w,label:void 0})):m)||[])}return(m,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-input",a.class)),"data-variant":m.variant,"data-hide-label":e.unref(z)(m.showLabel),"data-hide-icon":e.unref(z)(m.showIcon),"data-icon":m.icon,"data-icon-after":m.iconAfter,"data-hide-icon-after":e.unref(z)(m.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(m.label??e.unref(ae)),9,dt),e.createElementVNode("input",{"aria-invalid":m.validation==="invalid","data-custom-validity":m.validation,ref_key:"_ref",ref:v,id:i.value,name:m.name,type:m.type||"text",placeholder:m.placeholder??e.unref(Se),disabled:e.unref(T)(m.disabled,"disabled"),required:e.unref(T)(m.required,"required"),step:e.unref(Z)(m.step),value:m.value??B.value,maxLength:e.unref(Z)(m.maxLength,m.maxlength),minLength:e.unref(Z)(m.minLength,m.minlength),max:e.unref(Z)(m.max),min:e.unref(Z)(m.min),readOnly:e.unref(T)(m.readOnly,"readOnly")||e.unref(T)(m.readonly,"readonly"),form:m.form,pattern:m.pattern,size:m.size,autoComplete:m.autocomplete,autoFocus:e.unref(T)(m.autofocus,"autofocus"),onInput:w[0]||(w[0]=async h=>E(h)),onChange:w[1]||(w[1]=async h=>_(h)),onBlur:w[2]||(w[2]=async h=>b(h)),onFocus:w[3]||(w[3]=async h=>g(h)),list:m.dataList&&s.value,"aria-describedby":m.ariaDescribedBy??f.value},null,40,st),m.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:s.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(),h=>(e.openBlock(),e.createElementBlock("option",{key:s.value+"-option-"+h.value,value:h.value},e.toDisplayString(h.label),9,ct))),128))],8,rt)):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"default"),e.unref(R)(m.message,m.showMessage)?(e.openBlock(),e.createBlock(P,{key:1,size:"small",icon:m.messageIcon,id:u.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),C()?(e.openBlock(),e.createBlock(P,{key:2,size:"small",semantic:"successful",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.validMessage||e.unref(K)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(P,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value),1)]),_:1},8,["id"]),e.createElementVNode("span",ft,e.toDisplayString(S.value),1)],10,nt))}}),ut=["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"],mt=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,String]},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],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,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,u)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-link",t.class)),href:i.href,target:i.target,rel:i.rel,role:i.role,hrefLang:i.hreflang,"aria-disabled":e.unref(V)(i.disabled),tabIndex:i.disabled?-1:0,"aria-selected":e.unref(V)(i.selected),"aria-label":i.label,"aria-current":i.current,"data-size":i.size,"data-hide-icon-after":e.unref(z)(i.showIcon??!0),"data-variant":i.variant,"data-content":i.content||"internal",onClick:u[0]||(u[0]=async r=>a(r))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,ut))}}),pt=["id","data-variant","data-fade-in","data-fonts-loaded"],ht=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,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")}),(i,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(L)("db-page",t.class)),"data-variant":i.variant,"data-fade-in":e.unref(V)(i.fadeIn),"data-fonts-loaded":e.unref(V)(l.value)},[e.renderSlot(i.$slots,"header"),e.createElementVNode("main",{class:e.normalizeClass(e.unref(L)("db-main",i.mainClass))},[e.renderSlot(i.$slots,"default")],2),e.renderSlot(i.$slots,"footer")],10,pt))}}),gt=["data-size","data-hide-label","for"],bt=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],yt=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,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),u=e.ref(void 0),r=e.ref(null);e.onMounted(()=>{i.value=!0,u.value=a.id??`radio-${$()}`}),e.watch(()=>[i.value,r.value,a.checked],()=>{a.checked&&i.value&&r.value&&(r.value.checked=!0)},{immediate:!0,flush:"post"});function p(f){a.onChange&&a.onChange(f),q(l,f)}function d(f){a.onBlur&&a.onBlur(f)}function s(f){a.onFocus&&a.onFocus(f)}return(f,B)=>(e.openBlock(),e.createElementBlock("label",{"data-size":f.size,"data-hide-label":e.unref(z)(f.showLabel),class:e.normalizeClass(e.unref(L)("db-radio",a.class)),for:u.value},[e.createElementVNode("input",{type:"radio","aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,ref_key:"_ref",ref:r,id:u.value,name:f.name,checked:e.unref(T)(f.checked,"checked"),disabled:e.unref(T)(f.disabled,"disabled"),"aria-describedby":f.describedbyid,value:f.value,required:e.unref(T)(f.required,"required"),onChange:B[0]||(B[0]=async S=>p(S)),onBlur:B[1]||(B[1]=async S=>d(S)),onFocus:B[2]||(B[2]=async S=>s(S))},null,40,bt),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,gt))}}),vt=["id","data-spacing","data-width"],kt=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(le),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"section-"+$()}),(i,u)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(L)("db-section",t.class)),"data-spacing":i.spacing||"medium","data-width":i.width},[e.renderSlot(i.$slots,"default")],10,vt))}}),Bt=["data-variant","data-hide-label","data-icon","data-hide-icon"],St=["for"],Et=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","multiple","aria-describedby"],wt=["label"],Ct=["value","selected","disabled"],Nt=["value","disabled","selected"],Tt=["id"],Lt={"data-visually-hidden":"true",role:"status"},_t=e.defineComponent({__name:"select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),u=e.ref(void 0),r=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),s=e.ref(""),f=e.ref(""),B=e.ref(""),S=e.ref(!1),v=e.ref(""),C=e.ref(null);e.onMounted(()=>{S.value=!0;const h=a.id??`select-${$()}`;i.value=h,u.value=h+H,r.value=h+j,p.value=h+Y,s.value=h+fe,d.value=a.invalidMessage||G}),e.watch(()=>[C.value,a.invalidMessage],()=>{var h;d.value=a.invalidMessage||((h=C.value)==null?void 0:h.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,S.value],()=>{if(i.value&&S.value){const h=i.value+H,F=i.value+fe;u.value=h,r.value=i.value+j,p.value=i.value+Y,s.value=F,R(a.message,a.showMessage)?f.value=h:f.value=F,S.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{B.value=a.value},{immediate:!0,flush:"post"});function k(){return!!(a.validMessage??a.validation==="valid")}function E(){var h,F,M;!((h=C.value)!=null&&h.validity.valid)||a.validation==="invalid"?(f.value=p.value,d.value=a.invalidMessage||((F=C.value)==null?void 0:F.validationMessage)||G,X()&&(v.value=d.value,U(()=>v.value="",1e3))):k()&&((M=C.value)!=null&&M.validity.valid)&&a.required?(f.value=r.value,X()&&(v.value=a.validMessage??K,U(()=>v.value="",1e3))):R(a.message,a.showMessage)?f.value=u.value:f.value=s.value}function _(h){a.onClick&&a.onClick(h)}function b(h){a.input&&a.input(h),B.value=h.target.value,a.onInput&&a.onInput(h),q(l,h),E()}function g(h){a.onChange&&a.onChange(h),q(()=>{},h),E()}function I(h){a.onBlur&&a.onBlur(h)}function m(h){a.onFocus&&a.onFocus(h)}function w(h){var F;return h.label??((F=h.value)==null?void 0:F.toString())}return(h,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-select",a.class)),"data-variant":h.variant,"data-hide-label":e.unref(z)(h.showLabel),"data-icon":h.icon,"data-hide-icon":e.unref(z)(h.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(h.label??e.unref(ae)),9,St),e.createElementVNode("select",{"aria-invalid":h.validation==="invalid","data-custom-validity":h.validation,ref_key:"_ref",ref:C,required:e.unref(T)(h.required,"required"),disabled:e.unref(T)(h.disabled,"disabled"),id:i.value,name:h.name,size:h.size,value:h.value??B.value,autocomplete:h.autocomplete,multiple:h.multiple,onInput:F[0]||(F[0]=async M=>b(M)),onClick:F[1]||(F[1]=async M=>_(M)),onChange:F[2]||(F[2]=async M=>g(M)),onBlur:F[3]||(F[3]=async M=>I(M)),onFocus:F[4]||(F[4]=async M=>m(M)),"aria-describedby":f.value},[F[5]||(F[5]=e.createElementVNode("option",{hidden:!0},null,-1)),h.options?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h.options,(M,be)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:be},[M.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:w(M)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.options,(te,se)=>(e.openBlock(),e.createElementBlock("option",{key:te.value.toString(),value:te.value,selected:te.selected,disabled:te.disabled},e.toDisplayString(w(te)),9,Ct))),128))],8,wt)):e.createCommentVNode("",!0),M.options?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("option",{key:1,value:M.value,disabled:M.disabled,selected:M.selected},e.toDisplayString(w(M)),9,Nt))],64))),128)):e.renderSlot(h.$slots,"default",{key:1})],40,Et),e.createElementVNode("span",{id:s.value},e.toDisplayString(h.placeholder??h.label),9,Tt),e.unref(R)(h.message,h.showMessage)?(e.openBlock(),e.createBlock(P,{key:0,size:"small",icon:h.messageIcon,id:u.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),k()?(e.openBlock(),e.createBlock(P,{key:1,size:"small",semantic:"successful",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.validMessage||e.unref(K)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(P,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Lt,e.toDisplayString(v.value),1)],10,Bt))}}),Dt=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],It=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],At=e.defineComponent({__name:"switch",props:{visualAid:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),u=e.ref(!1),r=e.ref(null);e.onMounted(()=>{i.value=a.id??`switch-${$()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(u.value=T(a.checked))},{immediate:!0,flush:"post"});function p(f){var B;a.onChange&&a.onChange(f),u.value=(B=f.target)==null?void 0:B.checked,q(l,f,"checked")}function d(f){a.onBlur&&a.onBlur(f)}function s(f){a.onFocus&&a.onFocus(f)}return(f,B)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(V)(f.visualAid),"data-size":f.size,"data-hide-label":e.unref(z)(f.showLabel),"data-emphasis":f.emphasis,for:i.value,class:e.normalizeClass(e.unref(L)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:i.value,"aria-checked":e.unref(V)(u.value),ref_key:"_ref",ref:r,checked:e.unref(T)(f.checked,"checked"),value:f.value,disabled:e.unref(T)(f.disabled,"disabled"),"aria-describedby":f.describedbyid,"aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,name:f.name,required:e.unref(T)(f.required,"required"),"data-aid-icon":f.icon,"data-aid-icon-after":f.iconAfter,onChange:B[0]||(B[0]=async S=>p(S)),onBlur:B[1]||(B[1]=async S=>d(S)),onFocus:B[2]||(B[2]=async S=>s(S))},null,40,It),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,Dt))}}),Vt=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],Ft=["disabled","aria-selected","aria-controls","checked","name","id"],je=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},noText:{type:[Boolean,String],default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:[Boolean,String],default:void 0},controls:{default:void 0},change:{},onChange:{type:Function,default:void 0},showIcon:{type:[Boolean,String],default:void 0},name:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),u=e.ref(void 0),r=e.ref(!1),p=e.ref(null);e.onMounted(()=>{r.value=!0}),e.watch(()=>[p.value,r.value],()=>{r.value&&p.value&&(a.active&&p.value.click(),r.value=!1)},{immediate:!0,flush:"post"}),e.watch(()=>[a.name],()=>{a.name&&(u.value=a.name)},{immediate:!0,flush:"post"});function d(s){var f;a.onChange&&a.onChange(s),i.value=(f=s.target)==null?void 0:f.checked,q(l,s,"checked")}return(s,f)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(L)("db-tab-item",a.class))},[e.createElementVNode("label",{for:s.id,"data-icon":s.icon,"data-icon-after":s.iconAfter,"data-hide-icon":e.unref(z)(s.showIcon),"data-hide-icon-after":e.unref(z)(s.showIcon),"data-no-text":e.unref(V)(s.noText)},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:e.unref(T)(s.disabled,"disabled"),"aria-selected":i.value,"aria-controls":s.controls,checked:e.unref(T)(s.checked,"checked"),ref_key:"_ref",ref:p,name:u.value,id:s.id,onInput:f[0]||(f[0]=async B=>d(B))},null,40,Ft),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default")],8,Vt)],2))}}),$t=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],Mt=["title"],Ye=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0},onRemove:{type:Function,default:void 0},remove:{},removeButton:{default:void 0},showCheckState:{type:[Boolean,String],default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},semantic:{default:void 0},overflow:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},content:{}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,t.disabled,a.value],()=>{var r,p;if(l.value&&a.value&&t.disabled!==void 0){const d=(r=a.value)==null?void 0:r.querySelector("button:not(.db-tab-remove-button)"),s=(p=a.value)==null?void 0:p.querySelector("input");for(const f of[d,s])f&&(f.disabled=!!t.disabled)}},{immediate:!0,flush:"post"});function i(r){t.onRemove&&t.onRemove(r)}function u(){return t.removeButton?t.removeButton:Ne}return(r,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:r.id,class:e.normalizeClass(e.unref(L)("db-tag",t.class)),"data-disabled":e.unref(V)(r.disabled),"data-semantic":r.semantic,"data-emphasis":r.emphasis,"data-icon":r.icon,"data-show-check-state":e.unref(V)(r.showCheckState??!0),"data-hide-icon":e.unref(z)(r.showIcon),"data-no-text":e.unref(V)(r.noText),"data-overflow":e.unref(V)(r.overflow)},[e.renderSlot(r.$slots,"content"),e.renderSlot(r.$slots,"default"),r.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.text),1)],64)):e.createCommentVNode("",!0),r.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 d=>i(d)),title:u()},e.toDisplayString(u()),9,Mt)):e.createCommentVNode("",!0)],10,$t))}}),zt=["data-variant","data-hide-label"],Rt=["for"],Ut=["aria-invalid","data-custom-validity","id","data-resize","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Pt={"data-visually-hidden":"true",role:"status"},Gt=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:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),u=e.ref(void 0),r=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),s=e.ref(""),f=e.ref(""),B=e.ref(""),S=e.ref(null);e.onMounted(()=>{const g=a.id??`textarea-${$()}`;i.value=g,u.value=g+H,r.value=g+j,p.value=g+Y,d.value=a.invalidMessage||G}),e.watch(()=>[S.value,a.invalidMessage],()=>{var g;d.value=a.invalidMessage||((g=S.value)==null?void 0:g.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const g=i.value+H;u.value=g,r.value=i.value+j,p.value=i.value+Y,R(a.message,a.showMessage)&&(s.value=g)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{f.value=a.value},{immediate:!0,flush:"post"});function v(){return!!(a.validMessage??a.validation==="valid")}function C(){var g,I,m;!((g=S.value)!=null&&g.validity.valid)||a.validation==="invalid"?(s.value=p.value,d.value=a.invalidMessage||((I=S.value)==null?void 0:I.validationMessage)||G,X()&&(B.value=d.value,U(()=>B.value="",1e3))):v()&&((m=S.value)!=null&&m.validity.valid)&&(a.required||a.minLength||a.maxLength)?(s.value=r.value,X()&&(B.value=a.validMessage??K,U(()=>B.value="",1e3))):R(a.message,a.showMessage)?s.value=u.value:s.value=""}function k(g){a.input&&a.input(g),f.value=g.target.value,a.onInput&&a.onInput(g),q(l,g),C()}function E(g){a.onChange&&a.onChange(g),q(()=>{},g),C()}function _(g){a.onBlur&&a.onBlur(g)}function b(g){a.onFocus&&a.onFocus(g)}return(g,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-textarea",a.class)),"data-variant":g.variant,"data-hide-label":e.unref(z)(g.showLabel)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(g.label??e.unref(ae)),9,Rt),e.createElementVNode("textarea",{"aria-invalid":g.validation==="invalid","data-custom-validity":g.validation,ref_key:"_ref",ref:S,id:i.value,"data-resize":g.resize,disabled:e.unref(T)(g.disabled,"disabled"),required:e.unref(T)(g.required,"required"),readOnly:e.unref(T)(g.readOnly,"readOnly")||e.unref(T)(g.readonly,"readonly"),form:g.form,maxLength:e.unref(Z)(g.maxLength,g.maxlength),minLength:e.unref(Z)(g.minLength,g.minlength),name:g.name,wrap:g.wrap,spellcheck:g.spellCheck,autocomplete:g.autocomplete,onInput:I[0]||(I[0]=async m=>k(m)),onChange:I[1]||(I[1]=async m=>E(m)),onBlur:I[2]||(I[2]=async m=>_(m)),onFocus:I[3]||(I[3]=async m=>b(m)),value:g.value??f.value,"aria-describedby":s.value,placeholder:g.placeholder??e.unref(Se),rows:e.unref(Z)(g.rows,e.unref(Ge)),cols:e.unref(Z)(g.cols)},null,40,Ut),e.unref(R)(g.message,g.showMessage)?(e.openBlock(),e.createBlock(P,{key:0,size:"small",icon:g.messageIcon,id:u.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),v()?(e.openBlock(),e.createBlock(P,{key:1,size:"small",semantic:"successful",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.validMessage||e.unref(K)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(P,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Pt,e.toDisplayString(B.value),1)],10,zt))}}),Ot=["id","data-width","data-icon","data-hide-icon","data-active","data-wrap","aria-disabled"],qt=["aria-haspopup","aria-expanded","disabled"],Wt=["data-auto-close","id"],Xt={key:0,class:"db-mobile-navigation-back"},Ht=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},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,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(!0),u=e.ref(!1),r=e.ref(!1),p=e.ref("sub-navigation-"+$()),d=e.ref(void 0),s=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.subNavigationExpanded],()=>{t.subNavigationExpanded!==void 0&&(u.value=!!T(t.subNavigationExpanded,"subNavigationExpanded"))},{immediate:!0,flush:"post"}),e.watch(()=>[l.value,s.value],()=>{var v;if(l.value&&s.value){const C=s.value.querySelector("menu");C&&(((v=C.children)==null?void 0:v.length)>0?(a.value=!0,d.value||(d.value=new Xe(s.value,C))):i.value=!1)}},{immediate:!0,flush:"post"});function f(v){Ie(v)&&(r.value=!0,U(()=>{r.value=!1},300))}function B(v){t.onClick&&t.onClick(v),a.value&&(u.value=!0)}function S(v){v.stopPropagation(),u.value=!1}return(v,C)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:s,id:v.id,onMouseover:C[2]||(C[2]=async k=>{var E;return(E=d.value)==null?void 0:E.enableFollow()}),onMouseleave:C[3]||(C[3]=async k=>{var E;return(E=d.value)==null?void 0:E.disableFollow()}),onMousemove:C[4]||(C[4]=async k=>{var E;return(E=d.value)==null?void 0:E.followByMouseEvent(k)}),class:e.normalizeClass(e.unref(L)("db-navigation-item",t.class)),"data-width":v.width,"data-icon":v.icon,"data-hide-icon":e.unref(z)(v.showIcon),"data-active":v.active,"data-wrap":e.unref(V)(v.wrap),"aria-disabled":e.unref(V)(v.disabled)},[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(v.text),1)],64)):e.renderSlot(v.$slots,"default",{key:1})],64)),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":u.value,disabled:e.unref(T)(v.disabled,"disabled"),onClick:C[0]||(C[0]=async k=>B(k))},[v.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(v.text),1)],64)):e.renderSlot(v.$slots,"default",{key:1})],8,qt),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":r.value,id:p.value,onClick:C[1]||(C[1]=async k=>f(k))},[a.value?(e.openBlock(),e.createElementBlock("div",Xt,[e.createVNode(ee,{icon:"arrow_left",variant:"ghost",id:v.backButtonId,onClick:k=>S(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.backButtonText??e.unref(ze)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(v.$slots,"sub-navigation")],8,Wt)],64)):e.createCommentVNode("",!0)],42,Ot))}}),jt=["id"],Yt=["aria-disabled","name","open"],Ke=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(o){const t=o,l=e.ref(le),a=e.ref(!1),i=e.ref(void 0),u=e.ref(!1),r=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-item-"+$(),t.defaultOpen&&(a.value=t.defaultOpen),u.value=!0}),e.watch(()=>[r.value,u.value],()=>{r.value&&u.value},{immediate:!0,flush:"post"}),e.watch(()=>[t.name],()=>{t.name&&(i.value=t.name)},{immediate:!0,flush:"post"});function p(d){d==null||d.preventDefault();const s=!a.value;t.onToggle&&t.onToggle(s),a.value=s}return(d,s)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(L)("db-accordion-item",t.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(V)(d.disabled),ref_key:"_ref",ref:r,name:i.value,open:a.value},[e.createElementVNode("summary",{onClick:s[0]||(s[0]=async f=>p(f))},[d.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.headlinePlain),1)],64)):e.createCommentVNode("",!0),d.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(d.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[d.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.text),1)],64)):e.renderSlot(d.$slots,"default",{key:1})])],8,Yt)],10,jt))}}),Kt=["id","data-variant"],Jt=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,String]}},setup(o){const t=o,l=e.ref(le),a=e.ref(""),i=e.ref(!1),u=e.ref(!1),r=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-"+$(),i.value=!0,u.value=!0}),e.watch(()=>[i.value,t.name,t.behavior,l.value],()=>{i.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(()=>[r.value,a.value],()=>{if(r.value){const d=r.value.getElementsByTagName("details");if(d)for(const s of Array.from(d))a.value===""?s.removeAttribute("name"):s.name=a.value??""}},{immediate:!0,flush:"post"}),e.watch(()=>[r.value,u.value,t.initOpenIndex],()=>{if(r.value&&u.value){if(t.initOpenIndex&&t.initOpenIndex.length>0){const d=r.value.getElementsByTagName("details");if(d){const s=t.behavior==="single"&&t.initOpenIndex.length>1?[t.initOpenIndex[0]]:t.initOpenIndex;Array.from(d).forEach((f,B)=>{s!=null&&s.includes(B)&&(f.open=!0)})}}u.value=!1}},{immediate:!0,flush:"post"});function p(){try{return typeof t.items=="string"?JSON.parse(t.items):t.items}catch(d){console.error(d)}return[]}return(d,s)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:r,id:l.value,class:e.normalizeClass(e.unref(L)("db-accordion",t.class)),"data-variant":d.variant},[d.items?e.createCommentVNode("",!0):e.renderSlot(d.$slots,"default",{key:0}),d.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p(),(f,B)=>(e.openBlock(),e.createBlock(Ke,{key:`accordion-item-${B}`,headlinePlain:f.headlinePlain,disabled:f.disabled,text:f.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,Kt))}}),Qt=["id","aria-labelledby"],Zt=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(le),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"navigation-"+$()}),(i,u)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":i.labelledBy,class:e.normalizeClass(e.unref(L)("db-navigation",t.class))},[e.createElementVNode("menu",null,[e.renderSlot(i.$slots,"default")])],10,Qt))}}),xt=["id"],ei=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],ai=e.defineComponent({__name:"popover",props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[i.value,l.value],()=>{if(i.value&&l.value){const d=p();d&&(d.ariaHasPopup="true"),l.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,a.value],()=>{if(i.value){const d=p();d&&(d.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function u(){if(a.value=!0,!i.value)return;const d=i.value.querySelector("article");d&&ce(d)}function r(d){const s=d.target;(!s.parentNode||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s)&&(a.value=!1)}function p(){var d;if(i.value){const s=Array.from(i.value.children);if(s.length>=2){const f=s[0];return f.tagName.includes("-")?((d=f.children)==null?void 0:d.length)>0?f.children[0]:null:f}}return null}return(d,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:i,id:d.id,class:e.normalizeClass(e.unref(L)("db-popover",t.class)),onFocus:s[0]||(s[0]=async f=>u()),onBlur:s[1]||(s[1]=async f=>r(f)),onMouseenter:s[2]||(s[2]=async f=>u()),onMouseleave:s[3]||(s[3]=async f=>r(f))},[e.renderSlot(d.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":d.spacing,"data-gap":e.unref(V)(d.gap),"data-animation":e.unref(V)(d.animation??!0),"data-open":e.unref(V)(d.open),"data-delay":d.delay,"data-width":d.width,"data-placement":d.placement},[e.renderSlot(d.$slots,"default")],8,ei)],42,xt))}}),ti=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],Je=e.defineComponent({__name:"tooltip",props:{showArrow:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(le),a=e.ref(!1),i=e.ref(null);e.onMounted(()=>{l.value=t.id||"tooltip-"+$(),a.value=!0}),e.watch(()=>[i.value,a.value],()=>{if(i.value&&a.value&&l.value){let p=i.value.parentElement;p&&p.localName.includes("tooltip")&&(p=p.parentElement),p&&(["mouseenter","focus"].forEach(d=>{p.addEventListener(d,()=>r())}),p.setAttribute("data-has-tooltip","true"),p.setAttribute("aria-describedby",l.value)),a.value=!1}},{immediate:!0,flush:"post"});function u(p){p.stopPropagation()}function r(){i.value&&ce(i.value)}return(p,d)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:i,class:e.normalizeClass(e.unref(L)("db-tooltip",t.class)),id:l.value,"data-emphasis":p.emphasis,"data-animation":e.unref(V)(p.animation??!0),"data-delay":p.delay,"data-width":p.width,"data-show-arrow":e.unref(V)(p.showArrow??!0),"data-placement":p.placement,onClick:d[0]||(d[0]=async s=>u(s))},[e.renderSlot(p.$slots,"default")],10,ti))}}),ii=["id"],li={role:"tablist"},Qe=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(le),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"tab-list-"+$()}),(i,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(L)("db-tab-list",t.class))},[e.createElementVNode("ul",li,[e.renderSlot(i.$slots,"default")])],10,ii))}}),oi=["id","aria-labelledby"],Ze=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,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(null);return e.onMounted(()=>{}),(a,i)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(L)("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,oi))}}),ni=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],di=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},indexChange:{},tabSelect:{},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0}},setup(o){const t=o,l=e.ref("tabs-"+$()),a=e.ref(""),i=e.ref(!1),u=e.ref(!1),r=e.ref(!1),p=e.ref(null),d=e.ref(null);e.onMounted(()=>{l.value=t.id||l.value,a.value=`tabs-${t.name||$()}`,i.value=!0}),e.watch(()=>[d.value,i.value],()=>{if(d.value&&i.value){S(),v(!0);const k=d.value.querySelector(".db-tab-list");k&&new MutationObserver(_=>{_.forEach(b=>{(b.removedNodes.length||b.addedNodes.length)&&(S(),v())})}).observe(k,{childList:!0,subtree:!0}),i.value=!1}},{immediate:!0,flush:"post"});function s(){try{return typeof t.tabs=="string"?JSON.parse(t.tabs):t.tabs}catch(k){console.error(k)}return[]}function f(k){const E=k.scrollWidth>k.clientWidth;u.value=E&&k.scrollLeft>1,r.value=E&&k.scrollLeft<k.scrollWidth-k.clientWidth}function B(k){var _;let E=Number(t.arrowScrollDistance)||100;k&&(E*=-1),(_=p.value)==null||_.scrollBy({top:0,left:E,behavior:"smooth"})}function S(){if(d.value){const k=d.value.querySelector(".db-tab-list");if(k){const E=k.querySelector('[role="tablist"]');E&&(E.setAttribute("aria-orientation",t.orientation||"horizontal"),t.behavior==="arrows"&&(p.value=E,f(E),E.addEventListener("scroll",()=>{f(E)})))}}}function v(k){if(d.value){const E=Array.from(d.value.getElementsByClassName("db-tab-item"));for(const b of E){const g=E.indexOf(b),I=b.querySelector("label"),m=b.querySelector("input");if(m&&I){if(!m.id){const w=`${a.value}-tab-${g}`;I.setAttribute("for",w),m.setAttribute("aria-controls",`${a.value}-tab-panel-${g}`),m.id=w,m.setAttribute("name",a.value)}if(k){const w=!t.initialSelectedMode||t.initialSelectedMode==="auto",h=t.initialSelectedIndex==null&&g===0||Number(t.initialSelectedIndex)===g;w&&h&&m.click()}}}const _=Array.from(d.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const b of _){if(b.id)continue;const g=_.indexOf(b);b.id=`${a.value}-tab-panel-${g}`,b.setAttribute("aria-labelledby",`${a.value}-tab-${g}`)}}}function C(k){var b;const E=(b=k.target)==null?void 0:b.closest("ul"),_=k.target.closest("db-tab-item")??k.target.closest("li");if(E!==null&&_!==null){const g=Array.from(E.childNodes).indexOf(_);t.onIndexChange&&t.onIndexChange(g)}t.onTabSelect&&t.onTabSelect(k)}return(k,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:l.value,class:e.normalizeClass(e.unref(L)("db-tabs",t.class)),"data-orientation":k.orientation,"data-scroll-behavior":k.behavior,"data-alignment":k.alignment??"start","data-width":k.width??"auto",onInput:E[0]||(E[0]=async _=>C(_))},[u.value?(e.openBlock(),e.createBlock(ee,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:_=>B(!0)},{default:e.withCtx(()=>E[1]||(E[1]=[e.createTextVNode(" Scroll left ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),k.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Qe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s(),(_,b)=>(e.openBlock(),e.createBlock(je,{key:k.name+"tab-item"+b,active:_.active,label:_.label,iconAfter:_.iconAfter,icon:_.icon,noText:_.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s(),(_,b)=>(e.openBlock(),e.createBlock(Ze,{key:k.name+"tab-panel"+b,content:_.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(ee,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:_=>B()},{default:e.withCtx(()=>E[2]||(E[2]=[e.createTextVNode(" Scroll right ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"default")],42,ni))}}),si=["adaptive","neutral","critical","informational","warning","successful"],ri=["medium","small","large","none"],ci=["medium","small","large","none"],xe=["left","right","left-start","left-end","right-start","right-end"],ea=["top","bottom","top-start","top-end","bottom-start","bottom-end"],fi=[...xe,...ea],ui=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],mi=["horizontal","vertical"],pi=["full","auto"],hi=["full","medium","large","small"],gi=["none","slow","fast"],bi=["auto","fixed"],yi=["small","medium"],vi=["weak","strong"],ki=["invalid","valid","no-validation"],Bi=["above","floating"],Si=["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"],Ei=["time","true","false","date","page","step","location"],wi=["_self","_blank","_parent","_top"],Ci=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Ni=["start","center"],Ti=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Li=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},gap:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("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(V)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Ti))}}),_i=["role","aria-label","id"],aa=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,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{role:a.multiple?"group":"radiogroup","aria-label":a.label,ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-list",t.class))},[e.createElementVNode("ul",null,[e.renderSlot(a.$slots,"default")])],10,_i))}}),Di=["id","data-divider"],Ii=["data-icon","data-hide-icon","data-icon-after"],Ai=["type","name","form","checked","disabled","value"],Vi={key:1},ta=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,String]},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),u=e.ref(!1),r=e.ref(null);e.onMounted(()=>{i.value=a.id??`custom-select-list-item-${$()}`}),e.watch(()=>[a.isGroupTitle,a.showDivider],()=>{u.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:"post"});function p(s){s.stopPropagation(),a.onChange&&a.onChange(s),q(l,s,"checked")}function d(){if(!(a.isGroupTitle||a.type==="checkbox"))return T(a.checked,"checked")?"check":"x_placeholder"}return(s,f)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:r,id:i.value,class:e.normalizeClass(e.unref(L)("db-custom-select-list-item",a.class,{"db-checkbox":s.type==="checkbox"&&!s.isGroupTitle,"db-radio":s.type!=="checkbox"&&!s.isGroupTitle})),"data-divider":e.unref(V)(u.value)},[s.isGroupTitle?(e.openBlock(),e.createElementBlock("span",Vi,e.toDisplayString(s.groupTitle),1)):(e.openBlock(),e.createElementBlock("label",{key:0,"data-icon":s.type!=="checkbox"&&s.icon?s.icon:void 0,"data-hide-icon":e.unref(z)(s.showIcon),"data-icon-after":d()},[e.createElementVNode("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:s.type,name:s.name,form:s.name,checked:e.unref(T)(s.checked,"checked"),disabled:e.unref(T)(s.disabled,"disabled"),value:s.value,onChange:f[0]||(f[0]=async B=>p(B))},null,40,Ai),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.renderSlot(s.$slots,"default",{key:1})],8,Ii))],10,Di))}}),Fi=["id","data-width"],ia=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,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("article",{"data-spacing":"none",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-dropdown db-card",t.class)),"data-width":a.width},[e.renderSlot(a.$slots,"default")],10,Fi))}}),J=class J{static runCallbacks(t){Object.values(J.callbacks).forEach(l=>{typeof l=="function"&&l(t)})}constructor(){if(J._instance)return J._instance;J._instance=this,document&&document.addEventListener("click",t=>J.runCallbacks(t))}addCallback(t){const l=$();return J.callbacks[l]=t,l}removeCallback(t){delete J.callbacks[t]}};x(J,"callbacks",{}),x(J,"_instance",null);let ge=J;const $i=["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"],Mi=["id"],zi=["id","form","name","multiple","disabled","required"],Ri=["disabled","value"],Ui=["open"],Pi=["id","aria-disabled","aria-labelledby"],Gi=["data-visually-hidden","id"],Oi={key:1},qi={key:0},Wi={key:0},Xi={class:"db-checkbox db-custom-select-list-item"},Hi=["form","checked"],ji=["aria-hidden","id"],Yi={"data-visually-hidden":"true",role:"status"},Ki=e.defineComponent({__name:"custom-select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},ariaDescribedBy:{},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},ariaListLabel:{default:void 0},amountText:{default:void 0},clearSelectionText:{default:"Clear selection"},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},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},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:["update:values"],setup(o,{emit:t}){const l=o,a=e.ref(void 0),i=e.ref(void 0),u=e.ref(void 0),r=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),s=e.ref(void 0),f=e.ref(void 0),B=e.ref(void 0),S=e.ref(void 0),v=e.ref("no-validation"),C=e.ref(""),k=e.ref(""),E=e.ref(void 0),_=e.ref(""),b=e.ref([]),g=e.ref(!1),I=e.ref(!1),m=e.ref(0),w=e.ref([]),h=e.ref([]),F=e.ref(!1),M=e.ref(void 0),be=e.ref(0),te=e.ref(!1),se=e.ref(!1),Zi=e.ref(null),D=e.ref(null),oe=e.ref(null),ye=e.ref(null),Ae=e.ref(null);e.onMounted(()=>{const n=l.id??`custom-select-${$()}`;a.value=n,i.value=n+H,u.value=n+j,r.value=n+Y,d.value=n+we,s.value=n+Ee,f.value=n+"-summary",B.value=n+fe,E.value=n+"-selected-labels",S.value=n+"-info",p.value=l.invalidMessage||G}),e.watch(()=>[D.value],()=>{if(D.value){const n=D.value.querySelector("summary");n&&(n.addEventListener("click",()=>{na(),Ve(!0)}),n.addEventListener("keydown",y=>{var N;y.code==="Space"&&!((N=D.value)!=null&&N.open)&&Ve()})),D.value.addEventListener("focusout",y=>ue(y))}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{if(a.value){const n=a.value+H;s.value=a.value+Ee,d.value=a.value+we,u.value=a.value+j,r.value=a.value+Y,B.value=a.value+fe,R(l.message,l.showMessage)?oa(n):oa()}},{immediate:!0,flush:"post"}),e.watch(()=>[D.value,C.value],()=>{if(D.value){const n=D.value.querySelector("summary");n&&n.setAttribute("aria-describedby",C.value||"")}},{immediate:!0,flush:"post"}),e.watch(()=>[l.showNoResults,h.value],()=>{l.showNoResults!==void 0?F.value=l.showNoResults:h.value&&(F.value=h.value.length===0)},{immediate:!0,flush:"post"}),e.watch(()=>[l.showSelectAll,m.value,l.multiple],()=>{g.value=!!(l.multiple&&(l.showSelectAll||m.value>5))},{immediate:!0,flush:"post"}),e.watch(()=>[l.showSearch,m.value],()=>{I.value=l.showSearch||m.value>9},{immediate:!0,flush:"post"}),e.watch(()=>[l.values],()=>{l.values&&Array.isArray(l.values)&&l.values!==w.value&&(w.value=l.values??[])},{immediate:!0,flush:"post"}),e.watch(()=>[w.value],()=>{xi()},{immediate:!0,flush:"post"}),e.watch(()=>[l.validation],()=>{v.value=l.validation},{immediate:!0,flush:"post"}),e.watch(()=>[w.value,m.value],()=>{var n,y;((n=w.value)==null?void 0:n.length)===0?(te.value=!1,se.value=!1):((y=w.value)==null?void 0:y.length)===m.value?(se.value=!1,te.value=!0):w.value&&(se.value=!0)},{immediate:!0,flush:"post"}),e.watch(()=>[l.options],()=>{var n;h.value=l.options,m.value=((n=l.options)==null?void 0:n.filter(y=>!y.isGroupTitle).length)??0},{immediate:!0,flush:"post"}),e.watch(()=>[h.value,w.value],()=>{var n,y;(n=h.value)!=null&&n.length&&(b.value=(y=h.value)==null?void 0:y.filter(N=>{var O,ne;return!N.value||!((O=w.value)!=null&&O.includes)?!1:!N.isGroupTitle&&((ne=w.value)==null?void 0:ne.includes(N.value))}))},{immediate:!0,flush:"post"}),e.watch(()=>[b.value,l.selectedType,l.amountText],()=>{var n,y,N;(n=b.value)!=null&&n.length?l.selectedType==="amount"?k.value=l.amountText?l.amountText:`${(y=b.value)==null?void 0:y.length} ${Re}`:k.value=(N=b.value)==null?void 0:N.map(O=>de(O)).join(", "):k.value=""},{immediate:!0,flush:"post"}),e.watch(()=>[b.value],()=>{var n;l.onAmountChange&&l.onAmountChange(((n=b.value)==null?void 0:n.length)??0)},{immediate:!0,flush:"post"}),e.watch(()=>[se.value,ye.value],()=>{ye.value&&(ye.value.indeterminate=!!se.value)},{immediate:!0,flush:"post"}),e.watch(()=>[oe.value,l.invalidMessage],()=>{var n;p.value=l.invalidMessage||((n=oe.value)==null?void 0:n.validationMessage)||G},{immediate:!0,flush:"post"});function la(){return!!(l.validMessage??l.validation==="valid")}function xi(){var n,y,N;oe.value&&(oe.value.value=al()),!((n=oe.value)!=null&&n.validity.valid)||l.validation==="invalid"?(C.value=r.value,p.value=l.invalidMessage||((y=oe.value)==null?void 0:y.validationMessage)||G,X()&&(_.value=p.value,U(()=>_.value="",1e3)),v.value=l.validation??"invalid"):la()&&((N=oe.value)!=null&&N.validity.valid)&&l.required?(C.value=u.value,X()&&(_.value=l.validMessage??K,U(()=>_.value="",1e3)),v.value=l.validation??"valid"):R(l.message,l.showMessage)?(C.value=i.value,v.value=l.validation??"no-validation"):(C.value=B.value,v.value=l.validation??"no-validation")}function el(n){l.onDropdownToggle&&l.onDropdownToggle(n),n.target.open?M.value=new ge().addCallback(y=>sl(y)):M.value&&new ge().removeCallback(M.value)}function al(){var n;return(n=w.value)!=null&&n.length?w.value.at(0)??"":""}function oa(n){var N;const y=[];n&&y.push(n),E.value&&((N=k.value)!=null&&N.length)&&y.push(E.value),C.value=y.join(" ")}function tl(){return l.selectAllLabel??ae}function de(n){var y;return n.label??((y=n.value)==null?void 0:y.toString())??""}function il(n){var y,N;return n&&((y=w.value)!=null&&y.includes)?(N=w.value)==null?void 0:N.includes(n):!1}function ll(n){return l.removeTagsTexts&&l.removeTagsTexts.length>n?l.removeTagsTexts.at(n):`${Ne} ${b.value?de(b.value[n]):""}`}function ol(n,y){y.stopPropagation(),da(n.value),me()}function na(){if(D.value){const n=D.value.querySelector("article");n&&U(()=>{ce(n)},100)}}function nl(n){var y,N,O,ne,A,ie,pe;if((y=D.value)!=null&&y.open){if(document){const Q=document.activeElement;if(Q)if(Q.getAttribute("type")==="checkbox"||Q.getAttribute("type")==="radio"){const W=Q==null?void 0:Q.closest("li");if(n.key==="ArrowDown"||n.key==="ArrowRight")W!=null&&W.nextElementSibling?(O=(N=W==null?void 0:W.nextElementSibling)==null?void 0:N.querySelector("input"))==null||O.focus():ve(Q);else if(W!=null&&W.previousElementSibling)(A=(ne=W==null?void 0:W.previousElementSibling)==null?void 0:ne.querySelector("input"))==null||A.focus();else if(D.value.querySelector('input[type="checkbox"]')!==Q)ve(Q);else{const sa=Be(D.value);if(sa)U(()=>{sa.focus()},100);else{const ra=Array.from((ie=D.value)==null?void 0:ie.querySelectorAll('input[type="checkbox"],input[type="radio"]'));ra.length&&((pe=ra.at(-1))==null||pe.focus())}}}else Q.getAttribute("type")==="search"&&(n.key==="ArrowUp"||n.key==="ArrowLeft")?(ue("close"),me()):ve(Q)}n.stopPropagation(),n.preventDefault()}else(n.key==="ArrowDown"||n.key==="ArrowRight")&&(na(),D.value&&(D.value.open=!0),Ve(),n.stopPropagation(),n.preventDefault())}function dl(n){var y;n.key==="Escape"&&D.value&&((y=D.value)!=null&&y.open)?(ue("close"),me()):(n.key==="ArrowDown"||n.key==="ArrowUp"||n.key==="ArrowLeft"||n.key==="ArrowRight")&&nl(n)}function ue(n){if(D.value){if(n==="close")D.value.open=!1,me();else if(D.value.open&&(n!=null&&n.relatedTarget)){const y=n.relatedTarget;D.value.contains(y)||(D.value.open=!1)}}}function sl(n){var N;const y=n.target;(N=D.value)!=null&&N.open&&!D.value.contains(y)&&(D.value.open=!1)}function re(n){new Date().getTime()-be.value<200||(l.onOptionSelected&&(w.value=n,l.onOptionSelected(n??[])),q(()=>{},{target:{values:n}},"values"),be.value=new Date().getTime())}function da(n){var y;n&&(l.multiple?(y=w.value)!=null&&y.includes(n)?re(w.value.filter(N=>N!==n)):re([...w.value||[],n]):(re([n]),ue("close")))}function rl(){var n;if(((n=w.value)==null?void 0:n.length)===m.value)re([]);else{const y=I.value&&Ae.value?Ae.value.value:void 0;re(l.options?l.options.filter(N=>{var O;return!N.isGroupTitle&&(!y||((O=N.value)==null?void 0:O.toLowerCase().includes(y.toLowerCase())))}).map(N=>N.value??""):[])}}function ve(n){if(D.value){const y=Array.from(D.value.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(y.length){const N=y.at(0),O=N===n&&y.length>1?y.at(1):N;O&&U(()=>{O.focus()},100)}}}function Ve(n){if(D.value){const y=Be(D.value);y?U(()=>{y.focus()},100):n||ve()}}function cl(n){n.stopPropagation();const y=n.target.value;h.value=!l.options||!y||y.length===0?l.options:l.options.filter(N=>!N.isGroupTitle&&de(N).toLowerCase().includes(y.toLowerCase()))}function fl(){re([]),me()}function me(){var n,y;(y=(n=D.value)==null?void 0:n.querySelector("summary"))==null||y.focus()}function pl(){}return(n,y)=>{var N,O,ne;return e.openBlock(),e.createElementBlock("div",{id:a.value,ref_key:"_ref",ref:Zi,class:e.normalizeClass(e.unref(L)("db-custom-select",l.class)),"aria-invalid":v.value==="invalid","data-custom-validity":v.value,"data-width":n.formFieldWidth,"data-variant":n.variant==="floating"&&n.selectedType==="tag"&&n.multiple?"above":n.variant,"data-required":e.unref(V)(n.required),"data-placement":n.placement,"data-selected-type":n.multiple?n.selectedType:"text","data-hide-label":e.unref(z)(n.showLabel),"data-icon":n.icon,"data-hide-icon":e.unref(z)(n.showIcon)},[e.createElementVNode("label",{id:s.value},[e.createTextVNode(e.toDisplayString(n.label??e.unref(ae)),1),e.createElementVNode("select",{role:"none",hidden:!0,id:d.value,tabIndex:-1,ref_key:"selectRef",ref:oe,form:n.form,name:n.name,multiple:e.unref(T)(n.multiple,"multiple"),disabled:e.unref(T)(n.disabled,"disabled"),required:e.unref(T)(n.required,"required"),onChange:y[0]||(y[0]=async A=>void 0)},[(N=h.value)!=null&&N.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h.value,(A,ie)=>(e.openBlock(),e.createElementBlock("option",{key:ie,disabled:A.disabled,value:A.value},e.toDisplayString(de(A)),9,Ri))),128)):e.createCommentVNode("",!0)],40,zi)],8,Mi),e.createElementVNode("details",{ref_key:"detailsRef",ref:D,open:n.open,onToggle:y[2]||(y[2]=async A=>el(A)),onKeydown:y[3]||(y[3]=async A=>dl(A))},[e.renderSlot(n.$slots,"default"),n.options?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("summary",{class:"db-custom-select-form-field",id:f.value,"aria-disabled":e.unref(V)(n.disabled),"aria-labelledby":s.value},[(O=k.value)!=null&&O.length?(e.openBlock(),e.createElementBlock("span",{key:0,"data-visually-hidden":e.unref(V)(n.selectedType==="tag"),id:E.value},e.toDisplayString(k.value),9,Gi)):e.createCommentVNode("",!0),n.selectedType==="tag"?(e.openBlock(),e.createElementBlock("div",Oi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(A,ie)=>(e.openBlock(),e.createBlock(Ye,{key:ie,emphasis:"strong",behavior:"removable",removeButton:ll(ie),onRemove:pe=>ol(A,pe)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(de(A)),1)]),_:2},1032,["removeButton","onRemove"]))),128))])):e.createCommentVNode("",!0)],8,Pi),e.createVNode(ia,{width:n.dropdownWidth},{default:e.withCtx(()=>[I.value?(e.openBlock(),e.createElementBlock("div",qi,[e.createVNode(He,{type:"search",ref_key:"searchInputRef",ref:Ae,name:a.value,form:a.value,showLabel:!1,label:n.searchLabel??e.unref(ae),placeholder:n.searchPlaceholder??n.searchLabel,ariaDescribedBy:F.value||n.showLoading?S.value:void 0,onInput:A=>cl(A)},null,8,["name","form","label","placeholder","ariaDescribedBy","onInput"])])):e.createCommentVNode("",!0),F.value||n.showLoading?(e.openBlock(),e.createBlock(P,{key:1,id:S.value,icon:F.value?void 0:"circular_arrows",semantic:F.value?"warning":"informational"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((F.value?n.noResultsText:n.loadingText)??e.unref(Me)),1)]),_:1},8,["id","icon","semantic"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[g.value?(e.openBlock(),e.createElementBlock("div",Wi,[e.createElementVNode("div",Xi,[e.createElementVNode("label",null,[e.createElementVNode("input",{type:"checkbox",value:"select-all",ref_key:"selectAllRef",ref:ye,form:a.value,checked:te.value,onChange:y[1]||(y[1]=async A=>rl())},null,40,Hi),e.createTextVNode(e.toDisplayString(tl()),1)])])])):e.createCommentVNode("",!0),e.createVNode(aa,{multiple:e.unref(T)(n.multiple,"multiple"),label:n.ariaListLabel??n.label??e.unref(ae)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(A,ie)=>(e.openBlock(),e.createBlock(ta,{key:ie,type:n.multiple?"checkbox":"radio",showDivider:A.showDivider,icon:A.icon,isGroupTitle:A.isGroupTitle,groupTitle:de(A),name:a.value,checked:il(A.value),disabled:A.disabled,value:A.value,onChange:pe=>da(A.value)},{default:e.withCtx(()=>[A.isGroupTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(de(A)),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(ee,{variant:"ghost",width:"full",icon:"cross",size:"small",name:a.value,form:a.value,onClick:A=>ue("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.mobileCloseButtonText??e.unref(he)),1)]),_:1},8,["name","form","onClick"])])]),_:1},8,["width"])],64)):e.createCommentVNode("",!0)],40,Ui),(n.showClearSelection??!0)&&((ne=w.value)!=null&&ne.length)?(e.openBlock(),e.createBlock(ee,{key:0,icon:"cross",variant:"ghost",size:"small",noText:!0,name:a.value,form:a.value,onClick:A=>fl()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1),e.createVNode(Je,{placement:"top"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1)]),_:1})]),_:1},8,["name","form","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("span",{"aria-hidden":e.unref(V)(!0),id:B.value},e.toDisplayString(n.placeholder??n.label),9,ji),e.unref(R)(n.message,n.showMessage)?(e.openBlock(),e.createBlock(P,{key:1,size:"small",icon:n.messageIcon,id:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),la()?(e.openBlock(),e.createBlock(P,{key:2,size:"small",semantic:"successful",id:u.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.validMessage||e.unref(K)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(P,{size:"small",semantic:"critical",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Yi,e.toDisplayString(_.value),1)],10,$i)}}}),Ji=["id"],Qi=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,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("summary",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-form-field",t.class))},[e.renderSlot(a.$slots,"default")],10,Ji))}});c.AlignmentList=Ni,c.AutoCompleteList=Si,c.COLOR=_e,c.COLORS=ba,c.COLORS_SIMPLE=ya,c.COLOR_CONST=ha,c.COLOR_SIMPLE=Le,c.DBAccordion=Jt,c.DBAccordionItem=Ke,c.DBBadge=Na,c.DBBrand=La,c.DBButton=ee,c.DBCard=Da,c.DBCheckbox=Ma,c.DBCustomSelect=Ki,c.DBCustomSelectDropdown=ia,c.DBCustomSelectFormField=Qi,c.DBCustomSelectList=aa,c.DBCustomSelectListItem=ta,c.DBDivider=Ra,c.DBDrawer=We,c.DBHeader=it,c.DBIcon=ot,c.DBInfotext=P,c.DBInput=He,c.DBLink=mt,c.DBNavigation=Zt,c.DBNavigationItem=Ht,c.DBNotification=wa,c.DBPage=ht,c.DBPopover=ai,c.DBRadio=yt,c.DBSection=kt,c.DBSelect=_t,c.DBStack=Li,c.DBSwitch=At,c.DBTabItem=je,c.DBTabList=Qe,c.DBTabPanel=Ze,c.DBTabs=di,c.DBTag=Ye,c.DBTextarea=Gt,c.DBTooltip=Je,c.DEFAULT_BACK=ze,c.DEFAULT_BURGER_MENU=Ue,c.DEFAULT_CLOSE_BUTTON=he,c.DEFAULT_DATALIST_ID_SUFFIX=Ce,c.DEFAULT_ICON=Pe,c.DEFAULT_ID=le,c.DEFAULT_INVALID_MESSAGE=G,c.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=Y,c.DEFAULT_LABEL=ae,c.DEFAULT_LABEL_ID_SUFFIX=Ee,c.DEFAULT_MESSAGE=Me,c.DEFAULT_MESSAGE_ID_SUFFIX=H,c.DEFAULT_PLACEHOLDER=Se,c.DEFAULT_PLACEHOLDER_ID_SUFFIX=fe,c.DEFAULT_REMOVE=Ne,c.DEFAULT_ROWS=Ge,c.DEFAULT_SELECTED=Re,c.DEFAULT_SELECT_ID_SUFFIX=we,c.DEFAULT_VALID_MESSAGE=K,c.DEFAULT_VALID_MESSAGE_ID_SUFFIX=j,c.DEFAULT_VIEWPORT=Oe,c.DENSITIES=ga,c.DENSITY=Te,c.DENSITY_CONST=pa,c.DESKTOP_VIEWPORT=qe,c.EmphasisList=vi,c.GapSpacingList=ui,c.LabelVariantList=Bi,c.LinkCurrentList=Ei,c.LinkReferrerPolicyList=Ci,c.LinkTargetList=wi,c.MarginList=ci,c.MaxWidthList=hi,c.NavigationItemSafeTriangle=Xe,c.OrientationList=mi,c.PlacementHorizontalList=xe,c.PlacementList=fi,c.PlacementVerticalList=ea,c.PopoverDelayList=gi,c.PopoverWidthList=bi,c.SEMANTIC=De,c.SEMANTICS=va,c.SemanticList=si,c.SizeList=yi,c.SpacingList=ri,c.TESTING_VIEWPORTS=ka,c.ValidationList=ki,c.WidthList=pi,c.addAttributeToChildren=ke,c.cls=L,c.delay=U,c.getBoolean=T,c.getBooleanAsString=V,c.getHideProp=z,c.getNumber=Z,c.getSearchInput=Be,c.handleDataOutside=ce,c.hasVoiceOver=X,c.isArrayOfStrings=$e,c.isEventTargetNavigationItem=Ie,c.isInView=Fe,c.stringPropVisible=R,c.uuid=$,c.visibleInVX=ca,c.visibleInVY=fa,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|