sit-onyx 1.0.0-beta.4 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ct={key:0,class:"onyx-app__nav"},ut={class:"onyx-app__page"},dt={key:1,class:"onyx-app__page-overlay"},pt={key:2,class:"onyx-app__app-overlay"},mt=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(o){const n=o,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":n.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",ut,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),ft=["title"],ht=["src","alt"],yt={key:1,class:"onyx-avatar__initials"},re=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>{const a=n.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>n.src,()=>r.value=!1),(a,s)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${n.size}`,t.default?"onyx-avatar--custom":""]]),title:n.label},[n.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:n.src,alt:n.label,onError:s[0]||(s[0]=c=>r.value=!0)},null,40,ht)):(e.openBlock(),e.createElementBlock("div",yt,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,ft))}}),vt={class:"onyx-avatar-stack"},_t=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",vt,[e.renderSlot(n.$slots,"default")]))}}),kt=["compact","default","cozy"],g=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),xt=["innerHTML"],x=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${n.size}`]:n.size,[`onyx-icon--${n.color}`]:n.color}),"aria-hidden":"true",innerHTML:n.icon},null,10,xt))}}),$e=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${n.color}`,n.dot?"onyx-badge--dot":"",e.unref(t)]])},[n.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-badge__icon",icon:n.icon,size:n.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),me=(o,n)=>{const t=o.__vccOpts||o;for(const[l,r]of n)t[l]=r;return t},gt={},bt={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},Bt=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),Ct=[Bt];function wt(o,n){return e.openBlock(),e.createElementBlock("svg",bt,Ct)}const Vt=me(gt,[["render",wt]]),Et={},St={class:"onyx-loading-dots"},Nt=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),$t=[Nt];function Mt(o,n){return e.openBlock(),e.createElementBlock("div",St,$t)}const Ot=me(Et,[["render",Mt]]),M=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(Vt,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(Ot,{key:1})):e.createCommentVNode("",!0)}}),Tt={},It={"aria-hidden":"true",class:"onyx-skeleton"};function Lt(o,n){return e.openBlock(),e.createElementBlock("figure",It)}const w=me(Tt,[["render",Lt]]),Dt=["disabled","type","aria-label","autofocus"],Pt={class:"onyx-button__label onyx-truncation-ellipsis"},Z=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.color}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(l)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,autofocus:t.autofocus,onClick:s[0]||(s[0]=c=>r("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(x,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(M,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Pt,e.toDisplayString(t.label),1)],10,Dt))}}),At=["button","submit","reset"],zt=["primary","neutral","danger"],Ht=["default","outline","plain"],K=o=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${o.requiredMarker}`]:o.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":o.required,"onyx-optional-marker":!o.required}))}),Rt="(optional)",Ft="Cancel",Ut="Apply",qt="Back",Zt="Close",Kt={tooShort:{preview:"Too short",fullError:"Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"},tooLong:{preview:"Too long",fullError:"Please shorten this text to {maxLength} characters or less (you are currently using 1 character) | Please shorten this text to {maxLength} characters or less (you are currently using {n} characters)"},rangeUnderflow:{preview:"Too low",fullError:"Value must be greater than or equal to {min}"},rangeOverflow:{preview:"Too high",fullError:"Value must be less than or equal to {max}"},patternMismatch:{preview:"Invalid format",fullError:"Please match the format requested."},valueMissing:{preview:"Required",fullError:"Please fill in this field."},stepMismatch:{preview:"Invalid number",fullError:"Please enter a value that is a multiple of {step}."},badInput:{preview:"Invalid input",fullError:'"{value}" does not match the expected type.'},typeMismatch:{generic:{preview:"Invalid input type",fullError:'"{value}" does not match the expected type.'},email:{preview:"Invalid mail",fullError:'"{value}" must be a valid email address.'},number:{preview:"Invalid number",fullError:'"{value}" must be a number.'},tel:{preview:"Invalid phone number",fullError:'"{value}" must be a valid phone number.'},url:{preview:"Invalid URL",fullError:'"{value}" must a valid URL.'}}},Gt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},jt={selectAll:"Select all",currentSelection:"{n} selected"},Yt={empty:"This table is empty."},Xt={opensExternally:"Opens in a new tab."},Wt="Subpages of {label}",Jt={appLogo:"App logo of {appName}",goToHome:"Go to home page",goBack:"Go back",userMenuLabel:"User options",toggleBurgerMenu:"Toggle burger menu",toggleContextMenu:"Toggle context menu",navigationHeadline:"Navigation"},Qt={info:"Show info tooltip",error:"Show error tooltip"},eo={headline:"Change appearance",subtitle:"Select the appearance of the application:",appearance:"Appearance",auto:{label:"Auto",description:"The application automatically adapts its appearance to your system settings."},light:{label:"Light",description:"Light mode provides optimal contrast for bright environments."},dark:{label:"Dark",description:"This color mode is optimized for darker environments."}},se={optional:Rt,cancel:Ft,apply:Ut,back:qt,close:Zt,validations:Kt,select:Gt,selections:jt,table:Yt,link:Xt,navItemOptionsLabel:Wt,navigation:Jt,showTooltip:Qt,colorScheme:eo},Me=Symbol(),Oe=(o={})=>{const n=e.computed(()=>e.unref(o==null?void 0:o.locale)??"en-US");if(o.t)return{t:o.t,locale:n};const t=e.computed(()=>o!=null&&o.messages&&n.value in o.messages?o.messages[n.value]:se),l=e.computed(()=>(r,a={})=>{let s=Ve(r,t.value)??Ve(r,se)??"";return s=to(s,a.n),oo(s,a)});return{locale:n,t:l}},Te=(o,n)=>{const t=Oe(n);return o.provide(Me,t),t},B=()=>e.inject(Me,()=>Oe(),!0),Ve=(o,n)=>{const t=o.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],n);return t&&typeof t=="string"?t:void 0},to=(o,n)=>{const t=o.split(" | ").map(r=>r.trim());if(t.length<=1)return o;let l=1;return n===0&&(l=0),n&&(n<=0||n>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},oo=(o,n)=>n?Object.entries(n).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),o).replace(/\s?{.*}\s?/gi,""):o,no=(o,n)=>{const t=Object.entries(o).filter(([r,a])=>a!==void 0),l=Object.entries(n).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===n[r])},lo=(o,n)=>o.reduce((t,l)=>{const r=l[n]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Ie=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([o,n])=>n.enumerable).map(([o])=>o),ao=o=>Ie().reduce((n,t)=>(n[t]=o[t],n),{}),ro=o=>{if(o.valueMissing)return"valueMissing";const n=Ie().filter(t=>t!=="valid").sort();for(const t of n)if(t in o&&o[t])return t},so=Object.keys(se.validations.typeMismatch),io=o=>{if(o)return typeof o=="string"?{shortMessage:o,longMessage:o}:o},Le=o=>{if(!o)return;if(typeof o=="string")return o;const{shortMessage:n,longMessage:t}=o;return`${n}: ${t}`},D=o=>{const{t:n}=B(),t=e.ref(),l=e.ref(!1);e.watch(()=>o.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Le(o.props.customError)??"")),e.watch([()=>o.props.customError,()=>o.props.modelValue],()=>{const c=ao(s.validity);!t.value&&c.valid||t.value&&no(c,t.value)||(t.value=c)},{immediate:!0}),e.watch([()=>o.props.customError,t,l],()=>{!l.value||!t.value||o.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var p,u,d;if(!t.value||t.value.valid)return;const s=ro(t.value),c=io(o.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const m=so.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(p=o.props.modelValue)==null?void 0:p.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const i={value:(u=o.props.modelValue)==null?void 0:u.toString(),n:((d=o.props.modelValue)==null?void 0:d.toString().length)??0,minLength:o.props.minlength,maxLength:o.props.maxlength};return{longMessage:n.value(`validations.${s}.fullError`,i),shortMessage:n.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},co={class:"onyx-checkbox__container"},uo=["aria-label","title","indeterminate","disabled","required","value","autofocus"],U=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),{requiredMarkerClass:a,requiredTypeClass:s}=K(t),{densityClass:c}=g(t),{vCustomValidity:i}=D({props:t,emit:l});return(p,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(w,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(c)]])},[e.createElementVNode("div",co,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value,autofocus:t.autofocus},null,8,uo)),[[e.vModelCheckbox,r.value],[e.unref(i)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),po=(o,n)=>e.computed(()=>{const t=n.value.filter(r=>o.value.includes(r)),l=t.length===o.value.length;return{modelValue:l,indeterminate:!l&&o.value.length&&t.length?!0:void 0}}),De=(o,n,t)=>({state:po(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),mo=["disabled"],fo={key:0,class:"onyx-checkbox-group__label"},ho=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},truncation:{default:"ellipsis"},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n,{t:a}=B(),s=(u,d)=>{const m=d?[...t.modelValue,u]:t.modelValue.filter(h=>h!==u);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(u=>!u.disabled&&!u.skeleton).map(({value:u})=>u)),i=De(c,e.computed(()=>t.modelValue),u=>r("update:modelValue",u)),p=e.computed(()=>{var d;const u=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?u:((d=t.withCheckAll)==null?void 0:d.label)??u});return(u,d)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",fo,[e.createVNode(e.unref(I),{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(U,e.mergeProps({key:0},e.unref(i).state.value,{label:p.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(i).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(U,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>s(m.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(U,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,mo))}}),yo=["aria-modal","aria-label","role"],Pe=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(),{densityClass:a}=g(t),s=()=>{var c,i;t.modal?(c=r.value)==null||c.showModal():(i=r.value)==null||i.show()};return e.watch([r,()=>t.open],()=>{var c;t.open?s():(c=r.value)==null||c.close()}),e.watch(()=>t.modal,()=>{var c;(c=r.value)!=null&&c.open&&(r.value.close(),s())}),(c,i)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:i[0]||(i[0]=e.withModifiers(p=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,yo)):e.createCommentVNode("",!0)}}),Ae='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>',vo={class:"onyx-empty"},_o={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},fe=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",vo,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(x,{icon:e.unref(Ae),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",_o,[e.renderSlot(n.$slots,"default")])]))}}),ko='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>',xo=o=>/^http(s?):\/\//.test(o),G=e.defineComponent({__name:"OnyxExternalLinkIcon",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"}},setup(o){const n=o,t=e.computed(()=>{const l=n.withExternalIcon;return l!=="auto"?l:xo(n.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-external-link-icon",icon:e.unref(ko),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),I=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${n.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),go=["h1","h2","h3","h4","h5","h6"],bo=["12px","16px","24px","32px","48px","64px","96px"],Bo=["aria-label","title","type","disabled","autofocus"],ze=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.color}`,{"onyx-icon-button--loading":t.loading},e.unref(l)]]),"aria-label":t.label,title:t.label,type:t.type,disabled:t.disabled||t.loading,autofocus:t.autofocus,onClick:s[0]||(s[0]=c=>r("click"))},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Bo))}}),He='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>',A=o=>o,Co=(()=>{let o=1;return()=>o++})(),T=o=>`${o}-${Co()}`,wo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),Vo=(o,n)=>typeof n=="string"?o.key===n:wo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ie=o=>!So.has(o),Eo=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Symbol","SymbolLock","Hyper","Super","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHankaku","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","Soft1","Soft2","Soft3","Soft4","ChannelDown","ChannelUp","Close","MailForward","MailReply","MailSend","MediaClose","MediaFastForward","MediaPause","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaTrackNext","MediaTrackPrevious","New","Open","Print","Save","SpellCheck","Key11","Key12","AudioBalanceLeft","AudioBalanceRight","AudioBassBoostDown","AudioBassBoostToggle","AudioBassBoostUp","AudioFaderFront","AudioFaderRear","AudioSurroundModeNext","AudioTrebleDown","AudioTrebleUp","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","MicrophoneToggle","MicrophoneVolumeDown","MicrophoneVolumeUp","MicrophoneVolumeMute","SpeechCorrectionList","SpeechInputToggle","LaunchApplication1","LaunchApplication2","LaunchCalendar","LaunchContacts","LaunchMail","LaunchMediaPlayer","LaunchMusicPlayer","LaunchPhone","LaunchScreenSaver","LaunchSpreadsheet","LaunchWebBrowser","LaunchWebCam","LaunchWordProcessor","BrowserBack","BrowserFavorites","BrowserForward","BrowserHome","BrowserRefresh","BrowserSearch","BrowserStop","AppSwitch","Call","Camera","CameraFocus","EndCall","GoBack","GoHome","HeadsetHook","LastNumberRedial","Notification","MannerMode","VoiceDial","TV","TV3DMode","TVAntennaCable","TVAudioDescription","TVAudioDescriptionMixDown","TVAudioDescriptionMixUp","TVContentsMenu","TVDataService","TVInput","TVInputComponent1","TVInputComponent2","TVInputComposite1","TVInputComposite2","TVInputHDMI1","TVInputHDMI2","TVInputHDMI3","TVInputHDMI4","TVInputVGA1","TVMediaContext","TVNetwork","TVNumberEntry","TVPower","TVRadioService","TVSatellite","TVSatelliteBS","TVSatelliteCS","TVSatelliteToggle","TVTerrestrialAnalog","TVTerrestrialDigital","TVTimer","AVRInput","AVRPower","ColorF0Red","ColorF1Green","ColorF2Yellow","ColorF3Blue","ColorF4Grey","ColorF5Brown","ClosedCaptionToggle","Dimmer","DisplaySwap","DVR","Exit","FavoriteClear0","FavoriteClear1","FavoriteClear2","FavoriteClear3","FavoriteRecall0","FavoriteRecall1","FavoriteRecall2","FavoriteRecall3","FavoriteStore0","FavoriteStore1","FavoriteStore2","FavoriteStore3","Guide","GuideNextDay","GuidePreviousDay","Info","InstantReplay","Link","ListProgram","LiveContent","Lock","MediaApps","MediaAudioTrack","MediaLast","MediaSkipBackward","MediaSkipForward","MediaStepBackward","MediaStepForward","MediaTopMenu","NavigateIn","NavigateNext","NavigateOut","NavigatePrevious","NextFavoriteChannel","NextUserProfile","OnDemand","Pairing","PinPDown","PinPMove","PinPToggle","PinPUp","PlaySpeedDown","PlaySpeedReset","PlaySpeedUp","RandomToggle","RcLowBattery","RecordSpeedNext","RfBypass","ScanChannelsToggle","ScreenModeNext","Settings","SplitScreenToggle","STBInput","STBPower","Subtitle","Teletext","VideoModeNext","Wink","ZoomToggle","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","BrowserBack","BrowserForward","ChannelDown","ChannelUp","ContextMenu","Eject","End","Enter","Home","MediaFastForward","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaNextTrack","MediaPause","MediaPreviousTrack","Power","Unidentified"],So=new Set(Eo),L=e.reactive(new Map),No=(o,n)=>{if(n!=null&&n.size){L.set(o,n);return}L.delete(o),document.removeEventListener(o,Re)},Ee=(o,n)=>{const t=L.get(o);t==null||t.delete(n),No(o,t)},$o=(o,n)=>{const t=L.get(o)??new Set;t.add(n),L.set(o,t),document.addEventListener(o,Re)},Re=o=>{var t;const n=o.type;(t=L.get(n))==null||t.forEach(l=>l(o))},Mo=({type:o,listener:n,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Ee(o,n):$o(o,n))),e.onBeforeUnmount(()=>Ee(o,n))},Fe=({element:o,onOutsideClick:n,disabled:t})=>{Mo({type:"click",listener:({target:r})=>{var s;!((s=o.value)!=null&&s.contains(r))&&n()},disabled:t})},Ue=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},qe=(o,n=500)=>{let t="";const l=Ue(()=>t="",n);return r=>{ie(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Oo=A(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=i=>(t.has(i)||t.set(i,T("listbox-option")),t.get(i)),r=e.ref(!1);e.watchEffect(()=>{var p;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const i=l(o.activeOption.value);(p=document.getElementById(i))==null||p.scrollIntoView({block:"nearest",inline:"nearest"})});const a=qe(i=>{var p;return(p=o.onTypeAhead)==null?void 0:p.call(o,i)}),s=i=>{var p,u,d,m,h,_,V;switch(i.key){case" ":i.preventDefault(),o.activeOption.value!=null&&((p=o.onSelect)==null||p.call(o,o.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),o.activeOption.value==null){(u=o.onActivateLast)==null||u.call(o);return}(d=o.onActivatePrevious)==null||d.call(o,o.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),o.activeOption.value==null){(m=o.onActivateFirst)==null||m.call(o);return}(h=o.onActivateNext)==null||h.call(o,o.activeOption.value);break;case"Home":i.preventDefault(),(_=o.onActivateFirst)==null||_.call(o);break;case"End":i.preventDefault(),(V=o.onActivateLast)==null||V.call(o);break;default:a(i)}};return{elements:{listbox:e.computed(()=>o.controlled?{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"0","aria-activedescendant":o.activeOption.value!=null?l(o.activeOption.value):void 0,onFocus:()=>r.value=!0,onBlur:()=>r.value=!1,onKeydown:s}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const p=i.selected??!1;return{id:l(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":n.value?p:void 0,"aria-selected":n.value?void 0:p,onClick:()=>{var u;return!i.disabled&&((u=o.onSelect)==null?void 0:u.call(o,i.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ze=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ke=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],To=["Enter"," "],Io=["Enter"],Lo=(o,n)=>ce(o,n?Io:To),ce=(o,n)=>n.some(t=>Vo(o,t)),Do=A(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:c,activeOption:i,onToggle:p,onSelect:u,onActivateFirst:d,onActivateLast:m,onActivateNext:h,onActivatePrevious:_,templateRef:V})=>{const O=T("comboBox-control"),k=e.computed(()=>e.unref(n)),b=e.computed(()=>e.unref(c)),N=e.computed(()=>e.unref(r)),Y=y=>{const oe=y.target;k.value!=="none"&&(t==null||t(oe.value))},X=qe(y=>l==null?void 0:l(y)),H=y=>{u==null||u(y),e.unref(N)||p==null||p()},W=y=>{switch(y.key){case"ArrowUp":if(y.preventDefault(),i.value==null)return m==null?void 0:m();_==null||_(i.value);break;case"ArrowDown":if(y.preventDefault(),i.value==null)return d==null?void 0:d();h==null||h(i.value);break;case"Home":y.preventDefault(),d==null||d();break;case"End":y.preventDefault(),m==null||m();break}},J=y=>{if(y.key==="Enter"&&y.preventDefault(),!b.value&&ce(y,Ze))return p==null||p(),y.key===" "&&y.preventDefault(),y.key==="End"?m==null?void 0:m():d==null?void 0:d();if(Lo(y,N.value))return H(i.value);if(b.value&&ce(y,Ke))return p==null?void 0:p();if(k.value==="none"&&ie(y.key))return!b.value&&(p==null||p()),X(y);if(k.value!=="none"&&ie(y.key)){!b.value&&(p==null||p());return}return W(y)},P=k.value!=="none"?{"aria-autocomplete":k.value,type:"text"}:null,{elements:{option:R,group:Q,listbox:ee},internals:{getOptionId:te}}=Oo({label:s,multiple:N,controlled:!0,activeOption:i,onSelect:H});return Fe({element:V,onOutsideClick(){b.value&&(p==null||p(!0))}}),{elements:{option:R,group:Q,listbox:e.computed(()=>({...ee.value,id:O,onMousedown:y=>y.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":b.value,"aria-controls":O,"aria-label":e.unref(a),"aria-activedescendant":i.value!=null?te(i.value):void 0,onInput:Y,onKeydown:J,...P})),button:e.computed(()=>({tabindex:"-1",onClick:()=>p==null?void 0:p()}))}}}),Po=A(()=>{const o=T("menu"),n=T("menu-button"),t=e.ref(!1),l=Ue(c=>t.value=c,200),r=e.computed(()=>({onMouseover:()=>l(!0),onMouseout:()=>l(!1),onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1})),a=c=>{const i=document.activeElement,p=(i==null?void 0:i.closest('[role="menu"]'))||document.getElementById(o);if(!p)return;const u=[...p.querySelectorAll('[role="menuitem"]')];let d=0;if(i){const h=u.indexOf(i);switch(c){case"next":d=h+1;break;case"prev":d=h-1;break;case"first":d=0;break;case"last":d=u.length-1;break}}const m=u[d];m==null||m.focus()},s=c=>{switch(c.key){case"ArrowDown":case"ArrowRight":c.preventDefault(),a("next");break;case"ArrowUp":case"ArrowLeft":c.preventDefault(),a("prev");break;case"Home":c.preventDefault(),a("first");break;case"End":c.preventDefault(),a("last");break;case" ":c.preventDefault(),c.target.click();break}};return{state:{isExpanded:t},elements:{button:e.computed(()=>({"aria-controls":o,"aria-expanded":t.value,"aria-haspopup":!0,id:n,...r.value,onKeydown:s})),flyout:{...r.value},menu:{id:o,role:"menu","aria-labelledby":n,onKeydown:s},...Ge().elements}}}),Ge=A(()=>({elements:{listItem:{role:"none"},menuItem:o=>({"aria-current":o.active?"page":void 0,"aria-disabled":o.disabled,role:"menuitem"})}})),Ao=A(o=>{const n=e.ref(),t=T("tooltip"),l=e.ref(!1);let r;const a=e.computed(()=>{const m=e.unref(o.open);return typeof m!="object"?200:m.debounce}),s=e.computed(()=>{const m=e.unref(o.open);return typeof m!="object"?m:m.type}),c=e.computed({get:()=>l.value,set:m=>{clearTimeout(r),r=setTimeout(()=>{l.value=m},a.value)}}),i=e.computed(()=>typeof s.value=="boolean"?s.value:c.value),p=()=>{l.value=!l.value},u=e.computed(()=>{if(s.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1}}),d=m=>{m.key==="Escape"&&(l.value=!1)};return Fe({element:n,onOutsideClick:()=>l.value=!1,disabled:e.computed(()=>s.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",d)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",d)}),{elements:{root:{ref:n},trigger:e.computed(()=>({"aria-describedby":t,onClick:s.value==="click"?p:void 0,...u.value})),tooltip:e.computed(()=>({role:"tooltip",id:t,tabindex:"-1",...u.value}))},state:{isVisible:i}}}),he=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(o){const n=o,{elements:{root:t,trigger:l,tooltip:r},state:{isVisible:a}}=Ao({open:e.computed(()=>n.open)});return(s,c)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-tooltip-wrapper"},e.unref(t)),[e.createElementVNode("div",e.mergeProps(e.unref(r),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":n.color==="danger","onyx-tooltip--bottom":n.position==="bottom","onyx-tooltip--fit-parent":n.fitParent,"onyx-tooltip--hidden":!e.unref(a)}]}),[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(n.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(l))),[e.renderSlot(s.$slots,"default")],16)],16))}}),zo=["aria-label"],q=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=B();return(l,r)=>(e.openBlock(),e.createBlock(he,{class:"onyx-info-tooltip",text:n.text,position:n.position},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button","aria-label":n.label||e.unref(t)("showTooltip.info"),class:"onyx-info-tooltip__trigger"},[e.createVNode(x,{icon:e.unref(He)},null,8,["icon"])],8,zo)]),_:1},8,["text","position"]))}}),Ho={class:"onyx-form-element__header"},Ro={class:"onyx-truncation-ellipsis"},Fo={key:2,class:"onyx-form-element__optional"},Uo={key:0,class:"onyx-form-element__footer onyx-text--small"},qo={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},Zo={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Ko={key:4,class:"onyx-form-element__counter"},ye=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(o){const n=o,{t}=B(),{requiredMarkerClass:l,requiredTypeClass:r}=K(n),a=e.computed(()=>{var s;if(n.withCounter&&n.maxlength)return`${(((s=n.modelValue)==null?void 0:s.toString())||"").length}/${n.maxlength}`});return(s,c)=>{var i,p;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[e.createElementVNode("label",null,[n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-form-element__label onyx-text--small",[n.required?void 0:e.unref(l)]])},[e.createElementVNode("div",Ho,[e.createElementVNode("span",Ro,e.toDisplayString(n.label),1),n.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([n.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),n.labelTooltip?(e.openBlock(),e.createBlock(q,{key:1,class:"onyx-form-element__label-tooltip",text:n.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),n.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Fo,e.toDisplayString(e.unref(t)("optional")),1))])],2)),e.renderSlot(s.$slots,"default")]),n.message||(i=s.errorMessages)!=null&&i.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",Uo,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",qo,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(p=s.errorMessages)!=null&&p.longMessage?(e.openBlock(),e.createBlock(q,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("showTooltip.error"),text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("span",Zo,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0),n.messageTooltip?(e.openBlock(),e.createBlock(q,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",text:n.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Go={class:"onyx-input__wrapper"},jo=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Yo=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=D({props:t,emit:l}),{densityClass:s}=g(t),c=e.computed({get:()=>t.modelValue,set:u=>l("update:modelValue",u)}),i=u=>{const d=u.target.value;l("change",d)},p=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(s)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(w,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(ye,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",Go,[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=m=>c.value=m),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:p.value,readonly:t.readonly,disabled:t.disabled||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onChange:i,onFocus:d[1]||(d[1]=m=>l("focus")),onBlur:d[2]||(d[2]=m=>l("blur"))},null,40,jo),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Xo=["email","password","search","tel","text","url"],Wo=["none","sentences","words","characters"],ve=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),Jo=["href","target","rel"],Qo=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B();return(a,s)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:s[0]||(s[0]=c=>l("click"))},[e.renderSlot(a.$slots,"default"),t.target==="_blank"?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)],8,Jo))}}),en=["_self","_blank","_parent","_top"],j=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":n.active,[`onyx-list-item--${n.color}`]:n.color,"onyx-list-item--disabled":n.disabled,"onyx-list-item--selected":n.selected,"onyx-list-item--checked":n.checked})},[e.renderSlot(l.$slots,"default")],2))}}),tn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>',_e='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>',je=()=>{const o=e.useAttrs(),n=e.computed(()=>({class:o.class,style:o.style})),t=e.computed(()=>{const l={...o};return delete l.class,delete l.style,l});return{rootAttrs:n,restAttrs:t}},on=["aria-label"],nn=["aria-label"],Ye=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(o,{expose:n,emit:t}){const l=o,r=t,{rootAttrs:a,restAttrs:s}=je(),{densityClass:c}=g(l),{t:i}=B(),p=e.ref(),u=e.computed({get:()=>l.modelValue,set:d=>r("update:modelValue",d??"")});return n({focus:()=>{var d;return(d=p.value)==null?void 0:d.focus()}}),(d,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(c)]},e.unref(a)),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:p,"onUpdate:modelValue":m[0]||(m[0]=h=>u.value=h),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,on),[[e.vModelText,u.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(i)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(()=>{},["prevent"])),onClick:m[2]||(m[2]=h=>r("clear"))},[e.createVNode(x,{icon:e.unref(_e)},null,8,["icon"])],40,nn),e.createVNode(x,{class:"onyx-mini-search__icon",icon:e.unref(tn)},null,8,["icon"])],16))}}),ln='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>',an={class:"onyx-mobile-nav-button"},rn=["aria-label"],sn={class:"onyx-mobile-nav-button__flyout"},cn={class:"onyx-mobile-nav-button__menu"},ue=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1},headline:{}},emits:["update:open"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createElementBlock("div",an,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=s=>l("update:open",!t.open))},[e.createVNode(x,{icon:t.open?e.unref(ln):t.icon},null,8,["icon"])],10,rn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",sn,[e.createElementVNode("div",cn,[t.headline?(e.openBlock(),e.createBlock(I,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=s=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),un=["aria-label"],dn=["src","alt"],pn={key:1,class:"onyx-text-small"},Xe=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),a=e.computed(()=>t.label??r.value("navigation.goToHome"));return(s,c)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"onyx-nav-app-area","aria-label":a.value,onClick:c[0]||(c[0]=i=>l("click"))},[e.renderSlot(s.$slots,"default",{},()=>[t.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoUrl,alt:e.unref(r)("navigation.appLogo",{appName:t.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,dn)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",pn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,un))}}),mn=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ct={key:0,class:"onyx-app__nav"},ut={class:"onyx-app__page"},dt={key:1,class:"onyx-app__page-overlay"},pt={key:2,class:"onyx-app__app-overlay"},mt=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(o){const n=o,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":n.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",ut,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),ft=["title"],ht=["src","alt"],yt={key:1,class:"onyx-avatar__initials"},re=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>{const a=n.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>n.src,()=>r.value=!1),(a,s)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${n.size}`,t.default?"onyx-avatar--custom":""]]),title:n.label},[n.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:n.src,alt:n.label,onError:s[0]||(s[0]=c=>r.value=!0)},null,40,ht)):(e.openBlock(),e.createElementBlock("div",yt,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,ft))}}),vt={class:"onyx-avatar-stack"},_t=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",vt,[e.renderSlot(n.$slots,"default")]))}}),kt=["compact","default","cozy"],g=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),xt=["innerHTML"],x=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${n.size}`]:n.size,[`onyx-icon--${n.color}`]:n.color}),"aria-hidden":"true",innerHTML:n.icon},null,10,xt))}}),$e=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${n.color}`,n.dot?"onyx-badge--dot":"",e.unref(t)]])},[n.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-badge__icon",icon:n.icon,size:n.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),me=(o,n)=>{const t=o.__vccOpts||o;for(const[l,r]of n)t[l]=r;return t},gt={},bt={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},Bt=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),Ct=[Bt];function wt(o,n){return e.openBlock(),e.createElementBlock("svg",bt,Ct)}const Vt=me(gt,[["render",wt]]),Et={},St={class:"onyx-loading-dots"},Nt=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),$t=[Nt];function Mt(o,n){return e.openBlock(),e.createElementBlock("div",St,$t)}const Ot=me(Et,[["render",Mt]]),M=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(Vt,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(Ot,{key:1})):e.createCommentVNode("",!0)}}),Tt={},It={"aria-hidden":"true",class:"onyx-skeleton"};function Lt(o,n){return e.openBlock(),e.createElementBlock("figure",It)}const w=me(Tt,[["render",Lt]]),Dt=["disabled","type","aria-label","autofocus"],Pt={class:"onyx-button__label onyx-truncation-ellipsis"},Z=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.color}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(l)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,autofocus:t.autofocus,onClick:s[0]||(s[0]=c=>r("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(x,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(M,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Pt,e.toDisplayString(t.label),1)],10,Dt))}}),At=["button","submit","reset"],zt=["primary","neutral","danger"],Ht=["default","outline","plain"],K=o=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${o.requiredMarker}`]:o.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":o.required,"onyx-optional-marker":!o.required}))}),Rt="(optional)",Ft="Cancel",Ut="Apply",qt="Back",Zt="Close",Kt={tooShort:{preview:"Too short",fullError:"Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"},tooLong:{preview:"Too long",fullError:"Please shorten this text to {maxLength} characters or less (you are currently using 1 character) | Please shorten this text to {maxLength} characters or less (you are currently using {n} characters)"},rangeUnderflow:{preview:"Too low",fullError:"Value must be greater than or equal to {min}"},rangeOverflow:{preview:"Too high",fullError:"Value must be less than or equal to {max}"},patternMismatch:{preview:"Invalid format",fullError:"Please match the format requested."},valueMissing:{preview:"Required",fullError:"Please fill in this field."},stepMismatch:{preview:"Invalid number",fullError:"Please enter a value that is a multiple of {step}."},badInput:{preview:"Invalid input",fullError:'"{value}" does not match the expected type.'},typeMismatch:{generic:{preview:"Invalid input type",fullError:'"{value}" does not match the expected type.'},email:{preview:"Invalid mail",fullError:'"{value}" must be a valid email address.'},number:{preview:"Invalid number",fullError:'"{value}" must be a number.'},tel:{preview:"Invalid phone number",fullError:'"{value}" must be a valid phone number.'},url:{preview:"Invalid URL",fullError:'"{value}" must a valid URL.'}}},Gt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},jt={selectAll:"Select all",currentSelection:"{n} selected"},Yt={empty:"This table is empty."},Xt={opensExternally:"Opens in a new tab."},Wt="Subpages of {label}",Jt={appLogo:"App logo of {appName}",goToHome:"Go to home page",goBack:"Go back",userMenuLabel:"User options",toggleBurgerMenu:"Toggle burger menu",toggleContextMenu:"Toggle context menu",navigationHeadline:"Navigation"},Qt={info:"Show info tooltip",error:"Show error tooltip"},eo={headline:"Change appearance",subtitle:"Select the appearance of the application:",appearance:"Appearance",auto:{label:"Auto",description:"The application automatically adapts its appearance to your system settings."},light:{label:"Light",description:"Light mode provides optimal contrast for bright environments."},dark:{label:"Dark",description:"This color mode is optimized for darker environments."}},se={optional:Rt,cancel:Ft,apply:Ut,back:qt,close:Zt,validations:Kt,select:Gt,selections:jt,table:Yt,link:Xt,navItemOptionsLabel:Wt,navigation:Jt,showTooltip:Qt,colorScheme:eo},Me=Symbol(),Oe=(o={})=>{const n=e.computed(()=>e.unref(o==null?void 0:o.locale)??"en-US");if(o.t)return{t:o.t,locale:n};const t=e.computed(()=>o!=null&&o.messages&&n.value in o.messages?o.messages[n.value]:se),l=e.computed(()=>(r,a={})=>{let s=Ve(r,t.value)??Ve(r,se)??"";return s=to(s,a.n),oo(s,a)});return{locale:n,t:l}},Te=(o,n)=>{const t=Oe(n);return o.provide(Me,t),t},B=()=>e.inject(Me,()=>Oe(),!0),Ve=(o,n)=>{const t=o.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],n);return t&&typeof t=="string"?t:void 0},to=(o,n)=>{const t=o.split(" | ").map(r=>r.trim());if(t.length<=1)return o;let l=1;return n===0&&(l=0),n&&(n<=0||n>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},oo=(o,n)=>n?Object.entries(n).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),o).replace(/\s?{.*}\s?/gi,""):o,no=(o,n)=>{const t=Object.entries(o).filter(([r,a])=>a!==void 0),l=Object.entries(n).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===n[r])},lo=(o,n)=>o.reduce((t,l)=>{const r=l[n]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Ie=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([o,n])=>n.enumerable).map(([o])=>o),ao=o=>Ie().reduce((n,t)=>(n[t]=o[t],n),{}),ro=o=>{if(o.valueMissing)return"valueMissing";const n=Ie().filter(t=>t!=="valid").sort();for(const t of n)if(t in o&&o[t])return t},so=Object.keys(se.validations.typeMismatch),io=o=>{if(o)return typeof o=="string"?{shortMessage:o,longMessage:o}:o},Le=o=>{if(!o)return;if(typeof o=="string")return o;const{shortMessage:n,longMessage:t}=o;return`${n}: ${t}`},D=o=>{const{t:n}=B(),t=e.ref(),l=e.ref(!1);e.watch(()=>o.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Le(o.props.customError)??"")),e.watch([()=>o.props.customError,()=>o.props.modelValue],()=>{const c=ao(s.validity);!t.value&&c.valid||t.value&&no(c,t.value)||(t.value=c)},{immediate:!0}),e.watch([()=>o.props.customError,t,l],()=>{!l.value||!t.value||o.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var p,u,d;if(!t.value||t.value.valid)return;const s=ro(t.value),c=io(o.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const m=so.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(p=o.props.modelValue)==null?void 0:p.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const i={value:(u=o.props.modelValue)==null?void 0:u.toString(),n:((d=o.props.modelValue)==null?void 0:d.toString().length)??0,minLength:o.props.minlength,maxLength:o.props.maxlength};return{longMessage:n.value(`validations.${s}.fullError`,i),shortMessage:n.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},co={class:"onyx-checkbox__container"},uo=["aria-label","title","indeterminate","disabled","required","value","autofocus"],U=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),{requiredMarkerClass:a,requiredTypeClass:s}=K(t),{densityClass:c}=g(t),{vCustomValidity:i}=D({props:t,emit:l});return(p,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(w,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(c)]])},[e.createElementVNode("div",co,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value,autofocus:t.autofocus},null,8,uo)),[[e.vModelCheckbox,r.value],[e.unref(i)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),po=(o,n)=>e.computed(()=>{const t=n.value.filter(r=>o.value.includes(r)),l=t.length===o.value.length;return{modelValue:l,indeterminate:!l&&o.value.length&&t.length?!0:void 0}}),De=(o,n,t)=>({state:po(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),mo=["disabled"],fo={key:0,class:"onyx-checkbox-group__label"},ho=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},truncation:{default:"ellipsis"},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n,{t:a}=B(),s=(u,d)=>{const m=d?[...t.modelValue,u]:t.modelValue.filter(h=>h!==u);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(u=>!u.disabled&&!u.skeleton).map(({value:u})=>u)),i=De(c,e.computed(()=>t.modelValue),u=>r("update:modelValue",u)),p=e.computed(()=>{var d;const u=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?u:((d=t.withCheckAll)==null?void 0:d.label)??u});return(u,d)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",fo,[e.createVNode(e.unref(I),{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(U,e.mergeProps({key:0},e.unref(i).state.value,{label:p.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(i).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(U,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>s(m.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(U,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,mo))}}),yo=["aria-modal","aria-label","role"],Pe=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(),{densityClass:a}=g(t),s=()=>{var c,i;t.modal?(c=r.value)==null||c.showModal():(i=r.value)==null||i.show()};return e.watch([r,()=>t.open],()=>{var c;t.open?s():(c=r.value)==null||c.close()}),e.watch(()=>t.modal,()=>{var c;(c=r.value)!=null&&c.open&&(r.value.close(),s())}),(c,i)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:i[0]||(i[0]=e.withModifiers(p=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,yo)):e.createCommentVNode("",!0)}}),Ae='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>',vo={class:"onyx-empty"},_o={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},fe=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",vo,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(x,{icon:e.unref(Ae),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",_o,[e.renderSlot(n.$slots,"default")])]))}}),ko='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>',xo=o=>/^http(s?):\/\//.test(o),G=e.defineComponent({__name:"OnyxExternalLinkIcon",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"}},setup(o){const n=o,t=e.computed(()=>{const l=n.withExternalIcon;return l!=="auto"?l:xo(n.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-external-link-icon",icon:e.unref(ko),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),I=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${n.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),go=["h1","h2","h3","h4","h5","h6"],bo=["12px","16px","24px","32px","48px","64px","96px"],Bo=["aria-label","title","type","disabled","autofocus"],ze=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.color}`,{"onyx-icon-button--loading":t.loading},e.unref(l)]]),"aria-label":t.label,title:t.label,type:t.type,disabled:t.disabled||t.loading,autofocus:t.autofocus,onClick:s[0]||(s[0]=c=>r("click"))},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Bo))}}),He='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>',A=o=>o,Co=(()=>{let o=1;return()=>o++})(),T=o=>`${o}-${Co()}`,wo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),Vo=(o,n)=>typeof n=="string"?o.key===n:wo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ie=o=>!So.has(o),Eo=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Symbol","SymbolLock","Hyper","Super","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHankaku","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","Soft1","Soft2","Soft3","Soft4","ChannelDown","ChannelUp","Close","MailForward","MailReply","MailSend","MediaClose","MediaFastForward","MediaPause","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaTrackNext","MediaTrackPrevious","New","Open","Print","Save","SpellCheck","Key11","Key12","AudioBalanceLeft","AudioBalanceRight","AudioBassBoostDown","AudioBassBoostToggle","AudioBassBoostUp","AudioFaderFront","AudioFaderRear","AudioSurroundModeNext","AudioTrebleDown","AudioTrebleUp","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","MicrophoneToggle","MicrophoneVolumeDown","MicrophoneVolumeUp","MicrophoneVolumeMute","SpeechCorrectionList","SpeechInputToggle","LaunchApplication1","LaunchApplication2","LaunchCalendar","LaunchContacts","LaunchMail","LaunchMediaPlayer","LaunchMusicPlayer","LaunchPhone","LaunchScreenSaver","LaunchSpreadsheet","LaunchWebBrowser","LaunchWebCam","LaunchWordProcessor","BrowserBack","BrowserFavorites","BrowserForward","BrowserHome","BrowserRefresh","BrowserSearch","BrowserStop","AppSwitch","Call","Camera","CameraFocus","EndCall","GoBack","GoHome","HeadsetHook","LastNumberRedial","Notification","MannerMode","VoiceDial","TV","TV3DMode","TVAntennaCable","TVAudioDescription","TVAudioDescriptionMixDown","TVAudioDescriptionMixUp","TVContentsMenu","TVDataService","TVInput","TVInputComponent1","TVInputComponent2","TVInputComposite1","TVInputComposite2","TVInputHDMI1","TVInputHDMI2","TVInputHDMI3","TVInputHDMI4","TVInputVGA1","TVMediaContext","TVNetwork","TVNumberEntry","TVPower","TVRadioService","TVSatellite","TVSatelliteBS","TVSatelliteCS","TVSatelliteToggle","TVTerrestrialAnalog","TVTerrestrialDigital","TVTimer","AVRInput","AVRPower","ColorF0Red","ColorF1Green","ColorF2Yellow","ColorF3Blue","ColorF4Grey","ColorF5Brown","ClosedCaptionToggle","Dimmer","DisplaySwap","DVR","Exit","FavoriteClear0","FavoriteClear1","FavoriteClear2","FavoriteClear3","FavoriteRecall0","FavoriteRecall1","FavoriteRecall2","FavoriteRecall3","FavoriteStore0","FavoriteStore1","FavoriteStore2","FavoriteStore3","Guide","GuideNextDay","GuidePreviousDay","Info","InstantReplay","Link","ListProgram","LiveContent","Lock","MediaApps","MediaAudioTrack","MediaLast","MediaSkipBackward","MediaSkipForward","MediaStepBackward","MediaStepForward","MediaTopMenu","NavigateIn","NavigateNext","NavigateOut","NavigatePrevious","NextFavoriteChannel","NextUserProfile","OnDemand","Pairing","PinPDown","PinPMove","PinPToggle","PinPUp","PlaySpeedDown","PlaySpeedReset","PlaySpeedUp","RandomToggle","RcLowBattery","RecordSpeedNext","RfBypass","ScanChannelsToggle","ScreenModeNext","Settings","SplitScreenToggle","STBInput","STBPower","Subtitle","Teletext","VideoModeNext","Wink","ZoomToggle","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","BrowserBack","BrowserForward","ChannelDown","ChannelUp","ContextMenu","Eject","End","Enter","Home","MediaFastForward","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaNextTrack","MediaPause","MediaPreviousTrack","Power","Unidentified"],So=new Set(Eo),L=e.reactive(new Map),No=(o,n)=>{if(n!=null&&n.size){L.set(o,n);return}L.delete(o),document.removeEventListener(o,Re)},Ee=(o,n)=>{const t=L.get(o);t==null||t.delete(n),No(o,t)},$o=(o,n)=>{const t=L.get(o)??new Set;t.add(n),L.set(o,t),document.addEventListener(o,Re)},Re=o=>{var t;const n=o.type;(t=L.get(n))==null||t.forEach(l=>l(o))},Mo=({type:o,listener:n,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Ee(o,n):$o(o,n))),e.onBeforeUnmount(()=>Ee(o,n))},Fe=({element:o,onOutsideClick:n,disabled:t})=>{Mo({type:"click",listener:({target:r})=>{var s;!((s=o.value)!=null&&s.contains(r))&&n()},disabled:t})},Ue=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},qe=(o,n=500)=>{let t="";const l=Ue(()=>t="",n);return r=>{ie(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Oo=A(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=i=>(t.has(i)||t.set(i,T("listbox-option")),t.get(i)),r=e.ref(!1);e.watchEffect(()=>{var p;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const i=l(o.activeOption.value);(p=document.getElementById(i))==null||p.scrollIntoView({block:"nearest",inline:"nearest"})});const a=qe(i=>{var p;return(p=o.onTypeAhead)==null?void 0:p.call(o,i)}),s=i=>{var p,u,d,m,h,_,V;switch(i.key){case" ":i.preventDefault(),o.activeOption.value!=null&&((p=o.onSelect)==null||p.call(o,o.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),o.activeOption.value==null){(u=o.onActivateLast)==null||u.call(o);return}(d=o.onActivatePrevious)==null||d.call(o,o.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),o.activeOption.value==null){(m=o.onActivateFirst)==null||m.call(o);return}(h=o.onActivateNext)==null||h.call(o,o.activeOption.value);break;case"Home":i.preventDefault(),(_=o.onActivateFirst)==null||_.call(o);break;case"End":i.preventDefault(),(V=o.onActivateLast)==null||V.call(o);break;default:a(i)}};return{elements:{listbox:e.computed(()=>o.controlled?{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"0","aria-activedescendant":o.activeOption.value!=null?l(o.activeOption.value):void 0,onFocus:()=>r.value=!0,onBlur:()=>r.value=!1,onKeydown:s}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const p=i.selected??!1;return{id:l(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":n.value?p:void 0,"aria-selected":n.value?void 0:p,onClick:()=>{var u;return!i.disabled&&((u=o.onSelect)==null?void 0:u.call(o,i.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ze=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ke=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],To=["Enter"," "],Io=["Enter"],Lo=(o,n)=>ce(o,n?Io:To),ce=(o,n)=>n.some(t=>Vo(o,t)),Do=A(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:c,activeOption:i,onToggle:p,onSelect:u,onActivateFirst:d,onActivateLast:m,onActivateNext:h,onActivatePrevious:_,templateRef:V})=>{const O=T("comboBox-control"),k=e.computed(()=>e.unref(n)),b=e.computed(()=>e.unref(c)),N=e.computed(()=>e.unref(r)),Y=y=>{const oe=y.target;k.value!=="none"&&(t==null||t(oe.value))},X=qe(y=>l==null?void 0:l(y)),H=y=>{u==null||u(y),e.unref(N)||p==null||p()},W=y=>{switch(y.key){case"ArrowUp":if(y.preventDefault(),i.value==null)return m==null?void 0:m();_==null||_(i.value);break;case"ArrowDown":if(y.preventDefault(),i.value==null)return d==null?void 0:d();h==null||h(i.value);break;case"Home":y.preventDefault(),d==null||d();break;case"End":y.preventDefault(),m==null||m();break}},J=y=>{if(y.key==="Enter"&&y.preventDefault(),!b.value&&ce(y,Ze))return p==null||p(),y.key===" "&&y.preventDefault(),y.key==="End"?m==null?void 0:m():d==null?void 0:d();if(Lo(y,N.value))return H(i.value);if(b.value&&ce(y,Ke))return p==null?void 0:p();if(k.value==="none"&&ie(y.key))return!b.value&&(p==null||p()),X(y);if(k.value!=="none"&&ie(y.key)){!b.value&&(p==null||p());return}return W(y)},P=k.value!=="none"?{"aria-autocomplete":k.value,type:"text"}:null,{elements:{option:R,group:Q,listbox:ee},internals:{getOptionId:te}}=Oo({label:s,multiple:N,controlled:!0,activeOption:i,onSelect:H});return Fe({element:V,onOutsideClick(){b.value&&(p==null||p(!0))}}),{elements:{option:R,group:Q,listbox:e.computed(()=>({...ee.value,id:O,onMousedown:y=>y.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":b.value,"aria-controls":O,"aria-label":e.unref(a),"aria-activedescendant":i.value!=null?te(i.value):void 0,onInput:Y,onKeydown:J,...P})),button:e.computed(()=>({tabindex:"-1",onClick:()=>p==null?void 0:p()}))}}}),Po=A(()=>{const o=T("menu"),n=T("menu-button"),t=e.ref(!1),l=Ue(c=>t.value=c,200),r=e.computed(()=>({onMouseover:()=>l(!0),onMouseout:()=>l(!1),onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1})),a=c=>{const i=document.activeElement,p=(i==null?void 0:i.closest('[role="menu"]'))||document.getElementById(o);if(!p)return;const u=[...p.querySelectorAll('[role="menuitem"]')];let d=0;if(i){const h=u.indexOf(i);switch(c){case"next":d=h+1;break;case"prev":d=h-1;break;case"first":d=0;break;case"last":d=u.length-1;break}}const m=u[d];m==null||m.focus()},s=c=>{switch(c.key){case"ArrowDown":case"ArrowRight":c.preventDefault(),a("next");break;case"ArrowUp":case"ArrowLeft":c.preventDefault(),a("prev");break;case"Home":c.preventDefault(),a("first");break;case"End":c.preventDefault(),a("last");break;case" ":c.preventDefault(),c.target.click();break}};return{state:{isExpanded:t},elements:{button:e.computed(()=>({"aria-controls":o,"aria-expanded":t.value,"aria-haspopup":!0,id:n,...r.value,onKeydown:s})),flyout:{...r.value},menu:{id:o,role:"menu","aria-labelledby":n,onKeydown:s},...Ge().elements}}}),Ge=A(()=>({elements:{listItem:{role:"none"},menuItem:o=>({"aria-current":o.active?"page":void 0,"aria-disabled":o.disabled,role:"menuitem"})}})),Ao=A(o=>{const n=e.ref(),t=T("tooltip"),l=e.ref(!1);let r;const a=e.computed(()=>{const m=e.unref(o.open);return typeof m!="object"?200:m.debounce}),s=e.computed(()=>{const m=e.unref(o.open);return typeof m!="object"?m:m.type}),c=e.computed({get:()=>l.value,set:m=>{clearTimeout(r),r=setTimeout(()=>{l.value=m},a.value)}}),i=e.computed(()=>typeof s.value=="boolean"?s.value:c.value),p=()=>{l.value=!l.value},u=e.computed(()=>{if(s.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1}}),d=m=>{m.key==="Escape"&&(l.value=!1)};return Fe({element:n,onOutsideClick:()=>l.value=!1,disabled:e.computed(()=>s.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",d)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",d)}),{elements:{root:{ref:n},trigger:e.computed(()=>({"aria-describedby":t,onClick:s.value==="click"?p:void 0,...u.value})),tooltip:e.computed(()=>({role:"tooltip",id:t,tabindex:"-1",...u.value}))},state:{isVisible:i}}}),he=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(o){const n=o,{elements:{root:t,trigger:l,tooltip:r},state:{isVisible:a}}=Ao({open:e.computed(()=>n.open)});return(s,c)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-tooltip-wrapper"},e.unref(t)),[e.createElementVNode("div",e.mergeProps(e.unref(r),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":n.color==="danger","onyx-tooltip--bottom":n.position==="bottom","onyx-tooltip--fit-parent":n.fitParent,"onyx-tooltip--hidden":!e.unref(a)}]}),[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(n.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(l))),[e.renderSlot(s.$slots,"default")],16)],16))}}),zo=["aria-label"],q=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=B();return(l,r)=>(e.openBlock(),e.createBlock(he,{class:"onyx-info-tooltip",text:n.text,position:n.position},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button","aria-label":n.label||e.unref(t)("showTooltip.info"),class:"onyx-info-tooltip__trigger"},[e.createVNode(x,{icon:e.unref(He)},null,8,["icon"])],8,zo)]),_:1},8,["text","position"]))}}),Ho={class:"onyx-form-element__header"},Ro={class:"onyx-truncation-ellipsis"},Fo={key:2,class:"onyx-form-element__optional"},Uo={key:0,class:"onyx-form-element__footer onyx-text--small"},qo={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},Zo={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Ko={key:4,class:"onyx-form-element__counter"},ye=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(o){const n=o,{t}=B(),{requiredMarkerClass:l,requiredTypeClass:r}=K(n),a=e.computed(()=>{var s;if(n.withCounter&&n.maxlength)return`${(((s=n.modelValue)==null?void 0:s.toString())||"").length}/${n.maxlength}`});return(s,c)=>{var i,p;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[e.createElementVNode("label",null,[n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-form-element__label onyx-text--small",[n.required?void 0:e.unref(l)]])},[e.createElementVNode("div",Ho,[e.createElementVNode("span",Ro,e.toDisplayString(n.label),1),n.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([n.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),n.labelTooltip?(e.openBlock(),e.createBlock(q,{key:1,class:"onyx-form-element__label-tooltip",text:n.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),n.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Fo,e.toDisplayString(e.unref(t)("optional")),1))])],2)),e.renderSlot(s.$slots,"default")]),n.message||(i=s.errorMessages)!=null&&i.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",Uo,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",qo,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(p=s.errorMessages)!=null&&p.longMessage?(e.openBlock(),e.createBlock(q,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("showTooltip.error"),text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("span",Zo,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0),n.messageTooltip?(e.openBlock(),e.createBlock(q,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",text:n.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Go={class:"onyx-input__wrapper"},jo=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Yo=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=D({props:t,emit:l}),{densityClass:s}=g(t),c=e.computed({get:()=>t.modelValue,set:u=>l("update:modelValue",u)}),i=u=>{const d=u.target.value;l("change",d)},p=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(s)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(w,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(ye,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",Go,[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=m=>c.value=m),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:p.value,readonly:t.readonly,disabled:t.disabled||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onChange:i,onFocus:d[1]||(d[1]=m=>l("focus")),onBlur:d[2]||(d[2]=m=>l("blur"))},null,40,jo),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Xo=["email","password","search","tel","text","url"],Wo=["none","sentences","words","characters"],ve=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),Jo=["href","target","rel"],Qo=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B();return(a,s)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:s[0]||(s[0]=c=>l("click"))},[e.renderSlot(a.$slots,"default"),t.target==="_blank"?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)],8,Jo))}}),en=["_self","_blank","_parent","_top"],j=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":n.active,[`onyx-list-item--${n.color}`]:n.color,"onyx-list-item--disabled":n.disabled,"onyx-list-item--selected":n.selected,"onyx-list-item--checked":n.checked})},[e.renderSlot(l.$slots,"default")],2))}}),tn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>',_e='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>',je=()=>{const o=e.useAttrs(),n=e.computed(()=>({class:o.class,style:o.style})),t=e.computed(()=>{const l={...o};return delete l.class,delete l.style,l});return{rootAttrs:n,restAttrs:t}},on=["aria-label"],nn=["aria-label"],Ye=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(o,{expose:n,emit:t}){const l=o,r=t,{rootAttrs:a,restAttrs:s}=je(),{densityClass:c}=g(l),{t:i}=B(),p=e.ref(),u=e.computed({get:()=>l.modelValue,set:d=>r("update:modelValue",d??"")});return n({focus:()=>{var d;return(d=p.value)==null?void 0:d.focus()}}),(d,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(c)]},e.unref(a)),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:p,"onUpdate:modelValue":m[0]||(m[0]=h=>u.value=h),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,on),[[e.vModelText,u.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(i)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(()=>{},["prevent"])),onClick:m[2]||(m[2]=h=>r("clear"))},[e.createVNode(x,{icon:e.unref(_e)},null,8,["icon"])],40,nn),e.createVNode(x,{class:"onyx-mini-search__icon",icon:e.unref(tn)},null,8,["icon"])],16))}}),ln='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>',an={class:"onyx-mobile-nav-button"},rn=["aria-label"],sn={class:"onyx-mobile-nav-button__flyout"},cn={class:"onyx-mobile-nav-button__menu"},ue=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1},headline:{}},emits:["update:open"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createElementBlock("div",an,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=s=>l("update:open",!t.open))},[e.createVNode(x,{icon:t.open?e.unref(ln):t.icon},null,8,["icon"])],10,rn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",sn,[e.createElementVNode("div",cn,[t.headline?(e.openBlock(),e.createBlock(I,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=s=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),un=["aria-label"],dn=["src","alt"],pn={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},Xe=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),a=e.computed(()=>t.label??r.value("navigation.goToHome"));return(s,c)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"onyx-nav-app-area","aria-label":a.value,onClick:c[0]||(c[0]=i=>l("click"))},[e.renderSlot(s.$slots,"default",{},()=>[t.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoUrl,alt:e.unref(r)("navigation.appLogo",{appName:t.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,dn)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",pn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,un))}}),mn=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <g clip-path="url(#clip0_4499_144781)">
3
3
  <mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
