sit-onyx 1.0.0-beta.18 → 1.0.0-beta.19

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