sit-onyx 1.0.0-beta.7 → 1.0.0-beta.9

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"),ut={key:0,class:"onyx-app__nav"},dt={class:"onyx-app__page"},pt={key:1,class:"onyx-app__page-overlay"},mt={key:2,class:"onyx-app__app-overlay"},ft=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",ut,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",dt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",mt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),ht=["title"],yt=["src","alt"],vt={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,yt)):(e.openBlock(),e.createElementBlock("div",vt,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,ht))}}),_t={class:"onyx-avatar-stack"},kt=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",_t,[e.renderSlot(n.$slots,"default")]))}}),xt=["compact","default","cozy"],b=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),gt=["innerHTML"],g=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,gt))}}),$e=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(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(g,{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))}}),fe=(o,n)=>{const t=o.__vccOpts||o;for(const[l,r]of n)t[l]=r;return t},bt={},Bt={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},Ct=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),wt=[Ct];function Vt(o,n){return e.openBlock(),e.createElementBlock("svg",Bt,wt)}const St=fe(bt,[["render",Vt]]),Et={},Nt={class:"onyx-loading-dots"},$t=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),Mt=[$t];function Ot(o,n){return e.openBlock(),e.createElementBlock("div",Nt,Mt)}const Tt=fe(Et,[["render",Ot]]),O=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(St,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(Tt,{key:1})):e.createCommentVNode("",!0)}}),It={},Lt={"aria-hidden":"true",class:"onyx-skeleton"};function Dt(o,n){return e.openBlock(),e.createElementBlock("figure",Lt)}const V=fe(It,[["render",Dt]]),Pt=["disabled","type","aria-label","autofocus"],At={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}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{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(g,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(O,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",At,e.toDisplayString(t.label),1)],10,Pt))}}),zt=["button","submit","reset"],Ht=["primary","neutral","danger"],Rt=["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}))}),Ft="(optional)",Ut="Cancel",qt="Apply",Zt="Back",Kt="Close",Gt={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.'}}},jt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},Yt={selectAll:"Select all",currentSelection:"{n} selected"},Xt={empty:"This table is empty."},Wt={opensExternally:"Opens in a new tab."},Jt="Subpages of {label}",Qt={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"},eo={info:"Show info tooltip",error:"Show error tooltip"},to={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:Ft,cancel:Ut,apply:qt,back:Zt,close:Kt,validations:Gt,select:jt,selections:Yt,table:Xt,link:Wt,navItemOptionsLabel:Jt,navigation:Qt,showTooltip:eo,colorScheme:to},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=Se(r,t.value)??Se(r,se)??"";return s=oo(s,a.n),no(s,a)});return{locale:n,t:l}},Te=(o,n)=>{const t=Oe(n);return o.provide(Me,t),t},C=()=>e.inject(Me,()=>Oe(),!0),Se=(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},oo=(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]},no=(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,lo=(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])},ao=(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),ro=o=>Ie().reduce((n,t)=>(n[t]=o[t],n),{}),so=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},io=Object.keys(se.validations.typeMismatch),co=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}=C(),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=ro(s.validity);!t.value&&c.valid||t.value&&lo(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 d,i,p;if(!t.value||t.value.valid)return;const s=so(t.value),c=co(o.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const m=io.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(d=o.props.modelValue)==null?void 0:d.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const u={value:(i=o.props.modelValue)==null?void 0:i.toString(),n:((p=o.props.modelValue)==null?void 0:p.toString().length)??0,minLength:o.props.minlength,maxLength:o.props.maxlength};return{longMessage:n.value(`validations.${s}.fullError`,u),shortMessage:n.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},uo={class:"onyx-checkbox__container"},po=["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:d=>l("update:modelValue",d)}),{requiredMarkerClass:a,requiredTypeClass:s}=K(t),{densityClass:c}=b(t),{vCustomValidity:u}=D({props:t,emit:l});return(d,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(V,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{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",uo,[t.loading?(e.openBlock(),e.createBlock(e.unref(O),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":i[0]||(i[0]=p=>r.value=p),"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,po)),[[e.vModelCheckbox,r.value],[e.unref(u)]])]),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))}}),mo=(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:mo(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),fo=["disabled"],ho={key:0,class:"onyx-checkbox-group__label"},yo=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}=b(t),r=n,{t:a}=C(),s=(i,p)=>{const m=p?[...t.modelValue,i]:t.modelValue.filter(h=>h!==i);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(i=>!i.disabled&&!i.skeleton).map(({value:i})=>i)),u=De(c,e.computed(()=>t.modelValue),i=>r("update:modelValue",i)),d=e.computed(()=>{var p;const i=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?i:((p=t.withCheckAll)==null?void 0:p.label)??i});return(i,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",ho,[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(u).state.value,{label:d.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(u).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,fo))}}),vo=["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}=b(t),s=()=>{var c,u;t.modal?(c=r.value)==null||c.showModal():(u=r.value)==null||u.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,u)=>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:u[0]||(u[0]=e.withModifiers(d=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,vo)):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>',_o={class:"onyx-empty"},ko={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},he=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",_o,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(g,{icon:e.unref(Ae),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",ko,[e.renderSlot(n.$slots,"default")])]))}}),xo='<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>',go=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:go(n.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-external-link-icon",icon:e.unref(xo),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"]))}}),bo=["h1","h2","h3","h4","h5","h6"],Bo=["12px","16px","24px","32px","48px","64px","96px"],Co=["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}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{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(O,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Co))}}),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>',P=o=>o,wo=(()=>{let o=1;return()=>o++})(),M=o=>`${o}-${wo()}`,Vo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),So=(o,n)=>typeof n=="string"?o.key===n:Vo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ie=o=>!No.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"],No=new Set(Eo),L=e.reactive(new Map),$o=(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),$o(o,t)},Mo=(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))},Fe=({type:o,listener:n,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Ee(o,n):Mo(o,n))),e.onBeforeUnmount(()=>Ee(o,n))},Ue=({element:o,onOutsideClick:n,disabled:t})=>{Fe({type:"click",listener:({target:r})=>{var s;!((s=o.value)!=null&&s.contains(r))&&n()},disabled:t})},qe=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},Ze=(o,n=500)=>{let t="";const l=qe(()=>t="",n);return r=>{ie(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Oo=P(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=u=>(t.has(u)||t.set(u,M("listbox-option")),t.get(u)),r=e.ref(!1);e.watchEffect(()=>{var d;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const u=l(o.activeOption.value);(d=document.getElementById(u))==null||d.scrollIntoView({block:"nearest",inline:"nearest"})});const a=Ze(u=>{var d;return(d=o.onTypeAhead)==null?void 0:d.call(o,u)}),s=u=>{var d,i,p,m,h,y,_;switch(u.key){case" ":u.preventDefault(),o.activeOption.value!=null&&((d=o.onSelect)==null||d.call(o,o.activeOption.value));break;case"ArrowUp":if(u.preventDefault(),o.activeOption.value==null){(i=o.onActivateLast)==null||i.call(o);return}(p=o.onActivatePrevious)==null||p.call(o,o.activeOption.value);break;case"ArrowDown":if(u.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":u.preventDefault(),(y=o.onActivateFirst)==null||y.call(o);break;case"End":u.preventDefault(),(_=o.onActivateLast)==null||_.call(o);break;default:a(u)}};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(()=>u=>({role:"group","aria-label":u.label})),option:e.computed(()=>u=>{const d=u.selected??!1;return{id:l(u.value),role:"option","aria-label":u.label,"aria-disabled":u.disabled,"aria-checked":n.value?d:void 0,"aria-selected":n.value?void 0:d,onClick:()=>{var i;return!u.disabled&&((i=o.onSelect)==null?void 0:i.call(o,u.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ke=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ge=["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=>So(o,t)),Do=P(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:c,activeOption:u,onToggle:d,onSelect:i,onActivateFirst:p,onActivateLast:m,onActivateNext:h,onActivatePrevious:y,templateRef:_})=>{const T=M("comboBox-control"),x=e.computed(()=>e.unref(n)),B=e.computed(()=>e.unref(c)),N=e.computed(()=>e.unref(r)),Y=v=>{const oe=v.target;x.value!=="none"&&(t==null||t(oe.value))},X=Ze(v=>l==null?void 0:l(v)),H=v=>{i==null||i(v),e.unref(N)||d==null||d()},W=v=>{switch(v.key){case"ArrowUp":if(v.preventDefault(),u.value==null)return m==null?void 0:m();y==null||y(u.value);break;case"ArrowDown":if(v.preventDefault(),u.value==null)return p==null?void 0:p();h==null||h(u.value);break;case"Home":v.preventDefault(),p==null||p();break;case"End":v.preventDefault(),m==null||m();break}},J=v=>{if(v.key==="Enter"&&v.preventDefault(),!B.value&&ce(v,Ke))return d==null||d(),v.key===" "&&v.preventDefault(),v.key==="End"?m==null?void 0:m():p==null?void 0:p();if(Lo(v,N.value))return H(u.value);if(B.value&&ce(v,Ge))return d==null?void 0:d();if(x.value==="none"&&ie(v.key))return!B.value&&(d==null||d()),X(v);if(x.value!=="none"&&ie(v.key)){!B.value&&(d==null||d());return}return W(v)},A=x.value!=="none"?{"aria-autocomplete":x.value,type:"text"}:null,{elements:{option:R,group:Q,listbox:ee},internals:{getOptionId:te}}=Oo({label:s,multiple:N,controlled:!0,activeOption:u,onSelect:H});return Ue({element:_,onOutsideClick(){B.value&&(d==null||d(!0))}}),{elements:{option:R,group:Q,listbox:e.computed(()=>({...ee.value,id:T,onMousedown:v=>v.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":B.value,"aria-controls":T,"aria-label":e.unref(a),"aria-activedescendant":u.value!=null?te(u.value):void 0,onInput:Y,onKeydown:J,...A})),button:e.computed(()=>({tabindex:"-1",onClick:()=>d==null?void 0:d()}))}}}),Po=P(({isExpanded:o,onToggle:n})=>{const t=M("menu-button-root"),l=M("menu-button-list"),r=e.ref(),a=M("menu-button-button");Fe({type:"keydown",listener:d=>d.key==="Escape"&&o.value&&n(),disabled:e.computed(()=>!o.value)});const s=qe(d=>o.value!==d&&n(),200),c=d=>{const i=document.activeElement,p=(i==null?void 0:i.closest('[role="menu"]'))||r.value;if(!p)return;const m=[...p.querySelectorAll('[role="menuitem"]')];let h=0;if(i){const _=m.indexOf(i);switch(d){case"next":h=_+1;break;case"prev":h=_-1;break;case"first":h=0;break;case"last":h=m.length-1;break}}const y=m[h];y==null||y.focus()};return{elements:{root:{id:t,onKeydown:d=>{switch(d.key){case"ArrowDown":case"ArrowRight":d.preventDefault(),c("next");break;case"ArrowUp":case"ArrowLeft":d.preventDefault(),c("prev");break;case"Home":d.preventDefault(),c("first");break;case"End":d.preventDefault(),c("last");break;case" ":d.preventDefault(),d.target.click();break;case"Escape":d.preventDefault(),o.value&&n();break}},onMouseover:()=>s(!0),onMouseout:()=>s(!1),onFocusout:d=>{var i;(i=document.getElementById(t))!=null&&i.contains(d.relatedTarget)||o.value&&n()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":o.value,"aria-haspopup":!0,onFocus:()=>!o.value&&n(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>o.value&&n()},...je().elements}}}),je=P(()=>({elements:{listItem:{role:"none"},menuItem:o=>({"aria-current":o.active?"page":void 0,"aria-disabled":o.disabled,role:"menuitem"})}})),Ao={clamp:(o,n,t)=>Math.max(Math.min(o,t),n)},zo=P(({navigationName:o})=>{const n=M("nav"),t=()=>{const r=document.getElementById(n);return r?[...r.querySelectorAll("button[aria-expanded][aria-controls]")]:[]},l=(r,a)=>{const s=t(),c=s.indexOf(r);if(c===-1)return;const u=Ao.clamp(c+(a==="next"?1:-1),0,s.length-1);s[u].focus()};return{elements:{nav:{"aria-label":e.unref(o),id:n,onKeydown:r=>{switch(r.key){case"ArrowRight":l(r.target,"next");break;case"ArrowLeft":l(r.target,"previous");break}}}}}}),Ho=P(o=>{const n=e.ref(),t=M("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)}}),u=e.computed(()=>typeof s.value=="boolean"?s.value:c.value),d=()=>{l.value=!l.value},i=e.computed(()=>{if(s.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1}}),p=m=>{m.key==="Escape"&&(l.value=!1)};return Ue({element:n,onOutsideClick:()=>l.value=!1,disabled:e.computed(()=>s.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",p)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",p)}),{elements:{root:{ref:n},trigger:e.computed(()=>({"aria-describedby":t,onClick:s.value==="click"?d:void 0,...i.value})),tooltip:e.computed(()=>({role:"tooltip",id:t,tabindex:"-1",...i.value}))},state:{isVisible:u}}}),ye=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}}=Ho({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(g,{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))}}),Ro=["aria-label"],q=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=C();return(l,r)=>(e.openBlock(),e.createBlock(ye,{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(g,{icon:e.unref(He)},null,8,["icon"])],8,Ro)]),_:1},8,["text","position"]))}}),Fo={class:"onyx-form-element__header"},Uo={class:"onyx-truncation-ellipsis"},qo={key:2,class:"onyx-form-element__optional"},Zo={key:0,class:"onyx-form-element__footer onyx-text--small"},Ko={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},Go={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},jo={key:4,class:"onyx-form-element__counter"},ve=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}=C(),{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 u,d;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",Fo,[e.createElementVNode("span",Uo,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",qo,e.toDisplayString(e.unref(t)("optional")),1))])],2)),e.renderSlot(s.$slots,"default")]),n.message||(u=s.errorMessages)!=null&&u.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",Zo,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(d=s.errorMessages)!=null&&d.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",Go,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",jo,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Yo={class:"onyx-input__wrapper"},Xo=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Wo=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}=b(t),c=e.computed({get:()=>t.modelValue,set:i=>l("update:modelValue",i)}),u=i=>{const p=i.target.value;l("change",p)},d=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(i,p)=>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(V,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(V,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(ve,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",Yo,[t.loading?(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[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:d.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:u,onFocus:p[1]||(p[1]=m=>l("focus")),onBlur:p[2]||(p[2]=m=>l("blur"))},null,40,Xo),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Jo=["email","password","search","tel","text","url"],Qo=["none","sentences","words","characters"],_e=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}))}}),en=["href","target","rel"],tn=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}=C();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(_e,{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,en))}}),on=["_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}=b(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))}}),nn='<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>',ke='<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>',Ye=()=>{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}},ln=["aria-label"],an=["aria-label"],Xe=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}=Ye(),{densityClass:c}=b(l),{t:u}=C(),d=e.ref(),i=e.computed({get:()=>l.modelValue,set:p=>r("update:modelValue",p??"")});return n({focus:()=>{var p;return(p=d.value)==null?void 0:p.focus()}}),(p,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:d,"onUpdate:modelValue":m[0]||(m[0]=h=>i.value=h),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,ln),[[e.vModelText,i.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(u)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(()=>{},["prevent"])),onClick:m[2]||(m[2]=h=>r("clear"))},[e.createVNode(g,{icon:e.unref(ke)},null,8,["icon"])],40,an),e.createVNode(g,{class:"onyx-mini-search__icon",icon:e.unref(nn)},null,8,["icon"])],16))}}),rn='<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>',sn={class:"onyx-mobile-nav-button"},cn=["aria-label"],un={class:"onyx-mobile-nav-button__flyout"},dn={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",sn,[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(g,{icon:t.open?e.unref(rn):t.icon},null,8,["icon"])],10,cn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",un,[e.createElementVNode("div",dn,[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)]))}}),pn=["aria-label"],mn=["src","alt"],fn={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},We=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),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]=u=>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,mn)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",fn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,pn))}}),hn=`<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"),ut={key:0,class:"onyx-app__nav"},dt={class:"onyx-app__page"},pt={key:1,class:"onyx-app__page-overlay"},mt={key:2,class:"onyx-app__app-overlay"},ft=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",ut,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",dt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",mt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),yt=["title"],ht=["src","alt"],vt={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",vt,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,yt))}}),_t={class:"onyx-avatar-stack"},kt=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",_t,[e.renderSlot(n.$slots,"default")]))}}),xt=["compact","default","cozy"],b=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),gt=["innerHTML"],g=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,gt))}}),$e=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(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(g,{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},bt={},Bt={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},Ct=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),wt=[Ct];function Vt(o,n){return e.openBlock(),e.createElementBlock("svg",Bt,wt)}const St=me(bt,[["render",Vt]]),Et={},Nt={class:"onyx-loading-dots"},$t=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),Mt=[$t];function Ot(o,n){return e.openBlock(),e.createElementBlock("div",Nt,Mt)}const Tt=me(Et,[["render",Ot]]),O=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(St,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(Tt,{key:1})):e.createCommentVNode("",!0)}}),It={},Lt={"aria-hidden":"true",class:"onyx-skeleton"};function Dt(o,n){return e.openBlock(),e.createElementBlock("figure",Lt)}const V=me(It,[["render",Dt]]),Pt=["disabled","type","aria-label","autofocus"],At={class:"onyx-button__label onyx-truncation-ellipsis"},K=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}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{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(g,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(O,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",At,e.toDisplayString(t.label),1)],10,Pt))}}),zt=["button","submit","reset"],Ht=["primary","neutral","danger"],Rt=["default","outline","plain"],G=o=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${o.requiredMarker}`]:o.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":o.required,"onyx-optional-marker":!o.required}))}),Ft="(optional)",Ut="Cancel",qt="Apply",Zt="Back",Kt="Close",Gt={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.'}}},jt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},Yt={selectAll:"Select all",currentSelection:"{n} selected"},Xt={empty:"This table is empty."},Wt={opensExternally:"Opens in a new tab."},Jt="Subpages of {label}",Qt={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"},eo={info:"Show info tooltip",error:"Show error tooltip"},to={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:Ft,cancel:Ut,apply:qt,back:Zt,close:Kt,validations:Gt,select:jt,selections:Yt,table:Xt,link:Wt,navItemOptionsLabel:Jt,navigation:Qt,showTooltip:eo,colorScheme:to},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=oo(s,a.n),no(s,a)});return{locale:n,t:l}},Te=(o,n)=>{const t=Oe(n);return o.provide(Me,t),t},C=()=>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},oo=(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]},no=(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,lo=(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])},ao=(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),ro=o=>Ie().reduce((n,t)=>(n[t]=o[t],n),{}),so=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},io=Object.keys(se.validations.typeMismatch),co=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}=C(),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=ro(s.validity);!t.value&&c.valid||t.value&&lo(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 u,d,p;if(!t.value||t.value.valid)return;const s=so(t.value),c=co(o.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const m=io.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(u=o.props.modelValue)==null?void 0:u.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const i={value:(d=o.props.modelValue)==null?void 0:d.toString(),n:((p=o.props.modelValue)==null?void 0:p.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}},uo={class:"onyx-checkbox__container"},po=["aria-label","title","indeterminate","disabled","required","value","autofocus"],q=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:u=>l("update:modelValue",u)}),{requiredMarkerClass:a,requiredTypeClass:s}=G(t),{densityClass:c}=b(t),{vCustomValidity:i}=D({props:t,emit:l});return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(V,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{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",uo,[t.loading?(e.openBlock(),e.createBlock(e.unref(O),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":d[0]||(d[0]=p=>r.value=p),"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,po)),[[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))}}),mo=(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:mo(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),fo=["disabled"],yo={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}=b(t),r=n,{t:a}=C(),s=(d,p)=>{const m=p?[...t.modelValue,d]:t.modelValue.filter(f=>f!==d);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(d=>!d.disabled&&!d.skeleton).map(({value:d})=>d)),i=De(c,e.computed(()=>t.modelValue),d=>r("update:modelValue",d)),u=e.computed(()=>{var p;const d=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?d:((p=t.withCheckAll)==null?void 0:p.label)??d});return(d,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",yo,[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(q,e.mergeProps({key:0},e.unref(i).state.value,{label:u.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(q,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":f=>s(m.value,f)}),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(q,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,fo))}}),vo=["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}=b(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(u=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,vo)):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>',_o={class:"onyx-empty"},ko={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},fe=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",_o,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(g,{icon:e.unref(Ae),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",ko,[e.renderSlot(n.$slots,"default")])]))}}),xo='<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>',go=o=>/^http(s?):\/\//.test(o),j=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:go(n.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-external-link-icon",icon:e.unref(xo),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"]))}}),bo=["h1","h2","h3","h4","h5","h6"],Bo=["12px","16px","24px","32px","48px","64px","96px"],Co=["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}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{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(O,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Co))}}),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>',P=o=>o,wo=(()=>{let o=1;return()=>o++})(),N=o=>`${o}-${wo()}`,Vo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),So=(o,n)=>typeof n=="string"?o.key===n:Vo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ie=o=>!No.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"],No=new Set(Eo),L=e.reactive(new Map),$o=(o,n)=>{if(n!=null&&n.size){L.set(o,n);return}L.delete(o),document.removeEventListener(o,Re)},Se=(o,n)=>{const t=L.get(o);t==null||t.delete(n),$o(o,t)},Mo=(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))},Fe=({type:o,listener:n,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Se(o,n):Mo(o,n))),e.onBeforeUnmount(()=>Se(o,n))},Ue=({element:o,onOutsideClick:n,disabled:t})=>{Fe({type:"click",listener:({target:r})=>{var s;!((s=o.value)!=null&&s.contains(r))&&n()},disabled:t})},qe=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},Ze=(o,n=500)=>{let t="";const l=qe(()=>t="",n);return r=>{ie(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Oo=P(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=i=>(t.has(i)||t.set(i,N("listbox-option")),t.get(i)),r=e.ref(!1);e.watchEffect(()=>{var u;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const i=l(o.activeOption.value);(u=document.getElementById(i))==null||u.scrollIntoView({block:"nearest",inline:"nearest"})});const a=Ze(i=>{var u;return(u=o.onTypeAhead)==null?void 0:u.call(o,i)}),s=i=>{var u,d,p,m,f,h,_;switch(i.key){case" ":i.preventDefault(),o.activeOption.value!=null&&((u=o.onSelect)==null||u.call(o,o.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),o.activeOption.value==null){(d=o.onActivateLast)==null||d.call(o);return}(p=o.onActivatePrevious)==null||p.call(o,o.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),o.activeOption.value==null){(m=o.onActivateFirst)==null||m.call(o);return}(f=o.onActivateNext)==null||f.call(o,o.activeOption.value);break;case"Home":i.preventDefault(),(h=o.onActivateFirst)==null||h.call(o);break;case"End":i.preventDefault(),(_=o.onActivateLast)==null||_.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 u=i.selected??!1;return{id:l(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":n.value?u:void 0,"aria-selected":n.value?void 0:u,onClick:()=>{var d;return!i.disabled&&((d=o.onSelect)==null?void 0:d.call(o,i.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ke=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ge=["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=>So(o,t)),Do=P(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:c,activeOption:i,onToggle:u,onSelect:d,onActivateFirst:p,onActivateLast:m,onActivateNext:f,onActivatePrevious:h,templateRef:_})=>{const T=N("comboBox-control"),x=e.computed(()=>e.unref(n)),B=e.computed(()=>e.unref(c)),$=e.computed(()=>e.unref(r)),A=v=>{const oe=v.target;x.value!=="none"&&(t==null||t(oe.value))},X=Ze(v=>l==null?void 0:l(v)),R=v=>{d==null||d(v),e.unref($)||u==null||u()},W=v=>{switch(v.key){case"ArrowUp":if(v.preventDefault(),i.value==null)return m==null?void 0:m();h==null||h(i.value);break;case"ArrowDown":if(v.preventDefault(),i.value==null)return p==null?void 0:p();f==null||f(i.value);break;case"Home":v.preventDefault(),p==null||p();break;case"End":v.preventDefault(),m==null||m();break}},J=v=>{if(v.key==="Enter"&&v.preventDefault(),!B.value&&ce(v,Ke))return u==null||u(),v.key===" "&&v.preventDefault(),v.key==="End"?m==null?void 0:m():p==null?void 0:p();if(Lo(v,$.value))return R(i.value);if(B.value&&ce(v,Ge))return u==null?void 0:u();if(x.value==="none"&&ie(v.key))return!B.value&&(u==null||u()),X(v);if(x.value!=="none"&&ie(v.key)){!B.value&&(u==null||u());return}return W(v)},z=x.value!=="none"?{"aria-autocomplete":x.value,type:"text"}:null,{elements:{option:F,group:Q,listbox:ee},internals:{getOptionId:te}}=Oo({label:s,multiple:$,controlled:!0,activeOption:i,onSelect:R});return Ue({element:_,onOutsideClick(){B.value&&(u==null||u(!0))}}),{elements:{option:F,group:Q,listbox:e.computed(()=>({...ee.value,id:T,onMousedown:v=>v.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":B.value,"aria-controls":T,"aria-label":e.unref(a),"aria-activedescendant":i.value!=null?te(i.value):void 0,onInput:A,onKeydown:J,...z})),button:e.computed(()=>({tabindex:"-1",onClick:()=>u==null?void 0:u()}))}}}),Po=P(({isExpanded:o,onToggle:n})=>{const t=N("menu-button-root"),l=N("menu-button-list"),r=e.ref(),a=N("menu-button-button");Fe({type:"keydown",listener:u=>u.key==="Escape"&&o.value&&n(),disabled:e.computed(()=>!o.value)});const s=qe(u=>o.value!==u&&n(),200),c=u=>{const d=document.activeElement,p=(d==null?void 0:d.closest('[role="menu"]'))||r.value;if(!p)return;const m=[...p.querySelectorAll('[role="menuitem"]')];let f=0;if(d){const _=m.indexOf(d);switch(u){case"next":f=_+1;break;case"prev":f=_-1;break;case"first":f=0;break;case"last":f=m.length-1;break}}const h=m[f];h==null||h.focus()};return{elements:{root:{id:t,onKeydown:u=>{switch(u.key){case"ArrowDown":case"ArrowRight":u.preventDefault(),c("next");break;case"ArrowUp":case"ArrowLeft":u.preventDefault(),c("prev");break;case"Home":u.preventDefault(),c("first");break;case"End":u.preventDefault(),c("last");break;case" ":u.preventDefault(),u.target.click();break;case"Escape":u.preventDefault(),o.value&&n();break}},onMouseover:()=>s(!0),onMouseout:()=>s(!1),onFocusout:u=>{var d;(d=document.getElementById(t))!=null&&d.contains(u.relatedTarget)||o.value&&n()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":o.value,"aria-haspopup":!0,onFocus:()=>!o.value&&n(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>o.value&&n()},...je().elements}}}),je=P(()=>({elements:{listItem:{role:"none"},menuItem:o=>({"aria-current":o.active?"page":void 0,"aria-disabled":o.disabled,role:"menuitem"})}})),Ao={clamp:(o,n,t)=>Math.max(Math.min(o,t),n)},zo=P(({navigationName:o})=>{const n=N("nav"),t=()=>{const r=document.getElementById(n);return r?[...r.querySelectorAll("button[aria-expanded][aria-controls]")]:[]},l=(r,a)=>{const s=t(),c=s.indexOf(r);if(c===-1)return;const i=Ao.clamp(c+(a==="next"?1:-1),0,s.length-1);s[i].focus()};return{elements:{nav:{"aria-label":e.unref(o),id:n,onKeydown:r=>{switch(r.key){case"ArrowRight":l(r.target,"next");break;case"ArrowLeft":l(r.target,"previous");break}}}}}}),Ho=P(o=>{const n=e.ref(),t=N("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),u=()=>{l.value=!l.value},d=e.computed(()=>{if(s.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1}}),p=m=>{m.key==="Escape"&&(l.value=!1)};return Ue({element:n,onOutsideClick:()=>l.value=!1,disabled:e.computed(()=>s.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",p)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",p)}),{elements:{root:{ref:n},trigger:e.computed(()=>({"aria-describedby":t,onClick:s.value==="click"?u:void 0,...d.value})),tooltip:e.computed(()=>({role:"tooltip",id:t,tabindex:"-1",...d.value}))},state:{isVisible:i}}}),ye=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}}=Ho({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(g,{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))}}),Ro=["aria-label"],Z=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=C();return(l,r)=>(e.openBlock(),e.createBlock(ye,{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(g,{icon:e.unref(He)},null,8,["icon"])],8,Ro)]),_:1},8,["text","position"]))}}),Fo={key:0,class:"onyx-form-element__label onyx-text--small"},Uo=["for"],qo={key:1,class:"onyx-form-element__footer onyx-text--small"},Zo={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},Ko={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Go={key:4,class:"onyx-form-element__counter"},he=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:N("onyx-form-element")},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(o){const n=o,{t}=C(),{requiredMarkerClass:l,requiredTypeClass:r}=G(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,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("label",{for:n.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(n.label),9,Uo),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(Z,{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",{key:2,class:e.normalizeClass([n.required?void 0:e.unref(l)])},null,2))])),e.renderSlot(s.$slots,"default",{id:n.id}),n.message||(i=s.errorMessages)!=null&&i.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",qo,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",Zo,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(u=s.errorMessages)!=null&&u.longMessage?(e.openBlock(),e.createBlock(Z,{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",Ko,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0),n.messageTooltip?(e.openBlock(),e.createBlock(Z,{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",Go,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),jo={class:"onyx-input__wrapper"},Yo=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Xo=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},id:{},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}=b(t),c=e.computed({get:()=>t.modelValue,set:d=>l("update:modelValue",d)}),i=d=>{const p=d.target.value;l("change",p)},u=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(d,p)=>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(V,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(V,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(he,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:m})=>[e.createElementVNode("div",jo,[t.loading?(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:m,"onUpdate:modelValue":p[0]||(p[0]=f=>c.value=f),placeholder:t.placeholder,class:"onyx-input__native",type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:u.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:p[1]||(p[1]=f=>l("focus")),onBlur:p[2]||(p[2]=f=>l("blur"))},null,40,Yo),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Wo=["email","password","search","tel","text","url"],Jo=["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}))}}),Qo=["href","target","rel"],en=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}=C();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(j,e.normalizeProps(e.guardReactiveProps(t)),null,16)],8,Qo))}}),tn=["_self","_blank","_parent","_top"],Y=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}=b(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))}}),on='<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>',Ye=()=>{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}},nn=["aria-label"],ln=["aria-label"],Xe=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}=Ye(),{densityClass:c}=b(l),{t:i}=C(),u=e.ref(),d=e.computed({get:()=>l.modelValue,set:p=>r("update:modelValue",p??"")});return n({focus:()=>{var p;return(p=u.value)==null?void 0:p.focus()}}),(p,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:u,"onUpdate:modelValue":m[0]||(m[0]=f=>d.value=f),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,nn),[[e.vModelText,d.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]=f=>r("clear"))},[e.createVNode(g,{icon:e.unref(_e)},null,8,["icon"])],40,ln),e.createVNode(g,{class:"onyx-mini-search__icon",icon:e.unref(on)},null,8,["icon"])],16))}}),an='<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>',rn={class:"onyx-mobile-nav-button"},sn=["aria-label"],cn={class:"onyx-mobile-nav-button__flyout"},un={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",rn,[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(g,{icon:t.open?e.unref(an):t.icon},null,8,["icon"])],10,sn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",cn,[e.createElementVNode("div",un,[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)]))}}),dn=["aria-label"],pn=["src","alt"],mn={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},We=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),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,pn)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",mn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,dn))}}),fn=`<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"/>
@@ -133,7 +133,7 @@
133
133
  </clipPath>
