sit-onyx 1.0.0-alpha.150 → 1.0.0-alpha.151
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.
|
@@ -27,4 +27,4 @@ export type OnyxNavBarProps = Omit<OnyxNavAppAreaProps, "label"> & {
|
|
|
27
27
|
*
|
|
28
28
|
* @returns `true` if mobile, `false` otherwise
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const MOBILE_NAV_BAR_INJECTION_KEY: InjectionKey<ComputedRef<boolean>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createMenuButton } from '@sit-onyx/headless';
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
|
+
|
|
4
|
+
export type OnyxNavItemProps = {
|
|
5
|
+
/**
|
|
6
|
+
* URL that the nav item points to.
|
|
7
|
+
*/
|
|
8
|
+
href?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the nav item is (visually) active.
|
|
11
|
+
*/
|
|
12
|
+
active?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* [Vue injection key](https://vuejs.org/guide/components/provide-inject) that is provided by the flyout menu
|
|
16
|
+
* to provide child components with correct aria attributes.
|
|
17
|
+
*
|
|
18
|
+
* @returns all the elements that createMenuButton composable provides
|
|
19
|
+
*/
|
|
20
|
+
export declare const MENU_BUTTON_ITEM_INJECTION_KEY: InjectionKey<Pick<ReturnType<typeof createMenuButton>["elements"], "listItem" | "menuItem">>;
|
|
@@ -53,11 +53,8 @@ export type SelectModelValueProps<TValue extends SelectOptionValue> = {
|
|
|
53
53
|
};
|
|
54
54
|
export type OnyxSelectProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & SelectModelValueProps<TValue> & SelectSearchProps & Omit<OnyxSelectInputProps<TValue>, "density" | "modelValue"> & AutofocusProp & {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
label: string;
|
|
59
|
-
/**
|
|
60
|
-
* Label describing the selection list, must be set to support assistive technologies.
|
|
56
|
+
* Label describing the list of options to support assistive technologies.
|
|
57
|
+
* @example: { label: "Your Animal", listLabel: "List of animals" }
|
|
61
58
|
*/
|
|
62
59
|
listLabel: string;
|
|
63
60
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Ye={key:0,class:"onyx-app__nav"},Xe={class:"onyx-app__page"},We={key:1,class:"onyx-app__page-overlay"},Je={key:2,class:"onyx-app__app-overlay"},Qe=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(o){const n=o,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":n.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",Xe,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),et=["title"],tt=["src","alt"],ot={key:1,class:"onyx-avatar__initials"},ne=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>{const a=n.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>n.src,()=>r.value=!1),(a,s)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${n.size}`,t.default?"onyx-avatar--custom":""]]),title:n.label},[n.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:n.src,alt:n.label,onError:s[0]||(s[0]=i=>r.value=!0)},null,40,tt)):(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,et))}}),nt={class:"onyx-avatar-stack"},lt=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(n.$slots,"default")]))}}),at=["compact","default","cozy"],b=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),rt=["innerHTML"],g=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${n.size}`]:n.size,[`onyx-icon--${n.color}`]:n.color}),"aria-hidden":"true",innerHTML:n.icon},null,10,rt))}}),Be=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${n.color}`,n.dot?"onyx-badge--dot":"",e.unref(t)]])},[n.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-badge__icon",icon:n.icon,size:n.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),ue=(o,n)=>{const t=o.__vccOpts||o;for(const[l,r]of n)t[l]=r;return t},st={},it={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},ct=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),ut=[ct];function dt(o,n){return e.openBlock(),e.createElementBlock("svg",it,ut)}const pt=ue(st,[["render",dt]]),mt={},ft={class:"onyx-loading-dots"},ht=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),yt=[ht];function _t(o,n){return e.openBlock(),e.createElementBlock("div",ft,yt)}const vt=ue(mt,[["render",_t]]),T=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(pt,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(vt,{key:1})):e.createCommentVNode("",!0)}}),kt={},xt={"aria-hidden":"true",class:"onyx-skeleton"};function gt(o,n){return e.openBlock(),e.createElementBlock("figure",xt)}const V=ue(kt,[["render",gt]]),bt=["disabled","type","aria-label","autofocus"],Bt={class:"onyx-button__label onyx-truncation-ellipsis"},q=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.color}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(l)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,autofocus:t.autofocus,onClick:s[0]||(s[0]=i=>r("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(g,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(T,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Bt,e.toDisplayString(t.label),1)],10,bt))}}),Ct=["button","submit","reset"],wt=["primary","neutral","danger"],Vt=["default","outline","plain"],K=o=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${o.requiredMarker}`]:o.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":o.required,"onyx-optional-marker":!o.required}))}),Ce=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([o,n])=>n.enumerable).map(([o])=>o),Et=o=>Ce().reduce((n,t)=>(n[t]=o[t],n),{}),St=o=>{if(o.valueMissing)return"valueMissing";const n=Ce().filter(t=>t!=="valid").sort();for(const t of n)if(t in o&&o[t])return t},Nt=(o,n)=>{const t=Object.entries(o).filter(([r,a])=>a!==void 0),l=Object.entries(n).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===n[r])},$t=(o,n)=>o.reduce((t,l)=>{const r=l[n]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Mt="(optional)",Tt="Cancel",Ot="Apply",It="Back",Lt={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.'}}},Dt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},Pt={selectAll:"Select all",currentSelection:"{n} selected"},zt={opensExternally:"Opens in a new tab."},Ht="Subpages of {label}",At={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"},Ft={info:"Show info tooltip",error:"Show error tooltip"},Ut={headline:"Change appearance",subtitle:"Select the appearance of the application:",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."}},le={optional:Mt,cancel:Tt,apply:Ot,back:It,validations:Lt,select:Dt,selections:Pt,link:zt,navItemOptionsLabel:Ht,navigation:At,showTooltip:Ft,colorScheme:Ut},we=Symbol(),Ve=o=>{const n=e.computed(()=>e.unref(o==null?void 0:o.locale)??"en-US"),t=e.computed(()=>o!=null&&o.messages&&n.value in o.messages?o.messages[n.value]:le),l=e.computed(()=>(r,a={})=>{let s=ge(r,t.value)??ge(r,le)??"";const i=typeof a.n=="number"?a.n:void 0;return s=qt(s,i),Zt(s,a)});return{locale:n,t:l}},Rt=(o,n)=>o.provide(we,Ve(n)),C=()=>e.inject(we,()=>Ve(),!0),ge=(o,n)=>{const t=o.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],n);return t&&typeof t=="string"?t:void 0},qt=(o,n)=>{const t=o.split(" | ").map(r=>r.trim());if(t.length<=1)return o;let l=1;return n===0&&(l=0),n&&(n<=0||n>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},Zt=(o,n)=>n?Object.entries(n).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),o).replace(/\s?{.*}\s?/gi,""):o,Kt=Object.keys(le.validations.typeMismatch),Gt=o=>{if(o)return typeof o=="string"?{shortMessage:o,longMessage:o}:o},Ee=o=>{if(!o)return;if(typeof o=="string")return o;const{shortMessage:n,longMessage:t}=o;return`${n}: ${t}`},L=o=>{const{t:n}=C(),t=e.ref(),l=e.ref(!1);e.watch(()=>o.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Ee(o.props.customError)??"")),e.watch([()=>o.props.customError,()=>o.props.modelValue],()=>{const i=Et(s.validity);!t.value&&i.valid||t.value&&Nt(i,t.value)||(t.value=i)},{immediate:!0}),e.watch([()=>o.props.customError,t,l],()=>{!l.value||!t.value||o.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var d,p,c;if(!t.value||t.value.valid)return;const s=St(t.value),i=Gt(o.props.customError);if(i||s==="customError")return i||void 0;if(!s)return;if(s==="typeMismatch"){const m=Kt.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(d=o.props.modelValue)==null?void 0:d.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const u={value:(p=o.props.modelValue)==null?void 0:p.toString(),n:((c=o.props.modelValue)==null?void 0:c.toString().length)??0,minLength:o.props.minlength,maxLength:o.props.maxlength};return{longMessage:n.value(`validations.${s}.fullError`,u),shortMessage:n.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},jt={class:"onyx-checkbox__container"},Yt=["aria-label","title","indeterminate","disabled","required","value","autofocus"],U=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.computed({get:()=>t.modelValue,set:d=>l("update:modelValue",d)}),{requiredMarkerClass:a,requiredTypeClass:s}=K(t),{densityClass:i}=b(t),{vCustomValidity:u}=L({props:t,emit:l});return(d,p)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(i)])},[e.createVNode(V,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(i)]])},[e.createElementVNode("div",jt,[t.loading?(e.openBlock(),e.createBlock(e.unref(T),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":p[0]||(p[0]=c=>r.value=c),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value,autofocus:t.autofocus},null,8,Yt)),[[e.vModelCheckbox,r.value],[e.unref(u)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),Xt=(o,n)=>e.computed(()=>{const t=n.value.filter(r=>o.value.includes(r)),l=t.length===o.value.length;return{modelValue:l,indeterminate:!l&&o.value.length&&t.length?!0:void 0}}),Se=(o,n,t)=>({state:Xt(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),Wt=["disabled"],Jt={key:0,class:"onyx-checkbox-group__label"},Qt=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n,{t:a}=C(),s=(p,c)=>{const m=c?[...t.modelValue,p]:t.modelValue.filter(f=>f!==p);r("update:modelValue",m)},i=e.computed(()=>t.options.filter(p=>!p.disabled&&!p.skeleton).map(({value:p})=>p)),u=Se(i,e.computed(()=>t.modelValue),p=>r("update:modelValue",p)),d=e.computed(()=>{var c;const p=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?p:((c=t.withCheckAll)==null?void 0:c.label)??p});return(p,c)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",Jt,[e.createVNode(e.unref(I),{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(U,e.mergeProps({key:0},e.unref(u).state.value,{label:d.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(u).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(U,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":f=>s(m.value,f)}),null,16,["model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(U,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,Wt))}}),eo=["aria-modal","aria-label","role"],Ne=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(),{densityClass:a}=b(t),s=()=>{var i,u;t.modal?(i=r.value)==null||i.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var i;t.open?s():(i=r.value)==null||i.close()}),e.watch(()=>t.modal,()=>{var i;(i=r.value)!=null&&i.open&&(r.value.close(),s())}),(i,u)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:u[0]||(u[0]=e.withModifiers(d=>l("close"),["prevent"]))},[e.renderSlot(i.$slots,"default")],42,eo)):e.createCommentVNode("",!0)}}),I=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${n.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),de=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),to=`<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"),Ye={key:0,class:"onyx-app__nav"},Xe={class:"onyx-app__page"},We={key:1,class:"onyx-app__page-overlay"},Je={key:2,class:"onyx-app__app-overlay"},Qe=e.defineComponent({__name:"OnyxAppLayout",props:{navBarAlignment:{default:"top"}},setup(o){const n=o,t=e.useSlots();return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-app",{"onyx-app--horizontal":n.navBarAlignment==="left"}])},[t.navBar?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(l.$slots,"navBar")])):e.createCommentVNode("",!0),e.createElementVNode("div",Xe,[e.renderSlot(l.$slots,"default")]),t.pageOverlay?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"pageOverlay")])):e.createCommentVNode("",!0),t.appOverlay?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(l.$slots,"appOverlay")])):e.createCommentVNode("",!0)],2))}}),et=["title"],tt=["src","alt"],ot={key:1,class:"onyx-avatar__initials"},ne=e.defineComponent({__name:"OnyxAvatar",props:{size:{default:"48px"},label:{},src:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>{const a=n.label.split(" ");return(a.length>1?`${a[0].charAt(0)}${a[1].charAt(0)}`:a[0].substring(0,2)).toUpperCase()}),r=e.ref(!1);return e.watch(()=>n.src,()=>r.value=!1),(a,s)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass(["onyx-avatar",[`onyx-avatar--${n.size}`,t.default?"onyx-avatar--custom":""]]),title:n.label},[n.src&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"onyx-avatar__svg",src:n.src,alt:n.label,onError:s[0]||(s[0]=i=>r.value=!0)},null,40,tt)):(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]))],10,et))}}),nt={class:"onyx-avatar-stack"},lt=e.defineComponent({__name:"OnyxAvatarStack",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(n.$slots,"default")]))}}),at=["compact","default","cozy"],b=o=>({densityClass:e.computed(()=>({[`onyx-density-${o.density}`]:o.density}))}),rt=["innerHTML"],x=e.defineComponent({__name:"OnyxIcon",props:{size:{},icon:{},color:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createElementBlock("figure",{class:e.normalizeClass({"onyx-icon":!0,[`onyx-icon--${n.size}`]:n.size,[`onyx-icon--${n.color}`]:n.color}),"aria-hidden":"true",innerHTML:n.icon},null,10,rt))}}),Be=e.defineComponent({__name:"OnyxBadge",props:{density:{},color:{default:"primary"},icon:{},dot:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-badge",["onyx-truncation-ellipsis","onyx-text",`onyx-badge--${n.color}`,n.dot?"onyx-badge--dot":"",e.unref(t)]])},[n.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-badge__icon",icon:n.icon,size:n.density==="cozy"?"24px":"16px"},null,8,["icon","size"])):e.renderSlot(l.$slots,"default",{key:1})],64))],2))}}),ue=(o,n)=>{const t=o.__vccOpts||o;for(const[l,r]of n)t[l]=r;return t},st={},it={class:"onyx-circle-spinner",viewBox:"0 0 50 50"},ct=e.createElementVNode("circle",{class:"onyx-circle-spinner__circle",cx:"50%",cy:"50%",r:"45%"},null,-1),ut=[ct];function dt(o,n){return e.openBlock(),e.createElementBlock("svg",it,ut)}const pt=ue(st,[["render",dt]]),mt={},ft={class:"onyx-loading-dots"},ht=e.createElementVNode("span",{class:"onyx-loading-dots__center"},null,-1),yt=[ht];function _t(o,n){return e.openBlock(),e.createElementBlock("div",ft,yt)}const vt=ue(mt,[["render",_t]]),M=e.defineComponent({__name:"OnyxLoadingIndicator",props:{type:{default:"dots"}},setup(o){const n=o;return(t,l)=>n.type==="circle"?(e.openBlock(),e.createBlock(pt,{key:0})):n.type==="dots"?(e.openBlock(),e.createBlock(vt,{key:1})):e.createCommentVNode("",!0)}}),kt={},xt={"aria-hidden":"true",class:"onyx-skeleton"};function gt(o,n){return e.openBlock(),e.createElementBlock("figure",xt)}const w=ue(kt,[["render",gt]]),bt=["disabled","type","aria-label","autofocus"],Bt={class:"onyx-button__label onyx-truncation-ellipsis"},q=e.defineComponent({__name:"OnyxButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},mode:{default:"default"},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-button",`onyx-button--${t.color}`,`onyx-button--${t.mode}`,{"onyx-button--loading":t.loading},e.unref(l)]),disabled:t.disabled||t.loading,type:t.type,"aria-label":t.loading?t.label:void 0,autofocus:t.autofocus,onClick:s[0]||(s[0]=i=>r("click"))},[t.icon&&!t.loading?(e.openBlock(),e.createBlock(x,{key:0,icon:t.icon},null,8,["icon"])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(M,{key:1,class:"onyx-button__loading"})):e.createCommentVNode("",!0),e.createElementVNode("span",Bt,e.toDisplayString(t.label),1)],10,bt))}}),Ct=["button","submit","reset"],wt=["primary","neutral","danger"],Vt=["default","outline","plain"],K=o=>({requiredTypeClass:e.computed(()=>({[`onyx-use-${o.requiredMarker}`]:o.requiredMarker})),requiredMarkerClass:e.computed(()=>({"onyx-required-marker":o.required,"onyx-optional-marker":!o.required}))}),Ce=()=>Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([o,n])=>n.enumerable).map(([o])=>o),Et=o=>Ce().reduce((n,t)=>(n[t]=o[t],n),{}),St=o=>{if(o.valueMissing)return"valueMissing";const n=Ce().filter(t=>t!=="valid").sort();for(const t of n)if(t in o&&o[t])return t},Nt=(o,n)=>{const t=Object.entries(o).filter(([r,a])=>a!==void 0),l=Object.entries(n).filter(([r,a])=>a!==void 0);return t.length!==l.length?!1:t.every(([r,a])=>a===n[r])},$t=(o,n)=>o.reduce((t,l)=>{const r=l[n]??"";return t[r]=t[r]||[],t[r].push(l),t},{}),Mt="(optional)",Tt="Cancel",Ot="Apply",It="Back",Lt={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.'}}},Dt={toggleDropDown:"Toggle selection popover",empty:"No data available",noMatch:"No item matches your search",searchInputLabel:"Filter the list items",clearSearch:"Clear search filter"},Pt={selectAll:"Select all",currentSelection:"{n} selected"},At={opensExternally:"Opens in a new tab."},zt="Subpages of {label}",Ht={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"},Ft={info:"Show info tooltip",error:"Show error tooltip"},Ut={headline:"Change appearance",subtitle:"Select the appearance of the application:",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."}},le={optional:Mt,cancel:Tt,apply:Ot,back:It,validations:Lt,select:Dt,selections:Pt,link:At,navItemOptionsLabel:zt,navigation:Ht,showTooltip:Ft,colorScheme:Ut},we=Symbol(),Ve=o=>{const n=e.computed(()=>e.unref(o==null?void 0:o.locale)??"en-US"),t=e.computed(()=>o!=null&&o.messages&&n.value in o.messages?o.messages[n.value]:le),l=e.computed(()=>(r,a={})=>{let s=ge(r,t.value)??ge(r,le)??"";const i=typeof a.n=="number"?a.n:void 0;return s=qt(s,i),Zt(s,a)});return{locale:n,t:l}},Rt=(o,n)=>o.provide(we,Ve(n)),C=()=>e.inject(we,()=>Ve(),!0),ge=(o,n)=>{const t=o.split(".").reduce((l,r)=>!l||typeof l=="string"?l:l[r],n);return t&&typeof t=="string"?t:void 0},qt=(o,n)=>{const t=o.split(" | ").map(r=>r.trim());if(t.length<=1)return o;let l=1;return n===0&&(l=0),n&&(n<=0||n>1)&&(l=2),t.length===2?l===1?t[0]:t[1]:t[l]},Zt=(o,n)=>n?Object.entries(n).reduce((l,[r,a])=>a===void 0?l:l.replace(new RegExp(`{${r}}`,"gi"),a.toString()),o).replace(/\s?{.*}\s?/gi,""):o,Kt=Object.keys(le.validations.typeMismatch),Gt=o=>{if(o)return typeof o=="string"?{shortMessage:o,longMessage:o}:o},Ee=o=>{if(!o)return;if(typeof o=="string")return o;const{shortMessage:n,longMessage:t}=o;return`${n}: ${t}`},L=o=>{const{t:n}=C(),t=e.ref(),l=e.ref(!1);e.watch(()=>o.props.modelValue,()=>l.value=!0,{once:!0});const r={mounted:s=>{e.watchEffect(()=>s.setCustomValidity(Ee(o.props.customError)??"")),e.watch([()=>o.props.customError,()=>o.props.modelValue],()=>{const i=Et(s.validity);!t.value&&i.valid||t.value&&Nt(i,t.value)||(t.value=i)},{immediate:!0}),e.watch([()=>o.props.customError,t,l],()=>{!l.value||!t.value||o.emit("validityChange",t.value)},{immediate:!0})}},a=e.computed(()=>{var d,p,c;if(!t.value||t.value.valid)return;const s=St(t.value),i=Gt(o.props.customError);if(i||s==="customError")return i||void 0;if(!s)return;if(s==="typeMismatch"){const m=Kt.includes(o.props.type)?o.props.type:"generic";return{longMessage:n.value(`validations.typeMismatch.${m}.fullError`,{value:(d=o.props.modelValue)==null?void 0:d.toString()}),shortMessage:n.value(`validations.typeMismatch.${m}.preview`)}}const u={value:(p=o.props.modelValue)==null?void 0:p.toString(),n:((c=o.props.modelValue)==null?void 0:c.toString().length)??0,minLength:o.props.minlength,maxLength:o.props.maxlength};return{longMessage:n.value(`validations.${s}.fullError`,u),shortMessage:n.value(`validations.${s}.preview`)}});return{vCustomValidity:r,errorMessages:a}},jt={class:"onyx-checkbox__container"},Yt=["aria-label","title","indeterminate","disabled","required","value","autofocus"],U=e.defineComponent({__name:"OnyxCheckbox",props:{density:{},value:{},label:{},hideLabel:{type:Boolean},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},truncation:{default:"ellipsis"},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.computed({get:()=>t.modelValue,set:d=>l("update:modelValue",d)}),{requiredMarkerClass:a,requiredTypeClass:s}=K(t),{densityClass:i}=b(t),{vCustomValidity:u}=L({props:t,emit:l});return(d,p)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox-skeleton",e.unref(i)])},[e.createVNode(w,{class:"onyx-checkbox-skeleton__input"}),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-checkbox-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-checkbox",[e.unref(s),e.unref(i)]])},[e.createElementVNode("div",jt,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-checkbox__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":p[0]||(p[0]=c=>r.value=c),"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,class:"onyx-checkbox__input",type:"checkbox",indeterminate:t.indeterminate,disabled:t.disabled,required:t.required,value:t.value,autofocus:t.autofocus},null,8,Yt)),[[e.vModelCheckbox,r.value],[e.unref(u)]])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("p",{class:e.normalizeClass(["onyx-checkbox__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(a):void 0]])},e.toDisplayString(t.label),3),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-checkbox__marker",[e.unref(a)]])},null,2)):e.createCommentVNode("",!0)],64))],2))}}),Xt=(o,n)=>e.computed(()=>{const t=n.value.filter(r=>o.value.includes(r)),l=t.length===o.value.length;return{modelValue:l,indeterminate:!l&&o.value.length&&t.length?!0:void 0}}),Se=(o,n,t)=>({state:Xt(o,n),handleChange:l=>{const r=n.value.filter(s=>!o.value.includes(s)),a=l?r.concat(o.value):r;t(a)}}),Wt=["disabled"],Jt={key:0,class:"onyx-checkbox-group__label"},Qt=e.defineComponent({__name:"OnyxCheckboxGroup",props:{density:{},options:{},modelValue:{default:()=>[]},headline:{},direction:{default:"vertical"},withCheckAll:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},skeleton:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n,{t:a}=C(),s=(p,c)=>{const m=c?[...t.modelValue,p]:t.modelValue.filter(f=>f!==p);r("update:modelValue",m)},i=e.computed(()=>t.options.filter(p=>!p.disabled&&!p.skeleton).map(({value:p})=>p)),u=Se(i,e.computed(()=>t.modelValue),p=>r("update:modelValue",p)),d=e.computed(()=>{var c;const p=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?p:((c=t.withCheckAll)==null?void 0:c.label)??p});return(p,c)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-checkbox-group",e.unref(l)]),disabled:t.disabled},[t.headline?(e.openBlock(),e.createElementBlock("legend",Jt,[e.createVNode(e.unref(I),{is:"h3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-checkbox-group__content",{"onyx-checkbox-group__content--horizontal":t.direction==="horizontal","onyx-checkbox-group__content--vertical":t.direction==="vertical"}])},[t.skeleton===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.withCheckAll?(e.openBlock(),e.createBlock(U,e.mergeProps({key:0},e.unref(u).state.value,{label:d.value,value:"all",class:"onyx-checkbox-group__option onyx-checkbox-group__check-all","onUpdate:modelValue":e.unref(u).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(U,e.mergeProps({key:m.value.toString(),ref_for:!0},m,{"model-value":t.modelValue.includes(m.value),class:"onyx-checkbox-group__option","onUpdate:modelValue":f=>s(m.value,f)}),null,16,["model-value","onUpdate:modelValue"]))),128))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,m=>(e.openBlock(),e.createBlock(U,{key:m,label:`Skeleton ${m}`,value:`skeleton-${m}`,skeleton:""},null,8,["label","value"]))),128))],2)],10,Wt))}}),eo=["aria-modal","aria-label","role"],Ne=e.defineComponent({__name:"OnyxDialog",props:{density:{},label:{},open:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},alert:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(),{densityClass:a}=b(t),s=()=>{var i,u;t.modal?(i=r.value)==null||i.showModal():(u=r.value)==null||u.show()};return e.watch([r,()=>t.open],()=>{var i;t.open?s():(i=r.value)==null||i.close()}),e.watch(()=>t.modal,()=>{var i;(i=r.value)!=null&&i.open&&(r.value.close(),s())}),(i,u)=>t.open?(e.openBlock(),e.createElementBlock("dialog",{key:0,ref_key:"dialogRef",ref:r,class:e.normalizeClass(["onyx-dialog",e.unref(a),"onyx-truncation-multiline"]),"aria-modal":t.modal,"aria-label":t.label,role:t.alert?"alertdialog":void 0,onCancel:u[0]||(u[0]=e.withModifiers(d=>l("close"),["prevent"]))},[e.renderSlot(i.$slots,"default")],42,eo)):e.createCommentVNode("",!0)}}),I=e.defineComponent({__name:"OnyxHeadline",props:{is:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:e.normalizeClass(["onyx-headline",`onyx-headline--${n.is}`])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),de=e.defineComponent({__name:"OnyxVisuallyHidden",props:{is:{default:"span"}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),{class:"onyx-visually-hidden"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}}),to=`<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<g clip-path="url(#clip0_4499_144781)">
|
|
3
3
|
<mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
|
|
4
4
|
<rect width="83" height="104" fill="#D9D9D9"/>
|
|
@@ -180,4 +180,4 @@
|
|
|
180
180
|
</clipPath>
|
|
181
181
|
</defs>
|
|
182
182
|
</svg>
|
|
183
|
-
`,lo={class:"onyx-color-scheme-dialog__subtitle onyx-text"},ao=["innerHTML"],ro=["autofocus","value","checked","aria-label"],so={class:"onyx-text--small"},io={class:"onyx-color-scheme-dialog__actions"},co=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(t.modelValue);e.watchEffect(()=>r.value=t.modelValue);const{t:a}=C(),s=e.computed(()=>[{value:"auto",image:to,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:no,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:oo,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),i=d=>{const p=d.target;r.value=p.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(d,p)=>(e.openBlock(),e.createBlock(Ne,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:p[1]||(p[1]=c=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(u,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(I,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",lo,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:i},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,c=>(e.openBlock(),e.createElementBlock("label",{key:c.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:c.image},null,8,ao),e.createElementVNode("div",null,[e.createVNode(de,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===c.value,value:c.value,checked:t.modelValue===c.value,"aria-label":c.label,required:""},null,8,ro)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1024),e.createElementVNode("p",so,e.toDisplayString(c.description),1)])]))),128))],32),e.createElementVNode("div",io,[e.createVNode(q,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:p[0]||(p[0]=c=>l("close"))},null,8,["label"]),e.createVNode(q,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),uo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>',po={class:"onyx-empty"},mo={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},$e=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",po,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(g,{icon:e.unref(uo),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",mo,[e.renderSlot(n.$slots,"default")])]))}}),fo={class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"},pe=e.defineComponent({__name:"OnyxFlyoutMenu",setup(o){const n=e.useSlots();return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"onyx-flyout-menu":!0,"onyx-flyout-menu--with-header":!!n.header,"onyx-flyout-menu--with-footer":!!n.footer})},[e.renderSlot(t.$slots,"header"),e.createElementVNode("ul",fo,[e.renderSlot(t.$slots,"default")]),e.renderSlot(t.$slots,"footer")],2))}}),ho=["h1","h2","h3","h4","h5","h6"],yo=["12px","16px","24px","32px","48px","64px","96px"],_o=["aria-label","title","disabled","autofocus"],Me=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(V,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.color}`,{"onyx-icon-button--loading":t.loading},e.unref(l)]]),"aria-label":t.label,title:t.label,disabled:t.disabled||t.loading,autofocus:t.autofocus,onClick:s[0]||(s[0]=i=>r("click"))},[t.loading?(e.openBlock(),e.createBlock(T,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,_o))}}),vo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>',G=o=>o,ko=(()=>{let o=1;return()=>o++})(),O=o=>`${o}-${ko()}`,xo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),go=(o,n)=>typeof n=="string"?o.key===n:xo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ae=o=>!Bo.has(o),bo=["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"],Bo=new Set(bo),Te=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},Oe=(o,n=500)=>{let t="";const l=Te(()=>t="",n);return r=>{ae(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Co=G(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=u=>(t.has(u)||t.set(u,O("listbox-option")),t.get(u)),r=e.ref(!1);e.watchEffect(()=>{var d;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const u=l(o.activeOption.value);(d=document.getElementById(u))==null||d.scrollIntoView({block:"nearest",inline:"nearest"})});const a=Oe(u=>{var d;return(d=o.onTypeAhead)==null?void 0:d.call(o,u)}),s=u=>{var d,p,c,m,f,y,w;switch(u.key){case" ":u.preventDefault(),o.activeOption.value!=null&&((d=o.onSelect)==null||d.call(o,o.activeOption.value));break;case"ArrowUp":if(u.preventDefault(),o.activeOption.value==null){(p=o.onActivateLast)==null||p.call(o);return}(c=o.onActivatePrevious)==null||c.call(o,o.activeOption.value);break;case"ArrowDown":if(u.preventDefault(),o.activeOption.value==null){(m=o.onActivateFirst)==null||m.call(o);return}(f=o.onActivateNext)==null||f.call(o,o.activeOption.value);break;case"Home":u.preventDefault(),(y=o.onActivateFirst)==null||y.call(o);break;case"End":u.preventDefault(),(w=o.onActivateLast)==null||w.call(o);break;default:a(u)}};return{elements:{listbox:e.computed(()=>o.controlled?{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"0","aria-activedescendant":o.activeOption.value!=null?l(o.activeOption.value):void 0,onFocus:()=>r.value=!0,onBlur:()=>r.value=!1,onKeydown:s}),group:e.computed(()=>u=>({role:"group","aria-label":u.label})),option:e.computed(()=>u=>{const d=u.selected??!1;return{id:l(u.value),role:"option","aria-label":u.label,"aria-disabled":u.disabled,"aria-checked":n.value?d:void 0,"aria-selected":n.value?void 0:d,onClick:()=>{var p;return!u.disabled&&((p=o.onSelect)==null?void 0:p.call(o,u.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ie=o=>{const n=t=>{const l=o.queryComponent();if(!l||!(t.target instanceof Node))return;!t.composedPath().includes(l)&&o.onOutsideClick()};e.onBeforeMount(()=>{e.watchEffect(()=>{var t;(t=o.disabled)!=null&&t.value?document.removeEventListener("click",n):document.addEventListener("click",n)})}),e.onBeforeUnmount(()=>{document.removeEventListener("click",n)})},Le=["ArrowDown","ArrowUp"," ","Enter","Home","End"],De=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],wo=["Enter"," "],Vo=["Enter"],Eo=(o,n)=>re(o,n?Vo:wo),re=(o,n)=>n.some(t=>go(o,t)),So=G(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:i,activeOption:u,onToggle:d,onSelect:p,onActivateFirst:c,onActivateLast:m,onActivateNext:f,onActivatePrevious:y,templateRef:w})=>{const E=O("comboBox-control"),k=e.computed(()=>e.unref(n)),x=e.computed(()=>e.unref(i)),N=e.computed(()=>e.unref(r)),j=_=>{const P=_.target;k.value!=="none"&&(t==null||t(P.value))},Y=Oe(_=>l==null?void 0:l(_)),H=_=>{p==null||p(_),e.unref(N)||d==null||d()},X=_=>{switch(_.key){case"ArrowUp":if(_.preventDefault(),u.value==null)return m==null?void 0:m();y==null||y(u.value);break;case"ArrowDown":if(_.preventDefault(),u.value==null)return c==null?void 0:c();f==null||f(u.value);break;case"Home":_.preventDefault(),c==null||c();break;case"End":_.preventDefault(),m==null||m();break}},D=_=>{if(!x.value&&re(_,Le))return d==null||d(),_.key===" "&&_.preventDefault(),_.key==="End"?m==null?void 0:m():c==null?void 0:c();if(Eo(_,N.value))return H(u.value);if(x.value&&re(_,De))return d==null?void 0:d();if(k.value==="none"&&ae(_.key))return!x.value&&(d==null||d()),Y(_);if(k.value!=="none"&&ae(_.key)){!x.value&&(d==null||d());return}return X(_)},A=k.value!=="none"?{"aria-autocomplete":k.value,type:"text"}:null,{elements:{option:W,group:J,listbox:Q},internals:{getOptionId:ee}}=Co({label:s,multiple:N,controlled:!0,activeOption:u,onSelect:H});return Ie({queryComponent:()=>w.value,onOutsideClick(){x.value&&(d==null||d(!0))}}),{elements:{option:W,group:J,listbox:e.computed(()=>({...Q.value,id:E,onMousedown:_=>_.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":x.value,"aria-controls":E,"aria-label":e.unref(a),"aria-activedescendant":u.value!=null?ee(u.value):void 0,onInput:j,onKeydown:D,...A})),button:e.computed(()=>({tabindex:"-1",onClick:()=>d==null?void 0:d()}))}}}),No=G(o=>{const n=O("tooltip"),t=e.ref(!1);let l;const r=e.computed(()=>{const c=e.unref(o.open);return typeof c!="object"?200:c.debounce}),a=e.computed(()=>{const c=e.unref(o.open);return typeof c!="object"?c:c.type}),s=e.computed({get:()=>t.value,set:c=>{clearTimeout(l),l=setTimeout(()=>{t.value=c},r.value)}}),i=e.computed(()=>typeof a.value=="boolean"?a.value:s.value),u=()=>{t.value=!t.value},d=e.computed(()=>{if(a.value==="hover")return{onMouseover:()=>s.value=!0,onMouseout:()=>s.value=!1,onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1}}),p=c=>{c.key==="Escape"&&(t.value=!1)};return Ie({queryComponent:()=>{var c;return(c=document.getElementById(n))==null?void 0:c.parentElement},onOutsideClick:()=>t.value=!1,disabled:e.computed(()=>a.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",p)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",p)}),{elements:{trigger:e.computed(()=>({"aria-describedby":n,onClick:a.value==="click"?u:void 0,...d.value})),tooltip:e.computed(()=>({role:"tooltip",id:n,tabindex:"-1",...d.value}))},state:{isVisible:i}}}),$o=G(o=>{const n=O("menu"),t=O("menu-button"),l=e.ref(!1),r=Te(s=>l.value=s,200),a=e.computed(()=>({onMouseover:()=>r(!0),onMouseout:()=>r(!1),onFocusin:()=>l.value=!0,onFocusout:()=>l.value=!1}));return{state:{isExpanded:l},elements:{button:e.computed(()=>({"aria-controls":n,"aria-expanded":l.value,"aria-haspopup":!0,id:t,...a.value})),listItem:{role:"none"},flyout:{...a.value},menu:{id:n,role:"menu","aria-labelledby":t},menuItem:s=>({"aria-current":s.active?"page":void 0,role:"menuitem",tabindex:-1,onClick:()=>{o.onSelect(s.value)}})}}}),Mo={class:"onyx-tooltip-wrapper"},me=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(o){const n=o,{elements:{trigger:t,tooltip:l},state:{isVisible:r}}=No({open:e.computed(()=>n.open)});return(a,s)=>(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("div",e.mergeProps(e.unref(l),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":n.color==="danger","onyx-tooltip--bottom":n.position==="bottom","onyx-tooltip--fit-parent":n.fitParent,"onyx-tooltip--hidden":!e.unref(r)}]}),[n.icon?(e.openBlock(),e.createBlock(g,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(n.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(t))),[e.renderSlot(a.$slots,"default")],16)]))}}),To=["aria-label"],R=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=C();return(l,r)=>(e.openBlock(),e.createBlock(me,{class:"onyx-info-tooltip",text:n.text,position:n.position},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":n.label||e.unref(t)("showTooltip.info"),class:"onyx-info-tooltip__trigger"},[e.createVNode(g,{icon:e.unref(vo)},null,8,["icon"])],8,To)]),_:1},8,["text","position"]))}}),Oo={class:"onyx-form-element__header"},Io={class:"onyx-truncation-ellipsis"},Lo={key:2,class:"onyx-form-element__optional"},Do={key:0,class:"onyx-form-element__footer onyx-text--small"},Po={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},zo={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},Ho={key:4,class:"onyx-form-element__counter"},fe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(o){const n=o,{t}=C(),{requiredMarkerClass:l,requiredTypeClass:r}=K(n),a=e.computed(()=>{var s;if(n.withCounter&&n.maxlength)return`${(((s=n.modelValue)==null?void 0:s.toString())||"").length}/${n.maxlength}`});return(s,i)=>{var u,d;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[e.createElementVNode("label",null,[n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-form-element__label onyx-text--small",[n.required?void 0:e.unref(l)]])},[e.createElementVNode("div",Oo,[e.createElementVNode("span",Io,e.toDisplayString(n.label),1),n.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([n.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),n.labelTooltip?(e.openBlock(),e.createBlock(R,{key:1,class:"onyx-form-element__label-tooltip",text:n.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),n.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Lo,e.toDisplayString(e.unref(t)("optional")),1))])],2)),e.renderSlot(s.$slots,"default")]),n.message||(u=s.errorMessages)!=null&&u.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",Do,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",Po,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(d=s.errorMessages)!=null&&d.longMessage?(e.openBlock(),e.createBlock(R,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("showTooltip.error"),text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("span",zo,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0),n.messageTooltip?(e.openBlock(),e.createBlock(R,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",text:n.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",Ho,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Ao={class:"onyx-input__wrapper"},Fo=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Uo=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=L({props:t,emit:l}),{densityClass:s}=b(t),i=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),u=p=>{const c=p.target.value;l("change",c)},d=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(p,c)=>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(V,{key:0,class:"onyx-input-skeleton__label"})),e.createVNode(V,{class:"onyx-input-skeleton__input"})],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-input",e.unref(s)])},[e.createVNode(fe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",Ao,[t.loading?(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=m=>i.value=m),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:d.value,readonly:t.readonly,disabled:t.disabled||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onChange:u,onFocus:c[1]||(c[1]=m=>l("focus")),onBlur:c[2]||(c[2]=m=>l("blur"))},null,40,Fo),[[e.vModelDynamic,i.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Ro=["email","password","search","tel","text","url"],qo=["none","sentences","words","characters"],Z='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>',he=o=>/^http(s?):\/\//.test(o),Zo=["href","target","rel"],Ko=e.defineComponent({__name:"OnyxLink",props:{href:{},target:{default:"_self"},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:he(t.href));return(s,i)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:i[0]||(i[0]=u=>l("click"))},[e.renderSlot(s.$slots,"default"),t.target==="_blank"?(e.openBlock(),e.createBlock(de,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createBlock(g,{key:1,class:"onyx-link__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)],8,Zo))}}),Go=["_self","_blank","_parent","_top"],ye=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":n.active,[`onyx-list-item--${n.color}`]:n.color,"onyx-list-item--disabled":n.disabled,"onyx-list-item--selected":n.selected,"onyx-list-item--checked":n.checked})},[e.renderSlot(l.$slots,"default")],2))}}),jo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>',Pe='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>',ze=()=>{const o=e.useAttrs(),n=e.computed(()=>({class:o.class,style:o.style})),t=e.computed(()=>{const l={...o};return delete l.class,delete l.style,l});return{rootAttrs:n,restAttrs:t}},Yo=["aria-label"],Xo=["aria-label"],He=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(o,{expose:n,emit:t}){const l=o,r=t,{rootAttrs:a,restAttrs:s}=ze(),{densityClass:i}=b(l),{t:u}=C(),d=e.ref(),p=e.computed({get:()=>l.modelValue,set:c=>r("update:modelValue",c??"")});return n({focus:()=>{var c;return(c=d.value)==null?void 0:c.focus()}}),(c,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(i)]},e.unref(a)),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:d,"onUpdate:modelValue":m[0]||(m[0]=f=>p.value=f),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,Yo),[[e.vModelText,p.value]]),e.createElementVNode("button",{class:"onyx-mini-search__clear","aria-label":e.unref(u)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(f=>r("clear"),["prevent"]))},[e.createVNode(g,{icon:e.unref(Pe)},null,8,["icon"])],40,Xo),e.createVNode(g,{class:"onyx-mini-search__icon",icon:e.unref(jo)},null,8,["icon"])],16))}}),Wo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>',Jo=["aria-label"],Qo={key:0,class:"onyx-mobile-nav-button__menu"},en={class:"onyx-mobile-nav-button__content"},se=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1}},emits:["update:open"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{class:e.normalizeClass(["onyx-mobile-nav-button",{"onyx-mobile-nav-button--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(Wo):t.icon},null,8,["icon"])],10,Jo),t.open?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",en,[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))})])):e.createCommentVNode("",!0)]))}}),tn=["aria-label"],on=["src","alt"],nn={key:1,class:"onyx-text-small"},Ae=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=e.computed(()=>t.label??r.value("navigation.goToHome"));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:"onyx-nav-app-area","aria-label":a.value,onClick:i[0]||(i[0]=u=>l("click"))},[e.renderSlot(s.$slots,"default",{},()=>[t.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoUrl,alt:e.unref(r)("navigation.appLogo",{appName:t.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,on)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,tn))}}),Fe='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>',ln='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>',an='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>',rn=(o,n)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=s=>{const i=s[0].contentBoxSize;l.value=i.reduce((u,{inlineSize:d})=>u+d,0),r.value=i.reduce((u,{blockSize:d})=>u+d,0)};return e.onBeforeMount(()=>{const s=new ResizeObserver(a);e.watch(o,(i,u)=>{u&&(s==null||s.unobserve(u)),i&&(s==null||s.observe(i,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>s.disconnect())}),{width:l,height:r}},Ue={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},sn=["primary","secondary","neutral","danger","warning","success","info"],cn=["small","default","large"],un=["ellipsis","multiline"],dn=["horizontal","vertical"],z=Symbol(),pn={class:"onyx-nav-bar__content"},mn={key:0,class:"onyx-nav-bar__mobile-page"},fn={class:"onyx-nav-bar__nav--mobile"},hn={role:"menubar"},yn={key:1,class:"onyx-nav-bar__nav"},_n={role:"menubar"},vn={key:0,class:"onyx-nav-bar__mobile-context"},kn={key:0,class:"onyx-nav-bar__mobile-global-context"},xn={class:"onyx-nav-bar__mobile-context-content"},gn={key:1,class:"onyx-nav-bar__context"},bn=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["appAreaClick","backButtonClick"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),a=e.ref(),{width:s}=rn(a),{t:i}=C(),u=e.ref(!1),d=e.ref(!1),p=e.computed(()=>{const c=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:Ue[t.mobileBreakpoint];return s.value!==0&&s.value<c});return e.provide(z,p),(c,m)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:a,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":p.value}])},[e.createElementVNode("div",pn,[p.value&&!u.value&&r.mobileActivePage?(e.openBlock(),e.createElementBlock("span",mn,[e.renderSlot(c.$slots,"mobileActivePage")])):t.appName||t.logoUrl||r.appArea?(e.openBlock(),e.createBlock(Ae,{key:1,class:"onyx-nav-bar__app","app-name":t.appName,"logo-url":t.logoUrl,label:t.appAreaLabel,onClick:m[0]||(m[0]=f=>{l("appAreaClick"),u.value=!1})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),t.withBackButton?(e.openBlock(),e.createBlock(Me,{key:2,class:"onyx-nav-bar__back",label:e.unref(i)("navigation.goBack"),icon:e.unref(Fe),color:"neutral",onClick:m[1]||(m[1]=f=>l("backButtonClick"))},null,8,["label","icon"])):e.createCommentVNode("",!0),r.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[p.value?(e.openBlock(),e.createBlock(se,{key:0,open:u.value,"onUpdate:open":[m[2]||(m[2]=f=>u.value=f),m[3]||(m[3]=f=>d.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(ln),label:e.unref(i)("navigation.toggleBurgerMenu")},{default:e.withCtx(()=>[e.createVNode(I,{is:"h2",class:"onyx-nav-bar__mobile-headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("navigation.navigationHeadline")),1)]),_:1}),e.createElementVNode("nav",fn,[e.createElementVNode("ul",hn,[e.renderSlot(c.$slots,"default")])])]),_:3},8,["open","icon","label"])):(e.openBlock(),e.createElementBlock("nav",yn,[e.createElementVNode("ul",_n,[e.renderSlot(c.$slots,"default")])]))],64)):e.createCommentVNode("",!0),r.contextArea||r.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[p.value?(e.openBlock(),e.createElementBlock("div",vn,[r.globalContextArea?(e.openBlock(),e.createElementBlock("div",kn,[e.renderSlot(c.$slots,"globalContextArea")])):e.createCommentVNode("",!0),r.contextArea?(e.openBlock(),e.createBlock(se,{key:1,open:d.value,"onUpdate:open":[m[4]||(m[4]=f=>d.value=f),m[5]||(m[5]=f=>u.value=!1)],icon:e.unref(an),label:e.unref(i)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",xn,[e.renderSlot(c.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",gn,[r.globalContextArea?e.renderSlot(c.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),r.contextArea?e.renderSlot(c.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),Bn={class:"onyx-future-flyout-menu"},Cn=["aria-label"],wn=e.defineComponent({__name:"OnyxFlyoutMenu",setup(o){const n=e.useSlots(),t=e.ref(),{elements:{button:l,menu:r,menuItem:a,listItem:s,flyout:i},state:{isExpanded:u}}=$o({onSelect:m=>{t.value=m}}),d=m=>m.length===1&&m[0].type.toString()==="Symbol(v-fgt)"&&Array.isArray(m[0].children)?m[0].children:m,p=e.computed(()=>{var m;return d(((m=n.options)==null?void 0:m.call(n))??[])}),{t:c}=C();return(m,f)=>{var y,w;return e.openBlock(),e.createElementBlock("div",Bn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((w=(y=n.default)==null?void 0:y.call(n))==null?void 0:w[0]),e.normalizeProps(e.guardReactiveProps(e.unref(l))),null,16)),n.options||n.header||n.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},e.unref(i),{"aria-label":e.unref(c)("navigation.navigationHeadline"),class:{"onyx-future-flyout-menu__list--with-header":!!n.header,"onyx-future-flyout-menu__list--with-footer":!!n.footer,"onyx-future-flyout-menu__list":!0}}),[e.renderSlot(m.$slots,"header"),n.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(r),{class:"onyx-future-flyout-menu__wrapper onyx-flyout-menu__group"}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(E,k)=>{var x;return e.openBlock(),e.createElementBlock("li",e.mergeProps({ref_for:!0},e.unref(s),{key:k,class:"onyx-future-flyout-menu__option"}),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E),e.mergeProps({ref_for:!0},(x=E.props)!=null&&x.href?e.unref(a)({active:t.value===E.props.href,value:E.props.href}):void 0),null,16))],16)}),128))],16)):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"footer")],16,Cn)),[[e.vShow,e.unref(u)]]):e.createCommentVNode("",!0)])}}}),Vn=e.defineComponent({__name:"OnyxNavButton",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(o,{emit:n}){const t=o,l=e.useSlots(),r=n,a=s=>(s.withExternalIcon??"auto")!=="auto"?s.withExternalIcon:he(s.href??"");return(s,i)=>(e.openBlock(),e.createBlock(wn,{class:"onyx-nav-button"},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["onyx-nav-button__trigger onyx-text",{"onyx-nav-button--active":t.active}]),onClick:i[0]||(i[0]=u=>t.href&&r("click",t.href))},[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),a(t)?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-nav-button__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)])],2)]),_:2},[l.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"children")]),key:"0"}:void 0]),1024))}}),En='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>',Sn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>',Nn=["aria-orientation"],Re=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(o){const n=o,t=e.inject(z);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":n.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":n.orientation},null,10,Nn))}}),$n=["aria-label"],Mn={key:3,class:"onyx-nav-item__mobile-children"},Tn={role:"menu"},On={},In=e.defineComponent({...On,__name:"OnyxNavItem",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"},options:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=p=>(p.withExternalIcon??"auto")!=="auto"?p.withExternalIcon:he(p.href??""),s=e.inject(z),i=e.ref(!1),u=e.computed(()=>{var p;return!!((p=t.options)!=null&&p.length)}),d=()=>{s!=null&&s.value&&u.value&&!i.value?i.value=!0:t.href&&l("click",t.href)};return(p,c)=>{var f;const m=e.resolveComponent("OnyxNavItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["onyx-nav-item",{"onyx-nav-item--mobile":e.unref(s)}]),role:"presentation"},[e.unref(s)&&i.value?(e.openBlock(),e.createBlock(q,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(En),onClick:c[0]||(c[0]=y=>i.value=!1)},null,8,["label","icon"])):e.createCommentVNode("",!0),!i.value||t.href?(e.openBlock(),e.createElementBlock("div",{key:1,role:"menuitem",tabindex:"0","aria-label":t.label,class:e.normalizeClass(["onyx-nav-item__trigger onyx-text",{"onyx-nav-item__trigger--active":t.active||((f=t.options)==null?void 0:f.find(y=>y.active))}]),onClick:d,onKeydown:e.withKeys(d,["enter"])},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),a(t)?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-nav-item__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)]),e.unref(s)&&u.value&&!i.value?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-nav-item__mobile-chevron",icon:e.unref(Sn)},null,8,["icon"])):e.createCommentVNode("",!0)],42,$n)):e.createCommentVNode("",!0),!e.unref(s)&&u.value?(e.openBlock(),e.createBlock(pe,{key:2,class:"onyx-nav-item__flyout","aria-label":e.unref(r)("navItemOptionsLabel",{label:t.label})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,y=>(e.openBlock(),e.createBlock(ye,{key:y.label,"aria-selected":y.active,onClick:w=>l("click",y.href)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label)+" ",1),a(y)?(e.openBlock(),e.createBlock(g,{key:0,class:"onyx-nav-item__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)]),_:2},1032,["aria-selected","onClick"]))),128))]),_:1},8,["aria-label"])):u.value&&i.value?(e.openBlock(),e.createElementBlock("div",Mn,[t.href?(e.openBlock(),e.createBlock(Re,{key:0,orientation:"horizontal"})):e.createCommentVNode("",!0),e.createElementVNode("ul",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,y=>(e.openBlock(),e.createBlock(m,e.mergeProps({key:y.label,ref_for:!0},y,{onClick:c[1]||(c[1]=w=>l("click",w))}),null,16))),128))])])):e.createCommentVNode("",!0)],2)}}}),Ln={key:0,class:"onyx-page__sidebar"},Dn={class:"onyx-page__main"},Pn={key:1,class:"onyx-page__footer"},zn={key:2,class:"onyx-page__toasts"},Hn=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>{let r="";return!t.footer&&t.sidebar&&(r="onyx-page--side-main"),t.footer&&(!t.sidebar||n.hideSidebar)&&(r="onyx-page--main-footer"),t.footer&&t.sidebar&&(n.footerAsideSidebar?r="onyx-page--side-main-footer-partial":r="onyx-page--side-main-footer-full"),r});return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!n.hideSidebar?(e.openBlock(),e.createElementBlock("aside",Ln,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Dn,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",Pn,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0),t.toasts?(e.openBlock(),e.createElementBlock("div",zn,[e.renderSlot(r.$slots,"toasts")])):e.createCommentVNode("",!0)],2))}}),An=["title"],Fn=["required","name","value","checked","disabled","autofocus"],ie=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean},truncation:{default:"ellipsis"},customError:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r}=L({props:t,emit:l}),{densityClass:a}=b(t),s=i=>{const u=i.target.checked;l("change",u)};return(i,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(a)])},[e.createVNode(V,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(V,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(a)]),title:e.unref(Ee)(t.customError)},[t.loading?(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:t.disabled,autofocus:t.autofocus,onChange:s},null,40,Fn)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,An))}}),Un=["disabled"],Rn={key:0,class:"onyx-radio-button-group__headline"},qn=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},options:{},name:{default:()=>O("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),{requiredMarkerClass:r,requiredTypeClass:a}=K(t),s=n,i=(u,d)=>{u&&s("update:modelValue",d)};return(u,d)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(l),e.unref(a)]),disabled:t.disabled,role:"radiogroup"},[t.headline?(e.openBlock(),e.createElementBlock("legend",Rn,[e.createVNode(I,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(p,c)=>(e.openBlock(),e.createBlock(ie,e.mergeProps({key:p.value.toString(),ref_for:!0},p,{name:t.name,"custom-error":t.customError,checked:p.value===t.modelValue,required:t.required,onValidityChange:m=>c===0&&s("validityChange",m),onChange:m=>i(m,p.value)}),null,16,["name","custom-error","checked","required","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,p=>(e.openBlock(),e.createBlock(ie,{id:`skeleton-${p}`,key:p,value:`skeleton-${p}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,Un))}}),qe=o=>{const t=e.ref(!1),l=a=>{const s=a.target;if(!(s instanceof Element))return;const i=e.unref(o.offset)??0;t.value=Math.abs(s.scrollTop)+s.clientHeight>=s.scrollHeight-i-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var i;(((i=o.enabled)==null?void 0:i.value)??!0)&&!o.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Zn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>',Kn={class:"onyx-select-input__wrapper"},Gn=["readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],jn=["aria-label","disabled"],Ze=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},modelValue:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["click","validityChange"],setup(o,{expose:n,emit:t}){const{rootAttrs:l,restAttrs:r}=ze(),a=o,s=t,{t:i}=C(),{vCustomValidity:u,errorMessages:d}=L({props:a,emit:s}),p=e.computed(()=>a.modelValue?a.modelValue.length:0),c=e.computed(()=>{var x;const k=(x=a.modelValue)==null?void 0:x.length;if(!a.modelValue||!k)return"";if(k===1)return a.modelValue[0].label;switch(a.textMode){case"preview":return a.modelValue.map(({label:N})=>N).join(", ");case"summary":default:return i.value("selections.currentSelection",{n:k})}}),m=e.ref(!1),{densityClass:f}=b(a),y=e.ref();n({focus:()=>{var k;return(k=y.value)==null?void 0:k.focus()}}),e.watch(()=>a.showFocus,(k,x)=>{m.value||x&&k===!1&&(m.value=!0)});const w=Le.concat(De),E=k=>{w.includes(k.key)||k.preventDefault()};return(k,x)=>a.skeleton?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(f)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(V,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(f),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(fe,e.mergeProps(a,{"error-messages":e.unref(d)}),{default:e.withCtx(()=>[e.createElementVNode("div",Kn,[a.loading?(e.openBlock(),e.createBlock(T,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:y,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--force-invalid":e.unref(d)&&m.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:a.disabled||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:c.value,autofocus:a.autofocus,onClick:x[0]||(x[0]=N=>s("click")),onKeydown:E}),null,16,Gn),[[e.unref(u)]]),a.textMode==="preview"&&p.value>0?(e.openBlock(),e.createBlock(me,{key:1,text:c.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode(Be,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button","aria-label":e.unref(i)("select.toggleDropDown"),tabindex:"-1",disabled:a.readonly||a.disabled||a.loading,onClick:x[1]||(x[1]=N=>s("click"))},[e.createVNode(g,{icon:e.unref(Zn)},null,8,["icon"])],8,jn)])]),_:1},16,["error-messages"])],16))}}),Yn=["checked","aria-labelledby","disabled","indeterminate"],Xn={class:"onyx-truncation-ellipsis"},ce=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(ye,e.mergeProps({class:"onyx-select-option"},n,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[n.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:n.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-select-option__checkbox",type:"checkbox"},null,8,Yn)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createBlock(g,{key:1,icon:n.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",Xn,[e.renderSlot(t.$slots,"default")])]),_:3},16,["checked","selected","disabled"]))}}),Wn=["inert","aria-busy"],Jn={class:"onyx-select__wrapper",tabindex:"-1"},Qn={key:0,role:"group",class:"onyx-select__group"},el={role:"option","aria-selected":"false"},tl={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},ol={key:1,class:"onyx-select__slot"},nl={key:2,class:"onyx-select__slot"},ll=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{},required:{type:Boolean},requiredMarker:{},customError:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean},readonly:{type:Boolean},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean},listLabel:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","lazyLoad","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),{t:a}=C(),{densityClass:s}=b(t),i=e.ref(!1),u=e.ref(),d=e.ref(),p=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),c=e.ref(),m=e.ref();e.watch(p,()=>{var h;t.multiple||(d.value=(h=p.value.at(0))==null?void 0:h.value)},{immediate:!0});const f=O("ONYX_CHECK_ALL"),y=e.computed(()=>(t.multiple&&t.withCheckAll&&!t.searchTerm?[f]:[]).concat(_e.value)),w=async h=>{var v,B;if(t.readonly){i.value=!1;return}i.value=!i.value,i.value?(await e.nextTick(),(B=c.value)==null||B.focus()):(t.searchTerm&&l("update:searchTerm",""),h||(v=m.value)==null||v.focus())},E=()=>d.value=y.value.at(0),k=()=>d.value=y.value.at(-1),x=h=>{const v=y.value.findIndex(B=>B===h);v<y.value.length-1&&(d.value=y.value[v+1])},N=h=>{const v=y.value.findIndex(B=>B===h);v>0&&(d.value=y.value[v-1])},j=h=>{const v=t.options.find(B=>B.label.toLowerCase().trim().startsWith(h.toLowerCase()));v&&(d.value=v.value)},Y=h=>l("update:searchTerm",h),H=h=>{var $;if(h===f){($=F.value)==null||$.handleChange(!F.value.state.value.modelValue);return}const v=t.options.find(({value:S})=>S===h);if(!v)return;if(!t.multiple)return l("update:modelValue",v);p.value.some(({value:S})=>S===h)?l("update:modelValue",p.value.filter(({value:S})=>S!==h)):l("update:modelValue",[...p.value,v])},X=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:D,option:A,group:W,listbox:J}}=So({autocomplete:X,label:t.label,listLabel:t.listLabel,inputValue:e.computed(()=>t.withSearch&&t.searchTerm||""),activeOption:e.computed(()=>d.value),multiple:e.computed(()=>t.multiple),isExpanded:i,templateRef:u,onToggle:w,onActivateFirst:E,onActivateLast:k,onActivateNext:x,onActivatePrevious:N,onTypeAhead:j,onAutocomplete:Y,onSelect:H}),Q=e.computed(()=>$t(t.options,"group")),{vScrollEnd:ee,isScrollEnd:_}=qe({enabled:e.computed(()=>{var h;return((h=t.lazyLoading)==null?void 0:h.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var h;return(h=t.lazyLoading)==null?void 0:h.scrollOffset})}),P=e.computed(()=>{if(!t.options.length)return t.withSearch&&t.searchTerm?a.value("select.noMatch"):a.value("select.empty")}),_e=e.computed(()=>t.options.filter(h=>!h.disabled).map(({value:h})=>h)),F=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return Se(_e,e.computed(()=>p.value.map(({value:h})=>h)),h=>{const v=h.map(B=>t.options.find(({value:$})=>$===B)).filter(B=>B!=null);l("update:modelValue",v)})}),ve=e.computed(()=>{var v;if(!t.multiple)return"";const h=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?h:((v=t.withCheckAll)==null?void 0:v.label)??h});e.watchEffect(()=>{_.value&&l("lazyLoad")});const Ge=e.computed(()=>{const h={...t,modelValue:p.value};return t.withSearch?{...h,onKeydown:D.value.onKeydown}:{...h,...D.value}});return(h,v)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:u,class:"onyx-select-wrapper"},[e.createVNode(Ze,e.mergeProps({ref_key:"selectInput",ref:m},Ge.value,{"show-focus":i.value,autofocus:t.autofocus,onClick:w,onValidityChange:v[0]||(v[0]=$=>l("validityChange",$))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(s),i.value?"onyx-select--open":""]),inert:!i.value,"aria-busy":t.loading},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Jn,[t.withSearch?(e.openBlock(),e.createBlock(He,e.mergeProps({key:0,ref_key:"miniSearch",ref:c},e.unref(D),{label:e.unref(a)("select.searchInputLabel"),class:"onyx-select__search",onClear:v[1]||(v[1]=$=>l("update:searchTerm",""))}),null,16,["label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(J))),[P.value?(e.openBlock(),e.createElementBlock("ul",Qn,[e.createElementVNode("li",el,[e.renderSlot(h.$slots,"empty",{defaultMessage:P.value},()=>[e.createVNode($e,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value),1)]),_:1})])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Q.value,($,S)=>{var ke,xe;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:S,class:"onyx-select__group",ref_for:!0},e.unref(W)({label:S})),[S!=""?(e.openBlock(),e.createElementBlock("li",tl,e.toDisplayString(S),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll&&!t.searchTerm?(e.openBlock(),e.createBlock(ce,e.mergeProps({key:1,ref_for:!0},e.unref(A)({value:e.unref(f),label:ve.value,selected:(ke=F.value)==null?void 0:ke.state.value.modelValue}),{multiple:"",active:e.unref(f)===d.value,indeterminate:(xe=F.value)==null?void 0:xe.state.value.indeterminate,density:t.density,class:"onyx-select__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ve.value),1)]),_:1},16,["active","indeterminate","density"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($,M=>(e.openBlock(),e.createBlock(ce,e.mergeProps({key:M.value.toString(),ref_for:!0},e.unref(A)({value:M.value,label:M.label,disabled:M.disabled,selected:p.value.some(({value:je})=>je===M.value)}),{multiple:t.multiple,active:M.value===d.value,icon:M.icon,density:t.density}),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"option",e.mergeProps({ref_for:!0},M),()=>[e.createTextVNode(e.toDisplayString(M.label),1)])]),_:2},1040,["multiple","active","icon","density"]))),128))],16)}),128))],16),(B=t.lazyLoading)!=null&&B.loading?(e.openBlock(),e.createElementBlock("div",ol,[e.createVNode(T,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),r.optionsEnd?(e.openBlock(),e.createElementBlock("div",nl,[e.renderSlot(h.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(ee)]])],10,Wn)],512)}}}),al=["summary","preview"],rl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>',sl={class:"onyx-switch-skeleton__click-area"},il=["title"],cl=["aria-label","disabled","required","autofocus"],ul={class:"onyx-switch__click-area"},dl={class:"onyx-switch__container"},pl={class:"onyx-switch__icon"},ml=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),fl=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,{requiredMarkerClass:r,requiredTypeClass:a}=K(t),{densityClass:s}=b(t),{vCustomValidity:i}=L({props:t,emit:l}),u=e.computed({get:()=>t.modelValue,set:d=>{l("update:modelValue",d)}});return(d,p)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",sl,[e.createVNode(V,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(s)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=c=>u.value=c),type:"checkbox",role:"switch",class:e.normalizeClass({"onyx-switch__input":!0,"onyx-switch__loading":t.loading}),"aria-label":t.hideLabel?t.label:void 0,disabled:t.disabled||t.loading,required:t.required,autofocus:t.autofocus},null,10,cl),[[e.vModelCheckbox,u.value],[e.unref(i)]]),e.createElementVNode("span",ul,[e.createElementVNode("span",dl,[e.createElementVNode("span",pl,[t.loading?(e.openBlock(),e.createBlock(e.unref(T),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(g),{key:1,icon:u.value?e.unref(rl):e.unref(Pe)},null,8,["icon"]))]),ml])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,il))}}),hl={class:"onyx-table-wrapper"},yl={class:"onyx-table-wrapper__scroll-container",tabindex:"0"},_l=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",yl,[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[n.striped?"onyx-table--striped":"",n.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(t)]])},[e.renderSlot(l.$slots,"default")],2)])]))}}),vl={class:"onyx-text onyx-truncation-ellipsis"},kl=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${n.color}`,e.unref(t)])},[n.icon?(e.openBlock(),e.createBlock(g,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",vl,e.toDisplayString(n.label),1)],2))}}),xl=["data-autosize-value"],gl=["placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],bl=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:Boolean,default:!1},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=L({props:t,emit:l}),{densityClass:s}=b(t),i=e.computed({get:()=>t.modelValue,set:c=>l("update:modelValue",c)}),u=c=>{const m=c.target.value;l("change",m)},d=e.computed(()=>{if(!t.autosize)return;const c=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[c?`--min-autosize-rows: ${c}`:"",`--max-autosize-rows: ${m??"unset"}`]}),p=c=>{var f;const m=c.target;(f=m.parentElement)==null||f.setAttribute("data-autosize-value",m.value)};return(c,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(d.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(V,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(d.value)},[e.createVNode(fe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":i.value},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":m[0]||(m[0]=f=>i.value=f),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:t.disabled,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:p,onChange:u,onFocus:m[1]||(m[1]=f=>l("focus")),onBlur:m[2]||(m[2]=f=>l("blur"))},null,42,gl),[[e.vModelText,i.value],[e.unref(r)]])],8,xl)]),_:1},16,["error-messages"])],6))}}),Bl=o=>{const n=e.ref(),t=e.ref(te(new Date(o.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(o,r=>{clearInterval(n.value);const a=new Date(r).getTime();t.value=te(a),n.value=setInterval(()=>{t.value=te(a),l.value&&clearInterval(n.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(n.value)),{timeLeft:t,isEnded:l}},te=o=>{const n=o-Date.now();return Math.max(n,0)},Ke=o=>{const n=Math.floor(o/6e4/60),t=Math.floor(o/6e4%60),l=Math.floor(o%6e4/1e3);return{hours:n,minutes:t,seconds:l}},Cl=(o,n)=>{const{hours:t,minutes:l,seconds:r}=Ke(o),a=u=>u.toString().padStart(2,"0");let s="",i=oe(n.formatToParts(o,"seconds"));return l>0&&(i=oe(n.formatToParts(o,"minutes"))),t>0&&(i=oe(n.formatToParts(o,"hours")),s=`${a(t)}:`),`${s}${a(l)}:${a(r)} ${i}`},oe=o=>{var n;return((n=o.at(-1))==null?void 0:n.value.replace(".","").trim())??""},wl=o=>{const{hours:n,minutes:t,seconds:l}=Ke(o);return`PT${n}H${t}M${l}S`},Vl=["aria-label"],El={key:0,class:"onyx-timer__label"},Sl=["datetime"],Nl=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(o,{emit:n}){const t=o,l=n,{locale:r}=C(),{timeLeft:a,isEnded:s}=Bl(e.computed(()=>t.endTime)),i=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>Cl(a.value,i.value));return e.watchEffect(()=>s.value&&l("timerEnded")),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",El,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(wl)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,Sl)],8,Vl))}}),$l=["top","bottom"],Ml=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),{t:l}=C();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(r.$slots,"header"),e.renderSlot(r.$slots,"options"),e.renderSlot(r.$slots,"footer")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(r.$slots,"button"),e.createVNode(pe,{class:"onyx-user-menu__flyout","aria-label":e.unref(l)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(r.$slots,"header")]),default:e.withCtx(()=>[e.renderSlot(r.$slots,"options")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"footer")]),key:"0"}:void 0]),1032,["aria-label"])],64))]))}}),Tl={key:0,class:"onyx-user-menu__trigger onyx-text"},Ol={class:"onyx-truncation-ellipsis"},Il={class:"onyx-user-menu__header"},Ll={class:"onyx-truncation-ellipsis"},Dl={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},Pl={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},zl={class:"onyx-user-menu__footer onyx-text--small"},Hl=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>typeof n.avatar=="object"?{...n.avatar,label:n.username}:{src:n.avatar,label:n.username}),r=e.inject(z);return(a,s)=>(e.openBlock(),e.createBlock(Ml,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(r)}]),"is-mobile":e.unref(r)??!1},e.createSlots({button:e.withCtx(()=>[e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",Tl,[e.createVNode(ne,e.mergeProps(l.value,{size:"24px"}),null,16),e.createElementVNode("span",Ol,e.toDisplayString(n.username),1),e.createVNode(g,{class:"onyx-user-menu__chevron",icon:e.unref(Fe)},null,8,["icon"])]))]),header:e.withCtx(()=>[e.createElementVNode("div",Il,[e.createVNode(ne,e.normalizeProps(e.guardReactiveProps(l.value)),null,16),e.createElementVNode("div",Ll,[e.createElementVNode("div",Dl,e.toDisplayString(n.username),1),n.description?(e.openBlock(),e.createElementBlock("div",Pl,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",zl,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["class","is-mobile"]))}}),Al=o=>({install:n=>{Rt(n,o.i18n);const t=n.runWithContext(()=>C());e.watchEffect(()=>Fl(t.t.value("optional")))}}),Fl=o=>globalThis.document.body.style.setProperty("--onyx-global-optional-text",o),Ul=(o,n)=>{const t=be(o.toLowerCase()),l=be(n.toLowerCase());return t.includes(l)},be=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"");exports.AUTOCAPITALIZE=qo;exports.BUTTON_COLORS=wt;exports.BUTTON_MODES=Vt;exports.BUTTON_TYPES=Ct;exports.DENSITIES=at;exports.DIRECTIONS=dn;exports.HEADLINE_TYPES=ho;exports.ICON_SIZES=yo;exports.INPUT_TYPES=Ro;exports.LINK_TARGETS=Go;exports.MULTISELECT_TEXT_MODE=al;exports.ONYX_BREAKPOINTS=Ue;exports.ONYX_COLORS=sn;exports.OnyxAppLayout=Qe;exports.OnyxAvatar=ne;exports.OnyxAvatarStack=lt;exports.OnyxBadge=Be;exports.OnyxButton=q;exports.OnyxCheckbox=U;exports.OnyxCheckboxGroup=Qt;exports.OnyxColorSchemeDialog=co;exports.OnyxDialog=Ne;exports.OnyxEmpty=$e;exports.OnyxFlyoutMenu=pe;exports.OnyxHeadline=I;exports.OnyxIcon=g;exports.OnyxIconButton=Me;exports.OnyxInfoTooltip=R;exports.OnyxInput=Uo;exports.OnyxLink=Ko;exports.OnyxListItem=ye;exports.OnyxLoadingIndicator=T;exports.OnyxMiniSearch=He;exports.OnyxMobileNavButton=se;exports.OnyxNavAppArea=Ae;exports.OnyxNavBar=bn;exports.OnyxNavButton=Vn;exports.OnyxNavItem=In;exports.OnyxNavSeparator=Re;exports.OnyxPageLayout=Hn;exports.OnyxRadioButton=ie;exports.OnyxRadioGroup=qn;exports.OnyxSelect=ll;exports.OnyxSelectInput=Ze;exports.OnyxSelectOption=ce;exports.OnyxSkeleton=V;exports.OnyxSwitch=fl;exports.OnyxTable=_l;exports.OnyxTag=kl;exports.OnyxTextarea=bl;exports.OnyxTimer=Nl;exports.OnyxTooltip=me;exports.OnyxUserMenu=Hl;exports.OnyxVisuallyHidden=de;exports.TEXT_SIZES=cn;exports.TOOLTIP_POSITIONS=$l;exports.TRUNCATION_TYPES=un;exports.createOnyx=Al;exports.mobileNavBarInjectionKey=z;exports.normalizedIncludes=Ul;exports.useDensity=b;exports.useScrollEnd=qe;
|
|
183
|
+
`,lo={class:"onyx-color-scheme-dialog__subtitle onyx-text"},ao=["innerHTML"],ro=["autofocus","value","checked","aria-label"],so={class:"onyx-text--small"},io={class:"onyx-color-scheme-dialog__actions"},co=e.defineComponent({__name:"OnyxColorSchemeDialog",props:{open:{type:Boolean,default:!1},density:{},modelValue:{}},emits:["update:modelValue","close"],setup(o,{emit:n}){const t=o,l=n,r=e.ref(t.modelValue);e.watchEffect(()=>r.value=t.modelValue);const{t:a}=C(),s=e.computed(()=>[{value:"auto",image:to,label:a.value("colorScheme.auto.label"),description:a.value("colorScheme.auto.description")},{value:"light",image:no,label:a.value("colorScheme.light.label"),description:a.value("colorScheme.light.description")},{value:"dark",image:oo,label:a.value("colorScheme.dark.label"),description:a.value("colorScheme.dark.description")}]),i=d=>{const p=d.target;r.value=p.value},u=()=>{r.value&&(l("update:modelValue",r.value),l("close"))};return(d,p)=>(e.openBlock(),e.createBlock(Ne,e.mergeProps({class:"onyx-color-scheme-dialog"},t,{label:e.unref(a)("colorScheme.headline"),modal:"",onClose:p[1]||(p[1]=c=>l("close"))}),{default:e.withCtx(()=>[e.createElementVNode("form",{class:"onyx-color-scheme-dialog__form",onSubmit:e.withModifiers(u,["prevent"])},[e.createElementVNode("div",null,[e.createVNode(I,{is:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("colorScheme.headline")),1)]),_:1}),e.createElementVNode("span",lo,e.toDisplayString(e.unref(a)("colorScheme.subtitle")),1)]),e.createElementVNode("fieldset",{class:"onyx-color-scheme-dialog__list",onChange:i},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,c=>(e.openBlock(),e.createElementBlock("label",{key:c.value,class:"onyx-color-scheme-dialog__option"},[e.createElementVNode("figure",{class:"onyx-color-scheme-dialog__image",innerHTML:c.image},null,8,ao),e.createElementVNode("div",null,[e.createVNode(de,{is:"div"},{default:e.withCtx(()=>[e.createElementVNode("input",{type:"radio",name:"color-scheme",autofocus:t.modelValue===c.value,value:c.value,checked:t.modelValue===c.value,"aria-label":c.label,required:""},null,8,ro)]),_:2},1024),e.createVNode(I,{is:"h3",class:"onyx-color-scheme-dialog__label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1024),e.createElementVNode("p",so,e.toDisplayString(c.description),1)])]))),128))],32),e.createElementVNode("div",io,[e.createVNode(q,{label:e.unref(a)("cancel"),mode:"plain",color:"neutral",onClick:p[0]||(p[0]=c=>l("close"))},null,8,["label"]),e.createVNode(q,{label:e.unref(a)("apply"),type:"submit"},null,8,["label"])])],32)]),_:1},16,["label"]))}}),uo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>',po={class:"onyx-empty"},mo={class:"onyx-empty__label onyx-text onyx-truncation-multiline"},$e=e.defineComponent({__name:"OnyxEmpty",setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",po,[e.renderSlot(n.$slots,"icon",{},()=>[e.createVNode(x,{icon:e.unref(uo),size:"48px"},null,8,["icon"])]),e.createElementVNode("div",mo,[e.renderSlot(n.$slots,"default")])]))}}),fo={class:"onyx-flyout-menu__wrapper onyx-flyout-menu__group"},pe=e.defineComponent({__name:"OnyxFlyoutMenu",setup(o){const n=e.useSlots();return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"onyx-flyout-menu":!0,"onyx-flyout-menu--with-header":!!n.header,"onyx-flyout-menu--with-footer":!!n.footer})},[e.renderSlot(t.$slots,"header"),e.createElementVNode("ul",fo,[e.renderSlot(t.$slots,"default")]),e.renderSlot(t.$slots,"footer")],2))}}),ho=["h1","h2","h3","h4","h5","h6"],yo=["12px","16px","24px","32px","48px","64px","96px"],_o=["aria-label","title","disabled","autofocus"],Me=e.defineComponent({__name:"OnyxIconButton",props:{density:{},autofocus:{type:Boolean},label:{},disabled:{type:Boolean,default:!1},type:{default:"button"},color:{default:"primary"},loading:{type:Boolean},icon:{},skeleton:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),r=n;return(a,s)=>t.skeleton?(e.openBlock(),e.createBlock(w,{key:0,class:e.normalizeClass(["onyx-icon-button-skeleton",e.unref(l)])},null,8,["class"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["onyx-icon-button",[`onyx-icon-button--${t.color}`,{"onyx-icon-button--loading":t.loading},e.unref(l)]]),"aria-label":t.label,title:t.label,disabled:t.disabled||t.loading,autofocus:t.autofocus,onClick:s[0]||(s[0]=i=>r("click"))},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,type:"circle"})):t.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:t.icon},null,8,["icon"])):e.renderSlot(a.$slots,"default",{key:2})],10,_o))}}),vo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>',G=o=>o,ko=(()=>{let o=1;return()=>o++})(),T=o=>`${o}-${ko()}`,xo=(o,n)=>Object.entries(o).every(([t,l])=>n[t]===l),go=(o,n)=>typeof n=="string"?o.key===n:xo({altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,...n},o),ae=o=>!Bo.has(o),bo=["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"],Bo=new Set(bo),Te=(o,n)=>{let t;return(...l)=>{clearTimeout(t),t=setTimeout(()=>o(...l),n)}},Oe=(o,n=500)=>{let t="";const l=Te(()=>t="",n);return r=>{ae(r.key)&&(l(),t=`${t}${r.key}`,o(t))}},Co=G(o=>{const n=e.computed(()=>e.unref(o.multiple)??!1),t=new Map,l=u=>(t.has(u)||t.set(u,T("listbox-option")),t.get(u)),r=e.ref(!1);e.watchEffect(()=>{var d;if(o.activeOption.value==null||!r.value&&!o.controlled)return;const u=l(o.activeOption.value);(d=document.getElementById(u))==null||d.scrollIntoView({block:"nearest",inline:"nearest"})});const a=Oe(u=>{var d;return(d=o.onTypeAhead)==null?void 0:d.call(o,u)}),s=u=>{var d,p,c,m,f,y,V;switch(u.key){case" ":u.preventDefault(),o.activeOption.value!=null&&((d=o.onSelect)==null||d.call(o,o.activeOption.value));break;case"ArrowUp":if(u.preventDefault(),o.activeOption.value==null){(p=o.onActivateLast)==null||p.call(o);return}(c=o.onActivatePrevious)==null||c.call(o,o.activeOption.value);break;case"ArrowDown":if(u.preventDefault(),o.activeOption.value==null){(m=o.onActivateFirst)==null||m.call(o);return}(f=o.onActivateNext)==null||f.call(o,o.activeOption.value);break;case"Home":u.preventDefault(),(y=o.onActivateFirst)==null||y.call(o);break;case"End":u.preventDefault(),(V=o.onActivateLast)==null||V.call(o);break;default:a(u)}};return{elements:{listbox:e.computed(()=>o.controlled?{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"-1"}:{role:"listbox","aria-multiselectable":n.value,"aria-label":e.unref(o.label),tabindex:"0","aria-activedescendant":o.activeOption.value!=null?l(o.activeOption.value):void 0,onFocus:()=>r.value=!0,onBlur:()=>r.value=!1,onKeydown:s}),group:e.computed(()=>u=>({role:"group","aria-label":u.label})),option:e.computed(()=>u=>{const d=u.selected??!1;return{id:l(u.value),role:"option","aria-label":u.label,"aria-disabled":u.disabled,"aria-checked":n.value?d:void 0,"aria-selected":n.value?void 0:d,onClick:()=>{var p;return!u.disabled&&((p=o.onSelect)==null?void 0:p.call(o,u.value))}}})},state:{isFocused:r},internals:{getOptionId:l}}}),Ie=o=>{const n=t=>{const l=o.queryComponent();if(!l||!(t.target instanceof Node))return;!t.composedPath().includes(l)&&o.onOutsideClick()};e.onBeforeMount(()=>{e.watchEffect(()=>{var t;(t=o.disabled)!=null&&t.value?document.removeEventListener("click",n):document.addEventListener("click",n)})}),e.onBeforeUnmount(()=>{document.removeEventListener("click",n)})},Le=["ArrowDown","ArrowUp"," ","Enter","Home","End"],De=["Escape",{key:"ArrowUp",altKey:!0},"Enter","Tab"],wo=["Enter"," "],Vo=["Enter"],Eo=(o,n)=>re(o,n?Vo:wo),re=(o,n)=>n.some(t=>go(o,t)),So=G(({inputValue:o,autocomplete:n,onAutocomplete:t,onTypeAhead:l,multiple:r,label:a,listLabel:s,isExpanded:i,activeOption:u,onToggle:d,onSelect:p,onActivateFirst:c,onActivateLast:m,onActivateNext:f,onActivatePrevious:y,templateRef:V})=>{const O=T("comboBox-control"),k=e.computed(()=>e.unref(n)),g=e.computed(()=>e.unref(i)),S=e.computed(()=>e.unref(r)),j=_=>{const P=_.target;k.value!=="none"&&(t==null||t(P.value))},Y=Oe(_=>l==null?void 0:l(_)),z=_=>{p==null||p(_),e.unref(S)||d==null||d()},X=_=>{switch(_.key){case"ArrowUp":if(_.preventDefault(),u.value==null)return m==null?void 0:m();y==null||y(u.value);break;case"ArrowDown":if(_.preventDefault(),u.value==null)return c==null?void 0:c();f==null||f(u.value);break;case"Home":_.preventDefault(),c==null||c();break;case"End":_.preventDefault(),m==null||m();break}},D=_=>{if(!g.value&&re(_,Le))return d==null||d(),_.key===" "&&_.preventDefault(),_.key==="End"?m==null?void 0:m():c==null?void 0:c();if(Eo(_,S.value))return z(u.value);if(g.value&&re(_,De))return d==null?void 0:d();if(k.value==="none"&&ae(_.key))return!g.value&&(d==null||d()),Y(_);if(k.value!=="none"&&ae(_.key)){!g.value&&(d==null||d());return}return X(_)},H=k.value!=="none"?{"aria-autocomplete":k.value,type:"text"}:null,{elements:{option:W,group:J,listbox:Q},internals:{getOptionId:ee}}=Co({label:s,multiple:S,controlled:!0,activeOption:u,onSelect:z});return Ie({queryComponent:()=>V.value,onOutsideClick(){g.value&&(d==null||d(!0))}}),{elements:{option:W,group:J,listbox:e.computed(()=>({...Q.value,id:O,onMousedown:_=>_.preventDefault()})),input:e.computed(()=>({value:o.value,role:"combobox","aria-expanded":g.value,"aria-controls":O,"aria-label":e.unref(a),"aria-activedescendant":u.value!=null?ee(u.value):void 0,onInput:j,onKeydown:D,...H})),button:e.computed(()=>({tabindex:"-1",onClick:()=>d==null?void 0:d()}))}}}),No=G(o=>{const n=T("tooltip"),t=e.ref(!1);let l;const r=e.computed(()=>{const c=e.unref(o.open);return typeof c!="object"?200:c.debounce}),a=e.computed(()=>{const c=e.unref(o.open);return typeof c!="object"?c:c.type}),s=e.computed({get:()=>t.value,set:c=>{clearTimeout(l),l=setTimeout(()=>{t.value=c},r.value)}}),i=e.computed(()=>typeof a.value=="boolean"?a.value:s.value),u=()=>{t.value=!t.value},d=e.computed(()=>{if(a.value==="hover")return{onMouseover:()=>s.value=!0,onMouseout:()=>s.value=!1,onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1}}),p=c=>{c.key==="Escape"&&(t.value=!1)};return Ie({queryComponent:()=>{var c;return(c=document.getElementById(n))==null?void 0:c.parentElement},onOutsideClick:()=>t.value=!1,disabled:e.computed(()=>a.value!=="click")}),e.onBeforeMount(()=>{document.addEventListener("keydown",p)}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",p)}),{elements:{trigger:e.computed(()=>({"aria-describedby":n,onClick:a.value==="click"?u:void 0,...d.value})),tooltip:e.computed(()=>({role:"tooltip",id:n,tabindex:"-1",...d.value}))},state:{isVisible:i}}}),$o=G(()=>{const o=T("menu"),n=T("menu-button"),t=e.ref(!1),l=Te(i=>t.value=i,200),r=e.computed(()=>({onMouseover:()=>l(!0),onMouseout:()=>l(!1),onFocusin:()=>t.value=!0,onFocusout:()=>t.value=!1})),a=i=>{const u=document.activeElement,d=(u==null?void 0:u.closest('[role="menu"]'))||document.getElementById(o);if(!d)return;const p=[...d.querySelectorAll('[role="menuitem"]')];let c=0;if(u){const f=p.indexOf(u);switch(i){case"next":c=f+1;break;case"prev":c=f-1;break;case"first":c=0;break;case"last":c=p.length-1;break}}const m=p[c];m==null||m.focus()},s=i=>{switch(i.key){case"ArrowDown":case"ArrowRight":i.preventDefault(),a("next");break;case"ArrowUp":case"ArrowLeft":i.preventDefault(),a("prev");break;case"Home":i.preventDefault(),a("first");break;case"End":i.preventDefault(),a("last");break;case" ":i.preventDefault(),i.target.click();break}};return{state:{isExpanded:t},elements:{button:e.computed(()=>({"aria-controls":o,"aria-expanded":t.value,"aria-haspopup":!0,id:n,...r.value,onKeydown:s})),flyout:{...r.value},menu:{id:o,role:"menu","aria-labelledby":n,onKeydown:s},listItem:{role:"none"},menuItem:i=>({"aria-current":i.active?"page":void 0,role:"menuitem"})}}}),Mo={class:"onyx-tooltip-wrapper"},me=e.defineComponent({__name:"OnyxTooltip",props:{text:{},icon:{},color:{default:"neutral"},position:{default:"top"},fitParent:{type:Boolean,default:!1},open:{type:[String,Boolean,Object],default:"hover"}},setup(o){const n=o,{elements:{trigger:t,tooltip:l},state:{isVisible:r}}=No({open:e.computed(()=>n.open)});return(a,s)=>(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("div",e.mergeProps(e.unref(l),{class:["onyx-tooltip onyx-text--small onyx-truncation-multiline",{"onyx-tooltip--danger":n.color==="danger","onyx-tooltip--bottom":n.position==="bottom","onyx-tooltip--fit-parent":n.fitParent,"onyx-tooltip--hidden":!e.unref(r)}]}),[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"tooltip",{},()=>[e.createElementVNode("span",null,e.toDisplayString(n.text),1)])],16),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(t))),[e.renderSlot(a.$slots,"default")],16)]))}}),To=["aria-label"],R=e.defineComponent({__name:"OnyxInfoTooltip",props:{text:{},position:{},label:{}},setup(o){const n=o,{t}=C();return(l,r)=>(e.openBlock(),e.createBlock(me,{class:"onyx-info-tooltip",text:n.text,position:n.position},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":n.label||e.unref(t)("showTooltip.info"),class:"onyx-info-tooltip__trigger"},[e.createVNode(x,{icon:e.unref(vo)},null,8,["icon"])],8,To)]),_:1},8,["text","position"]))}}),Oo={class:"onyx-form-element__header"},Io={class:"onyx-truncation-ellipsis"},Lo={key:2,class:"onyx-form-element__optional"},Do={key:0,class:"onyx-form-element__footer onyx-text--small"},Po={key:0,class:"onyx-form-element__error-message onyx-truncation-ellipsis"},Ao={key:2,class:"onyx-form-element__message onyx-truncation-ellipsis"},zo={key:4,class:"onyx-form-element__counter"},fe=e.defineComponent({__name:"OnyxFormElement",props:{required:{type:Boolean,default:!1},requiredMarker:{},modelValue:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},maxlength:{},withCounter:{type:Boolean}},setup(o){const n=o,{t}=C(),{requiredMarkerClass:l,requiredTypeClass:r}=K(n),a=e.computed(()=>{var s;if(n.withCounter&&n.maxlength)return`${(((s=n.modelValue)==null?void 0:s.toString())||"").length}/${n.maxlength}`});return(s,i)=>{var u,d;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-form-element",e.unref(r)])},[e.createElementVNode("label",null,[n.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-form-element__label onyx-text--small",[n.required?void 0:e.unref(l)]])},[e.createElementVNode("div",Oo,[e.createElementVNode("span",Io,e.toDisplayString(n.label),1),n.required?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([n.required?e.unref(l):void 0])},null,2)):e.createCommentVNode("",!0),n.labelTooltip?(e.openBlock(),e.createBlock(R,{key:1,class:"onyx-form-element__label-tooltip",text:n.labelTooltip},null,8,["text"])):e.createCommentVNode("",!0),n.required?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Lo,e.toDisplayString(e.unref(t)("optional")),1))])],2)),e.renderSlot(s.$slots,"default")]),n.message||(u=s.errorMessages)!=null&&u.shortMessage||a.value?(e.openBlock(),e.createElementBlock("div",Do,[s.errorMessages?(e.openBlock(),e.createElementBlock("span",Po,e.toDisplayString(s.errorMessages.shortMessage),1)):e.createCommentVNode("",!0),(d=s.errorMessages)!=null&&d.longMessage?(e.openBlock(),e.createBlock(R,{key:1,class:"onyx-form-element__error-tooltip",color:"danger",position:"bottom",label:e.unref(t)("showTooltip.error"),text:s.errorMessages.longMessage},null,8,["label","text"])):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("span",Ao,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0),n.messageTooltip?(e.openBlock(),e.createBlock(R,{key:3,class:"onyx-form-element__message-tooltip",position:"bottom",text:n.messageTooltip},null,8,["text"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("span",zo,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}}}),Ho={class:"onyx-input__wrapper"},Fo=["placeholder","type","required","autocapitalize","autocomplete","autofocus","name","pattern","readonly","disabled","minlength","maxlength","aria-label","title"],Uo=e.defineComponent({__name:"OnyxInput",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},maxlength:{},withCounter:{type:Boolean},autofocus:{type:Boolean},modelValue:{default:""},type:{default:"text"},placeholder:{},autocapitalize:{default:"sentences"},autocomplete:{},name:{},pattern:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},minlength:{},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=L({props:t,emit:l}),{densityClass:s}=b(t),i=e.computed({get:()=>t.modelValue,set:p=>l("update:modelValue",p)}),u=p=>{const c=p.target.value;l("change",c)},d=e.computed(()=>t.pattern instanceof RegExp?t.pattern.source:t.pattern);return(p,c)=>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(fe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",Ho,[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=m=>i.value=m),class:"onyx-input__native",placeholder:t.placeholder,type:t.type,required:t.required,autocapitalize:t.autocapitalize,autocomplete:t.autocomplete,autofocus:t.autofocus,name:t.name,pattern:d.value,readonly:t.readonly,disabled:t.disabled||t.loading,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onChange:u,onFocus:c[1]||(c[1]=m=>l("focus")),onBlur:c[2]||(c[2]=m=>l("blur"))},null,40,Fo),[[e.vModelDynamic,i.value],[e.unref(r)]])])]),_:1},16,["error-messages"])],2))}}),Ro=["email","password","search","tel","text","url"],qo=["none","sentences","words","characters"],Z='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>',he=o=>/^http(s?):\/\//.test(o),Zo=["href","target","rel"],Ko=e.defineComponent({__name:"OnyxLink",props:{href:{},target:{default:"_self"},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=e.computed(()=>t.withExternalIcon!=="auto"?t.withExternalIcon:he(t.href));return(s,i)=>(e.openBlock(),e.createElementBlock("a",{class:"onyx-link",href:t.href,target:t.target,rel:t.target==="_blank"?"noreferrer":void 0,onClick:i[0]||(i[0]=u=>l("click"))},[e.renderSlot(s.$slots,"default"),t.target==="_blank"?(e.openBlock(),e.createBlock(de,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("link.opensExternally")),1)]),_:1})):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createBlock(x,{key:1,class:"onyx-link__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)],8,Zo))}}),Go=["_self","_blank","_parent","_top"],ye=e.defineComponent({__name:"OnyxListItem",props:{density:{},selected:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass({"onyx-list-item":!0,...e.unref(t),"onyx-list-item--active":n.active,[`onyx-list-item--${n.color}`]:n.color,"onyx-list-item--disabled":n.disabled,"onyx-list-item--selected":n.selected,"onyx-list-item--checked":n.checked})},[e.renderSlot(l.$slots,"default")],2))}}),jo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>',Pe='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>',Ae=()=>{const o=e.useAttrs(),n=e.computed(()=>({class:o.class,style:o.style})),t=e.computed(()=>{const l={...o};return delete l.class,delete l.style,l});return{rootAttrs:n,restAttrs:t}},Yo=["aria-label"],Xo=["aria-label"],ze=e.defineComponent({inheritAttrs:!1,__name:"OnyxMiniSearch",props:{density:{},label:{},modelValue:{}},emits:["update:modelValue","clear"],setup(o,{expose:n,emit:t}){const l=o,r=t,{rootAttrs:a,restAttrs:s}=Ae(),{densityClass:i}=b(l),{t:u}=C(),d=e.ref(),p=e.computed({get:()=>l.modelValue,set:c=>r("update:modelValue",c??"")});return n({focus:()=>{var c;return(c=d.value)==null?void 0:c.focus()}}),(c,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["onyx-mini-search",e.unref(i)]},e.unref(a)),[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:d,"onUpdate:modelValue":m[0]||(m[0]=f=>p.value=f),class:"onyx-mini-search__input",placeholder:"Search",type:"text"},e.unref(s),{"aria-label":l.label}),null,16,Yo),[[e.vModelText,p.value]]),e.createElementVNode("button",{class:"onyx-mini-search__clear","aria-label":e.unref(u)("select.clearSearch"),tabindex:"-1",onMousedown:m[1]||(m[1]=e.withModifiers(f=>r("clear"),["prevent"]))},[e.createVNode(x,{icon:e.unref(Pe)},null,8,["icon"])],40,Xo),e.createVNode(x,{class:"onyx-mini-search__icon",icon:e.unref(jo)},null,8,["icon"])],16))}}),Wo='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>',Jo=["aria-label"],Qo={key:0,class:"onyx-mobile-nav-button__menu"},en={class:"onyx-mobile-nav-button__content"},se=e.defineComponent({__name:"OnyxMobileNavButton",props:{label:{},icon:{},open:{type:Boolean,default:!1}},emits:["update:open"],setup(o,{emit:n}){const t=o,l=n;return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{class:e.normalizeClass(["onyx-mobile-nav-button",{"onyx-mobile-nav-button--active":t.open}]),"aria-label":t.label,onClick:a[0]||(a[0]=s=>l("update:open",!t.open))},[e.createVNode(x,{icon:t.open?e.unref(Wo):t.icon},null,8,["icon"])],10,Jo),t.open?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",en,[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))})])):e.createCommentVNode("",!0)]))}}),tn=["aria-label"],on=["src","alt"],nn={key:1,class:"onyx-text-small"},He=e.defineComponent({__name:"OnyxNavAppArea",props:{logoUrl:{},appName:{},label:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=e.computed(()=>t.label??r.value("navigation.goToHome"));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:"onyx-nav-app-area","aria-label":a.value,onClick:i[0]||(i[0]=u=>l("click"))},[e.renderSlot(s.$slots,"default",{},()=>[t.logoUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoUrl,alt:e.unref(r)("navigation.appLogo",{appName:t.appName}),class:"onyx-nav-app-area__logo",width:"24",height:"24"},null,8,on)):e.createCommentVNode("",!0),t.appName?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(t.appName),1)):e.createCommentVNode("",!0)])],8,tn))}}),Fe='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>',ln='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>',an='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>',rn=(o,n)=>{const t="content-box",l=e.ref(0),r=e.ref(0),a=s=>{const i=s[0].contentBoxSize;l.value=i.reduce((u,{inlineSize:d})=>u+d,0),r.value=i.reduce((u,{blockSize:d})=>u+d,0)};return e.onBeforeMount(()=>{const s=new ResizeObserver(a);e.watch(o,(i,u)=>{u&&(s==null||s.unobserve(u)),i&&(s==null||s.observe(i,{box:t}))},{immediate:!0}),e.onBeforeUnmount(()=>s.disconnect())}),{width:l,height:r}},Ue={"2xs":320,xs:576,sm:768,md:992,lg:1440,xl:1920},sn=["primary","secondary","neutral","danger","warning","success","info"],cn=["small","default","large"],un=["ellipsis","multiline"],dn=["horizontal","vertical"],A=Symbol(),pn={class:"onyx-nav-bar__content"},mn={key:0,class:"onyx-nav-bar__mobile-page"},fn={class:"onyx-nav-bar__nav--mobile"},hn={role:"menubar"},yn={key:1,class:"onyx-nav-bar__nav"},_n={role:"menubar"},vn={key:0,class:"onyx-nav-bar__mobile-context"},kn={key:0,class:"onyx-nav-bar__mobile-global-context"},xn={class:"onyx-nav-bar__mobile-context-content"},gn={key:1,class:"onyx-nav-bar__context"},bn=e.defineComponent({__name:"OnyxNavBar",props:{logoUrl:{},appName:{},withBackButton:{type:Boolean},appAreaLabel:{},mobileBreakpoint:{default:"sm"}},emits:["appAreaClick","backButtonClick"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),a=e.ref(),{width:s}=rn(a),{t:i}=C(),u=e.ref(!1),d=e.ref(!1),p=e.computed(()=>{const c=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:Ue[t.mobileBreakpoint];return s.value!==0&&s.value<c});return e.provide(A,p),(c,m)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"navBarRef",ref:a,class:e.normalizeClass(["onyx-nav-bar",{"onyx-nav-bar--mobile":p.value}])},[e.createElementVNode("div",pn,[p.value&&!u.value&&r.mobileActivePage?(e.openBlock(),e.createElementBlock("span",mn,[e.renderSlot(c.$slots,"mobileActivePage")])):t.appName||t.logoUrl||r.appArea?(e.openBlock(),e.createBlock(He,{key:1,class:"onyx-nav-bar__app","app-name":t.appName,"logo-url":t.logoUrl,label:t.appAreaLabel,onClick:m[0]||(m[0]=f=>{l("appAreaClick"),u.value=!1})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"appArea")]),_:3},8,["app-name","logo-url","label"])):e.createCommentVNode("",!0),t.withBackButton?(e.openBlock(),e.createBlock(Me,{key:2,class:"onyx-nav-bar__back",label:e.unref(i)("navigation.goBack"),icon:e.unref(Fe),color:"neutral",onClick:m[1]||(m[1]=f=>l("backButtonClick"))},null,8,["label","icon"])):e.createCommentVNode("",!0),r.default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[p.value?(e.openBlock(),e.createBlock(se,{key:0,open:u.value,"onUpdate:open":[m[2]||(m[2]=f=>u.value=f),m[3]||(m[3]=f=>d.value=!1)],class:"onyx-nav-bar__burger",icon:e.unref(ln),label:e.unref(i)("navigation.toggleBurgerMenu")},{default:e.withCtx(()=>[e.createVNode(I,{is:"h2",class:"onyx-nav-bar__mobile-headline"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("navigation.navigationHeadline")),1)]),_:1}),e.createElementVNode("nav",fn,[e.createElementVNode("ul",hn,[e.renderSlot(c.$slots,"default")])])]),_:3},8,["open","icon","label"])):(e.openBlock(),e.createElementBlock("nav",yn,[e.createElementVNode("ul",_n,[e.renderSlot(c.$slots,"default")])]))],64)):e.createCommentVNode("",!0),r.contextArea||r.globalContextArea?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[p.value?(e.openBlock(),e.createElementBlock("div",vn,[r.globalContextArea?(e.openBlock(),e.createElementBlock("div",kn,[e.renderSlot(c.$slots,"globalContextArea")])):e.createCommentVNode("",!0),r.contextArea?(e.openBlock(),e.createBlock(se,{key:1,open:d.value,"onUpdate:open":[m[4]||(m[4]=f=>d.value=f),m[5]||(m[5]=f=>u.value=!1)],icon:e.unref(an),label:e.unref(i)("navigation.toggleContextMenu")},{default:e.withCtx(()=>[e.createElementVNode("div",xn,[e.renderSlot(c.$slots,"contextArea")])]),_:3},8,["open","icon","label"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",gn,[r.globalContextArea?e.renderSlot(c.$slots,"globalContextArea",{key:0}):e.createCommentVNode("",!0),r.contextArea?e.renderSlot(c.$slots,"contextArea",{key:1}):e.createCommentVNode("",!0)]))],64)):e.createCommentVNode("",!0)])],2))}}),Bn=Symbol(),Cn={class:"onyx-future-flyout-menu"},wn=["aria-label"],Vn=e.defineComponent({__name:"OnyxFlyoutMenu",setup(o){const n=e.useSlots(),{elements:{button:t,menu:l,menuItem:r,listItem:a,flyout:s},state:{isExpanded:i}}=$o({});e.provide(Bn,{menuItem:r,listItem:a});const{t:u}=C();return(d,p)=>{var c,m;return e.openBlock(),e.createElementBlock("div",Cn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((m=(c=n.default)==null?void 0:c.call(n))==null?void 0:m[0]),e.normalizeProps(e.guardReactiveProps(e.unref(t))),null,16)),n.options||n.header||n.footer?e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},e.unref(s),{"aria-label":e.unref(u)("navigation.navigationHeadline"),class:{"onyx-future-flyout-menu__list--with-header":!!n.header,"onyx-future-flyout-menu__list--with-footer":!!n.footer,"onyx-future-flyout-menu__list":!0}}),[e.renderSlot(d.$slots,"header"),n.options?(e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:0},e.unref(l),{class:"onyx-future-flyout-menu__wrapper onyx-flyout-menu__group"}),[e.renderSlot(d.$slots,"options")],16)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"footer")],16,wn)),[[e.vShow,e.unref(i)]]):e.createCommentVNode("",!0)])}}}),En=e.defineComponent({__name:"OnyxNavButton",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"}},emits:["click"],setup(o,{emit:n}){const t=o,l=e.useSlots(),r=n,a=s=>(s.withExternalIcon??"auto")!=="auto"?s.withExternalIcon:he(s.href??"");return(s,i)=>(e.openBlock(),e.createBlock(Vn,{class:"onyx-nav-button"},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["onyx-nav-button__trigger onyx-text",{"onyx-nav-button--active":t.active}]),onClick:i[0]||(i[0]=u=>t.href&&r("click",t.href))},[e.renderSlot(s.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),a(t)?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-button__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)])],2)]),_:2},[l.children?{name:"options",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"children")]),key:"0"}:void 0]),1024))}}),Sn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>',Nn='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>',$n=["aria-orientation"],Re=e.defineComponent({__name:"OnyxNavSeparator",props:{orientation:{default:"vertical"}},setup(o){const n=o,t=e.inject(A);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-nav-separator",{"onyx-nav-separator--horizontal":n.orientation==="horizontal"||e.unref(t)}]),role:"separator","aria-orientation":n.orientation},null,10,$n))}}),Mn=["aria-label"],Tn={key:3,class:"onyx-nav-item__mobile-children"},On={role:"menu"},In={},Ln=e.defineComponent({...In,__name:"OnyxNavItem",props:{label:{},href:{},active:{type:Boolean,default:!1},withExternalIcon:{type:[Boolean,String],default:"auto"},options:{}},emits:["click"],setup(o,{emit:n}){const t=o,l=n,{t:r}=C(),a=p=>(p.withExternalIcon??"auto")!=="auto"?p.withExternalIcon:he(p.href??""),s=e.inject(A),i=e.ref(!1),u=e.computed(()=>{var p;return!!((p=t.options)!=null&&p.length)}),d=()=>{s!=null&&s.value&&u.value&&!i.value?i.value=!0:t.href&&l("click",t.href)};return(p,c)=>{var f;const m=e.resolveComponent("OnyxNavItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["onyx-nav-item",{"onyx-nav-item--mobile":e.unref(s)}]),role:"presentation"},[e.unref(s)&&i.value?(e.openBlock(),e.createBlock(q,{key:0,label:e.unref(r)("back"),mode:"plain",color:"neutral",icon:e.unref(Sn),onClick:c[0]||(c[0]=y=>i.value=!1)},null,8,["label","icon"])):e.createCommentVNode("",!0),!i.value||t.href?(e.openBlock(),e.createElementBlock("div",{key:1,role:"menuitem",tabindex:"0","aria-label":t.label,class:e.normalizeClass(["onyx-nav-item__trigger onyx-text",{"onyx-nav-item__trigger--active":t.active||((f=t.options)==null?void 0:f.find(y=>y.active))}]),onClick:d,onKeydown:e.withKeys(d,["enter"])},[e.renderSlot(p.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(t.label),1),a(t)?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-item__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)]),e.unref(s)&&u.value&&!i.value?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-item__mobile-chevron",icon:e.unref(Nn)},null,8,["icon"])):e.createCommentVNode("",!0)],42,Mn)):e.createCommentVNode("",!0),!e.unref(s)&&u.value?(e.openBlock(),e.createBlock(pe,{key:2,class:"onyx-nav-item__flyout","aria-label":e.unref(r)("navItemOptionsLabel",{label:t.label})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,y=>(e.openBlock(),e.createBlock(ye,{key:y.label,"aria-selected":y.active,onClick:V=>l("click",y.href)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label)+" ",1),a(y)?(e.openBlock(),e.createBlock(x,{key:0,class:"onyx-nav-item__icon",icon:e.unref(Z),size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0)]),_:2},1032,["aria-selected","onClick"]))),128))]),_:1},8,["aria-label"])):u.value&&i.value?(e.openBlock(),e.createElementBlock("div",Tn,[t.href?(e.openBlock(),e.createBlock(Re,{key:0,orientation:"horizontal"})):e.createCommentVNode("",!0),e.createElementVNode("ul",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,y=>(e.openBlock(),e.createBlock(m,e.mergeProps({key:y.label,ref_for:!0},y,{onClick:c[1]||(c[1]=V=>l("click",V))}),null,16))),128))])])):e.createCommentVNode("",!0)],2)}}}),Dn={key:0,class:"onyx-page__sidebar"},Pn={class:"onyx-page__main"},An={key:1,class:"onyx-page__footer"},zn={key:2,class:"onyx-page__toasts"},Hn=e.defineComponent({__name:"OnyxPageLayout",props:{footerAsideSidebar:{type:Boolean},hideSidebar:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>n.footerAsideSidebar?"onyx-page--footer-partial":"onyx-page--footer-full");return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-page",l.value])},[t.sidebar&&!n.hideSidebar?(e.openBlock(),e.createElementBlock("aside",Dn,[e.renderSlot(r.$slots,"sidebar")])):e.createCommentVNode("",!0),e.createElementVNode("main",Pn,[e.renderSlot(r.$slots,"default")]),t.footer?(e.openBlock(),e.createElementBlock("footer",An,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0),t.toasts?(e.openBlock(),e.createElementBlock("div",zn,[e.renderSlot(r.$slots,"toasts")])):e.createCommentVNode("",!0)],2))}}),Fn=["title"],Un=["required","name","value","checked","disabled","autofocus"],ie=e.defineComponent({__name:"OnyxRadioButton",props:{density:{},value:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},skeleton:{type:Boolean},truncation:{default:"ellipsis"},customError:{},autofocus:{type:Boolean},name:{},checked:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r}=L({props:t,emit:l}),{densityClass:a}=b(t),s=i=>{const u=i.target.checked;l("change",u)};return(i,u)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-radio-button-skeleton",e.unref(a)])},[e.createVNode(w,{class:"onyx-radio-button-skeleton__input"}),e.createVNode(w,{class:"onyx-radio-button-skeleton__label"})],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-radio-button",e.unref(a)]),title:e.unref(Ee)(t.customError)},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-radio-button__loading",type:"circle"})):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:"onyx-radio-button__selector",type:"radio",required:t.required,name:t.name,value:t.value,checked:t.checked,disabled:t.disabled,autofocus:t.autofocus,onChange:s},null,40,Un)),[[e.unref(r)]]),e.createElementVNode("span",{class:e.normalizeClass(["onyx-radio-button__label",[`onyx-truncation-${t.truncation}`]])},e.toDisplayString(t.label),3)],10,Fn))}}),Rn=["disabled"],qn={key:0,class:"onyx-radio-button-group__headline"},Zn=e.defineComponent({__name:"OnyxRadioGroup",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},options:{},name:{default:()=>T("radio-button-group-name")},modelValue:{},headline:{default:""},disabled:{type:Boolean,default:!1},direction:{default:"vertical"},skeleton:{}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,{densityClass:l}=b(t),{requiredMarkerClass:r,requiredTypeClass:a}=K(t),s=n,i=(u,d)=>{u&&s("update:modelValue",d)};return(u,d)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["onyx-radio-button-group",e.unref(l),e.unref(a)]),disabled:t.disabled,role:"radiogroup"},[t.headline?(e.openBlock(),e.createElementBlock("legend",qn,[e.createVNode(I,{is:"h3",class:e.normalizeClass(e.unref(r))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.headline),1)]),_:1},8,["class"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["onyx-radio-button-group__content",{"onyx-radio-button-group__content--horizontal":t.direction==="horizontal"}])},[t.skeleton===void 0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.options,(p,c)=>(e.openBlock(),e.createBlock(ie,e.mergeProps({key:p.value.toString(),ref_for:!0},p,{name:t.name,"custom-error":t.customError,checked:p.value===t.modelValue,required:t.required,onValidityChange:m=>c===0&&s("validityChange",m),onChange:m=>i(m,p.value)}),null,16,["name","custom-error","checked","required","onValidityChange","onChange"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.skeleton,p=>(e.openBlock(),e.createBlock(ie,{id:`skeleton-${p}`,key:p,value:`skeleton-${p}`,label:"Skeleton ${i}",name:t.name,skeleton:""},null,8,["id","value","name"]))),128))],2)],10,Rn))}}),qe=o=>{const t=e.ref(!1),l=a=>{const s=a.target;if(!(s instanceof Element))return;const i=e.unref(o.offset)??0;t.value=Math.abs(s.scrollTop)+s.clientHeight>=s.scrollHeight-i-1};return{vScrollEnd:{mounted:a=>{e.watchEffect(()=>{var i;(((i=o.enabled)==null?void 0:i.value)??!0)&&!o.loading.value?a.addEventListener("scroll",l):a.removeEventListener("scroll",l)})}},isScrollEnd:t}},Kn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>',Gn={class:"onyx-select-input__wrapper"},jn=["readonly","placeholder","required","disabled","aria-label","title","value","autofocus"],Yn=["aria-label","disabled"],Ze=e.defineComponent({inheritAttrs:!1,__name:"OnyxSelectInput",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},modelValue:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean,default:!1},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean}},emits:["click","validityChange"],setup(o,{expose:n,emit:t}){const{rootAttrs:l,restAttrs:r}=Ae(),a=o,s=t,{t:i}=C(),{vCustomValidity:u,errorMessages:d}=L({props:a,emit:s}),p=e.computed(()=>a.modelValue?a.modelValue.length:0),c=e.computed(()=>{var g;const k=(g=a.modelValue)==null?void 0:g.length;if(!a.modelValue||!k)return"";if(k===1)return a.modelValue[0].label;switch(a.textMode){case"preview":return a.modelValue.map(({label:S})=>S).join(", ");case"summary":default:return i.value("selections.currentSelection",{n:k})}}),m=e.ref(!1),{densityClass:f}=b(a),y=e.ref();n({focus:()=>{var k;return(k=y.value)==null?void 0:k.focus()}}),e.watch(()=>a.showFocus,(k,g)=>{m.value||g&&k===!1&&(m.value=!0)});const V=Le.concat(De),O=k=>{V.includes(k.key)||k.preventDefault()};return(k,g)=>a.skeleton?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["onyx-select-input-skeleton",e.unref(f)]},e.unref(l)),[a.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-select-input-skeleton__label"})),e.createVNode(w,{class:"onyx-select-input-skeleton__input"})],16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["onyx-select-input",e.unref(f),a.readonly?"onyx-select-input--readonly":"onyx-select-input--editable"]},e.unref(l)),[e.createVNode(fe,e.mergeProps(a,{"error-messages":e.unref(d)}),{default:e.withCtx(()=>[e.createElementVNode("div",Gn,[a.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"onyx-select-input__loading",type:"circle"})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:y,class:{"onyx-select-input__native":!0,"onyx-select-input__native--show-focus":a.showFocus,"onyx-truncation-ellipsis":!0,"onyx-select-input__native--force-invalid":e.unref(d)&&m.value}},e.unref(r),{type:"text",readonly:a.readonly,placeholder:a.placeholder,required:a.required,disabled:a.disabled||a.loading,"aria-label":a.hideLabel?a.label:void 0,title:a.hideLabel?a.label:void 0,value:c.value,autofocus:a.autofocus,onClick:g[0]||(g[0]=S=>s("click")),onKeydown:O}),null,16,jn),[[e.unref(u)]]),a.textMode==="preview"&&p.value>0?(e.openBlock(),e.createBlock(me,{key:1,text:c.value,position:"bottom"},{default:e.withCtx(()=>[e.createVNode(Be,{class:"onyx-select-input__badge",color:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1})]),_:1},8,["text"])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"onyx-select-input__button","aria-label":e.unref(i)("select.toggleDropDown"),tabindex:"-1",disabled:a.readonly||a.disabled||a.loading,onClick:g[1]||(g[1]=S=>s("click"))},[e.createVNode(x,{icon:e.unref(Kn)},null,8,["icon"])],8,Yn)])]),_:1},16,["error-messages"])],16))}}),Xn=["checked","aria-labelledby","disabled","indeterminate"],Wn={class:"onyx-truncation-ellipsis"},ce=e.defineComponent({__name:"OnyxSelectOption",props:{active:{type:Boolean,default:!1},density:{},multiple:{type:Boolean,default:!1},indeterminate:{type:Boolean},icon:{}},setup(o){const n=o;return(t,l)=>(e.openBlock(),e.createBlock(ye,e.mergeProps({class:"onyx-select-option"},n,{checked:!!t.$attrs["aria-checked"],selected:!!t.$attrs["aria-selected"],disabled:!!t.$attrs["aria-disabled"]}),{default:e.withCtx(()=>[n.multiple?(e.openBlock(),e.createElementBlock("input",{key:0,checked:!!t.$attrs["aria-checked"],"aria-labelledby":t.$attrs.id,disabled:!!t.$attrs["aria-disabled"],indeterminate:n.indeterminate,"aria-hidden":"true",tabindex:"-1",class:"onyx-select-option__checkbox",type:"checkbox"},null,8,Xn)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createBlock(x,{key:1,icon:n.icon},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",Wn,[e.renderSlot(t.$slots,"default")])]),_:3},16,["checked","selected","disabled"]))}}),Jn=["inert","aria-busy"],Qn={class:"onyx-select__wrapper",tabindex:"-1"},el={key:0,role:"group",class:"onyx-select__group"},tl={role:"option","aria-selected":"false"},ol={key:0,role:"presentation",class:"onyx-select__group-name onyx-text--small"},nl={key:1,class:"onyx-select__slot"},ll={key:2,class:"onyx-select__slot"},al=e.defineComponent({__name:"OnyxSelect",props:{density:{},multiple:{type:Boolean},modelValue:{},withCheckAll:{type:[Boolean,Object]},withSearch:{type:Boolean},searchTerm:{},required:{type:Boolean},requiredMarker:{},customError:{},textMode:{},autofocus:{type:Boolean},label:{},labelTooltip:{},hideLabel:{type:Boolean},message:{},messageTooltip:{},errorMessages:{},disabled:{type:Boolean},skeleton:{type:Boolean},readonly:{type:Boolean},loading:{type:Boolean,default:!1},placeholder:{},showFocus:{type:Boolean},listLabel:{},options:{},lazyLoading:{}},emits:["update:modelValue","update:searchTerm","lazyLoad","validityChange"],setup(o,{emit:n}){const t=o,l=n,r=e.useSlots(),{t:a}=C(),{densityClass:s}=b(t),i=e.ref(!1),u=e.ref(),d=e.ref(),p=e.computed(()=>t.modelValue?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[]),c=e.ref(),m=e.ref();e.watch(p,()=>{var h;t.multiple||(d.value=(h=p.value.at(0))==null?void 0:h.value)},{immediate:!0});const f=T("ONYX_CHECK_ALL"),y=e.computed(()=>(t.multiple&&t.withCheckAll&&!t.searchTerm?[f]:[]).concat(_e.value)),V=async h=>{var v,B;if(t.readonly){i.value=!1;return}i.value=!i.value,i.value?(await e.nextTick(),(B=c.value)==null||B.focus()):(t.searchTerm&&l("update:searchTerm",""),h||(v=m.value)==null||v.focus())},O=()=>d.value=y.value.at(0),k=()=>d.value=y.value.at(-1),g=h=>{const v=y.value.findIndex(B=>B===h);v<y.value.length-1&&(d.value=y.value[v+1])},S=h=>{const v=y.value.findIndex(B=>B===h);v>0&&(d.value=y.value[v-1])},j=h=>{const v=t.options.find(B=>B.label.toLowerCase().trim().startsWith(h.toLowerCase()));v&&(d.value=v.value)},Y=h=>l("update:searchTerm",h),z=h=>{var N;if(h===f){(N=F.value)==null||N.handleChange(!F.value.state.value.modelValue);return}const v=t.options.find(({value:E})=>E===h);if(!v)return;if(!t.multiple)return l("update:modelValue",v);p.value.some(({value:E})=>E===h)?l("update:modelValue",p.value.filter(({value:E})=>E!==h)):l("update:modelValue",[...p.value,v])},X=e.computed(()=>t.withSearch?"list":"none"),{elements:{input:D,option:H,group:W,listbox:J}}=So({autocomplete:X,label:t.label,listLabel:t.listLabel,inputValue:e.computed(()=>t.withSearch&&t.searchTerm||""),activeOption:e.computed(()=>d.value),multiple:e.computed(()=>t.multiple),isExpanded:i,templateRef:u,onToggle:V,onActivateFirst:O,onActivateLast:k,onActivateNext:g,onActivatePrevious:S,onTypeAhead:j,onAutocomplete:Y,onSelect:z}),Q=e.computed(()=>$t(t.options,"group")),{vScrollEnd:ee,isScrollEnd:_}=qe({enabled:e.computed(()=>{var h;return((h=t.lazyLoading)==null?void 0:h.enabled)??!1}),loading:e.computed(()=>t.loading),offset:e.computed(()=>{var h;return(h=t.lazyLoading)==null?void 0:h.scrollOffset})}),P=e.computed(()=>{if(!t.options.length)return t.withSearch&&t.searchTerm?a.value("select.noMatch"):a.value("select.empty")}),_e=e.computed(()=>t.options.filter(h=>!h.disabled).map(({value:h})=>h)),F=e.computed(()=>{if(!(!t.multiple||!t.withCheckAll))return Se(_e,e.computed(()=>p.value.map(({value:h})=>h)),h=>{const v=h.map(B=>t.options.find(({value:N})=>N===B)).filter(B=>B!=null);l("update:modelValue",v)})}),ve=e.computed(()=>{var v;if(!t.multiple)return"";const h=a.value("selections.selectAll");return typeof t.withCheckAll=="boolean"?h:((v=t.withCheckAll)==null?void 0:v.label)??h});e.watchEffect(()=>{_.value&&l("lazyLoad")});const Ge=e.computed(()=>{const h={...t,modelValue:p.value};return t.withSearch?{...h,onKeydown:D.value.onKeydown}:{...h,...D.value}});return(h,v)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:u,class:"onyx-select-wrapper"},[e.createVNode(Ze,e.mergeProps({ref_key:"selectInput",ref:m},Ge.value,{"show-focus":i.value,autofocus:t.autofocus,onClick:V,onValidityChange:v[0]||(v[0]=N=>l("validityChange",N))}),null,16,["show-focus","autofocus"]),e.createElementVNode("div",{class:e.normalizeClass(["onyx-select",e.unref(s),i.value?"onyx-select--open":""]),inert:!i.value,"aria-busy":t.loading},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Qn,[t.withSearch?(e.openBlock(),e.createBlock(ze,e.mergeProps({key:0,ref_key:"miniSearch",ref:c},e.unref(D),{label:e.unref(a)("select.searchInputLabel"),class:"onyx-select__search",onClear:v[1]||(v[1]=N=>l("update:searchTerm",""))}),null,16,["label"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(J))),[P.value?(e.openBlock(),e.createElementBlock("ul",el,[e.createElementVNode("li",tl,[e.renderSlot(h.$slots,"empty",{defaultMessage:P.value},()=>[e.createVNode($e,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value),1)]),_:1})])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Q.value,(N,E)=>{var ke,xe;return e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:E,class:"onyx-select__group",ref_for:!0},e.unref(W)({label:E})),[E!=""?(e.openBlock(),e.createElementBlock("li",ol,e.toDisplayString(E),1)):e.createCommentVNode("",!0),t.multiple&&t.withCheckAll&&!t.searchTerm?(e.openBlock(),e.createBlock(ce,e.mergeProps({key:1,ref_for:!0},e.unref(H)({value:e.unref(f),label:ve.value,selected:(ke=F.value)==null?void 0:ke.state.value.modelValue}),{multiple:"",active:e.unref(f)===d.value,indeterminate:(xe=F.value)==null?void 0:xe.state.value.indeterminate,density:t.density,class:"onyx-select__check-all"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ve.value),1)]),_:1},16,["active","indeterminate","density"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,$=>(e.openBlock(),e.createBlock(ce,e.mergeProps({key:$.value.toString(),ref_for:!0},e.unref(H)({value:$.value,label:$.label,disabled:$.disabled,selected:p.value.some(({value:je})=>je===$.value)}),{multiple:t.multiple,active:$.value===d.value,icon:$.icon,density:t.density}),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"option",e.mergeProps({ref_for:!0},$),()=>[e.createTextVNode(e.toDisplayString($.label),1)])]),_:2},1040,["multiple","active","icon","density"]))),128))],16)}),128))],16),(B=t.lazyLoading)!=null&&B.loading?(e.openBlock(),e.createElementBlock("div",nl,[e.createVNode(M,{class:"onyx-select__loading"})])):e.createCommentVNode("",!0),r.optionsEnd?(e.openBlock(),e.createElementBlock("div",ll,[e.renderSlot(h.$slots,"optionsEnd")])):e.createCommentVNode("",!0)])),[[e.unref(ee)]])],10,Jn)],512)}}}),rl=["summary","preview"],sl='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>',il={class:"onyx-switch-skeleton__click-area"},cl=["title"],ul=["aria-label","disabled","required","autofocus"],dl={class:"onyx-switch__click-area"},pl={class:"onyx-switch__container"},ml={class:"onyx-switch__icon"},fl=e.createElementVNode("div",{class:"onyx-switch__frame"},null,-1),hl=e.defineComponent({__name:"OnyxSwitch",props:{density:{},required:{type:Boolean},requiredMarker:{},customError:{},autofocus:{type:Boolean},modelValue:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hideLabel:{type:Boolean},truncation:{default:"ellipsis"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","validityChange"],setup(o,{emit:n}){const t=o,l=n,{requiredMarkerClass:r,requiredTypeClass:a}=K(t),{densityClass:s}=b(t),{vCustomValidity:i}=L({props:t,emit:l}),u=e.computed({get:()=>t.modelValue,set:d=>{l("update:modelValue",d)}});return(d,p)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-switch-skeleton",e.unref(s)])},[e.createElementVNode("span",il,[e.createVNode(w,{class:"onyx-switch-skeleton__input"})]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-switch-skeleton__label"}))],2)):(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["onyx-switch",[e.unref(a),e.unref(s)]]),title:t.hideLabel?t.label:void 0},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=c=>u.value=c),type:"checkbox",role:"switch",class:e.normalizeClass({"onyx-switch__input":!0,"onyx-switch__loading":t.loading}),"aria-label":t.hideLabel?t.label:void 0,disabled:t.disabled||t.loading,required:t.required,autofocus:t.autofocus},null,10,ul),[[e.vModelCheckbox,u.value],[e.unref(i)]]),e.createElementVNode("span",dl,[e.createElementVNode("span",pl,[e.createElementVNode("span",ml,[t.loading?(e.openBlock(),e.createBlock(e.unref(M),{key:0,class:"onyx-switch__spinner",type:"circle"})):(e.openBlock(),e.createBlock(e.unref(x),{key:1,icon:u.value?e.unref(sl):e.unref(Pe)},null,8,["icon"]))]),fl])]),t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["onyx-switch__label",[`onyx-truncation-${t.truncation}`,t.truncation==="multiline"?e.unref(r):void 0]])},e.toDisplayString(t.label),3)),t.truncation==="ellipsis"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-switch__marker",[e.unref(r)]])},null,2)):e.createCommentVNode("",!0)],10,cl))}}),yl={class:"onyx-table-wrapper"},_l={class:"onyx-table-wrapper__scroll-container",tabindex:"0"},vl=e.defineComponent({__name:"OnyxTable",props:{density:{},striped:{type:Boolean,default:!1},withVerticalBorders:{type:Boolean,default:!1}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("div",_l,[e.createElementVNode("table",{class:e.normalizeClass(["onyx-table onyx-text",[n.striped?"onyx-table--striped":"",n.withVerticalBorders?"onyx-table--vertical-borders":"",e.unref(t)]])},[e.renderSlot(l.$slots,"default")],2)])]))}}),kl={class:"onyx-text onyx-truncation-ellipsis"},xl=e.defineComponent({__name:"OnyxTag",props:{density:{},label:{},color:{default:"primary"},icon:{}},setup(o){const n=o,{densityClass:t}=b(n);return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["onyx-tag",`onyx-tag--${n.color}`,e.unref(t)])},[n.icon?(e.openBlock(),e.createBlock(x,{key:0,icon:n.icon,size:"16px"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",kl,e.toDisplayString(n.label),1)],2))}}),gl=["data-autosize-value"],bl=["placeholder","required","autocapitalize","autofocus","name","readonly","disabled","minlength","maxlength","aria-label","title"],Bl=e.defineComponent({__name:"OnyxTextarea",props:{density:{},required:{type:Boolean,default:!1},requiredMarker:{},customError:{},label:{},labelTooltip:{},hideLabel:{type:Boolean},modelValue:{default:""},placeholder:{},autocapitalize:{default:"sentences"},autofocus:{type:Boolean},name:{},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minlength:{},maxlength:{},withCounter:{type:Boolean},message:{},messageTooltip:{},skeleton:{type:Boolean,default:!1},autosize:{},disableManualResize:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur","validityChange"],setup(o,{emit:n}){const t=o,l=n,{vCustomValidity:r,errorMessages:a}=L({props:t,emit:l}),{densityClass:s}=b(t),i=e.computed({get:()=>t.modelValue,set:c=>l("update:modelValue",c)}),u=c=>{const m=c.target.value;l("change",m)},d=e.computed(()=>{if(!t.autosize)return;const c=t.autosize.min?Math.max(t.autosize.min,2):void 0,m=t.autosize.max;return[c?`--min-autosize-rows: ${c}`:"",`--max-autosize-rows: ${m??"unset"}`]}),p=c=>{var f;const m=c.target;(f=m.parentElement)==null||f.setAttribute("data-autosize-value",m.value)};return(c,m)=>t.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["onyx-textarea-skeleton",e.unref(s)]),style:e.normalizeStyle(d.value)},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:0,class:"onyx-textarea-skeleton__label"})),e.createVNode(w,{class:"onyx-textarea-skeleton__input"})],6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["onyx-textarea",e.unref(s)]),style:e.normalizeStyle(d.value)},[e.createVNode(fe,e.mergeProps(t,{"error-messages":e.unref(a)}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:"onyx-textarea__wrapper","data-autosize-value":i.value},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":m[0]||(m[0]=f=>i.value=f),class:e.normalizeClass(["onyx-textarea__native",{"onyx-textarea__native--no-resize":t.disableManualResize}]),placeholder:t.placeholder,required:t.required,autocapitalize:t.autocapitalize,autofocus:t.autofocus,name:t.name,readonly:t.readonly,disabled:t.disabled,minlength:t.minlength,maxlength:t.maxlength,"aria-label":t.hideLabel?t.label:void 0,title:t.hideLabel?t.label:void 0,onInput:p,onChange:u,onFocus:m[1]||(m[1]=f=>l("focus")),onBlur:m[2]||(m[2]=f=>l("blur"))},null,42,bl),[[e.vModelText,i.value],[e.unref(r)]])],8,gl)]),_:1},16,["error-messages"])],6))}}),Cl=o=>{const n=e.ref(),t=e.ref(te(new Date(o.value).getTime())),l=e.computed(()=>t.value===0);return e.watch(o,r=>{clearInterval(n.value);const a=new Date(r).getTime();t.value=te(a),n.value=setInterval(()=>{t.value=te(a),l.value&&clearInterval(n.value)},1e3)},{immediate:!0}),e.onBeforeUnmount(()=>clearInterval(n.value)),{timeLeft:t,isEnded:l}},te=o=>{const n=o-Date.now();return Math.max(n,0)},Ke=o=>{const n=Math.floor(o/6e4/60),t=Math.floor(o/6e4%60),l=Math.floor(o%6e4/1e3);return{hours:n,minutes:t,seconds:l}},wl=(o,n)=>{const{hours:t,minutes:l,seconds:r}=Ke(o),a=u=>u.toString().padStart(2,"0");let s="",i=oe(n.formatToParts(o,"seconds"));return l>0&&(i=oe(n.formatToParts(o,"minutes"))),t>0&&(i=oe(n.formatToParts(o,"hours")),s=`${a(t)}:`),`${s}${a(l)}:${a(r)} ${i}`},oe=o=>{var n;return((n=o.at(-1))==null?void 0:n.value.replace(".","").trim())??""},Vl=o=>{const{hours:n,minutes:t,seconds:l}=Ke(o);return`PT${n}H${t}M${l}S`},El=["aria-label"],Sl={key:0,class:"onyx-timer__label"},Nl=["datetime"],$l=e.defineComponent({__name:"OnyxTimer",props:{endTime:{},label:{},hideLabel:{type:Boolean}},emits:["timerEnded"],setup(o,{emit:n}){const t=o,l=n,{locale:r}=C(),{timeLeft:a,isEnded:s}=Cl(e.computed(()=>t.endTime)),i=e.computed(()=>new Intl.RelativeTimeFormat(r.value,{numeric:"always",style:"short"})),u=e.computed(()=>wl(a.value,i.value));return e.watchEffect(()=>s.value&&l("timerEnded")),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"onyx-timer onyx-text onyx-truncation-ellipsis",role:"timer","aria-label":t.hideLabel?t.label:void 0},[t.hideLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Sl,e.toDisplayString(t.label),1)),e.createElementVNode("time",{datetime:e.unref(Vl)(e.unref(a)),class:"onyx-timer__time"},e.toDisplayString(u.value),9,Nl)],8,El))}}),Ml=["top","bottom"],Tl=e.defineComponent({__name:"UserMenuLayout",props:{isMobile:{type:Boolean}},setup(o){const n=o,t=e.useSlots(),{t:l}=C();return(r,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.isMobile?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(r.$slots,"header"),e.renderSlot(r.$slots,"options"),e.renderSlot(r.$slots,"footer")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(r.$slots,"button"),e.createVNode(pe,{class:"onyx-user-menu__flyout","aria-label":e.unref(l)("navigation.userMenuLabel")},e.createSlots({header:e.withCtx(()=>[e.renderSlot(r.$slots,"header")]),default:e.withCtx(()=>[e.renderSlot(r.$slots,"options")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"footer")]),key:"0"}:void 0]),1032,["aria-label"])],64))]))}}),Ol={key:0,class:"onyx-user-menu__trigger onyx-text"},Il={class:"onyx-truncation-ellipsis"},Ll={class:"onyx-user-menu__header"},Dl={class:"onyx-truncation-ellipsis"},Pl={class:"onyx-user-menu__username onyx-text onyx-truncation-ellipsis"},Al={key:0,class:"onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"},zl={class:"onyx-user-menu__footer onyx-text--small"},Hl=e.defineComponent({__name:"OnyxUserMenu",props:{username:{},avatar:{},description:{}},setup(o){const n=o,t=e.useSlots(),l=e.computed(()=>typeof n.avatar=="object"?{...n.avatar,label:n.username}:{src:n.avatar,label:n.username}),r=e.inject(A);return(a,s)=>(e.openBlock(),e.createBlock(Tl,{class:e.normalizeClass(["onyx-user-menu",{"onyx-user-menu--mobile":e.unref(r)}]),"is-mobile":e.unref(r)??!1},e.createSlots({button:e.withCtx(()=>[e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",Ol,[e.createVNode(ne,e.mergeProps(l.value,{size:"24px"}),null,16),e.createElementVNode("span",Il,e.toDisplayString(n.username),1),e.createVNode(x,{class:"onyx-user-menu__chevron",icon:e.unref(Fe)},null,8,["icon"])]))]),header:e.withCtx(()=>[e.createElementVNode("div",Ll,[e.createVNode(ne,e.normalizeProps(e.guardReactiveProps(l.value)),null,16),e.createElementVNode("div",Dl,[e.createElementVNode("div",Pl,e.toDisplayString(n.username),1),n.description?(e.openBlock(),e.createElementBlock("div",Al,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])])]),options:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[t.footer?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",zl,[e.renderSlot(a.$slots,"footer")])]),key:"0"}:void 0]),1032,["class","is-mobile"]))}}),Fl=o=>({install:n=>{Rt(n,o.i18n);const t=n.runWithContext(()=>C());e.watchEffect(()=>Ul(t.t.value("optional")))}}),Ul=o=>globalThis.document.body.style.setProperty("--onyx-global-optional-text",o),Rl=(o,n)=>{const t=be(o.toLowerCase()),l=be(n.toLowerCase());return t.includes(l)},be=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"");exports.AUTOCAPITALIZE=qo;exports.BUTTON_COLORS=wt;exports.BUTTON_MODES=Vt;exports.BUTTON_TYPES=Ct;exports.DENSITIES=at;exports.DIRECTIONS=dn;exports.HEADLINE_TYPES=ho;exports.ICON_SIZES=yo;exports.INPUT_TYPES=Ro;exports.LINK_TARGETS=Go;exports.MOBILE_NAV_BAR_INJECTION_KEY=A;exports.MULTISELECT_TEXT_MODE=rl;exports.ONYX_BREAKPOINTS=Ue;exports.ONYX_COLORS=sn;exports.OnyxAppLayout=Qe;exports.OnyxAvatar=ne;exports.OnyxAvatarStack=lt;exports.OnyxBadge=Be;exports.OnyxButton=q;exports.OnyxCheckbox=U;exports.OnyxCheckboxGroup=Qt;exports.OnyxColorSchemeDialog=co;exports.OnyxDialog=Ne;exports.OnyxEmpty=$e;exports.OnyxFlyoutMenu=pe;exports.OnyxHeadline=I;exports.OnyxIcon=x;exports.OnyxIconButton=Me;exports.OnyxInfoTooltip=R;exports.OnyxInput=Uo;exports.OnyxLink=Ko;exports.OnyxListItem=ye;exports.OnyxLoadingIndicator=M;exports.OnyxMiniSearch=ze;exports.OnyxMobileNavButton=se;exports.OnyxNavAppArea=He;exports.OnyxNavBar=bn;exports.OnyxNavButton=En;exports.OnyxNavItem=Ln;exports.OnyxNavSeparator=Re;exports.OnyxPageLayout=Hn;exports.OnyxRadioButton=ie;exports.OnyxRadioGroup=Zn;exports.OnyxSelect=al;exports.OnyxSelectInput=Ze;exports.OnyxSelectOption=ce;exports.OnyxSkeleton=w;exports.OnyxSwitch=hl;exports.OnyxTable=vl;exports.OnyxTag=xl;exports.OnyxTextarea=Bl;exports.OnyxTimer=$l;exports.OnyxTooltip=me;exports.OnyxUserMenu=Hl;exports.OnyxVisuallyHidden=de;exports.TEXT_SIZES=cn;exports.TOOLTIP_POSITIONS=Ml;exports.TRUNCATION_TYPES=un;exports.createOnyx=Fl;exports.normalizedIncludes=Rl;exports.useDensity=b;exports.useScrollEnd=qe;
|