@db-ux/v-core-components 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/db-ux.umd.js CHANGED
@@ -1 +1 @@
1
- (function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s["DB-UX"]={},s.Vue))})(this,function(s,e){"use strict";var On=Object.defineProperty;var Gn=(s,e,L)=>e in s?On(s,e,{enumerable:!0,configurable:!0,writable:!0,value:L}):s[e]=L;var U=(s,e,L)=>Gn(s,typeof e!="symbol"?e+"":e,L);const L=()=>{var d,t;if(typeof window<"u"){if((d=window.crypto)!=null&&d.randomUUID)return window.crypto.randomUUID();if((t=window.crypto)!=null&&t.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},H=(d,t)=>{const l=d.children;Object.values(l).forEach(a=>{a.setAttribute(t.key,t.value),a.children.length>0&&H(a,t)})},E=(...d)=>{let t="";for(const l of d)if(l)if(typeof l=="string")t+=`${l} `;else for(const a in l)l[a]&&(t+=`${a} `);return t.trim()},be=d=>{const{left:t,right:l}=d.getBoundingClientRect(),{innerWidth:a}=window;return t>=0&&l<=a},ye=d=>{const{top:t,bottom:l}=d.getBoundingClientRect(),{innerHeight:a}=window;return t>=0&&l<=a},ne=d=>{var B;const{top:t,bottom:l,left:a,right:n}=d.getBoundingClientRect(),{innerHeight:m,innerWidth:o}=window;let p=t<0,i=l>m,h=a<0,r=n>o;const y=d.hasAttribute("data-outside-vy"),k=d.hasAttribute("data-outside-vx"),C=(B=d==null?void 0:d.parentElement)==null?void 0:B.getBoundingClientRect();return C&&(y&&(d.getAttribute("data-outside-vy")==="top"?p=C.top-(l-C.bottom)<0:i=C.bottom+(C.top-t)>m),k&&(d.getAttribute("data-outside-vx")==="left"?h=C.left-(n-C.right)<0:r=C.right+(C.left-a)>o)),{outTop:p,outBottom:i,outLeft:h,outRight:r}},X=d=>{const{outTop:t,outBottom:l,outLeft:a,outRight:n}=ne(d);let m={};return t||l?(m={vy:t?"top":"bottom"},d.setAttribute("data-outside-vy",m.vy)):d.removeAttribute("data-outside-vy"),a||n?(m={...m,vx:n?"right":"left"},d.setAttribute("data-outside-vx",m.vx)):d.removeAttribute("data-outside-vx"),m},te=d=>Array.isArray(d)&&d.every(t=>typeof t=="string"),Be=["Mac","iPhone","iPad","iPod"],A=()=>typeof window<"u"&&Be.some(d=>window.navigator.userAgent.includes(d)),F=(d,t)=>new Promise(()=>setTimeout(d,t)),_=d=>d&&String(d),I=d=>{if(d!=null)return _(!d)},T=(d,t)=>t===void 0?!!d:t&&d,ke=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","value","aria-describedby","aria-expanded","aria-pressed"],P=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},state:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-button",t.class)),type:n.type||"button",disabled:n.disabled,"aria-label":n.label,"data-icon":n.icon,"data-hide-icon":e.unref(I)(n.showIcon),"data-size":n.size,"data-state":n.state,"data-width":n.width,"data-variant":n.variant,"data-no-text":e.unref(_)(n.noText),name:n.name,value:n.value,"aria-describedby":n.describedbyid,"aria-expanded":n.ariaexpanded,"aria-pressed":n.ariapressed,onClick:m[0]||(m[0]=async o=>a(o))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,ke))}}),R="OVERWRITE_DEFAULT_ID",q="LABEL SHOULD BE SET",Y=" ",V="-message",$="-valid-message",M="-invalid-message",j="-placeholder",K="-datalist",v="TODO: Add a validMessage",z="TODO: Add an invalidMessage",de="Back",ie="BurgerMenu",le="brand",oe=4,J="Close Button",Ee="density",Ne="color";var Q=(d=>(d.FUNCTIONAL="functional",d.REGULAR="regular",d.EXPRESSIVE="expressive",d))(Q||{});const Se=Object.entries(Q).map(([,d])=>d);var Z=(d=>(d.PRIMARY="primary",d))(Z||{}),x=(d=>(d.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",d.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",d.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",d.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",d.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",d.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",d.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",d.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",d.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",d.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",d.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",d.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",d.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",d.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",d.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",d.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",d.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",d.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",d.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",d.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",d.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",d.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",d.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",d.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",d.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",d.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",d.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",d.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",d.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",d.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full",d))(x||{});const we=Object.entries(x).map(([,d])=>d),Ce=Object.entries(Z).map(([,d])=>d);var ee=(d=>(d.CRITICAL="critical",d.INFORMATIONAL="informational",d.WARNING="warning",d.SUCCESSFUL="successful",d))(ee||{});const Le=Object.entries(ee).map(([,d])=>d),se={width:390,height:884},re={width:1920,height:1280},Ie=[{name:"desktop",...re},{name:"tablet",width:768,height:1024},{name:"mobile",...se}],_e=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Te={key:0},De={key:1},Fe=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:Boolean,default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:Boolean,default:void 0},timestamp:{default:void 0},showTimestamp:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:Boolean},width:{},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClose&&t.onClose()}return(n,m)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-notification",t.class)),"aria-live":n.ariaLive,"data-semantic":n.semantic,"data-variant":n.variant,"data-icon":n.icon,"data-hide-icon":e.unref(I)(n.showIcon),"data-link-variant":n.linkVariant},[e.renderSlot(n.$slots,"image"),e.unref(T)(n.headline,n.showHeadline)?(e.openBlock(),e.createElementBlock("header",Te,e.toDisplayString(n.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})]),e.unref(T)(n.timestamp,n.showTimestamp)?(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(n.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"link"),n.closeable?(e.openBlock(),e.createBlock(P,{key:2,icon:"cross",variant:"ghost",size:"small",id:n.closeButtonId,noText:!0,onClick:o=>a()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,_e))}}),Ae=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Ve=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var n;if(a.value&&l.value&&(n=t.placement)!=null&&n.startsWith("corner")){let m=a.value.parentElement;m&&m.localName.includes("badge")&&(m=m.parentElement),m&&m.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(n,m)=>{var o;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:n.id,class:e.normalizeClass(e.unref(E)("db-badge",t.class)),"data-semantic":n.semantic,"data-size":n.size,"data-emphasis":n.emphasis,"data-placement":n.placement,"data-label":((o=n.placement)==null?void 0:o.startsWith("corner"))&&(n.label??e.unref(q))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,Ae)}}}),$e=["data-icon","data-hide-icon","id"],Me=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(le),"data-hide-icon":e.unref(I)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(E)("db-brand",t.class))},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,$e))}}),ve=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],ze=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-card",t.class)),"data-behavior":n.behavior,"data-elevation-level":n.elevationLevel,"data-spacing":n.spacing,role:n.behavior==="interactive"?"button":void 0,tabIndex:n.behavior==="interactive"?0:void 0,onClick:m[0]||(m[0]=async o=>a(o))},[e.renderSlot(n.$slots,"default")],10,ve))}}),O=(d,t,l="value")=>{d(`update:${l}`,t.target[l])},Re=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],D=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-infotext",t.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(I)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Re))}}),Ue=["data-size","data-hide-label"],Pe=["for"],Oe=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],Ge={"data-visually-hidden":"true",role:"status"},qe=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{n.value=!0;const c=a.id??`checkbox-${L()}`;m.value=c,o.value=c+V,p.value=c+$,i.value=c+M}),e.watch(()=>[m.value],()=>{if(m.value){const c=m.value+V;o.value=c,p.value=m.value+$,i.value=m.value+M,T(a.message,a.showMessage)&&(h.value=c)}},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,y.value,a.indeterminate],()=>{y.value&&a.indeterminate!==void 0&&(y.value.indeterminate=a.indeterminate)},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,y.value,a.checked],()=>{n.value&&y.value&&(a.checked!=null&&(y.value.checked=a.checked),n.value=!1)},{immediate:!0,flush:"post"});function k(c){var f,b,u;a.onChange&&a.onChange(c),a.change&&a.change(c),O(l,c,"checked"),!((f=y.value)!=null&&f.validity.valid)||a.validation==="invalid"?(h.value=i.value,A()&&(r.value=a.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??z,F(()=>r.value="",1e3))):a.validation==="valid"||(u=y.value)!=null&&u.validity.valid&&a.required?(h.value=p.value,A()&&(r.value=a.validMessage??v,F(()=>r.value="",1e3))):T(a.message,a.showMessage)?h.value=o.value:h.value=""}function C(c){a.onBlur&&a.onBlur(c),a.blur&&a.blur(c)}function B(c){a.onFocus&&a.onFocus(c),a.focus&&a.focus(c)}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-checkbox",a.class)),"data-size":c.size,"data-hide-label":e.unref(I)(c.showLabel)},[e.createElementVNode("label",{for:m.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":c.validation==="invalid","data-custom-validity":c.validation,ref_key:"_ref",ref:y,id:m.value,name:c.name,checked:c.checked,disabled:c.disabled,value:c.value,required:c.required,onChange:f[0]||(f[0]=async b=>k(b)),onBlur:f[1]||(f[1]=async b=>C(b)),onFocus:f[2]||(f[2]=async b=>B(b)),"aria-describedby":h.value},null,40,Oe),c.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.label),1)],64)):e.renderSlot(c.$slots,"default",{key:1})],8,Pe),e.unref(T)(c.message,c.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:c.messageIcon,id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:i.value},{default:e.withCtx(()=>{var b;return[e.createTextVNode(e.toDisplayString(c.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ge,e.toDisplayString(r.value),1)],10,Ue))}}),We=["id","data-margin","data-variant","data-emphasis","data-width"],Xe=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(E)("db-divider",t.class))},null,10,We))}}),He=["id","data-backdrop","data-variant"],Ye=["data-spacing","data-width","data-direction","data-rounded"],je={class:"db-drawer-header"},Ke={class:"db-drawer-header-text"},Je={class:"db-drawer-content"},fe=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:Boolean,default:void 0},rounded:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(d){const t=d,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{m()}),e.watch(()=>[t.open],()=>{m()},{immediate:!0,flush:"post"});function n(o){o.key==="Escape"&&o.preventDefault(),(o==="close"||o.key==="Escape"||o.target.nodeName==="DIALOG"&&o.type==="click"&&t.backdrop!=="none")&&t.onClose&&t.onClose(o)}function m(){l.value&&(t.open&&!l.value.open&&(a.value&&(a.value.hidden=!1),t.backdrop==="none"||t.variant==="inside"?l.value.show():l.value.showModal()),!t.open&&l.value.open&&(a.value&&(a.value.hidden=!0),F(()=>{var o;a.value&&(a.value.hidden=!1),(o=l.value)==null||o.close()},401)))}return(o,p)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:o.id,ref_key:"_ref",ref:l,onClick:p[0]||(p[0]=async i=>{n(i)}),onKeydown:p[1]||(p[1]=async i=>n(i)),"data-backdrop":o.backdrop,"data-variant":o.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(E)("db-drawer-container",t.class)),"data-spacing":o.spacing,"data-width":o.width,"data-direction":o.direction,"data-rounded":o.rounded},[e.createElementVNode("header",je,[e.createElementVNode("div",Ke,[e.renderSlot(o.$slots,"drawer-header")]),e.createVNode(P,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:o.closeButtonId,noText:!0,onClick:i=>n("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Je,[e.renderSlot(o.$slots,"default")])],10,Ye)],40,He))}}),ae=d=>{var l,a;const{target:t}=d;return!!(!((l=t==null?void 0:t.classList)!=null&&l.contains("db-navigation-item-expand-button"))&&((a=t==null?void 0:t.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class ue{constructor(t,l){U(this,"element");U(this,"subNavigation");U(this,"parentSubNavigation",null);U(this,"triangleData");U(this,"initialized",!1);U(this,"mouseX",0);U(this,"mouseY",0);var a;this.element=t,this.subNavigation=l,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var l,a;const t=((l=this.parentSubNavigation)==null?void 0:l.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${t}px`),this.initialized=!0}enableFollow(){var n;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const t=X(this.subNavigation),l=this.element.getBoundingClientRect(),a=((n=this.parentSubNavigation)==null?void 0:n.getBoundingClientRect().width)??0;this.triangleData={itemRect:l,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-l.width)/2,outsideVX:t.vx,outsideVY:t.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?this.triangleData.outsideVX==="right"?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,this.triangleData.itemRect.width*.75):0}getTriangleTipY(){if(!this.triangleData)return 0;const t=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?t+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):t}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const t=this.triangleData.outsideVX==="right";return!!(t&&this.mouseX<-1*this.triangleData.padding||!t&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(t){if(!this.triangleData)return;if(t==="fill-gap"){const o=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,p=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${p} ${o}`,lt:`${p} 0`,rt:"100% 0",rb:`100% ${o}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),n=`${l}px ${a}px`,m=`${l}px ${a}px`;return{lb:n,lt:m,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(t){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=t.clientX-this.triangleData.itemRect.left,this.mouseY=t.clientY-this.triangleData.itemRect.top;const l=this.hasMouseEnteredSubNavigation(),a=this.getTriangleCoordinates(l?"fill-gap":"safe-triangle");a&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`),l&&(this.triangleData=void 0))}}const Qe=["id","data-width","data-on-forcing-mobile"],Ze={class:"db-header-drawer-navigation"},xe={class:"db-header-meta-navigation"},ea={class:"db-header-secondary-action"},aa={class:"db-header-meta-navigation"},na={class:"db-header-navigation-bar"},ta={class:"db-header-brand-container"},da={class:"db-header-navigation-container"},ia={class:"db-header-navigation"},la={class:"db-header-primary-action"},oa={class:"db-header-action-container"},sa={class:"db-header-burger-menu-container"},ra={class:"db-header-secondary-action"},fa=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:Boolean,default:void 0},forceMobile:{type:Boolean,default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(!1),m=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=t.id||"header-"+L()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&t.forceMobile){const i=document.getElementById(l.value);i&&H(i,{key:"data-force-mobile",value:"true"}),n.value=!0}},{immediate:!0,flush:"post"});function o(){t.onToggle&&t.onToggle(!t.drawerOpen)}function p(i){ae(i)&&o()}return(i,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:m,class:e.normalizeClass(e.unref(E)("db-header",t.class)),id:l.value,"data-width":i.width,"data-on-forcing-mobile":i.forceMobile&&!n.value},[e.createVNode(fe,{class:"db-header-drawer",spacing:"small",rounded:!0,open:i.drawerOpen,onClose:()=>o()},{default:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:"db-header-navigation",onClick:h[0]||(h[0]=async r=>p(r))},[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",xe,[e.renderSlot(i.$slots,"meta-navigation")])]),e.createElementVNode("div",ea,[e.renderSlot(i.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",aa,[e.renderSlot(i.$slots,"meta-navigation")]),e.createElementVNode("div",na,[e.createElementVNode("div",ta,[e.renderSlot(i.$slots,"brand")]),e.createElementVNode("div",da,[e.createElementVNode("div",ia,[e.renderSlot(i.$slots,"default")]),e.createElementVNode("div",la,[e.renderSlot(i.$slots,"primary-action")])]),e.createElementVNode("div",oa,[e.createElementVNode("div",sa,[e.createVNode(P,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:()=>o()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.burgerMenuLabel??e.unref(ie)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",ra,[e.renderSlot(i.$slots,"secondary-action")])])])],10,Qe))}}),ua=["id","data-icon","data-icon-weight","data-icon-variant"],ca=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-icon",t.class)),"data-icon":a.icon,"data-icon-weight":a.weight,"data-icon-variant":a.variant},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,ua))}}),ma=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],pa=["for"],ha=["aria-invalid","data-custom-validity","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],ga=["id"],ba=["value"],ya={"data-visually-hidden":"true",role:"status"},Ba=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean,default:void 0},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(""),k=e.ref(null);e.onMounted(()=>{const u=a.id??`input-${L()}`;n.value=u,m.value=u+V,o.value=u+$,p.value=u+M,i.value=u+K}),e.watch(()=>[n.value],()=>{if(n.value){const u=n.value+V;m.value=u,o.value=n.value+$,p.value=n.value+M,i.value=a.dataListId??n.value+K,T(a.message,a.showMessage)&&(h.value=u)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function C(u){r.value=u.target.value,a.onInput&&a.onInput(u),a.input&&a.input(u)}function B(u){var S,g,w;a.onChange&&a.onChange(u),a.change&&a.change(u),O(l,u),!((S=k.value)!=null&&S.validity.valid)||a.validation==="invalid"?(h.value=p.value,A()&&(y.value=a.invalidMessage??((g=k.value)==null?void 0:g.validationMessage)??z,F(()=>y.value="",1e3))):a.validation==="valid"||(w=k.value)!=null&&w.validity.valid&&(a.required||a.minLength||a.maxLength||a.pattern)?(h.value=o.value,A()&&(y.value=a.validMessage??v,F(()=>y.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=""}function c(u){a.onBlur&&a.onBlur(u),a.blur&&a.blur(u)}function f(u){a.onFocus&&a.onFocus(u),a.focus&&a.focus(u)}function b(u){return Array.from((te(u)?u.map(S=>({value:S,label:void 0})):u)||[])}return(u,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-input",a.class)),"data-variant":u.variant,"data-hide-label":e.unref(I)(u.showLabel),"data-hide-icon":e.unref(I)(u.showIcon),"data-icon":u.icon,"data-icon-after":u.iconAfter,"data-hide-icon-after":e.unref(I)(u.showIcon)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(u.label??e.unref(q)),9,pa),e.createElementVNode("input",{"aria-invalid":u.validation==="invalid","data-custom-validity":u.validation,ref_key:"_ref",ref:k,id:n.value,name:u.name,type:u.type||"text",placeholder:u.placeholder??e.unref(Y),disabled:u.disabled,required:u.required,step:u.step,value:u.value??r.value,maxLength:u.maxLength,minLength:u.minLength,max:u.max,min:u.min,readOnly:u.readOnly,form:u.form,pattern:u.pattern,size:u.size,autoComplete:u.autocomplete,autoFocus:u.autofocus,onInput:S[0]||(S[0]=async g=>C(g)),onChange:S[1]||(S[1]=async g=>B(g)),onBlur:S[2]||(S[2]=async g=>c(g)),onFocus:S[3]||(S[3]=async g=>f(g)),list:u.dataList&&i.value,"aria-describedby":h.value},null,40,ha),u.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:i.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b(u.dataList),g=>(e.openBlock(),e.createElementBlock("option",{key:i.value+"-option-"+g.value,value:g.value},e.toDisplayString(g.label),9,ba))),128))],8,ga)):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),e.unref(T)(u.message,u.showMessage)?(e.openBlock(),e.createBlock(D,{key:1,size:"small",icon:u.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var g;return[e.createTextVNode(e.toDisplayString(u.invalidMessage??((g=k.value)==null?void 0:g.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",ya,e.toDisplayString(y.value),1)],10,ma))}}),ka=["id","href","target","rel","role","hrefLang","aria-disabled","tabIndex","aria-selected","aria-label","aria-current","data-size","data-hide-icon-after","data-variant","data-content"],Ea=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(null);function a(n){t.onClick&&t.onClick(n)}return(n,m)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:n.id,class:e.normalizeClass(e.unref(E)("db-link",t.class)),href:n.href,target:n.target,rel:n.rel,role:n.role,hrefLang:n.hreflang,"aria-disabled":e.unref(_)(n.disabled),tabIndex:n.disabled?-1:0,"aria-selected":n.selected,"aria-label":n.label,"aria-current":n.current,"data-size":n.size,"data-hide-icon-after":e.unref(I)(n.showIcon??!0),"data-variant":n.variant,"data-content":n.content||"internal",onClick:m[0]||(m[0]=async o=>a(o))},[n.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.text),1)],64)):e.renderSlot(n.$slots,"default",{key:1})],10,ka))}}),Na=["id","data-variant","data-fade-in","data-fonts-loaded"],Sa={class:"db-main"},wa=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:Boolean,default:void 0},footer:{},header:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(t.documentOverflow==="hidden"||t.variant==="fixed"&&t.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{l.value=!t.fadeIn,document&&t.fadeIn?document.fonts.ready.then(()=>{l.value=!0}):l.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:n.id,class:e.normalizeClass(e.unref(E)("db-page",t.class)),"data-variant":n.variant,"data-fade-in":n.fadeIn,"data-fonts-loaded":e.unref(_)(l.value)},[e.renderSlot(n.$slots,"header"),e.createElementVNode("main",Sa,[e.renderSlot(n.$slots,"default")]),e.renderSlot(n.$slots,"footer")],10,Na))}}),Ca=["data-size","data-hide-label","for"],La=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],Ia=e.defineComponent({__name:"radio",props:{describedbyid:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(void 0),o=e.ref(null);e.onMounted(()=>{n.value=!0,m.value=a.id??`radio-${L()}`}),e.watch(()=>[n.value,o.value,a.checked],()=>{a.checked&&n.value&&o.value&&(o.value.checked=!0)},{immediate:!0,flush:"post"});function p(r){a.onChange&&a.onChange(r),a.change&&a.change(r),O(l,r)}function i(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-size":r.size,"data-hide-label":e.unref(I)(r.showLabel),class:e.normalizeClass(e.unref(E)("db-radio",a.class)),for:m.value},[e.createElementVNode("input",{type:"radio","aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,ref_key:"_ref",ref:o,id:m.value,name:r.name,checked:r.checked,disabled:r.disabled,"aria-describedby":r.describedbyid,value:r.value,required:r.required,onChange:y[0]||(y[0]=async k=>p(k)),onBlur:y[1]||(y[1]=async k=>i(k)),onFocus:y[2]||(y[2]=async k=>h(k))},null,40,La),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Ca))}}),_a=["id","data-spacing","data-width"],Ta=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"section-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(E)("db-section",t.class)),"data-spacing":n.spacing||"medium","data-width":n.width},[e.renderSlot(n.$slots,"default")],10,_a))}}),Da=["data-variant","data-hide-label","data-icon","data-hide-icon"],Fa=["for"],Aa=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","aria-describedby"],Va=["label"],$a=["value","selected","disabled"],Ma=["value","disabled","selected"],va=["id"],za={"data-visually-hidden":"true",role:"status"},Ra=e.defineComponent({__name:"select",props:{description:{},options:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(!1),k=e.ref(""),C=e.ref(null);e.onMounted(()=>{y.value=!0;const g=a.id??`select-${L()}`;n.value=g,m.value=g+V,o.value=g+$,p.value=g+M,i.value=g+j}),e.watch(()=>[n.value,y.value],()=>{if(n.value&&y.value){const g=n.value+V,w=n.value+j;m.value=g,o.value=n.value+$,p.value=n.value+M,i.value=w,T(a.message,a.showMessage)?h.value=g:h.value=w,y.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function B(g){a.onClick&&a.onClick(g)}function c(g){r.value=g.target.value,a.onInput&&a.onInput(g),a.input&&a.input(g)}function f(g){var w,N,G;a.onChange&&a.onChange(g),a.change&&a.change(g),O(l,g),!((w=C.value)!=null&&w.validity.valid)||a.validation==="invalid"?(h.value=p.value,A()&&(k.value=a.invalidMessage??((N=C.value)==null?void 0:N.validationMessage)??z,F(()=>k.value="",1e3))):a.validation==="valid"||(G=C.value)!=null&&G.validity.valid&&a.required?(h.value=o.value,A()&&(k.value=a.validMessage??v,F(()=>k.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=i.value}function b(g){a.onBlur&&a.onBlur(g),a.blur&&a.blur(g)}function u(g){a.onFocus&&a.onFocus(g),a.focus&&a.focus(g)}function S(g){return g.label??g.value.toString()}return(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-select",a.class)),"data-variant":g.variant,"data-hide-label":e.unref(I)(g.showLabel),"data-icon":g.icon,"data-hide-icon":e.unref(I)(g.showIcon)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(g.label??e.unref(q)),9,Fa),e.createElementVNode("select",{"aria-invalid":g.validation==="invalid","data-custom-validity":g.validation,ref_key:"_ref",ref:C,required:g.required,disabled:g.disabled,id:n.value,name:g.name,size:g.size,value:g.value??r.value,autocomplete:g.autocomplete,onInput:w[0]||(w[0]=async N=>c(N)),onClick:w[1]||(w[1]=async N=>B(N)),onChange:w[2]||(w[2]=async N=>f(N)),onBlur:w[3]||(w[3]=async N=>b(N)),onFocus:w[4]||(w[4]=async N=>u(N)),"aria-describedby":h.value},[w[5]||(w[5]=e.createElementVNode("option",{hidden:!0},null,-1)),g.options?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(g.options,(N,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[N.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:S(N)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,(W,qn)=>(e.openBlock(),e.createElementBlock("option",{key:W.value.toString(),value:W.value,selected:W.selected,disabled:W.disabled},e.toDisplayString(S(W)),9,$a))),128))],8,Va)):e.createCommentVNode("",!0),N.options?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("option",{key:1,value:N.value,disabled:N.disabled,selected:N.selected},e.toDisplayString(S(N)),9,Ma))],64))),128)):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default")],40,Aa),e.createElementVNode("span",{id:i.value},e.toDisplayString(g.placeholder??g.label),9,va),e.unref(T)(g.message,g.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:g.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var N;return[e.createTextVNode(e.toDisplayString(g.invalidMessage??((N=C.value)==null?void 0:N.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",za,e.toDisplayString(k.value),1)],10,Da))}}),Ua=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Pa=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],Oa=e.defineComponent({__name:"switch",props:{visualAid:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{n.value=a.id??`switch-${L()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(m.value=!!a.checked)},{immediate:!0,flush:"post"});function p(r){var y;a.onChange&&a.onChange(r),a.change&&a.change(r),m.value=(y=r.target)==null?void 0:y.checked,O(l,r,"checked")}function i(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(_)(r.visualAid),"data-size":r.size,"data-hide-label":e.unref(I)(r.showLabel),"data-emphasis":r.emphasis,for:n.value,class:e.normalizeClass(e.unref(E)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:n.value,"aria-checked":e.unref(_)(m.value),ref_key:"_ref",ref:o,checked:r.checked,value:r.value,disabled:r.disabled,"aria-describedby":r.describedbyid,"aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,name:r.name,required:r.required,"data-aid-icon":r.icon,"data-aid-icon-after":r.iconAfter,onChange:y[0]||(y[0]=async k=>p(k)),onBlur:y[1]||(y[1]=async k=>i(k)),onFocus:y[2]||(y[2]=async k=>h(k))},null,40,Pa),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Ua))}}),Ga=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],qa=["disabled","aria-selected","aria-controls","checked","id"],ce=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},noText:{type:Boolean,default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:Boolean,default:void 0},controls:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},showIcon:{type:Boolean,default:void 0}},emits:["update:checked"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(!1),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{n.value=!0}),e.watch(()=>[o.value,n.value],()=>{a.active&&n.value&&o.value&&(o.value.click(),n.value=!1)},{immediate:!0,flush:"post"});function p(i){var h;a.onChange&&a.onChange(i),a.change&&a.change(i),m.value=(h=i.target)==null?void 0:h.checked,O(l,i,"checked")}return(i,h)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(E)("db-tab-item",a.class))},[e.createElementVNode("label",{for:i.id,"data-icon":i.icon,"data-icon-after":i.iconAfter,"data-hide-icon":e.unref(I)(i.showIcon),"data-hide-icon-after":e.unref(I)(i.showIcon),"data-no-text":i.noText},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:i.disabled,"aria-selected":m.value,"aria-controls":i.controls,checked:i.checked,ref_key:"_ref",ref:o,id:i.id,onInput:h[0]||(h[0]=async r=>p(r))},null,40,qa),i.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")],8,Ga)],2))}}),Wa=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],Xa=["title"],Ha=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},onRemove:{type:Function,default:void 0},removeButton:{default:void 0},showCheckState:{type:Boolean,default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},semantic:{default:void 0},overflow:{type:Boolean,default:void 0},emphasis:{default:void 0},showIcon:{type:Boolean,default:void 0},content:{}},setup(d){const t=d,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,t.disabled,a.value],()=>{var o,p;if(l.value&&a.value&&t.disabled!==void 0){const i=(o=a.value)==null?void 0:o.querySelector("button:not(.db-tab-remove-button)"),h=(p=a.value)==null?void 0:p.querySelector("input");for(const r of[i,h])r&&(r.disabled=t.disabled)}},{immediate:!0,flush:"post"});function n(){t.onRemove&&t.onRemove()}function m(){return t.removeButton?t.removeButton:"Remove tag"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:o.id,class:e.normalizeClass(e.unref(E)("db-tag",t.class)),"data-disabled":e.unref(_)(o.disabled),"data-semantic":o.semantic,"data-emphasis":o.emphasis,"data-icon":o.icon,"data-show-check-state":e.unref(_)(o.showCheckState??!0),"data-hide-icon":e.unref(I)(o.showIcon),"data-no-text":e.unref(_)(o.noText),"data-overflow":e.unref(_)(o.overflow)},[e.renderSlot(o.$slots,"content"),e.renderSlot(o.$slots,"default"),o.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.text),1)],64)):e.createCommentVNode("",!0),o.behavior==="removable"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",onClick:p[0]||(p[0]=async i=>n()),title:m()},e.toDisplayString(m()),9,Xa)):e.createCommentVNode("",!0)],10,Wa))}}),Ya=["data-variant","data-hide-label"],ja=["for"],Ka=["aria-invalid","data-custom-validity","id","data-resize","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Ja={"data-visually-hidden":"true",role:"status"},Qa=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0}},emits:["update:value"],setup(d,{emit:t}){const l=t,a=d,n=e.ref(void 0),m=e.ref(void 0),o=e.ref(void 0),p=e.ref(void 0),i=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{const f=a.id??`textarea-${L()}`;n.value=f,m.value=f+V,o.value=f+$,p.value=f+M}),e.watch(()=>[n.value],()=>{if(n.value){const f=n.value+V;m.value=f,o.value=n.value+$,p.value=n.value+M,T(a.message,a.showMessage)&&(i.value=f)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{h.value=a.value},{immediate:!0,flush:"post"});function k(f){h.value=f.target.value,a.onInput&&a.onInput(f),a.input&&a.input(f)}function C(f){var b,u,S;a.onChange&&a.onChange(f),a.change&&a.change(f),O(l,f),!((b=y.value)!=null&&b.validity.valid)||a.validation==="invalid"?(i.value=p.value,A()&&(r.value=a.invalidMessage??((u=y.value)==null?void 0:u.validationMessage)??z,F(()=>r.value="",1e3))):a.validation==="valid"||(S=y.value)!=null&&S.validity.valid&&(a.required||a.minLength||a.maxLength)?(i.value=o.value,A()&&(r.value=a.validMessage??v,F(()=>r.value="",1e3))):T(a.message,a.showMessage)?i.value=m.value:i.value=""}function B(f){a.onBlur&&a.onBlur(f),a.blur&&a.blur(f)}function c(f){a.onFocus&&a.onFocus(f),a.focus&&a.focus(f)}return(f,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(E)("db-textarea",a.class)),"data-variant":f.variant,"data-hide-label":e.unref(I)(f.showLabel)},[e.createElementVNode("label",{for:n.value},e.toDisplayString(f.label??e.unref(q)),9,ja),e.createElementVNode("textarea",{"aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,ref_key:"_ref",ref:y,id:n.value,"data-resize":f.resize,disabled:f.disabled,required:f.required,readOnly:f.readOnly,form:f.form,maxLength:f.maxLength,minLength:f.minLength,name:f.name,wrap:f.wrap,spellcheck:f.spellCheck,autocomplete:f.autocomplete,onInput:b[0]||(b[0]=async u=>k(u)),onChange:b[1]||(b[1]=async u=>C(u)),onBlur:b[2]||(b[2]=async u=>B(u)),onFocus:b[3]||(b[3]=async u=>c(u)),value:f.value??h.value,"aria-describedby":i.value,placeholder:f.placeholder??e.unref(Y),rows:f.rows??e.unref(oe),cols:f.cols},null,40,Ka),e.unref(T)(f.message,f.showMessage)?(e.openBlock(),e.createBlock(D,{key:0,size:"small",icon:f.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(D,{size:"small",semantic:"successful",id:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.validMessage??e.unref(v)),1)]),_:1},8,["id"]),e.createVNode(D,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var u;return[e.createTextVNode(e.toDisplayString(f.invalidMessage??((u=y.value)==null?void 0:u.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ja,e.toDisplayString(r.value),1)],10,Ya))}}),Za=["id","data-width","data-icon","data-hide-icon","data-active","aria-disabled"],xa=["aria-haspopup","aria-expanded","disabled"],en=["data-auto-close","id"],an={key:0,class:"db-mobile-navigation-back"},nn=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},subNavigation:{},subNavigationExpanded:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(!1),n=e.ref(!0),m=e.ref(!1),o=e.ref(!1),p=e.ref("sub-navigation-"+L()),i=e.ref(void 0),h=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.subNavigationExpanded],()=>{t.subNavigationExpanded!==void 0&&(m.value=!!t.subNavigationExpanded)},{immediate:!0,flush:"post"}),e.watch(()=>[l.value],()=>{C()},{immediate:!0,flush:"post"});function r(B){ae(B)&&(o.value=!0,F(()=>{o.value=!1},300))}function y(B){t.onClick&&t.onClick(B),a.value&&(m.value=!0)}function k(B){B.stopPropagation(),m.value=!1}function C(){var B;if(l.value&&document&&p.value){const c=document==null?void 0:document.getElementById(p.value);c&&(((B=c.children)==null?void 0:B.length)>0?(a.value=!0,i.value||(i.value=new ue(h.value,c))):n.value=!1)}}return(B,c)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:h,id:B.id,onMouseover:c[2]||(c[2]=async f=>{var b;return(b=i.value)==null?void 0:b.enableFollow()}),onMouseleave:c[3]||(c[3]=async f=>{var b;return(b=i.value)==null?void 0:b.disableFollow()}),onMousemove:c[4]||(c[4]=async f=>{var b;return(b=i.value)==null?void 0:b.followByMouseEvent(f)}),class:e.normalizeClass(e.unref(E)("db-navigation-item",t.class)),"data-width":B.width,"data-icon":B.icon,"data-hide-icon":e.unref(I)(B.showIcon),"data-active":B.active,"aria-disabled":e.unref(_)(B.disabled)},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(B.text),1)],64)):e.renderSlot(B.$slots,"default",{key:1})],64)),n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":m.value,disabled:B.disabled,onClick:c[0]||(c[0]=async f=>y(f))},[B.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(B.text),1)],64)):e.renderSlot(B.$slots,"default",{key:1})],8,xa),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":o.value,id:p.value,onClick:c[1]||(c[1]=async f=>r(f))},[a.value?(e.openBlock(),e.createElementBlock("div",an,[e.createVNode(P,{icon:"arrow_left",variant:"ghost",id:B.backButtonId,onClick:f=>k(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.backButtonText??e.unref(de)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"sub-navigation")],8,en)],64)):e.createCommentVNode("",!0)],42,Za))}}),tn=["id"],dn=["aria-disabled","open"],me=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-item-"+L(),t.defaultOpen&&(a.value=t.defaultOpen)});function m(o){o==null||o.preventDefault();const p=!a.value;t.onToggle&&t.onToggle(p),a.value=p}return(o,p)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(E)("db-accordion-item",t.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(_)(o.disabled),ref_key:"_ref",ref:n,open:a.value},[e.createElementVNode("summary",{onClick:p[0]||(p[0]=async i=>m(i))},[o.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.headlinePlain),1)],64)):e.createCommentVNode("",!0),o.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(o.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[o.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.text),1)],64)):e.renderSlot(o.$slots,"default",{key:1})])],8,dn)],10,tn))}}),ln=["id","data-variant"],on=e.defineComponent({__name:"accordion",props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(R),a=e.ref(""),n=e.ref(!1),m=e.ref(!1),o=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-"+L(),n.value=!0,m.value=!0}),e.watch(()=>[n.value,t.name,t.behavior,l.value],()=>{n.value&&(t.behavior==="single"?t.name?a.value!==t.name&&(a.value=t.name):a.value!==l.value&&l.value&&(a.value=l.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[o.value,a.value],()=>{if(o.value){const i=o.value.getElementsByTagName("details");if(i)for(const h of Array.from(i))a.value===""?h.removeAttribute("name"):h.name=a.value}},{immediate:!0,flush:"post"}),e.watch(()=>[o.value,m.value,t.initOpenIndex],()=>{var i;if(o.value&&m.value){if(t.initOpenIndex&&((i=t.initOpenIndex)==null?void 0:i.length)>0){const h=o.value.getElementsByTagName("details");if(h){const r=t.behavior==="single"&&t.initOpenIndex.length>1?[t.initOpenIndex[0]]:t.initOpenIndex;Array.from(h).forEach((y,k)=>{r.includes(k)&&(y.open=!0)})}}m.value=!1}},{immediate:!0,flush:"post"});function p(i){try{return typeof i=="string"?JSON.parse(i):i}catch(h){console.error(h)}return[]}return(i,h)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:o,id:l.value,class:e.normalizeClass(e.unref(E)("db-accordion",t.class)),"data-variant":i.variant},[i.items?e.createCommentVNode("",!0):e.renderSlot(i.$slots,"default",{key:0}),i.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p(i.items),(r,y)=>(e.openBlock(),e.createBlock(me,{key:`accordion-item-${y}`,headlinePlain:r.headlinePlain,disabled:r.disabled,text:r.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,ln))}}),sn=["id","aria-labelledby"],rn=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"navigation-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":n.labelledBy,class:e.normalizeClass(e.unref(E)("db-navigation",t.class))},[e.createElementVNode("menu",null,[e.renderSlot(n.$slots,"default")])],10,sn))}}),fn=["id"],un=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],cn=e.defineComponent({__name:"popover",props:{open:{type:Boolean,default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},placement:{default:void 0},gap:{type:Boolean,default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(!1),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[n.value,l.value],()=>{if(n.value&&l.value){const i=p();i&&(i.ariaHasPopup="true"),l.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[n.value,a.value],()=>{if(n.value){const i=p();i&&(i.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function m(){if(a.value=!0,!n.value)return;const i=n.value.querySelector("article");i&&X(i)}function o(i){const h=i.target;(!h.parentNode||h.parentNode.querySelector(":focus")!==h&&h.parentNode.querySelector(":focus-within")!==h&&h.parentNode.querySelector(":hover")!==h)&&(a.value=!1)}function p(){var i;if(n.value){const h=Array.from(n.value.children);if(h.length>=2){const r=h[0];return r.tagName.includes("-")?((i=r.children)==null?void 0:i.length)>0?r.children[0]:null:r}}return null}return(i,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:n,id:i.id,class:e.normalizeClass(e.unref(E)("db-popover",t.class)),onFocus:h[0]||(h[0]=async r=>m()),onBlur:h[1]||(h[1]=async r=>o(r)),onMouseenter:h[2]||(h[2]=async r=>m()),onMouseleave:h[3]||(h[3]=async r=>o(r))},[e.renderSlot(i.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":i.spacing,"data-gap":e.unref(_)(i.gap),"data-animation":e.unref(_)(i.animation??!0),"data-open":i.open,"data-delay":i.delay,"data-width":i.width,"data-placement":i.placement},[e.renderSlot(i.$slots,"default")],8,un)],42,fn))}}),mn=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],pn=e.defineComponent({__name:"tooltip",props:{showArrow:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(d){const t=d,l=e.ref(R),a=e.ref(!1),n=e.ref(null);e.onMounted(()=>{l.value=t.id||"tooltip-"+L(),a.value=!0}),e.watch(()=>[n.value,a.value],()=>{if(n.value&&a.value&&l.value){let p=n.value.parentElement;p&&p.localName.includes("tooltip")&&(p=p.parentElement),p&&(["mouseenter","focus"].forEach(i=>{p.addEventListener(i,()=>o())}),p.setAttribute("data-has-tooltip","true"),p.setAttribute("aria-describedby",l.value)),a.value=!1}},{immediate:!0,flush:"post"});function m(p){p.stopPropagation()}function o(){n.value&&X(n.value)}return(p,i)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:n,class:e.normalizeClass(e.unref(E)("db-tooltip",t.class)),id:l.value,"data-emphasis":p.emphasis,"data-animation":e.unref(_)(p.animation??!0),"data-delay":p.delay,"data-width":p.width,"data-show-arrow":e.unref(_)(p.showArrow??!0),"data-placement":p.placement,onClick:i[0]||(i[0]=async h=>m(h))},[e.renderSlot(p.$slots,"default")],10,mn))}}),hn=["id"],gn={role:"tablist"},pe=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(d){const t=d,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"tab-list-"+L()}),(n,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(E)("db-tab-list",t.class))},[e.createElementVNode("ul",gn,[e.renderSlot(n.$slots,"default")])],10,hn))}}),bn=["id","aria-labelledby"],he=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(d){const t=d,l=e.ref(null);return e.onMounted(()=>{}),(a,n)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(E)("db-tab-panel",t.class)),id:a.id,"aria-labelledby":a.labelledBy},[a.content?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.content),1)],64)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,bn))}}),yn=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],Bn=e.defineComponent({__name:"tabs",props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0}},setup(d){const t=d,l=e.ref("tabs-"+L()),a=e.ref(""),n=e.ref(!1),m=e.ref(!1),o=e.ref(!1),p=e.ref(null),i=e.ref(null);e.onMounted(()=>{l.value=t.id||l.value,a.value=`tabs-${t.name||L()}`,n.value=!0}),e.watch(()=>[i.value,n.value],()=>{if(i.value&&n.value){k(),C(!0);const c=i.value.querySelector(".db-tab-list");c&&new MutationObserver(b=>{b.forEach(u=>{(u.removedNodes.length||u.addedNodes.length)&&(k(),C())})}).observe(c,{childList:!0,subtree:!0}),n.value=!1}},{immediate:!0,flush:"post"});function h(c){try{return typeof c=="string"?JSON.parse(c):c}catch(f){console.error(f)}return[]}function r(c){const f=c.scrollWidth>c.clientWidth;m.value=f&&c.scrollLeft>1,o.value=f&&c.scrollLeft<c.scrollWidth-c.clientWidth}function y(c){var b;let f=t.arrowScrollDistance||100;c&&(f*=-1),(b=p.value)==null||b.scrollBy({top:0,left:f,behavior:"smooth"})}function k(){if(i.value){const c=i.value.querySelector(".db-tab-list");if(c){const f=c.querySelector('[role="tablist"]');f&&(f.setAttribute("aria-orientation",t.orientation||"horizontal"),t.behavior==="arrows"&&(p.value=f,r(f),f.addEventListener("scroll",()=>{r(f)})))}}}function C(c){if(i.value){const f=Array.from(i.value.getElementsByClassName("db-tab-item"));for(const u of f){const S=f.indexOf(u),g=u.querySelector("label"),w=u.querySelector("input");if(w&&g){if(!w.id){const N=`${a.value}-tab-${S}`;g.setAttribute("for",N),w.setAttribute("aria-controls",`${a.value}-tab-panel-${S}`),w.id=N,w.setAttribute("name",a.value)}if(c){const N=!t.initialSelectedMode||t.initialSelectedMode==="auto",G=t.initialSelectedIndex==null&&S===0||t.initialSelectedIndex===S;N&&G&&w.click()}}}const b=Array.from(i.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const u of b){if(u.id)continue;const S=b.indexOf(u);u.id=`${a.value}-tab-panel-${S}`,u.setAttribute("aria-labelledby",`${a.value}-tab-${S}`)}}}function B(c){if(t.onIndexChange&&c.target){const f=c.target.closest("ul"),b=c.target.closest("db-tab-item")??c.target.closest("li");f!==null&&b!==null&&t.onIndexChange(Array.from(f.childNodes).indexOf(b))}t.onTabSelect&&t.onTabSelect(c)}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:i,id:l.value,class:e.normalizeClass(e.unref(E)("db-tabs",t.class)),"data-orientation":c.orientation,"data-scroll-behavior":c.behavior,"data-alignment":c.alignment??"start","data-width":c.width??"auto",onInput:f[0]||(f[0]=async b=>B(b))},[m.value?(e.openBlock(),e.createBlock(P,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:b=>y(!0)},{default:e.withCtx(()=>f[1]||(f[1]=[e.createTextVNode(" Scroll left ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),c.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(pe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(c.tabs),(b,u)=>(e.openBlock(),e.createBlock(ce,{key:c.name+"tab-item"+u,active:b.active,label:b.label,iconAfter:b.iconAfter,icon:b.icon,noText:b.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(c.tabs),(b,u)=>(e.openBlock(),e.createBlock(he,{key:c.name+"tab-panel"+u,content:b.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createBlock(P,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:b=>y()},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode(" Scroll right ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],42,yn))}}),kn=["adaptive","neutral","critical","informational","warning","successful"],En=["medium","small","large","none"],Nn=["medium","small","large","none"],Sn=["left","right","top","bottom","left-start","left-end","right-start","right-end","top-start","top-end","bottom-start","bottom-end"],wn=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Cn=["horizontal","vertical"],Ln=["full","auto"],In=["full","medium","large","small"],_n=["none","slow","fast"],Tn=["auto","fixed"],Dn=["small","medium"],ge=["weak","strong"],Fn=[...ge,"origin"],An=["invalid","valid","no-validation"],Vn=["above","floating"],$n=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],Mn=["time","true","false","date","page","step","location"],vn=["_self","_blank","_parent","_top"],zn=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Rn=["start","center"],Un=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Pn=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:Boolean,default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},gap:{default:void 0}},setup(d){const t=d,l=e.ref(null);return(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(E)("db-stack",t.class)),"data-gap":a.gap,"data-variant":a.variant,"data-direction":a.direction,"data-alignment":a.alignment,"data-justify-content":a.justifyContent,"data-wrap":e.unref(_)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Un))}});s.AlignmentList=Rn,s.AutoCompleteList=$n,s.COLOR=x,s.COLORS=we,s.COLORS_SIMPLE=Ce,s.COLOR_CONST=Ne,s.COLOR_SIMPLE=Z,s.DBAccordion=on,s.DBAccordionItem=me,s.DBBadge=Ve,s.DBBrand=Me,s.DBButton=P,s.DBCard=ze,s.DBCheckbox=qe,s.DBDivider=Xe,s.DBDrawer=fe,s.DBHeader=fa,s.DBIcon=ca,s.DBInfotext=D,s.DBInput=Ba,s.DBLink=Ea,s.DBNavigation=rn,s.DBNavigationItem=nn,s.DBNotification=Fe,s.DBPage=wa,s.DBPopover=cn,s.DBRadio=Ia,s.DBSection=Ta,s.DBSelect=Ra,s.DBStack=Pn,s.DBSwitch=Oa,s.DBTabItem=ce,s.DBTabList=pe,s.DBTabPanel=he,s.DBTabs=Bn,s.DBTag=Ha,s.DBTextarea=Qa,s.DBTooltip=pn,s.DEFAULT_BACK=de,s.DEFAULT_BURGER_MENU=ie,s.DEFAULT_CLOSE_BUTTON=J,s.DEFAULT_DATALIST_ID_SUFFIX=K,s.DEFAULT_ICON=le,s.DEFAULT_ID=R,s.DEFAULT_INVALID_MESSAGE=z,s.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=M,s.DEFAULT_LABEL=q,s.DEFAULT_MESSAGE_ID_SUFFIX=V,s.DEFAULT_PLACEHOLDER=Y,s.DEFAULT_PLACEHOLDER_ID_SUFFIX=j,s.DEFAULT_ROWS=oe,s.DEFAULT_VALID_MESSAGE=v,s.DEFAULT_VALID_MESSAGE_ID_SUFFIX=$,s.DEFAULT_VIEWPORT=se,s.DENSITIES=Se,s.DENSITY=Q,s.DENSITY_CONST=Ee,s.DESKTOP_VIEWPORT=re,s.EmphasisList=ge,s.GapSpacingList=wn,s.LabelVariantList=Vn,s.LinkCurrentList=Mn,s.LinkReferrerPolicyList=zn,s.LinkTargetList=vn,s.MarginList=Nn,s.MaxWidthList=In,s.NavigationItemSafeTriangle=ue,s.OrientationList=Cn,s.PlacementList=Sn,s.PopoverDelayList=_n,s.PopoverWidthList=Tn,s.SEMANTIC=ee,s.SEMANTICS=Le,s.SemanticList=kn,s.SizeList=Dn,s.SpacingList=En,s.TESTING_VIEWPORTS=Ie,s.TagEmphasisList=Fn,s.ValidationList=An,s.WidthList=Ln,s.addAttributeToChildren=H,s.cls=E,s.delay=F,s.getBooleanAsString=_,s.getHideProp=I,s.handleDataOutside=X,s.hasVoiceOver=A,s.isArrayOfStrings=te,s.isEventTargetNavigationItem=ae,s.isInView=ne,s.stringPropVisible=T,s.uuid=L,s.visibleInVX=be,s.visibleInVY=ye,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
1
+ (function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s["DB-UX"]={},s.Vue))})(this,function(s,e){"use strict";var Ut=Object.defineProperty;var Pt=(s,e,C)=>e in s?Ut(s,e,{enumerable:!0,configurable:!0,writable:!0,value:C}):s[e]=C;var U=(s,e,C)=>Pt(s,typeof e!="symbol"?e+"":e,C);const C=()=>{var o,i;if(typeof window<"u"){if((o=window.crypto)!=null&&o.randomUUID)return window.crypto.randomUUID();if((i=window.crypto)!=null&&i.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},H=(o,i)=>{const l=o.children;Object.values(l).forEach(a=>{a.setAttribute(i.key,i.value),a.children.length>0&&H(a,i)})},k=(...o)=>{let i="";for(const l of o)if(l)if(typeof l=="string")i+=`${l} `;else for(const a in l)l[a]&&(i+=`${a} `);return i.trim()},be=o=>{const{left:i,right:l}=o.getBoundingClientRect(),{innerWidth:a}=window;return i>=0&&l<=a},ye=o=>{const{top:i,bottom:l}=o.getBoundingClientRect(),{innerHeight:a}=window;return i>=0&&l<=a},te=o=>{var v;const{top:i,bottom:l,left:a,right:t}=o.getBoundingClientRect(),{innerHeight:m,innerWidth:d}=window;let p=i<0,n=l>m,h=a<0,r=t>d;const y=o.hasAttribute("data-outside-vy"),B=o.hasAttribute("data-outside-vx"),w=(v=o==null?void 0:o.parentElement)==null?void 0:v.getBoundingClientRect();return w&&(y&&(o.getAttribute("data-outside-vy")==="top"?p=w.top-(l-w.bottom)<0:n=w.bottom+(w.top-i)>m),B&&(o.getAttribute("data-outside-vx")==="left"?h=w.left-(t-w.right)<0:r=w.right+(w.left-a)>d)),{outTop:p,outBottom:n,outLeft:h,outRight:r}},X=o=>{const{outTop:i,outBottom:l,outLeft:a,outRight:t}=te(o);let m={};return i||l?(m={vy:i?"top":"bottom"},o.setAttribute("data-outside-vy",m.vy)):o.removeAttribute("data-outside-vy"),a||t?(m={...m,vx:t?"right":"left"},o.setAttribute("data-outside-vx",m.vx)):o.removeAttribute("data-outside-vx"),m},ie=o=>Array.isArray(o)&&o.every(i=>typeof i=="string"),ve=["Mac","iPhone","iPad","iPod"],F=()=>typeof window<"u"&&ve.some(o=>window.navigator.userAgent.includes(o)),D=(o,i)=>new Promise(()=>setTimeout(o,i)),I=o=>o&&String(o),L=o=>{if(o!=null)return I(!o)},T=(o,i)=>i===void 0?!!o:i&&o,Be=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","value","aria-describedby","aria-expanded","aria-pressed"],P=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},label:{default:void 0},name:{default:void 0},type:{default:void 0},value:{default:void 0},state:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);function a(t){i.onClick&&i.onClick(t)}return(t,m)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:t.id,class:e.normalizeClass(e.unref(k)("db-button",i.class)),type:t.type||"button",disabled:t.disabled,"aria-label":t.label,"data-icon":t.icon,"data-hide-icon":e.unref(L)(t.showIcon),"data-size":t.size,"data-state":t.state,"data-width":t.width,"data-variant":t.variant,"data-no-text":e.unref(I)(t.noText),name:t.name,value:t.value,"aria-describedby":t.describedbyid,"aria-expanded":t.ariaexpanded,"aria-pressed":t.ariapressed,onClick:m[0]||(m[0]=async d=>a(d))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,Be))}}),R="OVERWRITE_DEFAULT_ID",q="LABEL SHOULD BE SET",Y=" ",A="-message",V="-valid-message",$="-invalid-message",j="-placeholder",K="-datalist",M="TODO: Add a validMessage",z="TODO: Add an invalidMessage",oe="Back",ne="BurgerMenu",le="brand",de=4,J="Close Button",ke="density",Ee="color";var Q=(o=>(o.FUNCTIONAL="functional",o.REGULAR="regular",o.EXPRESSIVE="expressive",o))(Q||{});const Ne=Object.entries(Q).map(([,o])=>o);var Z=(o=>(o.PRIMARY="primary",o))(Z||{}),x=(o=>(o.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",o.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",o.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",o.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",o.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",o.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",o.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",o.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",o.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",o.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",o.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",o.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",o.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",o.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",o.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",o.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",o.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",o.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",o.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",o.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",o.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",o.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",o.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",o.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",o.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",o.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",o.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",o.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",o.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",o.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full",o))(x||{});const Se=Object.entries(x).map(([,o])=>o),we=Object.entries(Z).map(([,o])=>o);var ee=(o=>(o.CRITICAL="critical",o.INFORMATIONAL="informational",o.WARNING="warning",o.SUCCESSFUL="successful",o))(ee||{});const Ce=Object.entries(ee).map(([,o])=>o),se={width:390,height:884},re={width:1920,height:1280},Le=[{name:"desktop",...re},{name:"tablet",width:768,height:1024},{name:"mobile",...se}],Ie=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Te={key:0},_e={key:1},De=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:Boolean,default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:Boolean,default:void 0},timestamp:{default:void 0},showTimestamp:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:Boolean},width:{},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);function a(t){i.onClose&&i.onClose()}return(t,m)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:t.id,class:e.normalizeClass(e.unref(k)("db-notification",i.class)),"aria-live":t.ariaLive,"data-semantic":t.semantic,"data-variant":t.variant,"data-icon":t.icon,"data-hide-icon":e.unref(L)(t.showIcon),"data-link-variant":t.linkVariant},[e.renderSlot(t.$slots,"image"),e.unref(T)(t.headline,t.showHeadline)?(e.openBlock(),e.createElementBlock("header",Te,e.toDisplayString(t.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})]),e.unref(T)(t.timestamp,t.showTimestamp)?(e.openBlock(),e.createElementBlock("span",_e,e.toDisplayString(t.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"link"),t.closeable?(e.openBlock(),e.createBlock(P,{key:2,icon:"cross",variant:"ghost",size:"small",id:t.closeButtonId,noText:!0,onClick:d=>a()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,Ie))}}),Fe=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Ae=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var t;if(a.value&&l.value&&(t=i.placement)!=null&&t.startsWith("corner")){let m=a.value.parentElement;m&&m.localName.includes("badge")&&(m=m.parentElement),m&&m.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(t,m)=>{var d;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:t.id,class:e.normalizeClass(e.unref(k)("db-badge",i.class)),"data-semantic":t.semantic,"data-size":t.size,"data-emphasis":t.emphasis,"data-placement":t.placement,"data-label":((d=t.placement)==null?void 0:d.startsWith("corner"))&&(t.label??e.unref(q))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,Fe)}}}),Ve=["data-icon","data-hide-icon","id"],$e=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(le),"data-hide-icon":e.unref(L)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(k)("db-brand",i.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,Ve))}}),Me=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],ze=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(o){const i=o,l=e.ref(null);function a(t){i.onClick&&i.onClick(t)}return(t,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:t.id,class:e.normalizeClass(e.unref(k)("db-card",i.class)),"data-behavior":t.behavior,"data-elevation-level":t.elevationLevel,"data-spacing":t.spacing,role:t.behavior==="interactive"?"button":void 0,tabIndex:t.behavior==="interactive"?0:void 0,onClick:m[0]||(m[0]=async d=>a(d))},[e.renderSlot(t.$slots,"default")],10,Me))}}),O=(o,i,l="value")=>{o(`update:${l}`,i.target[l])},Re=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],_=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(k)("db-infotext",i.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(L)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Re))}}),Ue=["data-size","data-hide-label"],Pe=["for"],Oe=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],Ge={"data-visually-hidden":"true",role:"status"},qe=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:checked"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(!1),m=e.ref(void 0),d=e.ref(void 0),p=e.ref(void 0),n=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{t.value=!0;const u=a.id??`checkbox-${C()}`;m.value=u,d.value=u+A,p.value=u+V,n.value=u+$}),e.watch(()=>[m.value],()=>{if(m.value){const u=m.value+A;d.value=u,p.value=m.value+V,n.value=m.value+$,T(a.message,a.showMessage)&&(h.value=u)}},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,y.value,a.indeterminate],()=>{y.value&&a.indeterminate!==void 0&&(y.value.indeterminate=a.indeterminate)},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,y.value,a.checked],()=>{t.value&&y.value&&(a.checked!=null&&(y.value.checked=a.checked),t.value=!1)},{immediate:!0,flush:"post"});function B(u){var c,b,f;a.onChange&&a.onChange(u),a.change&&a.change(u),O(l,u,"checked"),!((c=y.value)!=null&&c.validity.valid)||a.validation==="invalid"?(h.value=n.value,F()&&(r.value=a.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??z,D(()=>r.value="",1e3))):a.validation==="valid"||(f=y.value)!=null&&f.validity.valid&&a.required?(h.value=p.value,F()&&(r.value=a.validMessage??M,D(()=>r.value="",1e3))):T(a.message,a.showMessage)?h.value=d.value:h.value=""}function w(u){a.onBlur&&a.onBlur(u),a.blur&&a.blur(u)}function v(u){a.onFocus&&a.onFocus(u),a.focus&&a.focus(u)}return(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(k)("db-checkbox",a.class)),"data-size":u.size,"data-hide-label":e.unref(L)(u.showLabel)},[e.createElementVNode("label",{for:m.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":u.validation==="invalid","data-custom-validity":u.validation,ref_key:"_ref",ref:y,id:m.value,name:u.name,checked:u.checked,disabled:u.disabled,value:u.value,required:u.required,onChange:c[0]||(c[0]=async b=>B(b)),onBlur:c[1]||(c[1]=async b=>w(b)),onFocus:c[2]||(c[2]=async b=>v(b)),"aria-describedby":h.value},null,40,Oe),u.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(u.label),1)],64)):e.renderSlot(u.$slots,"default",{key:1})],8,Pe),e.unref(T)(u.message,u.showMessage)?(e.openBlock(),e.createBlock(_,{key:0,size:"small",icon:u.messageIcon,id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(_,{size:"small",semantic:"successful",id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.validMessage??e.unref(M)),1)]),_:1},8,["id"]),e.createVNode(_,{size:"small",semantic:"critical",id:n.value},{default:e.withCtx(()=>{var b;return[e.createTextVNode(e.toDisplayString(u.invalidMessage??((b=y.value)==null?void 0:b.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ge,e.toDisplayString(r.value),1)],10,Ue))}}),We=["id","data-margin","data-variant","data-emphasis","data-width"],Xe=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},width:{default:void 0}},setup(o){const i=o,l=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(k)("db-divider",i.class))},null,10,We))}}),He=["id","data-backdrop","data-variant"],Ye=["data-spacing","data-width","data-direction","data-rounded"],je={class:"db-drawer-header"},Ke={class:"db-drawer-header-text"},Je={class:"db-drawer-content"},ce=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:Boolean,default:void 0},rounded:{type:Boolean,default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClose:{type:Function,default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(o){const i=o,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{m()}),e.watch(()=>[i.open],()=>{m()},{immediate:!0,flush:"post"});function t(d){d.key==="Escape"&&d.preventDefault(),(d==="close"||d.key==="Escape"||d.target.nodeName==="DIALOG"&&d.type==="click"&&i.backdrop!=="none")&&i.onClose&&i.onClose(d)}function m(){l.value&&(i.open&&!l.value.open&&(a.value&&(a.value.hidden=!1),i.backdrop==="none"||i.variant==="inside"?l.value.show():l.value.showModal()),!i.open&&l.value.open&&(a.value&&(a.value.hidden=!0),D(()=>{var d;a.value&&(a.value.hidden=!1),(d=l.value)==null||d.close()},401)))}return(d,p)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:d.id,ref_key:"_ref",ref:l,onClick:p[0]||(p[0]=async n=>{t(n)}),onKeydown:p[1]||(p[1]=async n=>t(n)),"data-backdrop":d.backdrop,"data-variant":d.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(k)("db-drawer-container",i.class)),"data-spacing":d.spacing,"data-width":d.width,"data-direction":d.direction,"data-rounded":d.rounded},[e.createElementVNode("header",je,[e.createElementVNode("div",Ke,[e.renderSlot(d.$slots,"drawer-header")]),e.createVNode(P,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:d.closeButtonId,noText:!0,onClick:n=>t("close")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.closeButtonText??e.unref(J)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Je,[e.renderSlot(d.$slots,"default")])],10,Ye)],40,He))}}),ae=o=>{var l,a;const{target:i}=o;return!!(!((l=i==null?void 0:i.classList)!=null&&l.contains("db-navigation-item-expand-button"))&&((a=i==null?void 0:i.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class fe{constructor(i,l){U(this,"element");U(this,"subNavigation");U(this,"parentSubNavigation",null);U(this,"triangleData");U(this,"initialized",!1);U(this,"mouseX",0);U(this,"mouseY",0);var a;this.element=i,this.subNavigation=l,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var l,a;const i=((l=this.parentSubNavigation)==null?void 0:l.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${i}px`),this.initialized=!0}enableFollow(){var t;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const i=X(this.subNavigation),l=this.element.getBoundingClientRect(),a=((t=this.parentSubNavigation)==null?void 0:t.getBoundingClientRect().width)??0;this.triangleData={itemRect:l,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-l.width)/2,outsideVX:i.vx,outsideVY:i.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 i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?i+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i=this.triangleData.outsideVX==="right";return!!(i&&this.mouseX<-1*this.triangleData.padding||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(i){if(!this.triangleData)return;if(i==="fill-gap"){const d=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,p=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${p} ${d}`,lt:`${p} 0`,rt:"100% 0",rb:`100% ${d}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),t=`${l}px ${a}px`,m=`${l}px ${a}px`;return{lb:t,lt:m,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const l=this.hasMouseEnteredSubNavigation(),a=this.getTriangleCoordinates(l?"fill-gap":"safe-triangle");a&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`),l&&(this.triangleData=void 0))}}const Qe=["id","data-width","data-on-forcing-mobile"],Ze={class:"db-header-drawer-navigation"},xe={class:"db-header-meta-navigation"},ea={class:"db-header-secondary-action"},aa={class:"db-header-meta-navigation"},ta={class:"db-header-navigation-bar"},ia={class:"db-header-brand-container"},oa={class:"db-header-navigation-container"},na={class:"db-header-navigation"},la={class:"db-header-primary-action"},da={class:"db-header-action-container"},sa={class:"db-header-burger-menu-container"},ra={class:"db-header-secondary-action"},ca=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:Boolean,default:void 0},forceMobile:{type:Boolean,default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(o){const i=o,l=e.ref(R),a=e.ref(!1),t=e.ref(!1),m=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=i.id||"header-"+C()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&i.forceMobile){const n=document.getElementById(l.value);n&&H(n,{key:"data-force-mobile",value:"true"}),t.value=!0}},{immediate:!0,flush:"post"});function d(){i.onToggle&&i.onToggle(!i.drawerOpen)}function p(n){ae(n)&&d()}return(n,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:m,class:e.normalizeClass(e.unref(k)("db-header",i.class)),id:l.value,"data-width":n.width,"data-on-forcing-mobile":n.forceMobile&&!t.value},[e.createVNode(ce,{class:"db-header-drawer",spacing:"small",rounded:!0,open:n.drawerOpen,onClose:()=>d()},{default:e.withCtx(()=>[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:"db-header-navigation",onClick:h[0]||(h[0]=async r=>p(r))},[e.renderSlot(n.$slots,"default")]),e.createElementVNode("div",xe,[e.renderSlot(n.$slots,"meta-navigation")])]),e.createElementVNode("div",ea,[e.renderSlot(n.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",aa,[e.renderSlot(n.$slots,"meta-navigation")]),e.createElementVNode("div",ta,[e.createElementVNode("div",ia,[e.renderSlot(n.$slots,"brand")]),e.createElementVNode("div",oa,[e.createElementVNode("div",na,[e.renderSlot(n.$slots,"default")]),e.createElementVNode("div",la,[e.renderSlot(n.$slots,"primary-action")])]),e.createElementVNode("div",da,[e.createElementVNode("div",sa,[e.createVNode(P,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:()=>d()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.burgerMenuLabel??e.unref(ne)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",ra,[e.renderSlot(n.$slots,"secondary-action")])])])],10,Qe))}}),fa=["id","data-icon","data-icon-weight","data-icon-variant"],ua=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(k)("db-icon",i.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,fa))}}),ma=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],pa=["for"],ha=["aria-invalid","data-custom-validity","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],ga=["id"],ba=["value"],ya={"data-visually-hidden":"true",role:"status"},va=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean,default:void 0},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(void 0),m=e.ref(void 0),d=e.ref(void 0),p=e.ref(void 0),n=e.ref(void 0),h=e.ref(""),r=e.ref(""),y=e.ref(""),B=e.ref(null);e.onMounted(()=>{const f=a.id??`input-${C()}`;t.value=f,m.value=f+A,d.value=f+V,p.value=f+$,n.value=f+K}),e.watch(()=>[t.value],()=>{if(t.value){const f=t.value+A;m.value=f,d.value=t.value+V,p.value=t.value+$,n.value=a.dataListId??t.value+K,T(a.message,a.showMessage)&&(h.value=f)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function w(f){r.value=f.target.value,a.onInput&&a.onInput(f),a.input&&a.input(f)}function v(f){var N,g,S;a.onChange&&a.onChange(f),a.change&&a.change(f),O(l,f),!((N=B.value)!=null&&N.validity.valid)||a.validation==="invalid"?(h.value=p.value,F()&&(y.value=a.invalidMessage??((g=B.value)==null?void 0:g.validationMessage)??z,D(()=>y.value="",1e3))):a.validation==="valid"||(S=B.value)!=null&&S.validity.valid&&(a.required||a.minLength||a.maxLength||a.pattern)?(h.value=d.value,F()&&(y.value=a.validMessage??M,D(()=>y.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=""}function u(f){a.onBlur&&a.onBlur(f),a.blur&&a.blur(f)}function c(f){a.onFocus&&a.onFocus(f),a.focus&&a.focus(f)}function b(f){return Array.from((ie(f)?f.map(N=>({value:N,label:void 0})):f)||[])}return(f,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(k)("db-input",a.class)),"data-variant":f.variant,"data-hide-label":e.unref(L)(f.showLabel),"data-hide-icon":e.unref(L)(f.showIcon),"data-icon":f.icon,"data-icon-after":f.iconAfter,"data-hide-icon-after":e.unref(L)(f.showIcon)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(f.label??e.unref(q)),9,pa),e.createElementVNode("input",{"aria-invalid":f.validation==="invalid","data-custom-validity":f.validation,ref_key:"_ref",ref:B,id:t.value,name:f.name,type:f.type||"text",placeholder:f.placeholder??e.unref(Y),disabled:f.disabled,required:f.required,step:f.step,value:f.value??r.value,maxLength:f.maxLength,minLength:f.minLength,max:f.max,min:f.min,readOnly:f.readOnly,form:f.form,pattern:f.pattern,size:f.size,autoComplete:f.autocomplete,autoFocus:f.autofocus,onInput:N[0]||(N[0]=async g=>w(g)),onChange:N[1]||(N[1]=async g=>v(g)),onBlur:N[2]||(N[2]=async g=>u(g)),onFocus:N[3]||(N[3]=async g=>c(g)),list:f.dataList&&n.value,"aria-describedby":h.value},null,40,ha),f.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:n.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b(f.dataList),g=>(e.openBlock(),e.createElementBlock("option",{key:n.value+"-option-"+g.value,value:g.value},e.toDisplayString(g.label),9,ba))),128))],8,ga)):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default"),e.unref(T)(f.message,f.showMessage)?(e.openBlock(),e.createBlock(_,{key:1,size:"small",icon:f.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(_,{size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.validMessage??e.unref(M)),1)]),_:1},8,["id"]),e.createVNode(_,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var g;return[e.createTextVNode(e.toDisplayString(f.invalidMessage??((g=B.value)==null?void 0:g.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",ya,e.toDisplayString(y.value),1)],10,ma))}}),Ba=["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"],ka=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(null);function a(t){i.onClick&&i.onClick(t)}return(t,m)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:t.id,class:e.normalizeClass(e.unref(k)("db-link",i.class)),href:t.href,target:t.target,rel:t.rel,role:t.role,hrefLang:t.hreflang,"aria-disabled":e.unref(I)(t.disabled),tabIndex:t.disabled?-1:0,"aria-selected":t.selected,"aria-label":t.label,"aria-current":t.current,"data-size":t.size,"data-hide-icon-after":e.unref(L)(t.showIcon??!0),"data-variant":t.variant,"data-content":t.content||"internal",onClick:m[0]||(m[0]=async d=>a(d))},[t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.text),1)],64)):e.renderSlot(t.$slots,"default",{key:1})],10,Ba))}}),Ea=["id","data-variant","data-fade-in","data-fonts-loaded"],Na=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:Boolean,default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(o){const i=o,l=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(i.documentOverflow==="hidden"||i.variant==="fixed"&&i.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{l.value=!i.fadeIn,document&&i.fadeIn?document.fonts.ready.then(()=>{l.value=!0}):l.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:t.id,class:e.normalizeClass(e.unref(k)("db-page",i.class)),"data-variant":t.variant,"data-fade-in":t.fadeIn,"data-fonts-loaded":e.unref(I)(l.value)},[e.renderSlot(t.$slots,"header"),e.createElementVNode("main",{class:e.normalizeClass(e.unref(k)("db-main",t.mainClass))},[e.renderSlot(t.$slots,"default")],2),e.renderSlot(t.$slots,"footer")],10,Ea))}}),Sa=["data-size","data-hide-label","for"],wa=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],Ca=e.defineComponent({__name:"radio",props:{describedbyid:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(!1),m=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{t.value=!0,m.value=a.id??`radio-${C()}`}),e.watch(()=>[t.value,d.value,a.checked],()=>{a.checked&&t.value&&d.value&&(d.value.checked=!0)},{immediate:!0,flush:"post"});function p(r){a.onChange&&a.onChange(r),a.change&&a.change(r),O(l,r)}function n(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-size":r.size,"data-hide-label":e.unref(L)(r.showLabel),class:e.normalizeClass(e.unref(k)("db-radio",a.class)),for:m.value},[e.createElementVNode("input",{type:"radio","aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,ref_key:"_ref",ref:d,id:m.value,name:r.name,checked:r.checked,disabled:r.disabled,"aria-describedby":r.describedbyid,value:r.value,required:r.required,onChange:y[0]||(y[0]=async B=>p(B)),onBlur:y[1]||(y[1]=async B=>n(B)),onFocus:y[2]||(y[2]=async B=>h(B))},null,40,wa),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Sa))}}),La=["id","data-spacing","data-width"],Ia=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},width:{default:void 0}},setup(o){const i=o,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=i.id||"section-"+C()}),(t,m)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(k)("db-section",i.class)),"data-spacing":t.spacing||"medium","data-width":t.width},[e.renderSlot(t.$slots,"default")],10,La))}}),Ta=["data-variant","data-hide-label","data-icon","data-hide-icon"],_a=["for"],Da=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","aria-describedby"],Fa=["label"],Aa=["value","selected","disabled"],Va=["value","disabled","selected"],$a=["id"],Ma={"data-visually-hidden":"true",role:"status"},za=e.defineComponent({__name:"select",props:{description:{},options:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(void 0),m=e.ref(void 0),d=e.ref(void 0),p=e.ref(void 0),n=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(!1),B=e.ref(""),w=e.ref(null);e.onMounted(()=>{y.value=!0;const g=a.id??`select-${C()}`;t.value=g,m.value=g+A,d.value=g+V,p.value=g+$,n.value=g+j}),e.watch(()=>[t.value,y.value],()=>{if(t.value&&y.value){const g=t.value+A,S=t.value+j;m.value=g,d.value=t.value+V,p.value=t.value+$,n.value=S,T(a.message,a.showMessage)?h.value=g:h.value=S,y.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{r.value=a.value},{immediate:!0,flush:"post"});function v(g){a.onClick&&a.onClick(g)}function u(g){r.value=g.target.value,a.onInput&&a.onInput(g),a.input&&a.input(g)}function c(g){var S,E,G;a.onChange&&a.onChange(g),a.change&&a.change(g),O(l,g),!((S=w.value)!=null&&S.validity.valid)||a.validation==="invalid"?(h.value=p.value,F()&&(B.value=a.invalidMessage??((E=w.value)==null?void 0:E.validationMessage)??z,D(()=>B.value="",1e3))):a.validation==="valid"||(G=w.value)!=null&&G.validity.valid&&a.required?(h.value=d.value,F()&&(B.value=a.validMessage??M,D(()=>B.value="",1e3))):T(a.message,a.showMessage)?h.value=m.value:h.value=n.value}function b(g){a.onBlur&&a.onBlur(g),a.blur&&a.blur(g)}function f(g){a.onFocus&&a.onFocus(g),a.focus&&a.focus(g)}function N(g){return g.label??g.value.toString()}return(g,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(k)("db-select",a.class)),"data-variant":g.variant,"data-hide-label":e.unref(L)(g.showLabel),"data-icon":g.icon,"data-hide-icon":e.unref(L)(g.showIcon)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(g.label??e.unref(q)),9,_a),e.createElementVNode("select",{"aria-invalid":g.validation==="invalid","data-custom-validity":g.validation,ref_key:"_ref",ref:w,required:g.required,disabled:g.disabled,id:t.value,name:g.name,size:g.size,value:g.value??r.value,autocomplete:g.autocomplete,onInput:S[0]||(S[0]=async E=>u(E)),onClick:S[1]||(S[1]=async E=>v(E)),onChange:S[2]||(S[2]=async E=>c(E)),onBlur:S[3]||(S[3]=async E=>b(E)),onFocus:S[4]||(S[4]=async E=>f(E)),"aria-describedby":h.value},[S[5]||(S[5]=e.createElementVNode("option",{hidden:!0},null,-1)),g.options?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(g.options,(E,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[E.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:N(E)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.options,(W,Ot)=>(e.openBlock(),e.createElementBlock("option",{key:W.value.toString(),value:W.value,selected:W.selected,disabled:W.disabled},e.toDisplayString(N(W)),9,Aa))),128))],8,Fa)):e.createCommentVNode("",!0),E.options?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("option",{key:1,value:E.value,disabled:E.disabled,selected:E.selected},e.toDisplayString(N(E)),9,Va))],64))),128)):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default")],40,Da),e.createElementVNode("span",{id:n.value},e.toDisplayString(g.placeholder??g.label),9,$a),e.unref(T)(g.message,g.showMessage)?(e.openBlock(),e.createBlock(_,{key:0,size:"small",icon:g.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(_,{size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.validMessage??e.unref(M)),1)]),_:1},8,["id"]),e.createVNode(_,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var E;return[e.createTextVNode(e.toDisplayString(g.invalidMessage??((E=w.value)==null?void 0:E.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ma,e.toDisplayString(B.value),1)],10,Ta))}}),Ra=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Ua=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],Pa=e.defineComponent({__name:"switch",props:{visualAid:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:Boolean},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},checked:{type:Boolean,default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(void 0),m=e.ref(!1),d=e.ref(null);e.onMounted(()=>{t.value=a.id??`switch-${C()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(m.value=!!a.checked)},{immediate:!0,flush:"post"});function p(r){var y;a.onChange&&a.onChange(r),a.change&&a.change(r),m.value=(y=r.target)==null?void 0:y.checked,O(l,r,"checked")}function n(r){a.onBlur&&a.onBlur(r),a.blur&&a.blur(r)}function h(r){a.onFocus&&a.onFocus(r),a.focus&&a.focus(r)}return(r,y)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(I)(r.visualAid),"data-size":r.size,"data-hide-label":e.unref(L)(r.showLabel),"data-emphasis":r.emphasis,for:t.value,class:e.normalizeClass(e.unref(k)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:t.value,"aria-checked":e.unref(I)(m.value),ref_key:"_ref",ref:d,checked:r.checked,value:r.value,disabled:r.disabled,"aria-describedby":r.describedbyid,"aria-invalid":r.validation==="invalid","data-custom-validity":r.validation,name:r.name,required:r.required,"data-aid-icon":r.icon,"data-aid-icon-after":r.iconAfter,onChange:y[0]||(y[0]=async B=>p(B)),onBlur:y[1]||(y[1]=async B=>n(B)),onFocus:y[2]||(y[2]=async B=>h(B))},null,40,Ua),r.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.label),1)],64)):e.renderSlot(r.$slots,"default",{key:1})],10,Ra))}}),Oa=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],Ga=["disabled","aria-selected","aria-controls","checked","id"],ue=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},label:{default:void 0},noText:{type:Boolean,default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:Boolean,default:void 0},controls:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},showIcon:{type:Boolean,default:void 0}},emits:["update:checked"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(!1),m=e.ref(!1),d=e.ref(null);e.onMounted(()=>{t.value=!0}),e.watch(()=>[d.value,t.value],()=>{a.active&&t.value&&d.value&&(d.value.click(),t.value=!1)},{immediate:!0,flush:"post"});function p(n){var h;a.onChange&&a.onChange(n),a.change&&a.change(n),m.value=(h=n.target)==null?void 0:h.checked,O(l,n,"checked")}return(n,h)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(k)("db-tab-item",a.class))},[e.createElementVNode("label",{for:n.id,"data-icon":n.icon,"data-icon-after":n.iconAfter,"data-hide-icon":e.unref(L)(n.showIcon),"data-hide-icon-after":e.unref(L)(n.showIcon),"data-no-text":n.noText},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:n.disabled,"aria-selected":m.value,"aria-controls":n.controls,checked:n.checked,ref_key:"_ref",ref:d,id:n.id,onInput:h[0]||(h[0]=async r=>p(r))},null,40,Ga),n.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],8,Oa)],2))}}),qa=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],Wa=["title"],Xa=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:Boolean,default:void 0},noText:{type:Boolean,default:void 0},onRemove:{type:Function,default:void 0},removeButton:{default:void 0},showCheckState:{type:Boolean,default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},icon:{default:void 0},semantic:{default:void 0},overflow:{type:Boolean,default:void 0},emphasis:{default:void 0},showIcon:{type:Boolean,default:void 0},content:{}},setup(o){const i=o,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,i.disabled,a.value],()=>{var d,p;if(l.value&&a.value&&i.disabled!==void 0){const n=(d=a.value)==null?void 0:d.querySelector("button:not(.db-tab-remove-button)"),h=(p=a.value)==null?void 0:p.querySelector("input");for(const r of[n,h])r&&(r.disabled=i.disabled)}},{immediate:!0,flush:"post"});function t(){i.onRemove&&i.onRemove()}function m(){return i.removeButton?i.removeButton:"Remove tag"}return(d,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:d.id,class:e.normalizeClass(e.unref(k)("db-tag",i.class)),"data-disabled":e.unref(I)(d.disabled),"data-semantic":d.semantic,"data-emphasis":d.emphasis,"data-icon":d.icon,"data-show-check-state":e.unref(I)(d.showCheckState??!0),"data-hide-icon":e.unref(L)(d.showIcon),"data-no-text":e.unref(I)(d.noText),"data-overflow":e.unref(I)(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",onClick:p[0]||(p[0]=async n=>t()),title:m()},e.toDisplayString(m()),9,Wa)):e.createCommentVNode("",!0)],10,qa))}}),Ha=["data-variant","data-hide-label"],Ya=["for"],ja=["aria-invalid","data-custom-validity","id","data-resize","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Ka={"data-visually-hidden":"true",role:"status"},Ja=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{type:Function,default:void 0},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{type:Function,default:void 0},onBlur:{type:Function,default:void 0},focus:{type:Function,default:void 0},onFocus:{type:Function,default:void 0},validation:{default:void 0},disabled:{type:Boolean,default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},required:{type:Boolean,default:void 0},showLabel:{type:Boolean,default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},maxLength:{default:void 0},minLength:{default:void 0},readOnly:{type:Boolean,default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:Boolean,default:void 0}},emits:["update:value"],setup(o,{emit:i}){const l=i,a=o,t=e.ref(void 0),m=e.ref(void 0),d=e.ref(void 0),p=e.ref(void 0),n=e.ref(""),h=e.ref(""),r=e.ref(""),y=e.ref(null);e.onMounted(()=>{const c=a.id??`textarea-${C()}`;t.value=c,m.value=c+A,d.value=c+V,p.value=c+$}),e.watch(()=>[t.value],()=>{if(t.value){const c=t.value+A;m.value=c,d.value=t.value+V,p.value=t.value+$,T(a.message,a.showMessage)&&(n.value=c)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{h.value=a.value},{immediate:!0,flush:"post"});function B(c){h.value=c.target.value,a.onInput&&a.onInput(c),a.input&&a.input(c)}function w(c){var b,f,N;a.onChange&&a.onChange(c),a.change&&a.change(c),O(l,c),!((b=y.value)!=null&&b.validity.valid)||a.validation==="invalid"?(n.value=p.value,F()&&(r.value=a.invalidMessage??((f=y.value)==null?void 0:f.validationMessage)??z,D(()=>r.value="",1e3))):a.validation==="valid"||(N=y.value)!=null&&N.validity.valid&&(a.required||a.minLength||a.maxLength)?(n.value=d.value,F()&&(r.value=a.validMessage??M,D(()=>r.value="",1e3))):T(a.message,a.showMessage)?n.value=m.value:n.value=""}function v(c){a.onBlur&&a.onBlur(c),a.blur&&a.blur(c)}function u(c){a.onFocus&&a.onFocus(c),a.focus&&a.focus(c)}return(c,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(k)("db-textarea",a.class)),"data-variant":c.variant,"data-hide-label":e.unref(L)(c.showLabel)},[e.createElementVNode("label",{for:t.value},e.toDisplayString(c.label??e.unref(q)),9,Ya),e.createElementVNode("textarea",{"aria-invalid":c.validation==="invalid","data-custom-validity":c.validation,ref_key:"_ref",ref:y,id:t.value,"data-resize":c.resize,disabled:c.disabled,required:c.required,readOnly:c.readOnly,form:c.form,maxLength:c.maxLength,minLength:c.minLength,name:c.name,wrap:c.wrap,spellcheck:c.spellCheck,autocomplete:c.autocomplete,onInput:b[0]||(b[0]=async f=>B(f)),onChange:b[1]||(b[1]=async f=>w(f)),onBlur:b[2]||(b[2]=async f=>v(f)),onFocus:b[3]||(b[3]=async f=>u(f)),value:c.value??h.value,"aria-describedby":n.value,placeholder:c.placeholder??e.unref(Y),rows:c.rows??e.unref(de),cols:c.cols},null,40,ja),e.unref(T)(c.message,c.showMessage)?(e.openBlock(),e.createBlock(_,{key:0,size:"small",icon:c.messageIcon,id:m.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),e.createVNode(_,{size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.validMessage??e.unref(M)),1)]),_:1},8,["id"]),e.createVNode(_,{size:"small",semantic:"critical",id:p.value},{default:e.withCtx(()=>{var f;return[e.createTextVNode(e.toDisplayString(c.invalidMessage??((f=y.value)==null?void 0:f.validationMessage)??e.unref(z)),1)]}),_:1},8,["id"]),e.createElementVNode("span",Ka,e.toDisplayString(r.value),1)],10,Ha))}}),Qa=["id","data-width","data-icon","data-hide-icon","data-active","aria-disabled"],Za=["aria-haspopup","aria-expanded","disabled"],xa=["data-auto-close","id"],et={key:0,class:"db-mobile-navigation-back"},at=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},subNavigation:{},subNavigationExpanded:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:Boolean,default:void 0},text:{default:void 0}},setup(o){const i=o,l=e.ref(!1),a=e.ref(!1),t=e.ref(!0),m=e.ref(!1),d=e.ref(!1),p=e.ref("sub-navigation-"+C()),n=e.ref(void 0),h=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[i.subNavigationExpanded],()=>{i.subNavigationExpanded!==void 0&&(m.value=!!i.subNavigationExpanded)},{immediate:!0,flush:"post"}),e.watch(()=>[l.value],()=>{w()},{immediate:!0,flush:"post"});function r(v){ae(v)&&(d.value=!0,D(()=>{d.value=!1},300))}function y(v){i.onClick&&i.onClick(v),a.value&&(m.value=!0)}function B(v){v.stopPropagation(),m.value=!1}function w(){var v;if(l.value&&document&&p.value){const u=document==null?void 0:document.getElementById(p.value);u&&(((v=u.children)==null?void 0:v.length)>0?(a.value=!0,n.value||(n.value=new fe(h.value,u))):t.value=!1)}}return(v,u)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:h,id:v.id,onMouseover:u[2]||(u[2]=async c=>{var b;return(b=n.value)==null?void 0:b.enableFollow()}),onMouseleave:u[3]||(u[3]=async c=>{var b;return(b=n.value)==null?void 0:b.disableFollow()}),onMousemove:u[4]||(u[4]=async c=>{var b;return(b=n.value)==null?void 0:b.followByMouseEvent(c)}),class:e.normalizeClass(e.unref(k)("db-navigation-item",i.class)),"data-width":v.width,"data-icon":v.icon,"data-hide-icon":e.unref(L)(v.showIcon),"data-active":v.active,"aria-disabled":e.unref(I)(v.disabled)},[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(v.text),1)],64)):e.renderSlot(v.$slots,"default",{key:1})],64)),t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":m.value,disabled:v.disabled,onClick:u[0]||(u[0]=async c=>y(c))},[v.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(v.text),1)],64)):e.renderSlot(v.$slots,"default",{key:1})],8,Za),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":d.value,id:p.value,onClick:u[1]||(u[1]=async c=>r(c))},[a.value?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(P,{icon:"arrow_left",variant:"ghost",id:v.backButtonId,onClick:c=>B(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.backButtonText??e.unref(oe)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(v.$slots,"sub-navigation")],8,xa)],64)):e.createCommentVNode("",!0)],42,Qa))}}),tt=["id"],it=["aria-disabled","open"],me=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},onToggle:{type:Function,default:void 0}},setup(o){const i=o,l=e.ref(R),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{l.value=i.id||"accordion-item-"+C(),i.defaultOpen&&(a.value=i.defaultOpen)});function m(d){d==null||d.preventDefault();const p=!a.value;i.onToggle&&i.onToggle(p),a.value=p}return(d,p)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(k)("db-accordion-item",i.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(I)(d.disabled),ref_key:"_ref",ref:t,open:a.value},[e.createElementVNode("summary",{onClick:p[0]||(p[0]=async n=>m(n))},[d.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.headlinePlain),1)],64)):e.createCommentVNode("",!0),d.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(d.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[d.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.text),1)],64)):e.renderSlot(d.$slots,"default",{key:1})])],8,it)],10,tt))}}),ot=["id","data-variant"],nt=e.defineComponent({__name:"accordion",props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(o){const i=o,l=e.ref(R),a=e.ref(""),t=e.ref(!1),m=e.ref(!1),d=e.ref(null);e.onMounted(()=>{l.value=i.id||"accordion-"+C(),t.value=!0,m.value=!0}),e.watch(()=>[t.value,i.name,i.behavior,l.value],()=>{t.value&&(i.behavior==="single"?i.name?a.value!==i.name&&(a.value=i.name):a.value!==l.value&&l.value&&(a.value=l.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,a.value],()=>{if(d.value){const n=d.value.getElementsByTagName("details");if(n)for(const h of Array.from(n))a.value===""?h.removeAttribute("name"):h.name=a.value}},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,m.value,i.initOpenIndex],()=>{var n;if(d.value&&m.value){if(i.initOpenIndex&&((n=i.initOpenIndex)==null?void 0:n.length)>0){const h=d.value.getElementsByTagName("details");if(h){const r=i.behavior==="single"&&i.initOpenIndex.length>1?[i.initOpenIndex[0]]:i.initOpenIndex;Array.from(h).forEach((y,B)=>{r.includes(B)&&(y.open=!0)})}}m.value=!1}},{immediate:!0,flush:"post"});function p(n){try{return typeof n=="string"?JSON.parse(n):n}catch(h){console.error(h)}return[]}return(n,h)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:d,id:l.value,class:e.normalizeClass(e.unref(k)("db-accordion",i.class)),"data-variant":n.variant},[n.items?e.createCommentVNode("",!0):e.renderSlot(n.$slots,"default",{key:0}),n.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p(n.items),(r,y)=>(e.openBlock(),e.createBlock(me,{key:`accordion-item-${y}`,headlinePlain:r.headlinePlain,disabled:r.disabled,text:r.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,ot))}}),lt=["id","aria-labelledby"],dt=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(o){const i=o,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=i.id||"navigation-"+C()}),(t,m)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":t.labelledBy,class:e.normalizeClass(e.unref(k)("db-navigation",i.class))},[e.createElementVNode("menu",null,[e.renderSlot(t.$slots,"default")])],10,lt))}}),st=["id"],rt=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],ct=e.defineComponent({__name:"popover",props:{open:{type:Boolean,default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},spacing:{default:void 0},placement:{default:void 0},gap:{type:Boolean,default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(o){const i=o,l=e.ref(!1),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.value,l.value],()=>{if(t.value&&l.value){const n=p();n&&(n.ariaHasPopup="true"),l.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[t.value,a.value],()=>{if(t.value){const n=p();n&&(n.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function m(){if(a.value=!0,!t.value)return;const n=t.value.querySelector("article");n&&X(n)}function d(n){const h=n.target;(!h.parentNode||h.parentNode.querySelector(":focus")!==h&&h.parentNode.querySelector(":focus-within")!==h&&h.parentNode.querySelector(":hover")!==h)&&(a.value=!1)}function p(){var n;if(t.value){const h=Array.from(t.value.children);if(h.length>=2){const r=h[0];return r.tagName.includes("-")?((n=r.children)==null?void 0:n.length)>0?r.children[0]:null:r}}return null}return(n,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:t,id:n.id,class:e.normalizeClass(e.unref(k)("db-popover",i.class)),onFocus:h[0]||(h[0]=async r=>m()),onBlur:h[1]||(h[1]=async r=>d(r)),onMouseenter:h[2]||(h[2]=async r=>m()),onMouseleave:h[3]||(h[3]=async r=>d(r))},[e.renderSlot(n.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":n.spacing,"data-gap":e.unref(I)(n.gap),"data-animation":e.unref(I)(n.animation??!0),"data-open":n.open,"data-delay":n.delay,"data-width":n.width,"data-placement":n.placement},[e.renderSlot(n.$slots,"default")],8,rt)],42,st))}}),ft=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],ut=e.defineComponent({__name:"tooltip",props:{showArrow:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:Boolean,default:void 0},width:{default:void 0}},setup(o){const i=o,l=e.ref(R),a=e.ref(!1),t=e.ref(null);e.onMounted(()=>{l.value=i.id||"tooltip-"+C(),a.value=!0}),e.watch(()=>[t.value,a.value],()=>{if(t.value&&a.value&&l.value){let p=t.value.parentElement;p&&p.localName.includes("tooltip")&&(p=p.parentElement),p&&(["mouseenter","focus"].forEach(n=>{p.addEventListener(n,()=>d())}),p.setAttribute("data-has-tooltip","true"),p.setAttribute("aria-describedby",l.value)),a.value=!1}},{immediate:!0,flush:"post"});function m(p){p.stopPropagation()}function d(){t.value&&X(t.value)}return(p,n)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:t,class:e.normalizeClass(e.unref(k)("db-tooltip",i.class)),id:l.value,"data-emphasis":p.emphasis,"data-animation":e.unref(I)(p.animation??!0),"data-delay":p.delay,"data-width":p.width,"data-show-arrow":e.unref(I)(p.showArrow??!0),"data-placement":p.placement,onClick:n[0]||(n[0]=async h=>m(h))},[e.renderSlot(p.$slots,"default")],10,ft))}}),mt=["id"],pt={role:"tablist"},pe=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean}},setup(o){const i=o,l=e.ref(R),a=e.ref(null);return e.onMounted(()=>{l.value=i.id||"tab-list-"+C()}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(k)("db-tab-list",i.class))},[e.createElementVNode("ul",pt,[e.renderSlot(t.$slots,"default")])],10,mt))}}),ht=["id","aria-labelledby"],he=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},labelledBy:{default:void 0}},setup(o){const i=o,l=e.ref(null);return e.onMounted(()=>{}),(a,t)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(k)("db-tab-panel",i.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,ht))}}),gt=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],bt=e.defineComponent({__name:"tabs",props:{arrowScrollDistance:{default:void 0},behavior:{default:void 0},initialSelectedIndex:{default:void 0},initialSelectedMode:{default:void 0},name:{default:void 0},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0}},setup(o){const i=o,l=e.ref("tabs-"+C()),a=e.ref(""),t=e.ref(!1),m=e.ref(!1),d=e.ref(!1),p=e.ref(null),n=e.ref(null);e.onMounted(()=>{l.value=i.id||l.value,a.value=`tabs-${i.name||C()}`,t.value=!0}),e.watch(()=>[n.value,t.value],()=>{if(n.value&&t.value){B(),w(!0);const u=n.value.querySelector(".db-tab-list");u&&new MutationObserver(b=>{b.forEach(f=>{(f.removedNodes.length||f.addedNodes.length)&&(B(),w())})}).observe(u,{childList:!0,subtree:!0}),t.value=!1}},{immediate:!0,flush:"post"});function h(u){try{return typeof u=="string"?JSON.parse(u):u}catch(c){console.error(c)}return[]}function r(u){const c=u.scrollWidth>u.clientWidth;m.value=c&&u.scrollLeft>1,d.value=c&&u.scrollLeft<u.scrollWidth-u.clientWidth}function y(u){var b;let c=i.arrowScrollDistance||100;u&&(c*=-1),(b=p.value)==null||b.scrollBy({top:0,left:c,behavior:"smooth"})}function B(){if(n.value){const u=n.value.querySelector(".db-tab-list");if(u){const c=u.querySelector('[role="tablist"]');c&&(c.setAttribute("aria-orientation",i.orientation||"horizontal"),i.behavior==="arrows"&&(p.value=c,r(c),c.addEventListener("scroll",()=>{r(c)})))}}}function w(u){if(n.value){const c=Array.from(n.value.getElementsByClassName("db-tab-item"));for(const f of c){const N=c.indexOf(f),g=f.querySelector("label"),S=f.querySelector("input");if(S&&g){if(!S.id){const E=`${a.value}-tab-${N}`;g.setAttribute("for",E),S.setAttribute("aria-controls",`${a.value}-tab-panel-${N}`),S.id=E,S.setAttribute("name",a.value)}if(u){const E=!i.initialSelectedMode||i.initialSelectedMode==="auto",G=i.initialSelectedIndex==null&&N===0||i.initialSelectedIndex===N;E&&G&&S.click()}}}const b=Array.from(n.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const f of b){if(f.id)continue;const N=b.indexOf(f);f.id=`${a.value}-tab-panel-${N}`,f.setAttribute("aria-labelledby",`${a.value}-tab-${N}`)}}}function v(u){if(i.onIndexChange&&u.target){const c=u.target.closest("ul"),b=u.target.closest("db-tab-item")??u.target.closest("li");c!==null&&b!==null&&i.onIndexChange(Array.from(c.childNodes).indexOf(b))}i.onTabSelect&&i.onTabSelect(u)}return(u,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:n,id:l.value,class:e.normalizeClass(e.unref(k)("db-tabs",i.class)),"data-orientation":u.orientation,"data-scroll-behavior":u.behavior,"data-alignment":u.alignment??"start","data-width":u.width??"auto",onInput:c[0]||(c[0]=async b=>v(b))},[m.value?(e.openBlock(),e.createBlock(P,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:b=>y(!0)},{default:e.withCtx(()=>c[1]||(c[1]=[e.createTextVNode(" Scroll left ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),u.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(pe,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(u.tabs),(b,f)=>(e.openBlock(),e.createBlock(ue,{key:u.name+"tab-item"+f,active:b.active,label:b.label,iconAfter:b.iconAfter,icon:b.icon,noText:b.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h(u.tabs),(b,f)=>(e.openBlock(),e.createBlock(he,{key:u.name+"tab-panel"+f,content:b.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createBlock(P,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:b=>y()},{default:e.withCtx(()=>c[2]||(c[2]=[e.createTextVNode(" Scroll right ")])),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default")],42,gt))}}),yt=["adaptive","neutral","critical","informational","warning","successful"],vt=["medium","small","large","none"],Bt=["medium","small","large","none"],kt=["left","right","top","bottom","left-start","left-end","right-start","right-end","top-start","top-end","bottom-start","bottom-end"],Et=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Nt=["horizontal","vertical"],St=["full","auto"],wt=["full","medium","large","small"],Ct=["none","slow","fast"],Lt=["auto","fixed"],It=["small","medium"],ge=["weak","strong"],Tt=[...ge,"origin"],_t=["invalid","valid","no-validation"],Dt=["above","floating"],Ft=["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"],At=["time","true","false","date","page","step","location"],Vt=["_self","_blank","_parent","_top"],$t=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Mt=["start","center"],zt=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Rt=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:Boolean,default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:Boolean},gap:{default:void 0}},setup(o){const i=o,l=e.ref(null);return(a,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(k)("db-stack",i.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(I)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,zt))}});s.AlignmentList=Mt,s.AutoCompleteList=Ft,s.COLOR=x,s.COLORS=Se,s.COLORS_SIMPLE=we,s.COLOR_CONST=Ee,s.COLOR_SIMPLE=Z,s.DBAccordion=nt,s.DBAccordionItem=me,s.DBBadge=Ae,s.DBBrand=$e,s.DBButton=P,s.DBCard=ze,s.DBCheckbox=qe,s.DBDivider=Xe,s.DBDrawer=ce,s.DBHeader=ca,s.DBIcon=ua,s.DBInfotext=_,s.DBInput=va,s.DBLink=ka,s.DBNavigation=dt,s.DBNavigationItem=at,s.DBNotification=De,s.DBPage=Na,s.DBPopover=ct,s.DBRadio=Ca,s.DBSection=Ia,s.DBSelect=za,s.DBStack=Rt,s.DBSwitch=Pa,s.DBTabItem=ue,s.DBTabList=pe,s.DBTabPanel=he,s.DBTabs=bt,s.DBTag=Xa,s.DBTextarea=Ja,s.DBTooltip=ut,s.DEFAULT_BACK=oe,s.DEFAULT_BURGER_MENU=ne,s.DEFAULT_CLOSE_BUTTON=J,s.DEFAULT_DATALIST_ID_SUFFIX=K,s.DEFAULT_ICON=le,s.DEFAULT_ID=R,s.DEFAULT_INVALID_MESSAGE=z,s.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=$,s.DEFAULT_LABEL=q,s.DEFAULT_MESSAGE_ID_SUFFIX=A,s.DEFAULT_PLACEHOLDER=Y,s.DEFAULT_PLACEHOLDER_ID_SUFFIX=j,s.DEFAULT_ROWS=de,s.DEFAULT_VALID_MESSAGE=M,s.DEFAULT_VALID_MESSAGE_ID_SUFFIX=V,s.DEFAULT_VIEWPORT=se,s.DENSITIES=Ne,s.DENSITY=Q,s.DENSITY_CONST=ke,s.DESKTOP_VIEWPORT=re,s.EmphasisList=ge,s.GapSpacingList=Et,s.LabelVariantList=Dt,s.LinkCurrentList=At,s.LinkReferrerPolicyList=$t,s.LinkTargetList=Vt,s.MarginList=Bt,s.MaxWidthList=wt,s.NavigationItemSafeTriangle=fe,s.OrientationList=Nt,s.PlacementList=kt,s.PopoverDelayList=Ct,s.PopoverWidthList=Lt,s.SEMANTIC=ee,s.SEMANTICS=Ce,s.SemanticList=yt,s.SizeList=It,s.SpacingList=vt,s.TESTING_VIEWPORTS=Le,s.TagEmphasisList=Tt,s.ValidationList=_t,s.WidthList=St,s.addAttributeToChildren=H,s.cls=k,s.delay=D,s.getBooleanAsString=I,s.getHideProp=L,s.handleDataOutside=X,s.hasVoiceOver=F,s.isArrayOfStrings=ie,s.isEventTargetNavigationItem=ae,s.isInView=te,s.stringPropVisible=T,s.uuid=C,s.visibleInVX=be,s.visibleInVY=ye,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -38,7 +38,7 @@ export type SemanticProps = {
38
38
  };
