sit-onyx 1.0.0-alpha.89 → 1.0.0-alpha.91

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee={key:0,class:"onyx-app__nav"},te={class:"onyx-app__page"},oe={key:1,class:"onyx-app__page-overlay"},le={key:2,class:"onyx-app__app-overlay"},ne=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(l){const o=l,t=e.useSlots();return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":o.navBarAlignment==="left"}])},[e.unref(t).navBar?(e.openBlock(),e.createElementBlock("nav",ee,[e.renderSlot(n.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",te,[e.renderSlot(n.$slots,"default")]),e.unref(t).pageOverlay?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(n.$slots,"pageOverlay")])):e.createCommentVNode("",!0),e.unref(t).appOverlay?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(n.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),E=(l,o)=>{const t=l.__vccOpts||l;for(const[n,a]of o)t[n]=a;return t},ae={},re={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},se=e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M7.7126 20.42C8.39245 16.3491 8.24733 15.8529 8.46177 9.86296C8.7362 7.13713 9.95177 5.14965 11.5261 4.75449L12.6326 6.08751L11.7227 4.55053C12.0572 3.67381 13.4612 2.7234 15.7076 2.7234C17.954 2.7234 19.6603 3.23641 20.8263 4.26241C22.1059 5.33732 22.8411 7.20417 23.032 9.86296C23.3184 13.8511 23.032 13.5317 24.3354 20.42C24.3354 20.42 19.1332 21.6824 16 21.6824C12.8668 21.6824 7.7126 20.42 7.7126 20.42Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.628 18.0426C12.628 18.0426 13.3619 20.7045 12.5176 22.0378C12.5014 22.0634 12.1278 22.5375 11.4375 22.8864C10.7471 23.2353 8.33315 24.2808 8.52103 25.1845C8.81344 26.591 15.4768 29.2356 16.6848 29.2356C17.8233 29.2356 22.4527 26.7865 23.0783 25.9854C23.4763 25.4758 24.2143 24.6766 22.1396 23.6391C20.0648 22.6016 19.4176 22.0114 19.3897 21.976C18.045 20.2703 19.3002 18.0426 19.3002 18.0426H12.628Z" fill="var(--onyx-color-base-neutral-300)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9575 19.768C13.9494 18.7584 18.9921 18.7234 18.9921 18.7234C18.9921 18.7234 18.3146 20.5494 19.3838 22.0027C18.4711 22.3044 14.4774 21.7919 13.9575 19.768Z" fill="var(--onyx-color-base-neutral-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.9414 14.8039C20.2743 18.2173 17.7139 20.766 15.6596 20.766C13.6175 20.766 11.0754 18.2476 10.3899 14.865C10.3523 14.8262 10.307 14.7865 10.2589 14.7464L10.0875 14.605C9.97654 14.5108 9.88285 14.4178 9.8706 14.3329L9.85734 14.2325L9.82285 13.9274L9.79334 13.6313L9.76388 13.3006L9.74567 13.071L9.72958 12.8413L9.71646 12.6176C9.71268 12.5447 9.70953 12.4738 9.70716 12.406L9.7025 12.2126C9.7008 12.0607 9.70482 11.9343 9.71676 11.8491L9.72489 11.803C9.75301 11.5268 9.97889 11.4131 10.1782 11.3435L10.3683 11.2815C10.9504 7.9323 13.0986 5.44681 15.6596 5.44681C18.2251 5.44681 20.3764 7.94119 20.9539 11.2995L21.089 11.3435C21.2883 11.4131 21.5142 11.5268 21.5423 11.803L21.5505 11.8491C21.5624 11.9343 21.5664 12.0607 21.5647 12.2126L21.5601 12.406C21.5577 12.4738 21.5545 12.5447 21.5508 12.6176L21.5376 12.8413L21.5215 13.071L21.5033 13.3006L21.4739 13.6313L21.4444 13.9274L21.4099 14.2325L21.3966 14.3329C21.3844 14.4178 21.2907 14.5108 21.1797 14.605L21.0083 14.7464C20.9852 14.7657 20.9627 14.7849 20.9414 14.8039Z" fill="var(--onyx-color-base-neutral-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5957 6.25197C12.5957 6.25197 13.9429 8.11309 16.7332 8.53734C19.5235 8.9616 21.0872 11.9693 21.0872 11.9693V7.46426L18.2795 4.08511L14.1364 4.2428L12.5957 6.25197Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.059 8.85106C11.059 8.85106 10.5079 10.3222 10.6058 12.0604L10.2128 10.8208L11.059 8.85106Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M28.1789 32C28.2082 31.666 28.1072 30.6622 27.8758 28.9886C27.6445 27.3149 26.9978 26.1602 25.9357 25.5243C23.9262 24.4478 22.1369 23.5473 20.6204 22.8085C19.745 24.3665 18.5913 25.4162 16.023 25.4162C13.6459 25.4162 12.4215 24.3665 11.5461 22.8085C9.99887 23.5571 8.0305 24.4299 5.99283 25.5243C4.93072 26.1602 4.284 27.3149 4.05266 28.9886C3.82133 30.6622 3.72031 31.666 3.74963 32H15.928H28.1789Z" fill="var(--onyx-color-base-secondary-200)"></path>',7),ce=[se];function ie(l,o){return e.openBlock(),e.createElementBlock("svg",re,ce)}const de=E(ae,[["render",ie]]),ue={},pe={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},me=e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5685 21.4572C11.253 21.932 10.4345 22.4507 9.84162 22.7471C9.2487 23.0435 2.82416 26.5767 2.82416 26.5767C2.82416 26.5767 0.794243 27.7947 0.720107 30.2787C0.709887 30.6212 0.698905 30.9176 0.694107 31.1679C0.680851 31.8594 0.680851 32.0141 0.680851 32.0141H31.3895L31.2442 29.6918C31.2442 29.6918 30.889 27.3934 28.6023 26.2913C26.3155 25.1893 20.2345 21.4572 20.2345 21.4572C20.2345 21.4572 17.4118 24.1593 15.8793 24.1593C14.3469 24.1593 11.7052 21.2515 11.5685 21.4572Z" fill="var(--onyx-color-base-secondary-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.7258 17.3617C11.7258 17.3617 11.8979 20.8822 11.5824 21.357C11.4207 21.6003 13.7304 24.2858 15.9996 24.2858C18.2688 24.2858 20.5321 21.509 20.4208 21.1794C20.0737 20.1519 20.4208 17.3617 20.4208 17.3617H11.7258Z" fill="var(--onyx-color-base-neutral-300)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4188 21.1064L16 24.2497C16 24.2497 13.6169 25.2229 13.2467 26.7158C12.0077 24.6532 10.5532 22.2414 10.5532 22.2414L11.4188 21.1064Z" fill="var(--onyx-color-base-secondary-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.5812 21.1064L16 24.2497C16 24.2497 18.3831 25.2229 18.7533 26.7158C19.9923 24.6532 21.4468 22.2414 21.4468 22.2414L20.5812 21.1064Z" fill="var(--onyx-color-base-secondary-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.617 19.5099C13.6062 18.4404 20.467 17.2507 20.467 17.2507C20.467 17.2507 20.0286 19.5803 20.3919 21.2122C18.498 21.9839 14.5215 21.3903 13.617 19.5099Z" fill="var(--onyx-color-base-neutral-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21.3173 14.1806C21.1508 17.8679 17.8368 20.4255 15.6596 20.4255C13.4815 20.4255 10.4503 17.866 10.335 14.1765L10.1886 14.095C9.99952 13.9865 9.83987 13.8794 9.81899 13.7816L9.79638 13.666L9.73762 13.3146L9.68735 12.9736L9.63714 12.5927L9.60611 12.3283L9.5787 12.0638L9.55634 11.8061C9.54989 11.7222 9.54453 11.6406 9.54048 11.5624L9.53255 11.3397C9.52965 11.1648 9.5365 11.0192 9.55685 10.9211L9.5707 10.868C9.61862 10.5499 10.0035 10.4189 10.3432 10.3388L10.4302 10.3196C10.6165 7.46731 11.5182 5.44681 15.8298 5.44681C19.6102 5.44681 20.7949 7.45826 21.1424 10.3005L21.3164 10.3388C21.6561 10.4189 22.041 10.5499 22.0889 10.868L22.1027 10.9211C22.1231 11.0192 22.1299 11.1648 22.127 11.3397L22.1191 11.5624C22.115 11.6406 22.1097 11.7222 22.1032 11.8061L22.0809 12.0638L22.0535 12.3283L22.0224 12.5927L21.9722 12.9736L21.922 13.3146L21.8632 13.666L21.8406 13.7816C21.8197 13.8794 21.6601 13.9865 21.4709 14.095L21.3173 14.1806Z" fill="var(--onyx-color-base-neutral-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8836 6.22839C12.8836 6.22839 13.9368 8.00428 16.567 8.29001C19.1972 8.57574 20.5175 9.54588 20.6116 10.2494C20.7057 10.953 20.6116 12.5455 20.6116 12.5455C20.6116 12.5455 20.9477 10.5164 22.0392 10.5164C22.3522 8.09554 22.9941 7.61997 21.5209 5.51226C20.0478 3.40455 18.183 2.93846 18.183 2.93846C18.183 2.93846 16.7046 2.51203 14.6606 2.93115C13.342 3.20152 12.4818 3.72093 11.9846 4.57426C11.968 4.60282 12.7155 5.90621 12.7155 5.90621C12.7155 5.90621 11.8139 4.73575 11.7958 4.74343C10.3162 5.37011 9.59178 6.47205 9.547 8.08375C9.47899 10.5309 9.71761 10.4337 9.71761 10.4337C9.71761 10.4337 10.883 10.5156 11.0334 12.5455C11.0334 12.5455 10.5443 9.12183 11.5289 8.28377C12.5135 7.44571 12.8836 6.22839 12.8836 6.22839Z" fill="var(--onyx-color-base-neutral-500)"></path>',7),ye=[me];function fe(l,o){return e.openBlock(),e.createElementBlock("svg",pe,ye)}const ke=E(ue,[["render",fe]]),_e=["title"],ve=["src","alt"],he={key:2,class:"onyx-avatar__initials"},xe=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{},type:{default:"initials"}},setup(l){const o=l,t=e.useSlots(),n=e.computed(()=>{const r=o.label.split(" ");return(r.length>1?`${r[0].charAt(0)}${r[1].charAt(0)}`:r[0].substring(0,2)).toUpperCase()}),a=e.ref(!1);return e.watch(()=>o.src,()=>a.value=!1),(r,c)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${o.size}`,e.unref(t).default?"onyx-avatar--custom":""]]),title:o.label},[o.src&&!a.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:o.src,alt:o.label,onError:c[0]||(c[0]=u=>a.value=!0)},null,40,ve)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.type==="female"?(e.openBlock(),e.createBlock(de,{key:0,class:"onyx-avatar__svg"})):o.type==="male"?(e.openBlock(),e.createBlock(ke,{key:1,class:"onyx-avatar__svg"})):(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])]))],64))],10,_e))}}),be=["initials","female","male"],Ce={class:"onyx-avatar-stack"},ge=e.defineComponent({__name:"OnyxAvatarStack",setup(l){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ce,[e.renderSlot(o.$slots,"default")]))}}),Be=["compact","default","cozy"],h=l=>({densityClass:e.computed(()=>({[`onyx-density-${l.density}`]:l.density}))}),Ve=["innerHTML"],x=e.defineComponent({__name:"OnyxIcon",props:{size:{default:"24px"},icon:{},color:{default:"currentColor"}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-icon",[o.size!=="24px"?`onyx-icon--${o.size}`:"",o.color!=="currentColor"?`onyx-icon--${o.color}`:""]]),"aria-hidden":"true",innerHTML:o.icon},null,10,Ve))}}),Ee={},Se={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},we=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),Le=[we];function Te(l,o){return e.openBlock(),e.createElementBlock("svg",Se,Le)}const Ne=E(Ee,[["render",Te]]),$e={},Me={class:"onyx-loading-dots"},Oe=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),Ae=[Oe];function Ie(l,o){return e.openBlock(),e.createElementBlock("div",Me,Ae)}const Pe=E($e,[["render",Ie]]),b=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(l){const o=l;return(t,n)=>o.type==="circle"?(e.openBlock(),e.createBlock(Ne,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(Pe,{key:1})):e.createCommentVNode("",!0)}}),De={},ze={"aria-hidden":"true",class:"onyx-skeleton"};function Fe(l,o){return e.openBlock(),e.createElementBlock("figure",ze)}const v=E(De,[["render",Fe]]),Re=["disabled","type","aria-label"],qe={key:2,class:"onyx-button__label onyx-truncation-ellipsis"},Ue=e.defineComponent({__name:"OnyxButton",props:{density:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},variation:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o;return(r,c)=>t.skeleton?(e.openBlock(),e.createBlock(v,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(n)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.variation}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(n)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,onClick:c[0]||(c[0]=u=>a("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(x,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(b,{key:1,class:"onyx-button__loading"})):(e.openBlock(),e.createElementBlock("span",qe,e.toDisplayString(t.label),1))],10,Re))}}),He=["button","submit","reset"],Ze=["primary","secondary","danger"],Ge=["default","outline","plain"],U=e.defineComponent({__name:"OnyxBadge",props:{density:{},variation:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${o.variation}`,o.dot?"onyx-badge--dot":"",e.unref(t)]])},[o.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.icon?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-badge__icon",icon:o.icon,size:o.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(n.$slots,"default",{key:1})],64))],2))}}),je=(l,o)=>e.computed(()=>{const t=o.value.filter(a=>l.value.includes(a)),n=t.length===l.value.length;return{modelValue:n,indeterminate:!n&&l.value.length&&t.length?!0:void 0}}),H=(l,o,t)=>({state:je(l,o),handleChange:n=>{const a=n?l.value:[];t(a)}}),Ke="(optional)",Ye={tooShort:"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:"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:"Value must be greater than or equal to {min}",rangeOverflow:"Value must be less than or equal to {max}",patternMismatch:"Please match the format requested.",valueMissing:"Please fill in this field.",stepMismatch:"Please enter a value that is a multiple of {step}.",badInput:'"{value}" does not match the expected type.',typeMismatch:{generic:'"{value}" does not match the expected type.',email:'"{value}" must be a valid email address.',number:'"{value}" must be a number.',tel:'"{value}" must be a valid phone number.',url:'"{value}" must a valid URL.'}},Xe={selectAll:"Select all",currentSelection:"{n} selected"},We="No data available",Je="Subpages of {label}",z={optional:Ke,validations:Ye,selections:Xe,empty:We,navItemOptionsLabel:Je},Z=Symbol(),G=l=>{const o=e.computed(()=>e.unref(l==null?void 0:l.locale)??"en-US"),t=e.computed(()=>l!=null&&l.messages&&o.value in l.messages?l.messages[o.value]:z),n=e.computed(()=>(a,r={})=>{let c=F(a,t.value)??F(a,z)??"";const u=typeof r.n=="number"?r.n:void 0;return c=et(c,u),tt(c,r)});return{locale:o,t:n}},Qe=(l,o)=>l.provide(Z,G(o)),S=()=>e.inject(Z,()=>G(),!0),F=(l,o)=>{const t=l.split(".").reduce((n,a)=>!n||typeof n=="string"?n:n[a],o);return t&&typeof t=="string"?t:void 0},et=(l,o)=>{const t=l.split(" | ").map(a=>a.trim());if(t.length<=1)return l;let n=1;return o===0&&(n=0),o&&(o<=0||o>1)&&(n=2),t.length===2?n===1?t[0]:t[1]:t[n]},tt=(l,o)=>o?Object.entries(o).reduce((n,[a,r])=>r===void 0?n:n.replace(new RegExp(`{${a}}`,"gi"),r.toString()),l).replace(/\s?{.*}\s?/gi,""):l,w=l=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${l.requiredMarker}`]:l.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":l.required,"onyx-optional-marker":!l.required}))}),ot=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([l,o])=>o.enumerable).map(([l])=>l),lt=l=>ot().reduce((o,t)=>(o[t]=l[t],o),{}),nt=(l,o)=>{const t=Object.entries(l).filter(([a,r])=>r!==void 0),n=Object.entries(o).filter(([a,r])=>r!==void 0);return t.length!==n.length?!1:t.every(([a,r])=>r===o[a])},N=l=>{const o=e.ref(),t=e.ref(!1);return e.watch(()=>l.props.modelValue,()=>t.value=!0,{once:!0}),{vCustomValidity:{mounted:a=>{e.watchEffect(()=>a.setCustomValidity(l.props.customError??"")),e.watch([()=>l.props.customError,()=>l.props.modelValue,t],()=>{const r=lt(a.validity);!t.value||!o.value&&r.valid||o.value&&nt(r,o.value)||(o.value=r,l.emit("validityChange",o.value))},{immediate:!0})}}}},at={class:"onyx-checkbox__container"},rt=["aria-label","title","indeterminate","disabled","required","value"],M=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:{},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(l,{emit:o}){const t=l,n=o,a=e.computed({get:()=>t.modelValue,set:m=>n("update:modelValue",m)}),{requiredMarkerClass:r,requiredTypeClass:c}=w(t),{densityClass:u}=h(t),{vCustomValidity:s}=N({props:t,emit:n});return(m,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(u)])},[e.createVNode(v,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(c),e.unref(u)]])},[e.createElementVNode("div",at,[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":i[0]||(i[0]=y=>a.value=y),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value},null,8,rt)),[[e.vModelCheckbox,a.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(r):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(r)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),st=["disabled"],ct={key:0,class:"onyx-checkbox-group__label"},it=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o,{t:r}=S(),c=(i,y)=>{const d=y?[...t.modelValue,i]:t.modelValue.filter(f=>f!==i);a("update:modelValue",d)},u=e.computed(()=>t.options.filter(i=>!i.disabled&&!i.skeleton).map(({value:i})=>i)),s=H(u,e.computed(()=>t.modelValue),i=>a("update:modelValue",i)),m=e.computed(()=>{var y;const i=r.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?i:((y=t.withCheckAll)==null?void 0:y.label)??i});return(i,y)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(n)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",ct,[e.createVNode(e.unref(O),{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"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(M,e.mergeProps({key:0},e.unref(s).state.value,{label:m.value,value:"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,d=>(e.openBlock(),e.createBlock(M,e.mergeProps({key:d.value.toString()},d,{"model-value":t.modelValue.includes(d.value),"onUpdate:modelValue":f=>c(d.value,f)}),null,16,["model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,d=>(e.openBlock(),e.createBlock(M,{key:d,label:`Skeleton ${d}`,value:`skeleton-${d}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,st))}}),dt='<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>',ut={class:"onyx-empty"},pt={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},j=e.defineComponent({__name:"OnyxEmpty",setup(l){return(o,t)=>(e.openBlock(),e.createElementBlock("div",ut,[e.renderSlot(o.$slots,"icon",{},()=>[e.createVNode(x,{icon:e.unref(dt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",pt,[e.renderSlot(o.$slots,"default")])]))}}),O=e.defineComponent({__name:"OnyxHeadline",props:{is:{},monospace:{type:Boolean,default:!1}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${o.is}`,o.monospace?"onyx-headline--monospace":""])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),mt=["h1","h2","h3","h4","h5","h6"],yt=["12px","16px","24px","32px","48px","64px","96px"],ft=["aria-label","title","disabled"],kt=e.defineComponent({__name:"OnyxIconButton",props:{density:{},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},variation:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o;return(r,c)=>t.skeleton?(e.openBlock(),e.createBlock(v,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(n)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.variation}`,{"onyx-icon-button--loading":t.loading},e.unref(n)]]),"aria-label":t.label,title:t.label,disabled:t.disabled||t.loading,onClick:c[0]||(c[0]=u=>a("click"))},[t.loading?(e.openBlock(),e.createBlock(b,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(r.$slots,"default",{key:2})],10,ft))}}),_t={class:"onyx-truncation-ellipsis"},vt={class:"onyx-input__wrapper"},ht=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],xt={key:0,class:"onyx-input__footer onyx-text--small"},bt={key:0,class:"onyx-truncation-ellipsis"},Ct={key:1,class:"onyx-input__counter"},gt=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},autofocus:{type:Boolean},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},maxlength:{},minlength:{},withCounter:{type:Boolean},message:{},hideLabel:{type:Boolean},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(l,{emit:o}){const t=l,n=o,{vCustomValidity:a}=N({props:t,emit:n}),{requiredMarkerClass:r,requiredTypeClass:c}=w(t),{densityClass:u}=h(t),s=e.computed({get:()=>t.modelValue,set:d=>n("update:modelValue",d)}),m=d=>{const f=d.target.value;n("change",f)},i=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),y=e.computed(()=>t.withCounter&&t.maxlength);return(d,f)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(u)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(v,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(c),e.unref(u)])},[e.createElementVNode("label",null,[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input__label","onyx-text--small",e.unref(r)])},[e.createElementVNode("div",_t,e.toDisplayString(t.label),1)],2)),e.createElementVNode("div",vt,[t.loading?(e.openBlock(),e.createBlock(b,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=C=>s.value=C),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:i.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:m,onFocus:f[1]||(f[1]=C=>n("focus")),onBlur:f[2]||(f[2]=C=>n("blur"))},null,40,ht),[[e.vModelDynamic,s.value],[e.unref(a)]])])]),t.message||y.value?(e.openBlock(),e.createElementBlock("div",xt,[t.message?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(s.value.length)+"/"+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Bt=["email","password","search","tel","text","url"],Vt=["none","sentences","words","characters"],K='<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>',Y=l=>/^http(s?):\/\//.test(l),Et=["href","target","rel"],St=e.defineComponent({__name:"OnyxLink",props:{href:{},target:{default:"_self"},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(l,{emit:o}){const t=l,n=o,a=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:Y(t.href));return(r,c)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:c[0]||(c[0]=u=>n("click"))},[e.renderSlot(r.$slots,"default"),a.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-link__icon",icon:e.unref(K),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)],8,Et))}}),wt=["_self","_blank","_parent","_top"],X=l=>l,Lt=(()=>{let l=1;return()=>l++})(),$=l=>`${l}-${Lt()}`,Tt=l=>!$t.has(l),Nt=["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"],$t=new Set(Nt),Mt=(l,o)=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>l(...n),o)}},Ot=(l,o=500)=>{let t="";const n=Mt(()=>t="",o);return a=>{Tt(a.key)&&(n(),t=`${t}${a.key}`,l(t))}},At=X(l=>{const o=e.computed(()=>e.unref(l.multiple)??!1),t=new Map,n=s=>(t.has(s)||t.set(s,$("listbox-option")),t.get(s)),a=e.ref(!1);e.watchEffect(()=>{var m;if(l.activeOption.value==null||!a.value&&!l.controlled)return;const s=n(l.activeOption.value);(m=document.getElementById(s))==null||m.scrollIntoView({block:"nearest",inline:"nearest"})});const r=Ot(s=>{var m;return(m=l.onTypeAhead)==null?void 0:m.call(l,s)}),c=s=>{var m,i,y,d,f,C,V;switch(s.key){case" ":s.preventDefault(),l.activeOption.value!=null&&((m=l.onSelect)==null||m.call(l,l.activeOption.value));break;case"ArrowUp":if(s.preventDefault(),l.activeOption.value==null){(i=l.onActivateLast)==null||i.call(l);return}(y=l.onActivatePrevious)==null||y.call(l,l.activeOption.value);break;case"ArrowDown":if(s.preventDefault(),l.activeOption.value==null){(d=l.onActivateFirst)==null||d.call(l);return}(f=l.onActivateNext)==null||f.call(l,l.activeOption.value);break;case"Home":s.preventDefault(),(C=l.onActivateFirst)==null||C.call(l);break;case"End":s.preventDefault(),(V=l.onActivateLast)==null||V.call(l);break;default:r(s)}};return{elements:{listbox:e.computed(()=>l.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(l.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(l.label),tabindex:"0","aria-activedescendant":l.activeOption.value!=null?n(l.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:c}),group:e.computed(()=>s=>({role:"group","aria-label":s.label})),option:e.computed(()=>s=>{const m=s.selected??!1;return{id:n(s.value),role:"option","aria-label":s.label,"aria-checked":o.value?m:void 0,"aria-selected":o.value?void 0:m,"aria-disabled":s.disabled,onClick:()=>{var i;return!s.disabled&&((i=l.onSelect)==null?void 0:i.call(l,s.value))}}})},state:{isFocused:a},internals:{getOptionId:n}}}),It=X(l=>{const o=$("tooltip"),t=e.ref(!1);let n;const a=e.computed(()=>{const d=e.unref(l.open);return typeof d!="object"?200:d.debounce}),r=e.computed(()=>{const d=e.unref(l.open);return typeof d!="object"?d:d.type}),c=e.computed({get:()=>t.value,set:d=>{clearTimeout(n),n=setTimeout(()=>{t.value=d},a.value)}}),u=e.computed(()=>typeof r.value=="boolean"?r.value:c.value),s=()=>{t.value=!t.value},m=e.computed(()=>{if(r.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1}}),i=d=>{d.key==="Escape"&&(t.value=!1)},y=d=>{var V;const f=(V=document.getElementById(o))==null?void 0:V.parentElement;if(!f||!(d.target instanceof Node))return;!f.contains(d.target)&&(t.value=!1)};return e.onBeforeMount(()=>{document.addEventListener("keydown",i),e.watchEffect(()=>{r.value==="click"?document.addEventListener("click",y):document.removeEventListener("click",y)})}),e.onBeforeUnmount(()=>{document.addEventListener("keydown",i),document.addEventListener("click",y)}),{elements:{trigger:e.computed(()=>({"aria-describedby":o,onClick:r.value==="click"?s:void 0,...m.value})),tooltip:e.computed(()=>({role:"tooltip",id:o,tabindex:"-1",...m.value}))},state:{isVisible:u}}}),W=l=>{const t=e.ref(!1),n=r=>{const c=r.target;if(!(c instanceof Element))return;const u=e.unref(l.offset)??0;t.value=Math.abs(c.scrollTop)+c.clientHeight>=c.scrollHeight-u-1};return{vScrollEnd:{mounted:r=>{e.watchEffect(()=>{var u;(((u=l.enabled)==null?void 0:u.value)??!0)&&!l.loading.value?r.addEventListener("scroll",n):r.removeEventListener("scroll",n)})}},isScrollEnd:t}},Pt=["checked","aria-labelledby","disabled","indeterminate"],Dt={class:"onyx-truncation-ellipsis"},R=e.defineComponent({__name:"OnyxListboxOption",props:{active:{type:Boolean},multiple:{type:Boolean},indeterminate:{type:Boolean}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["onyx-listbox-option",{"onyx-listbox-option--active":o.active}])},[o.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:o.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-listbox-option__checkbox",type:"checkbox"},null,8,Pt)):e.createCommentVNode("",!0),e.createElementVNode("span",Dt,[e.renderSlot(t.$slots,"default")])],2))}}),zt=["aria-busy"],Ft={key:0,class:"onyx-listbox__slot onyx-listbox__slot--loading"},Rt={key:0,role:"presentation",class:"onyx-listbox__group-name onyx-text--small"},qt={key:0,class:"onyx-listbox__slot"},Ut={key:1,class:"onyx-listbox__slot"},Ht={key:3,class:"onyx-listbox__message onyx-text--small"},J=e.defineComponent({__name:"OnyxListbox",props:{label:{},options:{},message:{},modelValue:{},multiple:{},withCheckAll:{},loading:{type:Boolean,default:!1},lazyLoading:{}},emits:["update:modelValue","lazyLoad"],setup(l,{emit:o}){const t=l,n=o,a=e.useSlots(),{t:r}=S(),c=e.ref();e.watch(()=>t.modelValue,p=>{t.multiple||(c.value=p)});const u=$("ONYX_CHECK_ALL"),s=e.computed(()=>(t.withCheckAll?[u]:[]).concat(A.value)),{elements:{listbox:m,option:i,group:y}}=At({label:e.computed(()=>t.label),multiple:e.computed(()=>!!t.multiple),selectedOption:e.computed(()=>t.modelValue),activeOption:c,onSelect:p=>{var T;if(p===u){(T=L.value)==null||T.handleChange(!L.value.state.value.modelValue);return}if(!t.multiple){const g=p===t.modelValue?void 0:p;n("update:modelValue",g);return}const k=Array.isArray(t.modelValue)?t.modelValue:[],_=k.includes(p)?k.filter(g=>g!==p):[...k,p];n("update:modelValue",_)},onActivateFirst:()=>c.value=s.value.at(0),onActivateLast:()=>c.value=s.value.at(-1),onActivateNext:p=>{const k=s.value.findIndex(_=>_===p);k<s.value.length-1&&(c.value=s.value[k+1])},onActivatePrevious:p=>{const k=s.value.findIndex(_=>_===p);k>0&&(c.value=s.value[k-1])},onTypeAhead:p=>{const k=t.options.find(_=>_.label.toLowerCase().trim().startsWith(p.toLowerCase()));k&&(c.value=k.value)}}),d=e.computed(()=>t.options.reduce((p,k)=>{const _=k.group??"";return p[_]=p[_]||[],p[_].push(k),p},{})),{vScrollEnd:f,isScrollEnd:C}=W({enabled:e.computed(()=>{var p;return((p=t.lazyLoading)==null?void 0:p.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var p;return(p=t.lazyLoading)==null?void 0:p.scrollOffset})}),V=e.computed(()=>t.options.length===0),A=e.computed(()=>t.options.filter(p=>!p.disabled).map(({value:p})=>p)),L=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return H(A,e.computed(()=>t.modelValue||[]),p=>n("update:modelValue",p))}),I=e.computed(()=>{var k;const p=r.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?p:((k=t.withCheckAll)==null?void 0:k.label)??p});return e.watchEffect(()=>{C.value&&n("lazyLoad")}),(p,k)=>{var _;return e.openBlock(),e.createElementBlock("div",{class:"onyx-listbox","aria-busy":t.loading},[t.loading?(e.openBlock(),e.createElementBlock("div",Ft,[e.createVNode(b,{class:"onyx-listbox__loading"})])):V.value?e.renderSlot(p.$slots,"empty",{key:1,defaultMessage:e.unref(r)("empty")},()=>[e.createVNode(j,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("empty")),1)]),_:1})]):e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2},e.unref(m),{class:"onyx-listbox__wrapper"}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(T,g)=>{var P,D;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:g,class:"onyx-listbox__group"},e.unref(y)({label:g})),[g!=""?(e.openBlock(),e.createElementBlock("li",Rt,e.toDisplayString(g),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll?(e.openBlock(),e.createBlock(R,e.mergeProps({key:1},e.unref(i)({value:e.unref(u),label:I.value,selected:(P=L.value)==null?void 0:P.state.value.modelValue}),{multiple:"",active:e.unref(u)===c.value,indeterminate:(D=L.value)==null?void 0:D.state.value.indeterminate,class:"onyx-listbox__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value),1)]),_:1},16,["active","indeterminate"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T,B=>(e.openBlock(),e.createBlock(R,e.mergeProps({key:B.value.toString()},e.unref(i)({value:B.value,label:B.label,disabled:B.disabled,selected:B.value===t.modelValue||Array.isArray(t.modelValue)&&t.modelValue.includes(B.value)}),{multiple:t.multiple,active:B.value===c.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1040,["multiple","active"]))),128))],16)}),128)),(_=t.lazyLoading)!=null&&_.loading?(e.openBlock(),e.createElementBlock("div",qt,[e.createVNode(b,{class:"onyx-listbox__loading"})])):e.createCommentVNode("",!0),e.unref(a).optionsEnd?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(p.$slots,"optionsEnd")])):e.createCommentVNode("",!0)],16)),[[e.unref(f)]]),t.message?(e.openBlock(),e.createElementBlock("span",Ht,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)],8,zt)}}}),Zt=["aria-label"],Gt=e.defineComponent({__name:"OnyxNavItem",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"},options:{}},emits:["navigate"],setup(l,{emit:o}){const t=l,n=o,a=e.computed(()=>{var u;return((u=t.options)==null?void 0:u.map(s=>({value:s.href,label:s.label})))??[]}),{t:r}=S(),c=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:Y(t.href??""));return(u,s)=>{var m,i,y;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("li",{role:"menuitem",tabindex:"0","aria-label":t.label,class:e.normalizeClass(["onyx-nav-item onyx-text",{"onyx-nav-item--active":t.active||((m=t.options)==null?void 0:m.find(d=>d.active))}]),onClick:s[0]||(s[0]=d=>t.href&&n("navigate",t.href)),onKeydown:s[1]||(s[1]=e.withKeys(d=>t.href&&n("navigate",t.href),["enter"]))},[e.createElementVNode("span",null,e.toDisplayString(t.label),1),c.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-item__icon",icon:e.unref(K),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default")],42,Zt),a.value.length>0?(e.openBlock(),e.createBlock(J,{key:0,class:"onyx-nav-item__listbox",label:e.unref(r)("navItemOptionsLabel",{label:t.label}),options:a.value,"model-value":(y=(i=t.options)==null?void 0:i.find(d=>d.active))==null?void 0:y.href,"onUpdate:modelValue":s[2]||(s[2]=d=>d&&n("navigate",d))},null,8,["label","options","model-value"])):e.createCommentVNode("",!0)],64)}}}),jt={key:0,class:"onyx-page__sidebar"},Kt={class:"onyx-page__main"},Yt={key:1,class:"onyx-page__footer"},Xt={key:2,class:"onyx-page__toasts"},Wt=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(l){const o=l,t=e.useSlots(),n=e.computed(()=>{let a="";return!t.footer&&t.sidebar&&(a="onyx-page--side-main"),t.footer&&(!t.sidebar||o.hideSidebar)&&(a="onyx-page--main-footer"),t.footer&&t.sidebar&&(o.footerAsideSidebar?a="onyx-page--side-main-footer-partial":a="onyx-page--side-main-footer-full"),a});return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",n.value])},[e.unref(t).sidebar&&!o.hideSidebar?(e.openBlock(),e.createElementBlock("aside",jt,[e.renderSlot(a.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Kt,[e.renderSlot(a.$slots,"default")]),e.unref(t).footer?(e.openBlock(),e.createElementBlock("footer",Yt,[e.renderSlot(a.$slots,"footer")])):e.createCommentVNode("",!0),e.unref(t).toasts?(e.openBlock(),e.createElementBlock("div",Xt,[e.renderSlot(a.$slots,"toasts")])):e.createCommentVNode("",!0)],2))}}),Jt=["title"],Qt=["required","name","value","checked","disabled"],q=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:{},name:{},selected:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(l,{emit:o}){const t=l,n=o,{vCustomValidity:a}=N({props:t,emit:n}),{densityClass:r}=h(t),c=u=>{const s=u.target.checked;n("change",s)};return(u,s)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(r)])},[e.createVNode(v,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(v,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(r)]),title:t.customError},[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{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.selected,disabled:t.disabled,onChange:c},null,40,Qt)),[[e.unref(a)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,Jt))}}),eo=["disabled"],to={key:0,class:"onyx-radio-button-group__headline"},oo=e.defineComponent({__name:"OnyxRadioButtonGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},options:{},name:{default:()=>$("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),{requiredMarkerClass:a,requiredTypeClass:r}=w(t),c=o,u=(s,m)=>{s&&c("update:modelValue",m)};return(s,m)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(n),e.unref(r)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",to,[e.createVNode(O,{is:"h3",class:e.normalizeClass(e.unref(a))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(i,y)=>(e.openBlock(),e.createBlock(q,e.mergeProps({key:i.value.toString()},i,{name:t.name,"custom-error":t.customError,selected:i.value===t.modelValue,required:t.required,onValidityChange:d=>y===0&&c("validityChange",d),onChange:d=>u(d,i.value)}),null,16,["name","custom-error","selected","required","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,i=>(e.openBlock(),e.createBlock(q,{id:`skeleton-${i}`,key:i,value:`skeleton-${i}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,eo))}}),lo='<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>',no={class:"onyx-truncation-ellipsis"},ao={class:"onyx-select__wrapper"},ro=["placeholder","required","disabled","aria-label","title"],so={key:0,class:"onyx-select__footer onyx-text--small onyx-truncation-ellipsis"},co=e.defineComponent({__name:"OnyxSelect",props:{density:{},required:{type:Boolean},requiredMarker:{},label:{},options:{},modelValue:{},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},multiple:{},message:{}},emits:["update:modelValue"],setup(l){const o=l,{t}=S(),n=e.computed(()=>{if(o.multiple)return typeof o.multiple=="object"?o.multiple.textMode:"summary"}),a=e.computed(()=>Array.isArray(o.modelValue)?o.modelValue.length:o.modelValue?1:0),r=e.computed(()=>{var m;if(Array.isArray(o.modelValue)){const i=o.modelValue.length;if(!i)return"";if(i===1)return o.modelValue[0].label;switch(n.value){case"preview":return o.modelValue.map(({label:y})=>y).join(", ");case"summary":default:return t.value("selections.currentSelection",{n:i})}}return((m=o.modelValue)==null?void 0:m.label)??""}),{requiredMarkerClass:c,requiredTypeClass:u}=w(o),{densityClass:s}=h(o);return(m,i)=>o.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-select-skeleton",e.unref(s)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(v),{key:0,class:"onyx-select-skeleton__label"})),e.createVNode(e.unref(v),{class:"onyx-select-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-select",e.unref(u),e.unref(s),o.readonly?"onyx-select--readonly":"onyx-select--editable"])},[e.createElementVNode("label",null,[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-select__label","onyx-text--small",e.unref(c)])},[e.createElementVNode("div",no,e.toDisplayString(o.label),1)],2)),e.createElementVNode("div",ao,[o.loading?(e.openBlock(),e.createBlock(b,{key:0,class:"onyx-select__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=y=>r.value=y),class:"onyx-select__input onyx-truncation-ellipsis",placeholder:o.placeholder,type:"text",role:"presentation",required:o.required,readonly:"",disabled:o.disabled||o.loading,"aria-label":o.hideLabel?o.label:void 0,title:o.hideLabel?o.label:void 0},null,8,ro),[[e.vModelText,r.value]]),n.value==="preview"&&a.value>0?(e.openBlock(),e.createBlock(e.unref(Q),{key:1,text:r.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode(e.unref(U),{class:"onyx-select__badge",variation:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createVNode(e.unref(x),{icon:e.unref(lo),class:"onyx-select__icon"},null,8,["icon"])])]),o.message?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0)],2))}}),io=["summary","preview"],uo='<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>',po='<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>',mo={class:"onyx-switch-skeleton__click-area"},yo=["title"],fo=["aria-label","disabled","required"],ko={class:"onyx-switch__click-area"},_o={class:"onyx-switch__container"},vo={class:"onyx-switch__icon"},ho=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),xo=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},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(l,{emit:o}){const t=l,n=o,{requiredMarkerClass:a,requiredTypeClass:r}=w(t),{densityClass:c}=h(t),{vCustomValidity:u}=N({props:t,emit:n}),s=e.computed({get:()=>t.modelValue,set:m=>{n("update:modelValue",m)}});return(m,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(c)])},[e.createElementVNode("span",mo,[e.createVNode(v,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(r),e.unref(c)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=y=>s.value=y),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},null,10,fo),[[e.vModelCheckbox,s.value],[e.unref(u)]]),e.createElementVNode("span",ko,[e.createElementVNode("span",_o,[e.createElementVNode("span",vo,[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(x),{key:1,icon:s.value?e.unref(uo):e.unref(po),size:"24px"},null,8,["icon"]))]),ho])]),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(a):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],10,yo))}}),bo=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},grid:{type:Boolean,default:!1}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.grid?"onyx-table--grid":"",e.unref(t)]])},[e.renderSlot(n.$slots,"default")],2))}}),Co={class:"onyx-tooltip-wrapper"},Q=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(l){const o=l,{elements:{trigger:t,tooltip:n},state:{isVisible:a}}=It({open:e.computed(()=>o.open)});return(r,c)=>(e.openBlock(),e.createElementBlock("div",Co,[e.createElementVNode("div",e.mergeProps(e.unref(n),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--bottom":o.position==="bottom","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!e.unref(a)}]}),[o.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(t))),[e.renderSlot(r.$slots,"default")],16)]))}}),go=["top","bottom"],Bo={class:"onyx-text onyx-truncation-ellipsis"},Vo=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${o.color}`,e.unref(t)])},[o.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",Bo,e.toDisplayString(o.label),1)],2))}}),Eo=["primary","secondary","neutral","danger","warning","success","info"],So=["small","default","large"],wo=["ellipsis","multiline"],Lo=["horizontal","vertical"],To=l=>({install:o=>{Qe(o,l.i18n);const t=o.runWithContext(()=>S());e.watchEffect(()=>No(t.t.value("optional")))}}),No=l=>globalThis.document.body.style.setProperty("--onyx-global-optional-text",l);exports.AUTOCAPITALIZE=Vt;exports.AVATAR_TYPES=be;exports.BUTTON_MODES=Ge;exports.BUTTON_TYPES=He;exports.BUTTON_VARIATIONS=Ze;exports.DENSITIES=Be;exports.DIRECTIONS=Lo;exports.HEADLINE_TYPES=mt;exports.ICON_SIZES=yt;exports.INPUT_TYPES=Bt;exports.LINK_TARGETS=wt;exports.MULTISELECT_TEXT_MODE=io;exports.ONYX_COLORS=Eo;exports.OnyxAppLayout=ne;exports.OnyxAvatar=xe;exports.OnyxAvatarStack=ge;exports.OnyxBadge=U;exports.OnyxButton=Ue;exports.OnyxCheckboxGroup=it;exports.OnyxEmpty=j;exports.OnyxHeadline=O;exports.OnyxIcon=x;exports.OnyxIconButton=kt;exports.OnyxInput=gt;exports.OnyxLink=St;exports.OnyxListbox=J;exports.OnyxLoadingIndicator=b;exports.OnyxNavItem=Gt;exports.OnyxPageLayout=Wt;exports.OnyxRadioButtonGroup=oo;exports.OnyxSelect=co;exports.OnyxSkeleton=v;exports.OnyxSwitch=xo;exports.OnyxTable=bo;exports.OnyxTag=Vo;exports.OnyxTooltip=Q;exports.TEXT_SIZES=So;exports.TOOLTIP_POSITIONS=go;exports.TRUNCATION_TYPES=wo;exports.createOnyx=To;exports.useDensity=h;exports.useScrollEnd=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee={key:0,class:"onyx-app__nav"},te={class:"onyx-app__page"},oe={key:1,class:"onyx-app__page-overlay"},le={key:2,class:"onyx-app__app-overlay"},ne=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(l){const o=l,t=e.useSlots();return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":o.navBarAlignment==="left"}])},[e.unref(t).navBar?(e.openBlock(),e.createElementBlock("nav",ee,[e.renderSlot(n.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",te,[e.renderSlot(n.$slots,"default")]),e.unref(t).pageOverlay?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(n.$slots,"pageOverlay")])):e.createCommentVNode("",!0),e.unref(t).appOverlay?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(n.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),E=(l,o)=>{const t=l.__vccOpts||l;for(const[n,a]of o)t[n]=a;return t},ae={},re={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},se=e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M7.7126 20.42C8.39245 16.3491 8.24733 15.8529 8.46177 9.86296C8.7362 7.13713 9.95177 5.14965 11.5261 4.75449L12.6326 6.08751L11.7227 4.55053C12.0572 3.67381 13.4612 2.7234 15.7076 2.7234C17.954 2.7234 19.6603 3.23641 20.8263 4.26241C22.1059 5.33732 22.8411 7.20417 23.032 9.86296C23.3184 13.8511 23.032 13.5317 24.3354 20.42C24.3354 20.42 19.1332 21.6824 16 21.6824C12.8668 21.6824 7.7126 20.42 7.7126 20.42Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.628 18.0426C12.628 18.0426 13.3619 20.7045 12.5176 22.0378C12.5014 22.0634 12.1278 22.5375 11.4375 22.8864C10.7471 23.2353 8.33315 24.2808 8.52103 25.1845C8.81344 26.591 15.4768 29.2356 16.6848 29.2356C17.8233 29.2356 22.4527 26.7865 23.0783 25.9854C23.4763 25.4758 24.2143 24.6766 22.1396 23.6391C20.0648 22.6016 19.4176 22.0114 19.3897 21.976C18.045 20.2703 19.3002 18.0426 19.3002 18.0426H12.628Z" fill="var(--onyx-color-base-neutral-300)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9575 19.768C13.9494 18.7584 18.9921 18.7234 18.9921 18.7234C18.9921 18.7234 18.3146 20.5494 19.3838 22.0027C18.4711 22.3044 14.4774 21.7919 13.9575 19.768Z" fill="var(--onyx-color-base-neutral-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.9414 14.8039C20.2743 18.2173 17.7139 20.766 15.6596 20.766C13.6175 20.766 11.0754 18.2476 10.3899 14.865C10.3523 14.8262 10.307 14.7865 10.2589 14.7464L10.0875 14.605C9.97654 14.5108 9.88285 14.4178 9.8706 14.3329L9.85734 14.2325L9.82285 13.9274L9.79334 13.6313L9.76388 13.3006L9.74567 13.071L9.72958 12.8413L9.71646 12.6176C9.71268 12.5447 9.70953 12.4738 9.70716 12.406L9.7025 12.2126C9.7008 12.0607 9.70482 11.9343 9.71676 11.8491L9.72489 11.803C9.75301 11.5268 9.97889 11.4131 10.1782 11.3435L10.3683 11.2815C10.9504 7.9323 13.0986 5.44681 15.6596 5.44681C18.2251 5.44681 20.3764 7.94119 20.9539 11.2995L21.089 11.3435C21.2883 11.4131 21.5142 11.5268 21.5423 11.803L21.5505 11.8491C21.5624 11.9343 21.5664 12.0607 21.5647 12.2126L21.5601 12.406C21.5577 12.4738 21.5545 12.5447 21.5508 12.6176L21.5376 12.8413L21.5215 13.071L21.5033 13.3006L21.4739 13.6313L21.4444 13.9274L21.4099 14.2325L21.3966 14.3329C21.3844 14.4178 21.2907 14.5108 21.1797 14.605L21.0083 14.7464C20.9852 14.7657 20.9627 14.7849 20.9414 14.8039Z" fill="var(--onyx-color-base-neutral-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5957 6.25197C12.5957 6.25197 13.9429 8.11309 16.7332 8.53734C19.5235 8.9616 21.0872 11.9693 21.0872 11.9693V7.46426L18.2795 4.08511L14.1364 4.2428L12.5957 6.25197Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.059 8.85106C11.059 8.85106 10.5079 10.3222 10.6058 12.0604L10.2128 10.8208L11.059 8.85106Z" fill="var(--onyx-color-base-neutral-500)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M28.1789 32C28.2082 31.666 28.1072 30.6622 27.8758 28.9886C27.6445 27.3149 26.9978 26.1602 25.9357 25.5243C23.9262 24.4478 22.1369 23.5473 20.6204 22.8085C19.745 24.3665 18.5913 25.4162 16.023 25.4162C13.6459 25.4162 12.4215 24.3665 11.5461 22.8085C9.99887 23.5571 8.0305 24.4299 5.99283 25.5243C4.93072 26.1602 4.284 27.3149 4.05266 28.9886C3.82133 30.6622 3.72031 31.666 3.74963 32H15.928H28.1789Z" fill="var(--onyx-color-base-secondary-200)"></path>',7),ce=[se];function ie(l,o){return e.openBlock(),e.createElementBlock("svg",re,ce)}const de=E(ae,[["render",ie]]),ue={},pe={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},me=e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5685 21.4572C11.253 21.932 10.4345 22.4507 9.84162 22.7471C9.2487 23.0435 2.82416 26.5767 2.82416 26.5767C2.82416 26.5767 0.794243 27.7947 0.720107 30.2787C0.709887 30.6212 0.698905 30.9176 0.694107 31.1679C0.680851 31.8594 0.680851 32.0141 0.680851 32.0141H31.3895L31.2442 29.6918C31.2442 29.6918 30.889 27.3934 28.6023 26.2913C26.3155 25.1893 20.2345 21.4572 20.2345 21.4572C20.2345 21.4572 17.4118 24.1593 15.8793 24.1593C14.3469 24.1593 11.7052 21.2515 11.5685 21.4572Z" fill="var(--onyx-color-base-secondary-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.7258 17.3617C11.7258 17.3617 11.8979 20.8822 11.5824 21.357C11.4207 21.6003 13.7304 24.2858 15.9996 24.2858C18.2688 24.2858 20.5321 21.509 20.4208 21.1794C20.0737 20.1519 20.4208 17.3617 20.4208 17.3617H11.7258Z" fill="var(--onyx-color-base-neutral-300)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4188 21.1064L16 24.2497C16 24.2497 13.6169 25.2229 13.2467 26.7158C12.0077 24.6532 10.5532 22.2414 10.5532 22.2414L11.4188 21.1064Z" fill="var(--onyx-color-base-secondary-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.5812 21.1064L16 24.2497C16 24.2497 18.3831 25.2229 18.7533 26.7158C19.9923 24.6532 21.4468 22.2414 21.4468 22.2414L20.5812 21.1064Z" fill="var(--onyx-color-base-secondary-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M13.617 19.5099C13.6062 18.4404 20.467 17.2507 20.467 17.2507C20.467 17.2507 20.0286 19.5803 20.3919 21.2122C18.498 21.9839 14.5215 21.3903 13.617 19.5099Z" fill="var(--onyx-color-base-neutral-400)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21.3173 14.1806C21.1508 17.8679 17.8368 20.4255 15.6596 20.4255C13.4815 20.4255 10.4503 17.866 10.335 14.1765L10.1886 14.095C9.99952 13.9865 9.83987 13.8794 9.81899 13.7816L9.79638 13.666L9.73762 13.3146L9.68735 12.9736L9.63714 12.5927L9.60611 12.3283L9.5787 12.0638L9.55634 11.8061C9.54989 11.7222 9.54453 11.6406 9.54048 11.5624L9.53255 11.3397C9.52965 11.1648 9.5365 11.0192 9.55685 10.9211L9.5707 10.868C9.61862 10.5499 10.0035 10.4189 10.3432 10.3388L10.4302 10.3196C10.6165 7.46731 11.5182 5.44681 15.8298 5.44681C19.6102 5.44681 20.7949 7.45826 21.1424 10.3005L21.3164 10.3388C21.6561 10.4189 22.041 10.5499 22.0889 10.868L22.1027 10.9211C22.1231 11.0192 22.1299 11.1648 22.127 11.3397L22.1191 11.5624C22.115 11.6406 22.1097 11.7222 22.1032 11.8061L22.0809 12.0638L22.0535 12.3283L22.0224 12.5927L21.9722 12.9736L21.922 13.3146L21.8632 13.666L21.8406 13.7816C21.8197 13.8794 21.6601 13.9865 21.4709 14.095L21.3173 14.1806Z" fill="var(--onyx-color-base-neutral-200)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8836 6.22839C12.8836 6.22839 13.9368 8.00428 16.567 8.29001C19.1972 8.57574 20.5175 9.54588 20.6116 10.2494C20.7057 10.953 20.6116 12.5455 20.6116 12.5455C20.6116 12.5455 20.9477 10.5164 22.0392 10.5164C22.3522 8.09554 22.9941 7.61997 21.5209 5.51226C20.0478 3.40455 18.183 2.93846 18.183 2.93846C18.183 2.93846 16.7046 2.51203 14.6606 2.93115C13.342 3.20152 12.4818 3.72093 11.9846 4.57426C11.968 4.60282 12.7155 5.90621 12.7155 5.90621C12.7155 5.90621 11.8139 4.73575 11.7958 4.74343C10.3162 5.37011 9.59178 6.47205 9.547 8.08375C9.47899 10.5309 9.71761 10.4337 9.71761 10.4337C9.71761 10.4337 10.883 10.5156 11.0334 12.5455C11.0334 12.5455 10.5443 9.12183 11.5289 8.28377C12.5135 7.44571 12.8836 6.22839 12.8836 6.22839Z" fill="var(--onyx-color-base-neutral-500)"></path>',7),ye=[me];function fe(l,o){return e.openBlock(),e.createElementBlock("svg",pe,ye)}const ke=E(ue,[["render",fe]]),_e=["title"],ve=["src","alt"],he={key:2,class:"onyx-avatar__initials"},xe=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{},type:{default:"initials"}},setup(l){const o=l,t=e.useSlots(),n=e.computed(()=>{const r=o.label.split(" ");return(r.length>1?`${r[0].charAt(0)}${r[1].charAt(0)}`:r[0].substring(0,2)).toUpperCase()}),a=e.ref(!1);return e.watch(()=>o.src,()=>a.value=!1),(r,c)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${o.size}`,e.unref(t).default?"onyx-avatar--custom":""]]),title:o.label},[o.src&&!a.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:o.src,alt:o.label,onError:c[0]||(c[0]=u=>a.value=!0)},null,40,ve)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.type==="female"?(e.openBlock(),e.createBlock(de,{key:0,class:"onyx-avatar__svg"})):o.type==="male"?(e.openBlock(),e.createBlock(ke,{key:1,class:"onyx-avatar__svg"})):(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])]))],64))],10,_e))}}),be=["initials","female","male"],Ce={class:"onyx-avatar-stack"},ge=e.defineComponent({__name:"OnyxAvatarStack",setup(l){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ce,[e.renderSlot(o.$slots,"default")]))}}),Be=["compact","default","cozy"],h=l=>({densityClass:e.computed(()=>({[`onyx-density-${l.density}`]:l.density}))}),Ve=["innerHTML"],x=e.defineComponent({__name:"OnyxIcon",props:{size:{default:"24px"},icon:{},color:{default:"currentColor"}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-icon",[o.size!=="24px"?`onyx-icon--${o.size}`:"",o.color!=="currentColor"?`onyx-icon--${o.color}`:""]]),"aria-hidden":"true",innerHTML:o.icon},null,10,Ve))}}),Ee={},Se={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},we=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),Le=[we];function Te(l,o){return e.openBlock(),e.createElementBlock("svg",Se,Le)}const Ne=E(Ee,[["render",Te]]),$e={},Oe={class:"onyx-loading-dots"},Me=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),Ae=[Me];function Ie(l,o){return e.openBlock(),e.createElementBlock("div",Oe,Ae)}const Pe=E($e,[["render",Ie]]),b=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(l){const o=l;return(t,n)=>o.type==="circle"?(e.openBlock(),e.createBlock(Ne,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(Pe,{key:1})):e.createCommentVNode("",!0)}}),De={},ze={"aria-hidden":"true",class:"onyx-skeleton"};function Fe(l,o){return e.openBlock(),e.createElementBlock("figure",ze)}const v=E(De,[["render",Fe]]),Re=["disabled","type","aria-label"],qe={key:2,class:"onyx-button__label onyx-truncation-ellipsis"},Ue=e.defineComponent({__name:"OnyxButton",props:{density:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},variation:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o;return(r,c)=>t.skeleton?(e.openBlock(),e.createBlock(v,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(n)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.variation}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(n)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,onClick:c[0]||(c[0]=u=>a("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(x,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(b,{key:1,class:"onyx-button__loading"})):(e.openBlock(),e.createElementBlock("span",qe,e.toDisplayString(t.label),1))],10,Re))}}),He=["button","submit","reset"],Ze=["primary","secondary","danger"],Ge=["default","outline","plain"],U=e.defineComponent({__name:"OnyxBadge",props:{density:{},variation:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${o.variation}`,o.dot?"onyx-badge--dot":"",e.unref(t)]])},[o.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.icon?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-badge__icon",icon:o.icon,size:o.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(n.$slots,"default",{key:1})],64))],2))}}),S=l=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${l.requiredMarker}`]:l.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":l.required,"onyx-optional-marker":!l.required}))}),je=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([l,o])=>o.enumerable).map(([l])=>l),Ke=l=>je().reduce((o,t)=>(o[t]=l[t],o),{}),Ye=(l,o)=>{const t=Object.entries(l).filter(([a,r])=>r!==void 0),n=Object.entries(o).filter(([a,r])=>r!==void 0);return t.length!==n.length?!1:t.every(([a,r])=>r===o[a])},$=l=>{const o=e.ref(),t=e.ref(!1);return e.watch(()=>l.props.modelValue,()=>t.value=!0,{once:!0}),{vCustomValidity:{mounted:a=>{e.watchEffect(()=>a.setCustomValidity(l.props.customError??"")),e.watch([()=>l.props.customError,()=>l.props.modelValue,t],()=>{const r=Ke(a.validity);!t.value||!o.value&&r.valid||o.value&&Ye(r,o.value)||(o.value=r,l.emit("validityChange",o.value))},{immediate:!0})}}}},Xe={class:"onyx-checkbox__container"},We=["aria-label","title","indeterminate","disabled","required","value"],N=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:{},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(l,{emit:o}){const t=l,n=o,a=e.computed({get:()=>t.modelValue,set:m=>n("update:modelValue",m)}),{requiredMarkerClass:r,requiredTypeClass:c}=S(t),{densityClass:u}=h(t),{vCustomValidity:s}=$({props:t,emit:n});return(m,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(u)])},[e.createVNode(v,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(c),e.unref(u)]])},[e.createElementVNode("div",Xe,[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":i[0]||(i[0]=y=>a.value=y),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value},null,8,We)),[[e.vModelCheckbox,a.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(r):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(r)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),Je=(l,o)=>e.computed(()=>{const t=o.value.filter(a=>l.value.includes(a)),n=t.length===l.value.length;return{modelValue:n,indeterminate:!n&&l.value.length&&t.length?!0:void 0}}),H=(l,o,t)=>({state:Je(l,o),handleChange:n=>{const a=n?l.value:[];t(a)}}),Qe="(optional)",et={tooShort:"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:"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:"Value must be greater than or equal to {min}",rangeOverflow:"Value must be less than or equal to {max}",patternMismatch:"Please match the format requested.",valueMissing:"Please fill in this field.",stepMismatch:"Please enter a value that is a multiple of {step}.",badInput:'"{value}" does not match the expected type.',typeMismatch:{generic:'"{value}" does not match the expected type.',email:'"{value}" must be a valid email address.',number:'"{value}" must be a number.',tel:'"{value}" must be a valid phone number.',url:'"{value}" must a valid URL.'}},tt={selectAll:"Select all",currentSelection:"{n} selected"},ot="No data available",lt="Subpages of {label}",F={optional:Qe,validations:et,selections:tt,empty:ot,navItemOptionsLabel:lt},Z=Symbol(),G=l=>{const o=e.computed(()=>e.unref(l==null?void 0:l.locale)??"en-US"),t=e.computed(()=>l!=null&&l.messages&&o.value in l.messages?l.messages[o.value]:F),n=e.computed(()=>(a,r={})=>{let c=R(a,t.value)??R(a,F)??"";const u=typeof r.n=="number"?r.n:void 0;return c=at(c,u),rt(c,r)});return{locale:o,t:n}},nt=(l,o)=>l.provide(Z,G(o)),w=()=>e.inject(Z,()=>G(),!0),R=(l,o)=>{const t=l.split(".").reduce((n,a)=>!n||typeof n=="string"?n:n[a],o);return t&&typeof t=="string"?t:void 0},at=(l,o)=>{const t=l.split(" | ").map(a=>a.trim());if(t.length<=1)return l;let n=1;return o===0&&(n=0),o&&(o<=0||o>1)&&(n=2),t.length===2?n===1?t[0]:t[1]:t[n]},rt=(l,o)=>o?Object.entries(o).reduce((n,[a,r])=>r===void 0?n:n.replace(new RegExp(`{${a}}`,"gi"),r.toString()),l).replace(/\s?{.*}\s?/gi,""):l,st=["disabled"],ct={key:0,class:"onyx-checkbox-group__label"},it=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o,{t:r}=w(),c=(i,y)=>{const d=y?[...t.modelValue,i]:t.modelValue.filter(f=>f!==i);a("update:modelValue",d)},u=e.computed(()=>t.options.filter(i=>!i.disabled&&!i.skeleton).map(({value:i})=>i)),s=H(u,e.computed(()=>t.modelValue),i=>a("update:modelValue",i)),m=e.computed(()=>{var y;const i=r.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?i:((y=t.withCheckAll)==null?void 0:y.label)??i});return(i,y)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(n)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",ct,[e.createVNode(e.unref(A),{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"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(N,e.mergeProps({key:0},e.unref(s).state.value,{label:m.value,value:"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,d=>(e.openBlock(),e.createBlock(N,e.mergeProps({key:d.value.toString()},d,{"model-value":t.modelValue.includes(d.value),"onUpdate:modelValue":f=>c(d.value,f)}),null,16,["model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,d=>(e.openBlock(),e.createBlock(N,{key:d,label:`Skeleton ${d}`,value:`skeleton-${d}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,st))}}),dt='<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>',ut={class:"onyx-empty"},pt={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},j=e.defineComponent({__name:"OnyxEmpty",setup(l){return(o,t)=>(e.openBlock(),e.createElementBlock("div",ut,[e.renderSlot(o.$slots,"icon",{},()=>[e.createVNode(x,{icon:e.unref(dt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",pt,[e.renderSlot(o.$slots,"default")])]))}}),A=e.defineComponent({__name:"OnyxHeadline",props:{is:{},monospace:{type:Boolean,default:!1}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${o.is}`,o.monospace?"onyx-headline--monospace":""])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),mt=["h1","h2","h3","h4","h5","h6"],yt=["12px","16px","24px","32px","48px","64px","96px"],ft=["aria-label","title","disabled"],kt=e.defineComponent({__name:"OnyxIconButton",props:{density:{},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},variation:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),a=o;return(r,c)=>t.skeleton?(e.openBlock(),e.createBlock(v,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(n)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.variation}`,{"onyx-icon-button--loading":t.loading},e.unref(n)]]),"aria-label":t.label,title:t.label,disabled:t.disabled||t.loading,onClick:c[0]||(c[0]=u=>a("click"))},[t.loading?(e.openBlock(),e.createBlock(b,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(r.$slots,"default",{key:2})],10,ft))}}),_t={class:"onyx-truncation-ellipsis"},vt={class:"onyx-input__wrapper"},ht=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],xt={key:0,class:"onyx-input__footer onyx-text--small"},bt={key:0,class:"onyx-truncation-ellipsis"},Ct={key:1,class:"onyx-input__counter"},gt=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},autofocus:{type:Boolean},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},maxlength:{},minlength:{},withCounter:{type:Boolean},message:{},hideLabel:{type:Boolean},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(l,{emit:o}){const t=l,n=o,{vCustomValidity:a}=$({props:t,emit:n}),{requiredMarkerClass:r,requiredTypeClass:c}=S(t),{densityClass:u}=h(t),s=e.computed({get:()=>t.modelValue,set:d=>n("update:modelValue",d)}),m=d=>{const f=d.target.value;n("change",f)},i=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),y=e.computed(()=>t.withCounter&&t.maxlength);return(d,f)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(u)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(v,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(c),e.unref(u)])},[e.createElementVNode("label",null,[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input__label","onyx-text--small",e.unref(r)])},[e.createElementVNode("div",_t,e.toDisplayString(t.label),1)],2)),e.createElementVNode("div",vt,[t.loading?(e.openBlock(),e.createBlock(b,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=C=>s.value=C),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:i.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:m,onFocus:f[1]||(f[1]=C=>n("focus")),onBlur:f[2]||(f[2]=C=>n("blur"))},null,40,ht),[[e.vModelDynamic,s.value],[e.unref(a)]])])]),t.message||y.value?(e.openBlock(),e.createElementBlock("div",xt,[t.message?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(s.value.length)+"/"+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Bt=["email","password","search","tel","text","url"],Vt=["none","sentences","words","characters"],K='<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>',Y=l=>/^http(s?):\/\//.test(l),Et=["href","target","rel"],St=e.defineComponent({__name:"OnyxLink",props:{href:{},target:{default:"_self"},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(l,{emit:o}){const t=l,n=o,a=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:Y(t.href));return(r,c)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:c[0]||(c[0]=u=>n("click"))},[e.renderSlot(r.$slots,"default"),a.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-link__icon",icon:e.unref(K),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)],8,Et))}}),wt=["_self","_blank","_parent","_top"],X=l=>l,Lt=(()=>{let l=1;return()=>l++})(),O=l=>`${l}-${Lt()}`,Tt=l=>!$t.has(l),Nt=["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"],$t=new Set(Nt),Ot=(l,o)=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>l(...n),o)}},Mt=(l,o=500)=>{let t="";const n=Ot(()=>t="",o);return a=>{Tt(a.key)&&(n(),t=`${t}${a.key}`,l(t))}},At=X(l=>{const o=e.computed(()=>e.unref(l.multiple)??!1),t=new Map,n=s=>(t.has(s)||t.set(s,O("listbox-option")),t.get(s)),a=e.ref(!1);e.watchEffect(()=>{var m;if(l.activeOption.value==null||!a.value&&!l.controlled)return;const s=n(l.activeOption.value);(m=document.getElementById(s))==null||m.scrollIntoView({block:"nearest",inline:"nearest"})});const r=Mt(s=>{var m;return(m=l.onTypeAhead)==null?void 0:m.call(l,s)}),c=s=>{var m,i,y,d,f,C,V;switch(s.key){case" ":s.preventDefault(),l.activeOption.value!=null&&((m=l.onSelect)==null||m.call(l,l.activeOption.value));break;case"ArrowUp":if(s.preventDefault(),l.activeOption.value==null){(i=l.onActivateLast)==null||i.call(l);return}(y=l.onActivatePrevious)==null||y.call(l,l.activeOption.value);break;case"ArrowDown":if(s.preventDefault(),l.activeOption.value==null){(d=l.onActivateFirst)==null||d.call(l);return}(f=l.onActivateNext)==null||f.call(l,l.activeOption.value);break;case"Home":s.preventDefault(),(C=l.onActivateFirst)==null||C.call(l);break;case"End":s.preventDefault(),(V=l.onActivateLast)==null||V.call(l);break;default:r(s)}};return{elements:{listbox:e.computed(()=>l.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(l.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(l.label),tabindex:"0","aria-activedescendant":l.activeOption.value!=null?n(l.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:c}),group:e.computed(()=>s=>({role:"group","aria-label":s.label})),option:e.computed(()=>s=>{const m=s.selected??!1;return{id:n(s.value),role:"option","aria-label":s.label,"aria-checked":o.value?m:void 0,"aria-selected":o.value?void 0:m,"aria-disabled":s.disabled,onClick:()=>{var i;return!s.disabled&&((i=l.onSelect)==null?void 0:i.call(l,s.value))}}})},state:{isFocused:a},internals:{getOptionId:n}}}),It=X(l=>{const o=O("tooltip"),t=e.ref(!1);let n;const a=e.computed(()=>{const d=e.unref(l.open);return typeof d!="object"?200:d.debounce}),r=e.computed(()=>{const d=e.unref(l.open);return typeof d!="object"?d:d.type}),c=e.computed({get:()=>t.value,set:d=>{clearTimeout(n),n=setTimeout(()=>{t.value=d},a.value)}}),u=e.computed(()=>typeof r.value=="boolean"?r.value:c.value),s=()=>{t.value=!t.value},m=e.computed(()=>{if(r.value==="hover")return{onMouseover:()=>c.value=!0,onMouseout:()=>c.value=!1,onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1}}),i=d=>{d.key==="Escape"&&(t.value=!1)},y=d=>{var V;const f=(V=document.getElementById(o))==null?void 0:V.parentElement;if(!f||!(d.target instanceof Node))return;!f.contains(d.target)&&(t.value=!1)};return e.onBeforeMount(()=>{document.addEventListener("keydown",i),e.watchEffect(()=>{r.value==="click"?document.addEventListener("click",y):document.removeEventListener("click",y)})}),e.onBeforeUnmount(()=>{document.addEventListener("keydown",i),document.addEventListener("click",y)}),{elements:{trigger:e.computed(()=>({"aria-describedby":o,onClick:r.value==="click"?s:void 0,...m.value})),tooltip:e.computed(()=>({role:"tooltip",id:o,tabindex:"-1",...m.value}))},state:{isVisible:u}}}),W=l=>{const t=e.ref(!1),n=r=>{const c=r.target;if(!(c instanceof Element))return;const u=e.unref(l.offset)??0;t.value=Math.abs(c.scrollTop)+c.clientHeight>=c.scrollHeight-u-1};return{vScrollEnd:{mounted:r=>{e.watchEffect(()=>{var u;(((u=l.enabled)==null?void 0:u.value)??!0)&&!l.loading.value?r.addEventListener("scroll",n):r.removeEventListener("scroll",n)})}},isScrollEnd:t}},Pt=["checked","aria-labelledby","disabled","indeterminate"],Dt={class:"onyx-truncation-ellipsis"},q=e.defineComponent({__name:"OnyxListboxOption",props:{active:{type:Boolean},multiple:{type:Boolean},indeterminate:{type:Boolean}},setup(l){const o=l;return(t,n)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["onyx-listbox-option",{"onyx-listbox-option--active":o.active}])},[o.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:o.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-listbox-option__checkbox",type:"checkbox"},null,8,Pt)):e.createCommentVNode("",!0),e.createElementVNode("span",Dt,[e.renderSlot(t.$slots,"default")])],2))}}),zt=["aria-busy"],Ft={key:0,class:"onyx-listbox__slot onyx-listbox__slot--loading"},Rt={key:0,role:"presentation",class:"onyx-listbox__group-name onyx-text--small"},qt={key:0,class:"onyx-listbox__slot"},Ut={key:1,class:"onyx-listbox__slot"},Ht={key:3,class:"onyx-listbox__message onyx-text--small"},J=e.defineComponent({__name:"OnyxListbox",props:{label:{},options:{},message:{},modelValue:{},multiple:{},withCheckAll:{},loading:{type:Boolean,default:!1},lazyLoading:{}},emits:["update:modelValue","lazyLoad"],setup(l,{emit:o}){const t=l,n=o,a=e.useSlots(),{t:r}=w(),c=e.ref();e.watch(()=>t.modelValue,p=>{t.multiple||(c.value=p)});const u=O("ONYX_CHECK_ALL"),s=e.computed(()=>(t.withCheckAll?[u]:[]).concat(I.value)),{elements:{listbox:m,option:i,group:y}}=At({label:e.computed(()=>t.label),multiple:e.computed(()=>!!t.multiple),selectedOption:e.computed(()=>t.modelValue),activeOption:c,onSelect:p=>{var T;if(p===u){(T=L.value)==null||T.handleChange(!L.value.state.value.modelValue);return}if(!t.multiple){const g=p===t.modelValue?void 0:p;n("update:modelValue",g);return}const k=Array.isArray(t.modelValue)?t.modelValue:[],_=k.includes(p)?k.filter(g=>g!==p):[...k,p];n("update:modelValue",_)},onActivateFirst:()=>c.value=s.value.at(0),onActivateLast:()=>c.value=s.value.at(-1),onActivateNext:p=>{const k=s.value.findIndex(_=>_===p);k<s.value.length-1&&(c.value=s.value[k+1])},onActivatePrevious:p=>{const k=s.value.findIndex(_=>_===p);k>0&&(c.value=s.value[k-1])},onTypeAhead:p=>{const k=t.options.find(_=>_.label.toLowerCase().trim().startsWith(p.toLowerCase()));k&&(c.value=k.value)}}),d=e.computed(()=>t.options.reduce((p,k)=>{const _=k.group??"";return p[_]=p[_]||[],p[_].push(k),p},{})),{vScrollEnd:f,isScrollEnd:C}=W({enabled:e.computed(()=>{var p;return((p=t.lazyLoading)==null?void 0:p.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var p;return(p=t.lazyLoading)==null?void 0:p.scrollOffset})}),V=e.computed(()=>t.options.length===0),I=e.computed(()=>t.options.filter(p=>!p.disabled).map(({value:p})=>p)),L=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return H(I,e.computed(()=>t.modelValue||[]),p=>n("update:modelValue",p))}),P=e.computed(()=>{var k;const p=r.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?p:((k=t.withCheckAll)==null?void 0:k.label)??p});return e.watchEffect(()=>{C.value&&n("lazyLoad")}),(p,k)=>{var _;return e.openBlock(),e.createElementBlock("div",{class:"onyx-listbox","aria-busy":t.loading},[t.loading?(e.openBlock(),e.createElementBlock("div",Ft,[e.createVNode(b,{class:"onyx-listbox__loading"})])):V.value?e.renderSlot(p.$slots,"empty",{key:1,defaultMessage:e.unref(r)("empty")},()=>[e.createVNode(j,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("empty")),1)]),_:1})]):e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2},e.unref(m),{class:"onyx-listbox__wrapper"}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(T,g)=>{var D,z;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:g,class:"onyx-listbox__group"},e.unref(y)({label:g})),[g!=""?(e.openBlock(),e.createElementBlock("li",Rt,e.toDisplayString(g),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll?(e.openBlock(),e.createBlock(q,e.mergeProps({key:1},e.unref(i)({value:e.unref(u),label:P.value,selected:(D=L.value)==null?void 0:D.state.value.modelValue}),{multiple:"",active:e.unref(u)===c.value,indeterminate:(z=L.value)==null?void 0:z.state.value.indeterminate,class:"onyx-listbox__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value),1)]),_:1},16,["active","indeterminate"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T,B=>(e.openBlock(),e.createBlock(q,e.mergeProps({key:B.value.toString()},e.unref(i)({value:B.value,label:B.label,disabled:B.disabled,selected:B.value===t.modelValue||Array.isArray(t.modelValue)&&t.modelValue.includes(B.value)}),{multiple:t.multiple,active:B.value===c.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1040,["multiple","active"]))),128))],16)}),128)),(_=t.lazyLoading)!=null&&_.loading?(e.openBlock(),e.createElementBlock("div",qt,[e.createVNode(b,{class:"onyx-listbox__loading"})])):e.createCommentVNode("",!0),e.unref(a).optionsEnd?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(p.$slots,"optionsEnd")])):e.createCommentVNode("",!0)],16)),[[e.unref(f)]]),t.message?(e.openBlock(),e.createElementBlock("span",Ht,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)],8,zt)}}}),Zt=["aria-label"],Gt=e.defineComponent({__name:"OnyxNavItem",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"},options:{}},emits:["navigate"],setup(l,{emit:o}){const t=l,n=o,a=e.computed(()=>{var u;return((u=t.options)==null?void 0:u.map(s=>({value:s.href,label:s.label})))??[]}),{t:r}=w(),c=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:Y(t.href??""));return(u,s)=>{var m,i,y;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("li",{role:"menuitem",tabindex:"0","aria-label":t.label,class:e.normalizeClass(["onyx-nav-item onyx-text",{"onyx-nav-item--active":t.active||((m=t.options)==null?void 0:m.find(d=>d.active))}]),onClick:s[0]||(s[0]=d=>t.href&&n("navigate",t.href)),onKeydown:s[1]||(s[1]=e.withKeys(d=>t.href&&n("navigate",t.href),["enter"]))},[e.createElementVNode("span",null,e.toDisplayString(t.label),1),c.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-item__icon",icon:e.unref(K),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default")],42,Zt),a.value.length>0?(e.openBlock(),e.createBlock(J,{key:0,class:"onyx-nav-item__listbox",label:e.unref(r)("navItemOptionsLabel",{label:t.label}),options:a.value,"model-value":(y=(i=t.options)==null?void 0:i.find(d=>d.active))==null?void 0:y.href,"onUpdate:modelValue":s[2]||(s[2]=d=>d&&n("navigate",d))},null,8,["label","options","model-value"])):e.createCommentVNode("",!0)],64)}}}),jt={key:0,class:"onyx-page__sidebar"},Kt={class:"onyx-page__main"},Yt={key:1,class:"onyx-page__footer"},Xt={key:2,class:"onyx-page__toasts"},Wt=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(l){const o=l,t=e.useSlots(),n=e.computed(()=>{let a="";return!t.footer&&t.sidebar&&(a="onyx-page--side-main"),t.footer&&(!t.sidebar||o.hideSidebar)&&(a="onyx-page--main-footer"),t.footer&&t.sidebar&&(o.footerAsideSidebar?a="onyx-page--side-main-footer-partial":a="onyx-page--side-main-footer-full"),a});return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",n.value])},[e.unref(t).sidebar&&!o.hideSidebar?(e.openBlock(),e.createElementBlock("aside",jt,[e.renderSlot(a.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Kt,[e.renderSlot(a.$slots,"default")]),e.unref(t).footer?(e.openBlock(),e.createElementBlock("footer",Yt,[e.renderSlot(a.$slots,"footer")])):e.createCommentVNode("",!0),e.unref(t).toasts?(e.openBlock(),e.createElementBlock("div",Xt,[e.renderSlot(a.$slots,"toasts")])):e.createCommentVNode("",!0)],2))}}),Jt=["title"],Qt=["required","name","value","checked","disabled"],M=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:{},name:{},selected:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(l,{emit:o}){const t=l,n=o,{vCustomValidity:a}=$({props:t,emit:n}),{densityClass:r}=h(t),c=u=>{const s=u.target.checked;n("change",s)};return(u,s)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(r)])},[e.createVNode(v,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(v,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(r)]),title:t.customError},[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{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.selected,disabled:t.disabled,onChange:c},null,40,Qt)),[[e.unref(a)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,Jt))}}),eo=["disabled"],to={key:0,class:"onyx-radio-button-group__headline"},oo=e.defineComponent({__name:"OnyxRadioButtonGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},options:{},name:{default:()=>O("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(l,{emit:o}){const t=l,{densityClass:n}=h(t),{requiredMarkerClass:a,requiredTypeClass:r}=S(t),c=o,u=(s,m)=>{s&&c("update:modelValue",m)};return(s,m)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(n),e.unref(r)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",to,[e.createVNode(A,{is:"h3",class:e.normalizeClass(e.unref(a))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(i,y)=>(e.openBlock(),e.createBlock(M,e.mergeProps({key:i.value.toString()},i,{name:t.name,"custom-error":t.customError,selected:i.value===t.modelValue,required:t.required,onValidityChange:d=>y===0&&c("validityChange",d),onChange:d=>u(d,i.value)}),null,16,["name","custom-error","selected","required","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,i=>(e.openBlock(),e.createBlock(M,{id:`skeleton-${i}`,key:i,value:`skeleton-${i}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,eo))}}),lo='<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>',no={class:"onyx-truncation-ellipsis"},ao={class:"onyx-select__wrapper"},ro=["placeholder","required","disabled","aria-label","title"],so={key:0,class:"onyx-select__footer onyx-text--small onyx-truncation-ellipsis"},co=e.defineComponent({__name:"OnyxSelect",props:{density:{},required:{type:Boolean},requiredMarker:{},label:{},options:{},modelValue:{},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},multiple:{},message:{}},emits:["update:modelValue"],setup(l){const o=l,{t}=w(),n=e.computed(()=>{if(o.multiple)return typeof o.multiple=="object"?o.multiple.textMode:"summary"}),a=e.computed(()=>Array.isArray(o.modelValue)?o.modelValue.length:o.modelValue?1:0),r=e.computed(()=>{var m;if(Array.isArray(o.modelValue)){const i=o.modelValue.length;if(!i)return"";if(i===1)return o.modelValue[0].label;switch(n.value){case"preview":return o.modelValue.map(({label:y})=>y).join(", ");case"summary":default:return t.value("selections.currentSelection",{n:i})}}return((m=o.modelValue)==null?void 0:m.label)??""}),{requiredMarkerClass:c,requiredTypeClass:u}=S(o),{densityClass:s}=h(o);return(m,i)=>o.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-select-skeleton",e.unref(s)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(v),{key:0,class:"onyx-select-skeleton__label"})),e.createVNode(e.unref(v),{class:"onyx-select-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-select",e.unref(u),e.unref(s),o.readonly?"onyx-select--readonly":"onyx-select--editable"])},[e.createElementVNode("label",null,[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-select__label","onyx-text--small",e.unref(c)])},[e.createElementVNode("div",no,e.toDisplayString(o.label),1)],2)),e.createElementVNode("div",ao,[o.loading?(e.openBlock(),e.createBlock(b,{key:0,class:"onyx-select__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=y=>r.value=y),class:"onyx-select__input onyx-truncation-ellipsis",placeholder:o.placeholder,type:"text",role:"presentation",required:o.required,readonly:"",disabled:o.disabled||o.loading,"aria-label":o.hideLabel?o.label:void 0,title:o.hideLabel?o.label:void 0},null,8,ro),[[e.vModelText,r.value]]),n.value==="preview"&&a.value>0?(e.openBlock(),e.createBlock(e.unref(Q),{key:1,text:r.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode(e.unref(U),{class:"onyx-select__badge",variation:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createVNode(e.unref(x),{icon:e.unref(lo),class:"onyx-select__icon"},null,8,["icon"])])]),o.message?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0)],2))}}),io=["summary","preview"],uo='<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>',po='<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>',mo={class:"onyx-switch-skeleton__click-area"},yo=["title"],fo=["aria-label","disabled","required"],ko={class:"onyx-switch__click-area"},_o={class:"onyx-switch__container"},vo={class:"onyx-switch__icon"},ho=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),xo=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},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(l,{emit:o}){const t=l,n=o,{requiredMarkerClass:a,requiredTypeClass:r}=S(t),{densityClass:c}=h(t),{vCustomValidity:u}=$({props:t,emit:n}),s=e.computed({get:()=>t.modelValue,set:m=>{n("update:modelValue",m)}});return(m,i)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(c)])},[e.createElementVNode("span",mo,[e.createVNode(v,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(r),e.unref(c)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=y=>s.value=y),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},null,10,fo),[[e.vModelCheckbox,s.value],[e.unref(u)]]),e.createElementVNode("span",ko,[e.createElementVNode("span",_o,[e.createElementVNode("span",vo,[t.loading?(e.openBlock(),e.createBlock(e.unref(b),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(x),{key:1,icon:s.value?e.unref(uo):e.unref(po),size:"24px"},null,8,["icon"]))]),ho])]),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(a):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],10,yo))}}),bo=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},grid:{type:Boolean,default:!1}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.grid?"onyx-table--grid":"",e.unref(t)]])},[e.renderSlot(n.$slots,"default")],2))}}),Co={class:"onyx-tooltip-wrapper"},Q=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(l){const o=l,{elements:{trigger:t,tooltip:n},state:{isVisible:a}}=It({open:e.computed(()=>o.open)});return(r,c)=>(e.openBlock(),e.createElementBlock("div",Co,[e.createElementVNode("div",e.mergeProps(e.unref(n),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--bottom":o.position==="bottom","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!e.unref(a)}]}),[o.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(t))),[e.renderSlot(r.$slots,"default")],16)]))}}),go=["top","bottom"],Bo={class:"onyx-text onyx-truncation-ellipsis"},Vo=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(l){const o=l,{densityClass:t}=h(o);return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${o.color}`,e.unref(t)])},[o.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",Bo,e.toDisplayString(o.label),1)],2))}}),Eo=["primary","secondary","neutral","danger","warning","success","info"],So=["small","default","large"],wo=["ellipsis","multiline"],Lo=["horizontal","vertical"],To=l=>({install:o=>{nt(o,l.i18n);const t=o.runWithContext(()=>w());e.watchEffect(()=>No(t.t.value("optional")))}}),No=l=>globalThis.document.body.style.setProperty("--onyx-global-optional-text",l);exports.AUTOCAPITALIZE=Vt;exports.AVATAR_TYPES=be;exports.BUTTON_MODES=Ge;exports.BUTTON_TYPES=He;exports.BUTTON_VARIATIONS=Ze;exports.DENSITIES=Be;exports.DIRECTIONS=Lo;exports.HEADLINE_TYPES=mt;exports.ICON_SIZES=yt;exports.INPUT_TYPES=Bt;exports.LINK_TARGETS=wt;exports.MULTISELECT_TEXT_MODE=io;exports.ONYX_COLORS=Eo;exports.OnyxAppLayout=ne;exports.OnyxAvatar=xe;exports.OnyxAvatarStack=ge;exports.OnyxBadge=U;exports.OnyxButton=Ue;exports.OnyxCheckbox=N;exports.OnyxCheckboxGroup=it;exports.OnyxEmpty=j;exports.OnyxHeadline=A;exports.OnyxIcon=x;exports.OnyxIconButton=kt;exports.OnyxInput=gt;exports.OnyxLink=St;exports.OnyxListbox=J;exports.OnyxLoadingIndicator=b;exports.OnyxNavItem=Gt;exports.OnyxPageLayout=Wt;exports.OnyxRadioButton=M;exports.OnyxRadioButtonGroup=oo;exports.OnyxSelect=co;exports.OnyxSkeleton=v;exports.OnyxSwitch=xo;exports.OnyxTable=bo;exports.OnyxTag=Vo;exports.OnyxTooltip=Q;exports.TEXT_SIZES=So;exports.TOOLTIP_POSITIONS=go;exports.TRUNCATION_TYPES=wo;exports.createOnyx=To;exports.useDensity=h;exports.useScrollEnd=W;
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { default as OnyxButton } from './components/OnyxButton/OnyxButton.vue';
8
8
  export * from './components/OnyxButton/types';
9
9
  export { default as OnyxBadge } from './components/OnyxBadge/OnyxBadge.vue';
10
10
  export * from './components/OnyxBadge/types';
11
+ export { default as OnyxCheckbox } from './components/OnyxCheckbox/OnyxCheckbox.vue';
11
12
  export * from './components/OnyxCheckbox/types';
12
13
  export { default as OnyxCheckboxGroup } from './components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue';
13
14
  export * from './components/OnyxCheckboxGroup/types';
@@ -30,6 +31,7 @@ export { default as OnyxNavItem } from './components/OnyxNavItem/OnyxNavItem.vue
30
31
  export * from './components/OnyxNavItem/types';
31
32
  export { default as OnyxPageLayout } from './components/OnyxPageLayout/OnyxPageLayout.vue';
32
33
  export * from './components/OnyxPageLayout/types';
34
+ export { default as OnyxRadioButton } from './components/OnyxRadioButton/OnyxRadioButton.vue';
33
35
  export * from './components/OnyxRadioButton/types';
34
36
  export { default as OnyxRadioButtonGroup } from './components/OnyxRadioButtonGroup/OnyxRadioButtonGroup.vue';
35
37
  export * from './components/OnyxRadioButtonGroup/types';
@@ -46,6 +48,6 @@ export { default as OnyxTag } from './components/OnyxTag/OnyxTag.vue';
46
48
  export * from './components/OnyxTag/types';
47
49
  export * from './composables/density';
48
50
  export * from './composables/scrollEnd';
49
- export type { OnyxTranslations, ProvideI18nOptions } from './i18n';
50
51
  export * from './types';
52
+ export type { OnyxTranslations, ProvideI18nOptions } from './i18n';
51
53
  export { createOnyx } from './utils/plugin';