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