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