sit-onyx 1.0.0-alpha.76 → 1.0.0-alpha.77

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