134
134
  </defs>
135
135
  </svg>
136
- `,vn=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
136
+ `,hn=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
137
137
  <g clip-path="url(#clip0_4499_144816)">
138
138
  <path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="white"/>
139
139
  <g filter="url(#filter0_d_4499_144816)">
@@ -180,4 +180,4 @@
180
180
  </clipPath>
181
181
  </defs>
182
182
  </svg>
183
- `,_n={class:"onyx-color-scheme-dialog__subtitle onyx-text"},kn=["innerHTML"],xn=["autofocus","value","checked","aria-label"],gn={class:"onyx-text--small"},bn={class:"onyx-color-scheme-dialog__actions"},Je=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}=C(),s=e.computed(()=>[{value:"auto",image:hn,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:vn,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:yn,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),c=d=>{const i=d.target;r.value=i.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(d,i)=>(e.openBlock(),e.createBlock(Pe,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:i[1]||(i[1]=p=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(u,["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",_n,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,p=>(e.openBlock(),e.createElementBlock("label",{key:p.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:p.image},null,8,kn),e.createElementVNode("div",null,[e.createVNode(_e,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===p.value,value:p.value,checked:t.modelValue===p.value,"aria-label":p.label,required:""},null,8,xn)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",gn,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",bn,[e.createVNode(Z,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:i[0]||(i[0]=p=>l("close"))},null,8,["label"]),e.createVNode(Z,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),Bn='<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>',xe=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}}=je();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]=u=>l("click"))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["disabled","href"]))]),_:3},16,["selected","active","color","disabled"]))}}),Cn={class:"onyx-color-scheme-menu-item__value"},wn=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=e.ref(!1);return(s,c)=>(e.openBlock(),e.createBlock(xe,{class:"onyx-color-scheme-menu-item",onClick:c[2]||(c[2]=u=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(g,{icon:e.unref(Bn)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",Cn,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(Je,{"model-value":t.modelValue,open:a.value,onClose:c[0]||(c[0]=u=>a.value=!1),"onUpdate:modelValue":c[1]||(c[1]=u=>l("update:modelValue",u))},null,8,["model-value","open"])]))]),_:1}))}}),de=(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})},Vn=["aria-label"],ge=e.defineComponent({__name:"OnyxFlyoutMenu",props:{open:{type:Boolean,default:void 0},label:{}},emits:["update:open"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),a=de(e.toRef(()=>t.open),!1,i=>l("update:open",i)),{elements:{root:s,button:c,menu:u}}=Po({isExpanded:a,onToggle:()=>a.value=!a.value}),d=e.computed(()=>{var p;if(!r.default)return;const i=r.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",e.mergeProps({class:"onyx-flyout-menu"},e.unref(s)),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value),e.normalizeProps(e.guardReactiveProps(e.unref(c))),null,16)),r.options||r.header||r.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":t.label,class:e.normalizeClass({"onyx-flyout-menu__list--with-header":!!r.header,"onyx-flyout-menu__list--with-footer":!!r.footer,"onyx-flyout-menu__list":!0})},[e.renderSlot(i.$slots,"header"),r.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(u),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(i.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"footer")],10,Vn)),[[e.vShow,e.unref(a)]]):e.createCommentVNode("",!0)],16))}}),Sn='<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>',Nn=["aria-orientation"],Qe=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,Nn))}}),$n={role:"presentation"},Mn=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}=C(),r=e.useModel(o,"mobileChildrenOpen");return(a,s)=>(e.openBlock(),e.createElementBlock("li",$n,[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(Qe,{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(ge,{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"]))]))}}),On=["aria-label"],Tn={class:"onyx-truncation-ellipsis"},In=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),u=()=>{a!=null&&a.value&&c.value&&!s.value?s.value=!0:t.href&&l("click",t.href)};return(d,i)=>(e.openBlock(),e.createBlock(Mn,e.mergeProps({"mobile-children-open":s.value,"onUpdate:mobileChildrenOpen":i[0]||(i[0]=p=>s.value=p),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:u},[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("span",Tn,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(g,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(Sn)},null,8,["icon"])):e.createCommentVNode("",!0)],8,On)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Ln=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(xe,{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"]))}}),Dn=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)},et=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}},Pn=(o,n)=>{const{hours:t,minutes:l,seconds:r}=et(o),a=u=>u.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())??""},An=o=>{const{hours:n,minutes:t,seconds:l}=et(o);return`PT${n}H${t}M${l}S`},zn=["aria-label"],Hn={key:0,class:"onyx-timer__label"},Rn=["datetime"],Fn=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(o,{emit:n}){const t=o,l=n,{locale:r}=C(),{timeLeft:a,isEnded:s}=Dn(e.computed(()=>t.endTime)),c=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Pn(a.value,c.value));return e.watchEffect(()=>s.value&&l("timerEnded")),(d,i)=>(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",Hn,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(An)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,Rn)],8,zn))}}),Un={class:"onyx-user-menu__footer onyx-text--small"},qn=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),{t:l}=C();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"),t.footer?(e.openBlock(),e.createBlock(j,{key:0,class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"footer")]),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(ge,{key:1,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",Un,[e.renderSlot(r.$slots,"footer")])]),key:"0"}:void 0]),1032,["label"]))]))}}),Zn={class:"onyx-user-menu__trigger onyx-text",type:"button"},Kn={class:"onyx-truncation-ellipsis"},Gn={class:"onyx-user-menu__header"},jn={class:"onyx-truncation-ellipsis"},Yn={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},Xn={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},Wn={class:"onyx-user-menu__options"},Jn=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{},open:{type:Boolean}},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(qn,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(r)}]),"is-mobile":e.unref(r)},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",Zn,[e.createVNode(re,e.mergeProps(l.value,{size:"24px"}),null,16),e.createElementVNode("span",Kn,e.toDisplayString(n.username),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Gn,[e.createVNode(re,e.normalizeProps(e.guardReactiveProps(l.value)),null,16),e.createElementVNode("div",jn,[e.createElementVNode("div",Yn,e.toDisplayString(n.username),1),n.description?(e.openBlock(),e.createElementBlock("div",Xn,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.createElementVNode("div",Wn,[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"]))}}),Qn='<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>',el='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>',tl='<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>',ol=(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((u,{inlineSize:d})=>u+d,0),r.value=c.reduce((u,{blockSize:d})=>u+d,0)};return e.onBeforeMount(()=>{const s=new ResizeObserver(a);e.watch(o,(c,u)=>{u&&(s==null||s.unobserve(u)),c&&(s==null||s.observe(c,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>s.disconnect())}),{width:l,height:r}},tt={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},nl=["primary","secondary","neutral","danger","warning","success","info"],ll=["small","default","large"],al=["ellipsis","multiline"],rl=["horizontal","vertical"],sl={class:"onyx-nav-bar__content"},il={key:0,class:"onyx-nav-bar__mobile-page onyx-truncation-ellipsis"},cl={role:"menubar"},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}=ol(s),{t:u}=C(),{elements:{nav:d}}=zo({navigationName:e.toRef(()=>l.appName)}),i=e.ref(!1),p=e.ref(!1),m=e.computed(()=>{const h=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:tt[l.mobileBreakpoint];return c.value!==0&&c.value<h});return e.provide(z,m),n({closeMobileMenus:()=>{i.value=!1,p.value=!1}}),(h,y)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:s,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":m.value}])},[e.createElementVNode("div",sl,[m.value&&a.mobileActivePage&&!i.value&&!p.value?(e.openBlock(),e.createElementBlock("span",il,[e.renderSlot(h.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(We,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:y[0]||(y[0]=_=>{r("appAreaClick"),i.value=!1})},{default:e.withCtx(()=>[e.renderSlot(h.$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(u)("navigation.goBack"),icon:e.unref(Qn),color:"neutral",onClick:y[1]||(y[1]=_=>r("backButtonClick"))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[m.value?(e.openBlock(),e.createBlock(ue,{key:0,open:i.value,"onUpdate:open":[y[2]||(y[2]=_=>i.value=_),y[3]||(y[3]=_=>p.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(el),label:e.unref(u)("navigation.toggleBurgerMenu"),headline:e.unref(u)("navigation.navigationHeadline")},{default:e.withCtx(()=>[e.createElementVNode("nav",e.mergeProps({class:"onyx-nav-bar__nav--mobile"},e.unref(d)),[e.createElementVNode("ul",cl,[e.renderSlot(h.$slots,"default")])],16)]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",e.mergeProps({key:1,class:"onyx-nav-bar__nav"},e.unref(d)),[e.createElementVNode("ul",ul,[e.renderSlot(h.$slots,"default")])],16))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[m.value?(e.openBlock(),e.createElementBlock("div",dl,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",pl,[e.renderSlot(h.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(ue,{key:1,open:p.value,"onUpdate:open":[y[4]||(y[4]=_=>p.value=_),y[5]||(y[5]=_=>i.value=!1)],icon:e.unref(tl),label:e.unref(u)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",ml,[e.renderSlot(h.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",fl,[a.globalContextArea?e.renderSlot(h.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(h.$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"],pe=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}=b(t),s=c=>{const u=c.target.checked;l("change",u)};return(c,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(a)])},[e.createVNode(V,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(V,{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(O,{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:()=>M("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}=b(t),{requiredMarkerClass:r,requiredTypeClass:a}=K(t),s=n,c=(u,d)=>{u&&s("update:modelValue",d)};return(u,d)=>(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,(i,p)=>(e.openBlock(),e.createBlock(pe,e.mergeProps({key:i.value.toString(),ref_for:!0},i,{name:t.name,"custom-error":t.customError,checked:i.value===t.modelValue,required:t.required,truncation:i.truncation??t.truncation,onValidityChange:m=>p===0&&s("validityChange",m),onChange:m=>c(m,i.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,i=>(e.openBlock(),e.createBlock(pe,{id:`skeleton-${i}`,key:i,value:`skeleton-${i}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,bl))}}),ot=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}},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"},Sl=["readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],El=["aria-label","disabled"],nt=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}=Ye(),a=o,s=t,{t:c}=C(),{vCustomValidity:u,errorMessages:d}=D({props:a,emit:s}),i=e.computed(()=>a.modelValue?a.modelValue.length:0),p=e.computed(()=>{var B;const x=(B=a.modelValue)==null?void 0:B.length;if(!a.modelValue||!x)return"";if(x===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:x})}}),m=e.ref(!1),{densityClass:h}=b(a),y=e.ref();n({focus:()=>{var x;return(x=y.value)==null?void 0:x.focus()}}),e.watch(()=>a.showFocus,(x,B)=>{m.value||B&&x===!1&&(m.value=!0)});const _=Ke.concat(Ge),T=x=>{_.includes(x.key)||x.preventDefault()};return(x,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(V,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(V,{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(ve,e.mergeProps(a,{"error-messages":e.unref(d)}),{default:e.withCtx(()=>[e.createElementVNode("div",Vl,[a.loading?(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:y,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(d)&&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:p.value,autofocus:a.autofocus,onClick:B[0]||(B[0]=N=>s("click")),onKeydown:T}),null,16,Sl),[[e.unref(u)]]),a.textMode==="preview"&&i.value>0?(e.openBlock(),e.createBlock(ye,{key:1,text:p.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode($e,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.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(g,{icon:e.unref(wl)},null,8,["icon"])],8,El)])]),_:1},16,["error-messages"])],16))}}),Nl=["checked","aria-labelledby","disabled","indeterminate"],me=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(g,{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}=b(t),a=e.useSlots(),{t:s}=C(),c=de(e.toRef(()=>t.searchTerm),"",f=>l("update:searchTerm",f)),u=de(e.toRef(()=>t.open),!1,f=>l("update:open",f)),d=e.ref(),i=e.ref(),p=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),m=e.ref(),h=e.ref();e.watch(p,()=>{var f;t.multiple||(i.value=(f=p.value.at(0))==null?void 0:f.value)},{immediate:!0});const y=M("ONYX_CHECK_ALL"),_=e.computed(()=>(t.multiple&&t.withCheckAll&&!c.value?[y]:[]).concat(Be.value)),T=async f=>{var k,w;if(t.readonly){u.value=!1;return}u.value=!u.value,u.value?(await e.nextTick(),(w=m.value)==null||w.focus()):(c.value&&(c.value=""),f||(k=h.value)==null||k.focus())},x=()=>i.value=_.value.at(0),B=()=>i.value=_.value.at(-1),N=f=>{const k=_.value.findIndex(w=>w===f);k<_.value.length-1&&(i.value=_.value[k+1])},Y=f=>{const k=_.value.findIndex(w=>w===f);k>0&&(i.value=_.value[k-1])},X=f=>{const k=t.options.find(w=>w.label.toLowerCase().trim().startsWith(f.toLowerCase()));k&&(i.value=k.value)},H=f=>c.value=f,W=f=>{var $;if(f===y){($=F.value)==null||$.handleChange(!F.value.state.value.modelValue);return}const k=t.options.find(({value:S})=>S===f);if(!k)return;if(!t.multiple)return l("update:modelValue",k);p.value.some(({value:S})=>S===f)?l("update:modelValue",p.value.filter(({value:S})=>S!==f)):l("update:modelValue",[...p.value,k])},J=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:A,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(()=>i.value),multiple:e.computed(()=>t.multiple),isExpanded:u,templateRef:d,onToggle:T,onActivateFirst:x,onActivateLast:B,onActivateNext:N,onActivatePrevious:Y,onTypeAhead:X,onAutocomplete:H,onSelect:W}),te=e.computed(()=>ao(t.options,"group")),{vScrollEnd:v,isScrollEnd:oe}=ot({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(()=>p.value.map(({value:f})=>f)),f=>{const k=f.map(w=>t.options.find(({value:$})=>$===w)).filter(w=>w!=null);l("update:modelValue",k)})}),Ce=e.computed(()=>{var k;if(!t.multiple)return"";const f=s.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?f:((k=t.withCheckAll)==null?void 0:k.label)??f});e.watchEffect(()=>{oe.value&&l("lazyLoad")});const it=e.computed(()=>{const f={...t,modelValue:p.value};return t.withSearch?{...f,onKeydown:A.value.onKeydown}:{...f,...A.value}});return(f,k)=>{var w;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:d,class:"onyx-select-wrapper"},[e.createVNode(nt,e.mergeProps({ref_key:"selectInput",ref:h},it.value,{"show-focus":e.unref(u),autofocus:t.autofocus,onClick:T,onValidityChange:k[0]||(k[0]=$=>l("validityChange",$))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(u)?"onyx-select--open":""]),inert:!e.unref(u),"aria-busy":t.loading},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ml,[t.withSearch?(e.openBlock(),e.createBlock(Xe,e.mergeProps({key:0,ref_key:"miniSearch",ref:m},e.unref(A),{label:e.unref(s)("select.searchInputLabel"),class:"onyx-select__search",onClear:k[1]||(k[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(he,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,($,S)=>{var we,Ve;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:S,class:"onyx-select__group",ref_for:!0},e.unref(Q)({label:S})),[S!=""?(e.openBlock(),e.createElementBlock("li",Il,e.toDisplayString(S),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll&&!e.unref(c)?(e.openBlock(),e.createBlock(me,e.mergeProps({key:1,ref_for:!0},e.unref(R)({value:e.unref(y),label:Ce.value,selected:(we=F.value)==null?void 0:we.state.value.modelValue}),{multiple:"",active:e.unref(y)===i.value,indeterminate:(Ve=F.value)==null?void 0:Ve.state.value.indeterminate,density:t.density,class:"onyx-select__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ce.value),1)]),_:1},16,["active","indeterminate","density"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($,E=>(e.openBlock(),e.createBlock(me,e.mergeProps({key:E.value.toString(),ref_for:!0},e.unref(R)({value:E.value,label:E.label,disabled:E.disabled,selected:p.value.some(({value:ct})=>ct===E.value)}),{multiple:t.multiple,active:E.value===i.value,icon:E.icon,density:t.density,truncation:E.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"option",e.mergeProps({ref_for:!0},E),()=>[e.createTextVNode(e.toDisplayString(E.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16)}),128))],16),(w=t.lazyLoading)!=null&&w.loading?(e.openBlock(),e.createElementBlock("div",Ll,[e.createVNode(O,{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(v)]])],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}=b(t),{vCustomValidity:c}=D({props:t,emit:l}),u=e.computed({get:()=>t.modelValue,set:d=>{l("update:modelValue",d)}});return(d,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",Hl,[e.createVNode(V,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{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":i[0]||(i[0]=p=>u.value=p),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,u.value],[e.unref(c)]]),e.createElementVNode("span",Ul,[e.createElementVNode("span",ql,[e.createElementVNode("span",Zl,[t.loading?(e.openBlock(),e.createBlock(e.unref(O),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(g),{key:1,icon:u.value?e.unref(zl):e.unref(ke)},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}=C(),{densityClass:r}=b(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(he,null,{icon:e.withCtx(()=>[e.createVNode(g,{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}=b(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(g,{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}=b(t),c=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),u=p=>{const m=p.target.value;l("change",m)},d=e.computed(()=>{if(!t.autosize)return;const p=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[p?`--min-autosize-rows: ${p}`:"",`--max-autosize-rows: ${m??"unset"}`]}),i=p=>{var h;const m=p.target;(h=m.parentElement)==null||h.setAttribute("data-autosize-value",m.value)};return(p,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(d.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(V,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(d.value)},[e.createVNode(ve,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:i,onChange:u,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"},lt=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}=C(),{densityClass:a}=b(t),s=e.computed(()=>t.duration>0),c={neutral:He,danger:Ae,warning:sa,success:ia},u=e.computed(()=>{if(t.icon!==!1)return t.icon||c[t.color]});return(d,i)=>(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:i[2]||(i[2]=p=>t.clickable&&l("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",ca,[u.value?(e.openBlock(),e.createBlock(g,{key:0,icon:u.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:i[0]||(i[0]=p=>l("close"))},[e.createVNode(g,{icon:e.unref(ke)},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:i[1]||(i[1]=p=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),be=Symbol(),at=()=>{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}},rt=()=>{const o=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(be,()=>({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=rt();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(lt,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(()=>C());e.watchEffect(()=>st(t.t.value("optional"))),n.provide(be,at())}}),st=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=Qo;exports.BUTTON_COLORS=Ht;exports.BUTTON_MODES=Rt;exports.BUTTON_TYPES=zt;exports.DENSITIES=xt;exports.DIRECTIONS=rl;exports.HEADLINE_TYPES=bo;exports.ICON_SIZES=Bo;exports.INPUT_TYPES=Jo;exports.LINK_TARGETS=on;exports.MOBILE_NAV_BAR_INJECTION_KEY=z;exports.MULTISELECT_TEXT_MODE=Al;exports.ONYX_BREAKPOINTS=tt;exports.ONYX_COLORS=nl;exports.OnyxAppLayout=ft;exports.OnyxAvatar=re;exports.OnyxAvatarStack=kt;exports.OnyxBadge=$e;exports.OnyxButton=Z;exports.OnyxCheckbox=U;exports.OnyxCheckboxGroup=yo;exports.OnyxColorSchemeDialog=Je;exports.OnyxColorSchemeMenuItem=wn;exports.OnyxDialog=Pe;exports.OnyxEmpty=he;exports.OnyxExternalLinkIcon=G;exports.OnyxFlyoutMenu=ge;exports.OnyxHeadline=I;exports.OnyxIcon=g;exports.OnyxIconButton=ze;exports.OnyxInfoTooltip=q;exports.OnyxInput=Wo;exports.OnyxLink=tn;exports.OnyxListItem=j;exports.OnyxLoadingIndicator=O;exports.OnyxMenuItem=xe;exports.OnyxMiniSearch=Xe;exports.OnyxMobileNavButton=ue;exports.OnyxNavAppArea=We;exports.OnyxNavBar=hl;exports.OnyxNavButton=In;exports.OnyxNavItem=Ln;exports.OnyxNavSeparator=Qe;exports.OnyxPageLayout=kl;exports.OnyxRadioButton=pe;exports.OnyxRadioGroup=Cl;exports.OnyxSelect=Pl;exports.OnyxSelectInput=nt;exports.OnyxSelectOption=me;exports.OnyxSkeleton=V;exports.OnyxSwitch=Gl;exports.OnyxTable=ta;exports.OnyxTag=na;exports.OnyxTextarea=ra;exports.OnyxTimer=Fn;exports.OnyxToast=ya;exports.OnyxToastMessage=lt;exports.OnyxTooltip=ye;exports.OnyxUserMenu=Jn;exports.OnyxVisuallyHidden=_e;exports.TEXT_SIZES=ll;exports.TOAST_PROVIDER_INJECTION_KEY=be;exports.TOOLTIP_POSITIONS=va;exports.TRUNCATION_TYPES=al;exports.createOnyx=_a;exports.createToastProvider=at;exports.normalizedIncludes=ka;exports.provideI18n=Te;exports.syncGlobalOptionalText=st;exports.useDensity=b;exports.useScrollEnd=ot;exports.useToast=rt;
183
+ `,vn={class:"onyx-color-scheme-dialog__subtitle onyx-text"},_n=["innerHTML"],kn=["autofocus","value","checked","aria-label"],xn={class:"onyx-text--small"},gn={class:"onyx-color-scheme-dialog__actions"},Je=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}=C(),s=e.computed(()=>[{value:"auto",image:fn,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:yn,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),c=u=>{const d=u.target;r.value=d.value},i=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(u,d)=>(e.openBlock(),e.createBlock(Pe,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:d[1]||(d[1]=p=>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",vn,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,p=>(e.openBlock(),e.createElementBlock("label",{key:p.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:p.image},null,8,_n),e.createElementVNode("div",null,[e.createVNode(ve,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===p.value,value:p.value,checked:t.modelValue===p.value,"aria-label":p.label,required:""},null,8,kn)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",xn,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",gn,[e.createVNode(K,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:d[0]||(d[0]=p=>l("close"))},null,8,["label"]),e.createVNode(K,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),bn='<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}}=je();return(s,c)=>(e.openBlock(),e.createBlock(Y,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"},Cn=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),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(g,{icon:e.unref(bn)},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(Je,{"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}))}}),wn=["aria-label"],xe=e.defineComponent({__name:"OnyxFlyoutMenu",props:e.mergeModels({label:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(o){const n=o,t=e.useModel(o,"open"),l=e.useSlots(),{elements:{root:r,button:a,menu:s}}=Po({isExpanded:t,onToggle:()=>t.value=!t.value}),c=e.computed(()=>{var u;if(!l.default)return;const i=l.default().at(0);return(i==null?void 0:i.type.toString())==="Symbol(v-fgt)"?Array.isArray(i==null?void 0:i.children)?(u=i==null?void 0:i.children)==null?void 0:u.at(0):void 0:i});return(i,u)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-flyout-menu"},e.unref(r)),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.normalizeProps(e.guardReactiveProps(e.unref(a))),null,16)),l.options||l.header||l.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":n.label,class:e.normalizeClass({"onyx-flyout-menu__list--with-header":!!l.header,"onyx-flyout-menu__list--with-footer":!!l.footer,"onyx-flyout-menu__list":!0})},[e.renderSlot(i.$slots,"header"),l.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(s),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(i.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"footer")],10,wn)),[[e.vShow,t.value]]):e.createCommentVNode("",!0)],16))}}),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>',H=Symbol(),Sn='<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>',En=["aria-orientation"],Qe=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(o){const n=o,t=e.inject(H);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,En))}}),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}=C(),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(K,{key:0,label:e.unref(l)("back"),mode:"plain",color:"neutral",icon:e.unref(Sn),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(Qe,{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(H),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(u,d)=>(e.openBlock(),e.createBlock($n,e.mergeProps({"mobile-children-open":s.value,"onUpdate:mobileChildrenOpen":d[0]||(d[0]=p=>s.value=p),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(u.$slots,"default",{},()=>[e.createElementVNode("span",On,e.toDisplayString(t.label),1),e.createVNode(j,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!s.value?(e.openBlock(),e.createBlock(g,{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(u.$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(j,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)},et=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}=et(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}=et(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}=C(),{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")),(u,d)=>(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:e.mergeModels({isMobile:{type:Boolean}},{flyoutOpen:{type:Boolean,default:!1},flyoutOpenModifiers:{}}),emits:["update:flyoutOpen"],setup(o){const n=o,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),{t:r}=C();return(a,s)=>(e.openBlock(),e.createElementBlock("div",null,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(a.$slots,"header"),e.renderSlot(a.$slots,"options"),l.footer?(e.openBlock(),e.createBlock(Y,{key:0,class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(xe,{key:1,label:e.unref(r)("navigation.userMenuLabel"),open:t.value},e.createSlots({header:e.withCtx(()=>[e.renderSlot(a.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"button")]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Fn,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["label","open"]))]))}}),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:e.mergeModels({username:{},avatar:{},description:{}},{flyoutOpen:{type:Boolean,default:!1},flyoutOpenModifiers:{}}),emits:["update:flyoutOpen"],setup(o){const n=o,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),r=e.computed(()=>({src:n.avatar,label:n.username})),a=e.inject(H,e.computed(()=>!1));return(s,c)=>(e.openBlock(),e.createBlock(Un,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(a)}]),"is-mobile":e.unref(a),"flyout-open":t.value},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",qn,[e.createVNode(re,e.mergeProps(r.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(r.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(s.$slots,"default")])]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile","flyout-open"]))}}),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:u})=>i+u,0),r.value=c.reduce((i,{blockSize:u})=>i+u,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}},tt={"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={role:"menubar"},cl={role:"menubar"},ul={key:0,class:"onyx-nav-bar__mobile-context"},dl={key:0,class:"onyx-nav-bar__mobile-global-context"},pl={class:"onyx-nav-bar__mobile-context-content"},ml={key:1,class:"onyx-nav-bar__context"},fl=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}=C(),{elements:{nav:u}}=zo({navigationName:e.toRef(()=>l.appName)}),d=e.ref(!1),p=e.ref(!1),m=e.computed(()=>{const f=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:tt[l.mobileBreakpoint];return c.value!==0&&c.value<f});return e.provide(H,m),n({closeMobileMenus:()=>{d.value=!1,p.value=!1}}),(f,h)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:s,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":m.value}])},[e.createElementVNode("div",rl,[m.value&&a.mobileActivePage&&!d.value&&!p.value?(e.openBlock(),e.createElementBlock("span",sl,[e.renderSlot(f.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(We,{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"),d.value=!1})},{default:e.withCtx(()=>[e.renderSlot(f.$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},[m.value?(e.openBlock(),e.createBlock(ue,{key:0,open:d.value,"onUpdate:open":[h[2]||(h[2]=_=>d.value=_),h[3]||(h[3]=_=>p.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",e.mergeProps({class:"onyx-nav-bar__nav--mobile"},e.unref(u)),[e.createElementVNode("ul",il,[e.renderSlot(f.$slots,"default")])],16)]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",e.mergeProps({key:1,class:"onyx-nav-bar__nav"},e.unref(u)),[e.createElementVNode("ul",cl,[e.renderSlot(f.$slots,"default")])],16))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[m.value?(e.openBlock(),e.createElementBlock("div",ul,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(f.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(ue,{key:1,open:p.value,"onUpdate:open":[h[4]||(h[4]=_=>p.value=_),h[5]||(h[5]=_=>d.value=!1)],icon:e.unref(el),label:e.unref(i)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",pl,[e.renderSlot(f.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ml,[a.globalContextArea?e.renderSlot(f.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(f.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),yl={key:0,class:"onyx-page__sidebar"},hl={class:"onyx-page__main"},vl={key:1,class:"onyx-page__footer"},_l=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",hl,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",vl,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),kl=["title"],xl=["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}=b(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(V,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(V,{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(O,{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,xl)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,kl))}}),gl=["disabled"],bl={key:0,class:"onyx-radio-button-group__headline"},Bl=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},truncation:{default:"ellipsis"},options:{},name:{default:()=>N("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}=b(t),{requiredMarkerClass:r,requiredTypeClass:a}=G(t),s=n,c=(i,u)=>{i&&s("update:modelValue",u)};return(i,u)=>(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,(d,p)=>(e.openBlock(),e.createBlock(de,e.mergeProps({key:d.value.toString(),ref_for:!0},d,{name:t.name,"custom-error":t.customError,checked:d.value===t.modelValue,required:t.required,truncation:d.truncation??t.truncation,onValidityChange:m=>p===0&&s("validityChange",m),onChange:m=>c(m,d.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,d=>(e.openBlock(),e.createBlock(de,{id:`skeleton-${d}`,key:d,value:`skeleton-${d}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,gl))}}),ot=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}},Ee=(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})},Cl='<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>',wl={class:"onyx-select-input__wrapper"},Vl=["id","readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],Sl=["aria-label","disabled"],nt=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},modelValue:{},textMode:{},autofocus:{type:Boolean},id:{},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}=Ye(),a=o,s=t,{t:c}=C(),{vCustomValidity:i,errorMessages:u}=D({props:a,emit:s}),d=e.computed(()=>a.modelValue?a.modelValue.length:0),p=e.computed(()=>{var B;const x=(B=a.modelValue)==null?void 0:B.length;if(!a.modelValue||!x)return"";if(x===1)return a.modelValue[0].label;switch(a.textMode){case"preview":return a.modelValue.map(({label:$})=>$).join(", ");case"summary":default:return c.value("selections.currentSelection",{n:x})}}),m=e.ref(!1),{densityClass:f}=b(a),h=e.ref();n({focus:()=>{var x;return(x=h.value)==null?void 0:x.focus()}}),e.watch(()=>a.showFocus,(x,B)=>{m.value||B&&x===!1&&(m.value=!0)});const _=Ke.concat(Ge),T=x=>{_.includes(x.key)||x.preventDefault()};return(x,B)=>a.skeleton?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(f)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(V,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(f),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(he,e.mergeProps(a,{"error-messages":e.unref(u)}),{default:e.withCtx(({id:$})=>[e.createElementVNode("div",wl,[a.loading?(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:$,ref_key:"input",ref:h,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(u)&&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:p.value,autofocus:a.autofocus,onClick:B[0]||(B[0]=A=>s("click")),onKeydown:T}),null,16,Vl),[[e.unref(i)]]),a.textMode==="preview"&&d.value>0?(e.openBlock(),e.createBlock(ye,{key:1,text:p.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode($e,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.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]=A=>s("click"))},[e.createVNode(g,{icon:e.unref(Cl)},null,8,["icon"])],8,Sl)])]),_:1},16,["error-messages"])],16))}}),El=["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(Y,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,El)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createBlock(g,{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"]))}}),Nl=["inert","aria-busy"],$l={class:"onyx-select__wrapper",tabindex:"-1"},Ml={key:0,role:"group",class:"onyx-select__group"},Ol={role:"option","aria-selected":"false"},Tl={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},Il={key:1,class:"onyx-select__slot"},Ll={key:2,class:"onyx-select__slot"},Dl=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},id:{},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}=b(t),a=e.useSlots(),{t:s}=C(),c=Ee(e.toRef(()=>t.searchTerm),"",y=>l("update:searchTerm",y)),i=Ee(e.toRef(()=>t.open),!1,y=>l("update:open",y)),u=e.ref(),d=e.ref(),p=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),m=e.ref(),f=e.ref();e.watch(p,()=>{var y;t.multiple||(d.value=(y=p.value.at(0))==null?void 0:y.value)},{immediate:!0});const h=N("ONYX_CHECK_ALL"),_=e.computed(()=>(t.multiple&&t.withCheckAll&&!c.value?[h]:[]).concat(be.value)),T=async y=>{var k,w;if(t.readonly){i.value=!1;return}i.value=!i.value,i.value?(await e.nextTick(),(w=m.value)==null||w.focus()):(c.value&&(c.value=""),y||(k=f.value)==null||k.focus())},x=()=>d.value=_.value.at(0),B=()=>d.value=_.value.at(-1),$=y=>{const k=_.value.findIndex(w=>w===y);k<_.value.length-1&&(d.value=_.value[k+1])},A=y=>{const k=_.value.findIndex(w=>w===y);k>0&&(d.value=_.value[k-1])},X=y=>{const k=t.options.find(w=>w.label.toLowerCase().trim().startsWith(y.toLowerCase()));k&&(d.value=k.value)},R=y=>c.value=y,W=y=>{var M;if(y===h){(M=U.value)==null||M.handleChange(!U.value.state.value.modelValue);return}const k=t.options.find(({value:S})=>S===y);if(!k)return;if(!t.multiple)return l("update:modelValue",k);p.value.some(({value:S})=>S===y)?l("update:modelValue",p.value.filter(({value:S})=>S!==y)):l("update:modelValue",[...p.value,k])},J=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:z,option:F,group:Q,listbox:ee}}=Do({autocomplete:J,label:t.label,listLabel:t.listLabel,inputValue:e.computed(()=>t.withSearch&&c.value||""),activeOption:e.computed(()=>d.value),multiple:e.computed(()=>t.multiple),isExpanded:i,templateRef:u,onToggle:T,onActivateFirst:x,onActivateLast:B,onActivateNext:$,onActivatePrevious:A,onTypeAhead:X,onAutocomplete:R,onSelect:W}),te=e.computed(()=>ao(t.options,"group")),{vScrollEnd:v,isScrollEnd:oe}=ot({enabled:e.computed(()=>{var y;return((y=t.lazyLoading)==null?void 0:y.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var y;return(y=t.lazyLoading)==null?void 0:y.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(y=>!y.disabled).map(({value:y})=>y)),U=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return De(be,e.computed(()=>p.value.map(({value:y})=>y)),y=>{const k=y.map(w=>t.options.find(({value:M})=>M===w)).filter(w=>w!=null);l("update:modelValue",k)})}),Be=e.computed(()=>{var k;if(!t.multiple)return"";const y=s.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?y:((k=t.withCheckAll)==null?void 0:k.label)??y});e.watchEffect(()=>{oe.value&&l("lazyLoad")});const it=e.computed(()=>{const y={...t,modelValue:p.value};return t.withSearch?{...y,onKeydown:z.value.onKeydown}:{...y,...z.value}});return(y,k)=>{var w;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:u,class:"onyx-select-wrapper"},[e.createVNode(nt,e.mergeProps({ref_key:"selectInput",ref:f},it.value,{"show-focus":e.unref(i),autofocus:t.autofocus,onClick:T,onValidityChange:k[0]||(k[0]=M=>l("validityChange",M))}),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",$l,[t.withSearch?(e.openBlock(),e.createBlock(Xe,e.mergeProps({key:0,ref_key:"miniSearch",ref:m},e.unref(z),{label:e.unref(s)("select.searchInputLabel"),class:"onyx-select__search",onClear:k[1]||(k[1]=M=>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",Ml,[e.createElementVNode("li",Ol,[e.renderSlot(y.$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,(M,S)=>{var Ce,we;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:S,class:"onyx-select__group",ref_for:!0},e.unref(Q)({label:S})),[S!=""?(e.openBlock(),e.createElementBlock("li",Tl,e.toDisplayString(S),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(F)({value:e.unref(h),label:Be.value,selected:(Ce=U.value)==null?void 0:Ce.state.value.modelValue}),{multiple:"",active:e.unref(h)===d.value,indeterminate:(we=U.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(M,E=>(e.openBlock(),e.createBlock(pe,e.mergeProps({key:E.value.toString(),ref_for:!0},e.unref(F)({value:E.value,label:E.label,disabled:E.disabled,selected:p.value.some(({value:ct})=>ct===E.value)}),{multiple:t.multiple,active:E.value===d.value,icon:E.icon,density:t.density,truncation:E.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"option",e.mergeProps({ref_for:!0},E),()=>[e.createTextVNode(e.toDisplayString(E.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16)}),128))],16),(w=t.lazyLoading)!=null&&w.loading?(e.openBlock(),e.createElementBlock("div",Il,[e.createVNode(O,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),a.optionsEnd?(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(y.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(v)]])],10,Nl)],512)}}}),Pl=["summary","preview"],Al='<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>',zl={class:"onyx-switch-skeleton__click-area"},Hl=["title"],Rl=["aria-label","disabled","required","autofocus"],Fl={class:"onyx-switch__click-area"},Ul={class:"onyx-switch__container"},ql={class:"onyx-switch__icon"},Zl=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),Kl=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}=G(t),{densityClass:s}=b(t),{vCustomValidity:c}=D({props:t,emit:l}),i=e.computed({get:()=>t.modelValue,set:u=>{l("update:modelValue",u)}});return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",zl,[e.createVNode(V,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{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":d[0]||(d[0]=p=>i.value=p),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,Rl),[[e.vModelCheckbox,i.value],[e.unref(c)]]),e.createElementVNode("span",Fl,[e.createElementVNode("span",Ul,[e.createElementVNode("span",ql,[t.loading?(e.openBlock(),e.createBlock(e.unref(O),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(g),{key:1,icon:i.value?e.unref(Al):e.unref(_e)},null,8,["icon"]))]),Zl])]),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,Hl))}}),Gl='<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>',jl={class:"onyx-table-wrapper"},Yl=["tabindex"],Xl={key:0,class:"onyx-table__header"},Wl={class:"onyx-table__empty"},Jl={colspan:"100%"},Ql={class:"onyx-table__empty-content"},ea=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}=C(),{densityClass:r}=b(n),a=e.computed(()=>l.value("table.empty"));return(s,c)=>(e.openBlock(),e.createElementBlock("div",jl,[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",Xl,[e.renderSlot(s.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("tr",Wl,[e.createElementVNode("td",Jl,[e.createElementVNode("div",Ql,[e.renderSlot(s.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(fe,null,{icon:e.withCtx(()=>[e.createVNode(g,{icon:e.unref(Gl),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,Yl)]))}}),ta={class:"onyx-text onyx-truncation-ellipsis"},oa=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(o){const n=o,{densityClass:t}=b(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(g,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",ta,e.toDisplayString(n.label),1)],2))}}),na=["data-autosize-value"],la=["id","placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],aa=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}=b(t),c=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),i=p=>{const m=p.target.value;l("change",m)},u=e.computed(()=>{if(!t.autosize)return;const p=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[p?`--min-autosize-rows: ${p}`:"",`--max-autosize-rows: ${m??"unset"}`]}),d=p=>{var f;const m=p.target;(f=m.parentElement)==null||f.setAttribute("data-autosize-value",m.value)};return(p,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(u.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(V,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(u.value)},[e.createVNode(he,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:f})=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":c.value},[e.withDirectives(e.createElementVNode("textarea",{id:f,"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:d,onChange:i,onFocus:m[1]||(m[1]=h=>l("focus")),onBlur:m[2]||(m[2]=h=>l("blur"))},null,42,la),[[e.vModelText,c.value],[e.unref(r)]])],8,na)]),_:1},16,["error-messages"])],6))}}),ra='<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>',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 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>',ia={class:"onyx-toast-message__wrapper"},ca={class:"onyx-toast-message__content onyx-truncation-ellipsis"},ua={class:"onyx-toast-message__headline onyx-text"},da={class:"onyx-truncation-ellipsis"},pa=["aria-label"],ma={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},lt=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}=C(),{densityClass:a}=b(t),s=e.computed(()=>t.duration>0),c={neutral:He,danger:Ae,warning:ra,success:sa},i=e.computed(()=>{if(t.icon!==!1)return t.icon||c[t.color]});return(u,d)=>(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:d[2]||(d[2]=p=>t.clickable&&l("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",ia,[i.value?(e.openBlock(),e.createBlock(g,{key:0,icon:i.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",ca,[e.createElementVNode("div",ua,[e.createElementVNode("span",da,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:d[0]||(d[0]=p=>l("close"))},[e.createVNode(g,{icon:e.unref(_e)},null,8,["icon"])],8,pa))]),t.description?(e.openBlock(),e.createElementBlock("p",ma,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:d[1]||(d[1]=p=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),ge=Symbol(),at=()=>{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}},rt=()=>{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)},fa={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},ya=e.defineComponent({__name:"OnyxToast",setup(o){const n=rt();return(t,l)=>e.unref(n).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",fa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(lt,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),ha=["top","bottom"],va=(o={})=>({install:n=>{Te(n,o.i18n);const t=n.runWithContext(()=>C());e.watchEffect(()=>st(t.t.value("optional"))),n.provide(ge,at())}}),st=o=>{globalThis.document.body.style.setProperty("--onyx-global-optional-text",o)},_a=(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=Jo;exports.BUTTON_COLORS=Ht;exports.BUTTON_MODES=Rt;exports.BUTTON_TYPES=zt;exports.DENSITIES=xt;exports.DIRECTIONS=al;exports.HEADLINE_TYPES=bo;exports.ICON_SIZES=Bo;exports.INPUT_TYPES=Wo;exports.LINK_TARGETS=tn;exports.MOBILE_NAV_BAR_INJECTION_KEY=H;exports.MULTISELECT_TEXT_MODE=Pl;exports.ONYX_BREAKPOINTS=tt;exports.ONYX_COLORS=ol;exports.OnyxAppLayout=ft;exports.OnyxAvatar=re;exports.OnyxAvatarStack=kt;exports.OnyxBadge=$e;exports.OnyxButton=K;exports.OnyxCheckbox=q;exports.OnyxCheckboxGroup=ho;exports.OnyxColorSchemeDialog=Je;exports.OnyxColorSchemeMenuItem=Cn;exports.OnyxDialog=Pe;exports.OnyxEmpty=fe;exports.OnyxExternalLinkIcon=j;exports.OnyxFlyoutMenu=xe;exports.OnyxHeadline=I;exports.OnyxIcon=g;exports.OnyxIconButton=ze;exports.OnyxInfoTooltip=Z;exports.OnyxInput=Xo;exports.OnyxLink=en;exports.OnyxListItem=Y;exports.OnyxLoadingIndicator=O;exports.OnyxMenuItem=ke;exports.OnyxMiniSearch=Xe;exports.OnyxMobileNavButton=ue;exports.OnyxNavAppArea=We;exports.OnyxNavBar=fl;exports.OnyxNavButton=Tn;exports.OnyxNavItem=In;exports.OnyxNavSeparator=Qe;exports.OnyxPageLayout=_l;exports.OnyxRadioButton=de;exports.OnyxRadioGroup=Bl;exports.OnyxSelect=Dl;exports.OnyxSelectInput=nt;exports.OnyxSelectOption=pe;exports.OnyxSkeleton=V;exports.OnyxSwitch=Kl;exports.OnyxTable=ea;exports.OnyxTag=oa;exports.OnyxTextarea=aa;exports.OnyxTimer=Rn;exports.OnyxToast=ya;exports.OnyxToastMessage=lt;exports.OnyxTooltip=ye;exports.OnyxUserMenu=Wn;exports.OnyxVisuallyHidden=ve;exports.TEXT_SIZES=nl;exports.TOAST_PROVIDER_INJECTION_KEY=ge;exports.TOOLTIP_POSITIONS=ha;exports.TRUNCATION_TYPES=ll;exports.createOnyx=va;exports.createToastProvider=at;exports.normalizedIncludes=_a;exports.provideI18n=Te;exports.syncGlobalOptionalText=st;exports.useDensity=b;exports.useScrollEnd=ot;exports.useToast=rt;