sit-onyx 1.0.0-beta.71 → 1.0.0-beta.72
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 +2 -2
- package/dist/index.js +264 -264
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/styles/mixins/input.scss +5 -8
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Qe={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},jt={key:0,class:"onyx-app__nav"},Yt={class:"onyx-app__page"},Jt={key:1,class:"onyx-app__page-overlay"},Wt={key:2,class:"onyx-app__app-overlay"},Xt=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",jt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",Yt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Jt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Wt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Qt=["title"],eo=["src","alt"],to={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,i)=>(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:i[0]||(i[0]=c=>r.value=!0)},null,40,eo)):(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Qt))}}),oo={class:"onyx-avatar-stack"},no=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(o.$slots,"default")]))}}),lo=["compact","default","cozy"],B=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:!!n.density}))}),ao=["innerHTML"],w=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,ao))}}),et=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=B(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(w,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),tt=Symbol(),A=Symbol("SKELETON_INJECTED_SYMBOL"),ot=n=>o=>e.computed(()=>typeof o.skeleton!="symbol"?o.skeleton:o.skeleton===A&&(n==null?void 0:n.skeleton)===!0?3:!1),Te=n=>e.provide(tt,ot(n)),ro=ot(),R=n=>e.inject(tt,ro)(n),nt=Symbol(),I=Symbol("FORM_INJECTED_SYMBOL"),je=(n,o,t,l)=>e.computed(()=>{const r=o.value[t];return r!=null&&typeof r!="symbol"?r:r===I?(n==null?void 0:n.value[t])??l:l}),lt=n=>o=>({disabled:je(n,o,"disabled",!1),showError:je(n,o,"showError","touched")}),so=n=>e.provide(nt,lt(n&&e.toRef(n))),io=lt(),z=n=>e.inject(nt,io)(e.toRef(n)),Ie=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},co={},uo={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function po(n,o){return e.openBlock(),e.createElementBlock("svg",uo,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const mo=Ie(co,[["render",po]]),fo={},yo={class:"onyx-loading-dots"};function ho(n,o){return e.openBlock(),e.createElementBlock("div",yo,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const vo=Ie(fo,[["render",ho]]),F=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(mo,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(vo,{key:1})):e.createCommentVNode("",!0)}}),_o=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=c=>{var d;const u=(d=n.value)==null?void 0:d.getBoundingClientRect();if(!u)return;o.value=!0;const s={id:Date.now().toString(),left:`${c.x-u.left}px`,top:`${c.y-u.top}px`,animationEnded:!1};return t.set(s.id,s),s.id},r=c=>{const u=c.dataset.rippleid;u!=null&&(t.has(u)&&(t.get(u).animationEnded=!0),o.value||t.delete(u))},a=()=>{o.value=!1,t.forEach((c,u)=>{c.animationEnded&&t.delete(u)})},i=e.ref({});return e.onBeforeMount(()=>{var c;(c=window.matchMedia)!=null&&c.call(window,"pointer: none").matches?i.value={touchstart:l,touchend:a,touchcancel:a}:i.value={mousedown:l,mouseleave:a,mouseup:a}}),{isPointerDown:o,ripples:t,startRipple:l,hideRipples:a,hideRipple:r,events:i}},go=["data-rippleid"],ko=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=_o(t);return o({events:a}),(i,c)=>(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,s])=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":s.left,"--onyx-ripple-top":s.top}),"data-rippleid":u,onAnimationend:c[0]||(c[0]=d=>e.unref(r)(d.target))},null,44,go))),128))],512))}}),bo={},xo={"aria-hidden":"true",class:"onyx-skeleton"};function Bo(n,o){return e.openBlock(),e.createElementBlock("figure",xo)}const T=Ie(bo,[["render",Bo]]),Co=["disabled","type","aria-label","autofocus"],wo={class:"onyx-button__label onyx-truncation-ellipsis"},re=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:I},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}=B(o),{disabled:l}=z(o),r=R(o),a=e.ref(),i=e.computed(()=>{var c;return((c=a.value)==null?void 0:c.events)??{}});return(c,u)=>e.unref(r)?(e.openBlock(),e.createBlock(T,{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(i.value,!0)),[!e.unref(l)&&!o.loading?(e.openBlock(),e.createBlock(ko,{key:0,ref_key:"rippleRef",ref:a},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(w,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(F,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",wo,e.toDisplayString(o.label),1)],16,Co))}}),Vo=["button","submit","reset"],Eo=["primary","neutral","danger"],So=["default","outline","plain"],ie=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),No="(optional)",Mo="Cancel",$o="Apply",Oo="Back",To="Close",Io={head:{sortingAction:{asc:"Sort the table ascending by the {field} column.",desc:"Sort the table descending by the {field} column.",none:"Reset sorting."}}},Lo={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.'}}},Do={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"},Ao={selectAll:"Select all",currentSelection:"{n} selected"},Po={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},Ro={empty:"This table is empty."},zo={opensExternally:"Opens in a new tab."},Ho="Subpages of {label}",Fo={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"},Uo={neutral:"Toggle info tooltip",danger:"Toggle error tooltip",success:"Toggle success tooltip"},qo={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."}},Go={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},Ce={optional:No,cancel:Mo,apply:$o,back:Oo,close:To,dataGrid:Io,validations:Lo,select:Do,selections:Ao,stepper:Po,table:Ro,link:zo,navItemOptionsLabel:Ho,navigation:Fo,tooltip:Uo,colorScheme:qo,pagination:Go},at=Symbol(),rt=(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]:Ce),l=e.computed(()=>(r,a={})=>{let i=Ye(r,t.value)??Ye(r,Ce)??"";return i=Ko(i,a.n),Zo(i,a)});return{locale:o,t:l}},st=(n,o)=>{const t=rt(o);return n.provide(at,t),t},N=()=>e.inject(at,()=>rt(),!0),Ye=(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},Ko=(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]},Zo=(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,jo=(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])},Yo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),it=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Jo=n=>it().reduce((o,t)=>(o[t]=n[t],o),{}),Wo=n=>{if(n.valueMissing)return"valueMissing";const o=it().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},Xo=Object.keys(Ce.validations.typeMismatch),q=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n,hidden:!1}:n},ct=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}`},Z=n=>{const{t:o}=N(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:i=>{e.watchEffect(()=>i.setCustomValidity(ct(n.props.customError)??"")),e.watch([()=>n.props],()=>{const c=Jo(i.validity);!t.value&&c.valid||t.value&&jo(c,t.value)||(t.value=c)},{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 s,d,p;if(!t.value||t.value.valid)return;const i=Wo(t.value),c=q(n.props.customError);if(c||i==="customError")return c||void 0;if(!i)return;if(i==="typeMismatch"){const m=Xo.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${m}.fullError`,{value:(s=n.props.modelValue)==null?void 0:s.toString()}),shortMessage:o.value(`validations.typeMismatch.${m}.preview`)}}const u={value:(d=n.props.modelValue)==null?void 0:d.toString(),n:((p=n.props.modelValue)==null?void 0:p.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.${i}.fullError`,u),shortMessage:o.value(`validations.${i}.preview`)}});return{vCustomValidity:r,errorMessages:a}},G=n=>n;function we(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const Qo=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),en=(n,o)=>typeof o=="string"?n.key===o:Qo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),Ve=n=>!on.has(n),tn=["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"],on=new Set(tn),j=e.reactive(new Map),nn=(n,o)=>{if(o!=null&&o.size){j.set(n,o);return}j.delete(n),document.removeEventListener(n,ut)},Je=(n,o)=>{const t=j.get(n);t==null||t.delete(o),nn(n,t)},ln=(n,o)=>{const t=j.get(n)??new Set;t.add(o),j.set(n,t),document.addEventListener(n,ut)},ut=n=>{var t;const o=n.type;(t=j.get(o))==null||t.forEach(l=>l(n))},ce=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Je(n,o):ln(n,o))),e.onBeforeUnmount(()=>Je(n,o))},dt=({inside:n,onOutsideClick:o,disabled:t})=>{ce({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})},pt=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},mt=(n,o=500)=>{let t="";const l=pt(()=>t="",o);return r=>{Ve(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},an=G(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=s=>(l.has(s)||l.set(s,e.useId()),l.get(s)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const s=r(n.activeOption.value);await e.nextTick(()=>{var d;(d=document.getElementById(s))==null||d.scrollIntoView({block:"end",inline:"nearest"})})});const i=mt(s=>{var d;return(d=n.onTypeAhead)==null?void 0:d.call(n,s)}),c=s=>{var d,p,m,y,f,h,_;switch(s.key){case" ":s.preventDefault(),n.activeOption.value!=null&&((d=n.onSelect)==null||d.call(n,n.activeOption.value));break;case"ArrowUp":if(s.preventDefault(),n.activeOption.value==null){(p=n.onActivateLast)==null||p.call(n);return}(m=n.onActivatePrevious)==null||m.call(n,n.activeOption.value);break;case"ArrowDown":if(s.preventDefault(),n.activeOption.value==null){(y=n.onActivateFirst)==null||y.call(n);return}(f=n.onActivateNext)==null||f.call(n,n.activeOption.value);break;case"Home":s.preventDefault(),(h=n.onActivateFirst)==null||h.call(n);break;case"End":s.preventDefault(),(_=n.onActivateLast)==null||_.call(n);break;default:i(s)}};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:c}),group:e.computed(()=>s=>({role:"group","aria-label":s.label})),option:e.computed(()=>s=>{const d=s.selected??!1;return{id:r(s.value),role:"option","aria-label":s.label,"aria-disabled":s.disabled,"aria-checked":o.value?d:void 0,"aria-selected":o.value?void 0:d,onClick:()=>{var p;return!s.disabled&&((p=n.onSelect)==null?void 0:p.call(n,s.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),ft=["ArrowDown","ArrowUp"," ","Enter","Home","End"],yt=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],We=["Enter"],rn=(n,o)=>{const t=o?[...We," "]:We;return Ee(n,t)},Ee=(n,o)=>o.some(t=>en(n,t)),sn=G(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:i,isExpanded:c,activeOption:u,onToggle:s,onSelect:d,onActivateFirst:p,onActivateLast:m,onActivateNext:y,onActivatePrevious:f,templateRef:h})=>{const _=e.useId(),g=e.computed(()=>e.unref(n)),k=e.computed(()=>e.unref(c)),S=e.computed(()=>e.unref(l)),V=b=>{const ye=b.target;g.value!=="none"&&(o==null||o(ye.value))},M=mt(b=>t==null?void 0:t(b)),U=b=>{d==null||d(b),e.unref(S)||s==null||s()},O=b=>{switch(b.key){case"ArrowUp":if(b.preventDefault(),u.value==null)return m==null?void 0:m();f==null||f(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(),m==null||m();break}},x=b=>{if(b.key==="Enter"&&b.preventDefault(),!k.value&&Ee(b,ft))return s==null||s(),b.key===" "&&b.preventDefault(),b.key==="End"?m==null?void 0:m():p==null?void 0:p();if(rn(b,g.value==="none"))return U(u.value);if(k.value&&Ee(b,yt))return s==null?void 0:s();if(g.value==="none"&&Ve(b.key))return!k.value&&(s==null||s()),M(b);if(g.value!=="none"&&Ve(b.key)){!k.value&&(s==null||s());return}return O(b)},E=e.computed(()=>g.value==="none"?null:{"aria-autocomplete":g.value,type:"text"}),{elements:{option:L,group:W,listbox:X},internals:{getOptionId:fe}}=an({label:a,description:i,multiple:S,controlled:!0,activeOption:u,isExpanded:k,onSelect:U});return dt({inside:h,onOutsideClick(){k.value&&(s==null||s(!0))}}),{elements:{option:L,group:W,listbox:e.computed(()=>({...X.value,id:_,onMousedown:b=>b.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":k.value,"aria-controls":_,"aria-label":e.unref(r),"aria-activedescendant":u.value!=null?fe(u.value):void 0,onInput:V,onKeydown:x,...E.value})),button:e.computed(()=>({tabindex:"-1",onClick:()=>s==null?void 0:s()}))}}}),cn=G(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=we(),a=e.useId();ce({type:"keydown",listener:s=>s.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const i=pt(s=>n.value!==s&&o(),200),c=s=>{const d=document.activeElement,p=(d==null?void 0:d.closest('[role="menu"]'))||r.value;if(!p)return;const m=[...p.querySelectorAll('[role="menuitem"]')];let y=0;if(d){const h=m.indexOf(d);switch(s){case"next":y=h+1;break;case"prev":y=h-1;break;case"first":y=0;break;case"last":y=m.length-1;break}}const f=m[y];f==null||f.focus()};return{elements:{root:{id:t,onKeydown:s=>{switch(s.key){case"ArrowDown":case"ArrowRight":s.preventDefault(),c("next");break;case"ArrowUp":case"ArrowLeft":s.preventDefault(),c("prev");break;case"Home":s.preventDefault(),c("first");break;case"End":s.preventDefault(),c("last");break;case" ":s.preventDefault(),s.target.click();break;case"Escape":s.preventDefault(),n.value&&o();break}},onMouseover:()=>i(!0),onMouseout:()=>i(!1),onFocusout:s=>{var d;t&&((d=document.getElementById(t))!=null&&d.contains(s.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()},...ht().elements}}}),ht=G(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),un={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},dn=G(({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 i=t(),c=i.indexOf(r);if(c===-1)return;const u=un.clamp(c+(a==="next"?1:-1),0,i.length-1);i[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}}}}}}),pn=G(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 m,y;const a=r.target,i=Array.from(((m=a.parentElement)==null?void 0:m.querySelectorAll('[role="tab"]'))??[]).filter(f=>f.ariaDisabled!=="true"),c=i.indexOf(a),u=f=>{f instanceof HTMLElement&&f.focus()},s=()=>u(i.at(0)),d=()=>u(i.at(-1)),p=f=>{if(c===-1)return;const h=f==="next"?c+1:c-1;return h<0?d():h>=i.length?s():u(i.at(h))};switch(r.key){case"ArrowRight":p("next");break;case"ArrowLeft":p("previous");break;case"Home":s();break;case"End":d();break;case"Enter":case" ":{const f=Array.from(o.entries()).find(([,{tabId:h}])=>h===a.id);f&&((y=n.onSelect)==null||y.call(n,f[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:i,panelId:c}=t(r.value),u=i===a;return{id:i,role:"tab","aria-selected":u,"aria-controls":c,"aria-disabled":r.disabled?!0:void 0,onClick:()=>{var s;return(s=n.onSelect)==null?void 0:s.call(n,r.value)},tabindex:u&&!r.disabled?0:-1}}),tabpanel:e.computed(()=>r=>{const{tabId:a,panelId:i}=t(r.value);return{id:i,role:"tabpanel","aria-labelledby":a}})}}}),vt=({isExpanded:n})=>ce({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),mn=G(({toggleLabel:n,isVisible:o})=>{const t=we(),l=we(),r=e.toRef(o??!1);dt({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),vt({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}}}),fn=G(({debounce:n,isVisible:o})=>{const t=e.useId(),l=e.toRef(o??!1);let r;const a=e.computed({get:()=>l.value,set:c=>{clearTimeout(r),r=setTimeout(()=>{l.value=c},e.toValue(n))}}),i={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return vt({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...i},tooltip:{role:"tooltip",id:t,tabindex:"-1",...i}},state:{isVisible:l}}}),_t=(n,o="bottom")=>{const t=e.ref(o);return{openDirection:t,updateOpenDirection:()=>{var p,m,y;const r=e.unref(n);if(!r){t.value=o;return}const a=(p=Le(r))==null?void 0:p.getBoundingClientRect(),i=r.getBoundingClientRect(),c=(a==null?void 0:a.top)??((m=window.visualViewport)==null?void 0:m.pageTop)??0,s=((a==null?void 0:a.bottom)??((y=window.visualViewport)==null?void 0:y.height)??0)-i.bottom,d=i.top-c;t.value=d>s?"top":"bottom"}}},Le=n=>n?getComputedStyle(n).overflow.includes("hidden")?n:n.parentElement?Le(n.parentElement):void 0:void 0,yn=(n,o)=>{const l=e.ref("center");return{wedgePosition:l,updateWedgePosition:()=>{var g,k,S,V;const a=e.unref(n),i=e.unref(o);if(!a||!i){l.value="center";return}const c=(g=Le(a))==null?void 0:g.getBoundingClientRect(),u=a.getBoundingClientRect(),s=i.getBoundingClientRect();if(s.width<u.width){l.value="center";return}const d=(s.width-u.width+16*2)/2,p=(c==null?void 0:c.left)??((k=window.visualViewport)==null?void 0:k.pageLeft)??0,m=(c==null?void 0:c.right)??(((S=window.visualViewport)==null?void 0:S.width)??window.innerWidth)+(((V=window.visualViewport)==null?void 0:V.offsetLeft)??0),y=u.left-p,f=m-u.right,h=y>=d,_=f>=d;l.value=h===_?"center":y>f?"right":"left"}}},Q=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}=B(o),{t:l}=N(),r=e.ref(!1),a=e.computed({set:M=>r.value=M,get:()=>typeof o.open=="boolean"?o.open:r.value}),i=e.computed(()=>({debounce:200,...typeof o.open=="object"&&o.open.type==="hover"&&o.open||{},isVisible:a})),c=e.computed(()=>({toggleLabel:l.value(`tooltip.${o.color}`),...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"),s=e.computed(()=>({"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--success":o.color==="success","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--${k.value}`]:o.alignment==="auto",[`onyx-tooltip--${o.alignment}`]:o.alignment!=="auto"})),d=()=>u.value==="hover"?fn(i.value):mn(c.value),p=e.shallowRef(d());e.watch(u,()=>p.value=d());const m=e.computed(()=>{var M;return(M=p.value)==null?void 0:M.elements.tooltip}),y=e.computed(()=>{var M;return e.toValue((M=p.value)==null?void 0:M.elements.trigger)}),f=e.ref(),h=e.ref(),{openDirection:_,updateOpenDirection:g}=_t(f,"top"),{wedgePosition:k,updateWedgePosition:S}=yn(f,h),V=()=>{g(),S()};return ce({type:"resize",listener:()=>V()}),e.onMounted(()=>V()),e.watch(a,async()=>{await e.nextTick(),g(),S()}),(M,U)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapperRef",ref:f,class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps({ref_key:"tooltipRef",ref:h},m.value,{class:["onyx-tooltip","onyx-text--small","onyx-truncation-multiline",s.value]}),[o.icon?(e.openBlock(),e.createBlock(w,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(M.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],16),e.renderSlot(M.$slots,"default",{trigger:y.value})],2))}}),De=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>ct(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(Q,{key:1,class:"onyx-error-tooltip",open:"hover",text:t.value,color:"danger"},{default:e.withCtx(({trigger:i})=>[e.createElementVNode("div",e.mergeProps({ref_key:"targetRef",ref:l},i),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)]))}}),hn=["title"],vn={class:"onyx-checkbox__container"},_n=["aria-label","indeterminate","disabled","required","value","autofocus"],ae=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:I},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),{requiredMarkerClass:a,requiredTypeClass:i}=ie(t),{densityClass:c}=B(t),{vCustomValidity:u,errorMessages:s}=Z({props:t,emit:l}),{disabled:d}=z(t),p=R(t),m=e.computed(()=>t.hideLabel?t.label:void 0);return(y,f)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(T,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(d),"error-messages":e.unref(s)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(i),e.unref(c)]]),title:m.value},[e.createElementVNode("div",vn,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":f[0]||(f[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,_n)),[[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,hn)]),_:1},8,["disabled","error-messages"]))}}),gn=(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}}),gt=(n,o,t)=>({state:gn(n,o),handleChange:l=>{const r=o.value.filter(i=>!n.value.includes(i)),a=l?r.concat(n.value):r;t(a)}}),Y=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"]))}}),kn=["disabled","aria-label"],bn={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:I},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=B(t),r=o,{t:a}=N(),i=(m,y)=>{const f=y?[...t.modelValue,m]:t.modelValue.filter(h=>h!==m);r("update:modelValue",f)},c=e.computed(()=>t.options.filter(m=>!m.disabled&&!m.skeleton).map(({value:m})=>m)),{disabled:u}=z(t),s=R(t),d=gt(c,e.computed(()=>t.modelValue),m=>r("update:modelValue",m)),p=e.computed(()=>{var y;const m=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?m:((y=t.withCheckAll)==null?void 0:y.label)??m});return(m,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",bn,[e.createVNode(Y,{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(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(ae,{key:f,label:`Skeleton ${f}`,value:`skeleton-${f}`,skeleton:""},null,8,["label","value"]))),128)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(ae,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,f=>(e.openBlock(),e.createBlock(ae,e.mergeProps({key:f.value.toString(),ref_for:!0},f,{truncation:f.truncation??t.truncation,"model-value":t.modelValue.includes(f.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>i(f.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64))],2)],10,kn))}}),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>',kt='<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>',Cn={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Ae=e.defineComponent({__name:"OnyxEmpty",props:{density:{}},setup(n){const o=n,{densityClass:t}=B(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-empty",e.unref(t)])},[e.renderSlot(l.$slots,"icon",{},()=>[e.createVNode(w,{icon:e.unref(kt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Cn,[e.renderSlot(l.$slots,"default")])],2))}}),wn={class:"onyx-table-wrapper"},Vn=["tabindex"],En=["span"],Sn={key:0,class:"onyx-table__header"},Nn={key:0},Mn=["colspan"],$n={class:"onyx-table__empty"},On={colspan:"100%"},Tn={class:"onyx-table__empty-content"},bt=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}=N(),{densityClass:r}=B(o),a=e.computed(()=>l.value("table.empty"));return(i,c)=>{var u;return e.openBlock(),e.createElementBlock("div",wn,[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,s=>(e.openBlock(),e.createElementBlock("colgroup",{key:s.key,span:s.span},null,8,En))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",Sn,[(u=o.columnGroups)!=null&&u.length?(e.openBlock(),e.createElementBlock("tr",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,s=>(e.openBlock(),e.createElementBlock("th",{key:s.key,colspan:s.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(s.header),9,Mn))),128))])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(i.$slots,"default",{},()=>[e.createElementVNode("tr",$n,[e.createElementVNode("td",On,[e.createElementVNode("div",Tn,[e.renderSlot(i.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Ae,null,{icon:e.withCtx(()=>[e.createVNode(w,{icon:e.unref(Bn),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,Vn)])}}}),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(bt,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))}}),In={class:"onyx-data-grid-header-cell"},Ln={class:"onyx-data-grid-header-cell__label"},Dn={key:0,class:"onyx-data-grid-header-cell__actions"},An=e.defineComponent({__name:"HeaderCell",props:{label:{}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",In,[e.createElementVNode("span",Ln,e.toDisplayString(o.label),1),t.actions?(e.openBlock(),e.createElementBlock("div",Dn,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0)]))}});const Pn=n=>{const o=r=>{const i=n.map(c=>c.header).filter(c=>!!c).map(c=>c.actions).filter(c=>!!c);return r.map(c=>{const u=i.flatMap(s=>s(c)).map(({iconComponent:s})=>s);return{key:c,component:()=>e.h(An,{label:String(c)},{actions:u}),props:{}}})},t=(r,a)=>{const i=n.map(u=>u.mutation).filter(u=>!!u),c=[...r];return i.forEach(({func:u})=>u(c)),c.map(u=>{const s=a.reduce((d,p)=>(d[p]={component:()=>u[p],props:{row:u}},d),{});return{id:u.id,cells:s}})},l=n.flatMap(r=>r.watch);return{createRendererRows:t,createRendererColumns:o,watchSources:l}},Rn=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:i}=e.toRefs(o),c=e.computed(()=>Pn(i.value));let u;const s=()=>{const{createRendererColumns:d,createRendererRows:p,watchSources:m}=c.value;return e.watch([r,a,...m],()=>{t.value=d(r.value),l.value=p(a.value,r.value)},{immediate:!0,deep:!0})};return e.watch(c,()=>{u==null||u(),u=s()},{immediate:!0}),(d,p)=>(e.openBlock(),e.createBlock(xt,{columns:t.value,rows:l.value},null,8,["columns","rows"]))}}),zn='<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>',Hn='<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>',Fn='<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>',Un=e.defineComponent({__name:"SortAction",props:{columnLabel:{},sortDirection:{}},setup(n){const o=n,{t}=N(),l=e.computed(()=>o.sortDirection==="asc"?Hn:o.sortDirection==="desc"?zn:Fn),r=e.computed(()=>{const a=Se(o.sortDirection);return t.value(`dataGrid.head.sortingAction.${a}`,{field:o.columnLabel})});return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Pe),{color:"neutral",icon:l.value,label:r.value},null,8,["icon","label"]))}}),Se=n=>{switch(n){case"asc":return"desc";case"desc":return"none";case"none":default:return"asc"}},qn=Symbol("Sorting"),Gn=n=>{const o=e.toRef((n==null?void 0:n.sortState)??{column:void 0,direction:"none"}),t=e.computed(()=>u=>{var d;const s=e.toValue(n==null?void 0:n.columns);return((d=s==null?void 0:s[u])==null?void 0:d.sortFunc)??a.value}),l=e.computed(()=>u=>{var d;const s=e.toValue(n==null?void 0:n.columns);return!s||((d=s==null?void 0:s[u])==null?void 0:d.enabled)===!0}),{locale:r}=N(),a=e.computed(()=>(u,s)=>new Intl.Collator(r.value).compare(String(u),String(s))),i=u=>{const s=o.value.column===u?Se(o.value.direction):Se(),d=s!=="none"?u:void 0;o.value={direction:s,column:d}};return{name:qn,watch:[o,a],mutation:{func:u=>{const{column:s,direction:d}=o.value;if(!s||d==="none")return;const p=d==="asc"?1:-1,m=t.value(s);u.sort((y,f)=>m(y[s],f[s])*p)}},header:{actions:u=>l.value(u)===!0?[{iconComponent:e.h(Un,{columnLabel:String(u),sortDirection:o.value.column===u?o.value.direction:void 0,onClick:()=>i(u)})}]:[]}}},Kn=Object.freeze(Object.defineProperty({__proto__:null,useSorting:Gn},Symbol.toStringTag,{value:"Module"})),Zn=["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}=B(t),i=()=>{var c,u;t.modal?(c=r.value)==null||c.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var c;t.open?i():(c=r.value)==null||c.close()}),e.watch(()=>t.modal,()=>{var c;(c=r.value)!=null&&c.open&&(r.value.close(),i())}),(c,u)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:u[0]||(u[0]=e.withModifiers(s=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,Zn)):e.createCommentVNode("",!0)}}),jn='<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>',Yn=n=>/^http(s?):\/\//.test(n),ue=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:Yn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-external-link-icon",icon:e.unref(jn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),Jn=["h1","h2","h3","h4","h5","h6"],Wn=["12px","16px","24px","32px","48px","64px","96px"],Xn=["aria-label","title","type","disabled","autofocus"],Pe=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:I},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=B(o),{disabled:l}=z(o),r=R(o);return(a,i)=>e.unref(r)?(e.openBlock(),e.createBlock(T,{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(F,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(w,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Xn))}}),Ne='<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}))}}),Qn={class:"onyx-info-tooltip"},Re=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",Qn,[t.value==="click"?(e.openBlock(),e.createBlock(Q,{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(w,{icon:e.unref(Ne)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Q,{"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(w,{icon:e.unref(Ne)},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))]))}}),de=n=>e.computed(()=>n.value===!0?"onyx-form-element--immediate-invalid":n.value===!1?"onyx-form-element--suppress-invalid":"onyx-form-element--touched-invalid"),el={class:e.normalizeClass(["onyx-truncation-ellipsis"])},ge=e.defineComponent({__name:"FormMessage",props:{messages:{},type:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.messages.hidden?J:"span"),{class:e.normalizeClass(["onyx-form-message",`onyx-form-message__${o.type}`])},{default:e.withCtx(()=>[e.createElementVNode("span",el,e.toDisplayString(o.messages.shortMessage),1),o.messages.longMessage?(e.openBlock(),e.createBlock(Re,{key:0,class:"onyx-form-message__tooltip",position:"bottom",open:"hover",color:o.type,text:o.messages.longMessage},null,8,["color","text"])):e.createCommentVNode("",!0)]),_:1},8,["class"]))}}),tl={key:0,class:"onyx-form-element__label onyx-text--small"},ol=["for"],nl={class:"onyx-form-element__footer onyx-text--small"},ll={class:"onyx-form-element__footer-messages"},al={key:0,class:"onyx-form-element__counter"},pe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()},name:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},maxlength:{},withCounter:{type:Boolean},errorMessages:{},message:{},successMessages:{}},setup(n){const o=n,{requiredMarkerClass:t,requiredTypeClass:l}=ie(o),r=e.computed(()=>{var a;if(o.withCounter&&o.maxlength)return`${(((a=o.modelValue)==null?void 0:a.toString())||"").length}/${o.maxlength}`});return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(l),a.successMessages?"onyx-form-element--success":void 0])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,ol),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(t):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(Re,{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(t)])},null,2))])),e.renderSlot(a.$slots,"default",{id:o.id}),e.createElementVNode("div",nl,[e.createElementVNode("span",ll,[o.errorMessages?(e.openBlock(),e.createBlock(ge,{key:0,class:"onyx-form-element__error-message",messages:o.errorMessages,type:"danger"},null,8,["messages"])):e.createCommentVNode("",!0),o.successMessages?(e.openBlock(),e.createBlock(ge,{key:1,class:"onyx-form-element__success-message",messages:o.successMessages,type:"success"},null,8,["messages"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createBlock(ge,{key:2,class:"onyx-form-element__message",messages:o.message,type:"neutral"},null,8,["messages"])):e.createCommentVNode("",!0)]),r.value?(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)])],2))}}),rl={class:"onyx-input__wrapper"},sl=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],il=e.defineComponent({__name:"OnyxInput",props:{disabled:{default:I},showError:{default:I},density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},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}=Z({props:t,emit:l}),i=e.computed(()=>q(t.success)),c=e.computed(()=>q(t.message)),{densityClass:u}=B(t),s=e.computed({get:()=>t.modelValue,set:h=>l("update:modelValue",h)}),d=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:p,showError:m}=z(t),y=R(t),f=de(m);return(h,_)=>e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(u)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(T,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(u),e.unref(f)])},[e.createVNode(pe,e.mergeProps(t,{"error-messages":e.unref(a),"success-messages":i.value,message:c.value}),{default:e.withCtx(({id:g})=>[e.createElementVNode("div",rl,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:g,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),placeholder:t.placeholder,class:e.normalizeClass(["onyx-input__native",{"onyx-input__native--success":i.value}]),type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:d.value,readonly:t.readonly,disabled:e.unref(p)||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0},null,10,sl),[[e.vModelDynamic,s.value],[e.unref(r)]])])]),_:1},16,["error-messages","success-messages","message"])],2))}}),cl=["email","password","search","tel","text","url"],ul=["none","sentences","words","characters"],dl=["href","target","rel"],pl=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=N();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(ue,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,dl))}}),ml=["_self","_blank","_parent","_top"],me=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}=B(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))}}),fl='<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>',ze='<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>',Ct=()=>{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}},yl=["placeholder","aria-label"],hl=["aria-label"],wt=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:i}=Ct(),{densityClass:c}=B(l),{t:u}=N(),s=e.ref(),d=e.computed({get:()=>l.modelValue,set:m=>r("update:modelValue",m??"")}),p=e.computed(()=>u.value("select.searchPlaceholder"));return o({focus:()=>{var m;return(m=s.value)==null?void 0:m.focus()}}),(m,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(c)]},e.unref(a),{style:{"--onyx-placeholder-character-count":p.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:s,"onUpdate:modelValue":y[0]||(y[0]=f=>d.value=f),class:"onyx-mini-search__input onyx-text",placeholder:p.value,type:"text",size:"1"},e.unref(i),{"aria-label":l.label}),null,16,yl),[[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]=f=>r("clear"))},[e.createVNode(w,{icon:e.unref(ze)},null,8,["icon"])],40,hl),e.createVNode(w,{class:"onyx-mini-search__icon",icon:e.unref(fl)},null,8,["icon"])],16))}}),vl='<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>',_l={class:"onyx-mobile-nav-button"},gl=["aria-label"],kl={class:"onyx-mobile-nav-button__flyout"},bl={class:"onyx-mobile-nav-button__menu"},Me=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",_l,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=i=>l("update:open",!t.open))},[e.createVNode(w,{icon:t.open?e.unref(vl):t.icon},null,8,["icon"])],10,gl),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",kl,[e.createElementVNode("div",bl,[t.headline?(e.openBlock(),e.createBlock(Y,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=i=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),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,i;(a=l.value)==null||a.disconnect();const r=ke(n.parentRef.value);if(!r||(i=n.disabled)!=null&&i.value){o.value=[];return}l.value=new IntersectionObserver(c=>{const u=[],s=[];c.forEach(d=>{var y;const p=(y=Array.from(n.componentRefs).find(([f,h])=>ke(e.unref(h))===d.target))==null?void 0:y[0];if(!p)return;d.intersectionRatio===1?u.push(p):s.push(p)}),o.value.length===0?o.value=u:o.value=o.value.filter(d=>!s.includes(d)).concat(u)},{root:r,threshold:1}),n.componentRefs.forEach(c=>{var s;const u=ke(e.unref(c));u&&((s=l.value)==null||s.observe(u))})},{immediate:!0}),{visibleElements:o,hiddenElements:t}},ke=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 i;return(i=l==null?void 0:l.components)==null?void 0:i.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}},Cl=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),i=e.toRef(t,"disabled"),c=xl({parentRef:r,componentRefs:a,disabled:i});return e.provide(t.injectionKey,{components:a,visibleElements:c.visibleElements,disabled:i}),e.watch([c.visibleElements,c.hiddenElements],([u,s])=>{l("visibilityChange",{visibleElements:u.length,hiddenElements:s.length})}),(u,s)=>(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(c).hiddenElements.value.length>0?e.renderSlot(u.$slots,"more",{key:0,hiddenElements:e.unref(c).hiddenElements.value.length,visibleElements:e.unref(c).visibleElements.value.length}):e.createCommentVNode("",!0)]),_:3},512))}}),wl=["aria-label"],Vl=["src","alt"],El={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},Vt=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=N(),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,Vl)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",El,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,wl))}}),Sl=`<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"),Qe={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},jt={key:0,class:"onyx-app__nav"},Yt={class:"onyx-app__page"},Jt={key:1,class:"onyx-app__page-overlay"},Wt={key:2,class:"onyx-app__app-overlay"},Xt=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",jt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",Yt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Jt,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Wt,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Qt=["title"],eo=["src","alt"],to={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]=i=>r.value=!0)},null,40,eo)):(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Qt))}}),oo={class:"onyx-avatar-stack"},no=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(o.$slots,"default")]))}}),lo=["compact","default","cozy"],B=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:!!n.density}))}),ao=["innerHTML"],w=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,ao))}}),et=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=B(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(w,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),tt=Symbol(),A=Symbol("SKELETON_INJECTED_SYMBOL"),ot=n=>o=>e.computed(()=>typeof o.skeleton!="symbol"?o.skeleton:o.skeleton===A&&(n==null?void 0:n.skeleton)===!0?3:!1),Te=n=>e.provide(tt,ot(n)),ro=ot(),R=n=>e.inject(tt,ro)(n),nt=Symbol(),I=Symbol("FORM_INJECTED_SYMBOL"),je=(n,o,t,l)=>e.computed(()=>{const r=o.value[t];return r!=null&&typeof r!="symbol"?r:r===I?(n==null?void 0:n.value[t])??l:l}),lt=n=>o=>({disabled:je(n,o,"disabled",!1),showError:je(n,o,"showError","touched")}),so=n=>e.provide(nt,lt(n&&e.toRef(n))),io=lt(),z=n=>e.inject(nt,io)(e.toRef(n)),Ie=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},co={},uo={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function po(n,o){return e.openBlock(),e.createElementBlock("svg",uo,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const mo=Ie(co,[["render",po]]),fo={},yo={class:"onyx-loading-dots"};function ho(n,o){return e.openBlock(),e.createElementBlock("div",yo,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const vo=Ie(fo,[["render",ho]]),F=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(mo,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(vo,{key:1})):e.createCommentVNode("",!0)}}),_o=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=i=>{var d;const u=(d=n.value)==null?void 0:d.getBoundingClientRect();if(!u)return;o.value=!0;const s={id:Date.now().toString(),left:`${i.x-u.left}px`,top:`${i.y-u.top}px`,animationEnded:!1};return t.set(s.id,s),s.id},r=i=>{const u=i.dataset.rippleid;u!=null&&(t.has(u)&&(t.get(u).animationEnded=!0),o.value||t.delete(u))},a=()=>{o.value=!1,t.forEach((i,u)=>{i.animationEnded&&t.delete(u)})},c=e.ref({});return e.onBeforeMount(()=>{var i;(i=window.matchMedia)!=null&&i.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}},go=["data-rippleid"],ko=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=_o(t);return o({events:a}),(c,i)=>(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,s])=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":s.left,"--onyx-ripple-top":s.top}),"data-rippleid":u,onAnimationend:i[0]||(i[0]=d=>e.unref(r)(d.target))},null,44,go))),128))],512))}}),bo={},xo={"aria-hidden":"true",class:"onyx-skeleton"};function Bo(n,o){return e.openBlock(),e.createElementBlock("figure",xo)}const T=Ie(bo,[["render",Bo]]),Co=["disabled","type","aria-label","autofocus"],wo={class:"onyx-button__label onyx-truncation-ellipsis"},re=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:I},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}=B(o),{disabled:l}=z(o),r=R(o),a=e.ref(),c=e.computed(()=>{var i;return((i=a.value)==null?void 0:i.events)??{}});return(i,u)=>e.unref(r)?(e.openBlock(),e.createBlock(T,{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(ko,{key:0,ref_key:"rippleRef",ref:a},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(w,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(F,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",wo,e.toDisplayString(o.label),1)],16,Co))}}),Vo=["button","submit","reset"],Eo=["primary","neutral","danger"],So=["default","outline","plain"],ie=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),No="(optional)",Mo="Cancel",$o="Apply",Oo="Back",To="Close",Io={head:{sortingAction:{asc:"Sort the table ascending by the {field} column.",desc:"Sort the table descending by the {field} column.",none:"Reset sorting."}}},Lo={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.'}}},Do={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"},Ao={selectAll:"Select all",currentSelection:"{n} selected"},Po={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},Ro={empty:"This table is empty."},zo={opensExternally:"Opens in a new tab."},Ho="Subpages of {label}",Fo={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"},Uo={neutral:"Toggle info tooltip",danger:"Toggle error tooltip",success:"Toggle success tooltip"},qo={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."}},Go={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},Ce={optional:No,cancel:Mo,apply:$o,back:Oo,close:To,dataGrid:Io,validations:Lo,select:Do,selections:Ao,stepper:Po,table:Ro,link:zo,navItemOptionsLabel:Ho,navigation:Fo,tooltip:Uo,colorScheme:qo,pagination:Go},at=Symbol(),rt=(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]:Ce),l=e.computed(()=>(r,a={})=>{let c=Ye(r,t.value)??Ye(r,Ce)??"";return c=Ko(c,a.n),Zo(c,a)});return{locale:o,t:l}},st=(n,o)=>{const t=rt(o);return n.provide(at,t),t},N=()=>e.inject(at,()=>rt(),!0),Ye=(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},Ko=(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]},Zo=(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,jo=(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])},Yo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),it=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Jo=n=>it().reduce((o,t)=>(o[t]=n[t],o),{}),Wo=n=>{if(n.valueMissing)return"valueMissing";const o=it().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},Xo=Object.keys(Ce.validations.typeMismatch),q=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n,hidden:!1}:n},ct=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}`},Z=n=>{const{t:o}=N(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:c=>{e.watchEffect(()=>c.setCustomValidity(ct(n.props.customError)??"")),e.watch([()=>n.props],()=>{const i=Jo(c.validity);!t.value&&i.valid||t.value&&jo(i,t.value)||(t.value=i)},{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 s,d,p;if(!t.value||t.value.valid)return;const c=Wo(t.value),i=q(n.props.customError);if(i||c==="customError")return i||void 0;if(!c)return;if(c==="typeMismatch"){const m=Xo.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${m}.fullError`,{value:(s=n.props.modelValue)==null?void 0:s.toString()}),shortMessage:o.value(`validations.typeMismatch.${m}.preview`)}}const u={value:(d=n.props.modelValue)==null?void 0:d.toString(),n:((p=n.props.modelValue)==null?void 0:p.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.${c}.fullError`,u),shortMessage:o.value(`validations.${c}.preview`)}});return{vCustomValidity:r,errorMessages:a}},G=n=>n;function we(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const Qo=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),en=(n,o)=>typeof o=="string"?n.key===o:Qo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),Ve=n=>!on.has(n),tn=["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"],on=new Set(tn),j=e.reactive(new Map),nn=(n,o)=>{if(o!=null&&o.size){j.set(n,o);return}j.delete(n),document.removeEventListener(n,ut)},Je=(n,o)=>{const t=j.get(n);t==null||t.delete(o),nn(n,t)},ln=(n,o)=>{const t=j.get(n)??new Set;t.add(o),j.set(n,t),document.addEventListener(n,ut)},ut=n=>{var t;const o=n.type;(t=j.get(o))==null||t.forEach(l=>l(n))},ce=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Je(n,o):ln(n,o))),e.onBeforeUnmount(()=>Je(n,o))},dt=({inside:n,onOutsideClick:o,disabled:t})=>{ce({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})},pt=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},mt=(n,o=500)=>{let t="";const l=pt(()=>t="",o);return r=>{Ve(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},an=G(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=s=>(l.has(s)||l.set(s,e.useId()),l.get(s)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const s=r(n.activeOption.value);await e.nextTick(()=>{var d;(d=document.getElementById(s))==null||d.scrollIntoView({block:"end",inline:"nearest"})})});const c=mt(s=>{var d;return(d=n.onTypeAhead)==null?void 0:d.call(n,s)}),i=s=>{var d,p,m,y,f,h,_;switch(s.key){case" ":s.preventDefault(),n.activeOption.value!=null&&((d=n.onSelect)==null||d.call(n,n.activeOption.value));break;case"ArrowUp":if(s.preventDefault(),n.activeOption.value==null){(p=n.onActivateLast)==null||p.call(n);return}(m=n.onActivatePrevious)==null||m.call(n,n.activeOption.value);break;case"ArrowDown":if(s.preventDefault(),n.activeOption.value==null){(y=n.onActivateFirst)==null||y.call(n);return}(f=n.onActivateNext)==null||f.call(n,n.activeOption.value);break;case"Home":s.preventDefault(),(h=n.onActivateFirst)==null||h.call(n);break;case"End":s.preventDefault(),(_=n.onActivateLast)==null||_.call(n);break;default:c(s)}};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:i}),group:e.computed(()=>s=>({role:"group","aria-label":s.label})),option:e.computed(()=>s=>{const d=s.selected??!1;return{id:r(s.value),role:"option","aria-label":s.label,"aria-disabled":s.disabled,"aria-checked":o.value?d:void 0,"aria-selected":o.value?void 0:d,onClick:()=>{var p;return!s.disabled&&((p=n.onSelect)==null?void 0:p.call(n,s.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),ft=["ArrowDown","ArrowUp"," ","Enter","Home","End"],yt=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],We=["Enter"],rn=(n,o)=>{const t=o?[...We," "]:We;return Ee(n,t)},Ee=(n,o)=>o.some(t=>en(n,t)),sn=G(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:c,isExpanded:i,activeOption:u,onToggle:s,onSelect:d,onActivateFirst:p,onActivateLast:m,onActivateNext:y,onActivatePrevious:f,templateRef:h})=>{const _=e.useId(),g=e.computed(()=>e.unref(n)),k=e.computed(()=>e.unref(i)),S=e.computed(()=>e.unref(l)),V=b=>{const ye=b.target;g.value!=="none"&&(o==null||o(ye.value))},M=mt(b=>t==null?void 0:t(b)),U=b=>{d==null||d(b),e.unref(S)||s==null||s()},O=b=>{switch(b.key){case"ArrowUp":if(b.preventDefault(),u.value==null)return m==null?void 0:m();f==null||f(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(),m==null||m();break}},x=b=>{if(b.key==="Enter"&&b.preventDefault(),!k.value&&Ee(b,ft))return s==null||s(),b.key===" "&&b.preventDefault(),b.key==="End"?m==null?void 0:m():p==null?void 0:p();if(rn(b,g.value==="none"))return U(u.value);if(k.value&&Ee(b,yt))return s==null?void 0:s();if(g.value==="none"&&Ve(b.key))return!k.value&&(s==null||s()),M(b);if(g.value!=="none"&&Ve(b.key)){!k.value&&(s==null||s());return}return O(b)},E=e.computed(()=>g.value==="none"?null:{"aria-autocomplete":g.value,type:"text"}),{elements:{option:L,group:W,listbox:X},internals:{getOptionId:fe}}=an({label:a,description:c,multiple:S,controlled:!0,activeOption:u,isExpanded:k,onSelect:U});return dt({inside:h,onOutsideClick(){k.value&&(s==null||s(!0))}}),{elements:{option:L,group:W,listbox:e.computed(()=>({...X.value,id:_,onMousedown:b=>b.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":k.value,"aria-controls":_,"aria-label":e.unref(r),"aria-activedescendant":u.value!=null?fe(u.value):void 0,onInput:V,onKeydown:x,...E.value})),button:e.computed(()=>({tabindex:"-1",onClick:()=>s==null?void 0:s()}))}}}),cn=G(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=we(),a=e.useId();ce({type:"keydown",listener:s=>s.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const c=pt(s=>n.value!==s&&o(),200),i=s=>{const d=document.activeElement,p=(d==null?void 0:d.closest('[role="menu"]'))||r.value;if(!p)return;const m=[...p.querySelectorAll('[role="menuitem"]')];let y=0;if(d){const h=m.indexOf(d);switch(s){case"next":y=h+1;break;case"prev":y=h-1;break;case"first":y=0;break;case"last":y=m.length-1;break}}const f=m[y];f==null||f.focus()};return{elements:{root:{id:t,onKeydown:s=>{switch(s.key){case"ArrowDown":case"ArrowRight":s.preventDefault(),i("next");break;case"ArrowUp":case"ArrowLeft":s.preventDefault(),i("prev");break;case"Home":s.preventDefault(),i("first");break;case"End":s.preventDefault(),i("last");break;case" ":s.preventDefault(),s.target.click();break;case"Escape":s.preventDefault(),n.value&&o();break}},onMouseover:()=>c(!0),onMouseout:()=>c(!1),onFocusout:s=>{var d;t&&((d=document.getElementById(t))!=null&&d.contains(s.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()},...ht().elements}}}),ht=G(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),un={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},dn=G(({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(),i=c.indexOf(r);if(i===-1)return;const u=un.clamp(i+(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}}}}}}),pn=G(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 m,y;const a=r.target,c=Array.from(((m=a.parentElement)==null?void 0:m.querySelectorAll('[role="tab"]'))??[]).filter(f=>f.ariaDisabled!=="true"),i=c.indexOf(a),u=f=>{f instanceof HTMLElement&&f.focus()},s=()=>u(c.at(0)),d=()=>u(c.at(-1)),p=f=>{if(i===-1)return;const h=f==="next"?i+1:i-1;return h<0?d():h>=c.length?s():u(c.at(h))};switch(r.key){case"ArrowRight":p("next");break;case"ArrowLeft":p("previous");break;case"Home":s();break;case"End":d();break;case"Enter":case" ":{const f=Array.from(o.entries()).find(([,{tabId:h}])=>h===a.id);f&&((y=n.onSelect)==null||y.call(n,f[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:i}=t(r.value),u=c===a;return{id:c,role:"tab","aria-selected":u,"aria-controls":i,"aria-disabled":r.disabled?!0:void 0,onClick:()=>{var s;return(s=n.onSelect)==null?void 0:s.call(n,r.value)},tabindex:u&&!r.disabled?0:-1}}),tabpanel:e.computed(()=>r=>{const{tabId:a,panelId:c}=t(r.value);return{id:c,role:"tabpanel","aria-labelledby":a}})}}}),vt=({isExpanded:n})=>ce({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),mn=G(({toggleLabel:n,isVisible:o})=>{const t=we(),l=we(),r=e.toRef(o??!1);dt({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),vt({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}}}),fn=G(({debounce:n,isVisible:o})=>{const t=e.useId(),l=e.toRef(o??!1);let r;const a=e.computed({get:()=>l.value,set:i=>{clearTimeout(r),r=setTimeout(()=>{l.value=i},e.toValue(n))}}),c={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return vt({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...c},tooltip:{role:"tooltip",id:t,tabindex:"-1",...c}},state:{isVisible:l}}}),_t=(n,o="bottom")=>{const t=e.ref(o);return{openDirection:t,updateOpenDirection:()=>{var p,m,y;const r=e.unref(n);if(!r){t.value=o;return}const a=(p=Le(r))==null?void 0:p.getBoundingClientRect(),c=r.getBoundingClientRect(),i=(a==null?void 0:a.top)??((m=window.visualViewport)==null?void 0:m.pageTop)??0,s=((a==null?void 0:a.bottom)??((y=window.visualViewport)==null?void 0:y.height)??0)-c.bottom,d=c.top-i;t.value=d>s?"top":"bottom"}}},Le=n=>n?getComputedStyle(n).overflow.includes("hidden")?n:n.parentElement?Le(n.parentElement):void 0:void 0,yn=(n,o)=>{const l=e.ref("center");return{wedgePosition:l,updateWedgePosition:()=>{var g,k,S,V;const a=e.unref(n),c=e.unref(o);if(!a||!c){l.value="center";return}const i=(g=Le(a))==null?void 0:g.getBoundingClientRect(),u=a.getBoundingClientRect(),s=c.getBoundingClientRect();if(s.width<u.width){l.value="center";return}const d=(s.width-u.width+16*2)/2,p=(i==null?void 0:i.left)??((k=window.visualViewport)==null?void 0:k.pageLeft)??0,m=(i==null?void 0:i.right)??(((S=window.visualViewport)==null?void 0:S.width)??window.innerWidth)+(((V=window.visualViewport)==null?void 0:V.offsetLeft)??0),y=u.left-p,f=m-u.right,h=y>=d,_=f>=d;l.value=h===_?"center":y>f?"right":"left"}}},Q=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}=B(o),{t:l}=N(),r=e.ref(!1),a=e.computed({set:M=>r.value=M,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})),i=e.computed(()=>({toggleLabel:l.value(`tooltip.${o.color}`),...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"),s=e.computed(()=>({"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--success":o.color==="success","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--${k.value}`]:o.alignment==="auto",[`onyx-tooltip--${o.alignment}`]:o.alignment!=="auto"})),d=()=>u.value==="hover"?fn(c.value):mn(i.value),p=e.shallowRef(d());e.watch(u,()=>p.value=d());const m=e.computed(()=>{var M;return(M=p.value)==null?void 0:M.elements.tooltip}),y=e.computed(()=>{var M;return e.toValue((M=p.value)==null?void 0:M.elements.trigger)}),f=e.ref(),h=e.ref(),{openDirection:_,updateOpenDirection:g}=_t(f,"top"),{wedgePosition:k,updateWedgePosition:S}=yn(f,h),V=()=>{g(),S()};return ce({type:"resize",listener:()=>V()}),e.onMounted(()=>V()),e.watch(a,async()=>{await e.nextTick(),g(),S()}),(M,U)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapperRef",ref:f,class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps({ref_key:"tooltipRef",ref:h},m.value,{class:["onyx-tooltip","onyx-text--small","onyx-truncation-multiline",s.value]}),[o.icon?(e.openBlock(),e.createBlock(w,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(M.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])],16),e.renderSlot(M.$slots,"default",{trigger:y.value})],2))}}),De=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>ct(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(Q,{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)]))}}),hn=["title"],vn={class:"onyx-checkbox__container"},_n=["aria-label","indeterminate","disabled","required","value","autofocus"],ae=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:I},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:y=>l("update:modelValue",y)}),{requiredMarkerClass:a,requiredTypeClass:c}=ie(t),{densityClass:i}=B(t),{vCustomValidity:u,errorMessages:s}=Z({props:t,emit:l}),{disabled:d}=z(t),p=R(t),m=e.computed(()=>t.hideLabel?t.label:void 0);return(y,f)=>e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(i)])},[e.createVNode(T,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(d),"error-messages":e.unref(s)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(c),e.unref(i)]]),title:m.value},[e.createElementVNode("div",vn,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":f[0]||(f[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,_n)),[[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,hn)]),_:1},8,["disabled","error-messages"]))}}),gn=(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}}),gt=(n,o,t)=>({state:gn(n,o),handleChange:l=>{const r=o.value.filter(c=>!n.value.includes(c)),a=l?r.concat(n.value):r;t(a)}}),Y=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"]))}}),kn=["disabled","aria-label"],bn={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:I},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=B(t),r=o,{t:a}=N(),c=(m,y)=>{const f=y?[...t.modelValue,m]:t.modelValue.filter(h=>h!==m);r("update:modelValue",f)},i=e.computed(()=>t.options.filter(m=>!m.disabled&&!m.skeleton).map(({value:m})=>m)),{disabled:u}=z(t),s=R(t),d=gt(i,e.computed(()=>t.modelValue),m=>r("update:modelValue",m)),p=e.computed(()=>{var y;const m=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?m:((y=t.withCheckAll)==null?void 0:y.label)??m});return(m,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",bn,[e.createVNode(Y,{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(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(ae,{key:f,label:`Skeleton ${f}`,value:`skeleton-${f}`,skeleton:""},null,8,["label","value"]))),128)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(ae,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,f=>(e.openBlock(),e.createBlock(ae,e.mergeProps({key:f.value.toString(),ref_for:!0},f,{truncation:f.truncation??t.truncation,"model-value":t.modelValue.includes(f.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":h=>c(f.value,h)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64))],2)],10,kn))}}),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>',kt='<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>',Cn={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Ae=e.defineComponent({__name:"OnyxEmpty",props:{density:{}},setup(n){const o=n,{densityClass:t}=B(o);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-empty",e.unref(t)])},[e.renderSlot(l.$slots,"icon",{},()=>[e.createVNode(w,{icon:e.unref(kt),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Cn,[e.renderSlot(l.$slots,"default")])],2))}}),wn={class:"onyx-table-wrapper"},Vn=["tabindex"],En=["span"],Sn={key:0,class:"onyx-table__header"},Nn={key:0},Mn=["colspan"],$n={class:"onyx-table__empty"},On={colspan:"100%"},Tn={class:"onyx-table__empty-content"},bt=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}=N(),{densityClass:r}=B(o),a=e.computed(()=>l.value("table.empty"));return(c,i)=>{var u;return e.openBlock(),e.createElementBlock("div",wn,[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,s=>(e.openBlock(),e.createElementBlock("colgroup",{key:s.key,span:s.span},null,8,En))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",Sn,[(u=o.columnGroups)!=null&&u.length?(e.openBlock(),e.createElementBlock("tr",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,s=>(e.openBlock(),e.createElementBlock("th",{key:s.key,colspan:s.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(s.header),9,Mn))),128))])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(c.$slots,"default",{},()=>[e.createElementVNode("tr",$n,[e.createElementVNode("td",On,[e.createElementVNode("div",Tn,[e.renderSlot(c.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Ae,null,{icon:e.withCtx(()=>[e.createVNode(w,{icon:e.unref(Bn),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,Vn)])}}}),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(bt,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))}}),In={class:"onyx-data-grid-header-cell"},Ln={class:"onyx-data-grid-header-cell__label"},Dn={key:0,class:"onyx-data-grid-header-cell__actions"},An=e.defineComponent({__name:"HeaderCell",props:{label:{}},setup(n){const o=n,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",In,[e.createElementVNode("span",Ln,e.toDisplayString(o.label),1),t.actions?(e.openBlock(),e.createElementBlock("div",Dn,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0)]))}});const Pn=n=>{const o=r=>{const c=n.map(i=>i.header).filter(i=>!!i).map(i=>i.actions).filter(i=>!!i);return r.map(i=>{const u=c.flatMap(s=>s(i)).map(({iconComponent:s})=>s);return{key:i,component:()=>e.h(An,{label:String(i)},{actions:u}),props:{}}})},t=(r,a)=>{const c=n.map(u=>u.mutation).filter(u=>!!u),i=[...r];return c.forEach(({func:u})=>u(i)),i.map(u=>{const s=a.reduce((d,p)=>(d[p]={component:()=>u[p],props:{row:u}},d),{});return{id:u.id,cells:s}})},l=n.flatMap(r=>r.watch);return{createRendererRows:t,createRendererColumns:o,watchSources:l}},Rn=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),i=e.computed(()=>Pn(c.value));let u;const s=()=>{const{createRendererColumns:d,createRendererRows:p,watchSources:m}=i.value;return e.watch([r,a,...m],()=>{t.value=d(r.value),l.value=p(a.value,r.value)},{immediate:!0,deep:!0})};return e.watch(i,()=>{u==null||u(),u=s()},{immediate:!0}),(d,p)=>(e.openBlock(),e.createBlock(xt,{columns:t.value,rows:l.value},null,8,["columns","rows"]))}}),zn='<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>',Hn='<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>',Fn='<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>',Un=e.defineComponent({__name:"SortAction",props:{columnLabel:{},sortDirection:{}},setup(n){const o=n,{t}=N(),l=e.computed(()=>o.sortDirection==="asc"?Hn:o.sortDirection==="desc"?zn:Fn),r=e.computed(()=>{const a=Se(o.sortDirection);return t.value(`dataGrid.head.sortingAction.${a}`,{field:o.columnLabel})});return(a,c)=>(e.openBlock(),e.createBlock(e.unref(Pe),{color:"neutral",icon:l.value,label:r.value},null,8,["icon","label"]))}}),Se=n=>{switch(n){case"asc":return"desc";case"desc":return"none";case"none":default:return"asc"}},qn=Symbol("Sorting"),Gn=n=>{const o=e.toRef((n==null?void 0:n.sortState)??{column:void 0,direction:"none"}),t=e.computed(()=>u=>{var d;const s=e.toValue(n==null?void 0:n.columns);return((d=s==null?void 0:s[u])==null?void 0:d.sortFunc)??a.value}),l=e.computed(()=>u=>{var d;const s=e.toValue(n==null?void 0:n.columns);return!s||((d=s==null?void 0:s[u])==null?void 0:d.enabled)===!0}),{locale:r}=N(),a=e.computed(()=>(u,s)=>new Intl.Collator(r.value).compare(String(u),String(s))),c=u=>{const s=o.value.column===u?Se(o.value.direction):Se(),d=s!=="none"?u:void 0;o.value={direction:s,column:d}};return{name:qn,watch:[o,a],mutation:{func:u=>{const{column:s,direction:d}=o.value;if(!s||d==="none")return;const p=d==="asc"?1:-1,m=t.value(s);u.sort((y,f)=>m(y[s],f[s])*p)}},header:{actions:u=>l.value(u)===!0?[{iconComponent:e.h(Un,{columnLabel:String(u),sortDirection:o.value.column===u?o.value.direction:void 0,onClick:()=>c(u)})}]:[]}}},Kn=Object.freeze(Object.defineProperty({__proto__:null,useSorting:Gn},Symbol.toStringTag,{value:"Module"})),Zn=["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}=B(t),c=()=>{var i,u;t.modal?(i=r.value)==null||i.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var i;t.open?c():(i=r.value)==null||i.close()}),e.watch(()=>t.modal,()=>{var i;(i=r.value)!=null&&i.open&&(r.value.close(),c())}),(i,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(s=>l("close"),["prevent"]))},[e.renderSlot(i.$slots,"default")],42,Zn)):e.createCommentVNode("",!0)}}),jn='<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>',Yn=n=>/^http(s?):\/\//.test(n),ue=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:Yn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-external-link-icon",icon:e.unref(jn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),Jn=["h1","h2","h3","h4","h5","h6"],Wn=["12px","16px","24px","32px","48px","64px","96px"],Xn=["aria-label","title","type","disabled","autofocus"],Pe=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:I},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=B(o),{disabled:l}=z(o),r=R(o);return(a,c)=>e.unref(r)?(e.openBlock(),e.createBlock(T,{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(F,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(w,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,Xn))}}),Ne='<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}))}}),Qn={class:"onyx-info-tooltip"},Re=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",Qn,[t.value==="click"?(e.openBlock(),e.createBlock(Q,{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(w,{icon:e.unref(Ne)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Q,{"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(w,{icon:e.unref(Ne)},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))]))}}),de=n=>e.computed(()=>n.value===!0?"onyx-form-element--immediate-invalid":n.value===!1?"onyx-form-element--suppress-invalid":"onyx-form-element--touched-invalid"),el={class:e.normalizeClass(["onyx-truncation-ellipsis"])},ge=e.defineComponent({__name:"FormMessage",props:{messages:{},type:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.messages.hidden?J:"span"),{class:e.normalizeClass(["onyx-form-message",`onyx-form-message__${o.type}`])},{default:e.withCtx(()=>[e.createElementVNode("span",el,e.toDisplayString(o.messages.shortMessage),1),o.messages.longMessage?(e.openBlock(),e.createBlock(Re,{key:0,class:"onyx-form-message__tooltip",position:"bottom",open:"hover",color:o.type,text:o.messages.longMessage},null,8,["color","text"])):e.createCommentVNode("",!0)]),_:1},8,["class"]))}}),tl={key:0,class:"onyx-form-element__label onyx-text--small"},ol=["for"],nl={class:"onyx-form-element__footer onyx-text--small"},ll={class:"onyx-form-element__footer-messages"},al={key:0,class:"onyx-form-element__counter"},pe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()},name:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},maxlength:{},withCounter:{type:Boolean},errorMessages:{},message:{},successMessages:{}},setup(n){const o=n,{requiredMarkerClass:t,requiredTypeClass:l}=ie(o),r=e.computed(()=>{var a;if(o.withCounter&&o.maxlength)return`${(((a=o.modelValue)==null?void 0:a.toString())||"").length}/${o.maxlength}`});return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(l),a.successMessages?"onyx-form-element--success":void 0])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,ol),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(t):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(Re,{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(t)])},null,2))])),e.renderSlot(a.$slots,"default",{id:o.id}),e.createElementVNode("div",nl,[e.createElementVNode("span",ll,[o.errorMessages?(e.openBlock(),e.createBlock(ge,{key:0,class:"onyx-form-element__error-message",messages:o.errorMessages,type:"danger"},null,8,["messages"])):e.createCommentVNode("",!0),o.successMessages?(e.openBlock(),e.createBlock(ge,{key:1,class:"onyx-form-element__success-message",messages:o.successMessages,type:"success"},null,8,["messages"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createBlock(ge,{key:2,class:"onyx-form-element__message",messages:o.message,type:"neutral"},null,8,["messages"])):e.createCommentVNode("",!0)]),r.value?(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)])],2))}}),rl={class:"onyx-input__wrapper"},sl=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],il=e.defineComponent({__name:"OnyxInput",props:{disabled:{default:I},showError:{default:I},density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},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}=Z({props:t,emit:l}),c=e.computed(()=>q(t.success)),i=e.computed(()=>q(t.message)),{densityClass:u}=B(t),s=e.computed({get:()=>t.modelValue,set:h=>l("update:modelValue",h)}),d=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:p,showError:m}=z(t),y=R(t),f=de(m);return(h,_)=>e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(u)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(T,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(u),e.unref(f)])},[e.createVNode(pe,e.mergeProps(t,{"error-messages":e.unref(a),"success-messages":c.value,message:i.value}),{default:e.withCtx(({id:g})=>[e.createElementVNode("div",rl,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:g,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),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:d.value,readonly:t.readonly,disabled:e.unref(p)||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,sl),[[e.vModelDynamic,s.value],[e.unref(r)]])])]),_:1},16,["error-messages","success-messages","message"])],2))}}),cl=["email","password","search","tel","text","url"],ul=["none","sentences","words","characters"],dl=["href","target","rel"],pl=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=N();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(ue,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,dl))}}),ml=["_self","_blank","_parent","_top"],me=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}=B(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))}}),fl='<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>',ze='<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>',Ct=()=>{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}},yl=["placeholder","aria-label"],hl=["aria-label"],wt=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}=Ct(),{densityClass:i}=B(l),{t:u}=N(),s=e.ref(),d=e.computed({get:()=>l.modelValue,set:m=>r("update:modelValue",m??"")}),p=e.computed(()=>u.value("select.searchPlaceholder"));return o({focus:()=>{var m;return(m=s.value)==null?void 0:m.focus()}}),(m,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(i)]},e.unref(a),{style:{"--onyx-placeholder-character-count":p.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:s,"onUpdate:modelValue":y[0]||(y[0]=f=>d.value=f),class:"onyx-mini-search__input onyx-text",placeholder:p.value,type:"text",size:"1"},e.unref(c),{"aria-label":l.label}),null,16,yl),[[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]=f=>r("clear"))},[e.createVNode(w,{icon:e.unref(ze)},null,8,["icon"])],40,hl),e.createVNode(w,{class:"onyx-mini-search__icon",icon:e.unref(fl)},null,8,["icon"])],16))}}),vl='<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>',_l={class:"onyx-mobile-nav-button"},gl=["aria-label"],kl={class:"onyx-mobile-nav-button__flyout"},bl={class:"onyx-mobile-nav-button__menu"},Me=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",_l,[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(w,{icon:t.open?e.unref(vl):t.icon},null,8,["icon"])],10,gl),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",kl,[e.createElementVNode("div",bl,[t.headline?(e.openBlock(),e.createBlock(Y,{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=ke(n.parentRef.value);if(!r||(c=n.disabled)!=null&&c.value){o.value=[];return}l.value=new IntersectionObserver(i=>{const u=[],s=[];i.forEach(d=>{var y;const p=(y=Array.from(n.componentRefs).find(([f,h])=>ke(e.unref(h))===d.target))==null?void 0:y[0];if(!p)return;d.intersectionRatio===1?u.push(p):s.push(p)}),o.value.length===0?o.value=u:o.value=o.value.filter(d=>!s.includes(d)).concat(u)},{root:r,threshold:1}),n.componentRefs.forEach(i=>{var s;const u=ke(e.unref(i));u&&((s=l.value)==null||s.observe(u))})},{immediate:!0}),{visibleElements:o,hiddenElements:t}},ke=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}},Cl=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"),i=xl({parentRef:r,componentRefs:a,disabled:c});return e.provide(t.injectionKey,{components:a,visibleElements:i.visibleElements,disabled:c}),e.watch([i.visibleElements,i.hiddenElements],([u,s])=>{l("visibilityChange",{visibleElements:u.length,hiddenElements:s.length})}),(u,s)=>(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(i).hiddenElements.value.length>0?e.renderSlot(u.$slots,"more",{key:0,hiddenElements:e.unref(i).hiddenElements.value.length,visibleElements:e.unref(i).visibleElements.value.length}):e.createCommentVNode("",!0)]),_:3},512))}}),wl=["aria-label"],Vl=["src","alt"],El={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},Vt=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=N(),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,Vl)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",El,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,wl))}}),Sl=`<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
|
-
`,$l={class:"onyx-color-scheme-dialog__subtitle onyx-text"},Ol=["innerHTML"],Tl=["autofocus","value","checked","aria-label"],Il={class:"onyx-text--small"},Ll={class:"onyx-color-scheme-dialog__actions"},Et=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}=N(),i=e.computed(()=>[{value:"auto",image:Sl,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:Ml,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:Nl,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),c=s=>{const d=s.target;r.value=d.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(s,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(Y,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",$l,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,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,Ol),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,Tl)]),_:2},1024),e.createVNode(Y,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",Il,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",Ll,[e.createVNode(re,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:d[0]||(d[0]=p=>l("close"))},null,8,["label"]),e.createVNode(re,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),Dl='<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>',Al=["href","target","rel"],Pl=["disabled"],He=e.defineComponent({__name:"OnyxMenuItem",props:{target:{default:"_self"},href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},setup(n){const o=n,{t}=N(),{elements:{listItem:l,menuItem:r}}=ht(),a=e.computed(()=>r({active:o.active,disabled:o.disabled}));return(i,c)=>(e.openBlock(),e.createBlock(me,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(i.$slots,"default")],16,Al)):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:"onyx-menu-item__trigger",type:"button",disabled:o.disabled},a.value),[e.renderSlot(i.$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"]))}}),Rl={class:"onyx-color-scheme-menu-item__value"},zl=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=N(),a=e.ref(!1);return(i,c)=>(e.openBlock(),e.createBlock(He,{class:"onyx-color-scheme-menu-item",onClick:c[2]||(c[2]=u=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(w,{icon:e.unref(Dl)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",Rl,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(Et,{"model-value":t.modelValue,open:a.value,onClose:c[0]||(c[0]=u=>a.value=!1),"onUpdate:modelValue":c[1]||(c[1]=u=>l("update:modelValue",u))},null,8,["model-value","open"])]))]),_:1}))}}),Hl=n=>e.computed(n),K=Symbol("MANAGED_SYMBOL"),se=(n,o,t)=>{const l=e.computed(()=>n.value===K),r=e.ref(e.toValue(l)?o:n.value);return{state:Hl({set:i=>{r.value=i,t(i)},get:()=>l.value?r.value:n.value}),isManaged:l}},Fl=["aria-label"],Fe=e.defineComponent({__name:"OnyxFlyoutMenu",props:{open:{default:K},label:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o,{state:r}=se(e.toRef(()=>t.open),!1,s=>l("update:open",s)),a=e.useSlots(),{elements:{root:i,button:c,menu:u}}=cn({isExpanded:e.computed(()=>!!r.value),onToggle:()=>r.value=!r.value});return(s,d)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-flyout-menu"},e.unref(i)),[e.renderSlot(s.$slots,"button",{trigger:e.unref(c)}),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(s.$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(s.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"footer")],10,Fl)),[[e.vShow,e.unref(r)]]):e.createCommentVNode("",!0)],16))}}),St='<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>',ee=Symbol(),Nt=Symbol(),Ul='<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>',ql=["aria-orientation"],Mt=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(n){const o=n,t=e.inject(ee);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,ql))}}),Gl={role:"presentation"},Kl=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}=N(),a=o;return(i,c)=>(e.openBlock(),e.createElementBlock("li",Gl,[t.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isMobile&&i.mobileChildrenOpen?(e.openBlock(),e.createBlock(re,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(Ul),onClick:c[0]||(c[0]=u=>a("update:mobileChildrenOpen",!1))},null,8,["label","icon"])):e.createCommentVNode("",!0),!i.mobileChildrenOpen||t.href?e.renderSlot(i.$slots,"button",{key:1,trigger:{trigger:{}}}):e.createCommentVNode("",!0),i.mobileChildrenOpen&&t.href?(e.openBlock(),e.createBlock(Mt,{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":i.mobileChildrenOpen}])},[e.renderSlot(i.$slots,"options")],2),[[e.vShow,i.mobileChildrenOpen]])],64)):(e.openBlock(),e.createBlock(Fe,{key:1,label:e.unref(r)("navItemOptionsLabel",{label:t.label})},e.createSlots({button:e.withCtx(({trigger:u})=>[e.renderSlot(i.$slots,"button",{trigger:u})]),_:2},[l.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Zl=["aria-label"],jl={class:"onyx-truncation-ellipsis"},Yl=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{default:K},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(ee),i=e.computed(()=>!!r.children),{componentRef:c,isVisible:u}=Bl(Nt),{state:s}=se(e.toRef(()=>t.mobileChildrenOpen),!1,p=>l("update:mobileChildrenOpen",p)),d=p=>{a!=null&&a.value&&i.value&&!s.value?s.value=!0:t.href&&l("navigate",t.href,p)};return(p,m)=>(e.openBlock(),e.createBlock(Kl,e.mergeProps({ref_key:"componentRef",ref:c},t,{"mobile-children-open":e.unref(s),"onUpdate:mobileChildrenOpen":m[0]||(m[0]=y=>e.isRef(s)?s.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(({trigger:y})=>[e.createElementVNode("button",e.mergeProps({class:["onyx-nav-button__trigger onyx-text",{"onyx-nav-button__link":t.href!=null}],role:"menuitem","aria-label":t.label,type:"button"},y,{onClick:d}),[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",jl,e.toDisplayString(t.label),1),e.createVNode(ue,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&i.value&&!e.unref(s)?(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(St)},null,8,["icon"])):e.createCommentVNode("",!0)],16,Zl)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Jl=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(He,{class:"onyx-nav-item",active:t.active,href:t.href??"javascript:void(0)",onClick:a[0]||(a[0]=i=>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(ue,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),Wl=n=>{const o=e.ref(),t=e.ref(be(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=be(a),o.value=setInterval(()=>{t.value=be(a),l.value&&clearInterval(o.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(o.value)),{timeLeft:t,isEnded:l}},be=n=>{const o=n-Date.now();return Math.max(o,0)},$t=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}},Xl=(n,o)=>{const{hours:t,minutes:l,seconds:r}=$t(n),a=u=>u.toString().padStart(2,"0");let i="",c=xe(o.formatToParts(n,"seconds"));return l>0&&(c=xe(o.formatToParts(n,"minutes"))),t>0&&(c=xe(o.formatToParts(n,"hours")),i=`${a(t)}:`),`${i}${a(l)}:${a(r)} ${c}`},xe=n=>{var o;return((o=n.at(-1))==null?void 0:o.value.replace(".","").trim())??""},Ql=n=>{const{hours:o,minutes:t,seconds:l}=$t(n);return`PT${o}H${t}M${l}S`},ea=["aria-label"],ta={key:0,class:"onyx-timer__label"},oa=["datetime"],na=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(n,{emit:o}){const t=n,l=o,{locale:r}=N(),{timeLeft:a,isEnded:i}=Wl(e.computed(()=>t.endTime)),c=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Xl(a.value,c.value));return e.watchEffect(()=>i.value&&l("timerEnded")),(s,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",ta,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Ql)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,oa)],8,ea))}}),la={class:"onyx-user-menu__footer onyx-text--small"},aa=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean},flyoutOpen:{default:K}},emits:["update:flyoutOpen"],setup(n){const o=n,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),{t:r}=N();return(a,i)=>(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(me,{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(Fe,{key:1,open:e.unref(t),"onUpdate:open":i[0]||(i[0]=c=>e.isRef(t)?t.value=c:null),label:e.unref(r)("navigation.userMenuLabel")},e.createSlots({button:e.withCtx(({trigger:c})=>[e.renderSlot(a.$slots,"button",{trigger:c})]),header:e.withCtx(()=>[e.renderSlot(a.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",la,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["open","label"]))]))}}),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:K}},emits:["update:flyoutOpen"],setup(n,{emit:o}){const t=n,l=o,r=e.useSlots(),a=e.computed(()=>({src:t.avatar,label:t.username})),i=e.inject(ee,e.computed(()=>!1));return(c,u)=>(e.openBlock(),e.createBlock(aa,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(i)}]),"is-mobile":e.unref(i),"flyout-open":c.flyoutOpen,"onUpdate:flyoutOpen":u[0]||(u[0]=s=>l("update:flyoutOpen",s))},e.createSlots({button:e.withCtx(({trigger:s})=>[e.createElementVNode("button",e.mergeProps({class:"onyx-user-menu__trigger onyx-text",type:"button"},s),[e.createVNode(Be,e.mergeProps(a.value,{size:"24px"}),null,16),e.createElementVNode("span",ra,e.toDisplayString(t.username),1)],16)]),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(c.$slots,"default")])]),_:2},[r.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile","flyout-open"]))}}),Ot='<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=i=>{const c=i[0].contentBoxSize;l.value=c.reduce((u,{inlineSize:s})=>u+s,0),r.value=c.reduce((u,{blockSize:s})=>u+s,0)};return e.onBeforeMount(()=>{const i=new ResizeObserver(a);e.watch(n,(c,u)=>{u&&(i==null||i.unobserve(u)),c&&(i==null||i.observe(c,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>i.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(),i=e.ref(),{width:c}=ya(i),{t:u}=N(),{elements:{nav:s}}=dn({navigationName:e.toRef(()=>l.appName)}),d=e.ref(!1),p=e.ref(!1),m=e.computed(()=>{const y=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:Qe[l.mobileBreakpoint];return c.value!==0&&c.value<y});return e.provide(ee,m),o({closeMobileMenus:()=>{d.value=!1,p.value=!1}}),(y,f)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:i,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":m.value}])},[e.createElementVNode("div",ha,[m.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(Vt,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:f[0]||(f[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(Pe,{key:2,class:"onyx-nav-bar__back",label:e.unref(u)("navigation.goBack"),icon:e.unref(Ot),color:"neutral",onClick:f[1]||(f[1]=h=>r("navigateBack",h))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[m.value?(e.openBlock(),e.createBlock(Me,{key:0,open:d.value,"onUpdate:open":[f[2]||(f[2]=h=>d.value=h),f[3]||(f[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(s)),[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(s)),[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},[m.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(Me,{key:1,open:p.value,"onUpdate:open":[f[4]||(f[4]=h=>p.value=h),f[5]||(f[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();Te(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))}}),Tt=n=>{const t=e.ref(!1),l=a=>{const i=a.target;if(!(i instanceof Element))return;const c=e.unref(n.offset)??0;t.value=Math.abs(i.scrollTop)+i.clientHeight>=i.scrollHeight-c-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var c;(((c=n.enabled)==null?void 0:c.value)??!0)&&!n.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},It=(n,o)=>{const t=Xe(n.toLowerCase()),l=Xe(o.toLowerCase());return t.includes(l)},Xe=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"],Lt=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{disabled:{default:I},showError:{default:I},density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},error:{},message:{},success:{},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}=Ct(),a=n,i=t,{t:c}=N(),{vCustomValidity:u,errorMessages:s}=Z({props:a,emit:i}),d=e.computed(()=>q(a.success)),p=e.computed(()=>q(a.message)),{disabled:m,showError:y}=z(a),f=R(a),h=de(y),_=e.computed(()=>a.modelValue?a.modelValue.length:0),g=e.computed(()=>{var x;const O=(x=a.modelValue)==null?void 0:x.length;if(!a.modelValue||!O)return"";if(O===1)return a.modelValue[0];switch(a.textMode){case"preview":return a.modelValue.join(", ");case"summary":default:return c.value("selections.currentSelection",{n:O})}}),k=e.ref(!1),{densityClass:S}=B(a),V=e.ref();o({focus:()=>{var O;return(O=V.value)==null?void 0:O.focus()}}),e.watch(()=>a.showFocus,(O,x)=>{k.value||x&&O===!1&&(k.value=!0)});const M=ft.concat(yt),U=O=>{M.includes(O.key)||O.preventDefault()};return(O,x)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(S)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(T,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(S),e.unref(h),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(pe,e.mergeProps(a,{message:p.value,"success-messages":d.value,"error-messages":e.unref(s)}),{default:e.withCtx(({id:E})=>[e.createElementVNode("div",{class:"onyx-select-input__wrapper",onClick:x[0]||(x[0]=L=>!e.unref(m)&&!a.loading&&i("inputClick"))},[a.loading?(e.openBlock(),e.createBlock(F,{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:V,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--touched":k.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:e.unref(m)||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:g.value,autofocus:a.autofocus,autocomplete:"off",onKeydown:U}),null,16,Ma),[[e.unref(u)]]),a.textMode==="preview"&&_.value>0?(e.openBlock(),e.createBlock(Q,{key:1,text:g.value,position:"bottom"},{default:e.withCtx(({trigger:L})=>[e.createVNode(et,e.mergeProps({class:"onyx-select-input__badge"},L,{color:"neutral"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.value),1)]),_:2},1040)]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(c)("select.toggleDropDown"),tabindex:"-1",disabled:e.unref(m)||a.readonly||a.loading},[e.createVNode(w,{icon:e.unref(Na)},null,8,["icon"])],8,$a)])]),_:1},16,["message","success-messages","error-messages"])],16))}}),Oa=["checked","aria-labelledby","disabled","indeterminate"],$e=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(me,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(w,{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"},Dt=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:K},showError:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number]},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},truncation:{default:"ellipsis"},disabled:{default:I},valueLabel:{default:void 0},open:{default:K},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}=B(t),a=e.useSlots(),{t:i}=N(),{state:c,isManaged:u}=se(e.toRef(()=>t.searchTerm),"",v=>l("update:searchTerm",v)),{state:s}=se(e.toRef(()=>t.open),!1,v=>l("update:open",v)),d=e.ref(),{openDirection:p,updateOpenDirection:m}=_t(d),y=e.ref(),f=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]:f.value.reduce((v,C)=>{var D;const $=(D=t.options.find(({value:P})=>P===C))==null?void 0:D.label;return $&&v.push($),v},[])),_=e.ref(),g=e.ref(),k=e.computed(()=>u.value&&c.value?t.options.filter(({label:v})=>It(v,c.value)):t.options);e.watch(f,()=>{t.multiple||(y.value=f.value.at(0))},{immediate:!0});const S=e.useId(),V=e.computed(()=>(t.multiple&&t.withCheckAll&&!c.value?[S]:[]).concat(Ze.value)),M=async v=>{var $,D;if(t.readonly){s.value=!1;return}const C=s.value;s.value=!C,await e.nextTick(),s.value&&m(),C!==s.value&&(C?(c.value&&(c.value=""),v||($=g.value)==null||$.focus()):(D=_.value)==null||D.focus())},U=()=>y.value=V.value.at(0),O=()=>y.value=V.value.at(-1),x=v=>{const C=V.value.findIndex($=>$===v);C<V.value.length-1&&(y.value=V.value[C+1])},E=v=>{const C=V.value.findIndex($=>$===v);C>0&&(y.value=V.value[C-1])},L=v=>{const C=k.value.find($=>$.label.toLowerCase().trim().startsWith(v.toLowerCase()));C&&(y.value=C.value)},W=v=>c.value=v,X=v=>{var D;if(v===S){(D=te.value)==null||D.handleChange(!te.value.state.value.modelValue);return}if(!k.value.find(({value:P})=>P===v))return;if(!t.multiple)return l("update:modelValue",v);f.value.some(P=>P===v)?l("update:modelValue",f.value.filter(P=>P!==v)):l("update:modelValue",[...f.value,v])},fe=e.computed(()=>t.withSearch?"list":"none"),{label:b,listLabel:ye,listDescription:zt,multiple:Ht}=e.toRefs(t),{elements:{input:he,option:Ge,group:Ke,listbox:Ft}}=sn({autocomplete:fe,label:b,listLabel:ye,listDescription:zt,multiple:Ht,activeOption:e.computed(()=>y.value),isExpanded:s,templateRef:d,onToggle:M,onActivateFirst:U,onActivateLast:O,onActivateNext:x,onActivatePrevious:E,onTypeAhead:L,onAutocomplete:W,onSelect:X}),Ut=e.computed(()=>Yo(k.value,"group")),{vScrollEnd:qt,isScrollEnd:Gt}=Tt({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(!k.value.length)return t.withSearch&&c.value?i.value("select.noMatch"):i.value("select.empty")}),Ze=e.computed(()=>k.value.filter(v=>!v.disabled).map(({value:v})=>v)),te=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return gt(Ze,f,v=>{const C=v.map($=>{var D;return(D=t.options.find(({value:P})=>P===$))==null?void 0:D.value}).filter($=>$!=null);l("update:modelValue",C)})}),_e=e.computed(()=>{var C;if(!t.multiple)return"";const v=i.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?v:((C=t.withCheckAll)==null?void 0:C.label)??v});e.watchEffect(()=>{Gt.value&&l("lazyLoad")});const Kt=e.computed(()=>{const v={...t,open:void 0,modelValue:h.value};return t.withSearch?{...v,onKeydown:he.value.onKeydown}:{...v,...he.value}});return(v,C)=>{var $,D,P;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:d,class:"onyx-select-wrapper"},[e.createVNode(Lt,e.mergeProps({ref_key:"selectInput",ref:g},Kt.value,{"show-focus":e.unref(s),autofocus:t.autofocus,onInputClick:M,onValidityChange:C[0]||(C[0]=oe=>l("validityChange",oe))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(s)?"onyx-select--open":"",`onyx-select--${e.unref(p)}`,`onyx-select--${t.alignment}`]),inert:!e.unref(s)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ia,[t.withSearch?(e.openBlock(),e.createBlock(wt,e.mergeProps({key:0,ref_key:"miniSearch",ref:_,"model-value":e.unref(c)},e.unref(he),{label:e.unref(i)("select.searchInputLabel"),class:"onyx-select__search",onClear:C[1]||(C[1]=oe=>c.value="")}),null,16,["model-value","label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(Ft))),[ve.value?(e.openBlock(),e.createElementBlock("ul",La,[e.createElementVNode("li",Da,[e.renderSlot(v.$slots,"empty",{defaultMessage:ve.value},()=>[e.createVNode(Ae,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(c)?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0,class:"onyx-select__check-all"},e.unref(Ke)({label:_e.value})),[e.createVNode($e,e.mergeProps(e.unref(Ge)({value:e.unref(S),label:_e.value,selected:($=te.value)==null?void 0:$.state.value.modelValue}),{multiple:"",active:e.unref(S)===y.value,indeterminate:(D=te.value)==null?void 0:D.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(Ut.value,(oe,ne)=>(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:ne,class:"onyx-select__group",ref_for:!0},e.unref(Ke)({label:ne})),[ne!=""?(e.openBlock(),e.createElementBlock("li",Aa,e.toDisplayString(ne),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe,H=>(e.openBlock(),e.createBlock($e,e.mergeProps({key:H.value.toString(),ref_for:!0},e.unref(Ge)({value:H.value,label:H.label,disabled:H.disabled,selected:f.value.some(Zt=>Zt===H.value)}),{multiple:t.multiple,active:H.value===y.value,icon:H.icon,density:t.density,truncation:H.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(v.$slots,"option",e.mergeProps({ref_for:!0},H),()=>[e.createTextVNode(e.toDisplayString(H.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16))),128))],64))],16),(P=t.lazyLoading)!=null&&P.loading?(e.openBlock(),e.createElementBlock("div",Pa,[e.createVNode(F,{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(qt)]]),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}=N(),{densityClass:a}=B(t),i=e.computed(()=>Array.from({length:t.pages},(s,d)=>{const p=d+1;return{label:p.toString(),value:p}})),c=e.computed(()=>t.modelValue<=1),u=e.computed(()=>t.modelValue>=t.pages);return(s,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(Dt,{class:"onyx-pagination__select",label:e.unref(r)("pagination.select.label"),"list-label":e.unref(r)("pagination.select.listLabel"),options:i.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||c.value,onClick:d[1]||(d[1]=p=>l("update:modelValue",t.modelValue-1))},[e.createVNode(w,{icon:e.unref(Ot)},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(w,{icon:e.unref(St)},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]=i=>l("update:modelValue",i))}),null,16))}}),Za=["required","name","value","checked","disabled","autofocus"],Oe=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{default:I},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},customError:{},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}=Z({props:t,emit:l}),{densityClass:i}=B(t),{disabled:c}=z(t),u=R(t);return(s,d)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(i)])},[e.createVNode(T,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(T,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(c),"error-messages":e.unref(a)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-radio-button",e.unref(i)])},[t.loading?(e.openBlock(),e.createBlock(F,{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(c),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:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},name:{default:()=>e.useId()},options:{},modelValue:{},disabled:{default:I},direction:{default:"vertical"},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,{densityClass:l}=B(t),{requiredMarkerClass:r,requiredTypeClass:a}=ie(t),{disabled:i}=z(t),c=R(t),u=o,s=(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(i),role:"radiogroup","aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",Ya,[e.createVNode(Y,{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(c)?typeof e.unref(c)=="number"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(c),m=>(e.openBlock(),e.createBlock(Oe,{id:`skeleton-${m}`,key:m,value:`skeleton-${m}`,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,(m,y)=>(e.openBlock(),e.createBlock(Oe,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{name:t.name,"custom-error":t.customError,checked:m.value===t.modelValue,required:t.required,truncation:m.truncation??t.truncation,onValidityChange:f=>y===0&&u("validityChange",f),onChange:f=>s(f,m.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)},le=(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:I},showError:{default:I},density:{},customError:{},required:{type:Boolean},requiredMarker:{},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},autofocus:{type:Boolean},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}=N(),r=e.ref(),a=o,{disabled:i,showError:c}=z(t),u=R(t),s=de(c),{densityClass:d}=B(t),{vCustomValidity:p,errorMessages:m}=Z({props:t,emit:a}),y=e.computed(()=>q(t.success)),f=e.computed(()=>q(t.message)),h=e.ref(!1),_=e.useModel(n,"modelValue"),g=e.ref(),k=e.computed(()=>{const x=t.precision,E=x.toString();return E.includes(".")?E.split(".")[1].length:-Math.floor(Math.log10(x))});e.watch(_,()=>g.value=le(_.value,k.value),{immediate:!0});const S=e.computed(()=>Math.max(t.stepSize??t.precision,t.precision)),V=x=>{if(!r.value)return;h.value=!0;const E=_.value||0,L=(x==="stepUp"?1:-1)*S.value,W=E+L,X=Math.round(W/t.precision)*t.precision;_.value=or(X,t.min,t.max)},M=()=>{if(!r.value)return;h.value=!0;const x=parseFloat(g.value??""),E=parseFloat(le(x,k.value));if(g.value=le(x,k.value),!x||isNaN(x)){_.value=void 0;return}if(t.stripStep&&(!tr(x,t.precision)||t.min!==void 0&&t.min>x||t.max!==void 0&&t.max<x)){g.value=le(_.value,k.value);return}_.value=E},U=e.computed(()=>l.value("stepper.increment",{stepSize:S.value})),O=e.computed(()=>l.value("stepper.decrement",{stepSize:S.value}));return(x,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(T,{key:0,class:"onyx-stepper-skeleton__label"})),e.createVNode(T,{class:"onyx-stepper-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-stepper",e.unref(d),e.unref(s)])},[e.createVNode(pe,e.mergeProps(t,{message:f.value,"success-messages":y.value,"error-messages":e.unref(m)}),{default:e.withCtx(()=>[e.createElementVNode("div",nr,[e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(i)||x.readonly||t.loading||t.min!==void 0&&_.value!==void 0&&_.value<=t.min,"aria-label":O.value,tabindex:"-1",onClick:E[0]||(E[0]=L=>V("stepDown"))},[e.createVNode(w,{icon:e.unref(Qa)},null,8,["icon"])],8,lr),t.loading?(e.openBlock(),e.createBlock(F,{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]=L=>g.value=L),class:e.normalizeClass(["onyx-stepper__native",{"onyx-stepper__native--touched":h.value}]),type:"number","aria-label":t.label,autofocus:t.autofocus,disabled:e.unref(i)||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:M,onKeydown:[E[2]||(E[2]=e.withKeys(e.withModifiers(L=>V("stepUp"),["prevent"]),["up"])),E[3]||(E[3]=e.withKeys(e.withModifiers(L=>V("stepDown"),["prevent"]),["down"]))]},null,42,ar)),[[e.vModelText,g.value],[e.unref(p)]]),e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(i)||x.readonly||t.loading||t.max!==void 0&&_.value!==void 0&&_.value>=t.max,"aria-label":U.value,tabindex:"-1",onClick:E[4]||(E[4]=L=>V("stepUp"))},[e.createVNode(w,{icon:e.unref(er)},null,8,["icon"])],8,rr)])]),_:1},16,["message","success-messages","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:I},showError:{},density:{},required:{type:Boolean},requiredMarker:{},customError:{},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}=ie(t),{densityClass:i}=B(t),{disabled:c,showError:u}=z(t),{vCustomValidity:s,errorMessages:d}=Z({props:t,emit:l}),p=e.computed(()=>u.value!==!1?d.value:void 0),m=e.computed(()=>t.hideLabel&&t.label||void 0),y=R(t),f=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(i)])},[e.createElementVNode("span",cr,[e.createVNode(T,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(c),"error-messages":p.value},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(i)]]),title:m.value},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=g=>f.value=g),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(c)||t.loading,required:t.required,autofocus:t.autofocus},null,10,dr),[[e.vModelCheckbox,f.value],[e.unref(s)]]),e.createElementVNode("span",pr,[e.createElementVNode("span",mr,[e.createElementVNode("span",fr,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(w,{key:1,icon:f.value?e.unref(ir):e.unref(ze)},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"]))}}),Ue=Symbol(),hr=["disabled"],vr={class:"onyx-tab__label"},_r=e.defineComponent({__name:"OnyxTab",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=B(o),l=e.inject(Ue),r=R(o),a=e.computed(()=>`onyx-tab--${l==null?void 0:l.size.value}`),i=e.computed(()=>l==null?void 0:l.headless.elements.tab.value({value:o.value,disabled:o.disabled||!!r.value}));return(c,u)=>{var s,d,p,m,y;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?(e.openBlock(),e.createBlock(T,e.mergeProps({key:0,class:["onyx-tab-skeleton",e.unref(t),a.value]},i.value),null,16,["class"])):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:["onyx-tab",e.unref(t),a.value,(s=i.value)!=null&&s["aria-selected"]?"onyx-tab--selected":""]},i.value,{type:"button",disabled:o.disabled}),[e.createElementVNode("div",vr,[e.renderSlot(c.$slots,"tab",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])])],16,hr)),(e.openBlock(),e.createBlock(e.Teleport,{to:(d=e.unref(l))==null?void 0:d.panelRef.value,disabled:!((p=e.unref(l))!=null&&p.panelRef.value),defer:""},[(m=i.value)!=null&&m["aria-selected"]?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},(y=e.unref(l))==null?void 0:y.headless.elements.tabpanel.value({value:o.value}),{class:"onyx-tab__panel"}),[e.renderSlot(c.$slots,"default")],16)):e.createCommentVNode("",!0)],8,["to","disabled"]))],64)}}}),gr=e.defineComponent({__name:"OnyxTabs",props:{density:{},skeleton:{type:Boolean},label:{},modelValue:{},stretched:{type:Boolean},size:{default:"h2"}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=B(t),a=pn({label:e.toRef(t,"label"),selectedTab:e.toRef(()=>t.modelValue),onSelect:c=>l("update:modelValue",c)}),i=e.ref();return Te(t),e.provide(Ue,{headless:a,panelRef:i,size:e.toRef(t,"size")}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"panelRef",ref:i,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(c.$slots,"default")],16)],2))}}),kr={class:"onyx-text onyx-truncation-ellipsis"},br=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(n){const o=n,{densityClass:t}=B(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(w,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",kr,e.toDisplayString(o.label),1)],2))}}),xr=["data-autosize-value"],Br=["id","placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],Cr=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{default:I},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},success:{},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}=Z({props:t,emit:l}),{densityClass:i}=B(t),c=e.computed(()=>q(t.success)),u=e.computed(()=>q(t.message)),s=e.computed({get:()=>t.modelValue,set:_=>l("update:modelValue",_)}),d=e.computed(()=>{if(!t.autosize)return;const _=t.autosize.min?Math.max(t.autosize.min,2):void 0,g=t.autosize.max;return[_?`--min-autosize-rows: ${_}`:"",`--max-autosize-rows: ${g??"unset"}`]}),p=_=>{var k;const g=_.target;(k=g.parentElement)==null||k.setAttribute("data-autosize-value",g.value)},{disabled:m,showError:y}=z(t),f=R(t),h=de(y);return(_,g)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(i)]),style:e.normalizeStyle(d.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(T,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(h),e.unref(i)]),style:e.normalizeStyle(d.value)},[e.createVNode(pe,e.mergeProps(t,{message:u.value,"success-messages":c.value,"error-messages":e.unref(a)}),{default:e.withCtx(({id:k})=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":s.value},[e.withDirectives(e.createElementVNode("textarea",{id:k,"onUpdate:modelValue":g[0]||(g[0]=S=>s.value=S),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(m),minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:p},null,42,Br),[[e.vModelText,s.value],[e.unref(r)]])],8,xr)]),_:1},16,["message","success-messages","error-messages"])],6))}}),wr='<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>',Vr='<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>',Er={class:"onyx-toast-message__wrapper"},Sr={class:"onyx-toast-message__content onyx-truncation-ellipsis"},Nr={class:"onyx-toast-message__headline onyx-text"},Mr={class:"onyx-truncation-ellipsis"},$r=["aria-label"],Or={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},At=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,{t:r}=N(),{densityClass:a}=B(t),i=e.computed(()=>t.duration>0),c={neutral:Ne,danger:kt,warning:wr,success:Vr},u=e.computed(()=>{if(t.icon!==!1)return t.icon||c[t.color]});return(s,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",Er,[u.value?(e.openBlock(),e.createBlock(w,{key:0,icon:u.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",Sr,[e.createElementVNode("div",Nr,[e.createElementVNode("span",Mr,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(w,{icon:e.unref(ze)},null,8,["icon"])],8,$r))]),t.description?(e.openBlock(),e.createElementBlock("p",Or,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),i.value?(e.openBlock(),e.createElementBlock("time",{key:t.duration,"aria-hidden":"true",class:"onyx-toast-message__progress-bar",style:e.normalizeStyle({animationDuration:`${t.duration}ms`}),onAnimationend:d[1]||(d[1]=p=>l("close"))},null,36)):e.createCommentVNode("",!0)]),_:1},8,["class","role","aria-label"]))}}),qe=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}},Rt=()=>{const n=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(qe,()=>({toasts:e.computed(()=>[]),show:n,remove:n}),!0)},Tr={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},Ir=e.defineComponent({__name:"OnyxToast",setup(n){const o=Rt();return(t,l)=>e.unref(o).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",Tr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(At,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),Lr=["top","bottom","auto"],Dr=e.defineComponent({__name:"OnyxForm",props:{disabled:{type:Boolean,default:!1},showError:{default:"touched"},skeleton:{type:Boolean},density:{}},setup(n){const o=n;so(o),Te(o);const{densityClass:t}=B(o);return(l,r)=>(e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass({"onyx-form":!0,...e.unref(t)})},[e.renderSlot(l.$slots,"default")],2))}}),Ar=["primary","secondary","neutral","danger","warning","success","info"],Pr=["small","default","large"],Rr=["ellipsis","multiline"],zr=["horizontal","vertical"],Hr=(n={})=>({install:o=>{st(o,n.i18n);const t=o.runWithContext(()=>N());o.provide(qe,Pt()),o.mixin({beforeMount:()=>{e.watchEffect(()=>{Fr(t.t.value("optional"))})}})}}),Fr=n=>{var o;(o=globalThis.document)==null||o.body.style.setProperty("--onyx-global-optional-text",n)};exports.AUTOCAPITALIZE=ul;exports.BUTTON_COLORS=Eo;exports.BUTTON_MODES=So;exports.BUTTON_TYPES=Vo;exports.DENSITIES=lo;exports.DIRECTIONS=zr;exports.DataGridFeatures=Kn;exports.HEADLINE_TYPES=Jn;exports.ICON_SIZES=Wn;exports.INPUT_TYPES=cl;exports.LINK_TARGETS=ml;exports.MOBILE_NAV_BAR_INJECTION_KEY=ee;exports.MULTISELECT_TEXT_MODE=Xa;exports.NAV_BAR_MORE_LIST_INJECTION_KEY=Nt;exports.ONYX_BREAKPOINTS=Qe;exports.ONYX_COLORS=Ar;exports.OnyxAppLayout=Xt;exports.OnyxAvatar=Be;exports.OnyxAvatarStack=no;exports.OnyxBadge=et;exports.OnyxButton=re;exports.OnyxCheckbox=ae;exports.OnyxCheckboxGroup=xn;exports.OnyxColorSchemeDialog=Et;exports.OnyxColorSchemeMenuItem=zl;exports.OnyxDataGrid=Rn;exports.OnyxDataGridRenderer=xt;exports.OnyxDialog=Bt;exports.OnyxEmpty=Ae;exports.OnyxExternalLinkIcon=ue;exports.OnyxFlyoutMenu=Fe;exports.OnyxForm=Dr;exports.OnyxHeadline=Y;exports.OnyxIcon=w;exports.OnyxIconButton=Pe;exports.OnyxInfoTooltip=Re;exports.OnyxInput=il;exports.OnyxLink=pl;exports.OnyxListItem=me;exports.OnyxLoadingIndicator=F;exports.OnyxMenuItem=He;exports.OnyxMiniSearch=wt;exports.OnyxMobileNavButton=Me;exports.OnyxMoreList=Cl;exports.OnyxNavAppArea=Vt;exports.OnyxNavBar=Ca;exports.OnyxNavButton=Yl;exports.OnyxNavItem=Jl;exports.OnyxNavSeparator=Mt;exports.OnyxPageLayout=Sa;exports.OnyxPagination=Ka;exports.OnyxRadioButton=Oe;exports.OnyxRadioGroup=Ja;exports.OnyxSelect=Dt;exports.OnyxSelectInput=Lt;exports.OnyxSelectOption=$e;exports.OnyxSkeleton=T;exports.OnyxStepper=sr;exports.OnyxSwitch=yr;exports.OnyxTab=_r;exports.OnyxTable=bt;exports.OnyxTabs=gr;exports.OnyxTag=br;exports.OnyxTextarea=Cr;exports.OnyxTimer=na;exports.OnyxToast=Ir;exports.OnyxToastMessage=At;exports.OnyxTooltip=Q;exports.OnyxUserMenu=pa;exports.OnyxVisuallyHidden=J;exports.SELECT_ALIGNMENTS=Wa;exports.TABS_INJECTION_KEY=Ue;exports.TEXT_SIZES=Pr;exports.TOAST_PROVIDER_INJECTION_KEY=qe;exports.TOOLTIP_POSITIONS=Lr;exports.TRUNCATION_TYPES=Rr;exports.createOnyx=Hr;exports.createToastProvider=Pt;exports.normalizedIncludes=It;exports.provideI18n=st;exports.useDensity=B;exports.useScrollEnd=Tt;exports.useToast=Rt;
|
|
183
|
+
`,$l={class:"onyx-color-scheme-dialog__subtitle onyx-text"},Ol=["innerHTML"],Tl=["autofocus","value","checked","aria-label"],Il={class:"onyx-text--small"},Ll={class:"onyx-color-scheme-dialog__actions"},Et=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}=N(),c=e.computed(()=>[{value:"auto",image:Sl,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:Ml,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:Nl,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),i=s=>{const d=s.target;r.value=d.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(s,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(Y,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",$l,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:i},[(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,Ol),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,Tl)]),_:2},1024),e.createVNode(Y,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1024),e.createElementVNode("p",Il,e.toDisplayString(p.description),1)])]))),128))],32),e.createElementVNode("div",Ll,[e.createVNode(re,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:d[0]||(d[0]=p=>l("close"))},null,8,["label"]),e.createVNode(re,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),Dl='<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>',Al=["href","target","rel"],Pl=["disabled"],He=e.defineComponent({__name:"OnyxMenuItem",props:{target:{default:"_self"},href:{},active:{type:Boolean},disabled:{type:Boolean},color:{}},setup(n){const o=n,{t}=N(),{elements:{listItem:l,menuItem:r}}=ht(),a=e.computed(()=>r({active:o.active,disabled:o.disabled}));return(c,i)=>(e.openBlock(),e.createBlock(me,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,Al)):(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"]))}}),Rl={class:"onyx-color-scheme-menu-item__value"},zl=e.defineComponent({__name:"OnyxColorSchemeMenuItem",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{t:r}=N(),a=e.ref(!1);return(c,i)=>(e.openBlock(),e.createBlock(He,{class:"onyx-color-scheme-menu-item",onClick:i[2]||(i[2]=u=>a.value=!0)},{default:e.withCtx(()=>[e.createVNode(w,{icon:e.unref(Dl)},null,8,["icon"]),e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("colorScheme.appearance"))+": ",1),e.createElementVNode("span",Rl,e.toDisplayString(e.unref(r)(`colorScheme.${t.modelValue}.label`)),1)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(Et,{"model-value":t.modelValue,open:a.value,onClose:i[0]||(i[0]=u=>a.value=!1),"onUpdate:modelValue":i[1]||(i[1]=u=>l("update:modelValue",u))},null,8,["model-value","open"])]))]),_:1}))}}),Hl=n=>e.computed(n),K=Symbol("MANAGED_SYMBOL"),se=(n,o,t)=>{const l=e.computed(()=>n.value===K),r=e.ref(e.toValue(l)?o:n.value);return{state:Hl({set:c=>{r.value=c,t(c)},get:()=>l.value?r.value:n.value}),isManaged:l}},Fl=["aria-label"],Fe=e.defineComponent({__name:"OnyxFlyoutMenu",props:{open:{default:K},label:{}},emits:["update:open"],setup(n,{emit:o}){const t=n,l=o,{state:r}=se(e.toRef(()=>t.open),!1,s=>l("update:open",s)),a=e.useSlots(),{elements:{root:c,button:i,menu:u}}=cn({isExpanded:e.computed(()=>!!r.value),onToggle:()=>r.value=!r.value});return(s,d)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"onyx-flyout-menu"},e.unref(c)),[e.renderSlot(s.$slots,"button",{trigger:e.unref(i)}),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(s.$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(s.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"footer")],10,Fl)),[[e.vShow,e.unref(r)]]):e.createCommentVNode("",!0)],16))}}),St='<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>',ee=Symbol(),Nt=Symbol(),Ul='<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>',ql=["aria-orientation"],Mt=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(n){const o=n,t=e.inject(ee);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,ql))}}),Gl={role:"presentation"},Kl=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}=N(),a=o;return(c,i)=>(e.openBlock(),e.createElementBlock("li",Gl,[t.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isMobile&&c.mobileChildrenOpen?(e.openBlock(),e.createBlock(re,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(Ul),onClick:i[0]||(i[0]=u=>a("update:mobileChildrenOpen",!1))},null,8,["label","icon"])):e.createCommentVNode("",!0),!c.mobileChildrenOpen||t.href?e.renderSlot(c.$slots,"button",{key:1,trigger:{trigger:{}}}):e.createCommentVNode("",!0),c.mobileChildrenOpen&&t.href?(e.openBlock(),e.createBlock(Mt,{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(Fe,{key:1,label:e.unref(r)("navItemOptionsLabel",{label:t.label})},e.createSlots({button:e.withCtx(({trigger:u})=>[e.renderSlot(c.$slots,"button",{trigger:u})]),_:2},[l.options?{name:"options",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"options")]),key:"0"}:void 0]),1032,["label"]))]))}}),Zl=["aria-label"],jl={class:"onyx-truncation-ellipsis"},Yl=e.defineComponent({__name:"OnyxNavButton",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},mobileChildrenOpen:{default:K},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(ee),c=e.computed(()=>!!r.children),{componentRef:i,isVisible:u}=Bl(Nt),{state:s}=se(e.toRef(()=>t.mobileChildrenOpen),!1,p=>l("update:mobileChildrenOpen",p)),d=p=>{a!=null&&a.value&&c.value&&!s.value?s.value=!0:t.href&&l("navigate",t.href,p)};return(p,m)=>(e.openBlock(),e.createBlock(Kl,e.mergeProps({ref_key:"componentRef",ref:i},t,{"mobile-children-open":e.unref(s),"onUpdate:mobileChildrenOpen":m[0]||(m[0]=y=>e.isRef(s)?s.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(({trigger:y})=>[e.createElementVNode("button",e.mergeProps({class:["onyx-nav-button__trigger onyx-text",{"onyx-nav-button__link":t.href!=null}],role:"menuitem","aria-label":t.label,type:"button"},y,{onClick:d}),[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",jl,e.toDisplayString(t.label),1),e.createVNode(ue,e.normalizeProps(e.guardReactiveProps(t)),null,16)]),e.unref(a)&&c.value&&!e.unref(s)?(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-nav-button__mobile-chevron",icon:e.unref(St)},null,8,["icon"])):e.createCommentVNode("",!0)],16,Zl)]),_:2},[r.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"children")]),key:"0"}:void 0]),1040,["mobile-children-open","class","is-mobile"]))}}),Jl=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(He,{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(ue,e.normalizeProps(e.guardReactiveProps(t)),null,16)])]),_:3},8,["active","href"]))}}),Wl=n=>{const o=e.ref(),t=e.ref(be(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=be(a),o.value=setInterval(()=>{t.value=be(a),l.value&&clearInterval(o.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(o.value)),{timeLeft:t,isEnded:l}},be=n=>{const o=n-Date.now();return Math.max(o,0)},$t=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}},Xl=(n,o)=>{const{hours:t,minutes:l,seconds:r}=$t(n),a=u=>u.toString().padStart(2,"0");let c="",i=xe(o.formatToParts(n,"seconds"));return l>0&&(i=xe(o.formatToParts(n,"minutes"))),t>0&&(i=xe(o.formatToParts(n,"hours")),c=`${a(t)}:`),`${c}${a(l)}:${a(r)} ${i}`},xe=n=>{var o;return((o=n.at(-1))==null?void 0:o.value.replace(".","").trim())??""},Ql=n=>{const{hours:o,minutes:t,seconds:l}=$t(n);return`PT${o}H${t}M${l}S`},ea=["aria-label"],ta={key:0,class:"onyx-timer__label"},oa=["datetime"],na=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(n,{emit:o}){const t=n,l=o,{locale:r}=N(),{timeLeft:a,isEnded:c}=Wl(e.computed(()=>t.endTime)),i=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Xl(a.value,i.value));return e.watchEffect(()=>c.value&&l("timerEnded")),(s,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",ta,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Ql)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,oa)],8,ea))}}),la={class:"onyx-user-menu__footer onyx-text--small"},aa=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean},flyoutOpen:{default:K}},emits:["update:flyoutOpen"],setup(n){const o=n,t=e.useModel(o,"flyoutOpen"),l=e.useSlots(),{t:r}=N();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(me,{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(Fe,{key:1,open:e.unref(t),"onUpdate:open":c[0]||(c[0]=i=>e.isRef(t)?t.value=i:null),label:e.unref(r)("navigation.userMenuLabel")},e.createSlots({button:e.withCtx(({trigger:i})=>[e.renderSlot(a.$slots,"button",{trigger:i})]),header:e.withCtx(()=>[e.renderSlot(a.$slots,"header")]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"options")]),_:2},[l.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",la,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["open","label"]))]))}}),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:K}},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(ee,e.computed(()=>!1));return(i,u)=>(e.openBlock(),e.createBlock(aa,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(c)}]),"is-mobile":e.unref(c),"flyout-open":i.flyoutOpen,"onUpdate:flyoutOpen":u[0]||(u[0]=s=>l("update:flyoutOpen",s))},e.createSlots({button:e.withCtx(({trigger:s})=>[e.createElementVNode("button",e.mergeProps({class:"onyx-user-menu__trigger onyx-text",type:"button"},s),[e.createVNode(Be,e.mergeProps(a.value,{size:"24px"}),null,16),e.createElementVNode("span",ra,e.toDisplayString(t.username),1)],16)]),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(i.$slots,"default")])]),_:2},[r.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"footer")]),key:"0"}:void 0]),1032,["class","is-mobile","flyout-open"]))}}),Ot='<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 i=c[0].contentBoxSize;l.value=i.reduce((u,{inlineSize:s})=>u+s,0),r.value=i.reduce((u,{blockSize:s})=>u+s,0)};return e.onBeforeMount(()=>{const c=new ResizeObserver(a);e.watch(n,(i,u)=>{u&&(c==null||c.unobserve(u)),i&&(c==null||c.observe(i,{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:i}=ya(c),{t:u}=N(),{elements:{nav:s}}=dn({navigationName:e.toRef(()=>l.appName)}),d=e.ref(!1),p=e.ref(!1),m=e.computed(()=>{const y=typeof l.mobileBreakpoint=="number"?l.mobileBreakpoint:Qe[l.mobileBreakpoint];return i.value!==0&&i.value<y});return e.provide(ee,m),o({closeMobileMenus:()=>{d.value=!1,p.value=!1}}),(y,f)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:c,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":m.value}])},[e.createElementVNode("div",ha,[m.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(Vt,{key:1,class:"onyx-nav-bar__app","app-name":l.appName,"logo-url":l.logoUrl,label:l.appAreaLabel,onClick:f[0]||(f[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(Pe,{key:2,class:"onyx-nav-bar__back",label:e.unref(u)("navigation.goBack"),icon:e.unref(Ot),color:"neutral",onClick:f[1]||(f[1]=h=>r("navigateBack",h))},null,8,["label","icon"])):e.createCommentVNode("",!0),a.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[m.value?(e.openBlock(),e.createBlock(Me,{key:0,open:d.value,"onUpdate:open":[f[2]||(f[2]=h=>d.value=h),f[3]||(f[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(s)),[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(s)),[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},[m.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(Me,{key:1,open:p.value,"onUpdate:open":[f[4]||(f[4]=h=>p.value=h),f[5]||(f[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();Te(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))}}),Tt=n=>{const t=e.ref(!1),l=a=>{const c=a.target;if(!(c instanceof Element))return;const i=e.unref(n.offset)??0;t.value=Math.abs(c.scrollTop)+c.clientHeight>=c.scrollHeight-i-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var i;(((i=n.enabled)==null?void 0:i.value)??!0)&&!n.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},It=(n,o)=>{const t=Xe(n.toLowerCase()),l=Xe(o.toLowerCase());return t.includes(l)},Xe=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"],Lt=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{disabled:{default:I},showError:{default:I},density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},error:{},message:{},success:{},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}=Ct(),a=n,c=t,{t:i}=N(),{vCustomValidity:u,errorMessages:s}=Z({props:a,emit:c}),d=e.computed(()=>q(a.success)),p=e.computed(()=>q(a.message)),{disabled:m,showError:y}=z(a),f=R(a),h=de(y),_=e.computed(()=>a.modelValue?a.modelValue.length:0),g=e.computed(()=>{var x;const O=(x=a.modelValue)==null?void 0:x.length;if(!a.modelValue||!O)return"";if(O===1)return a.modelValue[0];switch(a.textMode){case"preview":return a.modelValue.join(", ");case"summary":default:return i.value("selections.currentSelection",{n:O})}}),k=e.ref(!1),{densityClass:S}=B(a),V=e.ref();o({focus:()=>{var O;return(O=V.value)==null?void 0:O.focus()}}),e.watch(()=>a.showFocus,(O,x)=>{k.value||x&&O===!1&&(k.value=!0)});const M=ft.concat(yt),U=O=>{M.includes(O.key)||O.preventDefault()};return(O,x)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(S)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(T,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(S),e.unref(h),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(pe,e.mergeProps(a,{message:p.value,"success-messages":d.value,"error-messages":e.unref(s)}),{default:e.withCtx(({id:E})=>[e.createElementVNode("div",{class:"onyx-select-input__wrapper",onClick:x[0]||(x[0]=L=>!e.unref(m)&&!a.loading&&c("inputClick"))},[a.loading?(e.openBlock(),e.createBlock(F,{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:V,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--touched":k.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:e.unref(m)||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:g.value,autofocus:a.autofocus,autocomplete:"off",onKeydown:U}),null,16,Ma),[[e.unref(u)]]),a.textMode==="preview"&&_.value>0?(e.openBlock(),e.createBlock(Q,{key:1,text:g.value,position:"bottom"},{default:e.withCtx(({trigger:L})=>[e.createVNode(et,e.mergeProps({class:"onyx-select-input__badge"},L,{color:"neutral"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.value),1)]),_:2},1040)]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button",type:"button","aria-label":e.unref(i)("select.toggleDropDown"),tabindex:"-1",disabled:e.unref(m)||a.readonly||a.loading},[e.createVNode(w,{icon:e.unref(Na)},null,8,["icon"])],8,$a)])]),_:1},16,["message","success-messages","error-messages"])],16))}}),Oa=["checked","aria-labelledby","disabled","indeterminate"],$e=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(me,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(w,{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"},Dt=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{default:K},showError:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},textMode:{},skeleton:{type:[Symbol,Boolean,Number]},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},truncation:{default:"ellipsis"},disabled:{default:I},valueLabel:{default:void 0},open:{default:K},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}=B(t),a=e.useSlots(),{t:c}=N(),{state:i,isManaged:u}=se(e.toRef(()=>t.searchTerm),"",v=>l("update:searchTerm",v)),{state:s}=se(e.toRef(()=>t.open),!1,v=>l("update:open",v)),d=e.ref(),{openDirection:p,updateOpenDirection:m}=_t(d),y=e.ref(),f=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]:f.value.reduce((v,C)=>{var D;const $=(D=t.options.find(({value:P})=>P===C))==null?void 0:D.label;return $&&v.push($),v},[])),_=e.ref(),g=e.ref(),k=e.computed(()=>u.value&&i.value?t.options.filter(({label:v})=>It(v,i.value)):t.options);e.watch(f,()=>{t.multiple||(y.value=f.value.at(0))},{immediate:!0});const S=e.useId(),V=e.computed(()=>(t.multiple&&t.withCheckAll&&!i.value?[S]:[]).concat(Ze.value)),M=async v=>{var $,D;if(t.readonly){s.value=!1;return}const C=s.value;s.value=!C,await e.nextTick(),s.value&&m(),C!==s.value&&(C?(i.value&&(i.value=""),v||($=g.value)==null||$.focus()):(D=_.value)==null||D.focus())},U=()=>y.value=V.value.at(0),O=()=>y.value=V.value.at(-1),x=v=>{const C=V.value.findIndex($=>$===v);C<V.value.length-1&&(y.value=V.value[C+1])},E=v=>{const C=V.value.findIndex($=>$===v);C>0&&(y.value=V.value[C-1])},L=v=>{const C=k.value.find($=>$.label.toLowerCase().trim().startsWith(v.toLowerCase()));C&&(y.value=C.value)},W=v=>i.value=v,X=v=>{var D;if(v===S){(D=te.value)==null||D.handleChange(!te.value.state.value.modelValue);return}if(!k.value.find(({value:P})=>P===v))return;if(!t.multiple)return l("update:modelValue",v);f.value.some(P=>P===v)?l("update:modelValue",f.value.filter(P=>P!==v)):l("update:modelValue",[...f.value,v])},fe=e.computed(()=>t.withSearch?"list":"none"),{label:b,listLabel:ye,listDescription:zt,multiple:Ht}=e.toRefs(t),{elements:{input:he,option:Ge,group:Ke,listbox:Ft}}=sn({autocomplete:fe,label:b,listLabel:ye,listDescription:zt,multiple:Ht,activeOption:e.computed(()=>y.value),isExpanded:s,templateRef:d,onToggle:M,onActivateFirst:U,onActivateLast:O,onActivateNext:x,onActivatePrevious:E,onTypeAhead:L,onAutocomplete:W,onSelect:X}),Ut=e.computed(()=>Yo(k.value,"group")),{vScrollEnd:qt,isScrollEnd:Gt}=Tt({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(!k.value.length)return t.withSearch&&i.value?c.value("select.noMatch"):c.value("select.empty")}),Ze=e.computed(()=>k.value.filter(v=>!v.disabled).map(({value:v})=>v)),te=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return gt(Ze,f,v=>{const C=v.map($=>{var D;return(D=t.options.find(({value:P})=>P===$))==null?void 0:D.value}).filter($=>$!=null);l("update:modelValue",C)})}),_e=e.computed(()=>{var C;if(!t.multiple)return"";const v=c.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?v:((C=t.withCheckAll)==null?void 0:C.label)??v});e.watchEffect(()=>{Gt.value&&l("lazyLoad")});const Kt=e.computed(()=>{const v={...t,open:void 0,modelValue:h.value};return t.withSearch?{...v,onKeydown:he.value.onKeydown}:{...v,...he.value}});return(v,C)=>{var $,D,P;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:d,class:"onyx-select-wrapper"},[e.createVNode(Lt,e.mergeProps({ref_key:"selectInput",ref:g},Kt.value,{"show-focus":e.unref(s),autofocus:t.autofocus,onInputClick:M,onValidityChange:C[0]||(C[0]=oe=>l("validityChange",oe))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(r),e.unref(s)?"onyx-select--open":"",`onyx-select--${e.unref(p)}`,`onyx-select--${t.alignment}`]),inert:!e.unref(s)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ia,[t.withSearch?(e.openBlock(),e.createBlock(wt,e.mergeProps({key:0,ref_key:"miniSearch",ref:_,"model-value":e.unref(i)},e.unref(he),{label:e.unref(c)("select.searchInputLabel"),class:"onyx-select__search",onClear:C[1]||(C[1]=oe=>i.value="")}),null,16,["model-value","label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(Ft))),[ve.value?(e.openBlock(),e.createElementBlock("ul",La,[e.createElementVNode("li",Da,[e.renderSlot(v.$slots,"empty",{defaultMessage:ve.value},()=>[e.createVNode(Ae,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(i)?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0,class:"onyx-select__check-all"},e.unref(Ke)({label:_e.value})),[e.createVNode($e,e.mergeProps(e.unref(Ge)({value:e.unref(S),label:_e.value,selected:($=te.value)==null?void 0:$.state.value.modelValue}),{multiple:"",active:e.unref(S)===y.value,indeterminate:(D=te.value)==null?void 0:D.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(Ut.value,(oe,ne)=>(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:ne,class:"onyx-select__group",ref_for:!0},e.unref(Ke)({label:ne})),[ne!=""?(e.openBlock(),e.createElementBlock("li",Aa,e.toDisplayString(ne),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe,H=>(e.openBlock(),e.createBlock($e,e.mergeProps({key:H.value.toString(),ref_for:!0},e.unref(Ge)({value:H.value,label:H.label,disabled:H.disabled,selected:f.value.some(Zt=>Zt===H.value)}),{multiple:t.multiple,active:H.value===y.value,icon:H.icon,density:t.density,truncation:H.truncation??t.truncation}),{default:e.withCtx(()=>[e.renderSlot(v.$slots,"option",e.mergeProps({ref_for:!0},H),()=>[e.createTextVNode(e.toDisplayString(H.label),1)])]),_:2},1040,["multiple","active","icon","density","truncation"]))),128))],16))),128))],64))],16),(P=t.lazyLoading)!=null&&P.loading?(e.openBlock(),e.createElementBlock("div",Pa,[e.createVNode(F,{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(qt)]]),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}=N(),{densityClass:a}=B(t),c=e.computed(()=>Array.from({length:t.pages},(s,d)=>{const p=d+1;return{label:p.toString(),value:p}})),i=e.computed(()=>t.modelValue<=1),u=e.computed(()=>t.modelValue>=t.pages);return(s,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(Dt,{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||i.value,onClick:d[1]||(d[1]=p=>l("update:modelValue",t.modelValue-1))},[e.createVNode(w,{icon:e.unref(Ot)},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(w,{icon:e.unref(St)},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"],Oe=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{default:I},loading:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A},truncation:{default:"ellipsis"},customError:{},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}=Z({props:t,emit:l}),{densityClass:c}=B(t),{disabled:i}=z(t),u=R(t);return(s,d)=>e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(c)])},[e.createVNode(T,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(T,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(i),"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(F,{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(i),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:{},truncation:{default:"ellipsis"},label:{},hideLabel:{type:Boolean},name:{default:()=>e.useId()},options:{},modelValue:{},disabled:{default:I},direction:{default:"vertical"},skeleton:{type:[Symbol,Boolean,Number],default:A}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,{densityClass:l}=B(t),{requiredMarkerClass:r,requiredTypeClass:a}=ie(t),{disabled:c}=z(t),i=R(t),u=o,s=(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(Y,{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(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,{id:`skeleton-${m}`,key:m,value:`skeleton-${m}`,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,(m,y)=>(e.openBlock(),e.createBlock(Oe,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{name:t.name,"custom-error":t.customError,checked:m.value===t.modelValue,required:t.required,truncation:m.truncation??t.truncation,onValidityChange:f=>y===0&&u("validityChange",f),onChange:f=>s(f,m.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)},le=(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:I},showError:{default:I},density:{},customError:{},required:{type:Boolean},requiredMarker:{},id:{},name:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},error:{},message:{},success:{},autofocus:{type:Boolean},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}=N(),r=e.ref(),a=o,{disabled:c,showError:i}=z(t),u=R(t),s=de(i),{densityClass:d}=B(t),{vCustomValidity:p,errorMessages:m}=Z({props:t,emit:a}),y=e.computed(()=>q(t.success)),f=e.computed(()=>q(t.message)),h=e.ref(!1),_=e.useModel(n,"modelValue"),g=e.ref(),k=e.computed(()=>{const x=t.precision,E=x.toString();return E.includes(".")?E.split(".")[1].length:-Math.floor(Math.log10(x))});e.watch(_,()=>g.value=le(_.value,k.value),{immediate:!0});const S=e.computed(()=>Math.max(t.stepSize??t.precision,t.precision)),V=x=>{if(!r.value)return;h.value=!0;const E=_.value||0,L=(x==="stepUp"?1:-1)*S.value,W=E+L,X=Math.round(W/t.precision)*t.precision;_.value=or(X,t.min,t.max)},M=()=>{if(!r.value)return;h.value=!0;const x=parseFloat(g.value??""),E=parseFloat(le(x,k.value));if(g.value=le(x,k.value),!x||isNaN(x)){_.value=void 0;return}if(t.stripStep&&(!tr(x,t.precision)||t.min!==void 0&&t.min>x||t.max!==void 0&&t.max<x)){g.value=le(_.value,k.value);return}_.value=E},U=e.computed(()=>l.value("stepper.increment",{stepSize:S.value})),O=e.computed(()=>l.value("stepper.decrement",{stepSize:S.value}));return(x,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(T,{key:0,class:"onyx-stepper-skeleton__label"})),e.createVNode(T,{class:"onyx-stepper-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-stepper",e.unref(d),e.unref(s)])},[e.createVNode(pe,e.mergeProps(t,{message:f.value,"success-messages":y.value,"error-messages":e.unref(m)}),{default:e.withCtx(()=>[e.createElementVNode("div",nr,[e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||x.readonly||t.loading||t.min!==void 0&&_.value!==void 0&&_.value<=t.min,"aria-label":O.value,tabindex:"-1",onClick:E[0]||(E[0]=L=>V("stepDown"))},[e.createVNode(w,{icon:e.unref(Qa)},null,8,["icon"])],8,lr),t.loading?(e.openBlock(),e.createBlock(F,{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]=L=>g.value=L),class:e.normalizeClass(["onyx-stepper__native",{"onyx-stepper__native--touched":h.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:M,onKeydown:[E[2]||(E[2]=e.withKeys(e.withModifiers(L=>V("stepUp"),["prevent"]),["up"])),E[3]||(E[3]=e.withKeys(e.withModifiers(L=>V("stepDown"),["prevent"]),["down"]))]},null,42,ar)),[[e.vModelText,g.value],[e.unref(p)]]),e.createElementVNode("button",{type:"button",class:"onyx-stepper__counter",disabled:e.unref(c)||x.readonly||t.loading||t.max!==void 0&&_.value!==void 0&&_.value>=t.max,"aria-label":U.value,tabindex:"-1",onClick:E[4]||(E[4]=L=>V("stepUp"))},[e.createVNode(w,{icon:e.unref(er)},null,8,["icon"])],8,rr)])]),_:1},16,["message","success-messages","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:I},showError:{},density:{},required:{type:Boolean},requiredMarker:{},customError:{},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}=ie(t),{densityClass:c}=B(t),{disabled:i,showError:u}=z(t),{vCustomValidity:s,errorMessages:d}=Z({props:t,emit:l}),p=e.computed(()=>u.value!==!1?d.value:void 0),m=e.computed(()=>t.hideLabel&&t.label||void 0),y=R(t),f=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(T,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(De,{key:1,disabled:e.unref(i),"error-messages":p.value},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(c)]]),title:m.value},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=g=>f.value=g),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(i)||t.loading,required:t.required,autofocus:t.autofocus},null,10,dr),[[e.vModelCheckbox,f.value],[e.unref(s)]]),e.createElementVNode("span",pr,[e.createElementVNode("span",mr,[e.createElementVNode("span",fr,[t.loading?(e.openBlock(),e.createBlock(F,{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(w,{key:1,icon:f.value?e.unref(ir):e.unref(ze)},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"]))}}),Ue=Symbol(),hr=["disabled"],vr={class:"onyx-tab__label"},_r=e.defineComponent({__name:"OnyxTab",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},skeleton:{type:[Symbol,Boolean,Number],default:A}},setup(n){const o=n,{densityClass:t}=B(o),l=e.inject(Ue),r=R(o),a=e.computed(()=>`onyx-tab--${l==null?void 0:l.size.value}`),c=e.computed(()=>l==null?void 0:l.headless.elements.tab.value({value:o.value,disabled:o.disabled||!!r.value}));return(i,u)=>{var s,d,p,m,y;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?(e.openBlock(),e.createBlock(T,e.mergeProps({key:0,class:["onyx-tab-skeleton",e.unref(t),a.value]},c.value),null,16,["class"])):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:["onyx-tab",e.unref(t),a.value,(s=c.value)!=null&&s["aria-selected"]?"onyx-tab--selected":""]},c.value,{type:"button",disabled:o.disabled}),[e.createElementVNode("div",vr,[e.renderSlot(i.$slots,"tab",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])])],16,hr)),(e.openBlock(),e.createBlock(e.Teleport,{to:(d=e.unref(l))==null?void 0:d.panelRef.value,disabled:!((p=e.unref(l))!=null&&p.panelRef.value),defer:""},[(m=c.value)!=null&&m["aria-selected"]?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},(y=e.unref(l))==null?void 0:y.headless.elements.tabpanel.value({value:o.value}),{class:"onyx-tab__panel"}),[e.renderSlot(i.$slots,"default")],16)):e.createCommentVNode("",!0)],8,["to","disabled"]))],64)}}}),gr=e.defineComponent({__name:"OnyxTabs",props:{density:{},skeleton:{type:Boolean},label:{},modelValue:{},stretched:{type:Boolean},size:{default:"h2"}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,l=o,{densityClass:r}=B(t),a=pn({label:e.toRef(t,"label"),selectedTab:e.toRef(()=>t.modelValue),onSelect:i=>l("update:modelValue",i)}),c=e.ref();return Te(t),e.provide(Ue,{headless:a,panelRef:c,size:e.toRef(t,"size")}),(i,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(i.$slots,"default")],16)],2))}}),kr={class:"onyx-text onyx-truncation-ellipsis"},br=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(n){const o=n,{densityClass:t}=B(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(w,{key:0,icon:o.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",kr,e.toDisplayString(o.label),1)],2))}}),xr=["data-autosize-value"],Br=["id","placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],Cr=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{default:I},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},success:{},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}=Z({props:t,emit:l}),{densityClass:c}=B(t),i=e.computed(()=>q(t.success)),u=e.computed(()=>q(t.message)),s=e.computed({get:()=>t.modelValue,set:_=>l("update:modelValue",_)}),d=e.computed(()=>{if(!t.autosize)return;const _=t.autosize.min?Math.max(t.autosize.min,2):void 0,g=t.autosize.max;return[_?`--min-autosize-rows: ${_}`:"",`--max-autosize-rows: ${g??"unset"}`]}),p=_=>{var k;const g=_.target;(k=g.parentElement)==null||k.setAttribute("data-autosize-value",g.value)},{disabled:m,showError:y}=z(t),f=R(t),h=de(y);return(_,g)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(c)]),style:e.normalizeStyle(d.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(T,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(h),e.unref(c)]),style:e.normalizeStyle(d.value)},[e.createVNode(pe,e.mergeProps(t,{message:u.value,"success-messages":i.value,"error-messages":e.unref(a)}),{default:e.withCtx(({id:k})=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":s.value},[e.withDirectives(e.createElementVNode("textarea",{id:k,"onUpdate:modelValue":g[0]||(g[0]=S=>s.value=S),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(m),minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:p},null,42,Br),[[e.vModelText,s.value],[e.unref(r)]])],8,xr)]),_:1},16,["message","success-messages","error-messages"])],6))}}),wr='<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>',Vr='<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>',Er={class:"onyx-toast-message__wrapper"},Sr={class:"onyx-toast-message__content onyx-truncation-ellipsis"},Nr={class:"onyx-toast-message__headline onyx-text"},Mr={class:"onyx-truncation-ellipsis"},$r=["aria-label"],Or={key:0,class:"onyx-toast-message__description onyx-text--small onyx-truncation-multiline",tabindex:"0"},At=e.defineComponent({__name:"OnyxToastMessage",props:{density:{},headline:{},description:{},color:{default:"neutral"},duration:{default:5e3},clickable:{type:Boolean,default:!1},icon:{type:[String,Boolean],default:void 0}},emits:["close"],setup(n,{emit:o}){const t=n,l=o,{t:r}=N(),{densityClass:a}=B(t),c=e.computed(()=>t.duration>0),i={neutral:Ne,danger:kt,warning:wr,success:Vr},u=e.computed(()=>{if(t.icon!==!1)return t.icon||i[t.color]});return(s,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",Er,[u.value?(e.openBlock(),e.createBlock(w,{key:0,icon:u.value},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",Sr,[e.createElementVNode("div",Nr,[e.createElementVNode("span",Mr,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(w,{icon:e.unref(ze)},null,8,["icon"])],8,$r))]),t.description?(e.openBlock(),e.createElementBlock("p",Or,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"]))}}),qe=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}},Rt=()=>{const n=()=>{console.warn('Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.')};return e.inject(qe,()=>({toasts:e.computed(()=>[]),show:n,remove:n}),!0)},Tr={key:0,class:"onyx-toast",role:"presentation","aria-live":"polite",open:""},Ir=e.defineComponent({__name:"OnyxToast",setup(n){const o=Rt();return(t,l)=>e.unref(o).toasts.value.length?(e.openBlock(),e.createElementBlock("dialog",Tr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).toasts.value,({id:r,...a})=>(e.openBlock(),e.createBlock(At,e.mergeProps({key:r,ref_for:!0},a),null,16))),128))])):e.createCommentVNode("",!0)}}),Lr=["top","bottom","auto"],Dr=e.defineComponent({__name:"OnyxForm",props:{disabled:{type:Boolean,default:!1},showError:{default:"touched"},skeleton:{type:Boolean},density:{}},setup(n){const o=n;so(o),Te(o);const{densityClass:t}=B(o);return(l,r)=>(e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass({"onyx-form":!0,...e.unref(t)})},[e.renderSlot(l.$slots,"default")],2))}}),Ar=["primary","secondary","neutral","danger","warning","success","info"],Pr=["small","default","large"],Rr=["ellipsis","multiline"],zr=["horizontal","vertical"],Hr=(n={})=>({install:o=>{st(o,n.i18n);const t=o.runWithContext(()=>N());o.provide(qe,Pt()),o.mixin({beforeMount:()=>{e.watchEffect(()=>{Fr(t.t.value("optional"))})}})}}),Fr=n=>{var o;(o=globalThis.document)==null||o.body.style.setProperty("--onyx-global-optional-text",n)};exports.AUTOCAPITALIZE=ul;exports.BUTTON_COLORS=Eo;exports.BUTTON_MODES=So;exports.BUTTON_TYPES=Vo;exports.DENSITIES=lo;exports.DIRECTIONS=zr;exports.DataGridFeatures=Kn;exports.HEADLINE_TYPES=Jn;exports.ICON_SIZES=Wn;exports.INPUT_TYPES=cl;exports.LINK_TARGETS=ml;exports.MOBILE_NAV_BAR_INJECTION_KEY=ee;exports.MULTISELECT_TEXT_MODE=Xa;exports.NAV_BAR_MORE_LIST_INJECTION_KEY=Nt;exports.ONYX_BREAKPOINTS=Qe;exports.ONYX_COLORS=Ar;exports.OnyxAppLayout=Xt;exports.OnyxAvatar=Be;exports.OnyxAvatarStack=no;exports.OnyxBadge=et;exports.OnyxButton=re;exports.OnyxCheckbox=ae;exports.OnyxCheckboxGroup=xn;exports.OnyxColorSchemeDialog=Et;exports.OnyxColorSchemeMenuItem=zl;exports.OnyxDataGrid=Rn;exports.OnyxDataGridRenderer=xt;exports.OnyxDialog=Bt;exports.OnyxEmpty=Ae;exports.OnyxExternalLinkIcon=ue;exports.OnyxFlyoutMenu=Fe;exports.OnyxForm=Dr;exports.OnyxHeadline=Y;exports.OnyxIcon=w;exports.OnyxIconButton=Pe;exports.OnyxInfoTooltip=Re;exports.OnyxInput=il;exports.OnyxLink=pl;exports.OnyxListItem=me;exports.OnyxLoadingIndicator=F;exports.OnyxMenuItem=He;exports.OnyxMiniSearch=wt;exports.OnyxMobileNavButton=Me;exports.OnyxMoreList=Cl;exports.OnyxNavAppArea=Vt;exports.OnyxNavBar=Ca;exports.OnyxNavButton=Yl;exports.OnyxNavItem=Jl;exports.OnyxNavSeparator=Mt;exports.OnyxPageLayout=Sa;exports.OnyxPagination=Ka;exports.OnyxRadioButton=Oe;exports.OnyxRadioGroup=Ja;exports.OnyxSelect=Dt;exports.OnyxSelectInput=Lt;exports.OnyxSelectOption=$e;exports.OnyxSkeleton=T;exports.OnyxStepper=sr;exports.OnyxSwitch=yr;exports.OnyxTab=_r;exports.OnyxTable=bt;exports.OnyxTabs=gr;exports.OnyxTag=br;exports.OnyxTextarea=Cr;exports.OnyxTimer=na;exports.OnyxToast=Ir;exports.OnyxToastMessage=At;exports.OnyxTooltip=Q;exports.OnyxUserMenu=pa;exports.OnyxVisuallyHidden=J;exports.SELECT_ALIGNMENTS=Wa;exports.TABS_INJECTION_KEY=Ue;exports.TEXT_SIZES=Pr;exports.TOAST_PROVIDER_INJECTION_KEY=qe;exports.TOOLTIP_POSITIONS=Lr;exports.TRUNCATION_TYPES=Rr;exports.createOnyx=Hr;exports.createToastProvider=Pt;exports.normalizedIncludes=It;exports.provideI18n=st;exports.useDensity=B;exports.useScrollEnd=Tt;exports.useToast=Rt;
|