@db-ux/v-core-components 2.2.5 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import type { DBButtonProps } from "./model";
2
- import { ClickEvent } from "../../shared/model";
3
2
  declare var __VLS_1: {};
4
3
  type __VLS_Slots = {} & {
5
4
  default?: (props: typeof __VLS_1) => any;
@@ -21,10 +20,10 @@ declare const __VLS_component: import("vue").DefineComponent<DBButtonProps, {},
21
20
  className: string;
22
21
  describedbyid: string;
23
22
  id: string;
24
- onClick: (event: ClickEvent<HTMLButtonElement>) => void;
23
+ onClick: (event: import("../..").ClickEvent<HTMLButtonElement>) => void;
25
24
  icon: import("@db-ux/core-foundations").IconTypes;
26
- width: import("../../shared/model").WidthType | string;
27
- size: import("../../shared/model").SizeType;
25
+ width: import("../..").WidthType | string;
26
+ size: import("../..").SizeType;
28
27
  showIcon: boolean | string;
29
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
29
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,5 +1,4 @@
1
1
  import { DBLinkProps } from "./model";
2
- import { ClickEvent } from "../../shared/model";
3
2
  declare var __VLS_1: {};
4
3
  type __VLS_Slots = {} & {
5
4
  default?: (props: typeof __VLS_1) => any;
@@ -13,12 +12,12 @@ declare const __VLS_component: import("vue").DefineComponent<DBLinkProps, {}, {}
13
12
  children: any;
14
13
  className: string;
15
14
  id: string;
16
- onClick: (event: ClickEvent<HTMLAnchorElement>) => void;
15
+ onClick: (event: import("../..").ClickEvent<HTMLAnchorElement>) => void;
17
16
  size: import("./model").LinkSizeType;
18
17
  showIcon: boolean | string;
19
- target: import("../../shared/model").LinkTargetType;
18
+ target: import("../..").LinkTargetType;
20
19
  role: string;
21
- current: boolean | import("../../shared/model").LinkCurrentType;
20
+ current: boolean | import("../..").LinkCurrentType;
22
21
  href: string;
23
22
  hreflang: string;
24
23
  rel: string;
package/dist/db-ux.es.js CHANGED
@@ -222,7 +222,7 @@ const al = Object.entries(na).map(([, i]) => i), Ua = {
222
222
  var t;
223
223
  if (e.value && l.value && (t = a.placement) != null && t.startsWith("corner")) {
224
224
  let p = e.value.parentElement;
225
- p && p.localName.includes("badge") && (p = p.parentElement), p && p.setAttribute("data-has-badge", "true");
225
+ p && p.localName.includes("badge") && (p = p.parentElement), p && (p.dataset.hasBadge = "true");
226
226
  }
227
227
  },
228
228
  {
@@ -770,7 +770,7 @@ const al = Object.entries(na).map(([, i]) => i), Ua = {
770
770
  const c = L + B;
771
771
  i.style.insetBlockStart = `calc(${L}px + ${e})`, i.style.insetBlockEnd = `calc(${c > f ? f : c}px + ${e})`;
772
772
  }
773
- i.style.position = "fixed", i.setAttribute("data-corrected-placement", g);
773
+ i.style.position = "fixed", i.dataset.correctedPlacement = g;
774
774
  }, ra = (i) => {
775
775
  var l, e;
776
776
  const {
@@ -1840,7 +1840,7 @@ const Kt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
1840
1840
  f.addEventListener(c, () => h(f));
1841
1841
  }), f.addEventListener("keydown", (c) => r(c)), ["mouseleave", "focusout"].forEach((c) => {
1842
1842
  f.addEventListener(c, () => g());
1843
- }), f.setAttribute("data-has-tooltip", "true"), a.variant === "label" ? f.setAttribute("aria-labelledby", l.value) : f.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((c) => {
1843
+ }), f.dataset.hasTooltip = "true", a.variant === "label" ? f.setAttribute("aria-labelledby", l.value) : f.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((c) => {
1844
1844
  const I = c.find(({ target: C }) => C === v());
1845
1845
  I && !I.isIntersecting && r(!1);
1846
1846
  })), e.value = !1;
package/dist/db-ux.umd.js CHANGED
@@ -1 +1 @@
1
- (function(m,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(m=typeof globalThis<"u"?globalThis:m||self,e(m["DB-UX"]={},m.Vue))})(this,function(m,e){"use strict";var Co=Object.defineProperty;var No=(m,e,F)=>e in m?Co(m,e,{enumerable:!0,configurable:!0,writable:!0,value:F}):m[e]=F;var X=(m,e,F)=>No(m,typeof e!="symbol"?e+"":e,F);const F=()=>{var o,t;if(typeof window<"u"){if((o=window.crypto)!=null&&o.randomUUID)return window.crypto.randomUUID();if((t=window.crypto)!=null&&t.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},we=(o,t)=>{const l=o.children;Object.values(l).forEach(a=>{a.setAttribute(t.key,t.value),a.children.length>0&&we(a,t)})},T=(...o)=>{let t="";for(const l of o)if(l)if(typeof l=="string")t+=`${l} `;else for(const a in l)l[a]&&(t+=`${a} `);return t.trim()},Oe=o=>Array.isArray(o)&&o.every(t=>typeof t=="string"),va=["Mac","iPhone","iPad","iPod"],Y=()=>typeof window<"u"&&va.some(o=>window.navigator.userAgent.includes(o)),U=(o,t)=>new Promise(()=>setTimeout(o,t)),A=o=>{if(o!=null)return String(typeof o=="string"?!!o:o)},L=(o,t)=>{if(o!=null)return typeof o=="string"&&t?!!(t===o||o):!!o},te=(o,t)=>{if(!(o==null&&t==null))return Number(o??t)},Ee=(o,t)=>t&&["number","range"].includes(t)?te(o):o,z=o=>{if(o!=null)return A(!o)},P=(o,t)=>(t===void 0||!!t)&&!!o,Ce=o=>o.querySelector('input[type="search"]'),ka=(o,t)=>{const l=o.id??o.value??F();return`${t}${l}`},Ge=o=>o.key!==void 0,Ba=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","form","value","aria-describedby","aria-expanded","aria-pressed"],ie=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},noText:{type:[Boolean,String],default:void 0},state:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(T)("db-button",t.class)),type:i.type||"button",disabled:e.unref(L)(i.disabled,"disabled"),"aria-label":i.label,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-size":i.size,"data-state":i.state,"data-width":i.width,"data-variant":i.variant,"data-no-text":e.unref(A)(i.noText),name:i.name,form:i.form,value:i.value,"aria-describedby":i.describedbyid,"aria-expanded":i.ariaexpanded,"aria-pressed":i.ariapressed,onClick:p[0]||(p[0]=async d=>a(d))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,Ba))}}),ne="OVERWRITE_DEFAULT_ID",oe="LABEL SHOULD BE SET",Ne=" ",qe="MESSAGE SHOULD BE SET",Le="-label",Te="-select",K="-message",J="-valid-message",Q="-invalid-message",ue="-placeholder",Ie="-datalist",Z="TODO: Add a validMessage",G="TODO: Add an invalidMessage",De="Remove",We="Back",Xe="Selected",He="BurgerMenu",je="brand",Ye=4,ye="Close",Sa="density",wa="color";var _e=(o=>(o.FUNCTIONAL="functional",o.REGULAR="regular",o.EXPRESSIVE="expressive",o))(_e||{});const Ea=Object.entries(_e).map(([,o])=>o);var $e=(o=>(o.PRIMARY="primary",o))($e||{}),Ve=(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))(Ve||{});const Ca=Object.entries(Ve).map(([,o])=>o),Na=Object.entries($e).map(([,o])=>o);var Ae=(o=>(o.CRITICAL="critical",o.INFORMATIONAL="informational",o.WARNING="warning",o.SUCCESSFUL="successful",o))(Ae||{});const La=Object.entries(Ae).map(([,o])=>o),Ke={width:390,height:884},Je={width:1920,height:1280},Ta=[{name:"desktop",...Je},{name:"tablet",width:768,height:1024},{name:"mobile",...Ke}],Ia=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Da={key:0},_a={key:1},$a=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:[Boolean,String]},width:{},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){i&&(i.stopPropagation(),t.onClose&&t.onClose(i))}return(i,p)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(T)("db-notification",t.class)),"aria-live":i.ariaLive,"data-semantic":i.semantic,"data-variant":i.variant,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-link-variant":i.linkVariant},[e.renderSlot(i.$slots,"image"),e.unref(P)(i.headline,i.showHeadline)?(e.openBlock(),e.createElementBlock("header",Da,e.toDisplayString(i.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})]),e.unref(P)(i.timestamp,i.showTimestamp)?(e.openBlock(),e.createElementBlock("span",_a,e.toDisplayString(i.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"link"),e.unref(L)(i.closeable,"closeable")?(e.openBlock(),e.createBlock(ie,{key:2,icon:"cross",variant:"ghost",size:"small",id:i.closeButtonId,noText:!0,onClick:d=>a(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.closeButtonText??e.unref(ye)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,Ia))}}),Va=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Aa=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var i;if(a.value&&l.value&&(i=t.placement)!=null&&i.startsWith("corner")){let p=a.value.parentElement;p&&p.localName.includes("badge")&&(p=p.parentElement),p&&p.setAttribute("data-has-badge","true")}},{immediate:!0,flush:"post"}),(i,p)=>{var d;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(T)("db-badge",t.class)),"data-semantic":i.semantic,"data-size":i.size,"data-emphasis":i.emphasis,"data-placement":i.placement,"data-label":((d=i.placement)==null?void 0:d.startsWith("corner"))&&(i.label??e.unref(oe))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,Va)}}}),Fa=["data-icon","data-hide-icon","id"],Ma=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(je),"data-hide-icon":e.unref(z)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(T)("db-brand",t.class))},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Fa))}}),za=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],Ra=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(T)("db-card",t.class)),"data-behavior":i.behavior,"data-elevation-level":i.elevationLevel,"data-spacing":i.spacing,role:i.behavior==="interactive"?"button":void 0,tabIndex:i.behavior==="interactive"?0:void 0,onClick:p[0]||(p[0]=async d=>a(d))},[e.renderSlot(i.$slots,"default")],10,za))}}),H=(o,t,l="value")=>{o(`update:${l}`,t.target[l])},Ua=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],O=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-infotext",t.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(z)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Ua))}}),Pa=["data-size","data-hide-label"],Oa=["for"],Ga=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],qa={"data-visually-hidden":"true",role:"status"},Wa=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(""),E=e.ref(""),g=e.ref(null);e.onMounted(()=>{i.value=!0;const b=a.id??`checkbox-${F()}`;p.value=b,d.value=b+K,B.value=b+J,r.value=b+Q,f.value=a.invalidMessage||G}),e.watch(()=>[g.value,a.invalidMessage],()=>{var b;f.value=a.invalidMessage||((b=g.value)==null?void 0:b.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[p.value],()=>{if(p.value){const b=p.value+K;d.value=b,B.value=p.value+J,r.value=p.value+Q,P(a.message,a.showMessage)&&(s.value=b)}},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value,a.indeterminate],()=>{g.value&&a.indeterminate!==void 0&&(g.value.indeterminate=!!L(a.indeterminate))},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value,a.checked],()=>{i.value&&g.value&&(a.checked!=null&&(g.value.checked=!!L(a.checked)),i.value=!1)},{immediate:!0,flush:"post"});function h(){return!!(a.validMessage??a.validation==="valid")}function u(){var b,v,_;!((b=g.value)!=null&&b.validity.valid)||a.validation==="invalid"?(s.value=r.value,f.value=a.invalidMessage||((v=g.value)==null?void 0:v.validationMessage)||G,Y()&&(E.value=f.value,U(()=>E.value="",1e3))):h()&&((_=g.value)!=null&&_.validity.valid)&&a.required?(s.value=B.value,Y()&&(E.value=a.validMessage??Z,U(()=>E.value="",1e3))):P(a.message,a.showMessage)?s.value=d.value:s.value=""}function c(b){a.onChange&&a.onChange(b),H(l,b,"checked"),u()}function S(b){a.onBlur&&a.onBlur(b)}function C(b){a.onFocus&&a.onFocus(b)}return(b,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("db-checkbox",a.class)),"data-size":b.size,"data-hide-label":e.unref(z)(b.showLabel)},[e.createElementVNode("label",{for:p.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":b.validation==="invalid","data-custom-validity":b.validation,ref_key:"_ref",ref:g,id:p.value,name:b.name,checked:e.unref(L)(b.checked,"checked"),disabled:e.unref(L)(b.disabled,"disabled"),value:b.value,required:e.unref(L)(b.required,"required"),onChange:v[0]||(v[0]=async _=>c(_)),onBlur:v[1]||(v[1]=async _=>S(_)),onFocus:v[2]||(v[2]=async _=>C(_)),"aria-describedby":b.ariaDescribedBy??s.value},null,40,Ga),b.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.label),1)],64)):e.renderSlot(b.$slots,"default",{key:1})],8,Oa),e.unref(P)(b.message,b.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:b.messageIcon,id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),h()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1},8,["id"]),e.createElementVNode("span",qa,e.toDisplayString(E.value),1)],10,Pa))}}),Xa=["id","data-margin","data-variant","data-emphasis","data-width"],Ha=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},emphasis:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(T)("db-divider",t.class))},null,10,Xa))}}),ja=["id","data-backdrop","data-variant"],Ya=["data-spacing","data-width","data-direction","data-rounded"],Ka={class:"db-drawer-header"},Ja={class:"db-drawer-header-text"},Qa={class:"db-drawer-content"},Qe=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{p()}),e.watch(()=>[t.open],()=>{p()},{immediate:!0,flush:"post"});function i(d,B){var r;d&&(Ge(d)?d.key==="Escape"&&(d.preventDefault(),t.onClose&&t.onClose(d)):(B&&(d.stopPropagation(),t.onClose&&t.onClose(d)),((r=d.target)==null?void 0:r.nodeName)==="DIALOG"&&d.type==="click"&&t.backdrop!=="none"&&t.onClose&&t.onClose(d)))}function p(){if(l.value){const d=!!t.open;d&&!l.value.open&&(a.value&&(a.value.hidden=!1),t.backdrop==="none"||t.variant==="inside"?l.value.show():l.value.showModal()),!d&&l.value.open&&(a.value&&(a.value.hidden=!0),U(()=>{var B;a.value&&(a.value.hidden=!1),(B=l.value)==null||B.close()},401))}}return(d,B)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:d.id,ref_key:"_ref",ref:l,onClick:B[0]||(B[0]=async r=>i(r)),onKeydown:B[1]||(B[1]=async r=>i(r)),"data-backdrop":d.backdrop,"data-variant":d.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(T)("db-drawer-container",t.class)),"data-spacing":d.spacing,"data-width":d.width,"data-direction":d.direction,"data-rounded":e.unref(A)(d.rounded)},[e.createElementVNode("header",Ka,[e.createElementVNode("div",Ja,[e.renderSlot(d.$slots,"drawer-header")]),e.createVNode(ie,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:d.closeButtonId,noText:!0,onClick:r=>i(r,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.closeButtonText??e.unref(ye)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Qa,[e.renderSlot(d.$slots,"default")])],10,Ya)],40,ja))}}),Za=o=>{var u;const{top:t,bottom:l,left:a,right:i}=o.getBoundingClientRect(),{innerHeight:p,innerWidth:d}=window;let B=t<0,r=l>p,f=a<0,s=i>d;const E=o.dataset.outsideVy,g=o.dataset.outsideVx,h=(u=o==null?void 0:o.parentElement)==null?void 0:u.getBoundingClientRect();return h&&(E&&(o.dataset.outsideVy==="top"?B=h.top-(l-h.bottom)<0:r=h.bottom+(h.top-t)>p),g&&(o.dataset.outsideVx==="left"?f=h.left-(i-h.right)<0:s=h.right+(h.left-a)>d)),{outTop:B,outBottom:r,outLeft:f,outRight:s}},xa=o=>{const{outTop:t,outBottom:l,outLeft:a,outRight:i}=Za(o);let p={};return t||l?(p={vy:t?"top":"bottom"},o.dataset.outsideVy=p.vy):delete o.dataset.outsideVy,a||i?(p={...p,vx:i?"right":"left"},o.dataset.outsideVx=p.vx):delete o.dataset.outsideVx,p},et=(o,t,l)=>{if(getComputedStyle(o).zIndex==="9999")return;const{top:a,bottom:i,childHeight:p,childWidth:d,width:B,right:r,left:f,correctedPlacement:s}=Ze(o,t,l);o.dataset.width==="full"&&(o.style.inlineSize=`${B}px`),s==="top"||s==="bottom"||s==="top-start"||s==="bottom-start"?o.style.insetInlineStart=`${f}px`:(s==="top-end"||s==="bottom-end")&&(o.style.insetInlineStart=`${r-d}px`),s!=null&&s.startsWith("top")?o.style.insetBlockStart=`${a-p}px`:s!=null&&s.startsWith("bottom")&&(o.style.insetBlockStart=`${i}px`),o.style.position="fixed"},Ze=(o,t,l)=>{if(!o||!t)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:l,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const a=o.getBoundingClientRect(),{top:i,height:p,bottom:d,right:B,left:r,width:f}=t.getBoundingClientRect(),{innerHeight:s,innerWidth:E}=window;let g=a.height,h=a.width;(l==="bottom"||l==="top")&&(h=h/2),(l==="left"||l==="right")&&(g=g/2);const u=d+g>s,c=i-g<0,S=r-h<0,C=B+h>E;let b=l;return l.startsWith("bottom")?u?(b=l==null?void 0:l.replace("bottom","top"),S&&C?b="top":S?b="top-start":C&&(b="top-end")):S&&C?b="bottom":S?b="bottom-start":C&&(b="bottom-end"):l.startsWith("top")?c?(b=l==null?void 0:l.replace("top","bottom"),S&&C?b="bottom":S?b="bottom-start":C&&(b="bottom-end")):S&&C?b="top":S?b="top-start":C&&(b="top-end"):l.startsWith("left")?S?(b=l==null?void 0:l.replace("left","right"),u&&c?b="right":u?b="right-end":c&&(b="right-start")):u&&c?b="left":u?b="left-end":c&&(b="left-start"):b.startsWith("right")&&(C?(b=l==null?void 0:l.replace("right","left"),u&&c?b="left":u?b="left-end":c&&(b="left-start")):u&&c?b="right":u?b="right-end":c&&(b="right-start")),{top:i,bottom:d,right:B,height:p,width:f,left:r,childHeight:a.height,childWidth:a.width,correctedPlacement:b,innerWidth:E,innerHeight:s}},xe=(o,t,l)=>{const a=getComputedStyle(o).getPropertyValue("--db-popover-distance")??"0px",{top:i,height:p,width:d,childHeight:B,childWidth:r,right:f,left:s,bottom:E,correctedPlacement:g,innerWidth:h,innerHeight:u}=Ze(o,t,l);if(r>d&&(g.startsWith("bottom")||g.startsWith("top"))){const c=d/2/r*100;g.endsWith("start")?o.style.setProperty("--db-tooltip-arrow-inline-start",`${c}%`):g.endsWith("end")&&o.style.setProperty("--db-tooltip-arrow-inline-start",`${100-c}%`)}if(B>p&&(g.startsWith("left")||g.startsWith("bottom"))){const c=p/2/B*100;g.endsWith("start")?o.style.setProperty("--db-tooltip-arrow-block-start",`${c}%`):g.endsWith("end")&&o.style.setProperty("--db-tooltip-arrow-block-start",`${100-c}%`)}if(g==="right"||g==="left")o.style.insetBlockStart=`${i+p/2}px`;else if(g==="right-start"||g==="left-start"){const c=i+B;o.style.insetBlockStart=`${i}px`,o.style.insetBlockEnd=`${c>u?u:c}px`}else if(g==="right-end"||g==="left-end"){const c=E-B;o.style.insetBlockStart=`${c<0?0:c}px`,o.style.insetBlockEnd=`${E}px`}else if(g==="top"||g==="bottom")o.style.insetInlineStart=`${s+d/2}px`;else if(g==="top-start"||g==="bottom-start"){const c=s+r;o.style.insetInlineStart=`${s}px`,o.style.insetInlineEnd=`${c>h?h:c}px`}else if(g==="top-end"||g==="bottom-end"){const c=s-r;o.style.insetInlineStart=`${f-r}px`,o.style.insetInlineEnd=`${c<0?0:c}px`}if(g!=null&&g.startsWith("right")){const c=f+r;o.style.insetInlineStart=`calc(${f}px + ${a})`,o.style.insetInlineEnd=`calc(${c>h?h:c}px + ${a})`}else if(g!=null&&g.startsWith("left")){const c=s-r;o.style.insetInlineStart=`calc(${c<0?0:c}px - ${a})`,o.style.insetInlineEnd=`calc(${f}px - ${a})`}else if(g!=null&&g.startsWith("top")){const c=i-B;o.style.insetBlockStart=`calc(${c<0?0:c}px - ${a})`,o.style.insetBlockEnd=`calc(${E}px - ${a})`}else if(g!=null&&g.startsWith("bottom")){const c=E+B;o.style.insetBlockStart=`calc(${E}px + ${a})`,o.style.insetBlockEnd=`calc(${c>u?u:c}px + ${a})`}o.style.position="fixed",o.setAttribute("data-corrected-placement",g)},Fe=o=>{var l,a;const{target:t}=o;return!!(!((l=t==null?void 0:t.classList)!=null&&l.contains("db-navigation-item-expand-button"))&&((a=t==null?void 0:t.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class ea{constructor(t,l){X(this,"element");X(this,"subNavigation");X(this,"parentSubNavigation",null);X(this,"triangleData");X(this,"initialized",!1);X(this,"mouseX",0);X(this,"mouseY",0);var a;this.element=t,this.subNavigation=l,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var l,a;const t=((l=this.parentSubNavigation)==null?void 0:l.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${t}px`),this.initialized=!0}enableFollow(){var i;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const t=xa(this.subNavigation),l=this.element.getBoundingClientRect(),a=((i=this.parentSubNavigation)==null?void 0:i.getBoundingClientRect().width)??0;this.triangleData={itemRect:l,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-l.width)/2,outsideVX:t.vx,outsideVY:t.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?this.triangleData.outsideVX==="right"?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,this.triangleData.itemRect.width*.75):0}getTriangleTipY(){if(!this.triangleData)return 0;const t=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?t+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):t}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const t=this.triangleData.outsideVX==="right";return!!(t&&this.mouseX<-1*this.triangleData.padding||!t&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(t){if(!this.triangleData)return;if(t==="fill-gap"){const d=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,B=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${B} ${d}`,lt:`${B} 0`,rt:"100% 0",rb:`100% ${d}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),i=`${l}px ${a}px`,p=`${l}px ${a}px`;return{lb:i,lt:p,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(t){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=t.clientX-this.triangleData.itemRect.left,this.mouseY=t.clientY-this.triangleData.itemRect.top;const 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 at=["id","data-width","data-on-forcing-mobile"],tt={class:"db-header-drawer-navigation"},it={class:"db-header-meta-navigation"},ot={class:"db-header-secondary-action"},lt={class:"db-header-meta-navigation"},nt={class:"db-header-navigation-bar"},dt={class:"db-header-brand-container"},st={class:"db-header-navigation-container"},rt={class:"db-header-navigation"},ct={class:"db-header-primary-action"},ft={class:"db-header-action-container"},ut={class:"db-header-burger-menu-container"},mt={class:"db-header-secondary-action"},pt=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(!1),p=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=t.id||"header-"+F()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&t.forceMobile){const r=document.getElementById(l.value??"");r&&we(r,{key:"data-force-mobile",value:"true"}),i.value=!0}},{immediate:!0,flush:"post"});function d(r){const f=!L(t.drawerOpen,"drawerOpen");t.onToggle&&t.onToggle(f)}function B(r){Fe(r)&&d()}return(r,f)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:p,class:e.normalizeClass(e.unref(T)("db-header",t.class)),id:l.value,"data-width":r.width,"data-on-forcing-mobile":r.forceMobile&&!i.value},[e.createVNode(Qe,{class:"db-header-drawer",spacing:"small",rounded:!0,open:e.unref(L)(r.drawerOpen),onClose:s=>d()},{default:e.withCtx(()=>[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:"db-header-navigation",onClick:f[0]||(f[0]=async s=>B(s))},[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",it,[e.renderSlot(r.$slots,"meta-navigation")])]),e.createElementVNode("div",ot,[e.renderSlot(r.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",lt,[e.renderSlot(r.$slots,"meta-navigation")]),e.createElementVNode("div",nt,[e.createElementVNode("div",dt,[e.renderSlot(r.$slots,"brand")]),e.createElementVNode("div",st,[e.createElementVNode("div",rt,[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(r.$slots,"primary-action")])]),e.createElementVNode("div",ft,[e.createElementVNode("div",ut,[e.createVNode(ie,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:s=>d()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.burgerMenuLabel??e.unref(He)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",mt,[e.renderSlot(r.$slots,"secondary-action")])])])],10,at))}}),ht=["id","data-icon","data-icon-weight","data-icon-variant"],gt=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-icon",t.class)),"data-icon":a.icon,"data-icon-weight":a.weight,"data-icon-variant":a.variant},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,ht))}}),bt=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],yt=["for"],vt=["aria-invalid","data-custom-validity","data-field-sizing","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],kt=["id"],Bt=["value"],St={"data-visually-hidden":"true",role:"status"},aa=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String],default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(""),E=e.ref(""),g=e.ref(""),h=e.ref(null);e.onMounted(()=>{const y=a.id??`input-${F()}`;i.value=y,p.value=y+K,d.value=y+J,B.value=y+Q,f.value=y+Ie,r.value=a.invalidMessage||G}),e.watch(()=>[h.value,a.invalidMessage],()=>{var y;r.value=a.invalidMessage||((y=h.value)==null?void 0:y.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const y=i.value+K;p.value=y,d.value=i.value+J,B.value=i.value+Q,f.value=a.dataListId??i.value+Ie,P(a.message,a.showMessage)&&(s.value=y)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{E.value=a.value},{immediate:!0,flush:"post"});function u(){return!!(a.validMessage??a.validation==="valid")}function c(){var y,$,k;!((y=h.value)!=null&&y.validity.valid)||a.validation==="invalid"?(s.value=B.value,r.value=a.invalidMessage||(($=h.value)==null?void 0:$.validationMessage)||G,Y()&&(g.value=r.value,U(()=>g.value="",1e3))):u()&&((k=h.value)!=null&&k.validity.valid)&&(a.required||a.minLength||a.maxLength||a.pattern)?(s.value=d.value,Y()&&(g.value=a.validMessage??Z,U(()=>g.value="",1e3))):P(a.message,a.showMessage)?s.value=p.value:s.value=""}function S(y){a.input&&a.input(y),E.value=y.target.value,a.onInput&&a.onInput(y),H(l,y),c()}function C(y){a.onChange&&a.onChange(y),H(l,y),c()}function b(y){a.onBlur&&a.onBlur(y)}function v(y){a.onFocus&&a.onFocus(y)}function _(){const y=a.dataList;return Array.from((Oe(y)?y==null?void 0:y.map($=>({value:$,label:void 0})):y)||[])}return(y,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("db-input",a.class)),"data-variant":y.variant,"data-hide-label":e.unref(z)(y.showLabel),"data-hide-icon":e.unref(z)(y.showIcon),"data-icon":y.icon,"data-icon-after":y.iconAfter,"data-hide-icon-after":e.unref(z)(y.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(y.label??e.unref(oe)),9,yt),e.createElementVNode("input",{"aria-invalid":y.validation==="invalid","data-custom-validity":y.validation,"data-field-sizing":y.fieldSizing,ref_key:"_ref",ref:h,id:i.value,name:y.name,type:y.type||"text",placeholder:y.placeholder??e.unref(Ne),disabled:e.unref(L)(y.disabled,"disabled"),required:e.unref(L)(y.required,"required"),step:e.unref(te)(y.step),value:y.value??E.value,maxLength:e.unref(te)(y.maxLength,y.maxlength),minLength:e.unref(te)(y.minLength,y.minlength),max:e.unref(Ee)(y.max,y.type),min:e.unref(Ee)(y.min,y.type),readOnly:e.unref(L)(y.readOnly,"readOnly")||e.unref(L)(y.readonly,"readonly"),form:y.form,pattern:y.pattern,size:y.size,autoComplete:y.autocomplete,autoFocus:e.unref(L)(y.autofocus,"autofocus"),onInput:$[0]||($[0]=async k=>S(k)),onChange:$[1]||($[1]=async k=>C(k)),onBlur:$[2]||($[2]=async k=>b(k)),onFocus:$[3]||($[3]=async k=>v(k)),list:y.dataList&&f.value,"aria-describedby":y.ariaDescribedBy??s.value},null,40,vt),y.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:f.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_(),k=>(e.openBlock(),e.createElementBlock("option",{key:f.value+"-option-"+k.value,value:k.value},e.toDisplayString(k.label),9,Bt))),128))],8,kt)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"default"),e.unref(P)(y.message,y.showMessage)?(e.openBlock(),e.createBlock(O,{key:1,size:"small",icon:y.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),u()?(e.openBlock(),e.createBlock(O,{key:2,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",St,e.toDisplayString(g.value),1)],10,bt))}}),wt=["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"],Et=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(T)("db-link",t.class)),href:i.href,target:i.target,rel:i.rel,role:i.role,hrefLang:i.hreflang,"aria-disabled":e.unref(A)(i.disabled),tabIndex:i.disabled?-1:0,"aria-selected":e.unref(A)(i.selected),"aria-label":i.label,"aria-current":i.current,"data-size":i.size,"data-hide-icon-after":e.unref(z)(i.showIcon??!0),"data-variant":i.variant,"data-content":i.content||"internal",onClick:p[0]||(p[0]=async d=>a(d))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,wt))}}),Ct=["id","data-variant","data-fade-in","data-fonts-loaded"],Nt=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(t.documentOverflow==="hidden"||t.variant==="fixed"&&t.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{l.value=!t.fadeIn,document&&t.fadeIn?document.fonts.ready.then(()=>{l.value=!0}):l.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(T)("db-page",t.class)),"data-variant":i.variant,"data-fade-in":e.unref(A)(i.fadeIn),"data-fonts-loaded":e.unref(A)(l.value)},[e.renderSlot(i.$slots,"header"),e.createElementVNode("main",{class:e.normalizeClass(e.unref(T)("db-main",i.mainClass))},[e.renderSlot(i.$slots,"default")],2),e.renderSlot(i.$slots,"footer")],10,Ct))}}),Lt=["data-size","data-hide-label","for"],Tt=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],It=e.defineComponent({__name:"radio",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{i.value=!0,p.value=a.id??`radio-${F()}`}),e.watch(()=>[i.value,d.value,a.checked],()=>{a.checked&&i.value&&d.value&&(d.value.checked=!0)},{immediate:!0,flush:"post"});function B(s){a.onChange&&a.onChange(s),H(l,s)}function r(s){a.onBlur&&a.onBlur(s)}function f(s){a.onFocus&&a.onFocus(s)}return(s,E)=>(e.openBlock(),e.createElementBlock("label",{"data-size":s.size,"data-hide-label":e.unref(z)(s.showLabel),class:e.normalizeClass(e.unref(T)("db-radio",a.class)),for:p.value},[e.createElementVNode("input",{type:"radio","aria-invalid":s.validation==="invalid","data-custom-validity":s.validation,ref_key:"_ref",ref:d,id:p.value,name:s.name,checked:e.unref(L)(s.checked,"checked"),disabled:e.unref(L)(s.disabled,"disabled"),"aria-describedby":s.describedbyid??s.ariaDescribedBy,value:s.value,required:e.unref(L)(s.required,"required"),onChange:E[0]||(E[0]=async g=>B(g)),onBlur:E[1]||(E[1]=async g=>r(g)),onFocus:E[2]||(E[2]=async g=>f(g))},null,40,Tt),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.renderSlot(s.$slots,"default",{key:1})],10,Lt))}}),Dt=["id","data-spacing","data-width"],_t=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"section-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(T)("db-section",t.class)),"data-spacing":i.spacing||"medium","data-width":i.width},[e.renderSlot(i.$slots,"default")],10,Dt))}}),$t=["data-variant","data-hide-label","data-icon","data-hide-icon"],Vt=["for"],At=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","multiple","aria-describedby"],Ft=["label"],Mt=["value","selected","disabled"],zt=["value","disabled","selected"],Rt=["id"],Ut={"data-visually-hidden":"true",role:"status"},Pt=e.defineComponent({__name:"select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(""),s=e.ref(""),E=e.ref(""),g=e.ref(!1),h=e.ref(""),u=e.ref(null);e.onMounted(()=>{g.value=!0;const k=a.id??`select-${F()}`;i.value=k,p.value=k+K,d.value=k+J,B.value=k+Q,f.value=k+ue,r.value=a.invalidMessage||G}),e.watch(()=>[u.value,a.invalidMessage],()=>{var k;r.value=a.invalidMessage||((k=u.value)==null?void 0:k.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value],()=>{if(i.value&&g.value){const k=i.value+K,V=i.value+ue;p.value=k,d.value=i.value+J,B.value=i.value+Q,f.value=V,P(a.message,a.showMessage)?s.value=k:s.value=V,g.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{E.value=a.value},{immediate:!0,flush:"post"});function c(){return!!(a.validMessage??a.validation==="valid")}function S(){var k,V,q;!((k=u.value)!=null&&k.validity.valid)||a.validation==="invalid"?(s.value=B.value,r.value=a.invalidMessage||((V=u.value)==null?void 0:V.validationMessage)||G,Y()&&(h.value=r.value,U(()=>h.value="",1e3))):c()&&((q=u.value)!=null&&q.validity.valid)&&a.required?(s.value=d.value,Y()&&(h.value=a.validMessage??Z,U(()=>h.value="",1e3))):P(a.message,a.showMessage)?s.value=p.value:s.value=f.value}function C(k){a.onClick&&a.onClick(k)}function b(k){a.input&&a.input(k),E.value=k.target.value,a.onInput&&a.onInput(k),H(l,k),S()}function v(k){a.onChange&&a.onChange(k),H(l,k),S()}function _(k){a.onBlur&&a.onBlur(k)}function y(k){a.onFocus&&a.onFocus(k)}function $(k){var V;return k.label??((V=k.value)==null?void 0:V.toString())}return(k,V)=>{var q;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("db-select",a.class)),"data-variant":k.variant,"data-hide-label":e.unref(z)(k.showLabel),"data-icon":k.icon,"data-hide-icon":e.unref(z)(k.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(k.label??e.unref(oe)),9,Vt),e.createElementVNode("select",{"aria-invalid":k.validation==="invalid","data-custom-validity":k.validation,ref_key:"_ref",ref:u,required:e.unref(L)(k.required,"required"),disabled:e.unref(L)(k.disabled,"disabled"),id:i.value,name:k.name,size:k.size,value:k.value??E.value,autocomplete:k.autocomplete,multiple:k.multiple,onInput:V[0]||(V[0]=async R=>b(R)),onClick:V[1]||(V[1]=async R=>C(R)),onChange:V[2]||(V[2]=async R=>v(R)),onBlur:V[3]||(V[3]=async R=>_(R)),onFocus:V[4]||(V[4]=async R=>y(R)),"aria-describedby":k.ariaDescribedBy??s.value},[V[5]||(V[5]=e.createElementVNode("option",{hidden:!0},null,-1)),(q=k.options)!=null&&q.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.options,(R,ke)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ke},[R.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:$(R)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.options,(se,me)=>(e.openBlock(),e.createElementBlock("option",{key:me,value:se.value,selected:se.selected,disabled:se.disabled},e.toDisplayString($(se)),9,Mt))),128))],8,Ft)):(e.openBlock(),e.createElementBlock("option",{key:1,value:R.value,disabled:R.disabled,selected:R.selected},e.toDisplayString($(R)),9,zt))],64))),128)):e.renderSlot(k.$slots,"default",{key:1})],40,At),e.createElementVNode("span",{id:f.value},e.toDisplayString(k.placeholder??k.label),9,Rt),e.unref(P)(k.message,k.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:k.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),c()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Ut,e.toDisplayString(h.value),1)],10,$t)}}}),Ot=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Gt=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],qt=e.defineComponent({__name:"switch",props:{visualAid:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{i.value=a.id??`switch-${F()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(p.value=L(a.checked))},{immediate:!0,flush:"post"});function B(s){var E;a.onChange&&a.onChange(s),p.value=(E=s.target)==null?void 0:E.checked,H(l,s,"checked")}function r(s){a.onBlur&&a.onBlur(s)}function f(s){a.onFocus&&a.onFocus(s)}return(s,E)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(A)(s.visualAid),"data-size":s.size,"data-hide-label":e.unref(z)(s.showLabel),"data-emphasis":s.emphasis,for:i.value,class:e.normalizeClass(e.unref(T)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:i.value,"aria-checked":e.unref(A)(p.value),ref_key:"_ref",ref:d,checked:e.unref(L)(s.checked,"checked"),value:s.value,disabled:e.unref(L)(s.disabled,"disabled"),"aria-describedby":s.describedbyid??s.ariaDescribedBy,"aria-invalid":s.validation==="invalid","data-custom-validity":s.validation,name:s.name,required:e.unref(L)(s.required,"required"),"data-aid-icon":s.icon,"data-aid-icon-after":s.iconAfter,onChange:E[0]||(E[0]=async g=>B(g)),onBlur:E[1]||(E[1]=async g=>r(g)),onFocus:E[2]||(E[2]=async g=>f(g))},null,40,Gt),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.renderSlot(s.$slots,"default",{key:1})],10,Ot))}}),Wt=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],Xt=["disabled","aria-selected","aria-controls","checked","name","id"],ta=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},noText:{type:[Boolean,String],default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:[Boolean,String],default:void 0},controls:{default:void 0},change:{},onChange:{type:Function,default:void 0},showIcon:{type:[Boolean,String],default:void 0},name:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(!1),B=e.ref(null);e.onMounted(()=>{d.value=!0}),e.watch(()=>[B.value,d.value],()=>{d.value&&B.value&&(a.active&&B.value.click(),d.value=!1)},{immediate:!0,flush:"post"}),e.watch(()=>[a.name],()=>{a.name&&(p.value=a.name)},{immediate:!0,flush:"post"});function r(f){var s;f.stopPropagation(),a.onChange&&a.onChange(f),i.value=(s=f.target)==null?void 0:s.checked,H(l,f,"checked")}return(f,s)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(T)("db-tab-item",a.class))},[e.createElementVNode("label",{for:f.id,"data-icon":f.icon,"data-icon-after":f.iconAfter,"data-hide-icon":e.unref(z)(f.showIcon),"data-hide-icon-after":e.unref(z)(f.showIcon),"data-no-text":e.unref(A)(f.noText)},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:e.unref(L)(f.disabled,"disabled"),"aria-selected":i.value,"aria-controls":f.controls,checked:e.unref(L)(f.checked,"checked"),ref_key:"_ref",ref:B,name:p.value,id:f.id,onInput:s[0]||(s[0]=async E=>r(E))},null,40,Xt),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default")],8,Wt)],2))}}),x=class x{constructor(){X(this,"ticking",!1);if(x._instance)return x._instance;x._instance=this,self.document&&self.document.addEventListener("scroll",t=>{this.ticking||(window.requestAnimationFrame(()=>{x.runCallbacks(t),this.ticking=!1}),this.ticking=!0)},!0)}static runCallbacks(t){for(const l of Object.values(x.callbacks))typeof l=="function"&&l(t)}addCallback(t){const l=F();return x.callbacks[l]=t,l}removeCallback(t){delete x.callbacks[t]}};X(x,"callbacks",{}),X(x,"_instance",null);let de=x;const Ht=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],Me=e.defineComponent({__name:"tooltip",props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(void 0),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"tooltip-"+F(),a.value=!0}),e.watch(()=>[d.value,a.value],()=>{if(d.value&&a.value&&l.value){const u=f();u&&(["mouseenter","focusin"].forEach(c=>{u.addEventListener(c,()=>h(u))}),u.addEventListener("keydown",c=>r(c)),["mouseleave","focusout"].forEach(c=>{u.addEventListener(c,()=>g())}),u.setAttribute("data-has-tooltip","true"),t.variant==="label"?u.setAttribute("aria-labelledby",l.value):u.setAttribute("aria-describedby",l.value)),typeof window<"u"&&"IntersectionObserver"in window&&(p.value=new IntersectionObserver(c=>{const S=c.find(({target:C})=>C===f());S&&!S.isIntersecting&&r(!1)})),a.value=!1}},{immediate:!0,flush:"post"});function B(u){u.stopPropagation()}function r(u){(!u||u.key==="Escape")&&d.value&&getComputedStyle(d.value).visibility==="visible"&&f().blur()}function f(){let u=d.value.parentElement;return u&&u.localName.includes("tooltip")&&(u=u.parentElement),u}function s(u){u&&d.value&&U(()=>{xe(d.value,u,t.placement??"bottom")},1)}function E(u,c){var S,C;(S=u==null?void 0:u.target)!=null&&S.contains&&((C=u==null?void 0:u.target)!=null&&C.contains(d.value))&&s(c)}function g(){var u;i.value&&new de().removeCallback(i.value),(u=p.value)==null||u.unobserve(f())}function h(u){var c;i.value=new de().addCallback(S=>E(S,u)),s(u),(c=p.value)==null||c.observe(f())}return(u,c)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:d,class:e.normalizeClass(e.unref(T)("db-tooltip",t.class)),id:l.value,"data-emphasis":u.emphasis,"data-animation":e.unref(A)(u.animation??!0),"data-delay":u.delay,"data-width":u.width,"data-show-arrow":e.unref(A)(u.showArrow??!0),"data-placement":u.placement,onClick:c[0]||(c[0]=async S=>B(S))},[e.renderSlot(u.$slots,"default")],10,Ht))}}),jt=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],ia=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0},removeButton:{default:void 0},showCheckState:{type:[Boolean,String],default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},semantic:{default:void 0},overflow:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},content:{},onRemove:{type:Function,default:void 0},remove:{}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,t.disabled,a.value],()=>{var d,B;if(l.value&&a.value&&t.disabled!==void 0){const r=(d=a.value)==null?void 0:d.querySelector("button:not(.db-tab-remove-button)"),f=(B=a.value)==null?void 0:B.querySelector("input");for(const s of[r,f])s&&(s.disabled=!!t.disabled)}},{immediate:!0,flush:"post"});function i(d){d&&(d.stopPropagation(),t.onRemove&&t.onRemove(d))}function p(){return t.removeButton?t.removeButton:De}return(d,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:d.id,class:e.normalizeClass(e.unref(T)("db-tag",t.class)),"data-disabled":e.unref(A)(d.disabled),"data-semantic":d.semantic,"data-emphasis":d.emphasis,"data-icon":d.icon,"data-show-check-state":e.unref(A)(d.showCheckState??!0),"data-hide-icon":e.unref(z)(d.showIcon),"data-no-text":e.unref(A)(d.noText),"data-overflow":e.unref(A)(d.overflow)},[e.renderSlot(d.$slots,"content"),e.renderSlot(d.$slots,"default"),d.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.text),1)],64)):e.createCommentVNode("",!0),d.behavior==="removable"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",type:"button",onClick:B[0]||(B[0]=async r=>i(r))},[e.createVNode(Me,{variant:"label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p()),1)]),_:1})])):e.createCommentVNode("",!0)],10,jt))}}),Yt=["data-variant","data-hide-label"],Kt=["for"],Jt=["aria-invalid","data-custom-validity","data-field-sizing","id","data-resize","data-hide-resizer","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Qt={"data-visually-hidden":"true",role:"status"},Zt=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},showResizer:{type:[Boolean,String],default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(""),s=e.ref(""),E=e.ref(""),g=e.ref(null);e.onMounted(()=>{const v=a.id??`textarea-${F()}`;i.value=v,p.value=v+K,d.value=v+J,B.value=v+Q,r.value=a.invalidMessage||G}),e.watch(()=>[g.value,a.invalidMessage],()=>{var v;r.value=a.invalidMessage||((v=g.value)==null?void 0:v.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const v=i.value+K;p.value=v,d.value=i.value+J,B.value=i.value+Q,P(a.message,a.showMessage)&&(f.value=v)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{s.value=a.value},{immediate:!0,flush:"post"});function h(){return!!(a.validMessage??a.validation==="valid")}function u(){var v,_,y;!((v=g.value)!=null&&v.validity.valid)||a.validation==="invalid"?(f.value=B.value,r.value=a.invalidMessage||((_=g.value)==null?void 0:_.validationMessage)||G,Y()&&(E.value=r.value,U(()=>E.value="",1e3))):h()&&((y=g.value)!=null&&y.validity.valid)&&(a.required||a.minLength||a.maxLength)?(f.value=d.value,Y()&&(E.value=a.validMessage??Z,U(()=>E.value="",1e3))):P(a.message,a.showMessage)?f.value=p.value:f.value=""}function c(v){a.input&&a.input(v),s.value=v.target.value,a.onInput&&a.onInput(v),H(l,v),u()}function S(v){a.onChange&&a.onChange(v),H(l,v),u()}function C(v){a.onBlur&&a.onBlur(v)}function b(v){a.onFocus&&a.onFocus(v)}return(v,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("db-textarea",a.class)),"data-variant":v.variant,"data-hide-label":e.unref(z)(v.showLabel)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(v.label??e.unref(oe)),9,Kt),e.createElementVNode("textarea",{"aria-invalid":v.validation==="invalid","data-custom-validity":v.validation,"data-field-sizing":v.fieldSizing,ref_key:"_ref",ref:g,id:i.value,"data-resize":v.resize,"data-hide-resizer":e.unref(z)(v.showResizer??!0),disabled:e.unref(L)(v.disabled,"disabled"),required:e.unref(L)(v.required,"required"),readOnly:e.unref(L)(v.readOnly,"readOnly")||e.unref(L)(v.readonly,"readonly"),form:v.form,maxLength:e.unref(te)(v.maxLength,v.maxlength),minLength:e.unref(te)(v.minLength,v.minlength),name:v.name,wrap:v.wrap,spellcheck:v.spellCheck,autocomplete:v.autocomplete,onInput:_[0]||(_[0]=async y=>c(y)),onChange:_[1]||(_[1]=async y=>S(y)),onBlur:_[2]||(_[2]=async y=>C(y)),onFocus:_[3]||(_[3]=async y=>b(y)),value:v.value??s.value,"aria-describedby":v.ariaDescribedBy??f.value,placeholder:v.placeholder??e.unref(Ne),rows:e.unref(te)(v.rows,e.unref(Ye)),cols:e.unref(te)(v.cols)},null,40,Jt),e.unref(P)(v.message,v.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:v.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),h()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Qt,e.toDisplayString(E.value),1)],10,Yt))}}),xt=["id","data-width","data-icon","data-hide-icon","data-active","data-wrap","aria-disabled"],ei=["aria-haspopup","aria-expanded","disabled"],ai=["data-auto-close","id"],ti={key:0,class:"db-mobile-navigation-back"},ii=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(!0),p=e.ref(!1),d=e.ref(!1),B=e.ref("sub-navigation-"+F()),r=e.ref(void 0),f=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.subNavigationExpanded],()=>{t.subNavigationExpanded!==void 0&&(p.value=!!L(t.subNavigationExpanded,"subNavigationExpanded"))},{immediate:!0,flush:"post"}),e.watch(()=>[l.value,f.value],()=>{var h;if(l.value&&f.value){const u=f.value.querySelector("menu");u&&(((h=u.children)==null?void 0:h.length)>0?(a.value=!0,r.value||(r.value=new ea(f.value,u))):i.value=!1)}},{immediate:!0,flush:"post"});function s(h){Fe(h)&&(d.value=!0,U(()=>{d.value=!1},300))}function E(h){t.onClick&&(h.stopPropagation(),t.onClick(h)),a.value&&(p.value=!0)}function g(h){h.stopPropagation(),p.value=!1}return(h,u)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:f,id:h.id,onMouseover:u[2]||(u[2]=async c=>{var S;return(S=r.value)==null?void 0:S.enableFollow()}),onMouseleave:u[3]||(u[3]=async c=>{var S;return(S=r.value)==null?void 0:S.disableFollow()}),onMousemove:u[4]||(u[4]=async c=>{var S;return(S=r.value)==null?void 0:S.followByMouseEvent(c)}),class:e.normalizeClass(e.unref(T)("db-navigation-item",t.class)),"data-width":h.width,"data-icon":h.icon,"data-hide-icon":e.unref(z)(h.showIcon),"data-active":h.active,"data-wrap":e.unref(A)(h.wrap),"aria-disabled":e.unref(A)(h.disabled)},[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.text),1)],64)):e.renderSlot(h.$slots,"default",{key:1})],64)),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":p.value,disabled:e.unref(L)(h.disabled,"disabled"),onClick:u[0]||(u[0]=async c=>E(c))},[h.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.text),1)],64)):e.renderSlot(h.$slots,"default",{key:1})],8,ei),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":d.value,id:B.value,onClick:u[1]||(u[1]=async c=>s(c))},[a.value?(e.openBlock(),e.createElementBlock("div",ti,[e.createVNode(ie,{icon:"arrow_left",variant:"ghost",id:h.backButtonId,onClick:c=>g(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.backButtonText??e.unref(We)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"sub-navigation")],8,ai)],64)):e.createCommentVNode("",!0)],42,xt))}}),oi=["id"],li=["aria-disabled","name","open"],oa=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-item-"+F(),t.defaultOpen&&(a.value=t.defaultOpen),p.value=!0}),e.watch(()=>[d.value,p.value],()=>{d.value&&p.value},{immediate:!0,flush:"post"}),e.watch(()=>[t.name],()=>{t.name&&(i.value=t.name)},{immediate:!0,flush:"post"});function B(r){r==null||r.preventDefault();const f=!a.value;t.onToggle&&t.onToggle(f),a.value=f}return(r,f)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(T)("db-accordion-item",t.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(A)(r.disabled),ref_key:"_ref",ref:d,name:i.value,open:a.value},[e.createElementVNode("summary",{onClick:f[0]||(f[0]=async s=>B(s))},[r.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.headlinePlain),1)],64)):e.createCommentVNode("",!0),r.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(r.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[r.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.text),1)],64)):e.renderSlot(r.$slots,"default",{key:1})])],8,li)],10,oi))}}),ni=["id","data-variant"],di=e.defineComponent({__name:"accordion",props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(ne),a=e.ref(""),i=e.ref(!1),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-"+F(),i.value=!0,p.value=!0}),e.watch(()=>[i.value,t.name,t.behavior,l.value],()=>{i.value&&(t.behavior==="single"?t.name?a.value!==t.name&&(a.value=t.name):a.value!==l.value&&l.value&&(a.value=l.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,a.value],()=>{if(d.value){const r=d.value.getElementsByTagName("details");if(r)for(const f of Array.from(r))a.value===""?f.removeAttribute("name"):f.name=a.value??""}},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,p.value,t.initOpenIndex],()=>{if(d.value&&p.value){if(t.initOpenIndex&&t.initOpenIndex.length>0){const r=d.value.getElementsByTagName("details");if(r){const f=t.behavior==="single"&&t.initOpenIndex.length>1?[t.initOpenIndex[0]]:t.initOpenIndex;Array.from(r).forEach((s,E)=>{f!=null&&f.includes(E)&&(s.open=!0)})}}p.value=!1}},{immediate:!0,flush:"post"});function B(){try{return typeof t.items=="string"?JSON.parse(t.items):t.items}catch(r){console.error(r)}return[]}return(r,f)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:d,id:l.value,class:e.normalizeClass(e.unref(T)("db-accordion",t.class)),"data-variant":r.variant},[r.items?e.createCommentVNode("",!0):e.renderSlot(r.$slots,"default",{key:0}),r.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(B(),(s,E)=>(e.openBlock(),e.createBlock(oa,{key:`accordion-item-${E}`,headlinePlain:s.headlinePlain,disabled:s.disabled,text:s.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,ni))}}),si=["id","aria-labelledby"],ri=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"navigation-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":i.labelledBy,class:e.normalizeClass(e.unref(T)("db-navigation",t.class))},[e.createElementVNode("menu",null,[e.renderSlot(i.$slots,"default")])],10,si))}}),ci=["id"],fi=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],ui=e.defineComponent({__name:"popover",props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(void 0),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[d.value,l.value],()=>{if(d.value&&l.value){l.value=!1;const h=g();h&&(h.ariaHasPopup="true"),r(),d.value.addEventListener("keydown",u=>B(u)),["mouseenter","focusin"].forEach(u=>{d.value.addEventListener(u,()=>s())}),["mouseleave","focusout"].forEach(u=>{d.value.addEventListener(u,()=>E())}),typeof window<"u"&&"IntersectionObserver"in window&&(p.value=new IntersectionObserver(u=>{const c=u.find(({target:S})=>S===g());c&&!c.isIntersecting&&B(!1)}))}},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,a.value],()=>{if(d.value){const h=g();h&&(h.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function B(h){if(!h||h.key==="Escape")for(const u of Array.from(d.value.children))u.blur()}function r(){if(!d.value)return;const h=d.value.querySelector("article");h&&U(()=>{xe(h,d.value,t.placement??"bottom")},1)}function f(h){var u,c;(u=h==null?void 0:h.target)!=null&&u.contains&&((c=h==null?void 0:h.target)!=null&&c.contains(d.value))&&r()}function s(){var u;a.value=!0,i.value=new de().addCallback(c=>f(c)),r();const h=g();h&&((u=p.value)==null||u.observe(h))}function E(h){var u;{a.value=!1,i.value&&new de().removeCallback(i.value);const c=g();c&&((u=p.value)==null||u.unobserve(c))}}function g(){var h;if(d.value){const u=Array.from(d.value.children);if(u.length>=2){const c=u[0];return c.tagName.includes("-")?((h=c.children)==null?void 0:h.length)>0?c.children[0]:null:c}}return null}return(h,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:h.id,class:e.normalizeClass(e.unref(T)("db-popover",t.class))},[e.renderSlot(h.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":h.spacing,"data-gap":e.unref(A)(h.gap),"data-animation":e.unref(A)(h.animation??!0),"data-open":e.unref(A)(h.open),"data-delay":h.delay,"data-width":h.width,"data-placement":h.placement},[e.renderSlot(h.$slots,"default")],8,fi)],10,ci))}}),mi=["id"],pi={role:"tablist"},la=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"tab-list-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(T)("db-tab-list",t.class))},[e.createElementVNode("ul",pi,[e.renderSlot(i.$slots,"default")])],10,mi))}}),hi=["id","aria-labelledby"],na=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(null);return e.onMounted(()=>{}),(a,i)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(T)("db-tab-panel",t.class)),id:a.id,"aria-labelledby":a.labelledBy},[a.content?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.content),1)],64)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,hi))}}),gi=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],bi=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},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0},indexChange:{},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabSelect:{}},setup(o){const t=o,l=e.ref("tabs-"+F()),a=e.ref(""),i=e.ref(!1),p=e.ref(!1),d=e.ref(!1),B=e.ref(null),r=e.ref(null);e.onMounted(()=>{l.value=t.id||l.value,a.value=`tabs-${t.name||F()}`,i.value=!0}),e.watch(()=>[r.value,i.value],()=>{if(r.value&&i.value){g(),h(!0);const c=r.value.querySelector(".db-tab-list");c&&new MutationObserver(C=>{C.forEach(b=>{(b.removedNodes.length||b.addedNodes.length)&&(g(),h())})}).observe(c,{childList:!0,subtree:!0}),i.value=!1}},{immediate:!0,flush:"post"});function f(){try{return typeof t.tabs=="string"?JSON.parse(t.tabs):t.tabs}catch(c){console.error(c)}return[]}function s(c){const S=c.scrollWidth>c.clientWidth;p.value=S&&c.scrollLeft>1,d.value=S&&c.scrollLeft<c.scrollWidth-c.clientWidth}function E(c){var C;let S=Number(t.arrowScrollDistance)||100;c&&(S*=-1),(C=B.value)==null||C.scrollBy({top:0,left:S,behavior:"smooth"})}function g(){if(r.value){const c=r.value.querySelector(".db-tab-list");if(c){const S=c.querySelector('[role="tablist"]');S&&(S.setAttribute("aria-orientation",t.orientation||"horizontal"),t.behavior==="arrows"&&(B.value=S,s(S),S.addEventListener("scroll",()=>{s(S)})))}}}function h(c){if(r.value){const S=Array.from(r.value.getElementsByClassName("db-tab-item")),C=Array.from(r.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const b of S){const v=S.indexOf(b),_=b.querySelector("label"),y=b.querySelector("input");if(y&&_){if(!y.id){const $=`${a.value}-tab-${v}`;_.setAttribute("for",$),y.id=$,y.setAttribute("name",a.value),C.length>v&&y.setAttribute("aria-controls",`${a.value}-tab-panel-${v}`)}if(c){const $=!t.initialSelectedMode||t.initialSelectedMode==="auto",k=t.initialSelectedIndex==null&&v===0||Number(t.initialSelectedIndex)===v;$&&k&&y.click()}}}for(const b of C){if(b.id)continue;const v=C.indexOf(b);b.id=`${a.value}-tab-panel-${v}`,b.setAttribute("aria-labelledby",`${a.value}-tab-${v}`)}}}function u(c){var v;c.stopPropagation();const S=(v=c.target)==null?void 0:v.closest;if(!S)return;const C=S("ul"),b=S("db-tab-item")??S("li");if(C!==null&&b!==null){const _=Array.from(C.childNodes).indexOf(b);t.onIndexChange&&t.onIndexChange(_)}t.onTabSelect&&t.onTabSelect(c)}return(c,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:r,id:l.value,class:e.normalizeClass(e.unref(T)("db-tabs",t.class)),"data-orientation":c.orientation,"data-scroll-behavior":c.behavior,"data-alignment":c.alignment??"start","data-width":c.width??"auto",onInput:S[0]||(S[0]=async C=>u(C))},[p.value?(e.openBlock(),e.createBlock(ie,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:C=>E(!0)},{default:e.withCtx(()=>S[1]||(S[1]=[e.createTextVNode(" Scroll left ")])),_:1,__:[1]},8,["onClick"])):e.createCommentVNode("",!0),c.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(la,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(C,b)=>(e.openBlock(),e.createBlock(ta,{key:c.name+"tab-item"+b,active:C.active,label:C.label,iconAfter:C.iconAfter,icon:C.icon,noText:C.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(C,b)=>(e.openBlock(),e.createBlock(na,{key:c.name+"tab-panel"+b,content:C.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createBlock(ie,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:C=>E()},{default:e.withCtx(()=>S[2]||(S[2]=[e.createTextVNode(" Scroll right ")])),_:1,__:[2]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],42,gi))}}),yi=["adaptive","neutral","critical","informational","warning","successful"],vi=["medium","small","large","none"],ki=["medium","small","large","none"],da=["left","right","left-start","left-end","right-start","right-end"],sa=["top","bottom","top-start","top-end","bottom-start","bottom-end"],Bi=[...da,...sa],Si=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],wi=["horizontal","vertical"],Ei=["full","auto"],Ci=["full","medium","large","small"],Ni=["none","slow","fast"],Li=["auto","fixed"],Ti=["small","medium"],Ii=["weak","strong"],Di=["invalid","valid","no-validation"],_i=["fixed","content"],$i=["above","floating"],Vi=["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"],Ai=["time","true","false","date","page","step","location"],Fi=["_self","_blank","_parent","_top"],Mi=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],zi=["start","center"],Ri=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Ui=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},gap:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-stack",t.class)),"data-gap":a.gap,"data-variant":a.variant,"data-direction":a.direction,"data-alignment":a.alignment,"data-justify-content":a.justifyContent,"data-wrap":e.unref(A)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Ri))}}),Pi=["role","aria-label","id"],ra=e.defineComponent({__name:"custom-select-list",props:{label:{default:void 0},multiple:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{role:a.multiple?"group":"radiogroup","aria-label":a.label,ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-custom-select-list",t.class))},[e.createElementVNode("ul",null,[e.renderSlot(a.$slots,"default")])],10,Pi))}}),Oi=["id","data-divider"],Gi=["data-icon","data-hide-icon","data-icon-after"],qi=["type","name","form","checked","disabled","value"],Wi={key:1},ca=e.defineComponent({__name:"custom-select-list-item",props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{i.value=a.id??`custom-select-list-item-${F()}`}),e.watch(()=>[a.isGroupTitle,a.showDivider],()=>{p.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:"post"});function B(f){f.stopPropagation(),a.onChange&&a.onChange(f),H(l,f,"checked")}function r(){if(!(a.isGroupTitle||a.type==="checkbox"))return L(a.checked,"checked")?"check":"x_placeholder"}return(f,s)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:d,id:i.value,class:e.normalizeClass(e.unref(T)("db-custom-select-list-item",a.class,{"db-checkbox":f.type==="checkbox"&&!f.isGroupTitle,"db-radio":f.type!=="checkbox"&&!f.isGroupTitle})),"data-divider":e.unref(A)(p.value)},[f.isGroupTitle?(e.openBlock(),e.createElementBlock("span",Wi,e.toDisplayString(f.groupTitle),1)):(e.openBlock(),e.createElementBlock("label",{key:0,"data-icon":f.type!=="checkbox"&&f.icon?f.icon:void 0,"data-hide-icon":e.unref(z)(f.showIcon),"data-icon-after":r()},[e.createElementVNode("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:f.type,name:f.name,form:f.name,checked:e.unref(L)(f.checked,"checked"),disabled:e.unref(L)(f.disabled,"disabled"),value:f.value,onChange:s[0]||(s[0]=async E=>B(E))},null,40,qi),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.renderSlot(f.$slots,"default",{key:1})],8,Gi))],10,Oi))}}),Xi=["id","data-width"],fa=e.defineComponent({__name:"custom-select-dropdown",props:{width:{default:"fixed"},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("article",{"data-spacing":"none",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-custom-select-dropdown db-card",t.class)),"data-width":a.width},[e.renderSlot(a.$slots,"default")],10,Xi))}}),ee=class ee{static runCallbacks(t){for(const l of Object.values(ee.callbacks))typeof l=="function"&&l(t)}constructor(){if(ee._instance)return ee._instance;ee._instance=this,self.document&&self.document.addEventListener("click",t=>ee.runCallbacks(t))}addCallback(t){const l=F();return ee.callbacks[l]=t,l}removeCallback(t){delete ee.callbacks[t]}};X(ee,"callbacks",{}),X(ee,"_instance",null);let ve=ee;const Hi=["id","aria-invalid","data-custom-validity","data-width","data-variant","data-required","data-placement","data-selected-type","data-hide-label","data-icon","data-hide-icon"],ji=["id"],Yi=["id","form","name","multiple","disabled","required"],Ki=["disabled","value"],Ji=["open"],Qi=["id","aria-disabled","aria-labelledby"],Zi=["data-visually-hidden","id"],xi={key:1},eo={key:0},ao={key:0},to={class:"db-checkbox db-custom-select-list-item"},io=["form","checked"],oo=["aria-hidden","id"],lo={"data-visually-hidden":"true",role:"status"},no=e.defineComponent({__name:"custom-select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},amountText:{default:void 0},ariaListLabel:{default:void 0},clearSelectionText:{default:"Clear selection"},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchFilter:{type:Function,default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},searchValue:{default:void 0},selectAllLabel:{default:void 0},selectedLabels:{default:void 0},selectedType:{default:void 0},showClearSelection:{type:Boolean,default:!0},showLoading:{type:Boolean,default:void 0},showNoResults:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},showSelectAll:{type:Boolean,default:void 0},transformSelectedLabels:{type:Function,default:void 0},values:{default:void 0},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},onSearch:{type:Function,default:void 0},search:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:["update:values"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(void 0),E=e.ref(void 0),g=e.ref(void 0),h=e.ref(void 0),u=e.ref("no-validation"),c=e.ref(""),S=e.ref(""),C=e.ref(void 0),b=e.ref(""),v=e.ref([]),_=e.ref(!1),y=e.ref(!1),$=e.ref(0),k=e.ref([]),V=e.ref([]),q=e.ref(!1),R=e.ref(void 0),ke=e.ref(0),se=e.ref(void 0),me=e.ref(void 0),ze=e.ref(void 0),Re=e.ref(!1),pe=e.ref(!1),co=e.ref(null),I=e.ref(null),re=e.ref(null),Be=e.ref(null),Ue=e.ref(null);e.onMounted(()=>{const n=a.id??`custom-select-${F()}`;i.value=n,p.value=n+K,d.value=n+J,B.value=n+Q,f.value=n+Te,s.value=n+Le,E.value=n+"-summary",g.value=n+ue,C.value=n+"-selected-labels",h.value=n+"-info",r.value=a.invalidMessage||G,typeof window<"u"&&"IntersectionObserver"in window&&(me.value=new IntersectionObserver(w=>{if(I.value){const N=w.find(({target:M})=>M===I.value);N&&!N.isIntersecting&&I.value.open&&(I.value.open=!1)}}))}),e.watch(()=>[I.value],()=>{I.value&&I.value.addEventListener("focusout",n=>he(n))},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const n=i.value+K;s.value=i.value+Le,f.value=i.value+Te,d.value=i.value+J,B.value=i.value+Q,g.value=i.value+ue,P(a.message,a.showMessage)?ma(n):ma()}},{immediate:!0,flush:"post"}),e.watch(()=>[I.value,c.value],()=>{if(I.value){const n=I.value.querySelector("summary");n&&n.setAttribute("aria-describedby",a.ariaDescribedBy??(c.value||""))}},{immediate:!0,flush:"post"}),e.watch(()=>[a.showNoResults,V.value],()=>{a.showNoResults!==void 0?q.value=a.showNoResults:V.value&&(q.value=V.value.length===0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSelectAll,$.value,a.multiple],()=>{_.value=!!(a.multiple&&(a.showSelectAll??$.value>5))},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSearch,$.value],()=>{y.value=a.showSearch??$.value>9},{immediate:!0,flush:"post"}),e.watch(()=>[a.values],()=>{a.values&&Array.isArray(a.values)&&a.values!==k.value&&(k.value=a.values??[])},{immediate:!0,flush:"post"}),e.watch(()=>[k.value],()=>{uo()},{immediate:!0,flush:"post"}),e.watch(()=>[a.validation],()=>{u.value=a.validation},{immediate:!0,flush:"post"}),e.watch(()=>[k.value,$.value],()=>{var n,w;((n=k.value)==null?void 0:n.length)===0?(Re.value=!1,pe.value=!1):((w=k.value)==null?void 0:w.length)===$.value?(pe.value=!1,Re.value=!0):k.value&&(pe.value=!0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.options],()=>{var n;V.value=a.options,$.value=((n=a.options)==null?void 0:n.filter(w=>!w.isGroupTitle).length)??0},{immediate:!0,flush:"post"}),e.watch(()=>[a.searchValue],()=>{if(ze.value=a.searchValue,a.searchValue){const n=a.searchValue;ga(n)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.options,k.value],()=>{var n,w;(n=a.options)!=null&&n.length&&(v.value=(w=a.options)==null?void 0:w.filter(N=>{var M,W;return!N.value||!((M=k.value)!=null&&M.includes)?!1:!N.isGroupTitle&&((W=k.value)==null?void 0:W.includes(N.value))}))},{immediate:!0,flush:"post"}),e.watch(()=>[v.value,a.selectedType,a.amountText,a.selectedLabels,a.transformSelectedLabels],()=>{var n,w,N;if(a.selectedLabels){S.value=a.selectedLabels;return}if((n=v.value)!=null&&n.length){if(a.transformSelectedLabels){const M=v.value,W=a.transformSelectedLabels;S.value=W(M);return}a.selectedType==="amount"?S.value=a.amountText?a.amountText:`${(w=v.value)==null?void 0:w.length} ${Xe}`:S.value=(N=v.value)==null?void 0:N.map(M=>ce(M)).join(", ")}else S.value=""},{immediate:!0,flush:"post"}),e.watch(()=>[v.value],()=>{var n;a.onAmountChange&&a.onAmountChange(((n=v.value)==null?void 0:n.length)??0)},{immediate:!0,flush:"post"}),e.watch(()=>[pe.value,Be.value],()=>{Be.value&&(Be.value.indeterminate=!!pe.value)},{immediate:!0,flush:"post"}),e.watch(()=>[re.value,a.invalidMessage],()=>{var n;r.value=a.invalidMessage||((n=re.value)==null?void 0:n.validationMessage)||G},{immediate:!0,flush:"post"});function fo(n){var w,N;(w=n==null?void 0:n.target)!=null&&w.contains&&((N=n==null?void 0:n.target)!=null&&N.contains(I.value))&&Pe()}function ua(){return!!(a.validMessage??a.validation==="valid")}function uo(){var n,w,N;re.value&&(re.value.value=po()),!((n=re.value)!=null&&n.validity.valid)||a.validation==="invalid"?(c.value=B.value,r.value=a.invalidMessage||((w=re.value)==null?void 0:w.validationMessage)||G,Y()&&(b.value=r.value,U(()=>b.value="",1e3)),u.value=a.validation??"invalid"):ua()&&((N=re.value)!=null&&N.validity.valid)&&a.required?(c.value=d.value,Y()&&(b.value=a.validMessage??Z,U(()=>b.value="",1e3)),u.value=a.validation??"valid"):P(a.message,a.showMessage)?(c.value=p.value,u.value=a.validation??"no-validation"):(c.value=g.value,u.value=a.validation??"no-validation")}function mo(n){var w,N;a.onDropdownToggle&&(n.stopPropagation(),a.onDropdownToggle(n)),n.target instanceof HTMLDetailsElement&&n.target.open?(R.value=new ve().addCallback(M=>Bo(M)),se.value=new de().addCallback(M=>fo(M)),Pe(),(w=me.value)==null||w.observe(I.value),n.target.dataset.test||ha()):(R.value&&new ve().removeCallback(R.value),se.value&&new de().removeCallback(se.value),(N=me.value)==null||N.unobserve(I.value))}function po(){var n;return(n=k.value)!=null&&n.length?k.value.at(0)??"":""}function ma(n){var N;const w=[];n&&w.push(n),C.value&&((N=S.value)!=null&&N.length)&&w.push(C.value),c.value=w.join(" ")}function ho(){return a.selectAllLabel??oe}function ce(n){var w;return n.label??((w=n.value)==null?void 0:w.toString())??""}function go(n){var w,N;return n&&((w=k.value)!=null&&w.includes)?(N=k.value)==null?void 0:N.includes(n):!1}function bo(n){return a.removeTagsTexts&&a.removeTagsTexts.length>n?a.removeTagsTexts.at(n):`${De} ${v.value?ce(v.value[n]):""}`}function yo(n,w){w&&w.stopPropagation(),pa(n.value),ge()}function Pe(){if(I.value){const n=I.value.querySelector("article");n&&U(()=>{et(n,I.value,a.placement??"bottom")},1)}}function vo(n){var w,N,M,W,D,le,be;if((w=I.value)!=null&&w.open){if(self.document){const ae=self.document.activeElement;if(ae)if(ae.getAttribute("type")==="checkbox"||ae.getAttribute("type")==="radio"){const j=ae==null?void 0:ae.closest("li");if(n.key==="ArrowDown"||n.key==="ArrowRight")j!=null&&j.nextElementSibling?(M=(N=j==null?void 0:j.nextElementSibling)==null?void 0:N.querySelector("input"))==null||M.focus():Se(ae);else if(j!=null&&j.previousElementSibling)(D=(W=j==null?void 0:j.previousElementSibling)==null?void 0:W.querySelector("input"))==null||D.focus();else if(I.value.querySelector('input[type="checkbox"]')!==ae)Se(ae);else{const ba=Ce(I.value);if(ba)U(()=>{ba.focus()},100);else{const ya=Array.from((le=I.value)==null?void 0:le.querySelectorAll('input[type="checkbox"],input[type="radio"]'));ya.length&&((be=ya.at(-1))==null||be.focus())}}}else ae.getAttribute("type")==="search"&&(n.key==="ArrowUp"||n.key==="ArrowLeft")?(he(void 0,!0),ge()):Se(ae)}}else(n.key==="ArrowDown"||n.key==="ArrowRight")&&(Pe(),I.value&&(I.value.open=!0),ha());n.stopPropagation(),n.preventDefault()}function ko(n){var w;n.stopPropagation(),n.key==="Escape"&&((w=I.value)!=null&&w.open)?(he(void 0,!0),ge()):(n.key==="ArrowDown"||n.key==="ArrowUp"||n.key==="ArrowLeft"||n.key==="ArrowRight")&&vo(n)}function he(n,w){if(I.value){if(w)I.value.open=!1,ge();else if(I.value.open&&n&&n.relatedTarget){const N=n.relatedTarget;I.value.contains(N)||U(()=>I.value.open=!1,1)}}}function Bo(n){var w;if(n){const N=n.target;(w=I.value)!=null&&w.open&&!I.value.contains(N)&&(I.value.open=!1)}}function fe(n){new Date().getTime()-ke.value<200||(k.value=n,a.onOptionSelected&&a.onOptionSelected(n??[]),H(l,{target:{values:n}},"values"),ke.value=new Date().getTime())}function pa(n){var w;n&&(a.multiple?(w=k.value)!=null&&w.includes(n)?fe(k.value.filter(N=>N!==n)):fe([...k.value||[],n]):(fe([n]),he(void 0,!0)))}function So(n){var w;if(n.stopPropagation(),((w=k.value)==null?void 0:w.length)===$.value)fe([]);else{const N=y.value&&Ue.value?Ue.value.value:void 0;fe(a.options?a.options.filter(M=>{var W;return!M.isGroupTitle&&(!N||((W=M.value)==null?void 0:W.toLowerCase().includes(N.toLowerCase())))}).map(M=>M.value??""):[])}}function Se(n){if(I.value){const w=Array.from(I.value.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(w.length){const N=w.at(0),M=N===n&&w.length>1?w.at(1):N;M&&U(()=>{M.focus()},1)}}}function ha(){if(I.value){const n=Ce(I.value);n?U(()=>{n.focus()},1):Se()}}function ga(n){if(n===void 0)return;let w;if(typeof n=="string")w=n;else{const N=n;N.stopPropagation(),a.onSearch&&a.onSearch(N),w=N.target.value,ze.value=w}!a.options||!w||w.length===0?V.value=a.options:a.searchFilter?V.value=a.options.filter(N=>a.searchFilter(N,w)):V.value=a.options.filter(N=>!N.isGroupTitle&&ce(N).toLowerCase().includes(w.toLowerCase()))}function wo(n){n.stopPropagation(),fe([]),ge()}function ge(){var n;I.value&&((n=I.value.querySelector("summary"))==null||n.focus())}function Eo(n){n.stopPropagation()}return(n,w)=>{var N,M,W;return e.openBlock(),e.createElementBlock("div",{id:i.value,ref_key:"_ref",ref:co,class:e.normalizeClass(e.unref(T)("db-custom-select",a.class)),"aria-invalid":u.value==="invalid","data-custom-validity":u.value,"data-width":n.formFieldWidth,"data-variant":n.variant==="floating"&&n.selectedType==="tag"&&n.multiple?"above":n.variant,"data-required":e.unref(A)(n.required),"data-placement":n.placement,"data-selected-type":n.multiple?n.selectedType:"text","data-hide-label":e.unref(z)(n.showLabel),"data-icon":n.icon,"data-hide-icon":e.unref(z)(n.showIcon)},[e.createElementVNode("label",{id:s.value},[e.createTextVNode(e.toDisplayString(n.label??e.unref(oe)),1),e.createElementVNode("select",{role:"none",hidden:!0,id:f.value,tabIndex:-1,ref_key:"selectRef",ref:re,form:n.form,name:n.name,multiple:e.unref(L)(n.multiple,"multiple"),disabled:e.unref(L)(n.disabled,"disabled"),required:e.unref(L)(n.required,"required"),onChange:w[0]||(w[0]=async D=>Eo(D))},[(N=n.options)!=null&&N.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.options,(D,le)=>(e.openBlock(),e.createElementBlock("option",{key:le,disabled:D.disabled,value:D.value},e.toDisplayString(ce(D)),9,Ki))),128)):e.createCommentVNode("",!0)],40,Yi)],8,ji),e.createElementVNode("details",{ref_key:"detailsRef",ref:I,open:n.open,onToggle:w[2]||(w[2]=async D=>mo(D)),onKeydown:w[3]||(w[3]=async D=>ko(D))},[e.renderSlot(n.$slots,"default"),n.options?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("summary",{class:"db-custom-select-form-field",id:E.value,"aria-disabled":e.unref(A)(n.disabled),"aria-labelledby":s.value},[(M=S.value)!=null&&M.length?(e.openBlock(),e.createElementBlock("span",{key:0,"data-visually-hidden":e.unref(A)(n.selectedType==="tag"),id:C.value},e.toDisplayString(S.value),9,Zi)):e.createCommentVNode("",!0),n.selectedType==="tag"?(e.openBlock(),e.createElementBlock("div",xi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(D,le)=>(e.openBlock(),e.createBlock(ia,{key:le,emphasis:"strong",behavior:"removable",removeButton:bo(le),onRemove:be=>yo(D,be)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ce(D)),1)]),_:2},1032,["removeButton","onRemove"]))),128))])):e.createCommentVNode("",!0)],8,Qi),e.createVNode(fa,{width:n.dropdownWidth},{default:e.withCtx(()=>[y.value?(e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(aa,{type:"search",ref_key:"searchInputRef",ref:Ue,name:i.value,form:i.value,showLabel:!1,value:ze.value,label:n.searchLabel??e.unref(oe),placeholder:n.searchPlaceholder??n.searchLabel,ariaDescribedBy:q.value||n.showLoading?h.value:void 0,onInput:D=>ga(D)},null,8,["name","form","value","label","placeholder","ariaDescribedBy","onInput"])])):e.createCommentVNode("",!0),q.value||n.showLoading?(e.openBlock(),e.createBlock(O,{key:1,id:h.value,icon:q.value?void 0:"circular_arrows",semantic:q.value?"warning":"informational"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((q.value?n.noResultsText:n.loadingText)??e.unref(qe)),1)]),_:1},8,["id","icon","semantic"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[_.value?(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("div",to,[e.createElementVNode("label",null,[e.createElementVNode("input",{type:"checkbox",value:"select-all",ref_key:"selectAllRef",ref:Be,form:i.value,checked:Re.value,onChange:w[1]||(w[1]=async D=>So(D))},null,40,io),e.createTextVNode(e.toDisplayString(ho()),1)])])])):e.createCommentVNode("",!0),e.createVNode(ra,{multiple:e.unref(L)(n.multiple,"multiple"),label:n.ariaListLabel??n.label??e.unref(oe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(D,le)=>(e.openBlock(),e.createBlock(ca,{key:le,type:n.multiple?"checkbox":"radio",showDivider:D.showDivider,icon:D.icon,isGroupTitle:D.isGroupTitle,groupTitle:ce(D),name:i.value,checked:go(D.value),disabled:D.disabled,value:D.value,onChange:be=>pa(D.value)},{default:e.withCtx(()=>[D.isGroupTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(ce(D)),1)],64))]),_:2},1032,["type","showDivider","icon","isGroupTitle","groupTitle","name","checked","disabled","value","onChange"]))),128))]),_:1},8,["multiple","label"])],64)),e.createElementVNode("div",null,[e.createVNode(ie,{variant:"ghost",width:"full",icon:"cross",size:"small",name:i.value,form:i.value,onClick:D=>he(void 0,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.mobileCloseButtonText??e.unref(ye)),1)]),_:1},8,["name","form","onClick"])])]),_:1},8,["width"])],64)):e.createCommentVNode("",!0)],40,Ji),(n.showClearSelection??!0)&&((W=k.value)!=null&&W.length)?(e.openBlock(),e.createBlock(ie,{key:0,icon:"cross",variant:"ghost",size:"small",noText:!0,name:i.value,form:i.value,onClick:D=>wo(D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1),e.createVNode(Me,{placement:"top"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1)]),_:1})]),_:1},8,["name","form","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("span",{"aria-hidden":e.unref(A)(!0),id:g.value},e.toDisplayString(n.placeholder??n.label),9,oo),e.unref(P)(n.message,n.showMessage)?(e.openBlock(),e.createBlock(O,{key:1,size:"small",icon:n.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),ua()?(e.openBlock(),e.createBlock(O,{key:2,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",lo,e.toDisplayString(b.value),1)],10,Hi)}}}),so=["id"],ro=e.defineComponent({__name:"custom-select-form-field",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("summary",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(T)("db-custom-select-form-field",t.class))},[e.renderSlot(a.$slots,"default")],10,so))}});m.AlignmentList=zi,m.AutoCompleteList=Vi,m.COLOR=Ve,m.COLORS=Ca,m.COLORS_SIMPLE=Na,m.COLOR_CONST=wa,m.COLOR_SIMPLE=$e,m.DBAccordion=di,m.DBAccordionItem=oa,m.DBBadge=Aa,m.DBBrand=Ma,m.DBButton=ie,m.DBCard=Ra,m.DBCheckbox=Wa,m.DBCustomSelect=no,m.DBCustomSelectDropdown=fa,m.DBCustomSelectFormField=ro,m.DBCustomSelectList=ra,m.DBCustomSelectListItem=ca,m.DBDivider=Ha,m.DBDrawer=Qe,m.DBHeader=pt,m.DBIcon=gt,m.DBInfotext=O,m.DBInput=aa,m.DBLink=Et,m.DBNavigation=ri,m.DBNavigationItem=ii,m.DBNotification=$a,m.DBPage=Nt,m.DBPopover=ui,m.DBRadio=It,m.DBSection=_t,m.DBSelect=Pt,m.DBStack=Ui,m.DBSwitch=qt,m.DBTabItem=ta,m.DBTabList=la,m.DBTabPanel=na,m.DBTabs=bi,m.DBTag=ia,m.DBTextarea=Zt,m.DBTooltip=Me,m.DEFAULT_BACK=We,m.DEFAULT_BURGER_MENU=He,m.DEFAULT_CLOSE_BUTTON=ye,m.DEFAULT_DATALIST_ID_SUFFIX=Ie,m.DEFAULT_ICON=je,m.DEFAULT_ID=ne,m.DEFAULT_INVALID_MESSAGE=G,m.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=Q,m.DEFAULT_LABEL=oe,m.DEFAULT_LABEL_ID_SUFFIX=Le,m.DEFAULT_MESSAGE=qe,m.DEFAULT_MESSAGE_ID_SUFFIX=K,m.DEFAULT_PLACEHOLDER=Ne,m.DEFAULT_PLACEHOLDER_ID_SUFFIX=ue,m.DEFAULT_REMOVE=De,m.DEFAULT_ROWS=Ye,m.DEFAULT_SELECTED=Xe,m.DEFAULT_SELECT_ID_SUFFIX=Te,m.DEFAULT_VALID_MESSAGE=Z,m.DEFAULT_VALID_MESSAGE_ID_SUFFIX=J,m.DEFAULT_VIEWPORT=Ke,m.DENSITIES=Ea,m.DENSITY=_e,m.DENSITY_CONST=Sa,m.DESKTOP_VIEWPORT=Je,m.EmphasisList=Ii,m.FieldSizingList=_i,m.GapSpacingList=Si,m.LabelVariantList=$i,m.LinkCurrentList=Ai,m.LinkReferrerPolicyList=Mi,m.LinkTargetList=Fi,m.MarginList=ki,m.MaxWidthList=Ci,m.NavigationItemSafeTriangle=ea,m.OrientationList=wi,m.PlacementHorizontalList=da,m.PlacementList=Bi,m.PlacementVerticalList=sa,m.PopoverDelayList=Ni,m.PopoverWidthList=Li,m.SEMANTIC=Ae,m.SEMANTICS=La,m.SemanticList=yi,m.SizeList=Ti,m.SpacingList=vi,m.TESTING_VIEWPORTS=Ta,m.ValidationList=Di,m.WidthList=Ei,m.addAttributeToChildren=we,m.cls=T,m.delay=U,m.getBoolean=L,m.getBooleanAsString=A,m.getHideProp=z,m.getInputValue=Ee,m.getNumber=te,m.getOptionKey=ka,m.getSearchInput=Ce,m.hasVoiceOver=Y,m.isArrayOfStrings=Oe,m.isEventTargetNavigationItem=Fe,m.isKeyboardEvent=Ge,m.stringPropVisible=P,m.uuid=F,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
1
+ (function(m,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(m=typeof globalThis<"u"?globalThis:m||self,e(m["DB-UX"]={},m.Vue))})(this,function(m,e){"use strict";var Co=Object.defineProperty;var No=(m,e,F)=>e in m?Co(m,e,{enumerable:!0,configurable:!0,writable:!0,value:F}):m[e]=F;var X=(m,e,F)=>No(m,typeof e!="symbol"?e+"":e,F);const F=()=>{var o,t;if(typeof window<"u"){if((o=window.crypto)!=null&&o.randomUUID)return window.crypto.randomUUID();if((t=window.crypto)!=null&&t.getRandomValues)return window.crypto.getRandomValues(new Uint32Array(3)).join("-")}return Math.random().toString().substring(2)},we=(o,t)=>{const l=o.children;Object.values(l).forEach(a=>{a.setAttribute(t.key,t.value),a.children.length>0&&we(a,t)})},L=(...o)=>{let t="";for(const l of o)if(l)if(typeof l=="string")t+=`${l} `;else for(const a in l)l[a]&&(t+=`${a} `);return t.trim()},Oe=o=>Array.isArray(o)&&o.every(t=>typeof t=="string"),va=["Mac","iPhone","iPad","iPod"],Y=()=>typeof window<"u"&&va.some(o=>window.navigator.userAgent.includes(o)),U=(o,t)=>new Promise(()=>setTimeout(o,t)),A=o=>{if(o!=null)return String(typeof o=="string"?!!o:o)},T=(o,t)=>{if(o!=null)return typeof o=="string"&&t?!!(t===o||o):!!o},te=(o,t)=>{if(!(o==null&&t==null))return Number(o??t)},Ee=(o,t)=>t&&["number","range"].includes(t)?te(o):o,z=o=>{if(o!=null)return A(!o)},P=(o,t)=>(t===void 0||!!t)&&!!o,Ce=o=>o.querySelector('input[type="search"]'),ka=(o,t)=>{const l=o.id??o.value??F();return`${t}${l}`},Ge=o=>o.key!==void 0,Ba=["id","type","disabled","aria-label","data-icon","data-hide-icon","data-size","data-state","data-width","data-variant","data-no-text","name","form","value","aria-describedby","aria-expanded","aria-pressed"],ie=e.defineComponent({__name:"button",props:{ariaexpanded:{type:Boolean,default:void 0},ariapressed:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},form:{default:void 0},label:{default:void 0},name:{default:void 0},noText:{type:[Boolean,String],default:void 0},state:{default:void 0},type:{default:void 0},value:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-button",t.class)),type:i.type||"button",disabled:e.unref(T)(i.disabled,"disabled"),"aria-label":i.label,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-size":i.size,"data-state":i.state,"data-width":i.width,"data-variant":i.variant,"data-no-text":e.unref(A)(i.noText),name:i.name,form:i.form,value:i.value,"aria-describedby":i.describedbyid,"aria-expanded":i.ariaexpanded,"aria-pressed":i.ariapressed,onClick:p[0]||(p[0]=async d=>a(d))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,Ba))}}),ne="OVERWRITE_DEFAULT_ID",oe="LABEL SHOULD BE SET",Ne=" ",qe="MESSAGE SHOULD BE SET",Te="-label",Le="-select",K="-message",J="-valid-message",Q="-invalid-message",ue="-placeholder",Ie="-datalist",Z="TODO: Add a validMessage",G="TODO: Add an invalidMessage",De="Remove",We="Back",Xe="Selected",He="BurgerMenu",je="brand",Ye=4,ye="Close",Sa="density",wa="color";var _e=(o=>(o.FUNCTIONAL="functional",o.REGULAR="regular",o.EXPRESSIVE="expressive",o))(_e||{});const Ea=Object.entries(_e).map(([,o])=>o);var $e=(o=>(o.PRIMARY="primary",o))($e||{}),Ve=(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))(Ve||{});const Ca=Object.entries(Ve).map(([,o])=>o),Na=Object.entries($e).map(([,o])=>o);var Ae=(o=>(o.CRITICAL="critical",o.INFORMATIONAL="informational",o.WARNING="warning",o.SUCCESSFUL="successful",o))(Ae||{});const Ta=Object.entries(Ae).map(([,o])=>o),Ke={width:390,height:884},Je={width:1920,height:1280},La=[{name:"desktop",...Je},{name:"tablet",width:768,height:1024},{name:"mobile",...Ke}],Ia=["id","aria-live","data-semantic","data-variant","data-icon","data-hide-icon","data-link-variant"],Da={key:0},_a={key:1},$a=e.defineComponent({__name:"notification",props:{ariaLive:{default:void 0},closeable:{type:[Boolean,String],default:void 0},headline:{default:void 0},image:{},link:{},linkVariant:{default:void 0},showHeadline:{type:[Boolean,String],default:void 0},timestamp:{default:void 0},showTimestamp:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},icon:{default:void 0},semantic:{default:void 0},closeButtonId:{default:void 0},closeButtonText:{default:void 0},delay:{},animation:{type:[Boolean,String]},width:{},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){i&&(i.stopPropagation(),t.onClose&&t.onClose(i))}return(i,p)=>(e.openBlock(),e.createElementBlock("article",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-notification",t.class)),"aria-live":i.ariaLive,"data-semantic":i.semantic,"data-variant":i.variant,"data-icon":i.icon,"data-hide-icon":e.unref(z)(i.showIcon),"data-link-variant":i.linkVariant},[e.renderSlot(i.$slots,"image"),e.unref(P)(i.headline,i.showHeadline)?(e.openBlock(),e.createElementBlock("header",Da,e.toDisplayString(i.headline),1)):e.createCommentVNode("",!0),e.createElementVNode("p",null,[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})]),e.unref(P)(i.timestamp,i.showTimestamp)?(e.openBlock(),e.createElementBlock("span",_a,e.toDisplayString(i.timestamp),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"link"),e.unref(T)(i.closeable,"closeable")?(e.openBlock(),e.createBlock(ie,{key:2,icon:"cross",variant:"ghost",size:"small",id:i.closeButtonId,noText:!0,onClick:d=>a(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.closeButtonText??e.unref(ye)),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0)],10,Ia))}}),Va=["id","data-semantic","data-size","data-emphasis","data-placement","data-label"],Aa=e.defineComponent({__name:"badge",props:{placement:{default:void 0},label:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},semantic:{default:void 0},size:{default:void 0},emphasis:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);return e.onMounted(()=>{l.value=!0}),e.watch(()=>[a.value,l.value],()=>{var i;if(a.value&&l.value&&(i=t.placement)!=null&&i.startsWith("corner")){let p=a.value.parentElement;p&&p.localName.includes("badge")&&(p=p.parentElement),p&&(p.dataset.hasBadge="true")}},{immediate:!0,flush:"post"}),(i,p)=>{var d;return e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(L)("db-badge",t.class)),"data-semantic":i.semantic,"data-size":i.size,"data-emphasis":i.emphasis,"data-placement":i.placement,"data-label":((d=i.placement)==null?void 0:d.startsWith("corner"))&&(i.label??e.unref(oe))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,Va)}}}),Fa=["data-icon","data-hide-icon","id"],Ma=e.defineComponent({__name:"brand",props:{hideLogo:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,"data-icon":a.hideLogo?"none":a.icon??e.unref(je),"data-hide-icon":e.unref(z)(a.showIcon),id:a.id,class:e.normalizeClass(e.unref(L)("db-brand",t.class))},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Fa))}}),za=["id","data-behavior","data-elevation-level","data-spacing","role","tabIndex"],Ra=e.defineComponent({__name:"card",props:{behavior:{default:void 0},elevationLevel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-card",t.class)),"data-behavior":i.behavior,"data-elevation-level":i.elevationLevel,"data-spacing":i.spacing,role:i.behavior==="interactive"?"button":void 0,tabIndex:i.behavior==="interactive"?0:void 0,onClick:p[0]||(p[0]=async d=>a(d))},[e.renderSlot(i.$slots,"default")],10,za))}}),H=(o,t,l="value")=>{o(`update:${l}`,t.target[l])},Ua=["id","data-icon","data-semantic","data-size","data-hide-icon-before"],O=e.defineComponent({__name:"infotext",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},semantic:{default:void 0},icon:{default:void 0},size:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-infotext",t.class)),"data-icon":a.icon,"data-semantic":a.semantic,"data-size":a.size,"data-hide-icon-before":e.unref(z)(a.showIcon??!0)},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,Ua))}}),Pa=["data-size","data-hide-label"],Oa=["for"],Ga=["aria-invalid","data-custom-validity","id","name","checked","disabled","value","required","aria-describedby"],qa={"data-visually-hidden":"true",role:"status"},Wa=e.defineComponent({__name:"checkbox",props:{indeterminate:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},variant:{},placeholder:{},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(""),E=e.ref(""),g=e.ref(null);e.onMounted(()=>{i.value=!0;const b=a.id??`checkbox-${F()}`;p.value=b,d.value=b+K,B.value=b+J,r.value=b+Q,f.value=a.invalidMessage||G}),e.watch(()=>[g.value,a.invalidMessage],()=>{var b;f.value=a.invalidMessage||((b=g.value)==null?void 0:b.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[p.value],()=>{if(p.value){const b=p.value+K;d.value=b,B.value=p.value+J,r.value=p.value+Q,P(a.message,a.showMessage)&&(s.value=b)}},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value,a.indeterminate],()=>{g.value&&a.indeterminate!==void 0&&(g.value.indeterminate=!!T(a.indeterminate))},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value,a.checked],()=>{i.value&&g.value&&(a.checked!=null&&(g.value.checked=!!T(a.checked)),i.value=!1)},{immediate:!0,flush:"post"});function h(){return!!(a.validMessage??a.validation==="valid")}function u(){var b,v,_;!((b=g.value)!=null&&b.validity.valid)||a.validation==="invalid"?(s.value=r.value,f.value=a.invalidMessage||((v=g.value)==null?void 0:v.validationMessage)||G,Y()&&(E.value=f.value,U(()=>E.value="",1e3))):h()&&((_=g.value)!=null&&_.validity.valid)&&a.required?(s.value=B.value,Y()&&(E.value=a.validMessage??Z,U(()=>E.value="",1e3))):P(a.message,a.showMessage)?s.value=d.value:s.value=""}function c(b){a.onChange&&a.onChange(b),H(l,b,"checked"),u()}function S(b){a.onBlur&&a.onBlur(b)}function C(b){a.onFocus&&a.onFocus(b)}return(b,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-checkbox",a.class)),"data-size":b.size,"data-hide-label":e.unref(z)(b.showLabel)},[e.createElementVNode("label",{for:p.value},[e.createElementVNode("input",{type:"checkbox","aria-invalid":b.validation==="invalid","data-custom-validity":b.validation,ref_key:"_ref",ref:g,id:p.value,name:b.name,checked:e.unref(T)(b.checked,"checked"),disabled:e.unref(T)(b.disabled,"disabled"),value:b.value,required:e.unref(T)(b.required,"required"),onChange:v[0]||(v[0]=async _=>c(_)),onBlur:v[1]||(v[1]=async _=>S(_)),onFocus:v[2]||(v[2]=async _=>C(_)),"aria-describedby":b.ariaDescribedBy??s.value},null,40,Ga),b.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.label),1)],64)):e.renderSlot(b.$slots,"default",{key:1})],8,Oa),e.unref(P)(b.message,b.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:b.messageIcon,id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),h()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1},8,["id"]),e.createElementVNode("span",qa,e.toDisplayString(E.value),1)],10,Pa))}}),Xa=["id","data-margin","data-variant","data-emphasis","data-width"],Ha=e.defineComponent({__name:"divider",props:{margin:{default:void 0},variant:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},emphasis:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,"data-margin":a.margin,"data-variant":a.variant,"data-emphasis":a.emphasis,"data-width":a.width,class:e.normalizeClass(e.unref(L)("db-divider",t.class))},null,10,Xa))}}),ja=["id","data-backdrop","data-variant"],Ya=["data-spacing","data-width","data-direction","data-rounded"],Ka={class:"db-drawer-header"},Ja={class:"db-drawer-header-text"},Qa={class:"db-drawer-content"},Qe=e.defineComponent({__name:"drawer",props:{backdrop:{default:void 0},direction:{default:void 0},drawerHeader:{},open:{type:[Boolean,String],default:void 0},rounded:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClose:{type:Function,default:void 0},close:{},closeButtonId:{default:void 0},closeButtonText:{default:void 0},width:{default:void 0},spacing:{default:void 0}},setup(o){const t=o,l=e.ref(null),a=e.ref(null);e.onMounted(()=>{p()}),e.watch(()=>[t.open],()=>{p()},{immediate:!0,flush:"post"});function i(d,B){var r;d&&(Ge(d)?d.key==="Escape"&&(d.preventDefault(),t.onClose&&t.onClose(d)):(B&&(d.stopPropagation(),t.onClose&&t.onClose(d)),((r=d.target)==null?void 0:r.nodeName)==="DIALOG"&&d.type==="click"&&t.backdrop!=="none"&&t.onClose&&t.onClose(d)))}function p(){if(l.value){const d=!!t.open;d&&!l.value.open&&(a.value&&(a.value.hidden=!1),t.backdrop==="none"||t.variant==="inside"?l.value.show():l.value.showModal()),!d&&l.value.open&&(a.value&&(a.value.hidden=!0),U(()=>{var B;a.value&&(a.value.hidden=!1),(B=l.value)==null||B.close()},401))}}return(d,B)=>(e.openBlock(),e.createElementBlock("dialog",{class:"db-drawer",id:d.id,ref_key:"_ref",ref:l,onClick:B[0]||(B[0]=async r=>i(r)),onKeydown:B[1]||(B[1]=async r=>i(r)),"data-backdrop":d.backdrop,"data-variant":d.variant},[e.createElementVNode("article",{ref_key:"dialogContainerRef",ref:a,class:e.normalizeClass(e.unref(L)("db-drawer-container",t.class)),"data-spacing":d.spacing,"data-width":d.width,"data-direction":d.direction,"data-rounded":e.unref(A)(d.rounded)},[e.createElementVNode("header",Ka,[e.createElementVNode("div",Ja,[e.renderSlot(d.$slots,"drawer-header")]),e.createVNode(ie,{class:"button-close-drawer",icon:"cross",variant:"ghost",id:d.closeButtonId,noText:!0,onClick:r=>i(r,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.closeButtonText??e.unref(ye)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",Qa,[e.renderSlot(d.$slots,"default")])],10,Ya)],40,ja))}}),Za=o=>{var u;const{top:t,bottom:l,left:a,right:i}=o.getBoundingClientRect(),{innerHeight:p,innerWidth:d}=window;let B=t<0,r=l>p,f=a<0,s=i>d;const E=o.dataset.outsideVy,g=o.dataset.outsideVx,h=(u=o==null?void 0:o.parentElement)==null?void 0:u.getBoundingClientRect();return h&&(E&&(o.dataset.outsideVy==="top"?B=h.top-(l-h.bottom)<0:r=h.bottom+(h.top-t)>p),g&&(o.dataset.outsideVx==="left"?f=h.left-(i-h.right)<0:s=h.right+(h.left-a)>d)),{outTop:B,outBottom:r,outLeft:f,outRight:s}},xa=o=>{const{outTop:t,outBottom:l,outLeft:a,outRight:i}=Za(o);let p={};return t||l?(p={vy:t?"top":"bottom"},o.dataset.outsideVy=p.vy):delete o.dataset.outsideVy,a||i?(p={...p,vx:i?"right":"left"},o.dataset.outsideVx=p.vx):delete o.dataset.outsideVx,p},et=(o,t,l)=>{if(getComputedStyle(o).zIndex==="9999")return;const{top:a,bottom:i,childHeight:p,childWidth:d,width:B,right:r,left:f,correctedPlacement:s}=Ze(o,t,l);o.dataset.width==="full"&&(o.style.inlineSize=`${B}px`),s==="top"||s==="bottom"||s==="top-start"||s==="bottom-start"?o.style.insetInlineStart=`${f}px`:(s==="top-end"||s==="bottom-end")&&(o.style.insetInlineStart=`${r-d}px`),s!=null&&s.startsWith("top")?o.style.insetBlockStart=`${a-p}px`:s!=null&&s.startsWith("bottom")&&(o.style.insetBlockStart=`${i}px`),o.style.position="fixed"},Ze=(o,t,l)=>{if(!o||!t)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:l,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const a=o.getBoundingClientRect(),{top:i,height:p,bottom:d,right:B,left:r,width:f}=t.getBoundingClientRect(),{innerHeight:s,innerWidth:E}=window;let g=a.height,h=a.width;(l==="bottom"||l==="top")&&(h=h/2),(l==="left"||l==="right")&&(g=g/2);const u=d+g>s,c=i-g<0,S=r-h<0,C=B+h>E;let b=l;return l.startsWith("bottom")?u?(b=l==null?void 0:l.replace("bottom","top"),S&&C?b="top":S?b="top-start":C&&(b="top-end")):S&&C?b="bottom":S?b="bottom-start":C&&(b="bottom-end"):l.startsWith("top")?c?(b=l==null?void 0:l.replace("top","bottom"),S&&C?b="bottom":S?b="bottom-start":C&&(b="bottom-end")):S&&C?b="top":S?b="top-start":C&&(b="top-end"):l.startsWith("left")?S?(b=l==null?void 0:l.replace("left","right"),u&&c?b="right":u?b="right-end":c&&(b="right-start")):u&&c?b="left":u?b="left-end":c&&(b="left-start"):b.startsWith("right")&&(C?(b=l==null?void 0:l.replace("right","left"),u&&c?b="left":u?b="left-end":c&&(b="left-start")):u&&c?b="right":u?b="right-end":c&&(b="right-start")),{top:i,bottom:d,right:B,height:p,width:f,left:r,childHeight:a.height,childWidth:a.width,correctedPlacement:b,innerWidth:E,innerHeight:s}},xe=(o,t,l)=>{const a=getComputedStyle(o).getPropertyValue("--db-popover-distance")??"0px",{top:i,height:p,width:d,childHeight:B,childWidth:r,right:f,left:s,bottom:E,correctedPlacement:g,innerWidth:h,innerHeight:u}=Ze(o,t,l);if(r>d&&(g.startsWith("bottom")||g.startsWith("top"))){const c=d/2/r*100;g.endsWith("start")?o.style.setProperty("--db-tooltip-arrow-inline-start",`${c}%`):g.endsWith("end")&&o.style.setProperty("--db-tooltip-arrow-inline-start",`${100-c}%`)}if(B>p&&(g.startsWith("left")||g.startsWith("bottom"))){const c=p/2/B*100;g.endsWith("start")?o.style.setProperty("--db-tooltip-arrow-block-start",`${c}%`):g.endsWith("end")&&o.style.setProperty("--db-tooltip-arrow-block-start",`${100-c}%`)}if(g==="right"||g==="left")o.style.insetBlockStart=`${i+p/2}px`;else if(g==="right-start"||g==="left-start"){const c=i+B;o.style.insetBlockStart=`${i}px`,o.style.insetBlockEnd=`${c>u?u:c}px`}else if(g==="right-end"||g==="left-end"){const c=E-B;o.style.insetBlockStart=`${c<0?0:c}px`,o.style.insetBlockEnd=`${E}px`}else if(g==="top"||g==="bottom")o.style.insetInlineStart=`${s+d/2}px`;else if(g==="top-start"||g==="bottom-start"){const c=s+r;o.style.insetInlineStart=`${s}px`,o.style.insetInlineEnd=`${c>h?h:c}px`}else if(g==="top-end"||g==="bottom-end"){const c=s-r;o.style.insetInlineStart=`${f-r}px`,o.style.insetInlineEnd=`${c<0?0:c}px`}if(g!=null&&g.startsWith("right")){const c=f+r;o.style.insetInlineStart=`calc(${f}px + ${a})`,o.style.insetInlineEnd=`calc(${c>h?h:c}px + ${a})`}else if(g!=null&&g.startsWith("left")){const c=s-r;o.style.insetInlineStart=`calc(${c<0?0:c}px - ${a})`,o.style.insetInlineEnd=`calc(${f}px - ${a})`}else if(g!=null&&g.startsWith("top")){const c=i-B;o.style.insetBlockStart=`calc(${c<0?0:c}px - ${a})`,o.style.insetBlockEnd=`calc(${E}px - ${a})`}else if(g!=null&&g.startsWith("bottom")){const c=E+B;o.style.insetBlockStart=`calc(${E}px + ${a})`,o.style.insetBlockEnd=`calc(${c>u?u:c}px + ${a})`}o.style.position="fixed",o.dataset.correctedPlacement=g},Fe=o=>{var l,a;const{target:t}=o;return!!(!((l=t==null?void 0:t.classList)!=null&&l.contains("db-navigation-item-expand-button"))&&((a=t==null?void 0:t.parentElement)!=null&&a.classList.contains("db-navigation-item")))};class ea{constructor(t,l){X(this,"element");X(this,"subNavigation");X(this,"parentSubNavigation",null);X(this,"triangleData");X(this,"initialized",!1);X(this,"mouseX",0);X(this,"mouseY",0);var a;this.element=t,this.subNavigation=l,!(!this.element||!this.subNavigation)&&(this.parentSubNavigation=(a=this.element)==null?void 0:a.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var l,a;const t=((l=this.parentSubNavigation)==null?void 0:l.getBoundingClientRect().width)??0;(a=this.element)==null||a.style.setProperty("--db-navigation-item-inline-size",`${t}px`),this.initialized=!0}enableFollow(){var i;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const t=xa(this.subNavigation),l=this.element.getBoundingClientRect(),a=((i=this.parentSubNavigation)==null?void 0:i.getBoundingClientRect().width)??0;this.triangleData={itemRect:l,parentElementWidth:a,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(a-l.width)/2,outsideVX:t.vx,outsideVY:t.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?this.triangleData.outsideVX==="right"?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,this.triangleData.itemRect.width*.75):0}getTriangleTipY(){if(!this.triangleData)return 0;const t=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return this.triangleData.outsideVY==="bottom"?t+(this.triangleData.subNavigationHeight-this.triangleData.padding*2-this.triangleData.itemRect.height):t}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const t=this.triangleData.outsideVX==="right";return!!(t&&this.mouseX<-1*this.triangleData.padding||!t&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding)}getTriangleCoordinates(t){if(!this.triangleData)return;if(t==="fill-gap"){const d=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,B=`${this.triangleData.parentElementWidth-this.triangleData.padding}px`;return{lb:`${B} ${d}`,lt:`${B} 0`,rt:"100% 0",rb:`100% ${d}`}}const l=this.getTriangleTipX(),a=this.getTriangleTipY(),i=`${l}px ${a}px`,p=`${l}px ${a}px`;return{lb:i,lt:p,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(t){if(!this.initialized||!this.triangleData||!this.element||!this.subNavigation)return;this.mouseX=t.clientX-this.triangleData.itemRect.left,this.mouseY=t.clientY-this.triangleData.itemRect.top;const 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 at=["id","data-width","data-on-forcing-mobile"],tt={class:"db-header-drawer-navigation"},it={class:"db-header-meta-navigation"},ot={class:"db-header-secondary-action"},lt={class:"db-header-meta-navigation"},nt={class:"db-header-navigation-bar"},dt={class:"db-header-brand-container"},st={class:"db-header-navigation-container"},rt={class:"db-header-navigation"},ct={class:"db-header-primary-action"},ft={class:"db-header-action-container"},ut={class:"db-header-burger-menu-container"},mt={class:"db-header-secondary-action"},pt=e.defineComponent({__name:"header",props:{brand:{},metaNavigation:{},primaryAction:{},secondaryAction:{},drawerOpen:{type:[Boolean,String],default:void 0},forceMobile:{type:[Boolean,String],default:void 0},burgerMenuLabel:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(!1),p=e.ref(null);e.onMounted(()=>{a.value=!0,l.value=t.id||"header-"+F()}),e.watch(()=>[a.value],()=>{if(a.value&&document&&l.value&&t.forceMobile){const r=document.getElementById(l.value??"");r&&we(r,{key:"data-force-mobile",value:"true"}),i.value=!0}},{immediate:!0,flush:"post"});function d(r){const f=!T(t.drawerOpen,"drawerOpen");t.onToggle&&t.onToggle(f)}function B(r){Fe(r)&&d()}return(r,f)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"_ref",ref:p,class:e.normalizeClass(e.unref(L)("db-header",t.class)),id:l.value,"data-width":r.width,"data-on-forcing-mobile":r.forceMobile&&!i.value},[e.createVNode(Qe,{class:"db-header-drawer",spacing:"small",rounded:!0,open:e.unref(T)(r.drawerOpen),onClose:s=>d()},{default:e.withCtx(()=>[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:"db-header-navigation",onClick:f[0]||(f[0]=async s=>B(s))},[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",it,[e.renderSlot(r.$slots,"meta-navigation")])]),e.createElementVNode("div",ot,[e.renderSlot(r.$slots,"secondary-action")])]),_:3},8,["open","onClose"]),e.createElementVNode("div",lt,[e.renderSlot(r.$slots,"meta-navigation")]),e.createElementVNode("div",nt,[e.createElementVNode("div",dt,[e.renderSlot(r.$slots,"brand")]),e.createElementVNode("div",st,[e.createElementVNode("div",rt,[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(r.$slots,"primary-action")])]),e.createElementVNode("div",ft,[e.createElementVNode("div",ut,[e.createVNode(ie,{icon:"menu",variant:"ghost",id:l.value+"-burger-menu",noText:!0,onClick:s=>d()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.burgerMenuLabel??e.unref(He)),1)]),_:1},8,["id","onClick"])]),e.createElementVNode("div",mt,[e.renderSlot(r.$slots,"secondary-action")])])])],10,at))}}),ht=["id","data-icon","data-icon-weight","data-icon-variant"],gt=e.defineComponent({__name:"icon",props:{variant:{default:void 0},weight:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("span",{"aria-hidden":"true",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-icon",t.class)),"data-icon":a.icon,"data-icon-weight":a.weight,"data-icon-variant":a.variant},[a.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.text),1)],64)):e.renderSlot(a.$slots,"default",{key:1})],10,ht))}}),bt=["data-variant","data-hide-label","data-hide-icon","data-icon","data-icon-after","data-hide-icon-after"],yt=["for"],vt=["aria-invalid","data-custom-validity","data-field-sizing","id","name","type","placeholder","disabled","required","step","value","maxLength","minLength","max","min","readOnly","form","pattern","size","autoComplete","autoFocus","list","aria-describedby"],kt=["id"],Bt=["value"],St={"data-visually-hidden":"true",role:"status"},aa=e.defineComponent({__name:"input",props:{dataList:{default:void 0},dataListId:{default:void 0},max:{default:void 0},min:{default:void 0},pattern:{default:void 0},type:{default:void 0},step:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String],default:void 0},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(""),E=e.ref(""),g=e.ref(""),h=e.ref(null);e.onMounted(()=>{const y=a.id??`input-${F()}`;i.value=y,p.value=y+K,d.value=y+J,B.value=y+Q,f.value=y+Ie,r.value=a.invalidMessage||G}),e.watch(()=>[h.value,a.invalidMessage],()=>{var y;r.value=a.invalidMessage||((y=h.value)==null?void 0:y.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const y=i.value+K;p.value=y,d.value=i.value+J,B.value=i.value+Q,f.value=a.dataListId??i.value+Ie,P(a.message,a.showMessage)&&(s.value=y)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{E.value=a.value},{immediate:!0,flush:"post"});function u(){return!!(a.validMessage??a.validation==="valid")}function c(){var y,$,k;!((y=h.value)!=null&&y.validity.valid)||a.validation==="invalid"?(s.value=B.value,r.value=a.invalidMessage||(($=h.value)==null?void 0:$.validationMessage)||G,Y()&&(g.value=r.value,U(()=>g.value="",1e3))):u()&&((k=h.value)!=null&&k.validity.valid)&&(a.required||a.minLength||a.maxLength||a.pattern)?(s.value=d.value,Y()&&(g.value=a.validMessage??Z,U(()=>g.value="",1e3))):P(a.message,a.showMessage)?s.value=p.value:s.value=""}function S(y){a.input&&a.input(y),E.value=y.target.value,a.onInput&&a.onInput(y),H(l,y),c()}function C(y){a.onChange&&a.onChange(y),H(l,y),c()}function b(y){a.onBlur&&a.onBlur(y)}function v(y){a.onFocus&&a.onFocus(y)}function _(){const y=a.dataList;return Array.from((Oe(y)?y==null?void 0:y.map($=>({value:$,label:void 0})):y)||[])}return(y,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-input",a.class)),"data-variant":y.variant,"data-hide-label":e.unref(z)(y.showLabel),"data-hide-icon":e.unref(z)(y.showIcon),"data-icon":y.icon,"data-icon-after":y.iconAfter,"data-hide-icon-after":e.unref(z)(y.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(y.label??e.unref(oe)),9,yt),e.createElementVNode("input",{"aria-invalid":y.validation==="invalid","data-custom-validity":y.validation,"data-field-sizing":y.fieldSizing,ref_key:"_ref",ref:h,id:i.value,name:y.name,type:y.type||"text",placeholder:y.placeholder??e.unref(Ne),disabled:e.unref(T)(y.disabled,"disabled"),required:e.unref(T)(y.required,"required"),step:e.unref(te)(y.step),value:y.value??E.value,maxLength:e.unref(te)(y.maxLength,y.maxlength),minLength:e.unref(te)(y.minLength,y.minlength),max:e.unref(Ee)(y.max,y.type),min:e.unref(Ee)(y.min,y.type),readOnly:e.unref(T)(y.readOnly,"readOnly")||e.unref(T)(y.readonly,"readonly"),form:y.form,pattern:y.pattern,size:y.size,autoComplete:y.autocomplete,autoFocus:e.unref(T)(y.autofocus,"autofocus"),onInput:$[0]||($[0]=async k=>S(k)),onChange:$[1]||($[1]=async k=>C(k)),onBlur:$[2]||($[2]=async k=>b(k)),onFocus:$[3]||($[3]=async k=>v(k)),list:y.dataList&&f.value,"aria-describedby":y.ariaDescribedBy??s.value},null,40,vt),y.dataList?(e.openBlock(),e.createElementBlock("datalist",{key:0,id:f.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_(),k=>(e.openBlock(),e.createElementBlock("option",{key:f.value+"-option-"+k.value,value:k.value},e.toDisplayString(k.label),9,Bt))),128))],8,kt)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"default"),e.unref(P)(y.message,y.showMessage)?(e.openBlock(),e.createBlock(O,{key:1,size:"small",icon:y.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),u()?(e.openBlock(),e.createBlock(O,{key:2,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",St,e.toDisplayString(g.value),1)],10,bt))}}),wt=["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"],Et=e.defineComponent({__name:"link",props:{content:{default:void 0},size:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},current:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},href:{default:void 0},hreflang:{default:void 0},label:{default:void 0},target:{default:void 0},rel:{default:void 0},role:{default:void 0},referrerpolicy:{},selected:{type:[Boolean,String],default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(null);function a(i){t.onClick&&t.onClick(i)}return(i,p)=>(e.openBlock(),e.createElementBlock("a",{ref_key:"_ref",ref:l,id:i.id,class:e.normalizeClass(e.unref(L)("db-link",t.class)),href:i.href,target:i.target,rel:i.rel,role:i.role,hrefLang:i.hreflang,"aria-disabled":e.unref(A)(i.disabled),tabIndex:i.disabled?-1:0,"aria-selected":e.unref(A)(i.selected),"aria-label":i.label,"aria-current":i.current,"data-size":i.size,"data-hide-icon-after":e.unref(z)(i.showIcon??!0),"data-variant":i.variant,"data-content":i.content||"internal",onClick:p[0]||(p[0]=async d=>a(d))},[i.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.text),1)],64)):e.renderSlot(i.$slots,"default",{key:1})],10,wt))}}),Ct=["id","data-variant","data-fade-in","data-fonts-loaded"],Nt=e.defineComponent({__name:"page",props:{documentOverflow:{default:void 0},fadeIn:{type:[Boolean,String],default:void 0},footer:{},header:{},mainClass:{default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);return typeof window<"u"&&document&&(t.documentOverflow==="hidden"||t.variant==="fixed"&&t.documentOverflow!=="auto")&&document.documentElement.classList.add("db-page-document"),e.onMounted(()=>{l.value=!t.fadeIn,document&&t.fadeIn?document.fonts.ready.then(()=>{l.value=!0}):l.value=!0}),e.onUnmounted(()=>{typeof window<"u"&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}),(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:i.id,class:e.normalizeClass(e.unref(L)("db-page",t.class)),"data-variant":i.variant,"data-fade-in":e.unref(A)(i.fadeIn),"data-fonts-loaded":e.unref(A)(l.value)},[e.renderSlot(i.$slots,"header"),e.createElementVNode("main",{class:e.normalizeClass(e.unref(L)("db-main",i.mainClass))},[e.renderSlot(i.$slots,"default")],2),e.renderSlot(i.$slots,"footer")],10,Ct))}}),Tt=["data-size","data-hide-label","for"],Lt=["aria-invalid","data-custom-validity","id","name","checked","disabled","aria-describedby","value","required"],It=e.defineComponent({__name:"radio",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{i.value=!0,p.value=a.id??`radio-${F()}`}),e.watch(()=>[i.value,d.value,a.checked],()=>{a.checked&&i.value&&d.value&&(d.value.checked=!0)},{immediate:!0,flush:"post"});function B(s){a.onChange&&a.onChange(s),H(l,s)}function r(s){a.onBlur&&a.onBlur(s)}function f(s){a.onFocus&&a.onFocus(s)}return(s,E)=>(e.openBlock(),e.createElementBlock("label",{"data-size":s.size,"data-hide-label":e.unref(z)(s.showLabel),class:e.normalizeClass(e.unref(L)("db-radio",a.class)),for:p.value},[e.createElementVNode("input",{type:"radio","aria-invalid":s.validation==="invalid","data-custom-validity":s.validation,ref_key:"_ref",ref:d,id:p.value,name:s.name,checked:e.unref(T)(s.checked,"checked"),disabled:e.unref(T)(s.disabled,"disabled"),"aria-describedby":s.describedbyid??s.ariaDescribedBy,value:s.value,required:e.unref(T)(s.required,"required"),onChange:E[0]||(E[0]=async g=>B(g)),onBlur:E[1]||(E[1]=async g=>r(g)),onFocus:E[2]||(E[2]=async g=>f(g))},null,40,Lt),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.renderSlot(s.$slots,"default",{key:1})],10,Tt))}}),Dt=["id","data-spacing","data-width"],_t=e.defineComponent({__name:"section",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"section-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(L)("db-section",t.class)),"data-spacing":i.spacing||"medium","data-width":i.width},[e.renderSlot(i.$slots,"default")],10,Dt))}}),$t=["data-variant","data-hide-label","data-icon","data-hide-icon"],Vt=["for"],At=["aria-invalid","data-custom-validity","required","disabled","id","name","size","value","autocomplete","multiple","aria-describedby"],Ft=["label"],Mt=["value","selected","disabled"],zt=["value","disabled","selected"],Rt=["id"],Ut={"data-visually-hidden":"true",role:"status"},Pt=e.defineComponent({__name:"select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},icon:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0},multiple:{type:Boolean,default:void 0},options:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},size:{default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(""),s=e.ref(""),E=e.ref(""),g=e.ref(!1),h=e.ref(""),u=e.ref(null);e.onMounted(()=>{g.value=!0;const k=a.id??`select-${F()}`;i.value=k,p.value=k+K,d.value=k+J,B.value=k+Q,f.value=k+ue,r.value=a.invalidMessage||G}),e.watch(()=>[u.value,a.invalidMessage],()=>{var k;r.value=a.invalidMessage||((k=u.value)==null?void 0:k.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value,g.value],()=>{if(i.value&&g.value){const k=i.value+K,V=i.value+ue;p.value=k,d.value=i.value+J,B.value=i.value+Q,f.value=V,P(a.message,a.showMessage)?s.value=k:s.value=V,g.value=!1}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{E.value=a.value},{immediate:!0,flush:"post"});function c(){return!!(a.validMessage??a.validation==="valid")}function S(){var k,V,q;!((k=u.value)!=null&&k.validity.valid)||a.validation==="invalid"?(s.value=B.value,r.value=a.invalidMessage||((V=u.value)==null?void 0:V.validationMessage)||G,Y()&&(h.value=r.value,U(()=>h.value="",1e3))):c()&&((q=u.value)!=null&&q.validity.valid)&&a.required?(s.value=d.value,Y()&&(h.value=a.validMessage??Z,U(()=>h.value="",1e3))):P(a.message,a.showMessage)?s.value=p.value:s.value=f.value}function C(k){a.onClick&&a.onClick(k)}function b(k){a.input&&a.input(k),E.value=k.target.value,a.onInput&&a.onInput(k),H(l,k),S()}function v(k){a.onChange&&a.onChange(k),H(l,k),S()}function _(k){a.onBlur&&a.onBlur(k)}function y(k){a.onFocus&&a.onFocus(k)}function $(k){var V;return k.label??((V=k.value)==null?void 0:V.toString())}return(k,V)=>{var q;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-select",a.class)),"data-variant":k.variant,"data-hide-label":e.unref(z)(k.showLabel),"data-icon":k.icon,"data-hide-icon":e.unref(z)(k.showIcon)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(k.label??e.unref(oe)),9,Vt),e.createElementVNode("select",{"aria-invalid":k.validation==="invalid","data-custom-validity":k.validation,ref_key:"_ref",ref:u,required:e.unref(T)(k.required,"required"),disabled:e.unref(T)(k.disabled,"disabled"),id:i.value,name:k.name,size:k.size,value:k.value??E.value,autocomplete:k.autocomplete,multiple:k.multiple,onInput:V[0]||(V[0]=async R=>b(R)),onClick:V[1]||(V[1]=async R=>C(R)),onChange:V[2]||(V[2]=async R=>v(R)),onBlur:V[3]||(V[3]=async R=>_(R)),onFocus:V[4]||(V[4]=async R=>y(R)),"aria-describedby":k.ariaDescribedBy??s.value},[V[5]||(V[5]=e.createElementVNode("option",{hidden:!0},null,-1)),(q=k.options)!=null&&q.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.options,(R,ke)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ke},[R.options?(e.openBlock(),e.createElementBlock("optgroup",{key:0,label:$(R)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.options,(se,me)=>(e.openBlock(),e.createElementBlock("option",{key:me,value:se.value,selected:se.selected,disabled:se.disabled},e.toDisplayString($(se)),9,Mt))),128))],8,Ft)):(e.openBlock(),e.createElementBlock("option",{key:1,value:R.value,disabled:R.disabled,selected:R.selected},e.toDisplayString($(R)),9,zt))],64))),128)):e.renderSlot(k.$slots,"default",{key:1})],40,At),e.createElementVNode("span",{id:f.value},e.toDisplayString(k.placeholder??k.label),9,Rt),e.unref(P)(k.message,k.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:k.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),c()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Ut,e.toDisplayString(h.value),1)],10,$t)}}}),Ot=["data-visual-aid","data-size","data-hide-label","data-emphasis","for"],Gt=["id","aria-checked","checked","value","disabled","aria-describedby","aria-invalid","data-custom-validity","name","required","data-aid-icon","data-aid-icon-after"],qt=e.defineComponent({__name:"switch",props:{visualAid:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{default:void 0},id:{default:void 0},autofocus:{type:[Boolean,String]},change:{},onChange:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},size:{default:void 0},icon:{default:void 0},iconAfter:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{i.value=a.id??`switch-${F()}`}),e.watch(()=>[a.checked],()=>{a.checked!==void 0&&a.checked!==null&&(p.value=T(a.checked))},{immediate:!0,flush:"post"});function B(s){var E;a.onChange&&a.onChange(s),p.value=(E=s.target)==null?void 0:E.checked,H(l,s,"checked")}function r(s){a.onBlur&&a.onBlur(s)}function f(s){a.onFocus&&a.onFocus(s)}return(s,E)=>(e.openBlock(),e.createElementBlock("label",{"data-visual-aid":e.unref(A)(s.visualAid),"data-size":s.size,"data-hide-label":e.unref(z)(s.showLabel),"data-emphasis":s.emphasis,for:i.value,class:e.normalizeClass(e.unref(L)("db-switch",a.class))},[e.createElementVNode("input",{type:"checkbox",role:"switch",id:i.value,"aria-checked":e.unref(A)(p.value),ref_key:"_ref",ref:d,checked:e.unref(T)(s.checked,"checked"),value:s.value,disabled:e.unref(T)(s.disabled,"disabled"),"aria-describedby":s.describedbyid??s.ariaDescribedBy,"aria-invalid":s.validation==="invalid","data-custom-validity":s.validation,name:s.name,required:e.unref(T)(s.required,"required"),"data-aid-icon":s.icon,"data-aid-icon-after":s.iconAfter,onChange:E[0]||(E[0]=async g=>B(g)),onBlur:E[1]||(E[1]=async g=>r(g)),onFocus:E[2]||(E[2]=async g=>f(g))},null,40,Gt),s.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.label),1)],64)):e.renderSlot(s.$slots,"default",{key:1})],10,Ot))}}),Wt=["for","data-icon","data-icon-after","data-hide-icon","data-hide-icon-after","data-no-text"],Xt=["disabled","aria-selected","aria-controls","checked","name","id"],ta=e.defineComponent({__name:"tab-item",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},checked:{type:[Boolean,String],default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},noText:{type:[Boolean,String],default:void 0},icon:{default:void 0},iconAfter:{default:void 0},active:{type:[Boolean,String],default:void 0},controls:{default:void 0},change:{},onChange:{type:Function,default:void 0},showIcon:{type:[Boolean,String],default:void 0},name:{default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(!1),p=e.ref(void 0),d=e.ref(!1),B=e.ref(null);e.onMounted(()=>{d.value=!0}),e.watch(()=>[B.value,d.value],()=>{d.value&&B.value&&(a.active&&B.value.click(),d.value=!1)},{immediate:!0,flush:"post"}),e.watch(()=>[a.name],()=>{a.name&&(p.value=a.name)},{immediate:!0,flush:"post"});function r(f){var s;f.stopPropagation(),a.onChange&&a.onChange(f),i.value=(s=f.target)==null?void 0:s.checked,H(l,f,"checked")}return(f,s)=>(e.openBlock(),e.createElementBlock("li",{role:"none",class:e.normalizeClass(e.unref(L)("db-tab-item",a.class))},[e.createElementVNode("label",{for:f.id,"data-icon":f.icon,"data-icon-after":f.iconAfter,"data-hide-icon":e.unref(z)(f.showIcon),"data-hide-icon-after":e.unref(z)(f.showIcon),"data-no-text":e.unref(A)(f.noText)},[e.createElementVNode("input",{type:"radio",role:"tab",disabled:e.unref(T)(f.disabled,"disabled"),"aria-selected":i.value,"aria-controls":f.controls,checked:e.unref(T)(f.checked,"checked"),ref_key:"_ref",ref:B,name:p.value,id:f.id,onInput:s[0]||(s[0]=async E=>r(E))},null,40,Xt),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default")],8,Wt)],2))}}),x=class x{constructor(){X(this,"ticking",!1);if(x._instance)return x._instance;x._instance=this,self.document&&self.document.addEventListener("scroll",t=>{this.ticking||(window.requestAnimationFrame(()=>{x.runCallbacks(t),this.ticking=!1}),this.ticking=!0)},!0)}static runCallbacks(t){for(const l of Object.values(x.callbacks))typeof l=="function"&&l(t)}addCallback(t){const l=F();return x.callbacks[l]=t,l}removeCallback(t){delete x.callbacks[t]}};X(x,"callbacks",{}),X(x,"_instance",null);let de=x;const Ht=["id","data-emphasis","data-animation","data-delay","data-width","data-show-arrow","data-placement"],Me=e.defineComponent({__name:"tooltip",props:{showArrow:{type:[Boolean,String],default:void 0},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},emphasis:{default:void 0},placement:{default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(void 0),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"tooltip-"+F(),a.value=!0}),e.watch(()=>[d.value,a.value],()=>{if(d.value&&a.value&&l.value){const u=f();u&&(["mouseenter","focusin"].forEach(c=>{u.addEventListener(c,()=>h(u))}),u.addEventListener("keydown",c=>r(c)),["mouseleave","focusout"].forEach(c=>{u.addEventListener(c,()=>g())}),u.dataset.hasTooltip="true",t.variant==="label"?u.setAttribute("aria-labelledby",l.value):u.setAttribute("aria-describedby",l.value)),typeof window<"u"&&"IntersectionObserver"in window&&(p.value=new IntersectionObserver(c=>{const S=c.find(({target:C})=>C===f());S&&!S.isIntersecting&&r(!1)})),a.value=!1}},{immediate:!0,flush:"post"});function B(u){u.stopPropagation()}function r(u){(!u||u.key==="Escape")&&d.value&&getComputedStyle(d.value).visibility==="visible"&&f().blur()}function f(){let u=d.value.parentElement;return u&&u.localName.includes("tooltip")&&(u=u.parentElement),u}function s(u){u&&d.value&&U(()=>{xe(d.value,u,t.placement??"bottom")},1)}function E(u,c){var S,C;(S=u==null?void 0:u.target)!=null&&S.contains&&((C=u==null?void 0:u.target)!=null&&C.contains(d.value))&&s(c)}function g(){var u;i.value&&new de().removeCallback(i.value),(u=p.value)==null||u.unobserve(f())}function h(u){var c;i.value=new de().addCallback(S=>E(S,u)),s(u),(c=p.value)==null||c.observe(f())}return(u,c)=>(e.openBlock(),e.createElementBlock("i",{role:"tooltip","aria-hidden":"true","data-gap":"true",ref_key:"_ref",ref:d,class:e.normalizeClass(e.unref(L)("db-tooltip",t.class)),id:l.value,"data-emphasis":u.emphasis,"data-animation":e.unref(A)(u.animation??!0),"data-delay":u.delay,"data-width":u.width,"data-show-arrow":e.unref(A)(u.showArrow??!0),"data-placement":u.placement,onClick:c[0]||(c[0]=async S=>B(S))},[e.renderSlot(u.$slots,"default")],10,Ht))}}),jt=["id","data-disabled","data-semantic","data-emphasis","data-icon","data-show-check-state","data-hide-icon","data-no-text","data-overflow"],ia=e.defineComponent({__name:"tag",props:{behavior:{default:void 0},disabled:{type:[Boolean,String],default:void 0},noText:{type:[Boolean,String],default:void 0},removeButton:{default:void 0},showCheckState:{type:[Boolean,String],default:void 0},text:{default:void 0},value:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},icon:{default:void 0},semantic:{default:void 0},overflow:{type:[Boolean,String],default:void 0},emphasis:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},content:{},onRemove:{type:Function,default:void 0},remove:{}},setup(o){const t=o,l=e.ref(!1),a=e.ref(null);l.value=!0,e.watch(()=>[l.value,t.disabled,a.value],()=>{var d,B;if(l.value&&a.value&&t.disabled!==void 0){const r=(d=a.value)==null?void 0:d.querySelector("button:not(.db-tab-remove-button)"),f=(B=a.value)==null?void 0:B.querySelector("input");for(const s of[r,f])s&&(s.disabled=!!t.disabled)}},{immediate:!0,flush:"post"});function i(d){d&&(d.stopPropagation(),t.onRemove&&t.onRemove(d))}function p(){return t.removeButton?t.removeButton:De}return(d,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:d.id,class:e.normalizeClass(e.unref(L)("db-tag",t.class)),"data-disabled":e.unref(A)(d.disabled),"data-semantic":d.semantic,"data-emphasis":d.emphasis,"data-icon":d.icon,"data-show-check-state":e.unref(A)(d.showCheckState??!0),"data-hide-icon":e.unref(z)(d.showIcon),"data-no-text":e.unref(A)(d.noText),"data-overflow":e.unref(A)(d.overflow)},[e.renderSlot(d.$slots,"content"),e.renderSlot(d.$slots,"default"),d.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.text),1)],64)):e.createCommentVNode("",!0),d.behavior==="removable"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",type:"button",onClick:B[0]||(B[0]=async r=>i(r))},[e.createVNode(Me,{variant:"label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p()),1)]),_:1})])):e.createCommentVNode("",!0)],10,jt))}}),Yt=["data-variant","data-hide-label"],Kt=["for"],Jt=["aria-invalid","data-custom-validity","data-field-sizing","id","data-resize","data-hide-resizer","disabled","required","readOnly","form","maxLength","minLength","name","wrap","spellcheck","autocomplete","value","aria-describedby","placeholder","rows","cols"],Qt={"data-visually-hidden":"true",role:"status"},Zt=e.defineComponent({__name:"textarea",props:{cols:{default:void 0},resize:{default:void 0},showResizer:{type:[Boolean,String],default:void 0},rows:{default:void 0},spellCheck:{type:Boolean,default:void 0},wrap:{default:void 0},change:{},onChange:{type:Function,default:void 0},input:{type:Function,default:void 0},onInput:{type:Function,default:void 0},blur:{},onBlur:{type:Function,default:void 0},focus:{},onFocus:{type:Function,default:void 0},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0},value:{default:void 0},children:{},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},maxLength:{default:void 0},minLength:{default:void 0},maxlength:{default:void 0},minlength:{default:void 0},readOnly:{type:[Boolean,String],default:void 0},readonly:{type:[Boolean,String],default:void 0},fieldSizing:{default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{default:void 0},showMessage:{type:[Boolean,String],default:void 0}},emits:["update:value"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(""),s=e.ref(""),E=e.ref(""),g=e.ref(null);e.onMounted(()=>{const v=a.id??`textarea-${F()}`;i.value=v,p.value=v+K,d.value=v+J,B.value=v+Q,r.value=a.invalidMessage||G}),e.watch(()=>[g.value,a.invalidMessage],()=>{var v;r.value=a.invalidMessage||((v=g.value)==null?void 0:v.validationMessage)||G},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const v=i.value+K;p.value=v,d.value=i.value+J,B.value=i.value+Q,P(a.message,a.showMessage)&&(f.value=v)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.value],()=>{s.value=a.value},{immediate:!0,flush:"post"});function h(){return!!(a.validMessage??a.validation==="valid")}function u(){var v,_,y;!((v=g.value)!=null&&v.validity.valid)||a.validation==="invalid"?(f.value=B.value,r.value=a.invalidMessage||((_=g.value)==null?void 0:_.validationMessage)||G,Y()&&(E.value=r.value,U(()=>E.value="",1e3))):h()&&((y=g.value)!=null&&y.validity.valid)&&(a.required||a.minLength||a.maxLength)?(f.value=d.value,Y()&&(E.value=a.validMessage??Z,U(()=>E.value="",1e3))):P(a.message,a.showMessage)?f.value=p.value:f.value=""}function c(v){a.input&&a.input(v),s.value=v.target.value,a.onInput&&a.onInput(v),H(l,v),u()}function S(v){a.onChange&&a.onChange(v),H(l,v),u()}function C(v){a.onBlur&&a.onBlur(v)}function b(v){a.onFocus&&a.onFocus(v)}return(v,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L)("db-textarea",a.class)),"data-variant":v.variant,"data-hide-label":e.unref(z)(v.showLabel)},[e.createElementVNode("label",{for:i.value},e.toDisplayString(v.label??e.unref(oe)),9,Kt),e.createElementVNode("textarea",{"aria-invalid":v.validation==="invalid","data-custom-validity":v.validation,"data-field-sizing":v.fieldSizing,ref_key:"_ref",ref:g,id:i.value,"data-resize":v.resize,"data-hide-resizer":e.unref(z)(v.showResizer??!0),disabled:e.unref(T)(v.disabled,"disabled"),required:e.unref(T)(v.required,"required"),readOnly:e.unref(T)(v.readOnly,"readOnly")||e.unref(T)(v.readonly,"readonly"),form:v.form,maxLength:e.unref(te)(v.maxLength,v.maxlength),minLength:e.unref(te)(v.minLength,v.minlength),name:v.name,wrap:v.wrap,spellcheck:v.spellCheck,autocomplete:v.autocomplete,onInput:_[0]||(_[0]=async y=>c(y)),onChange:_[1]||(_[1]=async y=>S(y)),onBlur:_[2]||(_[2]=async y=>C(y)),onFocus:_[3]||(_[3]=async y=>b(y)),value:v.value??s.value,"aria-describedby":v.ariaDescribedBy??f.value,placeholder:v.placeholder??e.unref(Ne),rows:e.unref(te)(v.rows,e.unref(Ye)),cols:e.unref(te)(v.cols)},null,40,Jt),e.unref(P)(v.message,v.showMessage)?(e.openBlock(),e.createBlock(O,{key:0,size:"small",icon:v.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),h()?(e.openBlock(),e.createBlock(O,{key:1,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",Qt,e.toDisplayString(E.value),1)],10,Yt))}}),xt=["id","data-width","data-icon","data-hide-icon","data-active","data-wrap","aria-disabled"],ei=["aria-haspopup","aria-expanded","disabled"],ai=["data-auto-close","id"],ti={key:0,class:"db-mobile-navigation-back"},ii=e.defineComponent({__name:"navigation-item",props:{active:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},subNavigation:{},subNavigationExpanded:{type:[Boolean,String],default:void 0},wrap:{type:[Boolean,String],default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},onClick:{type:Function,default:void 0},icon:{default:void 0},width:{default:void 0},backButtonId:{default:void 0},backButtonText:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},text:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(!0),p=e.ref(!1),d=e.ref(!1),B=e.ref("sub-navigation-"+F()),r=e.ref(void 0),f=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[t.subNavigationExpanded],()=>{t.subNavigationExpanded!==void 0&&(p.value=!!T(t.subNavigationExpanded,"subNavigationExpanded"))},{immediate:!0,flush:"post"}),e.watch(()=>[l.value,f.value],()=>{var h;if(l.value&&f.value){const u=f.value.querySelector("menu");u&&(((h=u.children)==null?void 0:h.length)>0?(a.value=!0,r.value||(r.value=new ea(f.value,u))):i.value=!1)}},{immediate:!0,flush:"post"});function s(h){Fe(h)&&(d.value=!0,U(()=>{d.value=!1},300))}function E(h){t.onClick&&(h.stopPropagation(),t.onClick(h)),a.value&&(p.value=!0)}function g(h){h.stopPropagation(),p.value=!1}return(h,u)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:f,id:h.id,onMouseover:u[2]||(u[2]=async c=>{var S;return(S=r.value)==null?void 0:S.enableFollow()}),onMouseleave:u[3]||(u[3]=async c=>{var S;return(S=r.value)==null?void 0:S.disableFollow()}),onMousemove:u[4]||(u[4]=async c=>{var S;return(S=r.value)==null?void 0:S.followByMouseEvent(c)}),class:e.normalizeClass(e.unref(L)("db-navigation-item",t.class)),"data-width":h.width,"data-icon":h.icon,"data-hide-icon":e.unref(z)(h.showIcon),"data-active":h.active,"data-wrap":e.unref(A)(h.wrap),"aria-disabled":e.unref(A)(h.disabled)},[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.text),1)],64)):e.renderSlot(h.$slots,"default",{key:1})],64)),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:"db-navigation-item-expand-button","aria-haspopup":a.value,"aria-expanded":p.value,disabled:e.unref(T)(h.disabled,"disabled"),onClick:u[0]||(u[0]=async c=>E(c))},[h.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.text),1)],64)):e.renderSlot(h.$slots,"default",{key:1})],8,ei),e.createElementVNode("menu",{class:"db-sub-navigation","data-auto-close":d.value,id:B.value,onClick:u[1]||(u[1]=async c=>s(c))},[a.value?(e.openBlock(),e.createElementBlock("div",ti,[e.createVNode(ie,{icon:"arrow_left",variant:"ghost",id:h.backButtonId,onClick:c=>g(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.backButtonText??e.unref(We)),1)]),_:1},8,["id","onClick"])])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"sub-navigation")],8,ai)],64)):e.createCommentVNode("",!0)],42,xt))}}),oi=["id"],li=["aria-disabled","name","open"],oa=e.defineComponent({__name:"accordion-item",props:{defaultOpen:{type:Boolean,default:void 0},disabled:{type:[Boolean,String],default:void 0},headline:{},headlinePlain:{default:void 0},text:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},toggle:{},onToggle:{type:Function,default:void 0},name:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(!1),i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-item-"+F(),t.defaultOpen&&(a.value=t.defaultOpen),p.value=!0}),e.watch(()=>[d.value,p.value],()=>{d.value&&p.value},{immediate:!0,flush:"post"}),e.watch(()=>[t.name],()=>{t.name&&(i.value=t.name)},{immediate:!0,flush:"post"});function B(r){r==null||r.preventDefault();const f=!a.value;t.onToggle&&t.onToggle(f),a.value=f}return(r,f)=>(e.openBlock(),e.createElementBlock("li",{id:l.value,class:e.normalizeClass(e.unref(L)("db-accordion-item",t.class))},[e.createElementVNode("details",{"aria-disabled":e.unref(A)(r.disabled),ref_key:"_ref",ref:d,name:i.value,open:a.value},[e.createElementVNode("summary",{onClick:f[0]||(f[0]=async s=>B(s))},[r.headlinePlain?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.headlinePlain),1)],64)):e.createCommentVNode("",!0),r.headlinePlain?e.createCommentVNode("",!0):e.renderSlot(r.$slots,"headline",{key:1})]),e.createElementVNode("div",null,[r.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.text),1)],64)):e.renderSlot(r.$slots,"default",{key:1})])],8,li)],10,oi))}}),ni=["id","data-variant"],di=e.defineComponent({__name:"accordion",props:{behavior:{default:void 0},initOpenIndex:{default:void 0},items:{default:void 0},name:{default:void 0},onChange:{},variant:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(ne),a=e.ref(""),i=e.ref(!1),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{l.value=t.id||"accordion-"+F(),i.value=!0,p.value=!0}),e.watch(()=>[i.value,t.name,t.behavior,l.value],()=>{i.value&&(t.behavior==="single"?t.name?a.value!==t.name&&(a.value=t.name):a.value!==l.value&&l.value&&(a.value=l.value):a.value="")},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,a.value],()=>{if(d.value){const r=d.value.getElementsByTagName("details");if(r)for(const f of Array.from(r))a.value===""?f.removeAttribute("name"):f.name=a.value??""}},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,p.value,t.initOpenIndex],()=>{if(d.value&&p.value){if(t.initOpenIndex&&t.initOpenIndex.length>0){const r=d.value.getElementsByTagName("details");if(r){const f=t.behavior==="single"&&t.initOpenIndex.length>1?[t.initOpenIndex[0]]:t.initOpenIndex;Array.from(r).forEach((s,E)=>{f!=null&&f.includes(E)&&(s.open=!0)})}}p.value=!1}},{immediate:!0,flush:"post"});function B(){try{return typeof t.items=="string"?JSON.parse(t.items):t.items}catch(r){console.error(r)}return[]}return(r,f)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"_ref",ref:d,id:l.value,class:e.normalizeClass(e.unref(L)("db-accordion",t.class)),"data-variant":r.variant},[r.items?e.createCommentVNode("",!0):e.renderSlot(r.$slots,"default",{key:0}),r.items?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(B(),(s,E)=>(e.openBlock(),e.createBlock(oa,{key:`accordion-item-${E}`,headlinePlain:s.headlinePlain,disabled:s.disabled,text:s.text},null,8,["headlinePlain","disabled","text"]))),128)):e.createCommentVNode("",!0)],10,ni))}}),si=["id","aria-labelledby"],ri=e.defineComponent({__name:"navigation",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"navigation-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"_ref",ref:a,id:l.value,"aria-labelledby":i.labelledBy,class:e.normalizeClass(e.unref(L)("db-navigation",t.class))},[e.createElementVNode("menu",null,[e.renderSlot(i.$slots,"default")])],10,si))}}),ci=["id"],fi=["data-spacing","data-gap","data-animation","data-open","data-delay","data-width","data-placement"],ui=e.defineComponent({__name:"popover",props:{open:{type:[Boolean,String],default:void 0},trigger:{},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},spacing:{default:void 0},placement:{default:void 0},gap:{type:[Boolean,String],default:void 0},delay:{default:void 0},animation:{type:[Boolean,String],default:void 0},width:{default:void 0}},setup(o){const t=o,l=e.ref(!1),a=e.ref(!1),i=e.ref(void 0),p=e.ref(void 0),d=e.ref(null);e.onMounted(()=>{l.value=!0}),e.watch(()=>[d.value,l.value],()=>{if(d.value&&l.value){l.value=!1;const h=g();h&&(h.ariaHasPopup="true"),r(),d.value.addEventListener("keydown",u=>B(u)),["mouseenter","focusin"].forEach(u=>{d.value.addEventListener(u,()=>s())}),["mouseleave","focusout"].forEach(u=>{d.value.addEventListener(u,()=>E())}),typeof window<"u"&&"IntersectionObserver"in window&&(p.value=new IntersectionObserver(u=>{const c=u.find(({target:S})=>S===g());c&&!c.isIntersecting&&B(!1)}))}},{immediate:!0,flush:"post"}),e.watch(()=>[d.value,a.value],()=>{if(d.value){const h=g();h&&(h.ariaExpanded=(!!a.value).toString())}},{immediate:!0,flush:"post"});function B(h){if(!h||h.key==="Escape")for(const u of Array.from(d.value.children))u.blur()}function r(){if(!d.value)return;const h=d.value.querySelector("article");h&&U(()=>{xe(h,d.value,t.placement??"bottom")},1)}function f(h){var u,c;(u=h==null?void 0:h.target)!=null&&u.contains&&((c=h==null?void 0:h.target)!=null&&c.contains(d.value))&&r()}function s(){var u;a.value=!0,i.value=new de().addCallback(c=>f(c)),r();const h=g();h&&((u=p.value)==null||u.observe(h))}function E(h){var u;{a.value=!1,i.value&&new de().removeCallback(i.value);const c=g();c&&((u=p.value)==null||u.unobserve(c))}}function g(){var h;if(d.value){const u=Array.from(d.value.children);if(u.length>=2){const c=u[0];return c.tagName.includes("-")?((h=c.children)==null?void 0:h.length)>0?c.children[0]:null:c}}return null}return(h,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:d,id:h.id,class:e.normalizeClass(e.unref(L)("db-popover",t.class))},[e.renderSlot(h.$slots,"trigger"),e.createElementVNode("article",{class:"db-popover-content","data-spacing":h.spacing,"data-gap":e.unref(A)(h.gap),"data-animation":e.unref(A)(h.animation??!0),"data-open":e.unref(A)(h.open),"data-delay":h.delay,"data-width":h.width,"data-placement":h.placement},[e.renderSlot(h.$slots,"default")],8,fi)],10,ci))}}),mi=["id"],pi={role:"tablist"},la=e.defineComponent({__name:"tab-list",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(ne),a=e.ref(null);return e.onMounted(()=>{l.value=t.id||"tab-list-"+F()}),(i,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:a,id:l.value,class:e.normalizeClass(e.unref(L)("db-tab-list",t.class))},[e.createElementVNode("ul",pi,[e.renderSlot(i.$slots,"default")])],10,mi))}}),hi=["id","aria-labelledby"],na=e.defineComponent({__name:"tab-panel",props:{content:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},labelledBy:{default:void 0}},setup(o){const t=o,l=e.ref(null);return e.onMounted(()=>{}),(a,i)=>(e.openBlock(),e.createElementBlock("section",{role:"tabpanel",ref_key:"_ref",ref:l,class:e.normalizeClass(e.unref(L)("db-tab-panel",t.class)),id:a.id,"aria-labelledby":a.labelledBy},[a.content?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.content),1)],64)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,hi))}}),gi=["id","data-orientation","data-scroll-behavior","data-alignment","data-width"],bi=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},tabs:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},orientation:{default:void 0},width:{default:void 0},alignment:{default:void 0},indexChange:{},onIndexChange:{type:Function,default:void 0},onTabSelect:{type:Function,default:void 0},tabSelect:{}},setup(o){const t=o,l=e.ref("tabs-"+F()),a=e.ref(""),i=e.ref(!1),p=e.ref(!1),d=e.ref(!1),B=e.ref(null),r=e.ref(null);e.onMounted(()=>{l.value=t.id||l.value,a.value=`tabs-${t.name||F()}`,i.value=!0}),e.watch(()=>[r.value,i.value],()=>{if(r.value&&i.value){g(),h(!0);const c=r.value.querySelector(".db-tab-list");c&&new MutationObserver(C=>{C.forEach(b=>{(b.removedNodes.length||b.addedNodes.length)&&(g(),h())})}).observe(c,{childList:!0,subtree:!0}),i.value=!1}},{immediate:!0,flush:"post"});function f(){try{return typeof t.tabs=="string"?JSON.parse(t.tabs):t.tabs}catch(c){console.error(c)}return[]}function s(c){const S=c.scrollWidth>c.clientWidth;p.value=S&&c.scrollLeft>1,d.value=S&&c.scrollLeft<c.scrollWidth-c.clientWidth}function E(c){var C;let S=Number(t.arrowScrollDistance)||100;c&&(S*=-1),(C=B.value)==null||C.scrollBy({top:0,left:S,behavior:"smooth"})}function g(){if(r.value){const c=r.value.querySelector(".db-tab-list");if(c){const S=c.querySelector('[role="tablist"]');S&&(S.setAttribute("aria-orientation",t.orientation||"horizontal"),t.behavior==="arrows"&&(B.value=S,s(S),S.addEventListener("scroll",()=>{s(S)})))}}}function h(c){if(r.value){const S=Array.from(r.value.getElementsByClassName("db-tab-item")),C=Array.from(r.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const b of S){const v=S.indexOf(b),_=b.querySelector("label"),y=b.querySelector("input");if(y&&_){if(!y.id){const $=`${a.value}-tab-${v}`;_.setAttribute("for",$),y.id=$,y.setAttribute("name",a.value),C.length>v&&y.setAttribute("aria-controls",`${a.value}-tab-panel-${v}`)}if(c){const $=!t.initialSelectedMode||t.initialSelectedMode==="auto",k=t.initialSelectedIndex==null&&v===0||Number(t.initialSelectedIndex)===v;$&&k&&y.click()}}}for(const b of C){if(b.id)continue;const v=C.indexOf(b);b.id=`${a.value}-tab-panel-${v}`,b.setAttribute("aria-labelledby",`${a.value}-tab-${v}`)}}}function u(c){var v;c.stopPropagation();const S=(v=c.target)==null?void 0:v.closest;if(!S)return;const C=S("ul"),b=S("db-tab-item")??S("li");if(C!==null&&b!==null){const _=Array.from(C.childNodes).indexOf(b);t.onIndexChange&&t.onIndexChange(_)}t.onTabSelect&&t.onTabSelect(c)}return(c,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:r,id:l.value,class:e.normalizeClass(e.unref(L)("db-tabs",t.class)),"data-orientation":c.orientation,"data-scroll-behavior":c.behavior,"data-alignment":c.alignment??"start","data-width":c.width??"auto",onInput:S[0]||(S[0]=async C=>u(C))},[p.value?(e.openBlock(),e.createBlock(ie,{key:0,class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:C=>E(!0)},{default:e.withCtx(()=>S[1]||(S[1]=[e.createTextVNode(" Scroll left ")])),_:1,__:[1]},8,["onClick"])):e.createCommentVNode("",!0),c.tabs?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(la,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(C,b)=>(e.openBlock(),e.createBlock(ta,{key:c.name+"tab-item"+b,active:C.active,label:C.label,iconAfter:C.iconAfter,icon:C.icon,noText:C.noText},null,8,["active","label","iconAfter","icon","noText"]))),128))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(C,b)=>(e.openBlock(),e.createBlock(na,{key:c.name+"tab-panel"+b,content:C.content},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.children),1)]),_:2},1032,["content"]))),128))],64)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createBlock(ie,{key:2,class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:C=>E()},{default:e.withCtx(()=>S[2]||(S[2]=[e.createTextVNode(" Scroll right ")])),_:1,__:[2]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],42,gi))}}),yi=["adaptive","neutral","critical","informational","warning","successful"],vi=["medium","small","large","none"],ki=["medium","small","large","none"],da=["left","right","left-start","left-end","right-start","right-end"],sa=["top","bottom","top-start","top-end","bottom-start","bottom-end"],Bi=[...da,...sa],Si=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],wi=["horizontal","vertical"],Ei=["full","auto"],Ci=["full","medium","large","small"],Ni=["none","slow","fast"],Ti=["auto","fixed"],Li=["small","medium"],Ii=["weak","strong"],Di=["invalid","valid","no-validation"],_i=["fixed","content"],$i=["above","floating"],Vi=["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"],Ai=["time","true","false","date","page","step","location"],Fi=["_self","_blank","_parent","_top"],Mi=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],zi=["start","center"],Ri=["id","data-gap","data-variant","data-direction","data-alignment","data-justify-content","data-wrap"],Ui=e.defineComponent({__name:"stack",props:{variant:{default:void 0},direction:{default:void 0},wrap:{type:[Boolean,String],default:void 0},alignment:{default:void 0},justifyContent:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},gap:{default:void 0}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-stack",t.class)),"data-gap":a.gap,"data-variant":a.variant,"data-direction":a.direction,"data-alignment":a.alignment,"data-justify-content":a.justifyContent,"data-wrap":e.unref(A)(a.wrap)},[e.renderSlot(a.$slots,"default")],10,Ri))}}),Pi=["role","aria-label","id"],ra=e.defineComponent({__name:"custom-select-list",props:{label:{default:void 0},multiple:{type:Boolean,default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",{role:a.multiple?"group":"radiogroup","aria-label":a.label,ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-list",t.class))},[e.createElementVNode("ul",null,[e.renderSlot(a.$slots,"default")])],10,Pi))}}),Oi=["id","data-divider"],Gi=["data-icon","data-hide-icon","data-icon-after"],qi=["type","name","form","checked","disabled","value"],Wi={key:1},ca=e.defineComponent({__name:"custom-select-list-item",props:{groupTitle:{default:void 0},type:{default:void 0},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},value:{default:void 0},checked:{type:[Boolean,String],default:void 0},change:{},onChange:{type:Function,default:void 0},isGroupTitle:{type:Boolean,default:void 0},showDivider:{type:Boolean,default:void 0},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0}},emits:["update:checked"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(!1),d=e.ref(null);e.onMounted(()=>{i.value=a.id??`custom-select-list-item-${F()}`}),e.watch(()=>[a.isGroupTitle,a.showDivider],()=>{p.value=!!(a.isGroupTitle||a.showDivider)},{immediate:!0,flush:"post"});function B(f){f.stopPropagation(),a.onChange&&a.onChange(f),H(l,f,"checked")}function r(){if(!(a.isGroupTitle||a.type==="checkbox"))return T(a.checked,"checked")?"check":"x_placeholder"}return(f,s)=>(e.openBlock(),e.createElementBlock("li",{ref_key:"_ref",ref:d,id:i.value,class:e.normalizeClass(e.unref(L)("db-custom-select-list-item",a.class,{"db-checkbox":f.type==="checkbox"&&!f.isGroupTitle,"db-radio":f.type!=="checkbox"&&!f.isGroupTitle})),"data-divider":e.unref(A)(p.value)},[f.isGroupTitle?(e.openBlock(),e.createElementBlock("span",Wi,e.toDisplayString(f.groupTitle),1)):(e.openBlock(),e.createElementBlock("label",{key:0,"data-icon":f.type!=="checkbox"&&f.icon?f.icon:void 0,"data-hide-icon":e.unref(z)(f.showIcon),"data-icon-after":r()},[e.createElementVNode("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:f.type,name:f.name,form:f.name,checked:e.unref(T)(f.checked,"checked"),disabled:e.unref(T)(f.disabled,"disabled"),value:f.value,onChange:s[0]||(s[0]=async E=>B(E))},null,40,qi),f.label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.label),1)],64)):e.renderSlot(f.$slots,"default",{key:1})],8,Gi))],10,Oi))}}),Xi=["id","data-width"],fa=e.defineComponent({__name:"custom-select-dropdown",props:{width:{default:"fixed"},children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("article",{"data-spacing":"none",ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-dropdown db-card",t.class)),"data-width":a.width},[e.renderSlot(a.$slots,"default")],10,Xi))}}),ee=class ee{static runCallbacks(t){for(const l of Object.values(ee.callbacks))typeof l=="function"&&l(t)}constructor(){if(ee._instance)return ee._instance;ee._instance=this,self.document&&self.document.addEventListener("click",t=>ee.runCallbacks(t))}addCallback(t){const l=F();return ee.callbacks[l]=t,l}removeCallback(t){delete ee.callbacks[t]}};X(ee,"callbacks",{}),X(ee,"_instance",null);let ve=ee;const Hi=["id","aria-invalid","data-custom-validity","data-width","data-variant","data-required","data-placement","data-selected-type","data-hide-label","data-icon","data-hide-icon"],ji=["id"],Yi=["id","form","name","multiple","disabled","required"],Ki=["disabled","value"],Ji=["open"],Qi=["id","aria-disabled","aria-labelledby"],Zi=["data-visually-hidden","id"],xi={key:1},eo={key:0},ao={key:0},to={class:"db-checkbox db-custom-select-list-item"},io=["form","checked"],oo=["aria-hidden","id"],lo={"data-visually-hidden":"true",role:"status"},no=e.defineComponent({__name:"custom-select",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]},ariaDescribedBy:{default:void 0},form:{default:void 0},validation:{default:void 0},disabled:{type:[Boolean,String],default:void 0},label:{default:void 0},name:{default:void 0},required:{type:[Boolean,String],default:void 0},variant:{default:void 0},placeholder:{default:void 0},message:{default:void 0},validMessage:{default:void 0},invalidMessage:{default:void 0},messageIcon:{default:void 0},autocomplete:{},showMessage:{type:[Boolean,String],default:void 0},amountText:{default:void 0},ariaListLabel:{default:void 0},clearSelectionText:{default:"Clear selection"},dropdownWidth:{default:void 0},formFieldWidth:{default:void 0},loadingText:{default:void 0},mobileCloseButtonText:{default:void 0},multiple:{type:[Boolean,String],default:void 0},noResultsText:{default:void 0},open:{type:Boolean,default:void 0},options:{default:void 0},placement:{default:void 0},removeTagsTexts:{default:void 0},searchFilter:{type:Function,default:void 0},searchLabel:{default:void 0},searchPlaceholder:{default:void 0},searchValue:{default:void 0},selectAllLabel:{default:void 0},selectedLabels:{default:void 0},selectedType:{default:void 0},showClearSelection:{type:Boolean,default:!0},showLoading:{type:Boolean,default:void 0},showNoResults:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},showSelectAll:{type:Boolean,default:void 0},transformSelectedLabels:{type:Function,default:void 0},values:{default:void 0},onAmountChange:{type:Function,default:void 0},amountChange:{},onOptionSelected:{type:Function,default:void 0},optionSelected:{},onDropdownToggle:{type:Function,default:void 0},dropdownToggle:{},onSearch:{type:Function,default:void 0},search:{},icon:{default:void 0},showIcon:{type:[Boolean,String],default:void 0},showLabel:{type:[Boolean,String],default:void 0}},emits:["update:values"],setup(o,{emit:t}){const l=t,a=o,i=e.ref(void 0),p=e.ref(void 0),d=e.ref(void 0),B=e.ref(void 0),r=e.ref(void 0),f=e.ref(void 0),s=e.ref(void 0),E=e.ref(void 0),g=e.ref(void 0),h=e.ref(void 0),u=e.ref("no-validation"),c=e.ref(""),S=e.ref(""),C=e.ref(void 0),b=e.ref(""),v=e.ref([]),_=e.ref(!1),y=e.ref(!1),$=e.ref(0),k=e.ref([]),V=e.ref([]),q=e.ref(!1),R=e.ref(void 0),ke=e.ref(0),se=e.ref(void 0),me=e.ref(void 0),ze=e.ref(void 0),Re=e.ref(!1),pe=e.ref(!1),co=e.ref(null),I=e.ref(null),re=e.ref(null),Be=e.ref(null),Ue=e.ref(null);e.onMounted(()=>{const n=a.id??`custom-select-${F()}`;i.value=n,p.value=n+K,d.value=n+J,B.value=n+Q,f.value=n+Le,s.value=n+Te,E.value=n+"-summary",g.value=n+ue,C.value=n+"-selected-labels",h.value=n+"-info",r.value=a.invalidMessage||G,typeof window<"u"&&"IntersectionObserver"in window&&(me.value=new IntersectionObserver(w=>{if(I.value){const N=w.find(({target:M})=>M===I.value);N&&!N.isIntersecting&&I.value.open&&(I.value.open=!1)}}))}),e.watch(()=>[I.value],()=>{I.value&&I.value.addEventListener("focusout",n=>he(n))},{immediate:!0,flush:"post"}),e.watch(()=>[i.value],()=>{if(i.value){const n=i.value+K;s.value=i.value+Te,f.value=i.value+Le,d.value=i.value+J,B.value=i.value+Q,g.value=i.value+ue,P(a.message,a.showMessage)?ma(n):ma()}},{immediate:!0,flush:"post"}),e.watch(()=>[I.value,c.value],()=>{if(I.value){const n=I.value.querySelector("summary");n&&n.setAttribute("aria-describedby",a.ariaDescribedBy??(c.value||""))}},{immediate:!0,flush:"post"}),e.watch(()=>[a.showNoResults,V.value],()=>{a.showNoResults!==void 0?q.value=a.showNoResults:V.value&&(q.value=V.value.length===0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSelectAll,$.value,a.multiple],()=>{_.value=!!(a.multiple&&(a.showSelectAll??$.value>5))},{immediate:!0,flush:"post"}),e.watch(()=>[a.showSearch,$.value],()=>{y.value=a.showSearch??$.value>9},{immediate:!0,flush:"post"}),e.watch(()=>[a.values],()=>{a.values&&Array.isArray(a.values)&&a.values!==k.value&&(k.value=a.values??[])},{immediate:!0,flush:"post"}),e.watch(()=>[k.value],()=>{uo()},{immediate:!0,flush:"post"}),e.watch(()=>[a.validation],()=>{u.value=a.validation},{immediate:!0,flush:"post"}),e.watch(()=>[k.value,$.value],()=>{var n,w;((n=k.value)==null?void 0:n.length)===0?(Re.value=!1,pe.value=!1):((w=k.value)==null?void 0:w.length)===$.value?(pe.value=!1,Re.value=!0):k.value&&(pe.value=!0)},{immediate:!0,flush:"post"}),e.watch(()=>[a.options],()=>{var n;V.value=a.options,$.value=((n=a.options)==null?void 0:n.filter(w=>!w.isGroupTitle).length)??0},{immediate:!0,flush:"post"}),e.watch(()=>[a.searchValue],()=>{if(ze.value=a.searchValue,a.searchValue){const n=a.searchValue;ga(n)}},{immediate:!0,flush:"post"}),e.watch(()=>[a.options,k.value],()=>{var n,w;(n=a.options)!=null&&n.length&&(v.value=(w=a.options)==null?void 0:w.filter(N=>{var M,W;return!N.value||!((M=k.value)!=null&&M.includes)?!1:!N.isGroupTitle&&((W=k.value)==null?void 0:W.includes(N.value))}))},{immediate:!0,flush:"post"}),e.watch(()=>[v.value,a.selectedType,a.amountText,a.selectedLabels,a.transformSelectedLabels],()=>{var n,w,N;if(a.selectedLabels){S.value=a.selectedLabels;return}if((n=v.value)!=null&&n.length){if(a.transformSelectedLabels){const M=v.value,W=a.transformSelectedLabels;S.value=W(M);return}a.selectedType==="amount"?S.value=a.amountText?a.amountText:`${(w=v.value)==null?void 0:w.length} ${Xe}`:S.value=(N=v.value)==null?void 0:N.map(M=>ce(M)).join(", ")}else S.value=""},{immediate:!0,flush:"post"}),e.watch(()=>[v.value],()=>{var n;a.onAmountChange&&a.onAmountChange(((n=v.value)==null?void 0:n.length)??0)},{immediate:!0,flush:"post"}),e.watch(()=>[pe.value,Be.value],()=>{Be.value&&(Be.value.indeterminate=!!pe.value)},{immediate:!0,flush:"post"}),e.watch(()=>[re.value,a.invalidMessage],()=>{var n;r.value=a.invalidMessage||((n=re.value)==null?void 0:n.validationMessage)||G},{immediate:!0,flush:"post"});function fo(n){var w,N;(w=n==null?void 0:n.target)!=null&&w.contains&&((N=n==null?void 0:n.target)!=null&&N.contains(I.value))&&Pe()}function ua(){return!!(a.validMessage??a.validation==="valid")}function uo(){var n,w,N;re.value&&(re.value.value=po()),!((n=re.value)!=null&&n.validity.valid)||a.validation==="invalid"?(c.value=B.value,r.value=a.invalidMessage||((w=re.value)==null?void 0:w.validationMessage)||G,Y()&&(b.value=r.value,U(()=>b.value="",1e3)),u.value=a.validation??"invalid"):ua()&&((N=re.value)!=null&&N.validity.valid)&&a.required?(c.value=d.value,Y()&&(b.value=a.validMessage??Z,U(()=>b.value="",1e3)),u.value=a.validation??"valid"):P(a.message,a.showMessage)?(c.value=p.value,u.value=a.validation??"no-validation"):(c.value=g.value,u.value=a.validation??"no-validation")}function mo(n){var w,N;a.onDropdownToggle&&(n.stopPropagation(),a.onDropdownToggle(n)),n.target instanceof HTMLDetailsElement&&n.target.open?(R.value=new ve().addCallback(M=>Bo(M)),se.value=new de().addCallback(M=>fo(M)),Pe(),(w=me.value)==null||w.observe(I.value),n.target.dataset.test||ha()):(R.value&&new ve().removeCallback(R.value),se.value&&new de().removeCallback(se.value),(N=me.value)==null||N.unobserve(I.value))}function po(){var n;return(n=k.value)!=null&&n.length?k.value.at(0)??"":""}function ma(n){var N;const w=[];n&&w.push(n),C.value&&((N=S.value)!=null&&N.length)&&w.push(C.value),c.value=w.join(" ")}function ho(){return a.selectAllLabel??oe}function ce(n){var w;return n.label??((w=n.value)==null?void 0:w.toString())??""}function go(n){var w,N;return n&&((w=k.value)!=null&&w.includes)?(N=k.value)==null?void 0:N.includes(n):!1}function bo(n){return a.removeTagsTexts&&a.removeTagsTexts.length>n?a.removeTagsTexts.at(n):`${De} ${v.value?ce(v.value[n]):""}`}function yo(n,w){w&&w.stopPropagation(),pa(n.value),ge()}function Pe(){if(I.value){const n=I.value.querySelector("article");n&&U(()=>{et(n,I.value,a.placement??"bottom")},1)}}function vo(n){var w,N,M,W,D,le,be;if((w=I.value)!=null&&w.open){if(self.document){const ae=self.document.activeElement;if(ae)if(ae.getAttribute("type")==="checkbox"||ae.getAttribute("type")==="radio"){const j=ae==null?void 0:ae.closest("li");if(n.key==="ArrowDown"||n.key==="ArrowRight")j!=null&&j.nextElementSibling?(M=(N=j==null?void 0:j.nextElementSibling)==null?void 0:N.querySelector("input"))==null||M.focus():Se(ae);else if(j!=null&&j.previousElementSibling)(D=(W=j==null?void 0:j.previousElementSibling)==null?void 0:W.querySelector("input"))==null||D.focus();else if(I.value.querySelector('input[type="checkbox"]')!==ae)Se(ae);else{const ba=Ce(I.value);if(ba)U(()=>{ba.focus()},100);else{const ya=Array.from((le=I.value)==null?void 0:le.querySelectorAll('input[type="checkbox"],input[type="radio"]'));ya.length&&((be=ya.at(-1))==null||be.focus())}}}else ae.getAttribute("type")==="search"&&(n.key==="ArrowUp"||n.key==="ArrowLeft")?(he(void 0,!0),ge()):Se(ae)}}else(n.key==="ArrowDown"||n.key==="ArrowRight")&&(Pe(),I.value&&(I.value.open=!0),ha());n.stopPropagation(),n.preventDefault()}function ko(n){var w;n.stopPropagation(),n.key==="Escape"&&((w=I.value)!=null&&w.open)?(he(void 0,!0),ge()):(n.key==="ArrowDown"||n.key==="ArrowUp"||n.key==="ArrowLeft"||n.key==="ArrowRight")&&vo(n)}function he(n,w){if(I.value){if(w)I.value.open=!1,ge();else if(I.value.open&&n&&n.relatedTarget){const N=n.relatedTarget;I.value.contains(N)||U(()=>I.value.open=!1,1)}}}function Bo(n){var w;if(n){const N=n.target;(w=I.value)!=null&&w.open&&!I.value.contains(N)&&(I.value.open=!1)}}function fe(n){new Date().getTime()-ke.value<200||(k.value=n,a.onOptionSelected&&a.onOptionSelected(n??[]),H(l,{target:{values:n}},"values"),ke.value=new Date().getTime())}function pa(n){var w;n&&(a.multiple?(w=k.value)!=null&&w.includes(n)?fe(k.value.filter(N=>N!==n)):fe([...k.value||[],n]):(fe([n]),he(void 0,!0)))}function So(n){var w;if(n.stopPropagation(),((w=k.value)==null?void 0:w.length)===$.value)fe([]);else{const N=y.value&&Ue.value?Ue.value.value:void 0;fe(a.options?a.options.filter(M=>{var W;return!M.isGroupTitle&&(!N||((W=M.value)==null?void 0:W.toLowerCase().includes(N.toLowerCase())))}).map(M=>M.value??""):[])}}function Se(n){if(I.value){const w=Array.from(I.value.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(w.length){const N=w.at(0),M=N===n&&w.length>1?w.at(1):N;M&&U(()=>{M.focus()},1)}}}function ha(){if(I.value){const n=Ce(I.value);n?U(()=>{n.focus()},1):Se()}}function ga(n){if(n===void 0)return;let w;if(typeof n=="string")w=n;else{const N=n;N.stopPropagation(),a.onSearch&&a.onSearch(N),w=N.target.value,ze.value=w}!a.options||!w||w.length===0?V.value=a.options:a.searchFilter?V.value=a.options.filter(N=>a.searchFilter(N,w)):V.value=a.options.filter(N=>!N.isGroupTitle&&ce(N).toLowerCase().includes(w.toLowerCase()))}function wo(n){n.stopPropagation(),fe([]),ge()}function ge(){var n;I.value&&((n=I.value.querySelector("summary"))==null||n.focus())}function Eo(n){n.stopPropagation()}return(n,w)=>{var N,M,W;return e.openBlock(),e.createElementBlock("div",{id:i.value,ref_key:"_ref",ref:co,class:e.normalizeClass(e.unref(L)("db-custom-select",a.class)),"aria-invalid":u.value==="invalid","data-custom-validity":u.value,"data-width":n.formFieldWidth,"data-variant":n.variant==="floating"&&n.selectedType==="tag"&&n.multiple?"above":n.variant,"data-required":e.unref(A)(n.required),"data-placement":n.placement,"data-selected-type":n.multiple?n.selectedType:"text","data-hide-label":e.unref(z)(n.showLabel),"data-icon":n.icon,"data-hide-icon":e.unref(z)(n.showIcon)},[e.createElementVNode("label",{id:s.value},[e.createTextVNode(e.toDisplayString(n.label??e.unref(oe)),1),e.createElementVNode("select",{role:"none",hidden:!0,id:f.value,tabIndex:-1,ref_key:"selectRef",ref:re,form:n.form,name:n.name,multiple:e.unref(T)(n.multiple,"multiple"),disabled:e.unref(T)(n.disabled,"disabled"),required:e.unref(T)(n.required,"required"),onChange:w[0]||(w[0]=async D=>Eo(D))},[(N=n.options)!=null&&N.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.options,(D,le)=>(e.openBlock(),e.createElementBlock("option",{key:le,disabled:D.disabled,value:D.value},e.toDisplayString(ce(D)),9,Ki))),128)):e.createCommentVNode("",!0)],40,Yi)],8,ji),e.createElementVNode("details",{ref_key:"detailsRef",ref:I,open:n.open,onToggle:w[2]||(w[2]=async D=>mo(D)),onKeydown:w[3]||(w[3]=async D=>ko(D))},[e.renderSlot(n.$slots,"default"),n.options?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("summary",{class:"db-custom-select-form-field",id:E.value,"aria-disabled":e.unref(A)(n.disabled),"aria-labelledby":s.value},[(M=S.value)!=null&&M.length?(e.openBlock(),e.createElementBlock("span",{key:0,"data-visually-hidden":e.unref(A)(n.selectedType==="tag"),id:C.value},e.toDisplayString(S.value),9,Zi)):e.createCommentVNode("",!0),n.selectedType==="tag"?(e.openBlock(),e.createElementBlock("div",xi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(D,le)=>(e.openBlock(),e.createBlock(ia,{key:le,emphasis:"strong",behavior:"removable",removeButton:bo(le),onRemove:be=>yo(D,be)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ce(D)),1)]),_:2},1032,["removeButton","onRemove"]))),128))])):e.createCommentVNode("",!0)],8,Qi),e.createVNode(fa,{width:n.dropdownWidth},{default:e.withCtx(()=>[y.value?(e.openBlock(),e.createElementBlock("div",eo,[e.createVNode(aa,{type:"search",ref_key:"searchInputRef",ref:Ue,name:i.value,form:i.value,showLabel:!1,value:ze.value,label:n.searchLabel??e.unref(oe),placeholder:n.searchPlaceholder??n.searchLabel,ariaDescribedBy:q.value||n.showLoading?h.value:void 0,onInput:D=>ga(D)},null,8,["name","form","value","label","placeholder","ariaDescribedBy","onInput"])])):e.createCommentVNode("",!0),q.value||n.showLoading?(e.openBlock(),e.createBlock(O,{key:1,id:h.value,icon:q.value?void 0:"circular_arrows",semantic:q.value?"warning":"informational"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString((q.value?n.noResultsText:n.loadingText)??e.unref(qe)),1)]),_:1},8,["id","icon","semantic"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[_.value?(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("div",to,[e.createElementVNode("label",null,[e.createElementVNode("input",{type:"checkbox",value:"select-all",ref_key:"selectAllRef",ref:Be,form:i.value,checked:Re.value,onChange:w[1]||(w[1]=async D=>So(D))},null,40,io),e.createTextVNode(e.toDisplayString(ho()),1)])])])):e.createCommentVNode("",!0),e.createVNode(ra,{multiple:e.unref(T)(n.multiple,"multiple"),label:n.ariaListLabel??n.label??e.unref(oe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(D,le)=>(e.openBlock(),e.createBlock(ca,{key:le,type:n.multiple?"checkbox":"radio",showDivider:D.showDivider,icon:D.icon,isGroupTitle:D.isGroupTitle,groupTitle:ce(D),name:i.value,checked:go(D.value),disabled:D.disabled,value:D.value,onChange:be=>pa(D.value)},{default:e.withCtx(()=>[D.isGroupTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(ce(D)),1)],64))]),_:2},1032,["type","showDivider","icon","isGroupTitle","groupTitle","name","checked","disabled","value","onChange"]))),128))]),_:1},8,["multiple","label"])],64)),e.createElementVNode("div",null,[e.createVNode(ie,{variant:"ghost",width:"full",icon:"cross",size:"small",name:i.value,form:i.value,onClick:D=>he(void 0,!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.mobileCloseButtonText??e.unref(ye)),1)]),_:1},8,["name","form","onClick"])])]),_:1},8,["width"])],64)):e.createCommentVNode("",!0)],40,Ji),(n.showClearSelection??!0)&&((W=k.value)!=null&&W.length)?(e.openBlock(),e.createBlock(ie,{key:0,icon:"cross",variant:"ghost",size:"small",noText:!0,name:i.value,form:i.value,onClick:D=>wo(D)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1),e.createVNode(Me,{placement:"top"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.clearSelectionText),1)]),_:1})]),_:1},8,["name","form","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("span",{"aria-hidden":e.unref(A)(!0),id:g.value},e.toDisplayString(n.placeholder??n.label),9,oo),e.unref(P)(n.message,n.showMessage)?(e.openBlock(),e.createBlock(O,{key:1,size:"small",icon:n.messageIcon,id:p.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.message),1)]),_:1},8,["icon","id"])):e.createCommentVNode("",!0),ua()?(e.openBlock(),e.createBlock(O,{key:2,size:"small",semantic:"successful",id:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.validMessage||e.unref(Z)),1)]),_:1},8,["id"])):e.createCommentVNode("",!0),e.createVNode(O,{size:"small",semantic:"critical",id:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1},8,["id"]),e.createElementVNode("span",lo,e.toDisplayString(b.value),1)],10,Hi)}}}),so=["id"],ro=e.defineComponent({__name:"custom-select-form-field",props:{children:{default:void 0},className:{default:void 0},class:{},describedbyid:{},id:{default:void 0},autofocus:{type:[Boolean,String]}},setup(o){const t=o,l=e.ref(null);return(a,i)=>(e.openBlock(),e.createElementBlock("summary",{ref_key:"_ref",ref:l,id:a.id,class:e.normalizeClass(e.unref(L)("db-custom-select-form-field",t.class))},[e.renderSlot(a.$slots,"default")],10,so))}});m.AlignmentList=zi,m.AutoCompleteList=Vi,m.COLOR=Ve,m.COLORS=Ca,m.COLORS_SIMPLE=Na,m.COLOR_CONST=wa,m.COLOR_SIMPLE=$e,m.DBAccordion=di,m.DBAccordionItem=oa,m.DBBadge=Aa,m.DBBrand=Ma,m.DBButton=ie,m.DBCard=Ra,m.DBCheckbox=Wa,m.DBCustomSelect=no,m.DBCustomSelectDropdown=fa,m.DBCustomSelectFormField=ro,m.DBCustomSelectList=ra,m.DBCustomSelectListItem=ca,m.DBDivider=Ha,m.DBDrawer=Qe,m.DBHeader=pt,m.DBIcon=gt,m.DBInfotext=O,m.DBInput=aa,m.DBLink=Et,m.DBNavigation=ri,m.DBNavigationItem=ii,m.DBNotification=$a,m.DBPage=Nt,m.DBPopover=ui,m.DBRadio=It,m.DBSection=_t,m.DBSelect=Pt,m.DBStack=Ui,m.DBSwitch=qt,m.DBTabItem=ta,m.DBTabList=la,m.DBTabPanel=na,m.DBTabs=bi,m.DBTag=ia,m.DBTextarea=Zt,m.DBTooltip=Me,m.DEFAULT_BACK=We,m.DEFAULT_BURGER_MENU=He,m.DEFAULT_CLOSE_BUTTON=ye,m.DEFAULT_DATALIST_ID_SUFFIX=Ie,m.DEFAULT_ICON=je,m.DEFAULT_ID=ne,m.DEFAULT_INVALID_MESSAGE=G,m.DEFAULT_INVALID_MESSAGE_ID_SUFFIX=Q,m.DEFAULT_LABEL=oe,m.DEFAULT_LABEL_ID_SUFFIX=Te,m.DEFAULT_MESSAGE=qe,m.DEFAULT_MESSAGE_ID_SUFFIX=K,m.DEFAULT_PLACEHOLDER=Ne,m.DEFAULT_PLACEHOLDER_ID_SUFFIX=ue,m.DEFAULT_REMOVE=De,m.DEFAULT_ROWS=Ye,m.DEFAULT_SELECTED=Xe,m.DEFAULT_SELECT_ID_SUFFIX=Le,m.DEFAULT_VALID_MESSAGE=Z,m.DEFAULT_VALID_MESSAGE_ID_SUFFIX=J,m.DEFAULT_VIEWPORT=Ke,m.DENSITIES=Ea,m.DENSITY=_e,m.DENSITY_CONST=Sa,m.DESKTOP_VIEWPORT=Je,m.EmphasisList=Ii,m.FieldSizingList=_i,m.GapSpacingList=Si,m.LabelVariantList=$i,m.LinkCurrentList=Ai,m.LinkReferrerPolicyList=Mi,m.LinkTargetList=Fi,m.MarginList=ki,m.MaxWidthList=Ci,m.NavigationItemSafeTriangle=ea,m.OrientationList=wi,m.PlacementHorizontalList=da,m.PlacementList=Bi,m.PlacementVerticalList=sa,m.PopoverDelayList=Ni,m.PopoverWidthList=Ti,m.SEMANTIC=Ae,m.SEMANTICS=Ta,m.SemanticList=yi,m.SizeList=Li,m.SpacingList=vi,m.TESTING_VIEWPORTS=La,m.ValidationList=Di,m.WidthList=Ei,m.addAttributeToChildren=we,m.cls=L,m.delay=U,m.getBoolean=T,m.getBooleanAsString=A,m.getHideProp=z,m.getInputValue=Ee,m.getNumber=te,m.getOptionKey=ka,m.getSearchInput=Ce,m.hasVoiceOver=Y,m.isArrayOfStrings=Oe,m.isEventTargetNavigationItem=Fe,m.isKeyboardEvent=Ge,m.stringPropVisible=P,m.uuid=F,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "2.2.5",
3
+ "version": "2.3.1",
4
4
  "type": "module",
5
5
  "description": "Vue components for @db-ux/core-components",
6
6
  "repository": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@playwright/experimental-ct-vue": "1.51.1",
41
- "@vitejs/plugin-vue": "^5.2.4",
41
+ "@vitejs/plugin-vue": "^6.0.0",
42
42
  "replace-in-file": "^8.3.0",
43
43
  "tsx": "^4.20.3",
44
44
  "typescript": "^5.4.5",
45
45
  "vite": "^6.3.5",
46
- "vue": "^3.5.16",
46
+ "vue": "^3.5.17",
47
47
  "vue-tsc": "^2.2.10"
48
48
  },
49
49
  "publishConfig": {
@@ -53,7 +53,7 @@
53
53
  "sideEffects": false,
54
54
  "source": "src/index.ts",
55
55
  "dependencies": {
56
- "@db-ux/core-components": "2.2.5",
57
- "@db-ux/core-foundations": "2.2.5"
56
+ "@db-ux/core-components": "2.3.1",
57
+ "@db-ux/core-foundations": "2.3.1"
58
58
  }
59
59
  }