sit-onyx 1.0.0-beta.66 → 1.0.0-beta.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),We={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},Zt={key:0,class:"onyx-app__nav"},jt={class:"onyx-app__page"},Yt={key:1,class:"onyx-app__page-overlay"},Jt={key:2,class:"onyx-app__app-overlay"},Wt=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":o.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Yt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Jt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Xt=["title"],Qt=["src","alt"],eo={key:1,class:"onyx-avatar__initials"},be=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(n){const o=n,t=e.useSlots(),l=e.computed(()=>{const a=o.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>o.src,()=>r.value=!1),(a,c)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${o.size}`,t.default?"onyx-avatar--custom":""]]),title:o.label},[o.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:o.src,alt:o.label,onError:c[0]||(c[0]=s=>r.value=!0)},null,40,Qt)):(e.openBlock(),e.createElementBlock("div",eo,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Xt))}}),to={class:"onyx-avatar-stack"},oo=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(o.$slots,"default")]))}}),no=["compact","default","cozy"],C=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:!!n.density}))}),lo=["innerHTML"],V=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${o.size}`]:o.size,[`onyx-icon--${o.color}`]:o.color}),"aria-hidden":"true",innerHTML:o.icon},null,10,lo))}}),Xe=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${o.color}`,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(V,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),Qe=Symbol(),P=Symbol("SKELETON_INJECTED_SYMBOL"),et=n=>o=>e.computed(()=>typeof o.skeleton!="symbol"?o.skeleton:o.skeleton===P&&(n==null?void 0:n.skeleton)===!0?3:!1),tt=n=>e.provide(Qe,et(n)),ao=et(),A=n=>e.inject(Qe,ao)(n),ot=Symbol(),T=Symbol("FORM_INJECTED_SYMBOL"),Ge=(n,o,t,l)=>e.computed(()=>{const r=o.value[t];return r!=null&&typeof r!="symbol"?r:r===T?(n==null?void 0:n.value[t])??l:l}),nt=n=>o=>({disabled:Ge(n,o,"disabled",!1),showError:Ge(n,o,"showError","touched")}),ro=n=>e.provide(ot,nt(n&&e.toRef(n))),so=nt(),R=n=>e.inject(ot,so)(e.toRef(n)),Oe=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},io={},co={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function uo(n,o){return e.openBlock(),e.createElementBlock("svg",co,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const po=Oe(io,[["render",uo]]),mo={},fo={class:"onyx-loading-dots"};function yo(n,o){return e.openBlock(),e.createElementBlock("div",fo,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const ho=Oe(mo,[["render",yo]]),H=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(po,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(ho,{key:1})):e.createCommentVNode("",!0)}}),vo=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=s=>{var d;const u=(d=n.value)==null?void 0:d.getBoundingClientRect();if(!u)return;o.value=!0;const i={id:Date.now().toString(),left:`${s.x-u.left}px`,top:`${s.y-u.top}px`,animationEnded:!1};return t.set(i.id,i),i.id},r=s=>{const u=s.dataset.rippleid;u!=null&&(t.has(u)&&(t.get(u).animationEnded=!0),o.value||t.delete(u))},a=()=>{o.value=!1,t.forEach((s,u)=>{s.animationEnded&&t.delete(u)})},c=e.ref({});return e.onBeforeMount(()=>{var s;(s=window.matchMedia)!=null&&s.call(window,"pointer: none").matches?c.value={touchstart:l,touchend:a,touchcancel:a}:c.value={mousedown:l,mouseleave:a,mouseup:a}}),{isPointerDown:o,ripples:t,startRipple:l,hideRipples:a,hideRipple:r,events:c}},_o=["data-rippleid"],go=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=vo(t);return o({events:a}),(c,s)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"rippleTrigger",ref:t,class:"onyx-ripple","aria-hidden":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),([u,i])=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":i.left,"--onyx-ripple-top":i.top}),"data-rippleid":u,onAnimationend:s[0]||(s[0]=d=>e.unref(r)(d.target))},null,44,_o))),128))],512))}}),ko={},xo={"aria-hidden":"true",class:"onyx-skeleton"};function bo(n,o){return e.openBlock(),e.createElementBlock("figure",xo)}const O=Oe(ko,[["render",bo]]),Bo=["disabled","type","aria-label","autofocus"],Co={class:"onyx-button__label onyx-truncation-ellipsis"},le=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:T},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:P}},setup(n){const o=n,{densityClass:t}=C(o),{disabled:l}=R(o),r=A(o),a=e.ref(),c=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.events)??{}});return(s,u)=>e.unref(r)?(e.openBlock(),e.createBlock(O,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(t)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:["onyx-button",`onyx-button--${o.color}`,`onyx-button--${o.mode}`,{"onyx-button--loading":o.loading},e.unref(t)],disabled:e.unref(l)||o.loading,type:o.type,"aria-label":o.loading?o.label:void 0,autofocus:o.autofocus},e.toHandlers(c.value,!0)),[!e.unref(l)&&!o.loading?(e.openBlock(),e.createBlock(go,{key:0,ref_key:"rippleRef",ref:a},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(V,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(H,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Co,e.toDisplayString(o.label),1)],16,Bo))}}),wo=["button","submit","reset"],Vo=["primary","neutral","danger"],Eo=["default","outline","plain"],re=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),So="(optional)",No="Cancel",Mo="Apply",$o="Back",Oo="Close",To={head:{sortingAction:{asc:"Sort the table ascending by the {field} column.",desc:"Sort the table descending by the {field} column.",none:"Reset the sorting order."}}},Io={tooShort:{preview:"Too short",fullError:"Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"},tooLong:{preview:"Too long",fullError:"Please shorten this text to {maxLength} characters or less (you are currently using 1 character) | Please shorten this text to {maxLength} characters or less (you are currently using {n} characters)"},rangeUnderflow:{preview:"Too low",fullError:"Value must be greater than or equal to {min}"},rangeOverflow:{preview:"Too high",fullError:"Value must be less than or equal to {max}"},patternMismatch:{preview:"Invalid format",fullError:"Please match the format requested."},valueMissing:{preview:"Required",fullError:"Please fill in this field."},stepMismatch:{preview:"Invalid number",fullError:"Please enter a value that is a multiple of {step}."},badInput:{preview:"Invalid input",fullError:'"{value}" does not match the expected type.'},typeMismatch:{generic:{preview:"Invalid input type",fullError:'"{value}" does not match the expected type.'},email:{preview:"Invalid mail",fullError:'"{value}" must be a valid email address.'},number:{preview:"Invalid number",fullError:'"{value}" must be a number.'},tel:{preview:"Invalid phone number",fullError:'"{value}" must be a valid phone number.'},url:{preview:"Invalid URL",fullError:'"{value}" must a valid URL.'}}},Lo={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter",searchPlaceholder:"Search"},Do={selectAll:"Select all",currentSelection:"{n} selected"},Po={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},Ao={empty:"This table is empty."},Ro={opensExternally:"Opens in a new tab."},zo="Subpages of {label}",Ho={appLogo:"App logo of {appName}",goToHome:"Go to home page",goBack:"Go back",userMenuLabel:"User options",toggleBurgerMenu:"Toggle burger menu",toggleContextMenu:"Toggle context menu",navigationHeadline:"Navigation"},Fo={info:"Toggle info tooltip",error:"Toggle error tooltip"},Uo={headline:"Change appearance",subtitle:"Select the appearance of the application:",appearance:"Appearance",auto:{label:"Auto",description:"The application automatically adapts its appearance to your system settings."},light:{label:"Light",description:"Light mode provides optimal contrast for bright environments."},dark:{label:"Dark",description:"This color mode is optimized for darker environments."}},qo={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},Be={optional:So,cancel:No,apply:Mo,back:$o,close:Oo,dataGrid:To,validations:Io,select:Lo,selections:Do,stepper:Po,table:Ao,link:Ro,navItemOptionsLabel:zo,navigation:Ho,tooltip:Fo,colorScheme:Uo,pagination:qo},lt=Symbol(),at=(n={})=>{const o=e.computed(()=>e.unref(n==null?void 0:n.locale)??"en-US");if(n.t)return{t:n.t,locale:o};const t=e.computed(()=>n!=null&&n.messages&&o.value in n.messages?n.messages[o.value]:Be),l=e.computed(()=>(r,a={})=>{let c=Ke(r,t.value)??Ke(r,Be)??"";return c=Go(c,a.n),Ko(c,a)});return{locale:o,t:l}},rt=(n,o)=>{const t=at(o);return n.provide(lt,t),t},S=()=>e.inject(lt,()=>at(),!0),Ke=(n,o)=>{const t=n.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],o);return t&&typeof t=="string"?t:void 0},Go=(n,o)=>{const t=n.split(" | ").map(r=>r.trim());if(t.length<=1)return n;let l=1;return o===0&&(l=0),o&&(o<=0||o>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},Ko=(n,o)=>o?Object.entries(o).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),n).replace(/\s?{.*}\s?/gi,""):n,Zo=(n,o)=>{const t=Object.entries(n).filter(([r,a])=>a!==void 0),l=Object.entries(o).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===o[r])},jo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),st=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Yo=n=>st().reduce((o,t)=>(o[t]=n[t],o),{}),Jo=n=>{if(n.valueMissing)return"valueMissing";const o=st().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},Wo=Object.keys(Be.validations.typeMismatch),Ze=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n}:n},it=n=>{if(!n)return;if(typeof n=="string")return n;if(n.shortMessage===n.longMessage)return n.shortMessage;const{shortMessage:o,longMessage:t}=n;return`${o}: ${t}`},q=n=>{const{t:o}=S(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(it(n.props.customError)??"")),e.watch([()=>n.props],()=>{const u=Yo(s.validity);!t.value&&u.valid||t.value&&Zo(u,t.value)||(t.value=u)},{immediate:!0,deep:!0}),e.watch([()=>n.props.customError,t,l],()=>{!l.value||!t.value||n.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var d,p,f;if(!t.value||t.value.valid)return;const s=Jo(t.value),u=Ze(n.props.customError);if(u||s==="customError")return u||void 0;if(!s)return;if(s==="typeMismatch"){const y=Wo.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${y}.fullError`,{value:(d=n.props.modelValue)==null?void 0:d.toString()}),shortMessage:o.value(`validations.typeMismatch.${y}.preview`)}}const i={value:(p=n.props.modelValue)==null?void 0:p.toString(),n:((f=n.props.modelValue)==null?void 0:f.toString().length)??0,minLength:n.props.minlength,maxLength:n.props.maxlength,min:n.props.min,max:n.props.max,step:n.props.precision};return{longMessage:o.value(`validations.${s}.fullError`,i),shortMessage:o.value(`validations.${s}.preview`)}}),c=e.computed(()=>{if(!(t.value===void 0||!t.value.valid))return Ze(n.props.successMessage)});return{vCustomValidity:r,errorMessages:a,successMessages:c}},F=n=>n;function Ce(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const Xo=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),Qo=(n,o)=>typeof o=="string"?n.key===o:Xo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),we=n=>!tn.has(n),en=["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"],tn=new Set(en),G=e.reactive(new Map),on=(n,o)=>{if(o!=null&&o.size){G.set(n,o);return}G.delete(n),document.removeEventListener(n,ct)},je=(n,o)=>{const t=G.get(n);t==null||t.delete(o),on(n,t)},nn=(n,o)=>{const t=G.get(n)??new Set;t.add(o),G.set(n,t),document.addEventListener(n,ct)},ct=n=>{var t;const o=n.type;(t=G.get(o))==null||t.forEach(l=>l(n))},se=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?je(n,o):nn(n,o))),e.onBeforeUnmount(()=>je(n,o))},ut=({inside:n,onOutsideClick:o,disabled:t})=>{se({type:"click",listener:r=>{const a=e.toValue(n);!(Array.isArray(a)?a:[a]).some(u=>u==null?void 0:u.contains(r.target))&&o(r)},disabled:t})},dt=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},pt=(n,o=500)=>{let t="";const l=dt(()=>t="",o);return r=>{we(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},ln=F(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=i=>(l.has(i)||l.set(i,e.useId()),l.get(i)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const i=r(n.activeOption.value);await e.nextTick(()=>{var d;(d=document.getElementById(i))==null||d.scrollIntoView({block:"end",inline:"nearest"})})});const c=pt(i=>{var d;return(d=n.onTypeAhead)==null?void 0:d.call(n,i)}),s=i=>{var d,p,f,y,m,h,_;switch(i.key){case" ":i.preventDefault(),n.activeOption.value!=null&&((d=n.onSelect)==null||d.call(n,n.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),n.activeOption.value==null){(p=n.onActivateLast)==null||p.call(n);return}(f=n.onActivatePrevious)==null||f.call(n,n.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),n.activeOption.value==null){(y=n.onActivateFirst)==null||y.call(n);return}(m=n.onActivateNext)==null||m.call(n,n.activeOption.value);break;case"Home":i.preventDefault(),(h=n.onActivateFirst)==null||h.call(n);break;case"End":i.preventDefault(),(_=n.onActivateLast)==null||_.call(n);break;default:c(i)}};return{elements:{listbox:e.computed(()=>n.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"0","aria-activedescendant":n.activeOption.value!=null?r(n.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:s}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const d=i.selected??!1;return{id:r(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":o.value?d:void 0,"aria-selected":o.value?void 0:d,onClick:()=>{var p;return!i.disabled&&((p=n.onSelect)==null?void 0:p.call(n,i.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),mt=["ArrowDown","ArrowUp"," ","Enter","Home","End"],ft=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],Ye=["Enter"],an=(n,o)=>{const t=o?[...Ye," "]:Ye;return Ve(n,t)},Ve=(n,o)=>o.some(t=>Qo(n,t)),rn=F(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:c,isExpanded:s,activeOption:u,onToggle:i,onSelect:d,onActivateFirst:p,onActivateLast:f,onActivateNext:y,onActivatePrevious:m,templateRef:h})=>{const _=e.useId(),b=e.computed(()=>e.unref(n)),B=e.computed(()=>e.unref(s)),$=e.computed(()=>e.unref(l)),N=x=>{const ye=x.target;b.value!=="none"&&(o==null||o(ye.value))},g=pt(x=>t==null?void 0:t(x)),k=x=>{d==null||d(x),e.unref($)||i==null||i()},E=x=>{switch(x.key){case"ArrowUp":if(x.preventDefault(),u.value==null)return f==null?void 0:f();m==null||m(u.value);break;case"ArrowDown":if(x.preventDefault(),u.value==null)return p==null?void 0:p();y==null||y(u.value);break;case"Home":x.preventDefault(),p==null||p();break;case"End":x.preventDefault(),f==null||f();break}},I=x=>{if(x.key==="Enter"&&x.preventDefault(),!B.value&&Ve(x,mt))return i==null||i(),x.key===" "&&x.preventDefault(),x.key==="End"?f==null?void 0:f():p==null?void 0:p();if(an(x,b.value==="none"))return k(u.value);if(B.value&&Ve(x,ft))return i==null?void 0:i();if(b.value==="none"&&we(x.key))return!B.value&&(i==null||i()),g(x);if(b.value!=="none"&&we(x.key)){!B.value&&(i==null||i());return}return E(x)},Z=b.value!=="none"?{"aria-autocomplete":b.value,type:"text"}:null,{elements:{option:j,group:pe,listbox:me},internals:{getOptionId:fe}}=ln({label:a,description:c,multiple:$,controlled:!0,activeOption:u,isExpanded:B,onSelect:k});return ut({inside:h,onOutsideClick(){B.value&&(i==null||i(!0))}}),{elements:{option:j,group:pe,listbox:e.computed(()=>({...me.value,id:_,onMousedown:x=>x.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":B.value,"aria-controls":_,"aria-label":e.unref(r),"aria-activedescendant":u.value!=null?fe(u.value):void 0,onInput:N,onKeydown:I,...Z})),button:e.computed(()=>({tabindex:"-1",onClick:()=>i==null?void 0:i()}))}}}),sn=F(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=Ce(),a=e.useId();se({type:"keydown",listener:i=>i.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const c=dt(i=>n.value!==i&&o(),200),s=i=>{const d=document.activeElement,p=(d==null?void 0:d.closest('[role="menu"]'))||r.value;if(!p)return;const f=[...p.querySelectorAll('[role="menuitem"]')];let y=0;if(d){const h=f.indexOf(d);switch(i){case"next":y=h+1;break;case"prev":y=h-1;break;case"first":y=0;break;case"last":y=f.length-1;break}}const m=f[y];m==null||m.focus()};return{elements:{root:{id:t,onKeydown:i=>{switch(i.key){case"ArrowDown":case"ArrowRight":i.preventDefault(),s("next");break;case"ArrowUp":case"ArrowLeft":i.preventDefault(),s("prev");break;case"Home":i.preventDefault(),s("first");break;case"End":i.preventDefault(),s("last");break;case" ":i.preventDefault(),i.target.click();break;case"Escape":i.preventDefault(),n.value&&o();break}},onMouseover:()=>c(!0),onMouseout:()=>c(!1),onFocusout:i=>{var d;t&&((d=document.getElementById(t))!=null&&d.contains(i.relatedTarget))||n.value&&o()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":n.value,"aria-haspopup":!0,onFocus:()=>!n.value&&o(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>n.value&&o()},...yt().elements}}}),yt=F(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),cn={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},un=F(({navigationName:n})=>{const o=e.useId(),t=()=>{const r=o?document.getElementById(o):void 0;return r?[...r.querySelectorAll("button[aria-expanded][aria-controls]")]:[]},l=(r,a)=>{const c=t(),s=c.indexOf(r);if(s===-1)return;const u=cn.clamp(s+(a==="next"?1:-1),0,c.length-1);c[u].focus()};return{elements:{nav:{"aria-label":e.unref(n),id:o,onKeydown:r=>{switch(r.key){case"ArrowRight":l(r.target,"next");break;case"ArrowLeft":l(r.target,"previous");break}}}}}}),dn=F(n=>{const o=new Map,t=l=>(o.has(l)||o.set(l,{tabId:e.useId(),panelId:e.useId()}),o.get(l));return{elements:{tablist:e.computed(()=>({role:"tablist","aria-label":e.unref(n.label)})),tab:e.computed(()=>l=>{const{tabId:r}=t(e.unref(n.selectedTab)),{tabId:a,panelId:c}=t(l.value),s=a===r;return{id:a,role:"tab","aria-selected":s,"aria-controls":c,onClick:()=>{var u;return(u=n.onSelect)==null?void 0:u.call(n,l.value)},tabindex:s?0:-1}}),tabpanel:e.computed(()=>l=>{const{tabId:r,panelId:a}=t(l.value);return{id:a,role:"tabpanel","aria-labelledby":r}})}}}),ht=({isExpanded:n})=>se({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),pn=F(({toggleLabel:n,isVisible:o})=>{const t=Ce(),l=Ce(),r=e.toRef(o??!1);ut({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),ht({isExpanded:r});const a=()=>r.value=!r.value;return{elements:{trigger:e.computed(()=>({ref:t,onClick:a,"aria-label":e.toValue(n)})),tooltip:{ref:l,role:"status",tabindex:"-1"}},state:{isVisible:r}}}),mn=F(({debounce:n,isVisible:o})=>{const t=e.useId(),l=e.toRef(o??!1);let r;const a=e.computed({get:()=>l.value,set:s=>{clearTimeout(r),r=setTimeout(()=>{l.value=s},e.toValue(n))}}),c={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return ht({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...c},tooltip:{role:"tooltip",id:t,tabindex:"-1",...c}},state:{isVisible:l}}}),vt=(n,o="bottom")=>{const t=e.ref(o);return{openDirection:t,updateOpenDirection:()=>{var p,f,y;const r=e.unref(n);if(!r){t.value=o;return}const a=(p=Te(r))==null?void 0:p.getBoundingClientRect(),c=r.getBoundingClientRect(),s=(a==null?void 0:a.top)??((f=window.visualViewport)==null?void 0:f.pageTop)??0,i=((a==null?void 0:a.bottom)??((y=window.visualViewport)==null?void 0:y.height)??0)-c.bottom,d=c.top-s;t.value=d>i?"top":"bottom"}}},Te=n=>n?getComputedStyle(n).overflow.includes("hidden")?n:n.parentElement?Te(n.parentElement):void 0:void 0,fn=(n,o)=>{const l=e.ref("center");return{wedgePosition:l,updateWedgePosition:()=>{var b,B,$,N;const a=e.unref(n),c=e.unref(o);if(!a||!c){l.value="center";return}const s=(b=Te(a))==null?void 0:b.getBoundingClientRect(),u=a.getBoundingClientRect(),i=c.getBoundingClientRect();if(i.width<u.width){l.value="center";return}const d=(i.width-u.width+16*2)/2,p=(s==null?void 0:s.left)??((B=window.visualViewport)==null?void 0:B.pageLeft)??0,f=(s==null?void 0:s.right)??((($=window.visualViewport)==null?void 0:$.width)??window.innerWidth)+(((N=window.visualViewport)==null?void 0:N.offsetLeft)??0),y=u.left-p,m=f-u.right,h=y>=d,_=m>=d;l.value=h===_?"center":y>m?"right":"left"}}},Y=e.defineComponent({__name:"OnyxTooltip",props:{density:{},text:{},icon:{},color:{default:"neutral"},position:{default:"auto"},alignment:{default:"auto"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(n){const o=n,{densityClass:t}=C(o),{t:l}=S(),r=e.ref(!1),a=e.computed({set:g=>r.value=g,get:()=>typeof o.open=="boolean"?o.open:r.value}),c=e.computed(()=>({debounce:200,...typeof o.open=="object"&&o.open.type==="hover"&&o.open||{},isVisible:a})),s=e.computed(()=>({toggleLabel:l.value("tooltip.info"),...typeof o.open=="object"&&o.open.type==="click"&&o.open||{},isVisible:a})),u=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"hover"),i=e.computed(()=>({"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!a.value,[`onyx-tooltip--${_.value}`]:o.position==="auto",[`onyx-tooltip--${o.position}`]:o.position!=="auto",[`onyx-tooltip--${B.value}`]:o.alignment==="auto",[`onyx-tooltip--${o.alignment}`]:o.alignment!=="auto"})),d=()=>u.value==="hover"?mn(c.value):pn(s.value),p=e.shallowRef(d());e.watch(u,()=>p.value=d());const f=e.computed(()=>{var g;return(g=p.value)==null?void 0:g.elements.tooltip}),y=e.computed(()=>{var g;return e.toValue((g=p.value)==null?void 0:g.elements.trigger)}),m=e.ref(),h=e.ref(),{openDirection:_,updateOpenDirection:b}=vt(m,"top"),{wedgePosition:B,updateWedgePosition:$}=fn(m,h),N=()=>{b(),$()};return se({type:"resize",listener:()=>N()}),e.onMounted(()=>N()),e.watch(a,async()=>{await e.nextTick(),b(),$()}),(g,k)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapperRef",ref:m,class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps({ref_key:"tooltipRef",ref:h},f.value,{class:["onyx-tooltip","onyx-text--small","onyx-truncation-multiline",i.value]}),[o.icon?(e.openBlock(),e.createBlock(V,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],16),e.renderSlot(g.$slots,"default",{trigger:y.value})],2))}}),Ie=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>it(o.errorMessages)),l=e.ref();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[!t.value||o.disabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"targetRef",ref:l},null,512)):e.createCommentVNode("",!0),t.value&&!o.disabled?(e.openBlock(),e.createBlock(Y,{key:1,class:"onyx-error-tooltip",open:"hover",text:t.value,color:"danger"},{default:e.withCtx(({trigger:c})=>[e.createElementVNode("div",e.mergeProps({ref_key:"targetRef",ref:l},c),null,16)]),_:1},8,["text"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.Teleport,{key:2,to:l.value,defer:""},[e.renderSlot(r.$slots,"default")],8,["to"])):e.createCommentVNode("",!0)]))}}),yn=["title"],hn={class:"onyx-checkbox__container"},vn=["aria-label","indeterminate","disabled","required","value","autofocus"],oe=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:T},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:P},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),{requiredMarkerClass:a,requiredTypeClass:c}=re(t),{densityClass:s}=C(t),{vCustomValidity:u,errorMessages:i}=q({props:t,emit:l}),{disabled:d}=R(t),p=A(t),f=e.computed(()=>t.hideLabel?t.label:void 0);return(y,m)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(s)])},[e.createVNode(O,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(d),"error-messages":e.unref(i)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(c),e.unref(s)]]),title:f.value},[e.createElementVNode("div",hn,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":m[0]||(m[0]=h=>r.value=h),"aria-label":t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:e.unref(d),required:t.required,value:t.value,autofocus:t.autofocus},null,8,vn)),[[e.vModelCheckbox,r.value],[e.unref(u)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],10,yn)]),_:1},8,["disabled","error-messages"]))}}),_n=(n,o)=>e.computed(()=>{const t=o.value.filter(r=>n.value.includes(r)),l=t.length===n.value.length;return{modelValue:l,indeterminate:!l&&n.value.length&&t.length?!0:void 0}}),_t=(n,o,t)=>({state:_n(n,o),handleChange:l=>{const r=o.value.filter(c=>!n.value.includes(c)),a=l?r.concat(n.value):r;t(a)}}),K=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${o.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),gn=["disabled","aria-label"],kn={key:0,class:"onyx-checkbox-group__label"},xn=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},options:{},modelValue:{default:()=>[]},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{default:T},skeleton:{type:[Symbol,Boolean,Number],default:P}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=C(t),r=o,{t:a}=S(),c=(f,y)=>{const m=y?[...t.modelValue,f]:t.modelValue.filter(h=>h!==f);r("update:modelValue",m)},s=e.computed(()=>t.options.filter(f=>!f.disabled&&!f.skeleton).map(({value:f})=>f)),{disabled:u}=R(t),i=A(t),d=_t(s,e.computed(()=>t.modelValue),f=>r("update:modelValue",f)),p=e.computed(()=>{var y;const f=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?f:((y=t.withCheckAll)==null?void 0:y.label)??f});return(f,y)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:e.unref(u),"aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",kn,[e.createVNode(K,{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[e.unref(i)?typeof e.unref(i)=="number"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(i),m=>(e.openBlock(),e.createBlock(oe,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(oe,e.mergeProps({key:0},e.unref(d).state.value,{label:p.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(d).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(oe,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>c(m.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64))],2)],10,gn))}}),bn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.12 4.12 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.05 4.05 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.63 2.63 0 0 1-2.625-2.625 2.63 2.63 0 0 1 2.625-2.625 2.63 2.63 0 0 1 2.625 2.625A2.63 2.63 0 0 1 16.125 18"/></svg>',gt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 10.94 3.61-3.612 1.062 1.06L13.06 12l3.612 3.61-1.062 1.062L12 13.06l-3.61 3.612-1.062-1.062L10.94 12 7.328 8.389l1.062-1.06z"/><path fill-rule="evenodd" d="M14.049 1.702a10.5 10.5 0 0 1 5.376 2.873 10.466 10.466 0 0 1 0 14.85 10.5 10.5 0 1 1-5.376-17.723m1.394 18.644a9 9 0 0 0 2.92-1.982A9.002 9.002 0 0 0 15.48 3.626a9 9 0 0 0-9.843 2.01 9 9 0 0 0 9.807 14.71" clip-rule="evenodd"/></svg>',Bn={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Le=e.defineComponent({__name:"OnyxEmpty",props:{density:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-empty",e.unref(t)])},[e.renderSlot(l.$slots,"icon",{},()=>[e.createVNode(V,{icon:e.unref(gt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Bn,[e.renderSlot(l.$slots,"default")])],2))}}),Cn={class:"onyx-table-wrapper"},wn=["tabindex"],Vn=["span"],En={key:0,class:"onyx-table__header"},Sn={key:0},Nn=["colspan"],Mn={class:"onyx-table__empty"},$n={colspan:"100%"},On={class:"onyx-table__empty-content"},kt=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1},withPageScrolling:{type:Boolean,default:!1},columnGroups:{}},setup(n){const o=n,t=e.useSlots(),{t:l}=S(),{densityClass:r}=C(o),a=e.computed(()=>l.value("table.empty"));return(c,s)=>{var u;return e.openBlock(),e.createElementBlock("div",Cn,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!o.withPageScrolling}),tabindex:o.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("colgroup",{key:i.key,span:i.span},null,8,Vn))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",En,[(u=o.columnGroups)!=null&&u.length?(e.openBlock(),e.createElementBlock("tr",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("th",{key:i.key,colspan:i.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(i.header),9,Nn))),128))])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(c.$slots,"default",{},()=>[e.createElementVNode("tr",Mn,[e.createElementVNode("td",$n,[e.createElementVNode("div",On,[e.renderSlot(c.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Le,null,{icon:e.withCtx(()=>[e.createVNode(V,{icon:e.unref(bn),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,wn)])}}}),xt=e.defineComponent({__name:"OnyxDataGridRenderer",props:{density:{},striped:{type:Boolean,default:!0},withVerticalBorders:{type:Boolean,default:!0},withPageScrolling:{type:Boolean},columnGroups:{},columns:{},rows:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(kt,e.mergeProps({class:"onyx-data-grid"},o),{head:e.withCtx(()=>[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,r=>(e.openBlock(),e.createElementBlock("th",e.mergeProps({key:r.key,ref_for:!0},r.thAttributes,{scope:"col"}),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps({ref_for:!0},r.props),null,16))],16))),128))])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.rows,r=>(e.openBlock(),e.createElementBlock("tr",e.mergeProps({key:r.id,ref_for:!0},r.trAttributes),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.key},[r.cells[a.key]?(e.openBlock(),e.createElementBlock("td",e.mergeProps({key:0,ref_for:!0},r.cells[a.key].tdAttributes),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.cells[a.key].component),e.mergeProps({ref_for:!0},r.cells[a.key].props),null,16))],16)):e.createCommentVNode("",!0)],64))),128))],16))),128))]),_:1},16))}}),Tn={class:"onyx-data-grid-header-cell"},In={class:"onyx-data-grid-header-cell__label"},Ln={key:0,class:"onyx-data-grid-header-cell__actions"},Dn=e.defineComponent({__name:"HeaderCell",props:{label:{}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",Tn,[e.createElementVNode("span",In,e.toDisplayString(o.label),1),t.actions?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0)]))}});const Pn=n=>{const o=r=>{const c=n.map(s=>s.header).filter(s=>!!s).map(s=>s.actions).filter(s=>!!s);return r.map(s=>{const u=c.flatMap(i=>i(s)).map(({iconComponent:i})=>i);return{key:s,component:()=>e.h(Dn,{label:String(s)},{actions:u}),props:{}}})},t=(r,a)=>{const c=n.map(u=>u.mutation).filter(u=>!!u),s=[...r];return c.forEach(({func:u})=>u(s)),s.map(u=>{const i=a.reduce((d,p)=>(d[p]={component:()=>u[p],props:{row:u}},d),{});return{id:u.id,cells:i}})},l=n.flatMap(r=>r.watch);return{createRendererRows:t,createRendererColumns:o,watchSources:l}},An=e.defineComponent({__name:"OnyxDataGrid",props:{features:{default:()=>[]},columns:{},data:{}},setup(n){const o=n,t=e.ref([]),l=e.ref([]),{columns:r,data:a,features:c}=e.toRefs(o),s=e.computed(()=>Pn(c.value));let u;const i=()=>{const{createRendererColumns:d,createRendererRows:p,watchSources:f}=s.value;return e.watch([r,a,...f],()=>{t.value=d(r.value),l.value=p(a.value,r.value)},{immediate:!0,deep:!0})};return e.watch(s,()=>{u==null||u(),u=i()},{immediate:!0}),(d,p)=>(e.openBlock(),e.createBlock(e.unref(xt),{columns:t.value,rows:l.value},null,8,["columns","rows"]))}}),Rn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.905 12.653 12 17.558l-4.905-4.905 1.058-1.058 3.097 3.098V6h1.5v8.693l3.098-3.098z"/></svg>',zn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.095 10.905 12 6l4.905 4.905-1.058 1.058-3.097-3.098v8.693h-1.5V8.865l-3.098 3.098z"/></svg>',Hn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.75 1.94 5.03 5.03-1.06 1.06-3.22-3.22v8.69H15V4.81l-3.22 3.22-1.06-1.06zM9 10.5v8.69l3.22-3.22 1.06 1.06-5.03 5.03-5.03-5.03 1.06-1.06 3.22 3.22V10.5z"/></svg>',Fn=e.defineComponent({__name:"SortAction",props:{columnLabel:{},sortDirection:{}},setup(n){const o=n,{t}=S(),l=e.computed(()=>o.sortDirection==="asc"?zn:o.sortDirection==="desc"?Rn:Hn),r=e.computed(()=>{const a=Ee(o.sortDirection);return t.value(`dataGrid.head.sortingAction.${a}`,{field:o.columnLabel})});return(a,c)=>(e.openBlock(),e.createBlock(e.unref(De),{color:"neutral",icon:l.value,label:r.value},null,8,["icon","label"]))}}),Ee=n=>{switch(n){case"asc":return"desc";case"desc":return"none";case"none":default:return"asc"}},Un=Symbol("Sorting"),qn=n=>{var u;const o=e.toRef((n==null?void 0:n.sortState)??{column:void 0,direction:"none"}),t=e.computed(()=>i=>{var p;const d=e.toValue(n==null?void 0:n.columns);return((p=d==null?void 0:d[i])==null?void 0:p.sortFunc)??a.value}),l=e.computed(()=>i=>{var p;const d=e.toValue(n==null?void 0:n.columns);return!d||((p=d==null?void 0:d[i])==null?void 0:p.enabled)===!0}),r=(u=S())==null?void 0:u.locale,a=e.computed(()=>(i,d)=>new Intl.Collator(r.value).compare(String(i),String(d))),c=i=>{o.value.column===i?o.value.direction=Ee(o.value.direction):o.value={column:i,direction:Ee()},o.value.direction==="none"&&(o.value.column=void 0)};return{name:Un,watch:[o,a],mutation:{func:i=>{const{column:d,direction:p}=o.value;if(!d||p==="none")return;const f=p==="asc"?1:-1,y=t.value(d);i.sort((m,h)=>y(m[d],h[d])*f)}},header:{actions:i=>l.value(i)===!0?[{iconComponent:e.h(Fn,{columnLabel:String(i),sortDirection:o.value.column===i?o.value.direction:void 0,onClick:()=>c(i)})}]:[]}}},Gn=Object.freeze(Object.defineProperty({__proto__:null,useSorting:qn},Symbol.toStringTag,{value:"Module"})),Kn=["aria-modal","aria-label","role"],bt=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,r=e.ref(),{densityClass:a}=C(t),c=()=>{var s,u;t.modal?(s=r.value)==null||s.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var s;t.open?c():(s=r.value)==null||s.close()}),e.watch(()=>t.modal,()=>{var s;(s=r.value)!=null&&s.open&&(r.value.close(),c())}),(s,u)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:u[0]||(u[0]=e.withModifiers(i=>l("close"),["prevent"]))},[e.renderSlot(s.$slots,"default")],42,Kn)):e.createCommentVNode("",!0)}}),Zn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.15 7.913v1.5h4.377l-6.145 6.144 1.06 1.06 6.146-6.144v4.377h1.5V7.913z"/></svg>',jn=n=>/^http(s?):\/\//.test(n),ie=e.defineComponent({__name:"OnyxExternalLinkIcon",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"}},setup(n){const o=n,t=e.computed(()=>{const l=o.withExternalIcon;return l!=="auto"?l:jn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-external-link-icon",icon:e.unref(Zn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),Yn=["h1","h2","h3","h4","h5","h6"],Jn=["12px","16px","24px","32px","48px","64px","96px"],Wn=["aria-label","title","type","disabled","autofocus"],De=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:T},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:P}},setup(n){const o=n,{densityClass:t}=C(o),{disabled:l}=R(o),r=A(o);return(a,c)=>e.unref(r)?(e.openBlock(),e.createBlock(O,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(t)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${o.color}`,{"onyx-icon-button--loading":o.loading},e.unref(t)]]),"aria-label":o.label,title:o.label,type:o.type,disabled:e.unref(l)||o.loading,autofocus:o.autofocus},[o.loading?(e.openBlock(),e.createBlock(H,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(V,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Wn))}}),Se='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 6h1.5v1.5h-1.5zm1.5 3.75h-1.5V18h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21M12 21a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9" clip-rule="evenodd"/></svg>',J=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),Xn={class:"onyx-info-tooltip"},ne=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},open:{type:[String,Boolean,Object],default:"click"},color:{default:"neutral"}},setup(n){const o=n,t=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"click");return(l,r)=>(e.openBlock(),e.createElementBlock("span",Xn,[t.value==="click"?(e.openBlock(),e.createBlock(Y,{key:0,text:o.text,open:o.open,color:o.color,position:o.position},{default:e.withCtx(({trigger:a})=>[e.createElementVNode("button",e.mergeProps({type:"button",class:"onyx-info-tooltip__trigger"},a),[e.createVNode(V,{icon:e.unref(Se)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Y,{"aria-hidden":"true",text:o.text,open:o.open,color:o.color,position:o.position},{default:e.withCtx(({trigger:a})=>[e.createElementVNode("span",e.mergeProps({class:"onyx-info-tooltip__trigger"},a),[e.createVNode(V,{icon:e.unref(Se)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"]),e.createVNode(J,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})],64))]))}}),ce=n=>e.computed(()=>n.value===!0?"onyx-form-element--immediate-invalid":n.value===!1?"onyx-form-element--suppress-invalid":"onyx-form-element--touched-invalid"),Qn={key:0,class:"onyx-form-element__label onyx-text--small"},el=["for"],tl={class:"onyx-form-element__footer onyx-text--small"},ol={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},nl={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},ll={key:4,class:"onyx-form-element__counter"},ue=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(n){const o=n,{t}=S(),{requiredMarkerClass:l,requiredTypeClass:r}=re(o),a=e.computed(()=>{var c;if(o.withCounter&&o.maxlength)return`${(((c=o.modelValue)==null?void 0:c.toString())||"").length}/${o.maxlength}`});return(c,s)=>{var u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qn,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,el),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(ne,{key:1,class:"onyx-form-element__label-tooltip",open:"hover",text:o.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),o.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([o.required?void 0:e.unref(l)])},null,2))])),e.renderSlot(c.$slots,"default",{id:o.id}),e.createElementVNode("div",tl,[c.errorMessages?(e.openBlock(),e.createElementBlock("span",ol,e.toDisplayString(c.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(u=c.errorMessages)!=null&&u.longMessage?(e.openBlock(),e.createBlock(ne,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("tooltip.error"),open:"hover",text:c.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("span",nl,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0),o.messageTooltip?(e.openBlock(),e.createBlock(ne,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",open:"hover",text:o.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",ll,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])],2)}}}),al={class:"onyx-input__wrapper"},rl=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],sl=e.defineComponent({__name:"OnyxInput",props:{disabled:{default:T},showError:{default:T},density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:[Symbol,Boolean,Number],default:P}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),s=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),u=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:i,showError:d}=R(t),p=A(t),f=ce(d);return(y,m)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(c)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(O,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(c),e.unref(f)])},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:h})=>[e.createElementVNode("div",al,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:h,"onUpdate:modelValue":m[0]||(m[0]=_=>s.value=_),placeholder:t.placeholder,class:"onyx-input__native",type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:u.value,readonly:t.readonly,disabled:e.unref(i)||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0},null,8,rl),[[e.vModelDynamic,s.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),il=["email","password","search","tel","text","url"],cl=["none","sentences","words","characters"],ul=["href","target","rel"],dl=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=S();return(l,r)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:o.href,target:o.target,rel:o.target==="_blank"?"noreferrer":void 0},[e.renderSlot(l.$slots,"default"),o.target==="_blank"?(e.openBlock(),e.createBlock(J,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,ul))}}),pl=["_self","_blank","_parent","_top"],de=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":o.active,[`onyx-list-item--${o.color}`]:o.color,"onyx-list-item--disabled":o.disabled,"onyx-list-item--selected":o.selected,"onyx-list-item--checked":o.checked})},[e.renderSlot(l.$slots,"default")],2))}}),ml='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m21.53 20.47-5.977-5.977a7.512 7.512 0 1 0-1.06 1.06l5.977 5.977zM3.75 9.75a6 6 0 1 1 6 6 6.007 6.007 0 0 1-6-6"/></svg>',Pe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m17.03 8.03-1.06-1.06L12 10.94 8.03 6.97 6.97 8.03 10.94 12l-3.97 3.97 1.06 1.06L12 13.06l3.97 3.97 1.06-1.06L13.06 12z"/></svg>',Bt=()=>{const n=e.useAttrs(),o=e.computed(()=>({class:n.class,style:n.style})),t=e.computed(()=>{const l={...n};return delete l.class,delete l.style,l});return{rootAttrs:o,restAttrs:t}},fl=["placeholder","aria-label"],yl=["aria-label"],Ct=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(n,{expose:o,emit:t}){const l=n,r=t,{rootAttrs:a,restAttrs:c}=Bt(),{densityClass:s}=C(l),{t:u}=S(),i=e.ref(),d=e.computed({get:()=>l.modelValue,set:f=>r("update:modelValue",f??"")}),p=e.computed(()=>u.value("select.searchPlaceholder"));return o({focus:()=>{var f;return(f=i.value)==null?void 0:f.focus()}}),(f,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(s)]},e.unref(a),{style:{"--onyx-placeholder-character-count":p.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:i,"onUpdate:modelValue":y[0]||(y[0]=m=>d.value=m),class:"onyx-mini-search__input onyx-text",placeholder:p.value,type:"text",size:"1"},e.unref(c),{"aria-label":l.label}),null,16,fl),[[e.vModelText,d.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(u)("select.clearSearch"),tabindex:"-1",onMousedown:y[1]||(y[1]=e.withModifiers(()=>{},["prevent"])),onClick:y[2]||(y[2]=m=>r("clear"))},[e.createVNode(V,{icon:e.unref(Pe)},null,8,["icon"])],40,yl),e.createVNode(V,{class:"onyx-mini-search__icon",icon:e.unref(ml)},null,8,["icon"])],16))}}),hl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m20.78 4.28-1.06-1.06L12 10.94 4.28 3.22 3.22 4.28 10.94 12l-7.72 7.72 1.06 1.06L12 13.06l7.72 7.72 1.06-1.06L13.06 12z"/></svg>',vl={class:"onyx-mobile-nav-button"},_l=["aria-label"],gl={class:"onyx-mobile-nav-button__flyout"},kl={class:"onyx-mobile-nav-button__menu"},Ne=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1},headline:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=c=>l("update:open",!t.open))},[e.createVNode(V,{icon:t.open?e.unref(hl):t.icon},null,8,["icon"])],10,_l),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",gl,[e.createElementVNode("div",kl,[t.headline?(e.openBlock(),e.createBlock(K,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=c=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),xl=n=>{const o=e.ref([]),t=e.computed(()=>Array.from(n.componentRefs.keys()).filter(r=>!o.value.includes(r))),l=e.ref();return e.onBeforeUnmount(()=>{var r;return(r=l.value)==null?void 0:r.disconnect()}),e.watch([n.parentRef,n.componentRefs,n.disabled],()=>{var a,c;(a=l.value)==null||a.disconnect();const r=ge(n.parentRef.value);if(!r||(c=n.disabled)!=null&&c.value){o.value=[];return}l.value=new IntersectionObserver(s=>{const u=[],i=[];s.forEach(d=>{var y;const p=(y=Array.from(n.componentRefs).find(([m,h])=>ge(e.unref(h))===d.target))==null?void 0:y[0];if(!p)return;d.intersectionRatio===1?u.push(p):i.push(p)}),o.value.length===0?o.value=u:o.value=o.value.filter(d=>!i.includes(d)).concat(u)},{root:r,threshold:1}),n.componentRefs.forEach(s=>{var i;const u=ge(e.unref(s));u&&((i=l.value)==null||i.observe(u))})},{immediate:!0}),{visibleElements:o,hiddenElements:t}},ge=n=>n instanceof Element?n:n==null?void 0:n.$el,bl=n=>{var a;const o=e.useId(),t=e.ref(),l=e.inject(n);(a=l==null?void 0:l.components)==null||a.set(o,t),e.onBeforeUnmount(()=>{var c;return(c=l==null?void 0:l.components)==null?void 0:c.delete(o)});const r=e.computed(()=>(l==null?void 0:l.disabled.value)||((l==null?void 0:l.visibleElements.value.includes(o))??!0));return{componentRef:t,isVisible:r}},Bl=e.defineComponent({__name:"OnyxMoreList",props:{is:{},injectionKey:{},disabled:{type:Boolean}},emits:["visibilityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.ref(),a=e.reactive(new Map),c=e.toRef(t,"disabled"),s=xl({parentRef:r,componentRefs:a,disabled:c});return e.provide(t.injectionKey,{components:a,visibleElements:s.visibleElements,disabled:c}),e.watch([s.visibleElements,s.hiddenElements],([u,i])=>{l("visibilityChange",{visibleElements:u.length,hiddenElements:i.length})}),(u,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.is),{ref_key:"parentRef",ref:r,class:"onyx-more"},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default"),e.unref(s).hiddenElements.value.length>0?e.renderSlot(u.$slots,"more",{key:0,hiddenElements:e.unref(s).hiddenElements.value.length,visibleElements:e.unref(s).visibleElements.value.length}):e.createCommentVNode("",!0)]),_:3},512))}}),Cl=["aria-label"],wl=["src","alt"],Vl={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},wt=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=S(),l=e.computed(()=>o.label??t.value("navigation.goToHome"));return(r,a)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"onyx-nav-app-area","aria-label":l.value},[e.renderSlot(r.$slots,"default",{},()=>[o.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.logoUrl,alt:e.unref(t)("navigation.appLogo",{appName:o.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,wl)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",Vl,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,Cl))}}),El=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),We={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},Zt={key:0,class:"onyx-app__nav"},jt={class:"onyx-app__page"},Yt={key:1,class:"onyx-app__page-overlay"},Jt={key:2,class:"onyx-app__app-overlay"},Wt=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":o.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Yt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Jt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Xt=["title"],Qt=["src","alt"],eo={key:1,class:"onyx-avatar__initials"},xe=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(n){const o=n,t=e.useSlots(),l=e.computed(()=>{const a=o.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>o.src,()=>r.value=!1),(a,c)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${o.size}`,t.default?"onyx-avatar--custom":""]]),title:o.label},[o.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:o.src,alt:o.label,onError:c[0]||(c[0]=s=>r.value=!0)},null,40,Qt)):(e.openBlock(),e.createElementBlock("div",eo,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Xt))}}),to={class:"onyx-avatar-stack"},oo=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(o.$slots,"default")]))}}),no=["compact","default","cozy"],C=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:!!n.density}))}),lo=["innerHTML"],V=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${o.size}`]:o.size,[`onyx-icon--${o.color}`]:o.color}),"aria-hidden":"true",innerHTML:o.icon},null,10,lo))}}),Xe=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${o.color}`,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(V,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),Qe=Symbol(),A=Symbol("SKELETON_INJECTED_SYMBOL"),et=n=>o=>e.computed(()=>typeof o.skeleton!="symbol"?o.skeleton:o.skeleton===A&&(n==null?void 0:n.skeleton)===!0?3:!1),tt=n=>e.provide(Qe,et(n)),ao=et(),P=n=>e.inject(Qe,ao)(n),ot=Symbol(),T=Symbol("FORM_INJECTED_SYMBOL"),Ge=(n,o,t,l)=>e.computed(()=>{const r=o.value[t];return r!=null&&typeof r!="symbol"?r:r===T?(n==null?void 0:n.value[t])??l:l}),nt=n=>o=>({disabled:Ge(n,o,"disabled",!1),showError:Ge(n,o,"showError","touched")}),ro=n=>e.provide(ot,nt(n&&e.toRef(n))),so=nt(),R=n=>e.inject(ot,so)(e.toRef(n)),Oe=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},io={},co={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function uo(n,o){return e.openBlock(),e.createElementBlock("svg",co,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const po=Oe(io,[["render",uo]]),mo={},fo={class:"onyx-loading-dots"};function yo(n,o){return e.openBlock(),e.createElementBlock("div",fo,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const ho=Oe(mo,[["render",yo]]),H=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(po,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(ho,{key:1})):e.createCommentVNode("",!0)}}),vo=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=s=>{var d;const u=(d=n.value)==null?void 0:d.getBoundingClientRect();if(!u)return;o.value=!0;const i={id:Date.now().toString(),left:`${s.x-u.left}px`,top:`${s.y-u.top}px`,animationEnded:!1};return t.set(i.id,i),i.id},r=s=>{const u=s.dataset.rippleid;u!=null&&(t.has(u)&&(t.get(u).animationEnded=!0),o.value||t.delete(u))},a=()=>{o.value=!1,t.forEach((s,u)=>{s.animationEnded&&t.delete(u)})},c=e.ref({});return e.onBeforeMount(()=>{var s;(s=window.matchMedia)!=null&&s.call(window,"pointer: none").matches?c.value={touchstart:l,touchend:a,touchcancel:a}:c.value={mousedown:l,mouseleave:a,mouseup:a}}),{isPointerDown:o,ripples:t,startRipple:l,hideRipples:a,hideRipple:r,events:c}},_o=["data-rippleid"],go=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=vo(t);return o({events:a}),(c,s)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"rippleTrigger",ref:t,class:"onyx-ripple","aria-hidden":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),([u,i])=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":i.left,"--onyx-ripple-top":i.top}),"data-rippleid":u,onAnimationend:s[0]||(s[0]=d=>e.unref(r)(d.target))},null,44,_o))),128))],512))}}),ko={},bo={"aria-hidden":"true",class:"onyx-skeleton"};function xo(n,o){return e.openBlock(),e.createElementBlock("figure",bo)}const O=Oe(ko,[["render",xo]]),Bo=["disabled","type","aria-label","autofocus"],Co={class:"onyx-button__label onyx-truncation-ellipsis"},le=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:T},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=C(o),{disabled:l}=R(o),r=P(o),a=e.ref(),c=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.events)??{}});return(s,u)=>e.unref(r)?(e.openBlock(),e.createBlock(O,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(t)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:["onyx-button",`onyx-button--${o.color}`,`onyx-button--${o.mode}`,{"onyx-button--loading":o.loading},e.unref(t)],disabled:e.unref(l)||o.loading,type:o.type,"aria-label":o.loading?o.label:void 0,autofocus:o.autofocus},e.toHandlers(c.value,!0)),[!e.unref(l)&&!o.loading?(e.openBlock(),e.createBlock(go,{key:0,ref_key:"rippleRef",ref:a},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(V,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(H,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Co,e.toDisplayString(o.label),1)],16,Bo))}}),wo=["button","submit","reset"],Vo=["primary","neutral","danger"],Eo=["default","outline","plain"],re=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),So="(optional)",No="Cancel",Mo="Apply",$o="Back",Oo="Close",To={head:{sortingAction:{asc:"Sort the table ascending by the {field} column.",desc:"Sort the table descending by the {field} column.",none:"Reset the sorting order."}}},Io={tooShort:{preview:"Too short",fullError:"Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"},tooLong:{preview:"Too long",fullError:"Please shorten this text to {maxLength} characters or less (you are currently using 1 character) | Please shorten this text to {maxLength} characters or less (you are currently using {n} characters)"},rangeUnderflow:{preview:"Too low",fullError:"Value must be greater than or equal to {min}"},rangeOverflow:{preview:"Too high",fullError:"Value must be less than or equal to {max}"},patternMismatch:{preview:"Invalid format",fullError:"Please match the format requested."},valueMissing:{preview:"Required",fullError:"Please fill in this field."},stepMismatch:{preview:"Invalid number",fullError:"Please enter a value that is a multiple of {step}."},badInput:{preview:"Invalid input",fullError:'"{value}" does not match the expected type.'},typeMismatch:{generic:{preview:"Invalid input type",fullError:'"{value}" does not match the expected type.'},email:{preview:"Invalid mail",fullError:'"{value}" must be a valid email address.'},number:{preview:"Invalid number",fullError:'"{value}" must be a number.'},tel:{preview:"Invalid phone number",fullError:'"{value}" must be a valid phone number.'},url:{preview:"Invalid URL",fullError:'"{value}" must a valid URL.'}}},Lo={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter",searchPlaceholder:"Search"},Do={selectAll:"Select all",currentSelection:"{n} selected"},Ao={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},Po={empty:"This table is empty."},Ro={opensExternally:"Opens in a new tab."},zo="Subpages of {label}",Ho={appLogo:"App logo of {appName}",goToHome:"Go to home page",goBack:"Go back",userMenuLabel:"User options",toggleBurgerMenu:"Toggle burger menu",toggleContextMenu:"Toggle context menu",navigationHeadline:"Navigation"},Fo={info:"Toggle info tooltip",error:"Toggle error tooltip"},Uo={headline:"Change appearance",subtitle:"Select the appearance of the application:",appearance:"Appearance",auto:{label:"Auto",description:"The application automatically adapts its appearance to your system settings."},light:{label:"Light",description:"Light mode provides optimal contrast for bright environments."},dark:{label:"Dark",description:"This color mode is optimized for darker environments."}},qo={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},Be={optional:So,cancel:No,apply:Mo,back:$o,close:Oo,dataGrid:To,validations:Io,select:Lo,selections:Do,stepper:Ao,table:Po,link:Ro,navItemOptionsLabel:zo,navigation:Ho,tooltip:Fo,colorScheme:Uo,pagination:qo},lt=Symbol(),at=(n={})=>{const o=e.computed(()=>e.unref(n==null?void 0:n.locale)??"en-US");if(n.t)return{t:n.t,locale:o};const t=e.computed(()=>n!=null&&n.messages&&o.value in n.messages?n.messages[o.value]:Be),l=e.computed(()=>(r,a={})=>{let c=Ke(r,t.value)??Ke(r,Be)??"";return c=Go(c,a.n),Ko(c,a)});return{locale:o,t:l}},rt=(n,o)=>{const t=at(o);return n.provide(lt,t),t},S=()=>e.inject(lt,()=>at(),!0),Ke=(n,o)=>{const t=n.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],o);return t&&typeof t=="string"?t:void 0},Go=(n,o)=>{const t=n.split(" | ").map(r=>r.trim());if(t.length<=1)return n;let l=1;return o===0&&(l=0),o&&(o<=0||o>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},Ko=(n,o)=>o?Object.entries(o).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),n).replace(/\s?{.*}\s?/gi,""):n,Zo=(n,o)=>{const t=Object.entries(n).filter(([r,a])=>a!==void 0),l=Object.entries(o).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===o[r])},jo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),st=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Yo=n=>st().reduce((o,t)=>(o[t]=n[t],o),{}),Jo=n=>{if(n.valueMissing)return"valueMissing";const o=st().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},Wo=Object.keys(Be.validations.typeMismatch),Ze=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n}:n},it=n=>{if(!n)return;if(typeof n=="string")return n;if(n.shortMessage===n.longMessage)return n.shortMessage;const{shortMessage:o,longMessage:t}=n;return`${o}: ${t}`},q=n=>{const{t:o}=S(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(it(n.props.customError)??"")),e.watch([()=>n.props],()=>{const u=Yo(s.validity);!t.value&&u.valid||t.value&&Zo(u,t.value)||(t.value=u)},{immediate:!0,deep:!0}),e.watch([()=>n.props.customError,t,l],()=>{!l.value||!t.value||n.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var d,p,f;if(!t.value||t.value.valid)return;const s=Jo(t.value),u=Ze(n.props.customError);if(u||s==="customError")return u||void 0;if(!s)return;if(s==="typeMismatch"){const y=Wo.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${y}.fullError`,{value:(d=n.props.modelValue)==null?void 0:d.toString()}),shortMessage:o.value(`validations.typeMismatch.${y}.preview`)}}const i={value:(p=n.props.modelValue)==null?void 0:p.toString(),n:((f=n.props.modelValue)==null?void 0:f.toString().length)??0,minLength:n.props.minlength,maxLength:n.props.maxlength,min:n.props.min,max:n.props.max,step:n.props.precision};return{longMessage:o.value(`validations.${s}.fullError`,i),shortMessage:o.value(`validations.${s}.preview`)}}),c=e.computed(()=>{if(!(t.value===void 0||!t.value.valid))return Ze(n.props.successMessage)});return{vCustomValidity:r,errorMessages:a,successMessages:c}},F=n=>n;function Ce(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const Xo=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),Qo=(n,o)=>typeof o=="string"?n.key===o:Xo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),we=n=>!tn.has(n),en=["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"],tn=new Set(en),G=e.reactive(new Map),on=(n,o)=>{if(o!=null&&o.size){G.set(n,o);return}G.delete(n),document.removeEventListener(n,ct)},je=(n,o)=>{const t=G.get(n);t==null||t.delete(o),on(n,t)},nn=(n,o)=>{const t=G.get(n)??new Set;t.add(o),G.set(n,t),document.addEventListener(n,ct)},ct=n=>{var t;const o=n.type;(t=G.get(o))==null||t.forEach(l=>l(n))},se=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?je(n,o):nn(n,o))),e.onBeforeUnmount(()=>je(n,o))},ut=({inside:n,onOutsideClick:o,disabled:t})=>{se({type:"click",listener:r=>{const a=e.toValue(n);!(Array.isArray(a)?a:[a]).some(u=>u==null?void 0:u.contains(r.target))&&o(r)},disabled:t})},dt=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},pt=(n,o=500)=>{let t="";const l=dt(()=>t="",o);return r=>{we(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},ln=F(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=i=>(l.has(i)||l.set(i,e.useId()),l.get(i)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const i=r(n.activeOption.value);await e.nextTick(()=>{var d;(d=document.getElementById(i))==null||d.scrollIntoView({block:"end",inline:"nearest"})})});const c=pt(i=>{var d;return(d=n.onTypeAhead)==null?void 0:d.call(n,i)}),s=i=>{var d,p,f,y,m,h,_;switch(i.key){case" ":i.preventDefault(),n.activeOption.value!=null&&((d=n.onSelect)==null||d.call(n,n.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),n.activeOption.value==null){(p=n.onActivateLast)==null||p.call(n);return}(f=n.onActivatePrevious)==null||f.call(n,n.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),n.activeOption.value==null){(y=n.onActivateFirst)==null||y.call(n);return}(m=n.onActivateNext)==null||m.call(n,n.activeOption.value);break;case"Home":i.preventDefault(),(h=n.onActivateFirst)==null||h.call(n);break;case"End":i.preventDefault(),(_=n.onActivateLast)==null||_.call(n);break;default:c(i)}};return{elements:{listbox:e.computed(()=>n.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"0","aria-activedescendant":n.activeOption.value!=null?r(n.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:s}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const d=i.selected??!1;return{id:r(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":o.value?d:void 0,"aria-selected":o.value?void 0:d,onClick:()=>{var p;return!i.disabled&&((p=n.onSelect)==null?void 0:p.call(n,i.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),mt=["ArrowDown","ArrowUp"," ","Enter","Home","End"],ft=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],Ye=["Enter"],an=(n,o)=>{const t=o?[...Ye," "]:Ye;return Ve(n,t)},Ve=(n,o)=>o.some(t=>Qo(n,t)),rn=F(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:c,isExpanded:s,activeOption:u,onToggle:i,onSelect:d,onActivateFirst:p,onActivateLast:f,onActivateNext:y,onActivatePrevious:m,templateRef:h})=>{const _=e.useId(),x=e.computed(()=>e.unref(n)),B=e.computed(()=>e.unref(s)),$=e.computed(()=>e.unref(l)),N=b=>{const ye=b.target;x.value!=="none"&&(o==null||o(ye.value))},g=pt(b=>t==null?void 0:t(b)),k=b=>{d==null||d(b),e.unref($)||i==null||i()},E=b=>{switch(b.key){case"ArrowUp":if(b.preventDefault(),u.value==null)return f==null?void 0:f();m==null||m(u.value);break;case"ArrowDown":if(b.preventDefault(),u.value==null)return p==null?void 0:p();y==null||y(u.value);break;case"Home":b.preventDefault(),p==null||p();break;case"End":b.preventDefault(),f==null||f();break}},I=b=>{if(b.key==="Enter"&&b.preventDefault(),!B.value&&Ve(b,mt))return i==null||i(),b.key===" "&&b.preventDefault(),b.key==="End"?f==null?void 0:f():p==null?void 0:p();if(an(b,x.value==="none"))return k(u.value);if(B.value&&Ve(b,ft))return i==null?void 0:i();if(x.value==="none"&&we(b.key))return!B.value&&(i==null||i()),g(b);if(x.value!=="none"&&we(b.key)){!B.value&&(i==null||i());return}return E(b)},Z=x.value!=="none"?{"aria-autocomplete":x.value,type:"text"}:null,{elements:{option:j,group:pe,listbox:me},internals:{getOptionId:fe}}=ln({label:a,description:c,multiple:$,controlled:!0,activeOption:u,isExpanded:B,onSelect:k});return ut({inside:h,onOutsideClick(){B.value&&(i==null||i(!0))}}),{elements:{option:j,group:pe,listbox:e.computed(()=>({...me.value,id:_,onMousedown:b=>b.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":B.value,"aria-controls":_,"aria-label":e.unref(r),"aria-activedescendant":u.value!=null?fe(u.value):void 0,onInput:N,onKeydown:I,...Z})),button:e.computed(()=>({tabindex:"-1",onClick:()=>i==null?void 0:i()}))}}}),sn=F(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=Ce(),a=e.useId();se({type:"keydown",listener:i=>i.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const c=dt(i=>n.value!==i&&o(),200),s=i=>{const d=document.activeElement,p=(d==null?void 0:d.closest('[role="menu"]'))||r.value;if(!p)return;const f=[...p.querySelectorAll('[role="menuitem"]')];let y=0;if(d){const h=f.indexOf(d);switch(i){case"next":y=h+1;break;case"prev":y=h-1;break;case"first":y=0;break;case"last":y=f.length-1;break}}const m=f[y];m==null||m.focus()};return{elements:{root:{id:t,onKeydown:i=>{switch(i.key){case"ArrowDown":case"ArrowRight":i.preventDefault(),s("next");break;case"ArrowUp":case"ArrowLeft":i.preventDefault(),s("prev");break;case"Home":i.preventDefault(),s("first");break;case"End":i.preventDefault(),s("last");break;case" ":i.preventDefault(),i.target.click();break;case"Escape":i.preventDefault(),n.value&&o();break}},onMouseover:()=>c(!0),onMouseout:()=>c(!1),onFocusout:i=>{var d;t&&((d=document.getElementById(t))!=null&&d.contains(i.relatedTarget))||n.value&&o()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":n.value,"aria-haspopup":!0,onFocus:()=>!n.value&&o(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>n.value&&o()},...yt().elements}}}),yt=F(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),cn={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},un=F(({navigationName:n})=>{const o=e.useId(),t=()=>{const r=o?document.getElementById(o):void 0;return r?[...r.querySelectorAll("button[aria-expanded][aria-controls]")]:[]},l=(r,a)=>{const c=t(),s=c.indexOf(r);if(s===-1)return;const u=cn.clamp(s+(a==="next"?1:-1),0,c.length-1);c[u].focus()};return{elements:{nav:{"aria-label":e.unref(n),id:o,onKeydown:r=>{switch(r.key){case"ArrowRight":l(r.target,"next");break;case"ArrowLeft":l(r.target,"previous");break}}}}}}),dn=F(n=>{const o=new Map,t=r=>(o.has(r)||o.set(r,{tabId:e.useId(),panelId:e.useId()}),o.get(r)),l=r=>{var u;const a=r.target,c=()=>{var d;const i=(d=a.parentElement)==null?void 0:d.querySelector('[role="tab"]');i instanceof HTMLElement&&i.focus()},s=()=>{var d;const i=Array.from(((d=a.parentElement)==null?void 0:d.querySelectorAll('[role="tab"]'))??[]).at(-1);i instanceof HTMLElement&&i.focus()};switch(r.key){case"ArrowRight":a.nextElementSibling&&a.nextElementSibling instanceof HTMLElement?a.nextElementSibling.focus():c();break;case"ArrowLeft":a.previousElementSibling&&a.previousElementSibling instanceof HTMLElement?a.previousElementSibling.focus():s();break;case"Home":c();break;case"End":s();break;case"Enter":case" ":{const i=Array.from(o.entries()).find(([,{tabId:d}])=>d===a.id);i&&((u=n.onSelect)==null||u.call(n,i[0]))}break}};return{elements:{tablist:e.computed(()=>({role:"tablist","aria-label":e.unref(n.label),onKeydown:l})),tab:e.computed(()=>r=>{const{tabId:a}=t(e.unref(n.selectedTab)),{tabId:c,panelId:s}=t(r.value),u=c===a;return{id:c,role:"tab","aria-selected":u,"aria-controls":s,onClick:()=>{var i;return(i=n.onSelect)==null?void 0:i.call(n,r.value)},tabindex:u?0:-1}}),tabpanel:e.computed(()=>r=>{const{tabId:a,panelId:c}=t(r.value);return{id:c,role:"tabpanel","aria-labelledby":a}})}}}),ht=({isExpanded:n})=>se({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),pn=F(({toggleLabel:n,isVisible:o})=>{const t=Ce(),l=Ce(),r=e.toRef(o??!1);ut({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),ht({isExpanded:r});const a=()=>r.value=!r.value;return{elements:{trigger:e.computed(()=>({ref:t,onClick:a,"aria-label":e.toValue(n)})),tooltip:{ref:l,role:"status",tabindex:"-1"}},state:{isVisible:r}}}),mn=F(({debounce:n,isVisible:o})=>{const t=e.useId(),l=e.toRef(o??!1);let r;const a=e.computed({get:()=>l.value,set:s=>{clearTimeout(r),r=setTimeout(()=>{l.value=s},e.toValue(n))}}),c={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return ht({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...c},tooltip:{role:"tooltip",id:t,tabindex:"-1",...c}},state:{isVisible:l}}}),vt=(n,o="bottom")=>{const t=e.ref(o);return{openDirection:t,updateOpenDirection:()=>{var p,f,y;const r=e.unref(n);if(!r){t.value=o;return}const a=(p=Te(r))==null?void 0:p.getBoundingClientRect(),c=r.getBoundingClientRect(),s=(a==null?void 0:a.top)??((f=window.visualViewport)==null?void 0:f.pageTop)??0,i=((a==null?void 0:a.bottom)??((y=window.visualViewport)==null?void 0:y.height)??0)-c.bottom,d=c.top-s;t.value=d>i?"top":"bottom"}}},Te=n=>n?getComputedStyle(n).overflow.includes("hidden")?n:n.parentElement?Te(n.parentElement):void 0:void 0,fn=(n,o)=>{const l=e.ref("center");return{wedgePosition:l,updateWedgePosition:()=>{var x,B,$,N;const a=e.unref(n),c=e.unref(o);if(!a||!c){l.value="center";return}const s=(x=Te(a))==null?void 0:x.getBoundingClientRect(),u=a.getBoundingClientRect(),i=c.getBoundingClientRect();if(i.width<u.width){l.value="center";return}const d=(i.width-u.width+16*2)/2,p=(s==null?void 0:s.left)??((B=window.visualViewport)==null?void 0:B.pageLeft)??0,f=(s==null?void 0:s.right)??((($=window.visualViewport)==null?void 0:$.width)??window.innerWidth)+(((N=window.visualViewport)==null?void 0:N.offsetLeft)??0),y=u.left-p,m=f-u.right,h=y>=d,_=m>=d;l.value=h===_?"center":y>m?"right":"left"}}},Y=e.defineComponent({__name:"OnyxTooltip",props:{density:{},text:{},icon:{},color:{default:"neutral"},position:{default:"auto"},alignment:{default:"auto"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(n){const o=n,{densityClass:t}=C(o),{t:l}=S(),r=e.ref(!1),a=e.computed({set:g=>r.value=g,get:()=>typeof o.open=="boolean"?o.open:r.value}),c=e.computed(()=>({debounce:200,...typeof o.open=="object"&&o.open.type==="hover"&&o.open||{},isVisible:a})),s=e.computed(()=>({toggleLabel:l.value("tooltip.info"),...typeof o.open=="object"&&o.open.type==="click"&&o.open||{},isVisible:a})),u=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"hover"),i=e.computed(()=>({"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!a.value,[`onyx-tooltip--${_.value}`]:o.position==="auto",[`onyx-tooltip--${o.position}`]:o.position!=="auto",[`onyx-tooltip--${B.value}`]:o.alignment==="auto",[`onyx-tooltip--${o.alignment}`]:o.alignment!=="auto"})),d=()=>u.value==="hover"?mn(c.value):pn(s.value),p=e.shallowRef(d());e.watch(u,()=>p.value=d());const f=e.computed(()=>{var g;return(g=p.value)==null?void 0:g.elements.tooltip}),y=e.computed(()=>{var g;return e.toValue((g=p.value)==null?void 0:g.elements.trigger)}),m=e.ref(),h=e.ref(),{openDirection:_,updateOpenDirection:x}=vt(m,"top"),{wedgePosition:B,updateWedgePosition:$}=fn(m,h),N=()=>{x(),$()};return se({type:"resize",listener:()=>N()}),e.onMounted(()=>N()),e.watch(a,async()=>{await e.nextTick(),x(),$()}),(g,k)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapperRef",ref:m,class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps({ref_key:"tooltipRef",ref:h},f.value,{class:["onyx-tooltip","onyx-text--small","onyx-truncation-multiline",i.value]}),[o.icon?(e.openBlock(),e.createBlock(V,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],16),e.renderSlot(g.$slots,"default",{trigger:y.value})],2))}}),Ie=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>it(o.errorMessages)),l=e.ref();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[!t.value||o.disabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"targetRef",ref:l},null,512)):e.createCommentVNode("",!0),t.value&&!o.disabled?(e.openBlock(),e.createBlock(Y,{key:1,class:"onyx-error-tooltip",open:"hover",text:t.value,color:"danger"},{default:e.withCtx(({trigger:c})=>[e.createElementVNode("div",e.mergeProps({ref_key:"targetRef",ref:l},c),null,16)]),_:1},8,["text"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.Teleport,{key:2,to:l.value,defer:""},[e.renderSlot(r.$slots,"default")],8,["to"])):e.createCommentVNode("",!0)]))}}),yn=["title"],hn={class:"onyx-checkbox__container"},vn=["aria-label","indeterminate","disabled","required","value","autofocus"],oe=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:T},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),{requiredMarkerClass:a,requiredTypeClass:c}=re(t),{densityClass:s}=C(t),{vCustomValidity:u,errorMessages:i}=q({props:t,emit:l}),{disabled:d}=R(t),p=P(t),f=e.computed(()=>t.hideLabel?t.label:void 0);return(y,m)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(s)])},[e.createVNode(O,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(d),"error-messages":e.unref(i)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(c),e.unref(s)]]),title:f.value},[e.createElementVNode("div",hn,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":m[0]||(m[0]=h=>r.value=h),"aria-label":t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:e.unref(d),required:t.required,value:t.value,autofocus:t.autofocus},null,8,vn)),[[e.vModelCheckbox,r.value],[e.unref(u)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],10,yn)]),_:1},8,["disabled","error-messages"]))}}),_n=(n,o)=>e.computed(()=>{const t=o.value.filter(r=>n.value.includes(r)),l=t.length===n.value.length;return{modelValue:l,indeterminate:!l&&n.value.length&&t.length?!0:void 0}}),_t=(n,o,t)=>({state:_n(n,o),handleChange:l=>{const r=o.value.filter(c=>!n.value.includes(c)),a=l?r.concat(n.value):r;t(a)}}),K=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${o.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),gn=["disabled","aria-label"],kn={key:0,class:"onyx-checkbox-group__label"},bn=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},options:{},modelValue:{default:()=>[]},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{default:T},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=C(t),r=o,{t:a}=S(),c=(f,y)=>{const m=y?[...t.modelValue,f]:t.modelValue.filter(h=>h!==f);r("update:modelValue",m)},s=e.computed(()=>t.options.filter(f=>!f.disabled&&!f.skeleton).map(({value:f})=>f)),{disabled:u}=R(t),i=P(t),d=_t(s,e.computed(()=>t.modelValue),f=>r("update:modelValue",f)),p=e.computed(()=>{var y;const f=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?f:((y=t.withCheckAll)==null?void 0:y.label)??f});return(f,y)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:e.unref(u),"aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",kn,[e.createVNode(K,{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[e.unref(i)?typeof e.unref(i)=="number"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(i),m=>(e.openBlock(),e.createBlock(oe,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(oe,e.mergeProps({key:0},e.unref(d).state.value,{label:p.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(d).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(oe,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>c(m.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64))],2)],10,gn))}}),xn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.12 4.12 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.05 4.05 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.63 2.63 0 0 1-2.625-2.625 2.63 2.63 0 0 1 2.625-2.625 2.63 2.63 0 0 1 2.625 2.625A2.63 2.63 0 0 1 16.125 18"/></svg>',gt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 10.94 3.61-3.612 1.062 1.06L13.06 12l3.612 3.61-1.062 1.062L12 13.06l-3.61 3.612-1.062-1.062L10.94 12 7.328 8.389l1.062-1.06z"/><path fill-rule="evenodd" d="M14.049 1.702a10.5 10.5 0 0 1 5.376 2.873 10.466 10.466 0 0 1 0 14.85 10.5 10.5 0 1 1-5.376-17.723m1.394 18.644a9 9 0 0 0 2.92-1.982A9.002 9.002 0 0 0 15.48 3.626a9 9 0 0 0-9.843 2.01 9 9 0 0 0 9.807 14.71" clip-rule="evenodd"/></svg>',Bn={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Le=e.defineComponent({__name:"OnyxEmpty",props:{density:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-empty",e.unref(t)])},[e.renderSlot(l.$slots,"icon",{},()=>[e.createVNode(V,{icon:e.unref(gt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Bn,[e.renderSlot(l.$slots,"default")])],2))}}),Cn={class:"onyx-table-wrapper"},wn=["tabindex"],Vn=["span"],En={key:0,class:"onyx-table__header"},Sn={key:0},Nn=["colspan"],Mn={class:"onyx-table__empty"},$n={colspan:"100%"},On={class:"onyx-table__empty-content"},kt=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1},withPageScrolling:{type:Boolean,default:!1},columnGroups:{}},setup(n){const o=n,t=e.useSlots(),{t:l}=S(),{densityClass:r}=C(o),a=e.computed(()=>l.value("table.empty"));return(c,s)=>{var u;return e.openBlock(),e.createElementBlock("div",Cn,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!o.withPageScrolling}),tabindex:o.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("colgroup",{key:i.key,span:i.span},null,8,Vn))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",En,[(u=o.columnGroups)!=null&&u.length?(e.openBlock(),e.createElementBlock("tr",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("th",{key:i.key,colspan:i.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(i.header),9,Nn))),128))])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(c.$slots,"default",{},()=>[e.createElementVNode("tr",Mn,[e.createElementVNode("td",$n,[e.createElementVNode("div",On,[e.renderSlot(c.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Le,null,{icon:e.withCtx(()=>[e.createVNode(V,{icon:e.unref(xn),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,wn)])}}}),bt=e.defineComponent({__name:"OnyxDataGridRenderer",props:{density:{},striped:{type:Boolean,default:!0},withVerticalBorders:{type:Boolean,default:!0},withPageScrolling:{type:Boolean},columnGroups:{},columns:{},rows:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(kt,e.mergeProps({class:"onyx-data-grid"},o),{head:e.withCtx(()=>[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,r=>(e.openBlock(),e.createElementBlock("th",e.mergeProps({key:r.key,ref_for:!0},r.thAttributes,{scope:"col"}),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps({ref_for:!0},r.props),null,16))],16))),128))])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.rows,r=>(e.openBlock(),e.createElementBlock("tr",e.mergeProps({key:r.id,ref_for:!0},r.trAttributes),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.key},[r.cells[a.key]?(e.openBlock(),e.createElementBlock("td",e.mergeProps({key:0,ref_for:!0},r.cells[a.key].tdAttributes),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.cells[a.key].component),e.mergeProps({ref_for:!0},r.cells[a.key].props),null,16))],16)):e.createCommentVNode("",!0)],64))),128))],16))),128))]),_:1},16))}}),Tn={class:"onyx-data-grid-header-cell"},In={class:"onyx-data-grid-header-cell__label"},Ln={key:0,class:"onyx-data-grid-header-cell__actions"},Dn=e.defineComponent({__name:"HeaderCell",props:{label:{}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",Tn,[e.createElementVNode("span",In,e.toDisplayString(o.label),1),t.actions?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0)]))}});const An=n=>{const o=r=>{const c=n.map(s=>s.header).filter(s=>!!s).map(s=>s.actions).filter(s=>!!s);return r.map(s=>{const u=c.flatMap(i=>i(s)).map(({iconComponent:i})=>i);return{key:s,component:()=>e.h(Dn,{label:String(s)},{actions:u}),props:{}}})},t=(r,a)=>{const c=n.map(u=>u.mutation).filter(u=>!!u),s=[...r];return c.forEach(({func:u})=>u(s)),s.map(u=>{const i=a.reduce((d,p)=>(d[p]={component:()=>u[p],props:{row:u}},d),{});return{id:u.id,cells:i}})},l=n.flatMap(r=>r.watch);return{createRendererRows:t,createRendererColumns:o,watchSources:l}},Pn=e.defineComponent({__name:"OnyxDataGrid",props:{features:{default:()=>[]},columns:{},data:{}},setup(n){const o=n,t=e.ref([]),l=e.ref([]),{columns:r,data:a,features:c}=e.toRefs(o),s=e.computed(()=>An(c.value));let u;const i=()=>{const{createRendererColumns:d,createRendererRows:p,watchSources:f}=s.value;return e.watch([r,a,...f],()=>{t.value=d(r.value),l.value=p(a.value,r.value)},{immediate:!0,deep:!0})};return e.watch(s,()=>{u==null||u(),u=i()},{immediate:!0}),(d,p)=>(e.openBlock(),e.createBlock(e.unref(bt),{columns:t.value,rows:l.value},null,8,["columns","rows"]))}}),Rn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.905 12.653 12 17.558l-4.905-4.905 1.058-1.058 3.097 3.098V6h1.5v8.693l3.098-3.098z"/></svg>',zn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.095 10.905 12 6l4.905 4.905-1.058 1.058-3.097-3.098v8.693h-1.5V8.865l-3.098 3.098z"/></svg>',Hn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.75 1.94 5.03 5.03-1.06 1.06-3.22-3.22v8.69H15V4.81l-3.22 3.22-1.06-1.06zM9 10.5v8.69l3.22-3.22 1.06 1.06-5.03 5.03-5.03-5.03 1.06-1.06 3.22 3.22V10.5z"/></svg>',Fn=e.defineComponent({__name:"SortAction",props:{columnLabel:{},sortDirection:{}},setup(n){const o=n,{t}=S(),l=e.computed(()=>o.sortDirection==="asc"?zn:o.sortDirection==="desc"?Rn:Hn),r=e.computed(()=>{const a=Ee(o.sortDirection);return t.value(`dataGrid.head.sortingAction.${a}`,{field:o.columnLabel})});return(a,c)=>(e.openBlock(),e.createBlock(e.unref(De),{color:"neutral",icon:l.value,label:r.value},null,8,["icon","label"]))}}),Ee=n=>{switch(n){case"asc":return"desc";case"desc":return"none";case"none":default:return"asc"}},Un=Symbol("Sorting"),qn=n=>{var u;const o=e.toRef((n==null?void 0:n.sortState)??{column:void 0,direction:"none"}),t=e.computed(()=>i=>{var p;const d=e.toValue(n==null?void 0:n.columns);return((p=d==null?void 0:d[i])==null?void 0:p.sortFunc)??a.value}),l=e.computed(()=>i=>{var p;const d=e.toValue(n==null?void 0:n.columns);return!d||((p=d==null?void 0:d[i])==null?void 0:p.enabled)===!0}),r=(u=S())==null?void 0:u.locale,a=e.computed(()=>(i,d)=>new Intl.Collator(r.value).compare(String(i),String(d))),c=i=>{o.value.column===i?o.value.direction=Ee(o.value.direction):o.value={column:i,direction:Ee()},o.value.direction==="none"&&(o.value.column=void 0)};return{name:Un,watch:[o,a],mutation:{func:i=>{const{column:d,direction:p}=o.value;if(!d||p==="none")return;const f=p==="asc"?1:-1,y=t.value(d);i.sort((m,h)=>y(m[d],h[d])*f)}},header:{actions:i=>l.value(i)===!0?[{iconComponent:e.h(Fn,{columnLabel:String(i),sortDirection:o.value.column===i?o.value.direction:void 0,onClick:()=>c(i)})}]:[]}}},Gn=Object.freeze(Object.defineProperty({__proto__:null,useSorting:qn},Symbol.toStringTag,{value:"Module"})),Kn=["aria-modal","aria-label","role"],xt=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,r=e.ref(),{densityClass:a}=C(t),c=()=>{var s,u;t.modal?(s=r.value)==null||s.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var s;t.open?c():(s=r.value)==null||s.close()}),e.watch(()=>t.modal,()=>{var s;(s=r.value)!=null&&s.open&&(r.value.close(),c())}),(s,u)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:u[0]||(u[0]=e.withModifiers(i=>l("close"),["prevent"]))},[e.renderSlot(s.$slots,"default")],42,Kn)):e.createCommentVNode("",!0)}}),Zn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.15 7.913v1.5h4.377l-6.145 6.144 1.06 1.06 6.146-6.144v4.377h1.5V7.913z"/></svg>',jn=n=>/^http(s?):\/\//.test(n),ie=e.defineComponent({__name:"OnyxExternalLinkIcon",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"}},setup(n){const o=n,t=e.computed(()=>{const l=o.withExternalIcon;return l!=="auto"?l:jn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-external-link-icon",icon:e.unref(Zn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),Yn=["h1","h2","h3","h4","h5","h6"],Jn=["12px","16px","24px","32px","48px","64px","96px"],Wn=["aria-label","title","type","disabled","autofocus"],De=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:T},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=C(o),{disabled:l}=R(o),r=P(o);return(a,c)=>e.unref(r)?(e.openBlock(),e.createBlock(O,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(t)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${o.color}`,{"onyx-icon-button--loading":o.loading},e.unref(t)]]),"aria-label":o.label,title:o.label,type:o.type,disabled:e.unref(l)||o.loading,autofocus:o.autofocus},[o.loading?(e.openBlock(),e.createBlock(H,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(V,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Wn))}}),Se='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 6h1.5v1.5h-1.5zm1.5 3.75h-1.5V18h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21M12 21a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9" clip-rule="evenodd"/></svg>',J=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),Xn={class:"onyx-info-tooltip"},ne=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},open:{type:[String,Boolean,Object],default:"click"},color:{default:"neutral"}},setup(n){const o=n,t=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"click");return(l,r)=>(e.openBlock(),e.createElementBlock("span",Xn,[t.value==="click"?(e.openBlock(),e.createBlock(Y,{key:0,text:o.text,open:o.open,color:o.color,position:o.position},{default:e.withCtx(({trigger:a})=>[e.createElementVNode("button",e.mergeProps({type:"button",class:"onyx-info-tooltip__trigger"},a),[e.createVNode(V,{icon:e.unref(Se)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Y,{"aria-hidden":"true",text:o.text,open:o.open,color:o.color,position:o.position},{default:e.withCtx(({trigger:a})=>[e.createElementVNode("span",e.mergeProps({class:"onyx-info-tooltip__trigger"},a),[e.createVNode(V,{icon:e.unref(Se)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"]),e.createVNode(J,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})],64))]))}}),ce=n=>e.computed(()=>n.value===!0?"onyx-form-element--immediate-invalid":n.value===!1?"onyx-form-element--suppress-invalid":"onyx-form-element--touched-invalid"),Qn={key:0,class:"onyx-form-element__label onyx-text--small"},el=["for"],tl={class:"onyx-form-element__footer onyx-text--small"},ol={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},nl={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},ll={key:4,class:"onyx-form-element__counter"},ue=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(n){const o=n,{t}=S(),{requiredMarkerClass:l,requiredTypeClass:r}=re(o),a=e.computed(()=>{var c;if(o.withCounter&&o.maxlength)return`${(((c=o.modelValue)==null?void 0:c.toString())||"").length}/${o.maxlength}`});return(c,s)=>{var u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qn,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,el),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(ne,{key:1,class:"onyx-form-element__label-tooltip",open:"hover",text:o.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),o.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([o.required?void 0:e.unref(l)])},null,2))])),e.renderSlot(c.$slots,"default",{id:o.id}),e.createElementVNode("div",tl,[c.errorMessages?(e.openBlock(),e.createElementBlock("span",ol,e.toDisplayString(c.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(u=c.errorMessages)!=null&&u.longMessage?(e.openBlock(),e.createBlock(ne,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("tooltip.error"),open:"hover",text:c.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("span",nl,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0),o.messageTooltip?(e.openBlock(),e.createBlock(ne,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",open:"hover",text:o.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",ll,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])],2)}}}),al={class:"onyx-input__wrapper"},rl=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],sl=e.defineComponent({__name:"OnyxInput",props:{disabled:{default:T},showError:{default:T},density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),s=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),u=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:i,showError:d}=R(t),p=P(t),f=ce(d);return(y,m)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(c)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(O,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(c),e.unref(f)])},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:h})=>[e.createElementVNode("div",al,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:h,"onUpdate:modelValue":m[0]||(m[0]=_=>s.value=_),placeholder:t.placeholder,class:"onyx-input__native",type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:u.value,readonly:t.readonly,disabled:e.unref(i)||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0},null,8,rl),[[e.vModelDynamic,s.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),il=["email","password","search","tel","text","url"],cl=["none","sentences","words","characters"],ul=["href","target","rel"],dl=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=S();return(l,r)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:o.href,target:o.target,rel:o.target==="_blank"?"noreferrer":void 0},[e.renderSlot(l.$slots,"default"),o.target==="_blank"?(e.openBlock(),e.createBlock(J,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,ul))}}),pl=["_self","_blank","_parent","_top"],de=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":o.active,[`onyx-list-item--${o.color}`]:o.color,"onyx-list-item--disabled":o.disabled,"onyx-list-item--selected":o.selected,"onyx-list-item--checked":o.checked})},[e.renderSlot(l.$slots,"default")],2))}}),ml='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m21.53 20.47-5.977-5.977a7.512 7.512 0 1 0-1.06 1.06l5.977 5.977zM3.75 9.75a6 6 0 1 1 6 6 6.007 6.007 0 0 1-6-6"/></svg>',Ae='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m17.03 8.03-1.06-1.06L12 10.94 8.03 6.97 6.97 8.03 10.94 12l-3.97 3.97 1.06 1.06L12 13.06l3.97 3.97 1.06-1.06L13.06 12z"/></svg>',Bt=()=>{const n=e.useAttrs(),o=e.computed(()=>({class:n.class,style:n.style})),t=e.computed(()=>{const l={...n};return delete l.class,delete l.style,l});return{rootAttrs:o,restAttrs:t}},fl=["placeholder","aria-label"],yl=["aria-label"],Ct=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(n,{expose:o,emit:t}){const l=n,r=t,{rootAttrs:a,restAttrs:c}=Bt(),{densityClass:s}=C(l),{t:u}=S(),i=e.ref(),d=e.computed({get:()=>l.modelValue,set:f=>r("update:modelValue",f??"")}),p=e.computed(()=>u.value("select.searchPlaceholder"));return o({focus:()=>{var f;return(f=i.value)==null?void 0:f.focus()}}),(f,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(s)]},e.unref(a),{style:{"--onyx-placeholder-character-count":p.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:i,"onUpdate:modelValue":y[0]||(y[0]=m=>d.value=m),class:"onyx-mini-search__input onyx-text",placeholder:p.value,type:"text",size:"1"},e.unref(c),{"aria-label":l.label}),null,16,fl),[[e.vModelText,d.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(u)("select.clearSearch"),tabindex:"-1",onMousedown:y[1]||(y[1]=e.withModifiers(()=>{},["prevent"])),onClick:y[2]||(y[2]=m=>r("clear"))},[e.createVNode(V,{icon:e.unref(Ae)},null,8,["icon"])],40,yl),e.createVNode(V,{class:"onyx-mini-search__icon",icon:e.unref(ml)},null,8,["icon"])],16))}}),hl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m20.78 4.28-1.06-1.06L12 10.94 4.28 3.22 3.22 4.28 10.94 12l-7.72 7.72 1.06 1.06L12 13.06l7.72 7.72 1.06-1.06L13.06 12z"/></svg>',vl={class:"onyx-mobile-nav-button"},_l=["aria-label"],gl={class:"onyx-mobile-nav-button__flyout"},kl={class:"onyx-mobile-nav-button__menu"},Ne=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1},headline:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=c=>l("update:open",!t.open))},[e.createVNode(V,{icon:t.open?e.unref(hl):t.icon},null,8,["icon"])],10,_l),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",gl,[e.createElementVNode("div",kl,[t.headline?(e.openBlock(),e.createBlock(K,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=c=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),bl=n=>{const o=e.ref([]),t=e.computed(()=>Array.from(n.componentRefs.keys()).filter(r=>!o.value.includes(r))),l=e.ref();return e.onBeforeUnmount(()=>{var r;return(r=l.value)==null?void 0:r.disconnect()}),e.watch([n.parentRef,n.componentRefs,n.disabled],()=>{var a,c;(a=l.value)==null||a.disconnect();const r=ge(n.parentRef.value);if(!r||(c=n.disabled)!=null&&c.value){o.value=[];return}l.value=new IntersectionObserver(s=>{const u=[],i=[];s.forEach(d=>{var y;const p=(y=Array.from(n.componentRefs).find(([m,h])=>ge(e.unref(h))===d.target))==null?void 0:y[0];if(!p)return;d.intersectionRatio===1?u.push(p):i.push(p)}),o.value.length===0?o.value=u:o.value=o.value.filter(d=>!i.includes(d)).concat(u)},{root:r,threshold:1}),n.componentRefs.forEach(s=>{var i;const u=ge(e.unref(s));u&&((i=l.value)==null||i.observe(u))})},{immediate:!0}),{visibleElements:o,hiddenElements:t}},ge=n=>n instanceof Element?n:n==null?void 0:n.$el,xl=n=>{var a;const o=e.useId(),t=e.ref(),l=e.inject(n);(a=l==null?void 0:l.components)==null||a.set(o,t),e.onBeforeUnmount(()=>{var c;return(c=l==null?void 0:l.components)==null?void 0:c.delete(o)});const r=e.computed(()=>(l==null?void 0:l.disabled.value)||((l==null?void 0:l.visibleElements.value.includes(o))??!0));return{componentRef:t,isVisible:r}},Bl=e.defineComponent({__name:"OnyxMoreList",props:{is:{},injectionKey:{},disabled:{type:Boolean}},emits:["visibilityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.ref(),a=e.reactive(new Map),c=e.toRef(t,"disabled"),s=bl({parentRef:r,componentRefs:a,disabled:c});return e.provide(t.injectionKey,{components:a,visibleElements:s.visibleElements,disabled:c}),e.watch([s.visibleElements,s.hiddenElements],([u,i])=>{l("visibilityChange",{visibleElements:u.length,hiddenElements:i.length})}),(u,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.is),{ref_key:"parentRef",ref:r,class:"onyx-more"},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default"),e.unref(s).hiddenElements.value.length>0?e.renderSlot(u.$slots,"more",{key:0,hiddenElements:e.unref(s).hiddenElements.value.length,visibleElements:e.unref(s).visibleElements.value.length}):e.createCommentVNode("",!0)]),_:3},512))}}),Cl=["aria-label"],wl=["src","alt"],Vl={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},wt=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=S(),l=e.computed(()=>o.label??t.value("navigation.goToHome"));return(r,a)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"onyx-nav-app-area","aria-label":l.value},[e.renderSlot(r.$slots,"default",{},()=>[o.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.logoUrl,alt:e.unref(t)("navigation.appLogo",{appName:o.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,wl)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",Vl,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,Cl))}}),El=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <g clip-path="url(#clip0_4499_144781)">
3
3
  <mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
4
4
  <rect width="83" height="104" fill="#D9D9D9"/>
@@ -180,4 +180,4 @@
180
180
  </clipPath>
181
181
  </defs>
182
182
  </svg>
183
- `,Ml={class:"onyx-color-scheme-dialog__subtitle onyx-text"},$l=["innerHTML"],Ol=["autofocus","value","checked","aria-label"],Tl={class:"onyx-text--small"},Il={class:"onyx-color-scheme-dialog__actions"},Vt=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(n,{emit:o}){const t=n,l=o,r=e.ref();e.watchEffect(()=>r.value=t.modelValue);const{t:a}=S(),c=e.computed(()=>[{value:"auto",image:El,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:Nl,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:Sl,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),s=i=>{const d=i.target;r.value=d.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(i,d)=>(e.openBlock(),e.createBlock(bt,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:d[1]||(d[1]=p=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(u,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(K,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",Ml,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,p=>(e.openBlock(),e.createElementBlock("label",{key:p.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:p.image},null,8,$l),e.createElementVNode("div",null,[e.createVNode(J,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===p.value,value:p.value,checked:t.modelValue===p.value,"aria-label":p.label,required:""},null,8,Ol)]),_:2},1024),e.createVNode(K,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",Tl,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",Il,[e.createVNode(le,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:d[0]||(d[0]=p=>l("close"))},null,8,["label"]),e.createVNode(le,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),Ll='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.008 1.5c-5.79 0-10.493 4.71-10.493 10.493 0 5.782 4.71 10.492 10.493 10.492 5.782 0 10.492-4.71 10.492-10.492S17.79 1.5 12.008 1.5M13.5 3.135q.753.126 1.463.375v16.973q-.709.249-1.463.375zm2.962 1.058a9.3 9.3 0 0 1 1.59 1.162v13.282a9 9 0 0 1-1.59 1.163zm3.083 2.917a8.93 8.93 0 0 1 1.447 4.882 9 9 0 0 1-1.447 4.883zM3.008 11.992C3.008 7.036 7.043 3 12 3v17.993c-4.957 0-8.992-4.035-8.992-8.993z"/></svg>',Dl=["href","target","rel"],Pl=["disabled"],Ae=e.defineComponent({__name:"OnyxMenuItem",props:{target:{default:"_self"},href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},setup(n){const o=n,{t}=S(),{elements:{listItem:l,menuItem:r}}=yt(),a=e.computed(()=>r({active:o.active,disabled:o.disabled}));return(c,s)=>(e.openBlock(),e.createBlock(de,e.mergeProps({selected:o.active,active:o.active,color:o.color,disabled:o.disabled,class:"onyx-menu-item"},e.unref(l)),{default:e.withCtx(()=>[o.href?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"onyx-menu-item__trigger",href:o.href,target:o.target,rel:o.target==="_blank"?"noreferrer":void 0},a.value),[e.renderSlot(c.$slots,"default")],16,Dl)):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:"onyx-menu-item__trigger",type:"button",disabled:o.disabled},a.value),[e.renderSlot(c.$slots,"default"),o.target==="_blank"?(e.openBlock(),e.createBlock(J,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0)],16,Pl))]),_:3},16,["selected","active","color","disabled"]))}}),Al={class:"onyx-color-scheme-menu-item__value"},Rl=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),a=e.ref(!1);return(c,s)=>(e.openBlock(),e.createBlock(Ae,{class:"onyx-color-scheme-menu-item",onClick:s[2]||(s[2]=u=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(V,{icon:e.unref(Ll)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",Al,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(Vt,{"model-value":t.modelValue,open:a.value,onClose:s[0]||(s[0]=u=>a.value=!1),"onUpdate:modelValue":s[1]||(s[1]=u=>l("update:modelValue",u))},null,8,["model-value","open"])]))]),_:1}))}}),zl=n=>e.computed(n),U=Symbol("MANAGED_SYMBOL"),ae=(n,o,t)=>{const l=e.computed(()=>n.value===U),r=e.ref(e.toValue(l)?o:n.value);return{state:zl({set:c=>{r.value=c,t(c)},get:()=>l.value?r.value:n.value}),isManaged:l}},Hl=["aria-label"],Re=e.defineComponent({__name:"OnyxFlyoutMenu",props:{open:{default:U},label:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o,{state:r}=ae(e.toRef(()=>t.open),!1,d=>l("update:open",d)),a=e.useSlots(),{elements:{root:c,button:s,menu:u}}=sn({isExpanded:e.computed(()=>!!r.value),onToggle:()=>r.value=!r.value}),i=e.computed(()=>{var p;if(!a.default)return;const d=a.default().at(0);return(d==null?void 0:d.type.toString())==="Symbol(v-fgt)"?Array.isArray(d==null?void 0:d.children)?(p=d==null?void 0:d.children)==null?void 0:p.at(0):void 0:d});return(d,p)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-flyout-menu"},e.unref(c)),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),e.normalizeProps(e.guardReactiveProps(e.unref(s))),null,16)),a.options||a.header||a.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":t.label,class:e.normalizeClass({"onyx-flyout-menu__list--with-header":!!a.header,"onyx-flyout-menu__list--with-footer":!!a.footer,"onyx-flyout-menu__list":!0})},[e.renderSlot(d.$slots,"header"),a.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(u),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(d.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"footer")],10,Hl)),[[e.vShow,e.unref(r)]]):e.createCommentVNode("",!0)],16))}}),Et='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m9.905 6.22-1.06 1.06 4.72 4.72-4.72 4.72 1.06 1.06 5.78-5.78z"/></svg>',W=Symbol(),St=Symbol(),Fl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.618 11.626H8.936l3.094-3.094-1.064-1.056-4.899 4.898 4.9 4.9 1.063-1.064-3.094-3.086h8.682z"/></svg>',Ul=["aria-orientation"],Nt=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(n){const o=n,t=e.inject(W);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":o.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":o.orientation},null,10,Ul))}}),ql={role:"presentation"},Gl=e.defineComponent({__name:"NavButtonLayout",props:{href:{},withExternalIcon:{type:[Boolean,String]},mobileChildrenOpen:{},label:{},active:{type:Boolean},isMobile:{type:Boolean}},emits:["update:mobileChildrenOpen"],setup(n,{emit:o}){const t=n,l=e.useSlots(),{t:r}=S(),a=o;return(c,s)=>(e.openBlock(),e.createElementBlock("li",ql,[t.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isMobile&&c.mobileChildrenOpen?(e.openBlock(),e.createBlock(le,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(Fl),onClick:s[0]||(s[0]=u=>a("update:mobileChildrenOpen",!1))},null,8,["label","icon"])):e.createCommentVNode("",!0),!c.mobileChildrenOpen||t.href?e.renderSlot(c.$slots,"button",{key:1}):e.createCommentVNode("",!0),c.mobileChildrenOpen&&t.href?(e.openBlock(),e.createBlock(Nt,{key:2,orientation:"horizontal"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{role:"menu",class:e.normalizeClass(["onyx-nav-button__mobile-children",{"onyx-nav-button__mobile-children--open":c.mobileChildrenOpen}])},[e.renderSlot(c.$slots,"options")],2),[[e.vShow,c.mobileChildrenOpen]])],64)):(e.openBlock(),e.createBlock(Re,{key:1,label:e.unref(r)("navItemOptionsLabel",{label:t.label})},e.createSlots({default:e.withCtx(()=>[e.renderSlot(c.$slots,"button")]),_:2},[l.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Kl=["aria-label"],Zl={class:"onyx-truncation-ellipsis"},jl=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{default:U},label:{},active:{type:Boolean,default:!1}},emits:["navigate","update:mobileChildrenOpen"],setup(n,{emit:o}){const t=n,l=o,r=e.useSlots(),a=e.inject(W),c=e.computed(()=>!!r.children),{componentRef:s,isVisible:u}=bl(St),{state:i}=ae(e.toRef(()=>t.mobileChildrenOpen),!1,p=>l("update:mobileChildrenOpen",p)),d=p=>{a!=null&&a.value&&c.value&&!i.value?i.value=!0:t.href&&l("navigate",t.href,p)};return(p,f)=>(e.openBlock(),e.createBlock(Gl,e.mergeProps({ref_key:"componentRef",ref:s},t,{"mobile-children-open":e.unref(i),"onUpdate:mobileChildrenOpen":f[0]||(f[0]=y=>e.isRef(i)?i.value=y:null),class:["onyx-nav-button",{"onyx-nav-button--mobile":e.unref(a),"onyx-nav-button--active":t.active,"onyx-nav-button--hidden":!e.unref(a)&&!e.unref(u)}],"is-mobile":e.unref(a)??!1}),e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["onyx-nav-button__trigger onyx-text",{"onyx-nav-button__link":t.href!=null}]),role:"menuitem","aria-label":t.label,type:"button",onClick:d},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",Zl,e.toDisplayString(t.label),1),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!e.unref(i)?(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(Et)},null,8,["icon"])):e.createCommentVNode("",!0)],10,Kl)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Yl=e.defineComponent({__name:"OnyxNavItem",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{},label:{},active:{type:Boolean}},emits:["navigate"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createBlock(Ae,{class:"onyx-nav-item",active:t.active,href:t.href??"javascript:void(0)",onClick:a[0]||(a[0]=c=>t.href&&l("navigate",t.href))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),Jl=n=>{const o=e.ref(),t=e.ref(ke(new Date(n.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(n,r=>{clearInterval(o.value);const a=new Date(r).getTime();t.value=ke(a),o.value=setInterval(()=>{t.value=ke(a),l.value&&clearInterval(o.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(o.value)),{timeLeft:t,isEnded:l}},ke=n=>{const o=n-Date.now();return Math.max(o,0)},Mt=n=>{const o=Math.floor(n/6e4/60),t=Math.floor(n/6e4%60),l=Math.floor(n%6e4/1e3);return{hours:o,minutes:t,seconds:l}},Wl=(n,o)=>{const{hours:t,minutes:l,seconds:r}=Mt(n),a=u=>u.toString().padStart(2,"0");let c="",s=xe(o.formatToParts(n,"seconds"));return l>0&&(s=xe(o.formatToParts(n,"minutes"))),t>0&&(s=xe(o.formatToParts(n,"hours")),c=`${a(t)}:`),`${c}${a(l)}:${a(r)} ${s}`},xe=n=>{var o;return((o=n.at(-1))==null?void 0:o.value.replace(".","").trim())??""},Xl=n=>{const{hours:o,minutes:t,seconds:l}=Mt(n);return`PT${o}H${t}M${l}S`},Ql=["aria-label"],ea={key:0,class:"onyx-timer__label"},ta=["datetime"],oa=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(n,{emit:o}){const t=n,l=o,{locale:r}=S(),{timeLeft:a,isEnded:c}=Jl(e.computed(()=>t.endTime)),s=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Wl(a.value,s.value));return e.watchEffect(()=>c.value&&l("timerEnded")),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ea,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Xl)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,ta)],8,Ql))}}),na={class:"onyx-user-menu__footer onyx-text--small"},la=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean},flyoutOpen:{default:U}},emits:["update:flyoutOpen"],setup(n){const o=n,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),{t:r}=S();return(a,c)=>(e.openBlock(),e.createElementBlock("div",null,[o.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(a.$slots,"header"),e.renderSlot(a.$slots,"options"),l.footer?(e.openBlock(),e.createBlock(de,{key:0,class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(Re,{key:1,open:e.unref(t),"onUpdate:open":c[0]||(c[0]=s=>e.isRef(t)?t.value=s:null),label:e.unref(r)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(a.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"button")]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",na,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["open","label"]))]))}}),aa={class:"onyx-user-menu__trigger onyx-text",type:"button"},ra={class:"onyx-truncation-ellipsis"},sa={class:"onyx-user-menu__header"},ia={class:"onyx-truncation-ellipsis"},ca={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},ua={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},da={class:"onyx-user-menu__options"},pa=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{},flyoutOpen:{default:U}},emits:["update:flyoutOpen"],setup(n,{emit:o}){const t=n,l=o,r=e.useSlots(),a=e.computed(()=>({src:t.avatar,label:t.username})),c=e.inject(W,e.computed(()=>!1));return(s,u)=>(e.openBlock(),e.createBlock(la,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(c)}]),"is-mobile":e.unref(c),"flyout-open":s.flyoutOpen,"onUpdate:flyoutOpen":u[0]||(u[0]=i=>l("update:flyoutOpen",i))},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",aa,[e.createVNode(be,e.mergeProps(a.value,{size:"24px"}),null,16),e.createElementVNode("span",ra,e.toDisplayString(t.username),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",sa,[e.createVNode(be,e.normalizeProps(e.guardReactiveProps(a.value)),null,16),e.createElementVNode("div",ia,[e.createElementVNode("div",ca,e.toDisplayString(t.username),1),t.description?(e.openBlock(),e.createElementBlock("div",ua,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.createElementVNode("div",da,[e.renderSlot(s.$slots,"default")])]),_:2},[r.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile","flyout-open"]))}}),$t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.155 7.28-1.06-1.06L8.315 12l5.78 5.78 1.06-1.06-4.72-4.72z"/></svg>',ma='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.5 6h-21v1.5h21zm0 5.25h-21v1.5h21zm-21 5.25h21V18h-21z"/></svg>',fa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1.5A2.25 2.25 0 1 1 12 6a2.25 2.25 0 0 1 0-4.5m0 8.25a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m1.25 8.63a2.25 2.25 0 1 0-2.5 3.741 2.25 2.25 0 0 0 2.5-3.742"/></svg>',ya=(n,o)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=c=>{const s=c[0].contentBoxSize;l.value=s.reduce((u,{inlineSize:i})=>u+i,0),r.value=s.reduce((u,{blockSize:i})=>u+i,0)};return e.onBeforeMount(()=>{const c=new ResizeObserver(a);e.watch(n,(s,u)=>{u&&(c==null||c.unobserve(u)),s&&(c==null||c.observe(s,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>c.disconnect())}),{width:l,height:r}},ha={class:"onyx-nav-bar__content"},va={key:0,class:"onyx-nav-bar__mobile-page onyx-truncation-ellipsis"},_a={role:"menubar"},ga={role:"menubar"},ka={key:0,class:"onyx-nav-bar__mobile-context"},xa={key:0,class:"onyx-nav-bar__mobile-global-context"},ba={class:"onyx-nav-bar__mobile-context-content"},Ba={key:1,class:"onyx-nav-bar__context"},Ca=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["navigateToStart","navigateBack"],setup(n,{expose:o,emit:t}){const l=n,r=t,a=e.useSlots(),c=e.ref(),{width:s}=ya(c),{t:u}=S(),{elements:{nav:i}}=un({navigationName:e.toRef(()=>l.appName)}),d=e.ref(!1),p=e.ref(!1),f=e.computed(()=>{const y=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:We[l.mobileBreakpoint];return s.value!==0&&s.value<y});return e.provide(W,f),o({closeMobileMenus:()=>{d.value=!1,p.value=!1}}),(y,m)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:c,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":f.value}])},[e.createElementVNode("div",ha,[f.value&&a.mobileActivePage&&!d.value&&!p.value?(e.openBlock(),e.createElementBlock("span",va,[e.renderSlot(y.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(wt,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:m[0]||(m[0]=h=>{r("navigateToStart",h),d.value=!1})},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),l.withBackButton?(e.openBlock(),e.createBlock(De,{key:2,class:"onyx-nav-bar__back",label:e.unref(u)("navigation.goBack"),icon:e.unref($t),color:"neutral",onClick:m[1]||(m[1]=h=>r("navigateBack",h))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[f.value?(e.openBlock(),e.createBlock(Ne,{key:0,open:d.value,"onUpdate:open":[m[2]||(m[2]=h=>d.value=h),m[3]||(m[3]=h=>p.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(ma),label:e.unref(u)("navigation.toggleBurgerMenu"),headline:e.unref(u)("navigation.navigationHeadline")},{default:e.withCtx(()=>[e.createElementVNode("nav",e.mergeProps({class:"onyx-nav-bar__nav--mobile"},e.unref(i)),[e.createElementVNode("ul",_a,[e.renderSlot(y.$slots,"default")])],16)]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",e.mergeProps({key:1,class:"onyx-nav-bar__nav"},e.unref(i)),[e.createElementVNode("ul",ga,[e.renderSlot(y.$slots,"default")])],16))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[f.value?(e.openBlock(),e.createElementBlock("div",ka,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",xa,[e.renderSlot(y.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(Ne,{key:1,open:p.value,"onUpdate:open":[m[4]||(m[4]=h=>p.value=h),m[5]||(m[5]=h=>d.value=!1)],icon:e.unref(fa),label:e.unref(u)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",ba,[e.renderSlot(y.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Ba,[a.globalContextArea?e.renderSlot(y.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(y.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),wa={key:0,class:"onyx-page__sidebar"},Va={class:"onyx-page__main"},Ea={key:1,class:"onyx-page__footer"},Sa=e.defineComponent({__name:"OnyxPageLayout",props:{skeleton:{type:Boolean},footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(n){const o=n,t=e.useSlots();tt(o);const l=e.computed(()=>o.footerAsideSidebar?"onyx-page--footer-partial":"onyx-page--footer-full");return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!o.hideSidebar?(e.openBlock(),e.createElementBlock("aside",wa,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Va,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",Ea,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),Ot=n=>{const t=e.ref(!1),l=a=>{const c=a.target;if(!(c instanceof Element))return;const s=e.unref(n.offset)??0;t.value=Math.abs(c.scrollTop)+c.clientHeight>=c.scrollHeight-s-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var s;(((s=n.enabled)==null?void 0:s.value)??!0)&&!n.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Tt=(n,o)=>{const t=Je(n.toLowerCase()),l=Je(o.toLowerCase());return t.includes(l)},Je=n=>n.normalize("NFD").replace(/[\u0300-\u036f]/g,""),Na='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.718 14.123 1.057 1.057-5.782 5.782L6.21 15.18l1.058-1.057 4.717 4.717 4.718-4.717zM12 5.153l4.718 4.717 1.057-1.057-5.782-5.783L6.21 8.813 7.268 9.87l4.717-4.717z"/></svg>',Ma=["id","readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],$a=["aria-label","disabled"],It=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{disabled:{default:T},showError:{default:T},density:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},modelValue:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number],default:P},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["inputClick","validityChange"],setup(n,{expose:o,emit:t}){const{rootAttrs:l,restAttrs:r}=Bt(),a=n,c=t,{t:s}=S(),{vCustomValidity:u,errorMessages:i}=q({props:a,emit:c}),{disabled:d,showError:p}=R(a),f=A(a),y=ce(p),m=e.computed(()=>a.modelValue?a.modelValue.length:0),h=e.computed(()=>{var k;const g=(k=a.modelValue)==null?void 0:k.length;if(!a.modelValue||!g)return"";if(g===1)return a.modelValue[0];switch(a.textMode){case"preview":return a.modelValue.join(", ");case"summary":default:return s.value("selections.currentSelection",{n:g})}}),_=e.ref(!1),{densityClass:b}=C(a),B=e.ref();o({focus:()=>{var g;return(g=B.value)==null?void 0:g.focus()}}),e.watch(()=>a.showFocus,(g,k)=>{_.value||k&&g===!1&&(_.value=!0)});const $=mt.concat(ft),N=g=>{$.includes(g.key)||g.preventDefault()};return(g,k)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(b)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(O,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(b),e.unref(y),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(ue,e.mergeProps(a,{"error-messages":e.unref(i)}),{default:e.withCtx(({id:E})=>[e.createElementVNode("div",{class:"onyx-select-input__wrapper",onClick:k[0]||(k[0]=I=>!e.unref(d)&&!a.loading&&c("inputClick"))},[a.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:E,ref_key:"input",ref:B,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--touched":_.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:e.unref(d)||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:h.value,autofocus:a.autofocus,autocomplete:"off",onKeydown:N}),null,16,Ma),[[e.unref(u)]]),a.textMode==="preview"&&m.value>0?(e.openBlock(),e.createBlock(Y,{key:1,text:h.value,position:"bottom"},{default:e.withCtx(({trigger:I})=>[e.createVNode(Xe,e.mergeProps({class:"onyx-select-input__badge"},I,{color:"neutral"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value),1)]),_:2},1040)]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(s)("select.toggleDropDown"),tabindex:"-1",disabled:e.unref(d)||a.readonly||a.loading},[e.createVNode(V,{icon:e.unref(Na)},null,8,["icon"])],8,$a)])]),_:1},16,["error-messages"])],16))}}),Oa=["checked","aria-labelledby","disabled","indeterminate"],Me=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{},truncation:{default:"ellipsis"}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(de,e.mergeProps({class:"onyx-select-option"},o,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[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-select-option__checkbox",type:"checkbox"},null,8,Oa)):e.createCommentVNode("",!0),o.icon?(e.openBlock(),e.createBlock(V,{key:1,icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([`onyx-truncation-${o.truncation}`])},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["checked","selected","disabled"]))}}),Ta=["inert"],Ia={class:"onyx-select__wrapper",tabindex:"-1"},La={key:0,role:"group",class:"onyx-select__group"},Da={role:"option","aria-selected":"false"},Pa={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},Aa={key:1,class:"onyx-select__slot"},Ra={key:2,class:"onyx-select__slot"},za={key:0,class:"onyx-select__description onyx-text--small"},Lt=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:U},showError:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number]},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},truncation:{default:"ellipsis"},disabled:{default:T},valueLabel:{default:void 0},open:{default:U},alignment:{default:"full"},listLabel:{},listDescription:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","update:open","lazyLoad","validityChange"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=C(t),a=e.useSlots(),{t:c}=S(),{state:s,isManaged:u}=ae(e.toRef(()=>t.searchTerm),"",v=>l("update:searchTerm",v)),{state:i}=ae(e.toRef(()=>t.open),!1,v=>l("update:open",v)),d=e.ref(),{openDirection:p,updateOpenDirection:f}=vt(d),y=e.ref(),m=e.computed(()=>t.modelValue===void 0?[]:t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]),h=e.computed(()=>t.valueLabel!==void 0?Array.isArray(t.valueLabel)?t.valueLabel:[t.valueLabel]:m.value.reduce((v,w)=>{var L;const M=(L=t.options.find(({value:D})=>D===w))==null?void 0:L.label;return M&&v.push(M),v},[])),_=e.ref(),b=e.ref(),B=e.computed(()=>u.value&&s.value?t.options.filter(({label:v})=>Tt(v,s.value)):t.options);e.watch(m,()=>{t.multiple||(y.value=m.value.at(0))},{immediate:!0});const $=e.useId(),N=e.computed(()=>(t.multiple&&t.withCheckAll&&!s.value?[$]:[]).concat(qe.value)),g=async v=>{var M,L;if(t.readonly){i.value=!1;return}const w=i.value;i.value=!w,await e.nextTick(),i.value&&f(),w!==i.value&&(w?(s.value&&(s.value=""),v||(M=b.value)==null||M.focus()):(L=_.value)==null||L.focus())},k=()=>y.value=N.value.at(0),E=()=>y.value=N.value.at(-1),I=v=>{const w=N.value.findIndex(M=>M===v);w<N.value.length-1&&(y.value=N.value[w+1])},Z=v=>{const w=N.value.findIndex(M=>M===v);w>0&&(y.value=N.value[w-1])},j=v=>{const w=B.value.find(M=>M.label.toLowerCase().trim().startsWith(v.toLowerCase()));w&&(y.value=w.value)},pe=v=>s.value=v,me=v=>{var L;if(v===$){(L=X.value)==null||L.handleChange(!X.value.state.value.modelValue);return}if(!B.value.find(({value:D})=>D===v))return;if(!t.multiple)return l("update:modelValue",v);m.value.some(D=>D===v)?l("update:modelValue",m.value.filter(D=>D!==v)):l("update:modelValue",[...m.value,v])},fe=e.computed(()=>t.withSearch?"list":"none"),{label:x,listLabel:ye,listDescription:Rt,multiple:zt}=e.toRefs(t),{elements:{input:he,option:Fe,group:Ue,listbox:Ht}}=rn({autocomplete:fe,label:x,listLabel:ye,listDescription:Rt,multiple:zt,activeOption:e.computed(()=>y.value),isExpanded:i,templateRef:d,onToggle:g,onActivateFirst:k,onActivateLast:E,onActivateNext:I,onActivatePrevious:Z,onTypeAhead:j,onAutocomplete:pe,onSelect:me}),Ft=e.computed(()=>jo(B.value,"group")),{vScrollEnd:Ut,isScrollEnd:qt}=Ot({enabled:e.computed(()=>{var v;return((v=t.lazyLoading)==null?void 0:v.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var v;return(v=t.lazyLoading)==null?void 0:v.scrollOffset})}),ve=e.computed(()=>{if(!B.value.length)return t.withSearch&&s.value?c.value("select.noMatch"):c.value("select.empty")}),qe=e.computed(()=>B.value.filter(v=>!v.disabled).map(({value:v})=>v)),X=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return _t(qe,m,v=>{const w=v.map(M=>{var L;return(L=t.options.find(({value:D})=>D===M))==null?void 0:L.value}).filter(M=>M!=null);l("update:modelValue",w)})}),_e=e.computed(()=>{var w;if(!t.multiple)return"";const v=c.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?v:((w=t.withCheckAll)==null?void 0:w.label)??v});e.watchEffect(()=>{qt.value&&l("lazyLoad")});const Gt=e.computed(()=>{const v={...t,open:void 0,modelValue:h.value};return t.withSearch?{...v,onKeydown:he.value.onKeydown}:{...v,...he.value}});return(v,w)=>{var M,L,D;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:d,class:"onyx-select-wrapper"},[e.createVNode(It,e.mergeProps({ref_key:"selectInput",ref:b},Gt.value,{"show-focus":e.unref(i),autofocus:t.autofocus,onInputClick:g,onValidityChange:w[0]||(w[0]=Q=>l("validityChange",Q))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(i)?"onyx-select--open":"",`onyx-select--${e.unref(p)}`,`onyx-select--${t.alignment}`]),inert:!e.unref(i)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ia,[t.withSearch?(e.openBlock(),e.createBlock(Ct,e.mergeProps({key:0,ref_key:"miniSearch",ref:_,"model-value":e.unref(s)},e.unref(he),{label:e.unref(c)("select.searchInputLabel"),class:"onyx-select__search",onClear:w[1]||(w[1]=Q=>s.value="")}),null,16,["model-value","label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(Ht))),[ve.value?(e.openBlock(),e.createElementBlock("ul",La,[e.createElementVNode("li",Da,[e.renderSlot(v.$slots,"empty",{defaultMessage:ve.value},()=>[e.createVNode(Le,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ve.value),1)]),_:1})])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.multiple&&t.withCheckAll&&!e.unref(s)?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0,class:"onyx-select__check-all"},e.unref(Ue)({label:_e.value})),[e.createVNode(Me,e.mergeProps(e.unref(Fe)({value:e.unref($),label:_e.value,selected:(M=X.value)==null?void 0:M.state.value.modelValue}),{multiple:"",active:e.unref($)===y.value,indeterminate:(L=X.value)==null?void 0:L.state.value.indeterminate,density:t.density}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_e.value),1)]),_:1},16,["active","indeterminate","density"])],16)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ft.value,(Q,ee)=>(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:ee,class:"onyx-select__group",ref_for:!0},e.unref(Ue)({label:ee})),[ee!=""?(e.openBlock(),e.createElementBlock("li",Pa,e.toDisplayString(ee),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q,z=>(e.openBlock(),e.createBlock(Me,e.mergeProps({key:z.value.toString(),ref_for:!0},e.unref(Fe)({value:z.value,label:z.label,disabled:z.disabled,selected:m.value.some(Kt=>Kt===z.value)}),{multiple:t.multiple,active:z.value===y.value,icon:z.icon,density:t.density,truncation:z.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(v.$slots,"option",e.mergeProps({ref_for:!0},z),()=>[e.createTextVNode(e.toDisplayString(z.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16))),128))],64))],16),(D=t.lazyLoading)!=null&&D.loading?(e.openBlock(),e.createElementBlock("div",Aa,[e.createVNode(H,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),a.optionsEnd?(e.openBlock(),e.createElementBlock("div",Ra,[e.renderSlot(v.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(Ut)]]),t.listDescription?(e.openBlock(),e.createElementBlock("div",za,e.toDisplayString(t.listDescription),1)):e.createCommentVNode("",!0)],10,Ta)],512)}}}),Ha=["aria-label"],Fa={class:"onyx-pagination__count"},Ua=["aria-label","disabled"],qa=["aria-label","disabled"],Ga=e.defineComponent({__name:"SelectPagination",props:{density:{},modelValue:{},pages:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),{densityClass:a}=C(t),c=e.computed(()=>Array.from({length:t.pages},(i,d)=>{const p=d+1;return{label:p.toString(),value:p}})),s=e.computed(()=>t.modelValue<=1),u=e.computed(()=>t.modelValue>=t.pages);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-pagination","onyx-text",e.unref(a)]),role:"group","aria-label":e.unref(r)("pagination.label"),style:e.normalizeStyle({"--onyx-pagination-character-count":t.modelValue.toString().length})},[e.createVNode(Lt,{class:"onyx-pagination__select",label:e.unref(r)("pagination.select.label"),"list-label":e.unref(r)("pagination.select.listLabel"),options:c.value,"model-value":t.modelValue,"value-label":t.modelValue.toString(),"hide-label":"",disabled:t.disabled||t.pages<=1,alignment:"left","with-search":"","onUpdate:modelValue":d[0]||(d[0]=p=>l("update:modelValue",p))},null,8,["label","list-label","options","model-value","value-label","disabled"]),e.createElementVNode("div",Fa,e.toDisplayString(e.unref(r)("pagination.ofPages",{n:t.pages})),1),e.createElementVNode("button",{class:"onyx-pagination__button","aria-label":e.unref(r)("pagination.previous"),type:"button",disabled:t.disabled||s.value,onClick:d[1]||(d[1]=p=>l("update:modelValue",t.modelValue-1))},[e.createVNode(V,{icon:e.unref($t)},null,8,["icon"])],8,Ua),e.createElementVNode("button",{class:"onyx-pagination__button","aria-label":e.unref(r)("pagination.next"),type:"button",disabled:t.disabled||u.value,onClick:d[2]||(d[2]=p=>l("update:modelValue",t.modelValue+1))},[e.createVNode(V,{icon:e.unref(Et)},null,8,["icon"])],8,qa)],14,Ha))}}),Ka=e.defineComponent({__name:"OnyxPagination",props:{density:{},modelValue:{},pages:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createBlock(Ga,e.mergeProps(t,{"onUpdate:modelValue":a[0]||(a[0]=c=>l("update:modelValue",c))}),null,16))}}),Za=["required","name","value","checked","disabled","autofocus"],$e=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{default:T},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:P},truncation:{default:"ellipsis"},customError:{},successMessage:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),{disabled:s}=R(t),u=A(t);return(i,d)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(c)])},[e.createVNode(O,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(O,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(s),"error-messages":e.unref(a)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-radio-button",e.unref(c)])},[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:e.unref(s),autofocus:t.autofocus},null,8,Za)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],2)]),_:1},8,["disabled","error-messages"]))}}),ja=["disabled","aria-label"],Ya={key:0,class:"onyx-radio-group__headline"},Ja=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},options:{},name:{default:()=>e.useId()},modelValue:{},disabled:{default:T},direction:{default:"vertical"},skeleton:{type:[Symbol,Boolean,Number],default:P}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,{densityClass:l}=C(t),{requiredMarkerClass:r,requiredTypeClass:a}=re(t),{disabled:c}=R(t),s=A(t),u=o,i=(d,p)=>{d&&u("update:modelValue",p)};return(d,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-group",e.unref(l),e.unref(a)]),disabled:e.unref(c),role:"radiogroup","aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",Ya,[e.createVNode(K,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["class"])])),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-group__content",{"onyx-radio-group__content--horizontal":t.direction==="horizontal"}])},[e.unref(s)?typeof e.unref(s)=="number"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(s),f=>(e.openBlock(),e.createBlock($e,{id:`skeleton-${f}`,key:f,value:`skeleton-${f}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128)):e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(f,y)=>(e.openBlock(),e.createBlock($e,e.mergeProps({key:f.value.toString(),ref_for:!0},f,{name:t.name,"custom-error":t.customError,checked:f.value===t.modelValue,required:t.required,truncation:f.truncation??t.truncation,onValidityChange:m=>y===0&&u("validityChange",m),onChange:m=>i(m,f.value)}),null,16,["name","custom-error","checked","required","truncation","onValidityChange","onChange"]))),128))],2)],10,ja))}}),Wa=["full","left","right"],Xa=["summary","preview"],Qa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11.25h18v1.5H3z"/></svg>',er='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.75 11.25V3h-1.5v8.25H3v1.5h8.25V21h1.5v-8.25H21v-1.5z"/></svg>',tr=(n,o)=>n/o%1===0,or=(n,o,t)=>{const l=o??-1/0,r=t??1/0;return Math.min(Math.max(n,l),r)},te=(n,o)=>{if(n===void 0)return"";if(o>0)return n.toFixed(o);const l=Math.pow(10,o);return(Math.round(n*l)/l).toString()},nr={class:"onyx-stepper__wrapper"},lr=["disabled","aria-label"],ar=["aria-label","autofocus","disabled","min","max","name","placeholder","readonly","required","step","title"],rr=["disabled","aria-label"],sr=e.defineComponent({__name:"OnyxStepper",props:e.mergeModels({disabled:{default:T},showError:{default:T},density:{},customError:{},successMessage:{},required:{type:Boolean},requiredMarker:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},autofocus:{type:Boolean},name:{},placeholder:{},min:{},max:{},step:{},precision:{default:1},stepSize:{},stripStep:{type:Boolean,default:!1},autocomplete:{},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:P}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["validityChange"],["update:modelValue"]),setup(n,{emit:o}){const t=n,{t:l}=S(),r=e.ref(),a=o,{disabled:c,showError:s}=R(t),u=A(t),i=ce(s),{densityClass:d}=C(t),{vCustomValidity:p,errorMessages:f}=q({props:t,emit:a}),y=e.ref(!1),m=e.useModel(n,"modelValue"),h=e.ref(),_=e.computed(()=>{const k=t.precision,E=k.toString();return E.includes(".")?E.split(".")[1].length:-Math.floor(Math.log10(k))});e.watch(m,()=>h.value=te(m.value,_.value),{immediate:!0});const b=e.computed(()=>Math.max(t.stepSize??t.precision,t.precision)),B=k=>{if(!r.value)return;y.value=!0;const E=m.value||0,I=(k==="stepUp"?1:-1)*b.value,Z=E+I,j=Math.round(Z/t.precision)*t.precision;m.value=or(j,t.min,t.max)},$=()=>{if(!r.value)return;y.value=!0;const k=parseFloat(h.value??""),E=parseFloat(te(k,_.value));if(h.value=te(k,_.value),!k||isNaN(k)){m.value=void 0;return}if(t.stripStep&&(!tr(k,t.precision)||t.min!==void 0&&t.min>k||t.max!==void 0&&t.max<k)){h.value=te(m.value,_.value);return}m.value=E},N=e.computed(()=>l.value("stepper.increment",{stepSize:b.value})),g=e.computed(()=>l.value("stepper.decrement",{stepSize:b.value}));return(k,E)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-stepper-skeleton",e.unref(d)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-stepper-skeleton__label"})),e.createVNode(O,{class:"onyx-stepper-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-stepper",e.unref(d),e.unref(i)])},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(f)}),{default:e.withCtx(()=>[e.createElementVNode("div",nr,[e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||k.readonly||t.loading||t.min!==void 0&&m.value!==void 0&&m.value<=t.min,"aria-label":g.value,tabindex:"-1",onClick:E[0]||(E[0]=I=>B("stepDown"))},[e.createVNode(V,{icon:e.unref(Qa)},null,8,["icon"])],8,lr),t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-stepper__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"inputRef",ref:r,"onUpdate:modelValue":E[1]||(E[1]=I=>h.value=I),class:e.normalizeClass(["onyx-stepper__native",{"onyx-stepper__native--touched":y.value}]),type:"number","aria-label":t.label,autofocus:t.autofocus,disabled:e.unref(c)||t.loading,min:t.min,max:t.max,name:t.name,placeholder:t.placeholder,readonly:t.readonly,required:t.required,step:t.precision,title:t.hideLabel?t.label:void 0,onChange:$,onKeydown:[E[2]||(E[2]=e.withKeys(e.withModifiers(I=>B("stepUp"),["prevent"]),["up"])),E[3]||(E[3]=e.withKeys(e.withModifiers(I=>B("stepDown"),["prevent"]),["down"]))]},null,42,ar)),[[e.vModelText,h.value],[e.unref(p)]]),e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||k.readonly||t.loading||t.max!==void 0&&m.value!==void 0&&m.value>=t.max,"aria-label":N.value,tabindex:"-1",onClick:E[4]||(E[4]=I=>B("stepUp"))},[e.createVNode(V,{icon:e.unref(er)},null,8,["icon"])],8,rr)])]),_:1},16,["error-messages"])],2))}}),ir='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.983 8.095-6.22 6.22-2.468-2.47-1.061 1.062 3.53 3.525 7.28-7.28z"/></svg>',cr={class:"onyx-switch-skeleton__click-area"},ur=["title"],dr=["aria-label","disabled","required","autofocus"],pr={class:"onyx-switch__click-area"},mr={class:"onyx-switch__container"},fr={class:"onyx-switch__icon"},yr=e.defineComponent({__name:"OnyxSwitch",props:{disabled:{default:T},showError:{},density:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:[Symbol,Boolean,Number],default:P}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{requiredMarkerClass:r,requiredTypeClass:a}=re(t),{densityClass:c}=C(t),{disabled:s,showError:u}=R(t),{vCustomValidity:i,errorMessages:d}=q({props:t,emit:l}),p=e.computed(()=>u.value!==!1?d.value:void 0),f=e.computed(()=>t.hideLabel&&t.label||void 0),y=A(t),m=e.computed({get:()=>t.modelValue,set:h=>{l("update:modelValue",h)}});return(h,_)=>e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(c)])},[e.createElementVNode("span",cr,[e.createVNode(O,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(s),"error-messages":p.value},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(c)]]),title:f.value},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=b=>m.value=b),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:e.unref(s)||t.loading,required:t.required,autofocus:t.autofocus},null,10,dr),[[e.vModelCheckbox,m.value],[e.unref(i)]]),e.createElementVNode("span",pr,[e.createElementVNode("span",mr,[e.createElementVNode("span",fr,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(V,{key:1,icon:m.value?e.unref(ir):e.unref(Pe)},null,8,["icon"]))]),_[1]||(_[1]=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1))])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),!t.hideLabel&&t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,ur)]),_:1},8,["disabled","error-messages"]))}}),ze=Symbol(),hr={class:"onyx-tab__label"},vr=e.defineComponent({__name:"OnyxTab",props:{density:{},value:{},label:{}},setup(n){const o=n,{densityClass:t}=C(o),l=e.inject(ze),r=e.computed(()=>l==null?void 0:l.headless.elements.tab.value({value:o.value}));return(a,c)=>{var s,u,i,d,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("button",e.mergeProps({class:["onyx-tab","onyx-text--large",e.unref(t),(s=r.value)!=null&&s["aria-selected"]?"onyx-tab--selected":""]},r.value,{type:"button"}),[e.createElementVNode("div",hr,[e.renderSlot(a.$slots,"tab",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:(u=e.unref(l))==null?void 0:u.panelRef.value,disabled:!((i=e.unref(l))!=null&&i.panelRef.value),defer:""},[(d=r.value)!=null&&d["aria-selected"]?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},(p=e.unref(l))==null?void 0:p.headless.elements.tabpanel.value({value:o.value}),{class:"onyx-tab__panel"}),[e.renderSlot(a.$slots,"default")],16)):e.createCommentVNode("",!0)],8,["to","disabled"]))],64)}}}),_r=e.defineComponent({__name:"OnyxTabs",props:{density:{},label:{},modelValue:{},stretched:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=C(t),a=dn({label:e.toRef(t,"label"),selectedTab:e.toRef(()=>t.modelValue),onSelect:s=>l("update:modelValue",s)}),c=e.ref();return e.provide(ze,{headless:a,panelRef:c}),(s,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"panelRef",ref:c,class:e.normalizeClass(["onyx-tabs",e.unref(r),t.stretched?"onyx-tabs--stretched":""])},[e.createElementVNode("div",e.mergeProps(e.unref(a).elements.tablist.value,{class:"onyx-tabs__tablist"}),[e.renderSlot(s.$slots,"default")],16)],2))}}),gr={class:"onyx-text onyx-truncation-ellipsis"},kr=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${o.color}`,e.unref(t)])},[o.icon?(e.openBlock(),e.createBlock(V,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",gr,e.toDisplayString(o.label),1)],2))}}),xr=["data-autosize-value"],br=["id","placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],Br=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{default:T},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:[Symbol,Boolean,Number],default:P},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),s=e.computed({get:()=>t.modelValue,set:m=>l("update:modelValue",m)}),u=e.computed(()=>{if(!t.autosize)return;const m=t.autosize.min?Math.max(t.autosize.min,2):void 0,h=t.autosize.max;return[m?`--min-autosize-rows: ${m}`:"",`--max-autosize-rows: ${h??"unset"}`]}),i=m=>{var _;const h=m.target;(_=h.parentElement)==null||_.setAttribute("data-autosize-value",h.value)},{disabled:d,showError:p}=R(t),f=A(t),y=ce(p);return(m,h)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(c)]),style:e.normalizeStyle(u.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(O,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(y),e.unref(c)]),style:e.normalizeStyle(u.value)},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:_})=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":s.value},[e.withDirectives(e.createElementVNode("textarea",{id:_,"onUpdate:modelValue":h[0]||(h[0]=b=>s.value=b),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:e.unref(d),minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:i},null,42,br),[[e.vModelText,s.value],[e.unref(r)]])],8,xr)]),_:1},16,["error-messages"])],6))}}),Cr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 16.5h1.5V18h-1.5zM12.75 6h-1.5v8.25h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21m6.364 16.864A9 9 0 1 1 21 12a8.94 8.94 0 0 1-2.636 6.364" clip-rule="evenodd"/></svg>',wr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m7.275 11.828 2.465 2.47 6.22-6.22 1.06 1.06-7.28 7.281-3.528-3.53z"/><path fill-rule="evenodd" d="M6.167 3.27a10.5 10.5 0 1 1 11.666 17.46A10.5 10.5 0 0 1 6.167 3.27M7 19.483A9 9 0 0 0 12 21a9.01 9.01 0 0 0 9-9 9 9 0 1 0-14 7.483" clip-rule="evenodd"/></svg>',Vr={class:"onyx-toast-message__wrapper"},Er={class:"onyx-toast-message__content onyx-truncation-ellipsis"},Sr={class:"onyx-toast-message__headline onyx-text"},Nr={class:"onyx-truncation-ellipsis"},Mr=["aria-label"],$r={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},Dt=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),{densityClass:a}=C(t),c=e.computed(()=>t.duration>0),s={neutral:Se,danger:gt,warning:Cr,success:wr},u=e.computed(()=>{if(t.icon!==!1)return t.icon||s[t.color]});return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.clickable?"button":"div"),{class:e.normalizeClass(["onyx-toast-message",[`onyx-toast-message--${t.color}`,e.unref(a)]]),role:t.color==="danger"||t.color==="warning"?"alert":"status","aria-label":t.clickable?t.headline:void 0},{default:e.withCtx(()=>[e.createElementVNode("div",Vr,[u.value?(e.openBlock(),e.createBlock(V,{key:0,icon:u.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",Er,[e.createElementVNode("div",Sr,[e.createElementVNode("span",Nr,e.toDisplayString(t.headline),1),t.clickable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":e.unref(r)("close"),class:"onyx-toast-message__close",onClick:d[0]||(d[0]=p=>l("close"))},[e.createVNode(V,{icon:e.unref(Pe)},null,8,["icon"])],8,Mr))]),t.description?(e.openBlock(),e.createElementBlock("p",$r,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("time",{key:t.duration,"aria-hidden":"true",class:"onyx-toast-message__progress-bar",style:e.normalizeStyle({animationDuration:`${t.duration}ms`}),onAnimationend:d[1]||(d[1]=p=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),He=Symbol(),Pt=()=>{let n=1;const o=e.ref([]),t=r=>{const a=n++;o.value.unshift({...r,id:a,onClose:()=>l(a)})},l=r=>{o.value=o.value.filter(a=>a.id!==r)};return{toasts:e.computed(()=>o.value),show:t,remove:l}},At=()=>{const n=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(He,()=>({toasts:e.computed(()=>[]),show:n,remove:n}),!0)},Or={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},Tr=e.defineComponent({__name:"OnyxToast",setup(n){const o=At();return(t,l)=>e.unref(o).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",Or,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(Dt,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),Ir=["top","bottom","auto"],Lr=e.defineComponent({__name:"OnyxForm",props:{disabled:{type:Boolean,default:!1},showError:{default:"touched"},skeleton:{type:Boolean},density:{}},setup(n){const o=n;ro(o),tt(o);const{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass({"onyx-form":!0,...e.unref(t)})},[e.renderSlot(l.$slots,"default")],2))}}),Dr=["primary","secondary","neutral","danger","warning","success","info"],Pr=["small","default","large"],Ar=["ellipsis","multiline"],Rr=["horizontal","vertical"],zr=(n={})=>({install:o=>{rt(o,n.i18n);const t=o.runWithContext(()=>S());o.provide(He,Pt()),o.mixin({beforeMount:()=>{e.watchEffect(()=>{Hr(t.t.value("optional"))})}})}}),Hr=n=>{var o;(o=globalThis.document)==null||o.body.style.setProperty("--onyx-global-optional-text",n)};exports.AUTOCAPITALIZE=cl;exports.BUTTON_COLORS=Vo;exports.BUTTON_MODES=Eo;exports.BUTTON_TYPES=wo;exports.DENSITIES=no;exports.DIRECTIONS=Rr;exports.DataGridFeatures=Gn;exports.HEADLINE_TYPES=Yn;exports.ICON_SIZES=Jn;exports.INPUT_TYPES=il;exports.LINK_TARGETS=pl;exports.MOBILE_NAV_BAR_INJECTION_KEY=W;exports.MULTISELECT_TEXT_MODE=Xa;exports.NAV_BAR_MORE_LIST_INJECTION_KEY=St;exports.ONYX_BREAKPOINTS=We;exports.ONYX_COLORS=Dr;exports.OnyxAppLayout=Wt;exports.OnyxAvatar=be;exports.OnyxAvatarStack=oo;exports.OnyxBadge=Xe;exports.OnyxButton=le;exports.OnyxCheckbox=oe;exports.OnyxCheckboxGroup=xn;exports.OnyxColorSchemeDialog=Vt;exports.OnyxColorSchemeMenuItem=Rl;exports.OnyxDataGrid=An;exports.OnyxDataGridRenderer=xt;exports.OnyxDialog=bt;exports.OnyxEmpty=Le;exports.OnyxExternalLinkIcon=ie;exports.OnyxFlyoutMenu=Re;exports.OnyxForm=Lr;exports.OnyxHeadline=K;exports.OnyxIcon=V;exports.OnyxIconButton=De;exports.OnyxInfoTooltip=ne;exports.OnyxInput=sl;exports.OnyxLink=dl;exports.OnyxListItem=de;exports.OnyxLoadingIndicator=H;exports.OnyxMenuItem=Ae;exports.OnyxMiniSearch=Ct;exports.OnyxMobileNavButton=Ne;exports.OnyxMoreList=Bl;exports.OnyxNavAppArea=wt;exports.OnyxNavBar=Ca;exports.OnyxNavButton=jl;exports.OnyxNavItem=Yl;exports.OnyxNavSeparator=Nt;exports.OnyxPageLayout=Sa;exports.OnyxPagination=Ka;exports.OnyxRadioButton=$e;exports.OnyxRadioGroup=Ja;exports.OnyxSelect=Lt;exports.OnyxSelectInput=It;exports.OnyxSelectOption=Me;exports.OnyxSkeleton=O;exports.OnyxStepper=sr;exports.OnyxSwitch=yr;exports.OnyxTab=vr;exports.OnyxTable=kt;exports.OnyxTabs=_r;exports.OnyxTag=kr;exports.OnyxTextarea=Br;exports.OnyxTimer=oa;exports.OnyxToast=Tr;exports.OnyxToastMessage=Dt;exports.OnyxTooltip=Y;exports.OnyxUserMenu=pa;exports.OnyxVisuallyHidden=J;exports.SELECT_ALIGNMENTS=Wa;exports.TABS_INJECTION_KEY=ze;exports.TEXT_SIZES=Pr;exports.TOAST_PROVIDER_INJECTION_KEY=He;exports.TOOLTIP_POSITIONS=Ir;exports.TRUNCATION_TYPES=Ar;exports.createOnyx=zr;exports.createToastProvider=Pt;exports.normalizedIncludes=Tt;exports.provideI18n=rt;exports.useDensity=C;exports.useScrollEnd=Ot;exports.useToast=At;
183
+ `,Ml={class:"onyx-color-scheme-dialog__subtitle onyx-text"},$l=["innerHTML"],Ol=["autofocus","value","checked","aria-label"],Tl={class:"onyx-text--small"},Il={class:"onyx-color-scheme-dialog__actions"},Vt=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(n,{emit:o}){const t=n,l=o,r=e.ref();e.watchEffect(()=>r.value=t.modelValue);const{t:a}=S(),c=e.computed(()=>[{value:"auto",image:El,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:Nl,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:Sl,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),s=i=>{const d=i.target;r.value=d.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(i,d)=>(e.openBlock(),e.createBlock(xt,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:d[1]||(d[1]=p=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(u,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(K,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",Ml,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,p=>(e.openBlock(),e.createElementBlock("label",{key:p.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:p.image},null,8,$l),e.createElementVNode("div",null,[e.createVNode(J,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===p.value,value:p.value,checked:t.modelValue===p.value,"aria-label":p.label,required:""},null,8,Ol)]),_:2},1024),e.createVNode(K,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",Tl,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",Il,[e.createVNode(le,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:d[0]||(d[0]=p=>l("close"))},null,8,["label"]),e.createVNode(le,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),Ll='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.008 1.5c-5.79 0-10.493 4.71-10.493 10.493 0 5.782 4.71 10.492 10.493 10.492 5.782 0 10.492-4.71 10.492-10.492S17.79 1.5 12.008 1.5M13.5 3.135q.753.126 1.463.375v16.973q-.709.249-1.463.375zm2.962 1.058a9.3 9.3 0 0 1 1.59 1.162v13.282a9 9 0 0 1-1.59 1.163zm3.083 2.917a8.93 8.93 0 0 1 1.447 4.882 9 9 0 0 1-1.447 4.883zM3.008 11.992C3.008 7.036 7.043 3 12 3v17.993c-4.957 0-8.992-4.035-8.992-8.993z"/></svg>',Dl=["href","target","rel"],Al=["disabled"],Pe=e.defineComponent({__name:"OnyxMenuItem",props:{target:{default:"_self"},href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},setup(n){const o=n,{t}=S(),{elements:{listItem:l,menuItem:r}}=yt(),a=e.computed(()=>r({active:o.active,disabled:o.disabled}));return(c,s)=>(e.openBlock(),e.createBlock(de,e.mergeProps({selected:o.active,active:o.active,color:o.color,disabled:o.disabled,class:"onyx-menu-item"},e.unref(l)),{default:e.withCtx(()=>[o.href?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"onyx-menu-item__trigger",href:o.href,target:o.target,rel:o.target==="_blank"?"noreferrer":void 0},a.value),[e.renderSlot(c.$slots,"default")],16,Dl)):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:"onyx-menu-item__trigger",type:"button",disabled:o.disabled},a.value),[e.renderSlot(c.$slots,"default"),o.target==="_blank"?(e.openBlock(),e.createBlock(J,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0)],16,Al))]),_:3},16,["selected","active","color","disabled"]))}}),Pl={class:"onyx-color-scheme-menu-item__value"},Rl=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),a=e.ref(!1);return(c,s)=>(e.openBlock(),e.createBlock(Pe,{class:"onyx-color-scheme-menu-item",onClick:s[2]||(s[2]=u=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(V,{icon:e.unref(Ll)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",Pl,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(Vt,{"model-value":t.modelValue,open:a.value,onClose:s[0]||(s[0]=u=>a.value=!1),"onUpdate:modelValue":s[1]||(s[1]=u=>l("update:modelValue",u))},null,8,["model-value","open"])]))]),_:1}))}}),zl=n=>e.computed(n),U=Symbol("MANAGED_SYMBOL"),ae=(n,o,t)=>{const l=e.computed(()=>n.value===U),r=e.ref(e.toValue(l)?o:n.value);return{state:zl({set:c=>{r.value=c,t(c)},get:()=>l.value?r.value:n.value}),isManaged:l}},Hl=["aria-label"],Re=e.defineComponent({__name:"OnyxFlyoutMenu",props:{open:{default:U},label:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o,{state:r}=ae(e.toRef(()=>t.open),!1,d=>l("update:open",d)),a=e.useSlots(),{elements:{root:c,button:s,menu:u}}=sn({isExpanded:e.computed(()=>!!r.value),onToggle:()=>r.value=!r.value}),i=e.computed(()=>{var p;if(!a.default)return;const d=a.default().at(0);return(d==null?void 0:d.type.toString())==="Symbol(v-fgt)"?Array.isArray(d==null?void 0:d.children)?(p=d==null?void 0:d.children)==null?void 0:p.at(0):void 0:d});return(d,p)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-flyout-menu"},e.unref(c)),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),e.normalizeProps(e.guardReactiveProps(e.unref(s))),null,16)),a.options||a.header||a.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":t.label,class:e.normalizeClass({"onyx-flyout-menu__list--with-header":!!a.header,"onyx-flyout-menu__list--with-footer":!!a.footer,"onyx-flyout-menu__list":!0})},[e.renderSlot(d.$slots,"header"),a.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(u),{class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(d.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"footer")],10,Hl)),[[e.vShow,e.unref(r)]]):e.createCommentVNode("",!0)],16))}}),Et='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m9.905 6.22-1.06 1.06 4.72 4.72-4.72 4.72 1.06 1.06 5.78-5.78z"/></svg>',W=Symbol(),St=Symbol(),Fl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.618 11.626H8.936l3.094-3.094-1.064-1.056-4.899 4.898 4.9 4.9 1.063-1.064-3.094-3.086h8.682z"/></svg>',Ul=["aria-orientation"],Nt=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(n){const o=n,t=e.inject(W);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":o.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":o.orientation},null,10,Ul))}}),ql={role:"presentation"},Gl=e.defineComponent({__name:"NavButtonLayout",props:{href:{},withExternalIcon:{type:[Boolean,String]},mobileChildrenOpen:{},label:{},active:{type:Boolean},isMobile:{type:Boolean}},emits:["update:mobileChildrenOpen"],setup(n,{emit:o}){const t=n,l=e.useSlots(),{t:r}=S(),a=o;return(c,s)=>(e.openBlock(),e.createElementBlock("li",ql,[t.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isMobile&&c.mobileChildrenOpen?(e.openBlock(),e.createBlock(le,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(Fl),onClick:s[0]||(s[0]=u=>a("update:mobileChildrenOpen",!1))},null,8,["label","icon"])):e.createCommentVNode("",!0),!c.mobileChildrenOpen||t.href?e.renderSlot(c.$slots,"button",{key:1}):e.createCommentVNode("",!0),c.mobileChildrenOpen&&t.href?(e.openBlock(),e.createBlock(Nt,{key:2,orientation:"horizontal"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("ul",{role:"menu",class:e.normalizeClass(["onyx-nav-button__mobile-children",{"onyx-nav-button__mobile-children--open":c.mobileChildrenOpen}])},[e.renderSlot(c.$slots,"options")],2),[[e.vShow,c.mobileChildrenOpen]])],64)):(e.openBlock(),e.createBlock(Re,{key:1,label:e.unref(r)("navItemOptionsLabel",{label:t.label})},e.createSlots({default:e.withCtx(()=>[e.renderSlot(c.$slots,"button")]),_:2},[l.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Kl=["aria-label"],Zl={class:"onyx-truncation-ellipsis"},jl=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{default:U},label:{},active:{type:Boolean,default:!1}},emits:["navigate","update:mobileChildrenOpen"],setup(n,{emit:o}){const t=n,l=o,r=e.useSlots(),a=e.inject(W),c=e.computed(()=>!!r.children),{componentRef:s,isVisible:u}=xl(St),{state:i}=ae(e.toRef(()=>t.mobileChildrenOpen),!1,p=>l("update:mobileChildrenOpen",p)),d=p=>{a!=null&&a.value&&c.value&&!i.value?i.value=!0:t.href&&l("navigate",t.href,p)};return(p,f)=>(e.openBlock(),e.createBlock(Gl,e.mergeProps({ref_key:"componentRef",ref:s},t,{"mobile-children-open":e.unref(i),"onUpdate:mobileChildrenOpen":f[0]||(f[0]=y=>e.isRef(i)?i.value=y:null),class:["onyx-nav-button",{"onyx-nav-button--mobile":e.unref(a),"onyx-nav-button--active":t.active,"onyx-nav-button--hidden":!e.unref(a)&&!e.unref(u)}],"is-mobile":e.unref(a)??!1}),e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["onyx-nav-button__trigger onyx-text",{"onyx-nav-button__link":t.href!=null}]),role:"menuitem","aria-label":t.label,type:"button",onClick:d},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",Zl,e.toDisplayString(t.label),1),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!e.unref(i)?(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(Et)},null,8,["icon"])):e.createCommentVNode("",!0)],10,Kl)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Yl=e.defineComponent({__name:"OnyxNavItem",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{},label:{},active:{type:Boolean}},emits:["navigate"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createBlock(Pe,{class:"onyx-nav-item",active:t.active,href:t.href??"javascript:void(0)",onClick:a[0]||(a[0]=c=>t.href&&l("navigate",t.href))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),e.createVNode(ie,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),Jl=n=>{const o=e.ref(),t=e.ref(ke(new Date(n.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(n,r=>{clearInterval(o.value);const a=new Date(r).getTime();t.value=ke(a),o.value=setInterval(()=>{t.value=ke(a),l.value&&clearInterval(o.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(o.value)),{timeLeft:t,isEnded:l}},ke=n=>{const o=n-Date.now();return Math.max(o,0)},Mt=n=>{const o=Math.floor(n/6e4/60),t=Math.floor(n/6e4%60),l=Math.floor(n%6e4/1e3);return{hours:o,minutes:t,seconds:l}},Wl=(n,o)=>{const{hours:t,minutes:l,seconds:r}=Mt(n),a=u=>u.toString().padStart(2,"0");let c="",s=be(o.formatToParts(n,"seconds"));return l>0&&(s=be(o.formatToParts(n,"minutes"))),t>0&&(s=be(o.formatToParts(n,"hours")),c=`${a(t)}:`),`${c}${a(l)}:${a(r)} ${s}`},be=n=>{var o;return((o=n.at(-1))==null?void 0:o.value.replace(".","").trim())??""},Xl=n=>{const{hours:o,minutes:t,seconds:l}=Mt(n);return`PT${o}H${t}M${l}S`},Ql=["aria-label"],ea={key:0,class:"onyx-timer__label"},ta=["datetime"],oa=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(n,{emit:o}){const t=n,l=o,{locale:r}=S(),{timeLeft:a,isEnded:c}=Jl(e.computed(()=>t.endTime)),s=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Wl(a.value,s.value));return e.watchEffect(()=>c.value&&l("timerEnded")),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ea,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Xl)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,ta)],8,Ql))}}),na={class:"onyx-user-menu__footer onyx-text--small"},la=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean},flyoutOpen:{default:U}},emits:["update:flyoutOpen"],setup(n){const o=n,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),{t:r}=S();return(a,c)=>(e.openBlock(),e.createElementBlock("div",null,[o.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(a.$slots,"header"),e.renderSlot(a.$slots,"options"),l.footer?(e.openBlock(),e.createBlock(de,{key:0,class:"onyx-user-menu__mobile-footer",disabled:""},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),_:3})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(Re,{key:1,open:e.unref(t),"onUpdate:open":c[0]||(c[0]=s=>e.isRef(t)?t.value=s:null),label:e.unref(r)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(a.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"button")]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",na,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["open","label"]))]))}}),aa={class:"onyx-user-menu__trigger onyx-text",type:"button"},ra={class:"onyx-truncation-ellipsis"},sa={class:"onyx-user-menu__header"},ia={class:"onyx-truncation-ellipsis"},ca={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},ua={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},da={class:"onyx-user-menu__options"},pa=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{},flyoutOpen:{default:U}},emits:["update:flyoutOpen"],setup(n,{emit:o}){const t=n,l=o,r=e.useSlots(),a=e.computed(()=>({src:t.avatar,label:t.username})),c=e.inject(W,e.computed(()=>!1));return(s,u)=>(e.openBlock(),e.createBlock(la,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(c)}]),"is-mobile":e.unref(c),"flyout-open":s.flyoutOpen,"onUpdate:flyoutOpen":u[0]||(u[0]=i=>l("update:flyoutOpen",i))},e.createSlots({button:e.withCtx(()=>[e.createElementVNode("button",aa,[e.createVNode(xe,e.mergeProps(a.value,{size:"24px"}),null,16),e.createElementVNode("span",ra,e.toDisplayString(t.username),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",sa,[e.createVNode(xe,e.normalizeProps(e.guardReactiveProps(a.value)),null,16),e.createElementVNode("div",ia,[e.createElementVNode("div",ca,e.toDisplayString(t.username),1),t.description?(e.openBlock(),e.createElementBlock("div",ua,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.createElementVNode("div",da,[e.renderSlot(s.$slots,"default")])]),_:2},[r.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile","flyout-open"]))}}),$t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.155 7.28-1.06-1.06L8.315 12l5.78 5.78 1.06-1.06-4.72-4.72z"/></svg>',ma='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.5 6h-21v1.5h21zm0 5.25h-21v1.5h21zm-21 5.25h21V18h-21z"/></svg>',fa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1.5A2.25 2.25 0 1 1 12 6a2.25 2.25 0 0 1 0-4.5m0 8.25a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m1.25 8.63a2.25 2.25 0 1 0-2.5 3.741 2.25 2.25 0 0 0 2.5-3.742"/></svg>',ya=(n,o)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=c=>{const s=c[0].contentBoxSize;l.value=s.reduce((u,{inlineSize:i})=>u+i,0),r.value=s.reduce((u,{blockSize:i})=>u+i,0)};return e.onBeforeMount(()=>{const c=new ResizeObserver(a);e.watch(n,(s,u)=>{u&&(c==null||c.unobserve(u)),s&&(c==null||c.observe(s,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>c.disconnect())}),{width:l,height:r}},ha={class:"onyx-nav-bar__content"},va={key:0,class:"onyx-nav-bar__mobile-page onyx-truncation-ellipsis"},_a={role:"menubar"},ga={role:"menubar"},ka={key:0,class:"onyx-nav-bar__mobile-context"},ba={key:0,class:"onyx-nav-bar__mobile-global-context"},xa={class:"onyx-nav-bar__mobile-context-content"},Ba={key:1,class:"onyx-nav-bar__context"},Ca=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["navigateToStart","navigateBack"],setup(n,{expose:o,emit:t}){const l=n,r=t,a=e.useSlots(),c=e.ref(),{width:s}=ya(c),{t:u}=S(),{elements:{nav:i}}=un({navigationName:e.toRef(()=>l.appName)}),d=e.ref(!1),p=e.ref(!1),f=e.computed(()=>{const y=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:We[l.mobileBreakpoint];return s.value!==0&&s.value<y});return e.provide(W,f),o({closeMobileMenus:()=>{d.value=!1,p.value=!1}}),(y,m)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:c,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":f.value}])},[e.createElementVNode("div",ha,[f.value&&a.mobileActivePage&&!d.value&&!p.value?(e.openBlock(),e.createElementBlock("span",va,[e.renderSlot(y.$slots,"mobileActivePage")])):l.appName||l.logoUrl||a.appArea?(e.openBlock(),e.createBlock(wt,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:m[0]||(m[0]=h=>{r("navigateToStart",h),d.value=!1})},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),l.withBackButton?(e.openBlock(),e.createBlock(De,{key:2,class:"onyx-nav-bar__back",label:e.unref(u)("navigation.goBack"),icon:e.unref($t),color:"neutral",onClick:m[1]||(m[1]=h=>r("navigateBack",h))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[f.value?(e.openBlock(),e.createBlock(Ne,{key:0,open:d.value,"onUpdate:open":[m[2]||(m[2]=h=>d.value=h),m[3]||(m[3]=h=>p.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(ma),label:e.unref(u)("navigation.toggleBurgerMenu"),headline:e.unref(u)("navigation.navigationHeadline")},{default:e.withCtx(()=>[e.createElementVNode("nav",e.mergeProps({class:"onyx-nav-bar__nav--mobile"},e.unref(i)),[e.createElementVNode("ul",_a,[e.renderSlot(y.$slots,"default")])],16)]),_:3},8,["open","icon","label","headline"])):(e.openBlock(),e.createElementBlock("nav",e.mergeProps({key:1,class:"onyx-nav-bar__nav"},e.unref(i)),[e.createElementVNode("ul",ga,[e.renderSlot(y.$slots,"default")])],16))],64)):e.createCommentVNode("",!0),a.contextArea||a.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[f.value?(e.openBlock(),e.createElementBlock("div",ka,[a.globalContextArea?(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(y.$slots,"globalContextArea")])):e.createCommentVNode("",!0),a.contextArea?(e.openBlock(),e.createBlock(Ne,{key:1,open:p.value,"onUpdate:open":[m[4]||(m[4]=h=>p.value=h),m[5]||(m[5]=h=>d.value=!1)],icon:e.unref(fa),label:e.unref(u)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",xa,[e.renderSlot(y.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Ba,[a.globalContextArea?e.renderSlot(y.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),a.contextArea?e.renderSlot(y.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),wa={key:0,class:"onyx-page__sidebar"},Va={class:"onyx-page__main"},Ea={key:1,class:"onyx-page__footer"},Sa=e.defineComponent({__name:"OnyxPageLayout",props:{skeleton:{type:Boolean},footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(n){const o=n,t=e.useSlots();tt(o);const l=e.computed(()=>o.footerAsideSidebar?"onyx-page--footer-partial":"onyx-page--footer-full");return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!o.hideSidebar?(e.openBlock(),e.createElementBlock("aside",wa,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Va,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",Ea,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),Ot=n=>{const t=e.ref(!1),l=a=>{const c=a.target;if(!(c instanceof Element))return;const s=e.unref(n.offset)??0;t.value=Math.abs(c.scrollTop)+c.clientHeight>=c.scrollHeight-s-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var s;(((s=n.enabled)==null?void 0:s.value)??!0)&&!n.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Tt=(n,o)=>{const t=Je(n.toLowerCase()),l=Je(o.toLowerCase());return t.includes(l)},Je=n=>n.normalize("NFD").replace(/[\u0300-\u036f]/g,""),Na='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.718 14.123 1.057 1.057-5.782 5.782L6.21 15.18l1.058-1.057 4.717 4.717 4.718-4.717zM12 5.153l4.718 4.717 1.057-1.057-5.782-5.783L6.21 8.813 7.268 9.87l4.717-4.717z"/></svg>',Ma=["id","readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],$a=["aria-label","disabled"],It=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{disabled:{default:T},showError:{default:T},density:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},modelValue:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number],default:A},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["inputClick","validityChange"],setup(n,{expose:o,emit:t}){const{rootAttrs:l,restAttrs:r}=Bt(),a=n,c=t,{t:s}=S(),{vCustomValidity:u,errorMessages:i}=q({props:a,emit:c}),{disabled:d,showError:p}=R(a),f=P(a),y=ce(p),m=e.computed(()=>a.modelValue?a.modelValue.length:0),h=e.computed(()=>{var k;const g=(k=a.modelValue)==null?void 0:k.length;if(!a.modelValue||!g)return"";if(g===1)return a.modelValue[0];switch(a.textMode){case"preview":return a.modelValue.join(", ");case"summary":default:return s.value("selections.currentSelection",{n:g})}}),_=e.ref(!1),{densityClass:x}=C(a),B=e.ref();o({focus:()=>{var g;return(g=B.value)==null?void 0:g.focus()}}),e.watch(()=>a.showFocus,(g,k)=>{_.value||k&&g===!1&&(_.value=!0)});const $=mt.concat(ft),N=g=>{$.includes(g.key)||g.preventDefault()};return(g,k)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(x)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(O,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(x),e.unref(y),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(ue,e.mergeProps(a,{"error-messages":e.unref(i)}),{default:e.withCtx(({id:E})=>[e.createElementVNode("div",{class:"onyx-select-input__wrapper",onClick:k[0]||(k[0]=I=>!e.unref(d)&&!a.loading&&c("inputClick"))},[a.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:E,ref_key:"input",ref:B,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--touched":_.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:e.unref(d)||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:h.value,autofocus:a.autofocus,autocomplete:"off",onKeydown:N}),null,16,Ma),[[e.unref(u)]]),a.textMode==="preview"&&m.value>0?(e.openBlock(),e.createBlock(Y,{key:1,text:h.value,position:"bottom"},{default:e.withCtx(({trigger:I})=>[e.createVNode(Xe,e.mergeProps({class:"onyx-select-input__badge"},I,{color:"neutral"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value),1)]),_:2},1040)]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(s)("select.toggleDropDown"),tabindex:"-1",disabled:e.unref(d)||a.readonly||a.loading},[e.createVNode(V,{icon:e.unref(Na)},null,8,["icon"])],8,$a)])]),_:1},16,["error-messages"])],16))}}),Oa=["checked","aria-labelledby","disabled","indeterminate"],Me=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{},truncation:{default:"ellipsis"}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(de,e.mergeProps({class:"onyx-select-option"},o,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[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-select-option__checkbox",type:"checkbox"},null,8,Oa)):e.createCommentVNode("",!0),o.icon?(e.openBlock(),e.createBlock(V,{key:1,icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([`onyx-truncation-${o.truncation}`])},[e.renderSlot(t.$slots,"default")],2)]),_:3},16,["checked","selected","disabled"]))}}),Ta=["inert"],Ia={class:"onyx-select__wrapper",tabindex:"-1"},La={key:0,role:"group",class:"onyx-select__group"},Da={role:"option","aria-selected":"false"},Aa={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},Pa={key:1,class:"onyx-select__slot"},Ra={key:2,class:"onyx-select__slot"},za={key:0,class:"onyx-select__description onyx-text--small"},Lt=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:U},showError:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number]},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},truncation:{default:"ellipsis"},disabled:{default:T},valueLabel:{default:void 0},open:{default:U},alignment:{default:"full"},listLabel:{},listDescription:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","update:open","lazyLoad","validityChange"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=C(t),a=e.useSlots(),{t:c}=S(),{state:s,isManaged:u}=ae(e.toRef(()=>t.searchTerm),"",v=>l("update:searchTerm",v)),{state:i}=ae(e.toRef(()=>t.open),!1,v=>l("update:open",v)),d=e.ref(),{openDirection:p,updateOpenDirection:f}=vt(d),y=e.ref(),m=e.computed(()=>t.modelValue===void 0?[]:t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]),h=e.computed(()=>t.valueLabel!==void 0?Array.isArray(t.valueLabel)?t.valueLabel:[t.valueLabel]:m.value.reduce((v,w)=>{var L;const M=(L=t.options.find(({value:D})=>D===w))==null?void 0:L.label;return M&&v.push(M),v},[])),_=e.ref(),x=e.ref(),B=e.computed(()=>u.value&&s.value?t.options.filter(({label:v})=>Tt(v,s.value)):t.options);e.watch(m,()=>{t.multiple||(y.value=m.value.at(0))},{immediate:!0});const $=e.useId(),N=e.computed(()=>(t.multiple&&t.withCheckAll&&!s.value?[$]:[]).concat(qe.value)),g=async v=>{var M,L;if(t.readonly){i.value=!1;return}const w=i.value;i.value=!w,await e.nextTick(),i.value&&f(),w!==i.value&&(w?(s.value&&(s.value=""),v||(M=x.value)==null||M.focus()):(L=_.value)==null||L.focus())},k=()=>y.value=N.value.at(0),E=()=>y.value=N.value.at(-1),I=v=>{const w=N.value.findIndex(M=>M===v);w<N.value.length-1&&(y.value=N.value[w+1])},Z=v=>{const w=N.value.findIndex(M=>M===v);w>0&&(y.value=N.value[w-1])},j=v=>{const w=B.value.find(M=>M.label.toLowerCase().trim().startsWith(v.toLowerCase()));w&&(y.value=w.value)},pe=v=>s.value=v,me=v=>{var L;if(v===$){(L=X.value)==null||L.handleChange(!X.value.state.value.modelValue);return}if(!B.value.find(({value:D})=>D===v))return;if(!t.multiple)return l("update:modelValue",v);m.value.some(D=>D===v)?l("update:modelValue",m.value.filter(D=>D!==v)):l("update:modelValue",[...m.value,v])},fe=e.computed(()=>t.withSearch?"list":"none"),{label:b,listLabel:ye,listDescription:Rt,multiple:zt}=e.toRefs(t),{elements:{input:he,option:Fe,group:Ue,listbox:Ht}}=rn({autocomplete:fe,label:b,listLabel:ye,listDescription:Rt,multiple:zt,activeOption:e.computed(()=>y.value),isExpanded:i,templateRef:d,onToggle:g,onActivateFirst:k,onActivateLast:E,onActivateNext:I,onActivatePrevious:Z,onTypeAhead:j,onAutocomplete:pe,onSelect:me}),Ft=e.computed(()=>jo(B.value,"group")),{vScrollEnd:Ut,isScrollEnd:qt}=Ot({enabled:e.computed(()=>{var v;return((v=t.lazyLoading)==null?void 0:v.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var v;return(v=t.lazyLoading)==null?void 0:v.scrollOffset})}),ve=e.computed(()=>{if(!B.value.length)return t.withSearch&&s.value?c.value("select.noMatch"):c.value("select.empty")}),qe=e.computed(()=>B.value.filter(v=>!v.disabled).map(({value:v})=>v)),X=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return _t(qe,m,v=>{const w=v.map(M=>{var L;return(L=t.options.find(({value:D})=>D===M))==null?void 0:L.value}).filter(M=>M!=null);l("update:modelValue",w)})}),_e=e.computed(()=>{var w;if(!t.multiple)return"";const v=c.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?v:((w=t.withCheckAll)==null?void 0:w.label)??v});e.watchEffect(()=>{qt.value&&l("lazyLoad")});const Gt=e.computed(()=>{const v={...t,open:void 0,modelValue:h.value};return t.withSearch?{...v,onKeydown:he.value.onKeydown}:{...v,...he.value}});return(v,w)=>{var M,L,D;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:d,class:"onyx-select-wrapper"},[e.createVNode(It,e.mergeProps({ref_key:"selectInput",ref:x},Gt.value,{"show-focus":e.unref(i),autofocus:t.autofocus,onInputClick:g,onValidityChange:w[0]||(w[0]=Q=>l("validityChange",Q))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(i)?"onyx-select--open":"",`onyx-select--${e.unref(p)}`,`onyx-select--${t.alignment}`]),inert:!e.unref(i)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ia,[t.withSearch?(e.openBlock(),e.createBlock(Ct,e.mergeProps({key:0,ref_key:"miniSearch",ref:_,"model-value":e.unref(s)},e.unref(he),{label:e.unref(c)("select.searchInputLabel"),class:"onyx-select__search",onClear:w[1]||(w[1]=Q=>s.value="")}),null,16,["model-value","label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(Ht))),[ve.value?(e.openBlock(),e.createElementBlock("ul",La,[e.createElementVNode("li",Da,[e.renderSlot(v.$slots,"empty",{defaultMessage:ve.value},()=>[e.createVNode(Le,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ve.value),1)]),_:1})])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.multiple&&t.withCheckAll&&!e.unref(s)?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0,class:"onyx-select__check-all"},e.unref(Ue)({label:_e.value})),[e.createVNode(Me,e.mergeProps(e.unref(Fe)({value:e.unref($),label:_e.value,selected:(M=X.value)==null?void 0:M.state.value.modelValue}),{multiple:"",active:e.unref($)===y.value,indeterminate:(L=X.value)==null?void 0:L.state.value.indeterminate,density:t.density}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_e.value),1)]),_:1},16,["active","indeterminate","density"])],16)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ft.value,(Q,ee)=>(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:ee,class:"onyx-select__group",ref_for:!0},e.unref(Ue)({label:ee})),[ee!=""?(e.openBlock(),e.createElementBlock("li",Aa,e.toDisplayString(ee),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q,z=>(e.openBlock(),e.createBlock(Me,e.mergeProps({key:z.value.toString(),ref_for:!0},e.unref(Fe)({value:z.value,label:z.label,disabled:z.disabled,selected:m.value.some(Kt=>Kt===z.value)}),{multiple:t.multiple,active:z.value===y.value,icon:z.icon,density:t.density,truncation:z.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(v.$slots,"option",e.mergeProps({ref_for:!0},z),()=>[e.createTextVNode(e.toDisplayString(z.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16))),128))],64))],16),(D=t.lazyLoading)!=null&&D.loading?(e.openBlock(),e.createElementBlock("div",Pa,[e.createVNode(H,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),a.optionsEnd?(e.openBlock(),e.createElementBlock("div",Ra,[e.renderSlot(v.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(Ut)]]),t.listDescription?(e.openBlock(),e.createElementBlock("div",za,e.toDisplayString(t.listDescription),1)):e.createCommentVNode("",!0)],10,Ta)],512)}}}),Ha=["aria-label"],Fa={class:"onyx-pagination__count"},Ua=["aria-label","disabled"],qa=["aria-label","disabled"],Ga=e.defineComponent({__name:"SelectPagination",props:{density:{},modelValue:{},pages:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),{densityClass:a}=C(t),c=e.computed(()=>Array.from({length:t.pages},(i,d)=>{const p=d+1;return{label:p.toString(),value:p}})),s=e.computed(()=>t.modelValue<=1),u=e.computed(()=>t.modelValue>=t.pages);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-pagination","onyx-text",e.unref(a)]),role:"group","aria-label":e.unref(r)("pagination.label"),style:e.normalizeStyle({"--onyx-pagination-character-count":t.modelValue.toString().length})},[e.createVNode(Lt,{class:"onyx-pagination__select",label:e.unref(r)("pagination.select.label"),"list-label":e.unref(r)("pagination.select.listLabel"),options:c.value,"model-value":t.modelValue,"value-label":t.modelValue.toString(),"hide-label":"",disabled:t.disabled||t.pages<=1,alignment:"left","with-search":"","onUpdate:modelValue":d[0]||(d[0]=p=>l("update:modelValue",p))},null,8,["label","list-label","options","model-value","value-label","disabled"]),e.createElementVNode("div",Fa,e.toDisplayString(e.unref(r)("pagination.ofPages",{n:t.pages})),1),e.createElementVNode("button",{class:"onyx-pagination__button","aria-label":e.unref(r)("pagination.previous"),type:"button",disabled:t.disabled||s.value,onClick:d[1]||(d[1]=p=>l("update:modelValue",t.modelValue-1))},[e.createVNode(V,{icon:e.unref($t)},null,8,["icon"])],8,Ua),e.createElementVNode("button",{class:"onyx-pagination__button","aria-label":e.unref(r)("pagination.next"),type:"button",disabled:t.disabled||u.value,onClick:d[2]||(d[2]=p=>l("update:modelValue",t.modelValue+1))},[e.createVNode(V,{icon:e.unref(Et)},null,8,["icon"])],8,qa)],14,Ha))}}),Ka=e.defineComponent({__name:"OnyxPagination",props:{density:{},modelValue:{},pages:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o;return(r,a)=>(e.openBlock(),e.createBlock(Ga,e.mergeProps(t,{"onUpdate:modelValue":a[0]||(a[0]=c=>l("update:modelValue",c))}),null,16))}}),Za=["required","name","value","checked","disabled","autofocus"],$e=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{default:T},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},customError:{},successMessage:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),{disabled:s}=R(t),u=P(t);return(i,d)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(c)])},[e.createVNode(O,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(O,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(s),"error-messages":e.unref(a)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-radio-button",e.unref(c)])},[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:e.unref(s),autofocus:t.autofocus},null,8,Za)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],2)]),_:1},8,["disabled","error-messages"]))}}),ja=["disabled","aria-label"],Ya={key:0,class:"onyx-radio-group__headline"},Ja=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},options:{},name:{default:()=>e.useId()},modelValue:{},disabled:{default:T},direction:{default:"vertical"},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,{densityClass:l}=C(t),{requiredMarkerClass:r,requiredTypeClass:a}=re(t),{disabled:c}=R(t),s=P(t),u=o,i=(d,p)=>{d&&u("update:modelValue",p)};return(d,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-group",e.unref(l),e.unref(a)]),disabled:e.unref(c),role:"radiogroup","aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",Ya,[e.createVNode(K,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["class"])])),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-group__content",{"onyx-radio-group__content--horizontal":t.direction==="horizontal"}])},[e.unref(s)?typeof e.unref(s)=="number"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(s),f=>(e.openBlock(),e.createBlock($e,{id:`skeleton-${f}`,key:f,value:`skeleton-${f}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128)):e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(f,y)=>(e.openBlock(),e.createBlock($e,e.mergeProps({key:f.value.toString(),ref_for:!0},f,{name:t.name,"custom-error":t.customError,checked:f.value===t.modelValue,required:t.required,truncation:f.truncation??t.truncation,onValidityChange:m=>y===0&&u("validityChange",m),onChange:m=>i(m,f.value)}),null,16,["name","custom-error","checked","required","truncation","onValidityChange","onChange"]))),128))],2)],10,ja))}}),Wa=["full","left","right"],Xa=["summary","preview"],Qa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 11.25h18v1.5H3z"/></svg>',er='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.75 11.25V3h-1.5v8.25H3v1.5h8.25V21h1.5v-8.25H21v-1.5z"/></svg>',tr=(n,o)=>n/o%1===0,or=(n,o,t)=>{const l=o??-1/0,r=t??1/0;return Math.min(Math.max(n,l),r)},te=(n,o)=>{if(n===void 0)return"";if(o>0)return n.toFixed(o);const l=Math.pow(10,o);return(Math.round(n*l)/l).toString()},nr={class:"onyx-stepper__wrapper"},lr=["disabled","aria-label"],ar=["aria-label","autofocus","disabled","min","max","name","placeholder","readonly","required","step","title"],rr=["disabled","aria-label"],sr=e.defineComponent({__name:"OnyxStepper",props:e.mergeModels({disabled:{default:T},showError:{default:T},density:{},customError:{},successMessage:{},required:{type:Boolean},requiredMarker:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},autofocus:{type:Boolean},name:{},placeholder:{},min:{},max:{},step:{},precision:{default:1},stepSize:{},stripStep:{type:Boolean,default:!1},autocomplete:{},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["validityChange"],["update:modelValue"]),setup(n,{emit:o}){const t=n,{t:l}=S(),r=e.ref(),a=o,{disabled:c,showError:s}=R(t),u=P(t),i=ce(s),{densityClass:d}=C(t),{vCustomValidity:p,errorMessages:f}=q({props:t,emit:a}),y=e.ref(!1),m=e.useModel(n,"modelValue"),h=e.ref(),_=e.computed(()=>{const k=t.precision,E=k.toString();return E.includes(".")?E.split(".")[1].length:-Math.floor(Math.log10(k))});e.watch(m,()=>h.value=te(m.value,_.value),{immediate:!0});const x=e.computed(()=>Math.max(t.stepSize??t.precision,t.precision)),B=k=>{if(!r.value)return;y.value=!0;const E=m.value||0,I=(k==="stepUp"?1:-1)*x.value,Z=E+I,j=Math.round(Z/t.precision)*t.precision;m.value=or(j,t.min,t.max)},$=()=>{if(!r.value)return;y.value=!0;const k=parseFloat(h.value??""),E=parseFloat(te(k,_.value));if(h.value=te(k,_.value),!k||isNaN(k)){m.value=void 0;return}if(t.stripStep&&(!tr(k,t.precision)||t.min!==void 0&&t.min>k||t.max!==void 0&&t.max<k)){h.value=te(m.value,_.value);return}m.value=E},N=e.computed(()=>l.value("stepper.increment",{stepSize:x.value})),g=e.computed(()=>l.value("stepper.decrement",{stepSize:x.value}));return(k,E)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-stepper-skeleton",e.unref(d)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-stepper-skeleton__label"})),e.createVNode(O,{class:"onyx-stepper-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-stepper",e.unref(d),e.unref(i)])},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(f)}),{default:e.withCtx(()=>[e.createElementVNode("div",nr,[e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||k.readonly||t.loading||t.min!==void 0&&m.value!==void 0&&m.value<=t.min,"aria-label":g.value,tabindex:"-1",onClick:E[0]||(E[0]=I=>B("stepDown"))},[e.createVNode(V,{icon:e.unref(Qa)},null,8,["icon"])],8,lr),t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-stepper__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"inputRef",ref:r,"onUpdate:modelValue":E[1]||(E[1]=I=>h.value=I),class:e.normalizeClass(["onyx-stepper__native",{"onyx-stepper__native--touched":y.value}]),type:"number","aria-label":t.label,autofocus:t.autofocus,disabled:e.unref(c)||t.loading,min:t.min,max:t.max,name:t.name,placeholder:t.placeholder,readonly:t.readonly,required:t.required,step:t.precision,title:t.hideLabel?t.label:void 0,onChange:$,onKeydown:[E[2]||(E[2]=e.withKeys(e.withModifiers(I=>B("stepUp"),["prevent"]),["up"])),E[3]||(E[3]=e.withKeys(e.withModifiers(I=>B("stepDown"),["prevent"]),["down"]))]},null,42,ar)),[[e.vModelText,h.value],[e.unref(p)]]),e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||k.readonly||t.loading||t.max!==void 0&&m.value!==void 0&&m.value>=t.max,"aria-label":N.value,tabindex:"-1",onClick:E[4]||(E[4]=I=>B("stepUp"))},[e.createVNode(V,{icon:e.unref(er)},null,8,["icon"])],8,rr)])]),_:1},16,["error-messages"])],2))}}),ir='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.983 8.095-6.22 6.22-2.468-2.47-1.061 1.062 3.53 3.525 7.28-7.28z"/></svg>',cr={class:"onyx-switch-skeleton__click-area"},ur=["title"],dr=["aria-label","disabled","required","autofocus"],pr={class:"onyx-switch__click-area"},mr={class:"onyx-switch__container"},fr={class:"onyx-switch__icon"},yr=e.defineComponent({__name:"OnyxSwitch",props:{disabled:{default:T},showError:{},density:{},required:{type:Boolean},requiredMarker:{},customError:{},successMessage:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{requiredMarkerClass:r,requiredTypeClass:a}=re(t),{densityClass:c}=C(t),{disabled:s,showError:u}=R(t),{vCustomValidity:i,errorMessages:d}=q({props:t,emit:l}),p=e.computed(()=>u.value!==!1?d.value:void 0),f=e.computed(()=>t.hideLabel&&t.label||void 0),y=P(t),m=e.computed({get:()=>t.modelValue,set:h=>{l("update:modelValue",h)}});return(h,_)=>e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(c)])},[e.createElementVNode("span",cr,[e.createVNode(O,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(Ie,{key:1,disabled:e.unref(s),"error-messages":p.value},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(c)]]),title:f.value},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=x=>m.value=x),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:e.unref(s)||t.loading,required:t.required,autofocus:t.autofocus},null,10,dr),[[e.vModelCheckbox,m.value],[e.unref(i)]]),e.createElementVNode("span",pr,[e.createElementVNode("span",mr,[e.createElementVNode("span",fr,[t.loading?(e.openBlock(),e.createBlock(H,{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(V,{key:1,icon:m.value?e.unref(ir):e.unref(Ae)},null,8,["icon"]))]),_[1]||(_[1]=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1))])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),!t.hideLabel&&t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,ur)]),_:1},8,["disabled","error-messages"]))}}),ze=Symbol(),hr={class:"onyx-tab__label"},vr=e.defineComponent({__name:"OnyxTab",props:{density:{},value:{},label:{}},setup(n){const o=n,{densityClass:t}=C(o),l=e.inject(ze),r=e.computed(()=>l==null?void 0:l.headless.elements.tab.value({value:o.value}));return(a,c)=>{var s,u,i,d,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("button",e.mergeProps({class:["onyx-tab","onyx-text--large",e.unref(t),(s=r.value)!=null&&s["aria-selected"]?"onyx-tab--selected":""]},r.value,{type:"button"}),[e.createElementVNode("div",hr,[e.renderSlot(a.$slots,"tab",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:(u=e.unref(l))==null?void 0:u.panelRef.value,disabled:!((i=e.unref(l))!=null&&i.panelRef.value),defer:""},[(d=r.value)!=null&&d["aria-selected"]?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},(p=e.unref(l))==null?void 0:p.headless.elements.tabpanel.value({value:o.value}),{class:"onyx-tab__panel"}),[e.renderSlot(a.$slots,"default")],16)):e.createCommentVNode("",!0)],8,["to","disabled"]))],64)}}}),_r=e.defineComponent({__name:"OnyxTabs",props:{density:{},label:{},modelValue:{},stretched:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=C(t),a=dn({label:e.toRef(t,"label"),selectedTab:e.toRef(()=>t.modelValue),onSelect:s=>l("update:modelValue",s)}),c=e.ref();return e.provide(ze,{headless:a,panelRef:c}),(s,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"panelRef",ref:c,class:e.normalizeClass(["onyx-tabs",e.unref(r),t.stretched?"onyx-tabs--stretched":""])},[e.createElementVNode("div",e.mergeProps(e.unref(a).elements.tablist.value,{class:"onyx-tabs__tablist"}),[e.renderSlot(s.$slots,"default")],16)],2))}}),gr={class:"onyx-text onyx-truncation-ellipsis"},kr=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(n){const o=n,{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${o.color}`,e.unref(t)])},[o.icon?(e.openBlock(),e.createBlock(V,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",gr,e.toDisplayString(o.label),1)],2))}}),br=["data-autosize-value"],xr=["id","placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],Br=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},successMessage:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{default:T},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:[Symbol,Boolean,Number],default:A},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=q({props:t,emit:l}),{densityClass:c}=C(t),s=e.computed({get:()=>t.modelValue,set:m=>l("update:modelValue",m)}),u=e.computed(()=>{if(!t.autosize)return;const m=t.autosize.min?Math.max(t.autosize.min,2):void 0,h=t.autosize.max;return[m?`--min-autosize-rows: ${m}`:"",`--max-autosize-rows: ${h??"unset"}`]}),i=m=>{var _;const h=m.target;(_=h.parentElement)==null||_.setAttribute("data-autosize-value",h.value)},{disabled:d,showError:p}=R(t),f=P(t),y=ce(p);return(m,h)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(c)]),style:e.normalizeStyle(u.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(O,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(y),e.unref(c)]),style:e.normalizeStyle(u.value)},[e.createVNode(ue,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:_})=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":s.value},[e.withDirectives(e.createElementVNode("textarea",{id:_,"onUpdate:modelValue":h[0]||(h[0]=x=>s.value=x),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:e.unref(d),minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:i},null,42,xr),[[e.vModelText,s.value],[e.unref(r)]])],8,br)]),_:1},16,["error-messages"])],6))}}),Cr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.25 16.5h1.5V18h-1.5zM12.75 6h-1.5v8.25h1.5z"/><path fill-rule="evenodd" d="M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21m6.364 16.864A9 9 0 1 1 21 12a8.94 8.94 0 0 1-2.636 6.364" clip-rule="evenodd"/></svg>',wr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m7.275 11.828 2.465 2.47 6.22-6.22 1.06 1.06-7.28 7.281-3.528-3.53z"/><path fill-rule="evenodd" d="M6.167 3.27a10.5 10.5 0 1 1 11.666 17.46A10.5 10.5 0 0 1 6.167 3.27M7 19.483A9 9 0 0 0 12 21a9.01 9.01 0 0 0 9-9 9 9 0 1 0-14 7.483" clip-rule="evenodd"/></svg>',Vr={class:"onyx-toast-message__wrapper"},Er={class:"onyx-toast-message__content onyx-truncation-ellipsis"},Sr={class:"onyx-toast-message__headline onyx-text"},Nr={class:"onyx-truncation-ellipsis"},Mr=["aria-label"],$r={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},Dt=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,{t:r}=S(),{densityClass:a}=C(t),c=e.computed(()=>t.duration>0),s={neutral:Se,danger:gt,warning:Cr,success:wr},u=e.computed(()=>{if(t.icon!==!1)return t.icon||s[t.color]});return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.clickable?"button":"div"),{class:e.normalizeClass(["onyx-toast-message",[`onyx-toast-message--${t.color}`,e.unref(a)]]),role:t.color==="danger"||t.color==="warning"?"alert":"status","aria-label":t.clickable?t.headline:void 0},{default:e.withCtx(()=>[e.createElementVNode("div",Vr,[u.value?(e.openBlock(),e.createBlock(V,{key:0,icon:u.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",Er,[e.createElementVNode("div",Sr,[e.createElementVNode("span",Nr,e.toDisplayString(t.headline),1),t.clickable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":e.unref(r)("close"),class:"onyx-toast-message__close",onClick:d[0]||(d[0]=p=>l("close"))},[e.createVNode(V,{icon:e.unref(Ae)},null,8,["icon"])],8,Mr))]),t.description?(e.openBlock(),e.createElementBlock("p",$r,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("time",{key:t.duration,"aria-hidden":"true",class:"onyx-toast-message__progress-bar",style:e.normalizeStyle({animationDuration:`${t.duration}ms`}),onAnimationend:d[1]||(d[1]=p=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),He=Symbol(),At=()=>{let n=1;const o=e.ref([]),t=r=>{const a=n++;o.value.unshift({...r,id:a,onClose:()=>l(a)})},l=r=>{o.value=o.value.filter(a=>a.id!==r)};return{toasts:e.computed(()=>o.value),show:t,remove:l}},Pt=()=>{const n=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(He,()=>({toasts:e.computed(()=>[]),show:n,remove:n}),!0)},Or={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},Tr=e.defineComponent({__name:"OnyxToast",setup(n){const o=Pt();return(t,l)=>e.unref(o).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",Or,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(Dt,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),Ir=["top","bottom","auto"],Lr=e.defineComponent({__name:"OnyxForm",props:{disabled:{type:Boolean,default:!1},showError:{default:"touched"},skeleton:{type:Boolean},density:{}},setup(n){const o=n;ro(o),tt(o);const{densityClass:t}=C(o);return(l,r)=>(e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass({"onyx-form":!0,...e.unref(t)})},[e.renderSlot(l.$slots,"default")],2))}}),Dr=["primary","secondary","neutral","danger","warning","success","info"],Ar=["small","default","large"],Pr=["ellipsis","multiline"],Rr=["horizontal","vertical"],zr=(n={})=>({install:o=>{rt(o,n.i18n);const t=o.runWithContext(()=>S());o.provide(He,At()),o.mixin({beforeMount:()=>{e.watchEffect(()=>{Hr(t.t.value("optional"))})}})}}),Hr=n=>{var o;(o=globalThis.document)==null||o.body.style.setProperty("--onyx-global-optional-text",n)};exports.AUTOCAPITALIZE=cl;exports.BUTTON_COLORS=Vo;exports.BUTTON_MODES=Eo;exports.BUTTON_TYPES=wo;exports.DENSITIES=no;exports.DIRECTIONS=Rr;exports.DataGridFeatures=Gn;exports.HEADLINE_TYPES=Yn;exports.ICON_SIZES=Jn;exports.INPUT_TYPES=il;exports.LINK_TARGETS=pl;exports.MOBILE_NAV_BAR_INJECTION_KEY=W;exports.MULTISELECT_TEXT_MODE=Xa;exports.NAV_BAR_MORE_LIST_INJECTION_KEY=St;exports.ONYX_BREAKPOINTS=We;exports.ONYX_COLORS=Dr;exports.OnyxAppLayout=Wt;exports.OnyxAvatar=xe;exports.OnyxAvatarStack=oo;exports.OnyxBadge=Xe;exports.OnyxButton=le;exports.OnyxCheckbox=oe;exports.OnyxCheckboxGroup=bn;exports.OnyxColorSchemeDialog=Vt;exports.OnyxColorSchemeMenuItem=Rl;exports.OnyxDataGrid=Pn;exports.OnyxDataGridRenderer=bt;exports.OnyxDialog=xt;exports.OnyxEmpty=Le;exports.OnyxExternalLinkIcon=ie;exports.OnyxFlyoutMenu=Re;exports.OnyxForm=Lr;exports.OnyxHeadline=K;exports.OnyxIcon=V;exports.OnyxIconButton=De;exports.OnyxInfoTooltip=ne;exports.OnyxInput=sl;exports.OnyxLink=dl;exports.OnyxListItem=de;exports.OnyxLoadingIndicator=H;exports.OnyxMenuItem=Pe;exports.OnyxMiniSearch=Ct;exports.OnyxMobileNavButton=Ne;exports.OnyxMoreList=Bl;exports.OnyxNavAppArea=wt;exports.OnyxNavBar=Ca;exports.OnyxNavButton=jl;exports.OnyxNavItem=Yl;exports.OnyxNavSeparator=Nt;exports.OnyxPageLayout=Sa;exports.OnyxPagination=Ka;exports.OnyxRadioButton=$e;exports.OnyxRadioGroup=Ja;exports.OnyxSelect=Lt;exports.OnyxSelectInput=It;exports.OnyxSelectOption=Me;exports.OnyxSkeleton=O;exports.OnyxStepper=sr;exports.OnyxSwitch=yr;exports.OnyxTab=vr;exports.OnyxTable=kt;exports.OnyxTabs=_r;exports.OnyxTag=kr;exports.OnyxTextarea=Br;exports.OnyxTimer=oa;exports.OnyxToast=Tr;exports.OnyxToastMessage=Dt;exports.OnyxTooltip=Y;exports.OnyxUserMenu=pa;exports.OnyxVisuallyHidden=J;exports.SELECT_ALIGNMENTS=Wa;exports.TABS_INJECTION_KEY=ze;exports.TEXT_SIZES=Ar;exports.TOAST_PROVIDER_INJECTION_KEY=He;exports.TOOLTIP_POSITIONS=Ir;exports.TRUNCATION_TYPES=Pr;exports.createOnyx=zr;exports.createToastProvider=At;exports.normalizedIncludes=Tt;exports.provideI18n=rt;exports.useDensity=C;exports.useScrollEnd=Ot;exports.useToast=Pt;