sit-onyx 1.0.0-beta.49 → 1.0.0-beta.50
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 +1 -1
- package/dist/index.js +539 -539
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Vt={key:0,class:"onyx-app__nav"},wt={class:"onyx-app__page"},Et={key:1,class:"onyx-app__page-overlay"},St={key:2,class:"onyx-app__app-overlay"},Nt=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",Vt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",St,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Mt=["title"],$t=["src","alt"],Ot={key:1,class:"onyx-avatar__initials"},ye=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,s)=>(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:s[0]||(s[0]=c=>r.value=!0)},null,40,$t)):(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Mt))}}),Tt={class:"onyx-avatar-stack"},It=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Tt,[e.renderSlot(o.$slots,"default")]))}}),Lt=["compact","default","cozy"],b=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:n.density}))}),Dt=["innerHTML"],g=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,Dt))}}),Ae=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(g,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),Pt=Symbol(),M=Symbol("FORM_INJECTED_SYMBOL"),At=(n,o,t,l)=>e.computed(()=>{const r=o[t];return r!=null&&r!==M?r:l}),zt=n=>o=>({disabled:At(n,o,"disabled",!1)}),Ht=zt(),T=n=>e.inject(Pt,Ht)(n),Ce=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},Rt={},Ft={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function Ut(n,o){return e.openBlock(),e.createElementBlock("svg",Ft,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const qt=Ce(Rt,[["render",Ut]]),Gt={},Zt={class:"onyx-loading-dots"};function Kt(n,o){return e.openBlock(),e.createElementBlock("div",Zt,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const jt=Ce(Gt,[["render",Kt]]),L=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(qt,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(jt,{key:1})):e.createCommentVNode("",!0)}}),Yt=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=c=>{var u;const p=(u=n.value)==null?void 0:u.getBoundingClientRect();if(!p)return;o.value=!0;const i={id:Date.now().toString(),left:`${c.x-p.left}px`,top:`${c.y-p.top}px`,animationEnded:!1};return t.set(i.id,i),i.id},r=c=>{const p=c.dataset.rippleid;p!=null&&(t.has(p)&&(t.get(p).animationEnded=!0),o.value||t.delete(p))},a=()=>{o.value=!1,t.forEach((c,p)=>{c.animationEnded&&t.delete(p)})},s=e.ref({});return e.onBeforeMount(()=>{var c;(c=window.matchMedia)!=null&&c.call(window,"pointer: none").matches?s.value={touchstart:l,touchend:a,touchcancel:a}:s.value={mousedown:l,mouseleave:a,mouseup:a}}),{isPointerDown:o,ripples:t,startRipple:l,hideRipples:a,hideRipple:r,events:s}},Xt=["data-rippleid"],Jt=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=Yt(t);return o({events:a}),(s,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),([p,i])=>(e.openBlock(),e.createElementBlock("span",{key:p,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":i.left,"--onyx-ripple-top":i.top}),"data-rippleid":p,onAnimationend:c[0]||(c[0]=u=>e.unref(r)(u.target))},null,44,Xt))),128))],512))}}),Wt={},Qt={"aria-hidden":"true",class:"onyx-skeleton"};function eo(n,o){return e.openBlock(),e.createElementBlock("figure",Qt)}const w=Ce(Wt,[["render",eo]]),to=["disabled","type","aria-label","autofocus"],oo={class:"onyx-button__label onyx-truncation-ellipsis"},J=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:M},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=b(o),{disabled:l}=T(o),r=e.ref(),a=e.computed(()=>{var s;return((s=r.value)==null?void 0:s.events)??{}});return(s,c)=>o.skeleton?(e.openBlock(),e.createBlock(w,{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(a.value,!0)),[!o.disabled&&!o.loading?(e.openBlock(),e.createBlock(Jt,{key:0,ref_key:"rippleRef",ref:r},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(g,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(L,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",oo,e.toDisplayString(o.label),1)],16,to))}}),no=["button","submit","reset"],lo=["primary","neutral","danger"],ao=["default","outline","plain"],Q=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),ro="(optional)",so="Cancel",io="Apply",co="Back",uo="Close",po={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.'}}},mo={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"},fo={selectAll:"Select all",currentSelection:"{n} selected"},yo={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},ho={empty:"This table is empty."},vo={opensExternally:"Opens in a new tab."},_o="Subpages of {label}",ko={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"},xo={info:"Toggle info tooltip",error:"Toggle error tooltip"},go={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."}},bo={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},he={optional:ro,cancel:so,apply:io,back:co,close:uo,validations:po,select:mo,selections:fo,stepper:yo,table:ho,link:vo,navItemOptionsLabel:_o,navigation:ko,tooltip:xo,colorScheme:go,pagination:bo},ze=Symbol(),He=(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]:he),l=e.computed(()=>(r,a={})=>{let s=Ie(r,t.value)??Ie(r,he)??"";return s=Bo(s,a.n),Co(s,a)});return{locale:o,t:l}},Re=(n,o)=>{const t=He(o);return n.provide(ze,t),t},C=()=>e.inject(ze,()=>He(),!0),Ie=(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},Bo=(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]},Co=(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,Vo=(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])},wo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Fe=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Eo=n=>Fe().reduce((o,t)=>(o[t]=n[t],o),{}),So=n=>{if(n.valueMissing)return"valueMissing";const o=Fe().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},No=Object.keys(he.validations.typeMismatch),Mo=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n}:n},Ue=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}`},A=n=>{const{t:o}=C(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Ue(n.props.customError)??"")),e.watch([()=>n.props],()=>{const c=Eo(s.validity);!t.value&&c.valid||t.value&&Vo(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 i,u,d;if(!t.value||t.value.valid)return;const s=So(t.value),c=Mo(n.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const f=No.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${f}.fullError`,{value:(i=n.props.modelValue)==null?void 0:i.toString()}),shortMessage:o.value(`validations.typeMismatch.${f}.preview`)}}const p={value:(u=n.props.modelValue)==null?void 0:u.toString(),n:((d=n.props.modelValue)==null?void 0:d.toString().length)??0,minLength:n.props.minlength,maxLength:n.props.maxlength,min:n.props.min,max:n.props.max,step:n.props.step};return{longMessage:o.value(`validations.${s}.fullError`,p),shortMessage:o.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},z=n=>n;function ve(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const $o=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),Oo=(n,o)=>typeof o=="string"?n.key===o:$o({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),_e=n=>!Io.has(n),To=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Symbol","SymbolLock","Hyper","Super","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHankaku","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","Soft1","Soft2","Soft3","Soft4","ChannelDown","ChannelUp","Close","MailForward","MailReply","MailSend","MediaClose","MediaFastForward","MediaPause","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaTrackNext","MediaTrackPrevious","New","Open","Print","Save","SpellCheck","Key11","Key12","AudioBalanceLeft","AudioBalanceRight","AudioBassBoostDown","AudioBassBoostToggle","AudioBassBoostUp","AudioFaderFront","AudioFaderRear","AudioSurroundModeNext","AudioTrebleDown","AudioTrebleUp","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","MicrophoneToggle","MicrophoneVolumeDown","MicrophoneVolumeUp","MicrophoneVolumeMute","SpeechCorrectionList","SpeechInputToggle","LaunchApplication1","LaunchApplication2","LaunchCalendar","LaunchContacts","LaunchMail","LaunchMediaPlayer","LaunchMusicPlayer","LaunchPhone","LaunchScreenSaver","LaunchSpreadsheet","LaunchWebBrowser","LaunchWebCam","LaunchWordProcessor","BrowserBack","BrowserFavorites","BrowserForward","BrowserHome","BrowserRefresh","BrowserSearch","BrowserStop","AppSwitch","Call","Camera","CameraFocus","EndCall","GoBack","GoHome","HeadsetHook","LastNumberRedial","Notification","MannerMode","VoiceDial","TV","TV3DMode","TVAntennaCable","TVAudioDescription","TVAudioDescriptionMixDown","TVAudioDescriptionMixUp","TVContentsMenu","TVDataService","TVInput","TVInputComponent1","TVInputComponent2","TVInputComposite1","TVInputComposite2","TVInputHDMI1","TVInputHDMI2","TVInputHDMI3","TVInputHDMI4","TVInputVGA1","TVMediaContext","TVNetwork","TVNumberEntry","TVPower","TVRadioService","TVSatellite","TVSatelliteBS","TVSatelliteCS","TVSatelliteToggle","TVTerrestrialAnalog","TVTerrestrialDigital","TVTimer","AVRInput","AVRPower","ColorF0Red","ColorF1Green","ColorF2Yellow","ColorF3Blue","ColorF4Grey","ColorF5Brown","ClosedCaptionToggle","Dimmer","DisplaySwap","DVR","Exit","FavoriteClear0","FavoriteClear1","FavoriteClear2","FavoriteClear3","FavoriteRecall0","FavoriteRecall1","FavoriteRecall2","FavoriteRecall3","FavoriteStore0","FavoriteStore1","FavoriteStore2","FavoriteStore3","Guide","GuideNextDay","GuidePreviousDay","Info","InstantReplay","Link","ListProgram","LiveContent","Lock","MediaApps","MediaAudioTrack","MediaLast","MediaSkipBackward","MediaSkipForward","MediaStepBackward","MediaStepForward","MediaTopMenu","NavigateIn","NavigateNext","NavigateOut","NavigatePrevious","NextFavoriteChannel","NextUserProfile","OnDemand","Pairing","PinPDown","PinPMove","PinPToggle","PinPUp","PlaySpeedDown","PlaySpeedReset","PlaySpeedUp","RandomToggle","RcLowBattery","RecordSpeedNext","RfBypass","ScanChannelsToggle","ScreenModeNext","Settings","SplitScreenToggle","STBInput","STBPower","Subtitle","Teletext","VideoModeNext","Wink","ZoomToggle","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","BrowserBack","BrowserForward","ChannelDown","ChannelUp","ContextMenu","Eject","End","Enter","Home","MediaFastForward","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaNextTrack","MediaPause","MediaPreviousTrack","Power","Unidentified"],Io=new Set(To),H=e.reactive(new Map),Lo=(n,o)=>{if(o!=null&&o.size){H.set(n,o);return}H.delete(n),document.removeEventListener(n,qe)},Le=(n,o)=>{const t=H.get(n);t==null||t.delete(o),Lo(n,t)},Do=(n,o)=>{const t=H.get(n)??new Set;t.add(o),H.set(n,t),document.addEventListener(n,qe)},qe=n=>{var t;const o=n.type;(t=H.get(o))==null||t.forEach(l=>l(n))},Ve=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Le(n,o):Do(n,o))),e.onBeforeUnmount(()=>Le(n,o))},Ge=({inside:n,onOutsideClick:o,disabled:t})=>{Ve({type:"click",listener:r=>{const a=e.toValue(n);!(Array.isArray(a)?a:[a]).some(p=>p==null?void 0:p.contains(r.target))&&o(r)},disabled:t})},Ze=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},Ke=(n,o=500)=>{let t="";const l=Ze(()=>t="",o);return r=>{_e(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},Po=z(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=i=>(l.has(i)||l.set(i,e.useId()??i.toString()),l.get(i)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const i=r(n.activeOption.value);await e.nextTick(()=>{var u;(u=document.getElementById(i))==null||u.scrollIntoView({block:"end",inline:"nearest"})})});const s=Ke(i=>{var u;return(u=n.onTypeAhead)==null?void 0:u.call(n,i)}),c=i=>{var u,d,f,m,y,_,B;switch(i.key){case" ":i.preventDefault(),n.activeOption.value!=null&&((u=n.onSelect)==null||u.call(n,n.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),n.activeOption.value==null){(d=n.onActivateLast)==null||d.call(n);return}(f=n.onActivatePrevious)==null||f.call(n,n.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),n.activeOption.value==null){(m=n.onActivateFirst)==null||m.call(n);return}(y=n.onActivateNext)==null||y.call(n,n.activeOption.value);break;case"Home":i.preventDefault(),(_=n.onActivateFirst)==null||_.call(n);break;case"End":i.preventDefault(),(B=n.onActivateLast)==null||B.call(n);break;default:s(i)}};return{elements:{listbox:e.computed(()=>n.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"0","aria-activedescendant":n.activeOption.value!=null?r(n.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:c}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const u=i.selected??!1;return{id:r(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":o.value?u:void 0,"aria-selected":o.value?void 0:u,onClick:()=>{var d;return!i.disabled&&((d=n.onSelect)==null?void 0:d.call(n,i.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),je=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ye=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],De=["Enter"],Ao=(n,o)=>{const t=o?[...De," "]:De;return ke(n,t)},ke=(n,o)=>o.some(t=>Oo(n,t)),zo=z(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:s,isExpanded:c,activeOption:p,onToggle:i,onSelect:u,onActivateFirst:d,onActivateLast:f,onActivateNext:m,onActivatePrevious:y,templateRef:_})=>{const B=e.useId(),E=e.computed(()=>e.unref(n)),k=e.computed(()=>e.unref(c)),S=e.computed(()=>e.unref(l)),O=v=>{const G=v.target;E.value!=="none"&&(o==null||o(G.value))},D=Ke(v=>t==null?void 0:t(v)),q=v=>{u==null||u(v),e.unref(S)||i==null||i()},le=v=>{switch(v.key){case"ArrowUp":if(v.preventDefault(),p.value==null)return f==null?void 0:f();y==null||y(p.value);break;case"ArrowDown":if(v.preventDefault(),p.value==null)return d==null?void 0:d();m==null||m(p.value);break;case"Home":v.preventDefault(),d==null||d();break;case"End":v.preventDefault(),f==null||f();break}},ae=v=>{if(v.key==="Enter"&&v.preventDefault(),!k.value&&ke(v,je))return i==null||i(),v.key===" "&&v.preventDefault(),v.key==="End"?f==null?void 0:f():d==null?void 0:d();if(Ao(v,E.value==="none"))return q(p.value);if(k.value&&ke(v,Ye))return i==null?void 0:i();if(E.value==="none"&&_e(v.key))return!k.value&&(i==null||i()),D(v);if(E.value!=="none"&&_e(v.key)){!k.value&&(i==null||i());return}return le(v)},re=E.value!=="none"?{"aria-autocomplete":E.value,type:"text"}:null,{elements:{option:se,group:ie,listbox:ce},internals:{getOptionId:ue}}=Po({label:a,description:s,multiple:S,controlled:!0,activeOption:p,isExpanded:k,onSelect:q});return Ge({inside:_,onOutsideClick(){k.value&&(i==null||i(!0))}}),{elements:{option:se,group:ie,listbox:e.computed(()=>({...ce.value,id:B,onMousedown:v=>v.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":k.value,"aria-controls":B,"aria-label":e.unref(r),"aria-activedescendant":p.value!=null?ue(p.value):void 0,onInput:O,onKeydown:ae,...re})),button:e.computed(()=>({tabindex:"-1",onClick:()=>i==null?void 0:i()}))}}}),Ho=z(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=ve(),a=e.useId();Ve({type:"keydown",listener:i=>i.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const s=Ze(i=>n.value!==i&&o(),200),c=i=>{const u=document.activeElement,d=(u==null?void 0:u.closest('[role="menu"]'))||r.value;if(!d)return;const f=[...d.querySelectorAll('[role="menuitem"]')];let m=0;if(u){const _=f.indexOf(u);switch(i){case"next":m=_+1;break;case"prev":m=_-1;break;case"first":m=0;break;case"last":m=f.length-1;break}}const y=f[m];y==null||y.focus()};return{elements:{root:{id:t,onKeydown:i=>{switch(i.key){case"ArrowDown":case"ArrowRight":i.preventDefault(),c("next");break;case"ArrowUp":case"ArrowLeft":i.preventDefault(),c("prev");break;case"Home":i.preventDefault(),c("first");break;case"End":i.preventDefault(),c("last");break;case" ":i.preventDefault(),i.target.click();break;case"Escape":i.preventDefault(),n.value&&o();break}},onMouseover:()=>s(!0),onMouseout:()=>s(!1),onFocusout:i=>{var u;t&&((u=document.getElementById(t))!=null&&u.contains(i.relatedTarget))||n.value&&o()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":n.value,"aria-haspopup":!0,onFocus:()=>!n.value&&o(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>n.value&&o()},...Xe().elements}}}),Xe=z(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),Ro={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},Fo=z(({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 s=t(),c=s.indexOf(r);if(c===-1)return;const p=Ro.clamp(c+(a==="next"?1:-1),0,s.length-1);s[p].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}}}}}}),Je=({isExpanded:n})=>Ve({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),Uo=z(({toggleLabel:n,isVisible:o})=>{const t=ve(),l=ve(),r=e.toRef(o??!1);Ge({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),Je({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}}}),qo=z(({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))}}),s={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return Je({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...s},tooltip:{role:"tooltip",id:t,tabindex:"-1",...s}},state:{isVisible:l}}}),F=e.defineComponent({__name:"OnyxTooltip",props:{density:{},text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(n){const o=n,{densityClass:t}=b(o),{t:l}=C(),r=e.ref(!1),a=e.computed({set:m=>r.value=m,get:()=>typeof o.open=="boolean"?o.open:r.value}),s=e.computed(()=>({debounce:200,...typeof o.open=="object"&&o.open.type==="hover"&&o.open||{},isVisible:a})),c=e.computed(()=>({toggleLabel:l.value("tooltip.info"),...typeof o.open=="object"&&o.open.type==="click"&&o.open||{},isVisible:a})),p=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"hover"),i=()=>p.value==="hover"?qo(s.value):Uo(c.value),u=e.shallowRef(i());e.watch(p,()=>u.value=i());const d=e.computed(()=>{var m;return(m=u.value)==null?void 0:m.elements.tooltip}),f=e.computed(()=>{var m;return e.toValue((m=u.value)==null?void 0:m.elements.trigger)});return(m,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps(d.value,{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--bottom":o.position==="bottom","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!a.value}]}),[o.icon?(e.openBlock(),e.createBlock(g,{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:f.value})],2))}}),we=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>Ue(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(F,{key:1,class:"onyx-error-tooltip",open:"hover",text:t.value,color:"danger"},{default:e.withCtx(({trigger:s})=>[e.createElementVNode("div",e.mergeProps({ref_key:"targetRef",ref:l},s),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)]))}}),Go=["title"],Zo={class:"onyx-checkbox__container"},Ko=["aria-label","indeterminate","disabled","required","value","autofocus"],Y=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:M},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:f=>l("update:modelValue",f)}),{requiredMarkerClass:a,requiredTypeClass:s}=Q(t),{densityClass:c}=b(t),{vCustomValidity:p,errorMessages:i}=A({props:t,emit:l}),{disabled:u}=T(t),d=e.computed(()=>t.hideLabel?t.label:void 0);return(f,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(w,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(we,{key:1,disabled:e.unref(u),"error-messages":e.unref(i)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(c)]]),title:d.value},[e.createElementVNode("div",Zo,[t.loading?(e.openBlock(),e.createBlock(L,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":m[0]||(m[0]=y=>r.value=y),"aria-label":t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:e.unref(u),required:t.required,value:t.value,autofocus:t.autofocus},null,8,Ko)),[[e.vModelCheckbox,r.value],[e.unref(p)]])]),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,Go)]),_:1},8,["disabled","error-messages"]))}}),jo=(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}}),We=(n,o,t)=>({state:jo(n,o),handleChange:l=>{const r=o.value.filter(s=>!n.value.includes(s)),a=l?r.concat(n.value):r;t(a)}}),R=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"]))}}),Yo=["disabled","aria-label"],Xo={key:0,class:"onyx-checkbox-group__label"},Jo=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:M},skeleton:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=b(t),r=o,{t:a}=C(),s=(d,f)=>{const m=f?[...t.modelValue,d]:t.modelValue.filter(y=>y!==d);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(d=>!d.disabled&&!d.skeleton).map(({value:d})=>d)),{disabled:p}=T(t),i=We(c,e.computed(()=>t.modelValue),d=>r("update:modelValue",d)),u=e.computed(()=>{var f;const d=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?d:((f=t.withCheckAll)==null?void 0:f.label)??d});return(d,f)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:e.unref(p),"aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",Xo,[e.createVNode(R,{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"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(Y,e.mergeProps({key:0},e.unref(i).state.value,{label:u.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(i).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(Y,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":y=>s(m.value,y)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(Y,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,Yo))}}),Wo='<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>',Qe='<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>',Qo={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Ee=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(g,{icon:e.unref(Qe),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Qo,[e.renderSlot(l.$slots,"default")])],2))}}),en={class:"onyx-table-wrapper"},tn=["tabindex"],on=["span"],nn={key:0,class:"onyx-table__header"},ln={key:0},an=["colspan"],rn={class:"onyx-table__empty"},sn={colspan:"100%"},cn={class:"onyx-table__empty-content"},et=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}=C(),{densityClass:r}=b(o),a=e.computed(()=>l.value("table.empty"));return(s,c)=>{var p;return e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!o.withPageScrolling}),tabindex:o.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("colgroup",{key:i.key,span:i.span},null,8,on))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",nn,[(p=o.columnGroups)!=null&&p.length?(e.openBlock(),e.createElementBlock("tr",ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("th",{key:i.key,colspan:i.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(i.header),9,an))),128))])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("tr",rn,[e.createElementVNode("td",sn,[e.createElementVNode("div",cn,[e.renderSlot(s.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Ee,null,{icon:e.withCtx(()=>[e.createVNode(g,{icon:e.unref(Wo),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,tn)])}}}),un=e.defineComponent({__name:"OnyxDataGridRenderer",props:{density:{},striped:{type:Boolean},withVerticalBorders:{type:Boolean},withPageScrolling:{type:Boolean},columnGroups:{},columns:{},rows:{}},setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createBlock(et,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))}}),dn=["aria-modal","aria-label","role"],tt=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),s=()=>{var c,p;t.modal?(c=r.value)==null||c.showModal():(p=r.value)==null||p.show()};return e.watch([r,()=>t.open],()=>{var c;t.open?s():(c=r.value)==null||c.close()}),e.watch(()=>t.modal,()=>{var c;(c=r.value)!=null&&c.open&&(r.value.close(),s())}),(c,p)=>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:p[0]||(p[0]=e.withModifiers(i=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,dn)):e.createCommentVNode("",!0)}}),pn='<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>',mn=n=>/^http(s?):\/\//.test(n),ee=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:mn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-external-link-icon",icon:e.unref(pn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),fn=["h1","h2","h3","h4","h5","h6"],yn=["12px","16px","24px","32px","48px","64px","96px"],hn=["aria-label","title","type","disabled","autofocus"],ot=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:M},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=b(o),{disabled:l}=T(o);return(r,a)=>o.skeleton?(e.openBlock(),e.createBlock(w,{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(L,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(r.$slots,"default",{key:2})],10,hn))}}),xe='<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>',te=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}))}}),vn={class:"onyx-info-tooltip"},X=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",vn,[t.value==="click"?(e.openBlock(),e.createBlock(F,{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(g,{icon:e.unref(xe)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(F,{"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(g,{icon:e.unref(xe)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"]),e.createVNode(te,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})],64))]))}}),_n={key:0,class:"onyx-form-element__label onyx-text--small"},kn=["for"],xn={key:1,class:"onyx-form-element__footer onyx-text--small"},gn={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},bn={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Bn={key:4,class:"onyx-form-element__counter"},oe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()??""},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(n){const o=n,{t}=C(),{requiredMarkerClass:l,requiredTypeClass:r}=Q(o),a=e.computed(()=>{var s;if(o.withCounter&&o.maxlength)return`${(((s=o.modelValue)==null?void 0:s.toString())||"").length}/${o.maxlength}`});return(s,c)=>{var p,i;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_n,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,kn),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(X,{key:1,class:"onyx-form-element__label-tooltip",open:"hover",text:o.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),o.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([o.required?void 0:e.unref(l)])},null,2))])),e.renderSlot(s.$slots,"default",{id:o.id}),o.message||(p=s.errorMessages)!=null&&p.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",xn,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",gn,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(i=s.errorMessages)!=null&&i.longMessage?(e.openBlock(),e.createBlock(X,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("tooltip.error"),open:"hover",text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("span",bn,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0),o.messageTooltip?(e.openBlock(),e.createBlock(X,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",open:"hover",text:o.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",Bn,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Cn={class:"onyx-input__wrapper"},Vn=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],wn=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{default:M},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=A({props:t,emit:l}),{densityClass:s}=b(t),c=e.computed({get:()=>t.modelValue,set:u=>l("update:modelValue",u)}),p=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:i}=T(t);return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(s)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(w,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(oe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:f})=>[e.createElementVNode("div",Cn,[t.loading?(e.openBlock(),e.createBlock(L,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:f,"onUpdate:modelValue":d[0]||(d[0]=m=>c.value=m),placeholder:t.placeholder,class:"onyx-input__native",type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:p.value,readonly:t.readonly,disabled:e.unref(i)||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0},null,8,Vn),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),En=["email","password","search","tel","text","url"],Sn=["none","sentences","words","characters"],Nn=["href","target","rel"],Mn=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=C();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(te,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(ee,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,Nn))}}),$n=["_self","_blank","_parent","_top"],ne=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))}}),On='<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>',Se='<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>',nt=()=>{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}},Tn=["placeholder","aria-label"],In=["aria-label"],lt=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:s}=nt(),{densityClass:c}=b(l),{t:p}=C(),i=e.ref(),u=e.computed({get:()=>l.modelValue,set:f=>r("update:modelValue",f??"")}),d=e.computed(()=>p.value("select.searchPlaceholder"));return o({focus:()=>{var f;return(f=i.value)==null?void 0:f.focus()}}),(f,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(c)]},e.unref(a),{style:{"--onyx-placeholder-character-count":d.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:i,"onUpdate:modelValue":m[0]||(m[0]=y=>u.value=y),class:"onyx-mini-search__input onyx-text",placeholder:d.value,type:"text",size:"1"},e.unref(s),{"aria-label":l.label}),null,16,Tn),[[e.vModelText,u.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(p)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(()=>{},["prevent"])),onClick:m[2]||(m[2]=y=>r("clear"))},[e.createVNode(g,{icon:e.unref(Se)},null,8,["icon"])],40,In),e.createVNode(g,{class:"onyx-mini-search__icon",icon:e.unref(On)},null,8,["icon"])],16))}}),Ln='<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>',Dn={class:"onyx-mobile-nav-button"},Pn=["aria-label"],An={class:"onyx-mobile-nav-button__flyout"},zn={class:"onyx-mobile-nav-button__menu"},ge=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",Dn,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=s=>l("update:open",!t.open))},[e.createVNode(g,{icon:t.open?e.unref(Ln):t.icon},null,8,["icon"])],10,Pn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",An,[e.createElementVNode("div",zn,[t.headline?(e.openBlock(),e.createBlock(R,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=s=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),Hn=["aria-label"],Rn=["src","alt"],Fn={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},at=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=C(),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,Rn)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",Fn,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,Hn))}}),Un=`<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"),Vt={key:0,class:"onyx-app__nav"},wt={class:"onyx-app__page"},Et={key:1,class:"onyx-app__page-overlay"},St={key:2,class:"onyx-app__app-overlay"},Nt=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",Vt,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",St,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),Mt=["title"],$t=["src","alt"],Ot={key:1,class:"onyx-avatar__initials"},ye=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,s)=>(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:s[0]||(s[0]=c=>r.value=!0)},null,40,$t)):(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,Mt))}}),Tt={class:"onyx-avatar-stack"},It=e.defineComponent({__name:"OnyxAvatarStack",setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Tt,[e.renderSlot(o.$slots,"default")]))}}),Lt=["compact","default","cozy"],b=n=>({densityClass:e.computed(()=>({[`onyx-density-${n.density}`]:n.density}))}),Dt=["innerHTML"],g=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,Dt))}}),Ae=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(g,{key:0,class:"onyx-badge__icon",icon:o.icon},null,8,["icon"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),Pt=Symbol(),M=Symbol("FORM_INJECTED_SYMBOL"),At=(n,o,t,l)=>e.computed(()=>{const r=o[t];return r!=null&&r!==M?r:l}),zt=n=>o=>({disabled:At(n,o,"disabled",!1)}),Ht=zt(),T=n=>e.inject(Pt,Ht)(n),Ce=(n,o)=>{const t=n.__vccOpts||n;for(const[l,r]of o)t[l]=r;return t},Rt={},Ft={class:"onyx-circle-spinner",viewBox:"0 0 50 50"};function Ut(n,o){return e.openBlock(),e.createElementBlock("svg",Ft,o[0]||(o[0]=[e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1)]))}const qt=Ce(Rt,[["render",Ut]]),Gt={},Zt={class:"onyx-loading-dots"};function Kt(n,o){return e.openBlock(),e.createElementBlock("div",Zt,o[0]||(o[0]=[e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1)]))}const jt=Ce(Gt,[["render",Kt]]),L=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(n){const o=n;return(t,l)=>o.type==="circle"?(e.openBlock(),e.createBlock(qt,{key:0})):o.type==="dots"?(e.openBlock(),e.createBlock(jt,{key:1})):e.createCommentVNode("",!0)}}),Yt=n=>{const o=e.ref(!1),t=e.reactive(new Map),l=c=>{var u;const p=(u=n.value)==null?void 0:u.getBoundingClientRect();if(!p)return;o.value=!0;const i={id:Date.now().toString(),left:`${c.x-p.left}px`,top:`${c.y-p.top}px`,animationEnded:!1};return t.set(i.id,i),i.id},r=c=>{const p=c.dataset.rippleid;p!=null&&(t.has(p)&&(t.get(p).animationEnded=!0),o.value||t.delete(p))},a=()=>{o.value=!1,t.forEach((c,p)=>{c.animationEnded&&t.delete(p)})},s=e.ref({});return e.onBeforeMount(()=>{var c;(c=window.matchMedia)!=null&&c.call(window,"pointer: none").matches?s.value={touchstart:l,touchend:a,touchcancel:a}:s.value={mousedown:l,mouseleave:a,mouseup:a}}),{isPointerDown:o,ripples:t,startRipple:l,hideRipples:a,hideRipple:r,events:s}},Xt=["data-rippleid"],Jt=e.defineComponent({__name:"OnyxRipple",setup(n,{expose:o}){const t=e.ref(),{ripples:l,hideRipple:r,events:a}=Yt(t);return o({events:a}),(s,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),([p,i])=>(e.openBlock(),e.createElementBlock("span",{key:p,class:"onyx-ripple__element",style:e.normalizeStyle({"--onyx-ripple-left":i.left,"--onyx-ripple-top":i.top}),"data-rippleid":p,onAnimationend:c[0]||(c[0]=u=>e.unref(r)(u.target))},null,44,Xt))),128))],512))}}),Wt={},Qt={"aria-hidden":"true",class:"onyx-skeleton"};function eo(n,o){return e.openBlock(),e.createElementBlock("figure",Qt)}const w=Ce(Wt,[["render",eo]]),to=["disabled","type","aria-label","autofocus"],oo={class:"onyx-button__label onyx-truncation-ellipsis"},J=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:M},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=b(o),{disabled:l}=T(o),r=e.ref(),a=e.computed(()=>{var s;return((s=r.value)==null?void 0:s.events)??{}});return(s,c)=>o.skeleton?(e.openBlock(),e.createBlock(w,{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(a.value,!0)),[!o.disabled&&!o.loading?(e.openBlock(),e.createBlock(Jt,{key:0,ref_key:"rippleRef",ref:r},null,512)):e.createCommentVNode("",!0),o.icon&&!o.loading?(e.openBlock(),e.createBlock(g,{key:1,class:"onyx-button__icon",icon:o.icon},null,8,["icon"])):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(L,{key:2,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",oo,e.toDisplayString(o.label),1)],16,to))}}),no=["button","submit","reset"],lo=["primary","neutral","danger"],ao=["default","outline","plain"],Q=n=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${n.requiredMarker}`]:n.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":n.required,"onyx-optional-marker":!n.required}))}),ro="(optional)",so="Cancel",io="Apply",co="Back",uo="Close",po={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.'}}},mo={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"},fo={selectAll:"Select all",currentSelection:"{n} selected"},yo={decrement:"Decrement by {stepSize}",increment:"Increment by {stepSize}"},ho={empty:"This table is empty."},vo={opensExternally:"Opens in a new tab."},_o="Subpages of {label}",ko={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"},xo={info:"Toggle info tooltip",error:"Toggle error tooltip"},go={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."}},bo={label:"Pagination",ofPages:"of 1 page | of {n} pages",previous:"previous page",next:"next page",select:{label:"Page selection",listLabel:"Available pages"}},he={optional:ro,cancel:so,apply:io,back:co,close:uo,validations:po,select:mo,selections:fo,stepper:yo,table:ho,link:vo,navItemOptionsLabel:_o,navigation:ko,tooltip:xo,colorScheme:go,pagination:bo},ze=Symbol(),He=(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]:he),l=e.computed(()=>(r,a={})=>{let s=Ie(r,t.value)??Ie(r,he)??"";return s=Bo(s,a.n),Co(s,a)});return{locale:o,t:l}},Re=(n,o)=>{const t=He(o);return n.provide(ze,t),t},C=()=>e.inject(ze,()=>He(),!0),Ie=(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},Bo=(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]},Co=(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,Vo=(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])},wo=(n,o)=>n.reduce((t,l)=>{const r=l[o]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Fe=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([n,o])=>o.enumerable).map(([n])=>n),Eo=n=>Fe().reduce((o,t)=>(o[t]=n[t],o),{}),So=n=>{if(n.valueMissing)return"valueMissing";const o=Fe().filter(t=>t!=="valid").sort();for(const t of o)if(t in n&&n[t])return t},No=Object.keys(he.validations.typeMismatch),Mo=n=>{if(n)return typeof n=="string"?{shortMessage:n,longMessage:n}:n},Ue=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}`},A=n=>{const{t:o}=C(),t=e.ref(),l=e.ref(!1);e.watch(()=>n.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Ue(n.props.customError)??"")),e.watch([()=>n.props],()=>{const c=Eo(s.validity);!t.value&&c.valid||t.value&&Vo(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 i,u,d;if(!t.value||t.value.valid)return;const s=So(t.value),c=Mo(n.props.customError);if(c||s==="customError")return c||void 0;if(!s)return;if(s==="typeMismatch"){const f=No.includes(n.props.type)?n.props.type:"generic";return{longMessage:o.value(`validations.typeMismatch.${f}.fullError`,{value:(i=n.props.modelValue)==null?void 0:i.toString()}),shortMessage:o.value(`validations.typeMismatch.${f}.preview`)}}const p={value:(u=n.props.modelValue)==null?void 0:u.toString(),n:((d=n.props.modelValue)==null?void 0:d.toString().length)??0,minLength:n.props.minlength,maxLength:n.props.maxlength,min:n.props.min,max:n.props.max,step:n.props.step};return{longMessage:o.value(`validations.${s}.fullError`,p),shortMessage:o.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},z=n=>n;function ve(){const n=e.shallowRef();return e.computed({set:o=>{n.value=o!=null&&"$el"in o?o.$el:o},get:()=>n.value})}const $o=(n,o)=>Object.entries(n).every(([t,l])=>o[t]===l),Oo=(n,o)=>typeof o=="string"?n.key===o:$o({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...o},n),_e=n=>!Io.has(n),To=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Symbol","SymbolLock","Hyper","Super","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHankaku","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","Soft1","Soft2","Soft3","Soft4","ChannelDown","ChannelUp","Close","MailForward","MailReply","MailSend","MediaClose","MediaFastForward","MediaPause","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaTrackNext","MediaTrackPrevious","New","Open","Print","Save","SpellCheck","Key11","Key12","AudioBalanceLeft","AudioBalanceRight","AudioBassBoostDown","AudioBassBoostToggle","AudioBassBoostUp","AudioFaderFront","AudioFaderRear","AudioSurroundModeNext","AudioTrebleDown","AudioTrebleUp","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","MicrophoneToggle","MicrophoneVolumeDown","MicrophoneVolumeUp","MicrophoneVolumeMute","SpeechCorrectionList","SpeechInputToggle","LaunchApplication1","LaunchApplication2","LaunchCalendar","LaunchContacts","LaunchMail","LaunchMediaPlayer","LaunchMusicPlayer","LaunchPhone","LaunchScreenSaver","LaunchSpreadsheet","LaunchWebBrowser","LaunchWebCam","LaunchWordProcessor","BrowserBack","BrowserFavorites","BrowserForward","BrowserHome","BrowserRefresh","BrowserSearch","BrowserStop","AppSwitch","Call","Camera","CameraFocus","EndCall","GoBack","GoHome","HeadsetHook","LastNumberRedial","Notification","MannerMode","VoiceDial","TV","TV3DMode","TVAntennaCable","TVAudioDescription","TVAudioDescriptionMixDown","TVAudioDescriptionMixUp","TVContentsMenu","TVDataService","TVInput","TVInputComponent1","TVInputComponent2","TVInputComposite1","TVInputComposite2","TVInputHDMI1","TVInputHDMI2","TVInputHDMI3","TVInputHDMI4","TVInputVGA1","TVMediaContext","TVNetwork","TVNumberEntry","TVPower","TVRadioService","TVSatellite","TVSatelliteBS","TVSatelliteCS","TVSatelliteToggle","TVTerrestrialAnalog","TVTerrestrialDigital","TVTimer","AVRInput","AVRPower","ColorF0Red","ColorF1Green","ColorF2Yellow","ColorF3Blue","ColorF4Grey","ColorF5Brown","ClosedCaptionToggle","Dimmer","DisplaySwap","DVR","Exit","FavoriteClear0","FavoriteClear1","FavoriteClear2","FavoriteClear3","FavoriteRecall0","FavoriteRecall1","FavoriteRecall2","FavoriteRecall3","FavoriteStore0","FavoriteStore1","FavoriteStore2","FavoriteStore3","Guide","GuideNextDay","GuidePreviousDay","Info","InstantReplay","Link","ListProgram","LiveContent","Lock","MediaApps","MediaAudioTrack","MediaLast","MediaSkipBackward","MediaSkipForward","MediaStepBackward","MediaStepForward","MediaTopMenu","NavigateIn","NavigateNext","NavigateOut","NavigatePrevious","NextFavoriteChannel","NextUserProfile","OnDemand","Pairing","PinPDown","PinPMove","PinPToggle","PinPUp","PlaySpeedDown","PlaySpeedReset","PlaySpeedUp","RandomToggle","RcLowBattery","RecordSpeedNext","RfBypass","ScanChannelsToggle","ScreenModeNext","Settings","SplitScreenToggle","STBInput","STBPower","Subtitle","Teletext","VideoModeNext","Wink","ZoomToggle","AudioVolumeDown","AudioVolumeUp","AudioVolumeMute","BrowserBack","BrowserForward","ChannelDown","ChannelUp","ContextMenu","Eject","End","Enter","Home","MediaFastForward","MediaPlay","MediaPlayPause","MediaRecord","MediaRewind","MediaStop","MediaNextTrack","MediaPause","MediaPreviousTrack","Power","Unidentified"],Io=new Set(To),H=e.reactive(new Map),Lo=(n,o)=>{if(o!=null&&o.size){H.set(n,o);return}H.delete(n),document.removeEventListener(n,qe)},Le=(n,o)=>{const t=H.get(n);t==null||t.delete(o),Lo(n,t)},Do=(n,o)=>{const t=H.get(n)??new Set;t.add(o),H.set(n,t),document.addEventListener(n,qe)},qe=n=>{var t;const o=n.type;(t=H.get(o))==null||t.forEach(l=>l(n))},Ve=({type:n,listener:o,disabled:t})=>{e.onBeforeMount(()=>e.watchEffect(()=>t!=null&&t.value?Le(n,o):Do(n,o))),e.onBeforeUnmount(()=>Le(n,o))},Ge=({inside:n,onOutsideClick:o,disabled:t})=>{Ve({type:"click",listener:r=>{const a=e.toValue(n);!(Array.isArray(a)?a:[a]).some(p=>p==null?void 0:p.contains(r.target))&&o(r)},disabled:t})},Ze=(n,o)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>n(...l),o)}},Ke=(n,o=500)=>{let t="";const l=Ze(()=>t="",o);return r=>{_e(r.key)&&(l(),t=`${t}${r.key}`,n(t))}},Po=z(n=>{const o=e.computed(()=>e.unref(n.multiple)??!1),t=e.computed(()=>e.unref(n.isExpanded)??!1),l=new Map,r=i=>(l.has(i)||l.set(i,e.useId()??i.toString()),l.get(i)),a=e.ref(!1);e.watchEffect(async()=>{if(!t.value||n.activeOption.value==null||!a.value&&!n.controlled)return;const i=r(n.activeOption.value);await e.nextTick(()=>{var u;(u=document.getElementById(i))==null||u.scrollIntoView({block:"end",inline:"nearest"})})});const s=Ke(i=>{var u;return(u=n.onTypeAhead)==null?void 0:u.call(n,i)}),c=i=>{var u,d,f,m,y,_,B;switch(i.key){case" ":i.preventDefault(),n.activeOption.value!=null&&((u=n.onSelect)==null||u.call(n,n.activeOption.value));break;case"ArrowUp":if(i.preventDefault(),n.activeOption.value==null){(d=n.onActivateLast)==null||d.call(n);return}(f=n.onActivatePrevious)==null||f.call(n,n.activeOption.value);break;case"ArrowDown":if(i.preventDefault(),n.activeOption.value==null){(m=n.onActivateFirst)==null||m.call(n);return}(y=n.onActivateNext)==null||y.call(n,n.activeOption.value);break;case"Home":i.preventDefault(),(_=n.onActivateFirst)==null||_.call(n);break;case"End":i.preventDefault(),(B=n.onActivateLast)==null||B.call(n);break;default:s(i)}};return{elements:{listbox:e.computed(()=>n.controlled?{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"-1"}:{role:"listbox","aria-multiselectable":o.value,"aria-label":e.unref(n.label),"aria-description":n.description,tabindex:"0","aria-activedescendant":n.activeOption.value!=null?r(n.activeOption.value):void 0,onFocus:()=>a.value=!0,onBlur:()=>a.value=!1,onKeydown:c}),group:e.computed(()=>i=>({role:"group","aria-label":i.label})),option:e.computed(()=>i=>{const u=i.selected??!1;return{id:r(i.value),role:"option","aria-label":i.label,"aria-disabled":i.disabled,"aria-checked":o.value?u:void 0,"aria-selected":o.value?void 0:u,onClick:()=>{var d;return!i.disabled&&((d=n.onSelect)==null?void 0:d.call(n,i.value))}}})},state:{isFocused:a},internals:{getOptionId:r}}}),je=["ArrowDown","ArrowUp"," ","Enter","Home","End"],Ye=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],De=["Enter"],Ao=(n,o)=>{const t=o?[...De," "]:De;return ke(n,t)},ke=(n,o)=>o.some(t=>Oo(n,t)),zo=z(({autocomplete:n,onAutocomplete:o,onTypeAhead:t,multiple:l,label:r,listLabel:a,listDescription:s,isExpanded:c,activeOption:p,onToggle:i,onSelect:u,onActivateFirst:d,onActivateLast:f,onActivateNext:m,onActivatePrevious:y,templateRef:_})=>{const B=e.useId(),E=e.computed(()=>e.unref(n)),k=e.computed(()=>e.unref(c)),S=e.computed(()=>e.unref(l)),O=v=>{const G=v.target;E.value!=="none"&&(o==null||o(G.value))},D=Ke(v=>t==null?void 0:t(v)),q=v=>{u==null||u(v),e.unref(S)||i==null||i()},le=v=>{switch(v.key){case"ArrowUp":if(v.preventDefault(),p.value==null)return f==null?void 0:f();y==null||y(p.value);break;case"ArrowDown":if(v.preventDefault(),p.value==null)return d==null?void 0:d();m==null||m(p.value);break;case"Home":v.preventDefault(),d==null||d();break;case"End":v.preventDefault(),f==null||f();break}},ae=v=>{if(v.key==="Enter"&&v.preventDefault(),!k.value&&ke(v,je))return i==null||i(),v.key===" "&&v.preventDefault(),v.key==="End"?f==null?void 0:f():d==null?void 0:d();if(Ao(v,E.value==="none"))return q(p.value);if(k.value&&ke(v,Ye))return i==null?void 0:i();if(E.value==="none"&&_e(v.key))return!k.value&&(i==null||i()),D(v);if(E.value!=="none"&&_e(v.key)){!k.value&&(i==null||i());return}return le(v)},re=E.value!=="none"?{"aria-autocomplete":E.value,type:"text"}:null,{elements:{option:se,group:ie,listbox:ce},internals:{getOptionId:ue}}=Po({label:a,description:s,multiple:S,controlled:!0,activeOption:p,isExpanded:k,onSelect:q});return Ge({inside:_,onOutsideClick(){k.value&&(i==null||i(!0))}}),{elements:{option:se,group:ie,listbox:e.computed(()=>({...ce.value,id:B,onMousedown:v=>v.preventDefault()})),input:e.computed(()=>({role:"combobox","aria-expanded":k.value,"aria-controls":B,"aria-label":e.unref(r),"aria-activedescendant":p.value!=null?ue(p.value):void 0,onInput:O,onKeydown:ae,...re})),button:e.computed(()=>({tabindex:"-1",onClick:()=>i==null?void 0:i()}))}}}),Ho=z(({isExpanded:n,onToggle:o})=>{const t=e.useId(),l=e.useId(),r=ve(),a=e.useId();Ve({type:"keydown",listener:i=>i.key==="Escape"&&n.value&&o(),disabled:e.computed(()=>!n.value)});const s=Ze(i=>n.value!==i&&o(),200),c=i=>{const u=document.activeElement,d=(u==null?void 0:u.closest('[role="menu"]'))||r.value;if(!d)return;const f=[...d.querySelectorAll('[role="menuitem"]')];let m=0;if(u){const _=f.indexOf(u);switch(i){case"next":m=_+1;break;case"prev":m=_-1;break;case"first":m=0;break;case"last":m=f.length-1;break}}const y=f[m];y==null||y.focus()};return{elements:{root:{id:t,onKeydown:i=>{switch(i.key){case"ArrowDown":case"ArrowRight":i.preventDefault(),c("next");break;case"ArrowUp":case"ArrowLeft":i.preventDefault(),c("prev");break;case"Home":i.preventDefault(),c("first");break;case"End":i.preventDefault(),c("last");break;case" ":i.preventDefault(),i.target.click();break;case"Escape":i.preventDefault(),n.value&&o();break}},onMouseover:()=>s(!0),onMouseout:()=>s(!1),onFocusout:i=>{var u;t&&((u=document.getElementById(t))!=null&&u.contains(i.relatedTarget))||n.value&&o()}},button:e.computed(()=>({"aria-controls":l,"aria-expanded":n.value,"aria-haspopup":!0,onFocus:()=>!n.value&&o(),id:a})),menu:{id:l,ref:r,role:"menu","aria-labelledby":a,onClick:()=>n.value&&o()},...Xe().elements}}}),Xe=z(()=>({elements:{listItem:{role:"none"},menuItem:n=>({"aria-current":n.active?"page":void 0,"aria-disabled":n.disabled,role:"menuitem"})}})),Ro={clamp:(n,o,t)=>Math.max(Math.min(n,t),o)},Fo=z(({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 s=t(),c=s.indexOf(r);if(c===-1)return;const p=Ro.clamp(c+(a==="next"?1:-1),0,s.length-1);s[p].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}}}}}}),Je=({isExpanded:n})=>Ve({type:"keydown",listener:o=>{o.key==="Escape"&&(n.value=!1)},disabled:e.computed(()=>!n.value)}),Uo=z(({toggleLabel:n,isVisible:o})=>{const t=ve(),l=ve(),r=e.toRef(o??!1);Ge({inside:e.computed(()=>[t.value,l.value]),onOutsideClick:()=>r.value=!1,disabled:e.computed(()=>!r.value)}),Je({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}}}),qo=z(({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))}}),s={onMouseover:()=>a.value=!0,onMouseout:()=>a.value=!1,onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1};return Je({isExpanded:l}),{elements:{trigger:{"aria-describedby":t,...s},tooltip:{role:"tooltip",id:t,tabindex:"-1",...s}},state:{isVisible:l}}}),F=e.defineComponent({__name:"OnyxTooltip",props:{density:{},text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(n){const o=n,{densityClass:t}=b(o),{t:l}=C(),r=e.ref(!1),a=e.computed({set:m=>r.value=m,get:()=>typeof o.open=="boolean"?o.open:r.value}),s=e.computed(()=>({debounce:200,...typeof o.open=="object"&&o.open.type==="hover"&&o.open||{},isVisible:a})),c=e.computed(()=>({toggleLabel:l.value("tooltip.info"),...typeof o.open=="object"&&o.open.type==="click"&&o.open||{},isVisible:a})),p=e.computed(()=>typeof o.open=="object"?o.open.type:typeof o.open=="string"?o.open:"hover"),i=()=>p.value==="hover"?qo(s.value):Uo(c.value),u=e.shallowRef(i());e.watch(p,()=>u.value=i());const d=e.computed(()=>{var m;return(m=u.value)==null?void 0:m.elements.tooltip}),f=e.computed(()=>{var m;return e.toValue((m=u.value)==null?void 0:m.elements.trigger)});return(m,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tooltip-wrapper",e.unref(t)])},[e.createElementVNode("div",e.mergeProps(d.value,{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":o.color==="danger","onyx-tooltip--bottom":o.position==="bottom","onyx-tooltip--fit-parent":o.fitParent,"onyx-tooltip--hidden":!a.value}]}),[o.icon?(e.openBlock(),e.createBlock(g,{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:f.value})],2))}}),we=e.defineComponent({__name:"OnyxErrorTooltip",props:{errorMessages:{},disabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>Ue(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(F,{key:1,class:"onyx-error-tooltip",open:"hover",text:t.value,color:"danger"},{default:e.withCtx(({trigger:s})=>[e.createElementVNode("div",e.mergeProps({ref_key:"targetRef",ref:l},s),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)]))}}),Go=["title"],Zo={class:"onyx-checkbox__container"},Ko=["aria-label","indeterminate","disabled","required","value","autofocus"],Y=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{default:M},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,r=e.computed({get:()=>t.modelValue,set:f=>l("update:modelValue",f)}),{requiredMarkerClass:a,requiredTypeClass:s}=Q(t),{densityClass:c}=b(t),{vCustomValidity:p,errorMessages:i}=A({props:t,emit:l}),{disabled:u}=T(t),d=e.computed(()=>t.hideLabel?t.label:void 0);return(f,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(c)])},[e.createVNode(w,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createBlock(we,{key:1,disabled:e.unref(u),"error-messages":e.unref(i)},{default:e.withCtx(()=>[e.createElementVNode("label",{class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(c)]]),title:d.value},[e.createElementVNode("div",Zo,[t.loading?(e.openBlock(),e.createBlock(L,{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":m[0]||(m[0]=y=>r.value=y),"aria-label":t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:e.unref(u),required:t.required,value:t.value,autofocus:t.autofocus},null,8,Ko)),[[e.vModelCheckbox,r.value],[e.unref(p)]])]),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,Go)]),_:1},8,["disabled","error-messages"]))}}),jo=(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}}),We=(n,o,t)=>({state:jo(n,o),handleChange:l=>{const r=o.value.filter(s=>!n.value.includes(s)),a=l?r.concat(n.value):r;t(a)}}),R=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"]))}}),Yo=["disabled","aria-label"],Xo={key:0,class:"onyx-checkbox-group__label"},Jo=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:M},skeleton:{}},emits:["update:modelValue"],setup(n,{emit:o}){const t=n,{densityClass:l}=b(t),r=o,{t:a}=C(),s=(d,f)=>{const m=f?[...t.modelValue,d]:t.modelValue.filter(y=>y!==d);r("update:modelValue",m)},c=e.computed(()=>t.options.filter(d=>!d.disabled&&!d.skeleton).map(({value:d})=>d)),{disabled:p}=T(t),i=We(c,e.computed(()=>t.modelValue),d=>r("update:modelValue",d)),u=e.computed(()=>{var f;const d=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?d:((f=t.withCheckAll)==null?void 0:f.label)??d});return(d,f)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:e.unref(p),"aria-label":t.label},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("legend",Xo,[e.createVNode(R,{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"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(Y,e.mergeProps({key:0},e.unref(i).state.value,{label:u.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(i).handleChange}),null,16,["label","onUpdate:modelValue"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createBlock(Y,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{truncation:m.truncation??t.truncation,"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":y=>s(m.value,y)}),null,16,["truncation","model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(Y,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,Yo))}}),Wo='<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>',Qe='<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>',Qo={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},Ee=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(g,{icon:e.unref(Qe),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",Qo,[e.renderSlot(l.$slots,"default")])],2))}}),en={class:"onyx-table-wrapper"},tn=["tabindex"],on=["span"],nn={key:0,class:"onyx-table__header"},ln={key:0},an=["colspan"],rn={class:"onyx-table__empty"},sn={colspan:"100%"},cn={class:"onyx-table__empty-content"},et=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}=C(),{densityClass:r}=b(o),a=e.computed(()=>l.value("table.empty"));return(s,c)=>{var p;return e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",{class:e.normalizeClass({"onyx-table-wrapper__scroll-container":!o.withPageScrolling}),tabindex:o.withPageScrolling?void 0:0},[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[o.striped?"onyx-table--striped":"",o.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(r)]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("colgroup",{key:i.key,span:i.span},null,8,on))),128)),t.head?(e.openBlock(),e.createElementBlock("thead",nn,[(p=o.columnGroups)!=null&&p.length?(e.openBlock(),e.createElementBlock("tr",ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columnGroups,i=>(e.openBlock(),e.createElementBlock("th",{key:i.key,colspan:i.span,scope:"colgroup",class:"onyx-table__colgroup"},e.toDisplayString(i.header),9,an))),128))])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"head")])):e.createCommentVNode("",!0),e.createElementVNode("tbody",null,[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("tr",rn,[e.createElementVNode("td",sn,[e.createElementVNode("div",cn,[e.renderSlot(s.$slots,"empty",{defaultMessage:a.value},()=>[e.createVNode(Ee,null,{icon:e.withCtx(()=>[e.createVNode(g,{icon:e.unref(Wo),size:"48px"},null,8,["icon"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(a.value),1)]),_:1})])])])])])])],2)],10,tn)])}}}),un=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(et,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))}}),dn=["aria-modal","aria-label","role"],tt=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),s=()=>{var c,p;t.modal?(c=r.value)==null||c.showModal():(p=r.value)==null||p.show()};return e.watch([r,()=>t.open],()=>{var c;t.open?s():(c=r.value)==null||c.close()}),e.watch(()=>t.modal,()=>{var c;(c=r.value)!=null&&c.open&&(r.value.close(),s())}),(c,p)=>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:p[0]||(p[0]=e.withModifiers(i=>l("close"),["prevent"]))},[e.renderSlot(c.$slots,"default")],42,dn)):e.createCommentVNode("",!0)}}),pn='<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>',mn=n=>/^http(s?):\/\//.test(n),ee=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:mn(o.href??"")});return(l,r)=>t.value?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-external-link-icon",icon:e.unref(pn),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)}}),fn=["h1","h2","h3","h4","h5","h6"],yn=["12px","16px","24px","32px","48px","64px","96px"],hn=["aria-label","title","type","disabled","autofocus"],ot=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{default:M},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},setup(n){const o=n,{densityClass:t}=b(o),{disabled:l}=T(o);return(r,a)=>o.skeleton?(e.openBlock(),e.createBlock(w,{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(L,{key:0,type:"circle"})):o.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:o.icon},null,8,["icon"])):e.renderSlot(r.$slots,"default",{key:2})],10,hn))}}),xe='<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>',te=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}))}}),vn={class:"onyx-info-tooltip"},X=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",vn,[t.value==="click"?(e.openBlock(),e.createBlock(F,{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(g,{icon:e.unref(xe)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(F,{"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(g,{icon:e.unref(xe)},null,8,["icon"])],16)]),_:1},8,["text","open","color","position"]),e.createVNode(te,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})],64))]))}}),_n={key:0,class:"onyx-form-element__label onyx-text--small"},kn=["for"],xn={key:1,class:"onyx-form-element__footer onyx-text--small"},gn={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},bn={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Bn={key:4,class:"onyx-form-element__counter"},oe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},id:{default:()=>e.useId()??""},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(n){const o=n,{t}=C(),{requiredMarkerClass:l,requiredTypeClass:r}=Q(o),a=e.computed(()=>{var s;if(o.withCounter&&o.maxlength)return`${(((s=o.modelValue)==null?void 0:s.toString())||"").length}/${o.maxlength}`});return(s,c)=>{var p,i;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[o.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_n,[e.createElementVNode("label",{for:o.id,class:"onyx-truncation-ellipsis"},e.toDisplayString(o.label),9,kn),o.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([o.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),o.labelTooltip?(e.openBlock(),e.createBlock(X,{key:1,class:"onyx-form-element__label-tooltip",open:"hover",text:o.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),o.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([o.required?void 0:e.unref(l)])},null,2))])),e.renderSlot(s.$slots,"default",{id:o.id}),o.message||(p=s.errorMessages)!=null&&p.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",xn,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",gn,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(i=s.errorMessages)!=null&&i.longMessage?(e.openBlock(),e.createBlock(X,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("tooltip.error"),open:"hover",text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("span",bn,e.toDisplayString(o.message),1)):e.createCommentVNode("",!0),o.messageTooltip?(e.openBlock(),e.createBlock(X,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",open:"hover",text:o.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",Bn,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Cn={class:"onyx-input__wrapper"},Vn=["id","placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],wn=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},id:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{default:M},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(n,{emit:o}){const t=n,l=o,{vCustomValidity:r,errorMessages:a}=A({props:t,emit:l}),{densityClass:s}=b(t),c=e.computed({get:()=>t.modelValue,set:u=>l("update:modelValue",u)}),p=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern),{disabled:i}=T(t);return(u,d)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-input-skeleton",e.unref(s)])},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(w,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(oe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(({id:f})=>[e.createElementVNode("div",Cn,[t.loading?(e.openBlock(),e.createBlock(L,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:f,"onUpdate:modelValue":d[0]||(d[0]=m=>c.value=m),placeholder:t.placeholder,class:"onyx-input__native",type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:p.value,readonly:t.readonly,disabled:e.unref(i)||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0},null,8,Vn),[[e.vModelDynamic,c.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),En=["email","password","search","tel","text","url"],Sn=["none","sentences","words","characters"],Nn=["href","target","rel"],Mn=e.defineComponent({__name:"OnyxLink",props:{href:{},withExternalIcon:{type:[Boolean,String],default:"auto"},target:{default:"_self"}},setup(n){const o=n,{t}=C();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(te,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(ee,e.normalizeProps(e.guardReactiveProps(o)),null,16)],8,Nn))}}),$n=["_self","_blank","_parent","_top"],ne=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))}}),On='<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>',Se='<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>',nt=()=>{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}},Tn=["placeholder","aria-label"],In=["aria-label"],lt=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:s}=nt(),{densityClass:c}=b(l),{t:p}=C(),i=e.ref(),u=e.computed({get:()=>l.modelValue,set:f=>r("update:modelValue",f??"")}),d=e.computed(()=>p.value("select.searchPlaceholder"));return o({focus:()=>{var f;return(f=i.value)==null?void 0:f.focus()}}),(f,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(c)]},e.unref(a),{style:{"--onyx-placeholder-character-count":d.value.length}}),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:i,"onUpdate:modelValue":m[0]||(m[0]=y=>u.value=y),class:"onyx-mini-search__input onyx-text",placeholder:d.value,type:"text",size:"1"},e.unref(s),{"aria-label":l.label}),null,16,Tn),[[e.vModelText,u.value]]),e.createElementVNode("button",{type:"button",class:"onyx-mini-search__clear","aria-label":e.unref(p)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(()=>{},["prevent"])),onClick:m[2]||(m[2]=y=>r("clear"))},[e.createVNode(g,{icon:e.unref(Se)},null,8,["icon"])],40,In),e.createVNode(g,{class:"onyx-mini-search__icon",icon:e.unref(On)},null,8,["icon"])],16))}}),Ln='<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>',Dn={class:"onyx-mobile-nav-button"},Pn=["aria-label"],An={class:"onyx-mobile-nav-button__flyout"},zn={class:"onyx-mobile-nav-button__menu"},ge=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",Dn,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["onyx-mobile-nav-button__trigger",{"onyx-mobile-nav-button__trigger--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=s=>l("update:open",!t.open))},[e.createVNode(g,{icon:t.open?e.unref(Ln):t.icon},null,8,["icon"])],10,Pn),t.open?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",An,[e.createElementVNode("div",zn,[t.headline?(e.openBlock(),e.createBlock(R,{key:0,is:"h2",class:"onyx-mobile-nav-button__headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")])]),e.createElementVNode("div",{class:"onyx-mobile-nav-button__backdrop",role:"presentation",onClick:a[1]||(a[1]=s=>l("update:open",!1))})],64)):e.createCommentVNode("",!0)]))}}),Hn=["aria-label"],Rn=["src","alt"],Fn={key:1,class:"onyx-text-small onyx-truncation-ellipsis"},at=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},setup(n){const o=n,{t}=C(),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,Rn)):e.createCommentVNode("",!0),o.appName?(e.openBlock(),e.createElementBlock("span",Fn,e.toDisplayString(o.appName),1)):e.createCommentVNode("",!0)])],8,Hn))}}),Un=`<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"/>
|