4
4
  <rect width="83" height="104" fill="#D9D9D9"/>
@@ -180,4 +180,4 @@
180
180
  </clipPath>
181
181
  </defs>
182
182
  </svg>
183
- `,yn={class:"onyx-color-scheme-dialog__subtitle onyx-text"},vn=["innerHTML"],_n=["autofocus","value","checked","aria-label"],kn={class:"onyx-text--small"},xn={class:"onyx-color-scheme-dialog__actions"},We=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(t.modelValue);e.watchEffect(()=>r.value=t.modelValue);const{t:a}=B(),s=e.computed(()=>[{value:"auto",image:mn,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:hn,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:fn,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),c=p=>{const u=p.target;r.value=u.value},i=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(p,u)=>(e.openBlock(),e.createBlock(Pe,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:u[1]||(u[1]=d=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(i,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(I,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",yn,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,d=>(e.openBlock(),e.createElementBlock("label",{key:d.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:d.image},null,8,vn),e.createElementVNode("div",null,[e.createVNode(ve,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===d.value,value:d.value,checked:t.modelValue===d.value,"aria-label":d.label,required:""},null,8,_n)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1024),e.createElementVNode("p",kn,e.toDisplayString(d.description),1)])]))),128))],32),e.createElementVNode("div",xn,[e.createVNode(Z,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:u[0]||(u[0]=d=>l("close"))},null,8,["label"]),e.createVNode(Z,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),gn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>',ke=e.defineComponent({__name:"OnyxMenuItem",props:{href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{elements:{listItem:r,menuItem:a}}=Ge();return(s,c)=>(e.openBlock(),e.createBlock(j,e.mergeProps({selected:t.active,active:t.active,color:t.color,disabled:t.disabled,class:"onyx-menu-item"},e.unref(r)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"button"),e.mergeProps({class:"onyx-menu-item__trigger",disabled:!t.href&&t.disabled,href:t.href},e.unref(a)({active:t.active,disabled:!t.href&&t.disabled}),{onClick:c[0]||(c[0]=i=>l("click"))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["disabled","href"]))]),_:3},16,["selected","active","color","disabled"]))}}),bn={class:"onyx-color-scheme-menu-item__value"},Bn=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),a=e.ref(!1);return(s,c)=>(e.openBlock(),e.createBlock(ke,{class:"onyx-color-scheme-menu-item",onClick:c[2]||(c[2]=i=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(gn)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",bn,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(We,{"model-value":t.modelValue,open:a.value,onClose:c[0]||(c[0]=i=>a.value=!1),"onUpdate:modelValue":c[1]||(c[1]=i=>l("update:modelValue",i))},null,8,["model-value","open"])]))]),_:1}))}}),Cn={class:"onyx-flyout-menu"},wn=["aria-label"],xe=e.defineComponent({__name:"OnyxFlyoutMenu",props:{label:{}},setup(o){const n=o,t=e.useSlots(),{elements:{button:l,flyout:r,menu:a},state:{isExpanded:s}}=Po(),c=e.computed(()=>{var p;if(!t.default)return;const i=t.default().at(0);return(i==null?void 0:i.type.toString())==="Symbol(v-fgt)"?Array.isArray(i==null?void 0:i.children)?(p=i==null?void 0:i.children)==null?void 0:p.at(0):void 0:i});return(i,p)=>(e.openBlock(),e.createElementBlock("div",Cn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.normalizeProps(e.guardReactiveProps(e.unref(l))),null,16)),t.options||t.header||t.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},e.unref(r),{"aria-label":n.label,class:{"onyx-flyout-menu__list--with-header":!!t.header,"onyx-flyout-menu__list--with-footer":!!t.footer,"onyx-flyout-menu__list":!0}}),[e.renderSlot(i.$slots,"header"),t.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(a),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(i.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"footer")],16,wn)),[[e.vShow,e.unref(s)]]):e.createCommentVNode("",!0)]))}}),Vn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>',z=Symbol(),En='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>',Sn=["aria-orientation"],Je=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(o){const n=o,t=e.inject(z);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":n.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":n.orientation},null,10,Sn))}}),Nn={role:"presentation"},$n=e.defineComponent({__name:"NavButtonLayout",props:e.mergeModels({href:{},withExternalIcon:{type:[Boolean,String]},label:{},active:{type:Boolean},isMobile:{type:Boolean}},{mobileChildrenOpen:{type:Boolean},mobileChildrenOpenModifiers:{}}),emits:["update:mobileChildrenOpen"],setup(o){const n=o,t=e.useSlots(),{t:l}=B(),r=e.useModel(o,"mobileChildrenOpen");return(a,s)=>(e.openBlock(),e.createElementBlock("li",Nn,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isMobile&&r.value?(e.openBlock(),e.createBlock(Z,{key:0,label:e.unref(l)("back"),mode:"plain",color:"neutral",icon:e.unref(En),onClick:s[0]||(s[0]=c=>r.value=!1)},null,8,["label","icon"])):e.createCommentVNode("",!0),!r.value||n.href?e.renderSlot(a.$slots,"button",{key:1}):e.createCommentVNode("",!0),r.value&&n.href?(e.openBlock(),e.createBlock(Je,{key:2,orientation:"horizontal"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{role:"menu",class:e.normalizeClass(["onyx-nav-button__mobile-children",{"onyx-nav-button__mobile-children--open":r.value}])},[e.renderSlot(a.$slots,"options")],2),[[e.vShow,r.value]])],64)):(e.openBlock(),e.createBlock(xe,{key:1,label:e.unref(l)("navItemOptionsLabel",{label:n.label})},e.createSlots({default:e.withCtx(()=>[e.renderSlot(a.$slots,"button")]),_:2},[t.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Mn=["aria-label"],On=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},label:{},active:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),a=e.inject(z),s=e.ref(!1),c=e.computed(()=>!!r.children),i=()=>{a!=null&&a.value&&c.value&&!s.value?s.value=!0:t.href&&l("click",t.href)};return(p,u)=>(e.openBlock(),e.createBlock($n,e.mergeProps({"mobile-children-open":s.value,"onUpdate:mobileChildrenOpen":u[0]||(u[0]=d=>s.value=d),class:["onyx-nav-button",{"onyx-nav-button--mobile":e.unref(a),"onyx-nav-button--active":t.active||s.value}],"is-mobile":e.unref(a)??!1},t),e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",{class:"onyx-nav-button__trigger onyx-text",role:"menuitem","aria-label":t.label,type:"button",onClick:i},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!s.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(Vn)},null,8,["icon"])):e.createCommentVNode("",!0)],8,Mn)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Tn=e.defineComponent({__name:"OnyxNavItem",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},label:{},active:{type:Boolean}},emits:["click"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createBlock(ke,{class:"onyx-nav-item",active:t.active,href:t.href??"javascript:void(0)",onClick:a[0]||(a[0]=s=>t.href&&l("click",t.href))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),In=o=>{const n=e.ref(),t=e.ref(le(new Date(o.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(o,r=>{clearInterval(n.value);const a=new Date(r).getTime();t.value=le(a),n.value=setInterval(()=>{t.value=le(a),l.value&&clearInterval(n.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(n.value)),{timeLeft:t,isEnded:l}},le=o=>{const n=o-Date.now();return Math.max(n,0)},Qe=o=>{const n=Math.floor(o/6e4/60),t=Math.floor(o/6e4%60),l=Math.floor(o%6e4/1e3);return{hours:n,minutes:t,seconds:l}},Ln=(o,n)=>{const{hours:t,minutes:l,seconds:r}=Qe(o),a=i=>i.toString().padStart(2,"0");let s="",c=ae(n.formatToParts(o,"seconds"));return l>0&&(c=ae(n.formatToParts(o,"minutes"))),t>0&&(c=ae(n.formatToParts(o,"hours")),s=`${a(t)}:`),`${s}${a(l)}:${a(r)} ${c}`},ae=o=>{var n;return((n=o.at(-1))==null?void 0:n.value.replace(".","").trim())??""},Dn=o=>{const{hours:n,minutes:t,seconds:l}=Qe(o);return`PT${n}H${t}M${l}S`},Pn=["aria-label"],An={key:0,class:"onyx-timer__label"},zn=["datetime"],Hn=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(o,{emit:n}){const t=o,l=n,{locale:r}=B(),{timeLeft:a,isEnded:s}=In(e.computed(()=>t.endTime)),c=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),i=e.computed(()=>Ln(a.value,c.value));return e.watchEffect(()=>s.value&&l("timerEnded")),(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",An,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Dn)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(i.value),9,zn)],8,Pn))}}),Rn={class:"onyx-user-menu__footer onyx-text--small"},Fn=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),{t:l}=B();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(r.$slots,"header"),e.renderSlot(r.$slots,"options"),e.createVNode(j,{class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"footer")]),_:3})],64)):(e.openBlock(),e.createBlock(xe,{key:1,class:"onyx-user-menu__flyout",label:e.unref(l)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(r.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(r.$slots,"options")]),default:e.withCtx(()=>[e.renderSlot(r.$slots,"button")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Rn,[e.renderSlot(r.$slots,"footer")])]),key:"0"}:void 0]),1032,["label"]))]))}}),Un={class:"onyx-user-menu__trigger onyx-text",type:"button"},qn={class:"onyx-truncation-ellipsis"},Zn={class:"onyx-user-menu__header"},Kn={class:"onyx-truncation-ellipsis"},Gn={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},jn={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},Yn={class:"onyx-user-menu__options"},Xn=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>({src:n.avatar,label:n.username})),r=e.inject(z,e.computed(()=>!1));return(a,s)=>(e.openBlock(),e.createBlock(Fn,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(r)}]),"is-mobile":e.unref(r)??!1},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",Un,[e.createVNode(re,e.mergeProps(l.value,{size:"24px"}),null,16),e.createElementVNode("span",qn,e.toDisplayString(n.username),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Zn,[e.createVNode(re,e.normalizeProps(e.guardReactiveProps(l.value)),null,16),e.createElementVNode("div",Kn,[e.createElementVNode("div",Gn,e.toDisplayString(n.username),1),n.description?(e.openBlock(),e.createElementBlock("div",jn,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.createElementVNode("div",Yn,[e.renderSlot(a.$slots,"default")])]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile"]))}}),Wn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>',Jn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>',Qn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>',el=(o,n)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=s=>{const c=s[0].contentBoxSize;l.value=c.reduce((i,{inlineSize:p})=>i+p,0),r.value=c.reduce((i,{blockSize:p})=>i+p,0)};return e.onBeforeMount(()=>{const s=new ResizeObserver(a);e.watch(o,(c,i)=>{i&&(s==null||s.unobserve(i)),c&&(s==null||s.observe(c,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>s.disconnect())}),{width:l,height:r}},et={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},tl=["primary","secondary","neutral","danger","warning","success","info"],ol=["small","default","large"],nl=["ellipsis","multiline"],ll=["horizontal","vertical"],al={class:"onyx-nav-bar__content"},rl={key:0,class:"onyx-nav-bar__mobile-page"},sl={class:"onyx-nav-bar__nav--mobile"},il={role:"menubar"},cl={key:1,class:"onyx-nav-bar__nav"},ul={role:"menubar"},dl={key:0,class:"onyx-nav-bar__mobile-context"},pl={key:0,class:"onyx-nav-bar__mobile-global-context"},ml={class:"onyx-nav-bar__mobile-context-content"},fl={key:1,class:"onyx-nav-bar__context"},hl=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["appAreaClick","backButtonClick"],setup(o,{expose:n,emit:t}){const l=o,r=t,a=e.useSlots(),s=e.ref(),{width:c}=el(s),{t:i}=B(),p=e.ref(!1),u=e.ref(!1),d=e.computed(()=>{const m=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:et[l.mobileBreakpoint];return c.value!==0&&c.value<m});return e.provide(z,d),n({closeMobileMenus:()=>{p.value=!1,u.value=!1}}),(m,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:s,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":d.value}])},[e.createElementVNode("div",al,[d.value&&!p.value&&a.mobileActivePage?(e.openBlock(),e.createElementBlock("span",rl,[e.renderSlot(m.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(Xe,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:h[0]||(h[0]=_=>{r("appAreaClick"),p.value=!1})},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),l.withBackButton?(e.openBlock(),e.createBlock(ze,{key:2,class:"onyx-nav-bar__back",label:e.unref(i)("navigation.goBack"),icon:e.unref(Wn),color:"neutral",onClick:h[1]||(h[1]=_=>r("backButtonClick"))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[d.value?(e.openBlock(),e.createBlock(ue,{key:0,open:p.value,"onUpdate:open":[h[2]||(h[2]=_=>p.value=_),h[3]||(h[3]=_=>u.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(Jn),label:e.unref(i)("navigation.toggleBurgerMenu"),headline:e.unref(i)("navigation.navigationHeadline")},{default:e.withCtx(()=>[e.createElementVNode("nav",sl,[e.createElementVNode("ul",il,[e.renderSlot(m.$slots,"default")])])]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",cl,[e.createElementVNode("ul",ul,[e.renderSlot(m.$slots,"default")])]))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[d.value?(e.openBlock(),e.createElementBlock("div",dl,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",pl,[e.renderSlot(m.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(ue,{key:1,open:u.value,"onUpdate:open":[h[4]||(h[4]=_=>u.value=_),h[5]||(h[5]=_=>p.value=!1)],icon:e.unref(Qn),label:e.unref(i)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",ml,[e.renderSlot(m.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",fl,[a.globalContextArea?e.renderSlot(m.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(m.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),yl={key:0,class:"onyx-page__sidebar"},vl={class:"onyx-page__main"},_l={key:1,class:"onyx-page__footer"},kl=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>n.footerAsideSidebar?"onyx-page--footer-partial":"onyx-page--footer-full");return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!n.hideSidebar?(e.openBlock(),e.createElementBlock("aside",yl,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",vl,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",_l,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),xl=["title"],gl=["required","name","value","checked","disabled","autofocus"],de=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean},truncation:{default:"ellipsis"},customError:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r}=D({props:t,emit:l}),{densityClass:a}=g(t),s=c=>{const i=c.target.checked;l("change",i)};return(c,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(a)])},[e.createVNode(w,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(w,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(a)]),title:e.unref(Le)(t.customError)},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:t.disabled,autofocus:t.autofocus,onChange:s},null,40,gl)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,xl))}}),bl=["disabled"],Bl={key:0,class:"onyx-radio-button-group__headline"},Cl=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},truncation:{default:"ellipsis"},options:{},name:{default:()=>T("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),{requiredMarkerClass:r,requiredTypeClass:a}=K(t),s=n,c=(i,p)=>{i&&s("update:modelValue",p)};return(i,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(l),e.unref(a)]),disabled:t.disabled,role:"radiogroup"},[t.headline?(e.openBlock(),e.createElementBlock("legend",Bl,[e.createVNode(I,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(u,d)=>(e.openBlock(),e.createBlock(de,e.mergeProps({key:u.value.toString(),ref_for:!0},u,{name:t.name,"custom-error":t.customError,checked:u.value===t.modelValue,required:t.required,truncation:u.truncation??t.truncation,onValidityChange:m=>d===0&&s("validityChange",m),onChange:m=>c(m,u.value)}),null,16,["name","custom-error","checked","required","truncation","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,u=>(e.openBlock(),e.createBlock(de,{id:`skeleton-${u}`,key:u,value:`skeleton-${u}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,bl))}}),tt=o=>{const t=e.ref(!1),l=a=>{const s=a.target;if(!(s instanceof Element))return;const c=e.unref(o.offset)??0;t.value=Math.abs(s.scrollTop)+s.clientHeight>=s.scrollHeight-c-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var c;(((c=o.enabled)==null?void 0:c.value)??!0)&&!o.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Se=(o,n,t)=>{const l=e.computed(()=>o.value===void 0),r=e.ref(l.value?n:o.value);return e.computed({set:a=>{r.value=a,t(a)},get:()=>l.value?r.value:o.value})},wl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>',Vl={class:"onyx-select-input__wrapper"},El=["readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],Sl=["aria-label","disabled"],ot=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},modelValue:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["click","validityChange"],setup(o,{expose:n,emit:t}){const{rootAttrs:l,restAttrs:r}=je(),a=o,s=t,{t:c}=B(),{vCustomValidity:i,errorMessages:p}=D({props:a,emit:s}),u=e.computed(()=>a.modelValue?a.modelValue.length:0),d=e.computed(()=>{var b;const k=(b=a.modelValue)==null?void 0:b.length;if(!a.modelValue||!k)return"";if(k===1)return a.modelValue[0].label;switch(a.textMode){case"preview":return a.modelValue.map(({label:N})=>N).join(", ");case"summary":default:return c.value("selections.currentSelection",{n:k})}}),m=e.ref(!1),{densityClass:h}=g(a),_=e.ref();n({focus:()=>{var k;return(k=_.value)==null?void 0:k.focus()}}),e.watch(()=>a.showFocus,(k,b)=>{m.value||b&&k===!1&&(m.value=!0)});const V=Ze.concat(Ke),O=k=>{V.includes(k.key)||k.preventDefault()};return(k,b)=>a.skeleton?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(h)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(w,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(h),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(ye,e.mergeProps(a,{"error-messages":e.unref(p)}),{default:e.withCtx(()=>[e.createElementVNode("div",Vl,[a.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:_,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--force-invalid":e.unref(p)&&m.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:a.disabled||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:d.value,autofocus:a.autofocus,onClick:b[0]||(b[0]=N=>s("click")),onKeydown:O}),null,16,El),[[e.unref(i)]]),a.textMode==="preview"&&u.value>0?(e.openBlock(),e.createBlock(he,{key:1,text:d.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode($e,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(c)("select.toggleDropDown"),tabindex:"-1",disabled:a.readonly||a.disabled||a.loading,onClick:b[1]||(b[1]=N=>s("click"))},[e.createVNode(x,{icon:e.unref(wl)},null,8,["icon"])],8,Sl)])]),_:1},16,["error-messages"])],16))}}),Nl=["checked","aria-labelledby","disabled","indeterminate"],pe=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{},truncation:{default:"ellipsis"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(j,e.mergeProps({class:"onyx-select-option"},n,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[n.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:n.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-select-option__checkbox",type:"checkbox"},null,8,Nl)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:n.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([`onyx-truncation-${n.truncation}`])},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["checked","selected","disabled"]))}}),$l=["inert","aria-busy"],Ml={class:"onyx-select__wrapper",tabindex:"-1"},Ol={key:0,role:"group",class:"onyx-select__group"},Tl={role:"option","aria-selected":"false"},Il={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},Ll={key:1,class:"onyx-select__slot"},Dl={key:2,class:"onyx-select__slot"},Pl=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:void 0},required:{type:Boolean},requiredMarker:{},customError:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean},readonly:{type:Boolean},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean},truncation:{default:"ellipsis"},open:{type:Boolean,default:void 0},listLabel:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","update:open","lazyLoad","validityChange"],setup(o,{emit:n}){const t=o,l=n,{densityClass:r}=g(t),a=e.useSlots(),{t:s}=B(),c=Se(e.toRef(()=>t.searchTerm),"",f=>l("update:searchTerm",f)),i=Se(e.toRef(()=>t.open),!1,f=>l("update:open",f)),p=e.ref(),u=e.ref(),d=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),m=e.ref(),h=e.ref();e.watch(d,()=>{var f;t.multiple||(u.value=(f=d.value.at(0))==null?void 0:f.value)},{immediate:!0});const _=T("ONYX_CHECK_ALL"),V=e.computed(()=>(t.multiple&&t.withCheckAll&&!c.value?[_]:[]).concat(be.value)),O=async f=>{var v,C;if(t.readonly){i.value=!1;return}i.value=!i.value,i.value?(await e.nextTick(),(C=m.value)==null||C.focus()):(c.value&&(c.value=""),f||(v=h.value)==null||v.focus())},k=()=>u.value=V.value.at(0),b=()=>u.value=V.value.at(-1),N=f=>{const v=V.value.findIndex(C=>C===f);v<V.value.length-1&&(u.value=V.value[v+1])},Y=f=>{const v=V.value.findIndex(C=>C===f);v>0&&(u.value=V.value[v-1])},X=f=>{const v=t.options.find(C=>C.label.toLowerCase().trim().startsWith(f.toLowerCase()));v&&(u.value=v.value)},H=f=>c.value=f,W=f=>{var $;if(f===_){($=F.value)==null||$.handleChange(!F.value.state.value.modelValue);return}const v=t.options.find(({value:E})=>E===f);if(!v)return;if(!t.multiple)return l("update:modelValue",v);d.value.some(({value:E})=>E===f)?l("update:modelValue",d.value.filter(({value:E})=>E!==f)):l("update:modelValue",[...d.value,v])},J=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:P,option:R,group:Q,listbox:ee}}=Do({autocomplete:J,label:t.label,listLabel:t.listLabel,inputValue:e.computed(()=>t.withSearch&&c.value||""),activeOption:e.computed(()=>u.value),multiple:e.computed(()=>t.multiple),isExpanded:i,templateRef:p,onToggle:O,onActivateFirst:k,onActivateLast:b,onActivateNext:N,onActivatePrevious:Y,onTypeAhead:X,onAutocomplete:H,onSelect:W}),te=e.computed(()=>lo(t.options,"group")),{vScrollEnd:y,isScrollEnd:oe}=tt({enabled:e.computed(()=>{var f;return((f=t.lazyLoading)==null?void 0:f.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var f;return(f=t.lazyLoading)==null?void 0:f.scrollOffset})}),ne=e.computed(()=>{if(!t.options.length)return t.withSearch&&c.value?s.value("select.noMatch"):s.value("select.empty")}),be=e.computed(()=>t.options.filter(f=>!f.disabled).map(({value:f})=>f)),F=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return De(be,e.computed(()=>d.value.map(({value:f})=>f)),f=>{const v=f.map(C=>t.options.find(({value:$})=>$===C)).filter(C=>C!=null);l("update:modelValue",v)})}),Be=e.computed(()=>{var v;if(!t.multiple)return"";const f=s.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?f:((v=t.withCheckAll)==null?void 0:v.label)??f});e.watchEffect(()=>{oe.value&&l("lazyLoad")});const st=e.computed(()=>{const f={...t,modelValue:d.value};return t.withSearch?{...f,onKeydown:P.value.onKeydown}:{...f,...P.value}});return(f,v)=>{var C;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:p,class:"onyx-select-wrapper"},[e.createVNode(ot,e.mergeProps({ref_key:"selectInput",ref:h},st.value,{"show-focus":e.unref(i),autofocus:t.autofocus,onClick:O,onValidityChange:v[0]||(v[0]=$=>l("validityChange",$))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(i)?"onyx-select--open":""]),inert:!e.unref(i),"aria-busy":t.loading},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ml,[t.withSearch?(e.openBlock(),e.createBlock(Ye,e.mergeProps({key:0,ref_key:"miniSearch",ref:m},e.unref(P),{label:e.unref(s)("select.searchInputLabel"),class:"onyx-select__search",onClear:v[1]||(v[1]=$=>c.value="")}),null,16,["label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(ee))),[ne.value?(e.openBlock(),e.createElementBlock("ul",Ol,[e.createElementVNode("li",Tl,[e.renderSlot(f.$slots,"empty",{defaultMessage:ne.value},()=>[e.createVNode(fe,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne.value),1)]),_:1})])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(te.value,($,E)=>{var Ce,we;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:E,class:"onyx-select__group",ref_for:!0},e.unref(Q)({label:E})),[E!=""?(e.openBlock(),e.createElementBlock("li",Il,e.toDisplayString(E),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll&&!e.unref(c)?(e.openBlock(),e.createBlock(pe,e.mergeProps({key:1,ref_for:!0},e.unref(R)({value:e.unref(_),label:Be.value,selected:(Ce=F.value)==null?void 0:Ce.state.value.modelValue}),{multiple:"",active:e.unref(_)===u.value,indeterminate:(we=F.value)==null?void 0:we.state.value.indeterminate,density:t.density,class:"onyx-select__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Be.value),1)]),_:1},16,["active","indeterminate","density"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($,S=>(e.openBlock(),e.createBlock(pe,e.mergeProps({key:S.value.toString(),ref_for:!0},e.unref(R)({value:S.value,label:S.label,disabled:S.disabled,selected:d.value.some(({value:it})=>it===S.value)}),{multiple:t.multiple,active:S.value===u.value,icon:S.icon,density:t.density,truncation:S.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"option",e.mergeProps({ref_for:!0},S),()=>[e.createTextVNode(e.toDisplayString(S.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16)}),128))],16),(C=t.lazyLoading)!=null&&C.loading?(e.openBlock(),e.createElementBlock("div",Ll,[e.createVNode(M,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),a.optionsEnd?(e.openBlock(),e.createElementBlock("div",Dl,[e.renderSlot(f.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(y)]])],10,$l)],512)}}}),Al=["summary","preview"],zl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>',Hl={class:"onyx-switch-skeleton__click-area"},Rl=["title"],Fl=["aria-label","disabled","required","autofocus"],Ul={class:"onyx-switch__click-area"},ql={class:"onyx-switch__container"},Zl={class:"onyx-switch__icon"},Kl=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),Gl=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,{requiredMarkerClass:r,requiredTypeClass:a}=K(t),{densityClass:s}=g(t),{vCustomValidity:c}=D({props:t,emit:l}),i=e.computed({get:()=>t.modelValue,set:p=>{l("update:modelValue",p)}});return(p,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",Hl,[e.createVNode(w,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(s)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),type:"checkbox",role:"switch",class:e.normalizeClass({"onyx-switch__input":!0,"onyx-switch__loading":t.loading}),"aria-label":t.hideLabel?t.label:void 0,disabled:t.disabled||t.loading,required:t.required,autofocus:t.autofocus},null,10,Fl),[[e.vModelCheckbox,i.value],[e.unref(c)]]),e.createElementVNode("span",Ul,[e.createElementVNode("span",ql,[e.createElementVNode("span",Zl,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(x),{key:1,icon:i.value?e.unref(zl):e.unref(_e)},null,8,["icon"]))]),Kl])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,Rl))}}),jl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>',Yl={class:"onyx-table-wrapper"},Xl=["tabindex"],Wl={key:0,class:"onyx-table__header"},Jl={class:"onyx-table__empty"},Ql={colspan:"100%"},ea={class:"onyx-table__empty-content"},ta=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1},withPageScrolling:{type:Boolean,default:!1}},setup(o){const n=o,t=e.useSlots(),{t:l}=B(),{densityClass:r}=g(n),a=e.computed(()=>l.value("table.empty"));return(s,c)=>(e.openBlock(),e.createElementBlock("div",Yl,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!n.withPageScrolling}),tabindex:n.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[n.striped?"onyx-table--striped":"",n.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[t.head?(e.openBlock(),e.createElementBlock("thead",Wl,[e.renderSlot(s.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("tr",Jl,[e.createElementVNode("td",Ql,[e.createElementVNode("div",ea,[e.renderSlot(s.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(fe,null,{icon:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(jl),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,Xl)]))}}),oa={class:"onyx-text onyx-truncation-ellipsis"},na=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${n.color}`,e.unref(t)])},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",oa,e.toDisplayString(n.label),1)],2))}}),la=["data-autosize-value"],aa=["placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],ra=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:Boolean,default:!1},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=D({props:t,emit:l}),{densityClass:s}=g(t),c=e.computed({get:()=>t.modelValue,set:d=>l("update:modelValue",d)}),i=d=>{const m=d.target.value;l("change",m)},p=e.computed(()=>{if(!t.autosize)return;const d=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[d?`--min-autosize-rows: ${d}`:"",`--max-autosize-rows: ${m??"unset"}`]}),u=d=>{var h;const m=d.target;(h=m.parentElement)==null||h.setAttribute("data-autosize-value",m.value)};return(d,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(p.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(w,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(p.value)},[e.createVNode(ye,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":c.value},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":m[0]||(m[0]=h=>c.value=h),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:t.disabled,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:u,onChange:i,onFocus:m[1]||(m[1]=h=>l("focus")),onBlur:m[2]||(m[2]=h=>l("blur"))},null,42,aa),[[e.vModelText,c.value],[e.unref(r)]])],8,la)]),_:1},16,["error-messages"])],6))}}),sa='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>',ia='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>',ca={class:"onyx-toast-message__wrapper"},ua={class:"onyx-toast-message__content onyx-truncation-ellipsis"},da={class:"onyx-toast-message__headline onyx-text"},pa={class:"onyx-truncation-ellipsis"},ma=["aria-label"],fa={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},nt=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["click","close"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),{densityClass:a}=g(t),s=e.computed(()=>t.duration>0),c={neutral:He,danger:Ae,warning:sa,success:ia},i=e.computed(()=>{if(t.icon!==!1)return t.icon||c[t.color]});return(p,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.clickable?"button":"div"),{class:e.normalizeClass(["onyx-toast-message",[`onyx-toast-message--${t.color}`,e.unref(a)]]),role:t.color==="danger"||t.color==="warning"?"alert":"status","aria-label":t.clickable?t.headline:void 0,onClick:u[2]||(u[2]=d=>t.clickable&&l("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",ca,[i.value?(e.openBlock(),e.createBlock(x,{key:0,icon:i.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",ua,[e.createElementVNode("div",da,[e.createElementVNode("span",pa,e.toDisplayString(t.headline),1),t.clickable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":e.unref(r)("close"),class:"onyx-toast-message__close",onClick:u[0]||(u[0]=d=>l("close"))},[e.createVNode(x,{icon:e.unref(_e)},null,8,["icon"])],8,ma))]),t.description?(e.openBlock(),e.createElementBlock("p",fa,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),s.value?(e.openBlock(),e.createElementBlock("time",{key:t.duration,"aria-hidden":"true",class:"onyx-toast-message__progress-bar",style:e.normalizeStyle({animationDuration:`${t.duration}ms`}),onAnimationend:u[1]||(u[1]=d=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),ge=Symbol(),lt=()=>{let o=1;const n=e.ref([]),t=r=>{const a=o++;n.value.unshift({...r,id:a,onClose:()=>l(a)})},l=r=>{n.value=n.value.filter(a=>a.id!==r)};return{toasts:e.computed(()=>n.value),show:t,remove:l}},at=()=>{const o=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(ge,()=>({toasts:e.computed(()=>[]),show:o,remove:o}),!0)},ha={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},ya=e.defineComponent({__name:"OnyxToast",setup(o){const n=at();return(t,l)=>e.unref(n).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",ha,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(nt,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),va=["top","bottom"],_a=(o={})=>({install:n=>{Te(n,o.i18n);const t=n.runWithContext(()=>B());e.watchEffect(()=>rt(t.t.value("optional"))),n.provide(ge,lt())}}),rt=o=>{globalThis.document.body.style.setProperty("--onyx-global-optional-text",o)},ka=(o,n)=>{const t=Ne(o.toLowerCase()),l=Ne(n.toLowerCase());return t.includes(l)},Ne=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"");exports.AUTOCAPITALIZE=Wo;exports.BUTTON_COLORS=zt;exports.BUTTON_MODES=Ht;exports.BUTTON_TYPES=At;exports.DENSITIES=kt;exports.DIRECTIONS=ll;exports.HEADLINE_TYPES=go;exports.ICON_SIZES=bo;exports.INPUT_TYPES=Xo;exports.LINK_TARGETS=en;exports.MOBILE_NAV_BAR_INJECTION_KEY=z;exports.MULTISELECT_TEXT_MODE=Al;exports.ONYX_BREAKPOINTS=et;exports.ONYX_COLORS=tl;exports.OnyxAppLayout=mt;exports.OnyxAvatar=re;exports.OnyxAvatarStack=_t;exports.OnyxBadge=$e;exports.OnyxButton=Z;exports.OnyxCheckbox=U;exports.OnyxCheckboxGroup=ho;exports.OnyxColorSchemeDialog=We;exports.OnyxColorSchemeMenuItem=Bn;exports.OnyxDialog=Pe;exports.OnyxEmpty=fe;exports.OnyxExternalLinkIcon=G;exports.OnyxFlyoutMenu=xe;exports.OnyxHeadline=I;exports.OnyxIcon=x;exports.OnyxIconButton=ze;exports.OnyxInfoTooltip=q;exports.OnyxInput=Yo;exports.OnyxLink=Qo;exports.OnyxListItem=j;exports.OnyxLoadingIndicator=M;exports.OnyxMenuItem=ke;exports.OnyxMiniSearch=Ye;exports.OnyxMobileNavButton=ue;exports.OnyxNavAppArea=Xe;exports.OnyxNavBar=hl;exports.OnyxNavButton=On;exports.OnyxNavItem=Tn;exports.OnyxNavSeparator=Je;exports.OnyxPageLayout=kl;exports.OnyxRadioButton=de;exports.OnyxRadioGroup=Cl;exports.OnyxSelect=Pl;exports.OnyxSelectInput=ot;exports.OnyxSelectOption=pe;exports.OnyxSkeleton=w;exports.OnyxSwitch=Gl;exports.OnyxTable=ta;exports.OnyxTag=na;exports.OnyxTextarea=ra;exports.OnyxTimer=Hn;exports.OnyxToast=ya;exports.OnyxToastMessage=nt;exports.OnyxTooltip=he;exports.OnyxUserMenu=Xn;exports.OnyxVisuallyHidden=ve;exports.TEXT_SIZES=ol;exports.TOAST_PROVIDER_INJECTION_KEY=ge;exports.TOOLTIP_POSITIONS=va;exports.TRUNCATION_TYPES=nl;exports.createOnyx=_a;exports.createToastProvider=lt;exports.normalizedIncludes=ka;exports.provideI18n=Te;exports.syncGlobalOptionalText=rt;exports.useDensity=g;exports.useScrollEnd=tt;exports.useToast=at;
183
+ `,yn={class:"onyx-color-scheme-dialog__subtitle onyx-text"},vn=["innerHTML"],_n=["autofocus","value","checked","aria-label"],kn={class:"onyx-text--small"},xn={class:"onyx-color-scheme-dialog__actions"},We=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(t.modelValue);e.watchEffect(()=>r.value=t.modelValue);const{t:a}=B(),s=e.computed(()=>[{value:"auto",image:mn,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:hn,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:fn,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),c=p=>{const u=p.target;r.value=u.value},i=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(p,u)=>(e.openBlock(),e.createBlock(Pe,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:u[1]||(u[1]=d=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(i,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(I,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",yn,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,d=>(e.openBlock(),e.createElementBlock("label",{key:d.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:d.image},null,8,vn),e.createElementVNode("div",null,[e.createVNode(ve,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===d.value,value:d.value,checked:t.modelValue===d.value,"aria-label":d.label,required:""},null,8,_n)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1024),e.createElementVNode("p",kn,e.toDisplayString(d.description),1)])]))),128))],32),e.createElementVNode("div",xn,[e.createVNode(Z,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:u[0]||(u[0]=d=>l("close"))},null,8,["label"]),e.createVNode(Z,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),gn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>',ke=e.defineComponent({__name:"OnyxMenuItem",props:{href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{elements:{listItem:r,menuItem:a}}=Ge();return(s,c)=>(e.openBlock(),e.createBlock(j,e.mergeProps({selected:t.active,active:t.active,color:t.color,disabled:t.disabled,class:"onyx-menu-item"},e.unref(r)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"button"),e.mergeProps({class:"onyx-menu-item__trigger",disabled:!t.href&&t.disabled,href:t.href},e.unref(a)({active:t.active,disabled:!t.href&&t.disabled}),{onClick:c[0]||(c[0]=i=>l("click"))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["disabled","href"]))]),_:3},16,["selected","active","color","disabled"]))}}),bn={class:"onyx-color-scheme-menu-item__value"},Bn=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),a=e.ref(!1);return(s,c)=>(e.openBlock(),e.createBlock(ke,{class:"onyx-color-scheme-menu-item",onClick:c[2]||(c[2]=i=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(gn)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",bn,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(We,{"model-value":t.modelValue,open:a.value,onClose:c[0]||(c[0]=i=>a.value=!1),"onUpdate:modelValue":c[1]||(c[1]=i=>l("update:modelValue",i))},null,8,["model-value","open"])]))]),_:1}))}}),Cn={class:"onyx-flyout-menu"},wn=["aria-label"],xe=e.defineComponent({__name:"OnyxFlyoutMenu",props:{label:{}},setup(o){const n=o,t=e.useSlots(),{elements:{button:l,flyout:r,menu:a},state:{isExpanded:s}}=Po(),c=e.computed(()=>{var p;if(!t.default)return;const i=t.default().at(0);return(i==null?void 0:i.type.toString())==="Symbol(v-fgt)"?Array.isArray(i==null?void 0:i.children)?(p=i==null?void 0:i.children)==null?void 0:p.at(0):void 0:i});return(i,p)=>(e.openBlock(),e.createElementBlock("div",Cn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.normalizeProps(e.guardReactiveProps(e.unref(l))),null,16)),t.options||t.header||t.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},e.unref(r),{"aria-label":n.label,class:{"onyx-flyout-menu__list--with-header":!!t.header,"onyx-flyout-menu__list--with-footer":!!t.footer,"onyx-flyout-menu__list":!0}}),[e.renderSlot(i.$slots,"header"),t.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(a),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(i.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"footer")],16,wn)),[[e.vShow,e.unref(s)]]):e.createCommentVNode("",!0)]))}}),Vn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>',z=Symbol(),En='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>',Sn=["aria-orientation"],Je=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(o){const n=o,t=e.inject(z);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":n.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":n.orientation},null,10,Sn))}}),Nn={role:"presentation"},$n=e.defineComponent({__name:"NavButtonLayout",props:e.mergeModels({href:{},withExternalIcon:{type:[Boolean,String]},label:{},active:{type:Boolean},isMobile:{type:Boolean}},{mobileChildrenOpen:{type:Boolean},mobileChildrenOpenModifiers:{}}),emits:["update:mobileChildrenOpen"],setup(o){const n=o,t=e.useSlots(),{t:l}=B(),r=e.useModel(o,"mobileChildrenOpen");return(a,s)=>(e.openBlock(),e.createElementBlock("li",Nn,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isMobile&&r.value?(e.openBlock(),e.createBlock(Z,{key:0,label:e.unref(l)("back"),mode:"plain",color:"neutral",icon:e.unref(En),onClick:s[0]||(s[0]=c=>r.value=!1)},null,8,["label","icon"])):e.createCommentVNode("",!0),!r.value||n.href?e.renderSlot(a.$slots,"button",{key:1}):e.createCommentVNode("",!0),r.value&&n.href?(e.openBlock(),e.createBlock(Je,{key:2,orientation:"horizontal"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{role:"menu",class:e.normalizeClass(["onyx-nav-button__mobile-children",{"onyx-nav-button__mobile-children--open":r.value}])},[e.renderSlot(a.$slots,"options")],2),[[e.vShow,r.value]])],64)):(e.openBlock(),e.createBlock(xe,{key:1,label:e.unref(l)("navItemOptionsLabel",{label:n.label})},e.createSlots({default:e.withCtx(()=>[e.renderSlot(a.$slots,"button")]),_:2},[t.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Mn=["aria-label"],On={class:"onyx-truncation-ellipsis"},Tn=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},label:{},active:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),a=e.inject(z),s=e.ref(!1),c=e.computed(()=>!!r.children),i=()=>{a!=null&&a.value&&c.value&&!s.value?s.value=!0:t.href&&l("click",t.href)};return(p,u)=>(e.openBlock(),e.createBlock($n,e.mergeProps({"mobile-children-open":s.value,"onUpdate:mobileChildrenOpen":u[0]||(u[0]=d=>s.value=d),class:["onyx-nav-button",{"onyx-nav-button--mobile":e.unref(a),"onyx-nav-button--active":t.active||s.value}],"is-mobile":e.unref(a)??!1},t),e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",{class:"onyx-nav-button__trigger onyx-text",role:"menuitem","aria-label":t.label,type:"button",onClick:i},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",On,e.toDisplayString(t.label),1),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!s.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(Vn)},null,8,["icon"])):e.createCommentVNode("",!0)],8,Mn)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),In=e.defineComponent({__name:"OnyxNavItem",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},label:{},active:{type:Boolean}},emits:["click"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createBlock(ke,{class:"onyx-nav-item",active:t.active,href:t.href??"javascript:void(0)",onClick:a[0]||(a[0]=s=>t.href&&l("click",t.href))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),e.createVNode(G,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),Ln=o=>{const n=e.ref(),t=e.ref(le(new Date(o.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(o,r=>{clearInterval(n.value);const a=new Date(r).getTime();t.value=le(a),n.value=setInterval(()=>{t.value=le(a),l.value&&clearInterval(n.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(n.value)),{timeLeft:t,isEnded:l}},le=o=>{const n=o-Date.now();return Math.max(n,0)},Qe=o=>{const n=Math.floor(o/6e4/60),t=Math.floor(o/6e4%60),l=Math.floor(o%6e4/1e3);return{hours:n,minutes:t,seconds:l}},Dn=(o,n)=>{const{hours:t,minutes:l,seconds:r}=Qe(o),a=i=>i.toString().padStart(2,"0");let s="",c=ae(n.formatToParts(o,"seconds"));return l>0&&(c=ae(n.formatToParts(o,"minutes"))),t>0&&(c=ae(n.formatToParts(o,"hours")),s=`${a(t)}:`),`${s}${a(l)}:${a(r)} ${c}`},ae=o=>{var n;return((n=o.at(-1))==null?void 0:n.value.replace(".","").trim())??""},Pn=o=>{const{hours:n,minutes:t,seconds:l}=Qe(o);return`PT${n}H${t}M${l}S`},An=["aria-label"],zn={key:0,class:"onyx-timer__label"},Hn=["datetime"],Rn=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(o,{emit:n}){const t=o,l=n,{locale:r}=B(),{timeLeft:a,isEnded:s}=Ln(e.computed(()=>t.endTime)),c=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),i=e.computed(()=>Dn(a.value,c.value));return e.watchEffect(()=>s.value&&l("timerEnded")),(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",zn,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Pn)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(i.value),9,Hn)],8,An))}}),Fn={class:"onyx-user-menu__footer onyx-text--small"},Un=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),{t:l}=B();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(r.$slots,"header"),e.renderSlot(r.$slots,"options"),e.createVNode(j,{class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"footer")]),_:3})],64)):(e.openBlock(),e.createBlock(xe,{key:1,class:"onyx-user-menu__flyout",label:e.unref(l)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(r.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(r.$slots,"options")]),default:e.withCtx(()=>[e.renderSlot(r.$slots,"button")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Fn,[e.renderSlot(r.$slots,"footer")])]),key:"0"}:void 0]),1032,["label"]))]))}}),qn={class:"onyx-user-menu__trigger onyx-text",type:"button"},Zn={class:"onyx-truncation-ellipsis"},Kn={class:"onyx-user-menu__header"},Gn={class:"onyx-truncation-ellipsis"},jn={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},Yn={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},Xn={class:"onyx-user-menu__options"},Wn=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>({src:n.avatar,label:n.username})),r=e.inject(z,e.computed(()=>!1));return(a,s)=>(e.openBlock(),e.createBlock(Un,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(r)}]),"is-mobile":e.unref(r)??!1},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",qn,[e.createVNode(re,e.mergeProps(l.value,{size:"24px"}),null,16),e.createElementVNode("span",Zn,e.toDisplayString(n.username),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Kn,[e.createVNode(re,e.normalizeProps(e.guardReactiveProps(l.value)),null,16),e.createElementVNode("div",Gn,[e.createElementVNode("div",jn,e.toDisplayString(n.username),1),n.description?(e.openBlock(),e.createElementBlock("div",Yn,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.createElementVNode("div",Xn,[e.renderSlot(a.$slots,"default")])]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile"]))}}),Jn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>',Qn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>',el='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>',tl=(o,n)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=s=>{const c=s[0].contentBoxSize;l.value=c.reduce((i,{inlineSize:p})=>i+p,0),r.value=c.reduce((i,{blockSize:p})=>i+p,0)};return e.onBeforeMount(()=>{const s=new ResizeObserver(a);e.watch(o,(c,i)=>{i&&(s==null||s.unobserve(i)),c&&(s==null||s.observe(c,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>s.disconnect())}),{width:l,height:r}},et={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},ol=["primary","secondary","neutral","danger","warning","success","info"],nl=["small","default","large"],ll=["ellipsis","multiline"],al=["horizontal","vertical"],rl={class:"onyx-nav-bar__content"},sl={key:0,class:"onyx-nav-bar__mobile-page onyx-truncation-ellipsis"},il={class:"onyx-nav-bar__nav--mobile"},cl={role:"menubar"},ul={key:1,class:"onyx-nav-bar__nav"},dl={role:"menubar"},pl={key:0,class:"onyx-nav-bar__mobile-context"},ml={key:0,class:"onyx-nav-bar__mobile-global-context"},fl={class:"onyx-nav-bar__mobile-context-content"},hl={key:1,class:"onyx-nav-bar__context"},yl=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["appAreaClick","backButtonClick"],setup(o,{expose:n,emit:t}){const l=o,r=t,a=e.useSlots(),s=e.ref(),{width:c}=tl(s),{t:i}=B(),p=e.ref(!1),u=e.ref(!1),d=e.computed(()=>{const m=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:et[l.mobileBreakpoint];return c.value!==0&&c.value<m});return e.provide(z,d),n({closeMobileMenus:()=>{p.value=!1,u.value=!1}}),(m,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:s,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":d.value}])},[e.createElementVNode("div",rl,[d.value&&a.mobileActivePage&&!p.value&&!u.value?(e.openBlock(),e.createElementBlock("span",sl,[e.renderSlot(m.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(Xe,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:h[0]||(h[0]=_=>{r("appAreaClick"),p.value=!1})},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),l.withBackButton?(e.openBlock(),e.createBlock(ze,{key:2,class:"onyx-nav-bar__back",label:e.unref(i)("navigation.goBack"),icon:e.unref(Jn),color:"neutral",onClick:h[1]||(h[1]=_=>r("backButtonClick"))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[d.value?(e.openBlock(),e.createBlock(ue,{key:0,open:p.value,"onUpdate:open":[h[2]||(h[2]=_=>p.value=_),h[3]||(h[3]=_=>u.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(Qn),label:e.unref(i)("navigation.toggleBurgerMenu"),headline:e.unref(i)("navigation.navigationHeadline")},{default:e.withCtx(()=>[e.createElementVNode("nav",il,[e.createElementVNode("ul",cl,[e.renderSlot(m.$slots,"default")])])]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",ul,[e.createElementVNode("ul",dl,[e.renderSlot(m.$slots,"default")])]))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[d.value?(e.openBlock(),e.createElementBlock("div",pl,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",ml,[e.renderSlot(m.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(ue,{key:1,open:u.value,"onUpdate:open":[h[4]||(h[4]=_=>u.value=_),h[5]||(h[5]=_=>p.value=!1)],icon:e.unref(el),label:e.unref(i)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",fl,[e.renderSlot(m.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",hl,[a.globalContextArea?e.renderSlot(m.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(m.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),vl={key:0,class:"onyx-page__sidebar"},_l={class:"onyx-page__main"},kl={key:1,class:"onyx-page__footer"},xl=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>n.footerAsideSidebar?"onyx-page--footer-partial":"onyx-page--footer-full");return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!n.hideSidebar?(e.openBlock(),e.createElementBlock("aside",vl,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",_l,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",kl,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),gl=["title"],bl=["required","name","value","checked","disabled","autofocus"],de=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean},truncation:{default:"ellipsis"},customError:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r}=D({props:t,emit:l}),{densityClass:a}=g(t),s=c=>{const i=c.target.checked;l("change",i)};return(c,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(a)])},[e.createVNode(w,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(w,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(a)]),title:e.unref(Le)(t.customError)},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:t.disabled,autofocus:t.autofocus,onChange:s},null,40,bl)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,gl))}}),Bl=["disabled"],Cl={key:0,class:"onyx-radio-button-group__headline"},wl=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},truncation:{default:"ellipsis"},options:{},name:{default:()=>T("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,{densityClass:l}=g(t),{requiredMarkerClass:r,requiredTypeClass:a}=K(t),s=n,c=(i,p)=>{i&&s("update:modelValue",p)};return(i,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(l),e.unref(a)]),disabled:t.disabled,role:"radiogroup"},[t.headline?(e.openBlock(),e.createElementBlock("legend",Cl,[e.createVNode(I,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(u,d)=>(e.openBlock(),e.createBlock(de,e.mergeProps({key:u.value.toString(),ref_for:!0},u,{name:t.name,"custom-error":t.customError,checked:u.value===t.modelValue,required:t.required,truncation:u.truncation??t.truncation,onValidityChange:m=>d===0&&s("validityChange",m),onChange:m=>c(m,u.value)}),null,16,["name","custom-error","checked","required","truncation","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,u=>(e.openBlock(),e.createBlock(de,{id:`skeleton-${u}`,key:u,value:`skeleton-${u}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,Bl))}}),tt=o=>{const t=e.ref(!1),l=a=>{const s=a.target;if(!(s instanceof Element))return;const c=e.unref(o.offset)??0;t.value=Math.abs(s.scrollTop)+s.clientHeight>=s.scrollHeight-c-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var c;(((c=o.enabled)==null?void 0:c.value)??!0)&&!o.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Se=(o,n,t)=>{const l=e.computed(()=>o.value===void 0),r=e.ref(l.value?n:o.value);return e.computed({set:a=>{r.value=a,t(a)},get:()=>l.value?r.value:o.value})},Vl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>',El={class:"onyx-select-input__wrapper"},Sl=["readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],Nl=["aria-label","disabled"],ot=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},modelValue:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["click","validityChange"],setup(o,{expose:n,emit:t}){const{rootAttrs:l,restAttrs:r}=je(),a=o,s=t,{t:c}=B(),{vCustomValidity:i,errorMessages:p}=D({props:a,emit:s}),u=e.computed(()=>a.modelValue?a.modelValue.length:0),d=e.computed(()=>{var b;const k=(b=a.modelValue)==null?void 0:b.length;if(!a.modelValue||!k)return"";if(k===1)return a.modelValue[0].label;switch(a.textMode){case"preview":return a.modelValue.map(({label:N})=>N).join(", ");case"summary":default:return c.value("selections.currentSelection",{n:k})}}),m=e.ref(!1),{densityClass:h}=g(a),_=e.ref();n({focus:()=>{var k;return(k=_.value)==null?void 0:k.focus()}}),e.watch(()=>a.showFocus,(k,b)=>{m.value||b&&k===!1&&(m.value=!0)});const V=Ze.concat(Ke),O=k=>{V.includes(k.key)||k.preventDefault()};return(k,b)=>a.skeleton?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(h)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(w,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(h),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(ye,e.mergeProps(a,{"error-messages":e.unref(p)}),{default:e.withCtx(()=>[e.createElementVNode("div",El,[a.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:_,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--force-invalid":e.unref(p)&&m.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:a.disabled||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:d.value,autofocus:a.autofocus,onClick:b[0]||(b[0]=N=>s("click")),onKeydown:O}),null,16,Sl),[[e.unref(i)]]),a.textMode==="preview"&&u.value>0?(e.openBlock(),e.createBlock(he,{key:1,text:d.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode($e,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(c)("select.toggleDropDown"),tabindex:"-1",disabled:a.readonly||a.disabled||a.loading,onClick:b[1]||(b[1]=N=>s("click"))},[e.createVNode(x,{icon:e.unref(Vl)},null,8,["icon"])],8,Nl)])]),_:1},16,["error-messages"])],16))}}),$l=["checked","aria-labelledby","disabled","indeterminate"],pe=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{},truncation:{default:"ellipsis"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(j,e.mergeProps({class:"onyx-select-option"},n,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[n.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:n.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-select-option__checkbox",type:"checkbox"},null,8,$l)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:n.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([`onyx-truncation-${n.truncation}`])},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["checked","selected","disabled"]))}}),Ml=["inert","aria-busy"],Ol={class:"onyx-select__wrapper",tabindex:"-1"},Tl={key:0,role:"group",class:"onyx-select__group"},Il={role:"option","aria-selected":"false"},Ll={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},Dl={key:1,class:"onyx-select__slot"},Pl={key:2,class:"onyx-select__slot"},Al=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:void 0},required:{type:Boolean},requiredMarker:{},customError:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean},readonly:{type:Boolean},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean},truncation:{default:"ellipsis"},open:{type:Boolean,default:void 0},listLabel:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","update:open","lazyLoad","validityChange"],setup(o,{emit:n}){const t=o,l=n,{densityClass:r}=g(t),a=e.useSlots(),{t:s}=B(),c=Se(e.toRef(()=>t.searchTerm),"",f=>l("update:searchTerm",f)),i=Se(e.toRef(()=>t.open),!1,f=>l("update:open",f)),p=e.ref(),u=e.ref(),d=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),m=e.ref(),h=e.ref();e.watch(d,()=>{var f;t.multiple||(u.value=(f=d.value.at(0))==null?void 0:f.value)},{immediate:!0});const _=T("ONYX_CHECK_ALL"),V=e.computed(()=>(t.multiple&&t.withCheckAll&&!c.value?[_]:[]).concat(be.value)),O=async f=>{var v,C;if(t.readonly){i.value=!1;return}i.value=!i.value,i.value?(await e.nextTick(),(C=m.value)==null||C.focus()):(c.value&&(c.value=""),f||(v=h.value)==null||v.focus())},k=()=>u.value=V.value.at(0),b=()=>u.value=V.value.at(-1),N=f=>{const v=V.value.findIndex(C=>C===f);v<V.value.length-1&&(u.value=V.value[v+1])},Y=f=>{const v=V.value.findIndex(C=>C===f);v>0&&(u.value=V.value[v-1])},X=f=>{const v=t.options.find(C=>C.label.toLowerCase().trim().startsWith(f.toLowerCase()));v&&(u.value=v.value)},H=f=>c.value=f,W=f=>{var $;if(f===_){($=F.value)==null||$.handleChange(!F.value.state.value.modelValue);return}const v=t.options.find(({value:E})=>E===f);if(!v)return;if(!t.multiple)return l("update:modelValue",v);d.value.some(({value:E})=>E===f)?l("update:modelValue",d.value.filter(({value:E})=>E!==f)):l("update:modelValue",[...d.value,v])},J=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:P,option:R,group:Q,listbox:ee}}=Do({autocomplete:J,label:t.label,listLabel:t.listLabel,inputValue:e.computed(()=>t.withSearch&&c.value||""),activeOption:e.computed(()=>u.value),multiple:e.computed(()=>t.multiple),isExpanded:i,templateRef:p,onToggle:O,onActivateFirst:k,onActivateLast:b,onActivateNext:N,onActivatePrevious:Y,onTypeAhead:X,onAutocomplete:H,onSelect:W}),te=e.computed(()=>lo(t.options,"group")),{vScrollEnd:y,isScrollEnd:oe}=tt({enabled:e.computed(()=>{var f;return((f=t.lazyLoading)==null?void 0:f.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var f;return(f=t.lazyLoading)==null?void 0:f.scrollOffset})}),ne=e.computed(()=>{if(!t.options.length)return t.withSearch&&c.value?s.value("select.noMatch"):s.value("select.empty")}),be=e.computed(()=>t.options.filter(f=>!f.disabled).map(({value:f})=>f)),F=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return De(be,e.computed(()=>d.value.map(({value:f})=>f)),f=>{const v=f.map(C=>t.options.find(({value:$})=>$===C)).filter(C=>C!=null);l("update:modelValue",v)})}),Be=e.computed(()=>{var v;if(!t.multiple)return"";const f=s.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?f:((v=t.withCheckAll)==null?void 0:v.label)??f});e.watchEffect(()=>{oe.value&&l("lazyLoad")});const st=e.computed(()=>{const f={...t,modelValue:d.value};return t.withSearch?{...f,onKeydown:P.value.onKeydown}:{...f,...P.value}});return(f,v)=>{var C;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:p,class:"onyx-select-wrapper"},[e.createVNode(ot,e.mergeProps({ref_key:"selectInput",ref:h},st.value,{"show-focus":e.unref(i),autofocus:t.autofocus,onClick:O,onValidityChange:v[0]||(v[0]=$=>l("validityChange",$))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(i)?"onyx-select--open":""]),inert:!e.unref(i),"aria-busy":t.loading},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ol,[t.withSearch?(e.openBlock(),e.createBlock(Ye,e.mergeProps({key:0,ref_key:"miniSearch",ref:m},e.unref(P),{label:e.unref(s)("select.searchInputLabel"),class:"onyx-select__search",onClear:v[1]||(v[1]=$=>c.value="")}),null,16,["label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(ee))),[ne.value?(e.openBlock(),e.createElementBlock("ul",Tl,[e.createElementVNode("li",Il,[e.renderSlot(f.$slots,"empty",{defaultMessage:ne.value},()=>[e.createVNode(fe,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne.value),1)]),_:1})])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(te.value,($,E)=>{var Ce,we;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:E,class:"onyx-select__group",ref_for:!0},e.unref(Q)({label:E})),[E!=""?(e.openBlock(),e.createElementBlock("li",Ll,e.toDisplayString(E),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll&&!e.unref(c)?(e.openBlock(),e.createBlock(pe,e.mergeProps({key:1,ref_for:!0},e.unref(R)({value:e.unref(_),label:Be.value,selected:(Ce=F.value)==null?void 0:Ce.state.value.modelValue}),{multiple:"",active:e.unref(_)===u.value,indeterminate:(we=F.value)==null?void 0:we.state.value.indeterminate,density:t.density,class:"onyx-select__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Be.value),1)]),_:1},16,["active","indeterminate","density"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($,S=>(e.openBlock(),e.createBlock(pe,e.mergeProps({key:S.value.toString(),ref_for:!0},e.unref(R)({value:S.value,label:S.label,disabled:S.disabled,selected:d.value.some(({value:it})=>it===S.value)}),{multiple:t.multiple,active:S.value===u.value,icon:S.icon,density:t.density,truncation:S.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"option",e.mergeProps({ref_for:!0},S),()=>[e.createTextVNode(e.toDisplayString(S.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16)}),128))],16),(C=t.lazyLoading)!=null&&C.loading?(e.openBlock(),e.createElementBlock("div",Dl,[e.createVNode(M,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),a.optionsEnd?(e.openBlock(),e.createElementBlock("div",Pl,[e.renderSlot(f.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(y)]])],10,Ml)],512)}}}),zl=["summary","preview"],Hl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>',Rl={class:"onyx-switch-skeleton__click-area"},Fl=["title"],Ul=["aria-label","disabled","required","autofocus"],ql={class:"onyx-switch__click-area"},Zl={class:"onyx-switch__container"},Kl={class:"onyx-switch__icon"},Gl=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),jl=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,{requiredMarkerClass:r,requiredTypeClass:a}=K(t),{densityClass:s}=g(t),{vCustomValidity:c}=D({props:t,emit:l}),i=e.computed({get:()=>t.modelValue,set:p=>{l("update:modelValue",p)}});return(p,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",Rl,[e.createVNode(w,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(s)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),type:"checkbox",role:"switch",class:e.normalizeClass({"onyx-switch__input":!0,"onyx-switch__loading":t.loading}),"aria-label":t.hideLabel?t.label:void 0,disabled:t.disabled||t.loading,required:t.required,autofocus:t.autofocus},null,10,Ul),[[e.vModelCheckbox,i.value],[e.unref(c)]]),e.createElementVNode("span",ql,[e.createElementVNode("span",Zl,[e.createElementVNode("span",Kl,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(x),{key:1,icon:i.value?e.unref(Hl):e.unref(_e)},null,8,["icon"]))]),Gl])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,Fl))}}),Yl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>',Xl={class:"onyx-table-wrapper"},Wl=["tabindex"],Jl={key:0,class:"onyx-table__header"},Ql={class:"onyx-table__empty"},ea={colspan:"100%"},ta={class:"onyx-table__empty-content"},oa=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1},withPageScrolling:{type:Boolean,default:!1}},setup(o){const n=o,t=e.useSlots(),{t:l}=B(),{densityClass:r}=g(n),a=e.computed(()=>l.value("table.empty"));return(s,c)=>(e.openBlock(),e.createElementBlock("div",Xl,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!n.withPageScrolling}),tabindex:n.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[n.striped?"onyx-table--striped":"",n.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[t.head?(e.openBlock(),e.createElementBlock("thead",Jl,[e.renderSlot(s.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("tr",Ql,[e.createElementVNode("td",ea,[e.createElementVNode("div",ta,[e.renderSlot(s.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(fe,null,{icon:e.withCtx(()=>[e.createVNode(x,{icon:e.unref(Yl),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,Wl)]))}}),na={class:"onyx-text onyx-truncation-ellipsis"},la=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(o){const n=o,{densityClass:t}=g(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${n.color}`,e.unref(t)])},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",na,e.toDisplayString(n.label),1)],2))}}),aa=["data-autosize-value"],ra=["placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],sa=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:Boolean,default:!1},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=D({props:t,emit:l}),{densityClass:s}=g(t),c=e.computed({get:()=>t.modelValue,set:d=>l("update:modelValue",d)}),i=d=>{const m=d.target.value;l("change",m)},p=e.computed(()=>{if(!t.autosize)return;const d=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[d?`--min-autosize-rows: ${d}`:"",`--max-autosize-rows: ${m??"unset"}`]}),u=d=>{var h;const m=d.target;(h=m.parentElement)==null||h.setAttribute("data-autosize-value",m.value)};return(d,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(p.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(w,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(p.value)},[e.createVNode(ye,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":c.value},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":m[0]||(m[0]=h=>c.value=h),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:t.disabled,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:u,onChange:i,onFocus:m[1]||(m[1]=h=>l("focus")),onBlur:m[2]||(m[2]=h=>l("blur"))},null,42,ra),[[e.vModelText,c.value],[e.unref(r)]])],8,aa)]),_:1},16,["error-messages"])],6))}}),ia='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>',ca='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>',ua={class:"onyx-toast-message__wrapper"},da={class:"onyx-toast-message__content onyx-truncation-ellipsis"},pa={class:"onyx-toast-message__headline onyx-text"},ma={class:"onyx-truncation-ellipsis"},fa=["aria-label"],ha={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},nt=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["click","close"],setup(o,{emit:n}){const t=o,l=n,{t:r}=B(),{densityClass:a}=g(t),s=e.computed(()=>t.duration>0),c={neutral:He,danger:Ae,warning:ia,success:ca},i=e.computed(()=>{if(t.icon!==!1)return t.icon||c[t.color]});return(p,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.clickable?"button":"div"),{class:e.normalizeClass(["onyx-toast-message",[`onyx-toast-message--${t.color}`,e.unref(a)]]),role:t.color==="danger"||t.color==="warning"?"alert":"status","aria-label":t.clickable?t.headline:void 0,onClick:u[2]||(u[2]=d=>t.clickable&&l("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",ua,[i.value?(e.openBlock(),e.createBlock(x,{key:0,icon:i.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",da,[e.createElementVNode("div",pa,[e.createElementVNode("span",ma,e.toDisplayString(t.headline),1),t.clickable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":e.unref(r)("close"),class:"onyx-toast-message__close",onClick:u[0]||(u[0]=d=>l("close"))},[e.createVNode(x,{icon:e.unref(_e)},null,8,["icon"])],8,fa))]),t.description?(e.openBlock(),e.createElementBlock("p",ha,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),s.value?(e.openBlock(),e.createElementBlock("time",{key:t.duration,"aria-hidden":"true",class:"onyx-toast-message__progress-bar",style:e.normalizeStyle({animationDuration:`${t.duration}ms`}),onAnimationend:u[1]||(u[1]=d=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),ge=Symbol(),lt=()=>{let o=1;const n=e.ref([]),t=r=>{const a=o++;n.value.unshift({...r,id:a,onClose:()=>l(a)})},l=r=>{n.value=n.value.filter(a=>a.id!==r)};return{toasts:e.computed(()=>n.value),show:t,remove:l}},at=()=>{const o=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(ge,()=>({toasts:e.computed(()=>[]),show:o,remove:o}),!0)},ya={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},va=e.defineComponent({__name:"OnyxToast",setup(o){const n=at();return(t,l)=>e.unref(n).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(nt,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),_a=["top","bottom"],ka=(o={})=>({install:n=>{Te(n,o.i18n);const t=n.runWithContext(()=>B());e.watchEffect(()=>rt(t.t.value("optional"))),n.provide(ge,lt())}}),rt=o=>{globalThis.document.body.style.setProperty("--onyx-global-optional-text",o)},xa=(o,n)=>{const t=Ne(o.toLowerCase()),l=Ne(n.toLowerCase());return t.includes(l)},Ne=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"");exports.AUTOCAPITALIZE=Wo;exports.BUTTON_COLORS=zt;exports.BUTTON_MODES=Ht;exports.BUTTON_TYPES=At;exports.DENSITIES=kt;exports.DIRECTIONS=al;exports.HEADLINE_TYPES=go;exports.ICON_SIZES=bo;exports.INPUT_TYPES=Xo;exports.LINK_TARGETS=en;exports.MOBILE_NAV_BAR_INJECTION_KEY=z;exports.MULTISELECT_TEXT_MODE=zl;exports.ONYX_BREAKPOINTS=et;exports.ONYX_COLORS=ol;exports.OnyxAppLayout=mt;exports.OnyxAvatar=re;exports.OnyxAvatarStack=_t;exports.OnyxBadge=$e;exports.OnyxButton=Z;exports.OnyxCheckbox=U;exports.OnyxCheckboxGroup=ho;exports.OnyxColorSchemeDialog=We;exports.OnyxColorSchemeMenuItem=Bn;exports.OnyxDialog=Pe;exports.OnyxEmpty=fe;exports.OnyxExternalLinkIcon=G;exports.OnyxFlyoutMenu=xe;exports.OnyxHeadline=I;exports.OnyxIcon=x;exports.OnyxIconButton=ze;exports.OnyxInfoTooltip=q;exports.OnyxInput=Yo;exports.OnyxLink=Qo;exports.OnyxListItem=j;exports.OnyxLoadingIndicator=M;exports.OnyxMenuItem=ke;exports.OnyxMiniSearch=Ye;exports.OnyxMobileNavButton=ue;exports.OnyxNavAppArea=Xe;exports.OnyxNavBar=yl;exports.OnyxNavButton=Tn;exports.OnyxNavItem=In;exports.OnyxNavSeparator=Je;exports.OnyxPageLayout=xl;exports.OnyxRadioButton=de;exports.OnyxRadioGroup=wl;exports.OnyxSelect=Al;exports.OnyxSelectInput=ot;exports.OnyxSelectOption=pe;exports.OnyxSkeleton=w;exports.OnyxSwitch=jl;exports.OnyxTable=oa;exports.OnyxTag=la;exports.OnyxTextarea=sa;exports.OnyxTimer=Rn;exports.OnyxToast=va;exports.OnyxToastMessage=nt;exports.OnyxTooltip=he;exports.OnyxUserMenu=Wn;exports.OnyxVisuallyHidden=ve;exports.TEXT_SIZES=nl;exports.TOAST_PROVIDER_INJECTION_KEY=ge;exports.TOOLTIP_POSITIONS=_a;exports.TRUNCATION_TYPES=ll;exports.createOnyx=ka;exports.createToastProvider=lt;exports.normalizedIncludes=xa;exports.provideI18n=Te;exports.syncGlobalOptionalText=rt;exports.useDensity=g;exports.useScrollEnd=tt;exports.useToast=at;