39
39
  export type IconProps = {
40
40
  /**
41
- * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
41
+ * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
42
42
  */
43
43
  icon?: IconTypes;
44
44
  };
@@ -51,7 +51,7 @@ export type ShowIconProps = {
51
51
  };
52
52
  export type IconAfterProps = {
53
53
  /**
54
- * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
54
+ * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
55
55
  */
56
56
  iconAfter?: IconTypes;
57
57
  };
@@ -61,7 +61,7 @@ export type SpacingProps = {
61
61
  /**
62
62
  * The spacing attribute changes the padding of the component.
63
63
  */
64
- spacing?: SpacingType;
64
+ spacing?: SpacingType | string;
65
65
  };
66
66
  export declare const MarginList: readonly ["medium", "small", "large", "none"];
67
67
  export type MarginType = (typeof MarginList)[number];
@@ -116,7 +116,7 @@ export type WidthProps = {
116
116
  /**
117
117
  * Width of the component. Auto width based on children size, full width based on parent elements width.
118
118
  */
119
- width?: WidthType;
119
+ width?: WidthType | string;
120
120
  };
121
121
  export declare const MaxWidthList: readonly ["full", "medium", "large", "small"];
122
122
  export type MaxWidthType = (typeof MaxWidthList)[number];
@@ -378,7 +378,7 @@ export type AlignmentProps = {
378
378
  /**
379
379
  * Define the content alignment in full width
380
380
  */
381
- alignment?: AlignmentType;
381
+ alignment?: AlignmentType | string;
382
382
  };
383
383
  export type ActiveProps = {
384
384
  /**
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "description": "Vue components for @db-ux/core-components",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/db-ux-design-system/core-web.git"
8
+ "url": "git+https://github.com/db-ux-design-system/core-web.git"
9
9
  },
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/db-ux.umd.js",
@@ -41,7 +41,7 @@
41
41
  "replace-in-file": "^8.3.0",
42
42
  "tsx": "^4.19.3",
43
43
  "typescript": "^5.4.5",
44
- "vite": "^6.2.0",
44
+ "vite": "^6.2.2",
45
45
  "vue": "^3.5.13",
46
46
  "vue-tsc": "^2.2.8"
47
47
  },
@@ -52,7 +52,7 @@
52
52
  "sideEffects": false,
53
53
  "source": "src/index.ts",
54
54
  "dependencies": {
55
- "@db-ux/core-components": "1.1.1",
56
- "@db-ux/core-foundations": "1.1.1"
55
+ "@db-ux/core-components": "1.2.0",
56
+ "@db-ux/core-foundations": "1.2.0"
57
57
  }
58
58
  }