@velocityuikit/velocityui 0.1.16 → 0.1.17

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.
@@ -3,6 +3,7 @@ import { default as React } from 'react';
3
3
  export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export type AvatarShape = 'circle' | 'square';
5
5
  export type AvatarStatus = 'online' | 'away' | 'offline';
6
+ export type AvatarStatusAnimation = 'none' | 'pulse';
6
7
  export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
7
8
  src?: string;
8
9
  alt?: string;
@@ -10,5 +11,6 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
10
11
  size?: AvatarSize;
11
12
  shape?: AvatarShape;
12
13
  status?: AvatarStatus;
14
+ statusAnimation?: AvatarStatusAnimation;
13
15
  }
14
16
  export declare const Avatar: React.FC<AvatarProps>;
@@ -1,2 +1,2 @@
1
1
  export { Avatar } from './Avatar';
2
- export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus } from './Avatar';
2
+ export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus, AvatarStatusAnimation } from './Avatar';
@@ -2,9 +2,11 @@ import { default as React } from 'react';
2
2
 
3
3
  export type BadgeVariant = 'default' | 'info' | 'success' | 'warning' | 'danger' | 'primary';
4
4
  export type BadgeSize = 'sm' | 'md' | 'lg';
5
+ export type BadgeAnimation = 'none' | 'pulse' | 'shine';
5
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
6
7
  variant?: BadgeVariant;
7
8
  size?: BadgeSize;
9
+ animation?: BadgeAnimation;
8
10
  dot?: boolean;
9
11
  leftIcon?: React.ReactNode;
10
12
  children: React.ReactNode;
@@ -1,2 +1,2 @@
1
1
  export { Badge } from './Badge';
2
- export type { BadgeProps, BadgeVariant, BadgeSize } from './Badge';
2
+ export type { BadgeProps, BadgeVariant, BadgeSize, BadgeAnimation } from './Badge';
@@ -2,9 +2,11 @@ import { default as React } from 'react';
2
2
 
3
3
  export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
4
4
  export type ButtonSize = 'sm' | 'md' | 'lg';
5
+ export type ButtonAnimation = 'none' | 'pulse' | 'shine';
5
6
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
7
  variant?: ButtonVariant;
7
8
  size?: ButtonSize;
9
+ animation?: ButtonAnimation;
8
10
  loading?: boolean;
9
11
  fullWidth?: boolean;
10
12
  leftIcon?: React.ReactNode;
@@ -1,2 +1,2 @@
1
1
  export { Button } from './Button';
2
- export type { ButtonProps, ButtonVariant, ButtonSize } from './Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonAnimation } from './Button';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),Se=require("react-dom"),st="_button_111na_1",nt="_loading_111na_26",ot="_sm_111na_33",rt="_md_111na_39",at="_lg_111na_45",it="_primary_111na_52",lt="_secondary_111na_65",ct="_outline_111na_78",dt="_ghost_111na_90",_t="_danger_111na_101",ut="_fullWidth_111na_114",pt="_spinner_111na_119",ht="_spin_111na_119",re={button:st,loading:nt,sm:ot,md:rt,lg:at,primary:it,secondary:lt,outline:ct,ghost:dt,danger:_t,fullWidth:ut,spinner:pt,spin:ht},ze=m.forwardRef(({variant:t="primary",size:n="md",loading:s=!1,fullWidth:o=!1,leftIcon:r,rightIcon:a,children:l,className:i,disabled:c,..._},p)=>{const h=[re.button,re[t],re[n],o?re.fullWidth:"",s?re.loading:"",i??""].filter(Boolean).join(" ");return e.jsxs("button",{ref:p,className:h,disabled:c||s,"aria-busy":s,..._,children:[s&&e.jsx("span",{className:re.spinner,"aria-hidden":"true"}),!s&&r&&e.jsx("span",{"aria-hidden":"true",children:r}),l,!s&&a&&e.jsx("span",{"aria-hidden":"true",children:a})]})});ze.displayName="Button";const mt="_wrapper_1r7em_1",ft="_label_1r7em_8",bt="_required_1r7em_15",xt="_inputWrapper_1r7em_20",gt="_input_1r7em_20",vt="_error_1r7em_55",jt="_sm_1r7em_64",wt="_md_1r7em_70",$t="_lg_1r7em_76",kt="_hasLeft_1r7em_83",yt="_hasRight_1r7em_87",Nt="_iconLeft_1r7em_91",Lt="_iconRight_1r7em_92",Bt="_hint_1r7em_111",It="_errorText_1r7em_117",Ct="_floatingWrapper_1r7em_125",Et="_inputFloating_1r7em_130",St="_floatingLabelEl_1r7em_149",qt="_floatingLabelSm_1r7em_165",Rt="_floatingLabelMd_1r7em_166",Wt="_floatingLabelLg_1r7em_167",Tt="_floatingLabelWithLeft_1r7em_170",Dt="_floatingLabelError_1r7em_190",L={wrapper:mt,label:ft,required:bt,inputWrapper:xt,input:gt,error:vt,sm:jt,md:wt,lg:$t,hasLeft:kt,hasRight:yt,iconLeft:Nt,iconRight:Lt,hint:Bt,errorText:It,floatingWrapper:Ct,inputFloating:Et,floatingLabelEl:St,floatingLabelSm:qt,floatingLabelMd:Rt,floatingLabelLg:Wt,floatingLabelWithLeft:Tt,floatingLabelError:Dt},Mt=()=>e.jsx("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),Fe=m.forwardRef(({label:t,size:n="md",error:s,hint:o,leftIcon:r,rightIcon:a,search:l=!1,searchIcon:i,searchIconPosition:c="left",leftIconClassName:_,rightIconClassName:p,required:h,fullWidth:d,floatingLabel:f,className:x,id:u,placeholder:g,...v},N)=>{const j=u??(t?`vui-input-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),E=j?`${j}-error`:void 0,k=j?`${j}-hint`:void 0,O=l||!!i,X=i??e.jsx(Mt,{});let w=r,$=a,H=!1,Y=!1;O&&(c==="right"?$||($=X,Y=!0):w||(w=X,H=!0));const ne=[L.input,L[n],f?L.inputFloating:"",s?L.error:"",w?L.hasLeft:"",$?L.hasRight:"",x??""].filter(Boolean).join(" "),ge=[L.floatingLabelEl,L[`floatingLabel${n.charAt(0).toUpperCase()+n.slice(1)}`],w?L.floatingLabelWithLeft:"",s?L.floatingLabelError:""].filter(Boolean).join(" ");return e.jsxs("div",{className:L.wrapper,children:[t&&!f&&e.jsxs("label",{htmlFor:j,className:L.label,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:`${L.inputWrapper}${f?` ${L.floatingWrapper}`:""}`,children:[w&&e.jsx("span",{className:[L.iconLeft,_??""].filter(Boolean).join(" "),"data-slot":"left-icon","data-search-icon":H?"true":void 0,"aria-hidden":"true",children:w}),e.jsx("input",{ref:N,id:j,className:ne,required:h,"aria-invalid":!!s,"aria-describedby":[s?E:null,o?k:null].filter(Boolean).join(" ")||void 0,placeholder:f?" ":g,...v}),t&&f&&e.jsxs("label",{htmlFor:j,className:ge,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),$&&e.jsx("span",{className:[L.iconRight,p??""].filter(Boolean).join(" "),"data-slot":"right-icon","data-search-icon":Y?"true":void 0,"aria-hidden":"true",children:$})]}),s&&e.jsx("span",{id:E,className:L.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:k,className:L.hint,children:o})]})});Fe.displayName="Input";const zt="_title_1np0f_1",Ft="_xs_1np0f_9",At="_sm_1np0f_14",Ot="_md_1np0f_19",Ht="_lg_1np0f_24",Pt="_xl_1np0f_29",Ut="_xxl_1np0f_34",Vt="_light_1np0f_40",Xt="_normal_1np0f_44",Yt="_medium_1np0f_48",Gt="_semibold_1np0f_52",Kt="_bold_1np0f_56",Jt="_extrabold_1np0f_60",Qt="_left_1np0f_65",Zt="_center_1np0f_69",es="_right_1np0f_73",ts="_muted_1np0f_82",ss="_primary_1np0f_86",ns="_gradient_1np0f_90",pe={title:zt,xs:Ft,sm:At,md:Ot,lg:Ht,xl:Pt,xxl:Ut,light:Vt,normal:Xt,medium:Yt,semibold:Gt,bold:Kt,extrabold:Jt,left:Qt,center:Zt,right:es,default:"_default_1np0f_78",muted:ts,primary:ss,gradient:ns},os={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},rs=({as:t,level:n="h1",size:s,weight:o="bold",align:r="left",color:a="default",children:l,className:i,...c})=>{const _=t??n,p=s??os[_],h=[pe.title,pe[p],pe[o],pe[r],pe[a],i??""].filter(Boolean).join(" ");return m.createElement(_,{className:h,...c},l)},as="_badge_8sbva_1",is="_sm_8sbva_14",ls="_md_8sbva_19",cs="_lg_8sbva_24",ds="_info_8sbva_36",_s="_success_8sbva_42",us="_warning_8sbva_48",ps="_danger_8sbva_54",hs="_primary_8sbva_60",ms="_dot_8sbva_67",ke={badge:as,sm:is,md:ls,lg:cs,default:"_default_8sbva_30",info:ds,success:_s,warning:us,danger:ps,primary:hs,dot:ms},fs=({variant:t="default",size:n="md",dot:s=!1,leftIcon:o,children:r,className:a,...l})=>{const i=[ke.badge,ke[t],ke[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[s&&e.jsx("span",{className:ke.dot,"aria-hidden":"true"}),!s&&o&&e.jsx("span",{"aria-hidden":"true",children:o}),r]})},bs="_card_1q61w_1",xs="_bordered_1q61w_11",gs="_shadow_1q61w_15",vs="_elevated_1q61w_19",js="_ghost_1q61w_23",ws="_sm_1q61w_29",$s="_cardHeader_1q61w_29",ks="_cardBody_1q61w_30",ys="_cardFooter_1q61w_31",Ns="_md_1q61w_35",Ls="_lg_1q61w_41",Bs="_hoverable_1q61w_72",se={card:bs,bordered:xs,shadow:gs,elevated:vs,ghost:js,sm:ws,cardHeader:$s,cardBody:ks,cardFooter:ys,md:Ns,lg:Ls,hoverable:Bs},Ae=({children:t,className:n,...s})=>e.jsx("div",{className:`${se.cardHeader} ${n??""}`,...s,children:t});Ae.displayName="Card.Header";const Oe=({children:t,className:n,...s})=>e.jsx("div",{className:`${se.cardBody} ${n??""}`,...s,children:t});Oe.displayName="Card.Body";const He=({children:t,className:n,...s})=>e.jsx("div",{className:`${se.cardFooter} ${n??""}`,...s,children:t});He.displayName="Card.Footer";const Is=({variant:t="bordered",size:n="md",hoverable:s=!1,children:o,className:r,...a})=>{const l=[se.card,se[t],se[n],s?se.hoverable:"",r??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,...a,children:o})},be=Is;be.Header=Ae;be.Body=Oe;be.Footer=He;be.displayName="Card";const Cs="_root_y54b0_1",Es="_background_y54b0_12",Ss="_interactive_y54b0_19",qs="_content_y54b0_23",ye={root:Cs,background:Es,interactive:Ss,content:qs},Rs={subtle:{"--vui-ambient-opacity":"0.62","--vui-ambient-blur":"88px","--vui-ambient-scale":"0.92"},medium:{"--vui-ambient-opacity":"0.82","--vui-ambient-blur":"112px","--vui-ambient-scale":"1"},vivid:{"--vui-ambient-opacity":"1","--vui-ambient-blur":"136px","--vui-ambient-scale":"1.08"}},Ws={slow:{"--vui-ambient-duration":"24s","--vui-ambient-speed-multiplier":"0.72"},medium:{"--vui-ambient-duration":"18s","--vui-ambient-speed-multiplier":"1"},fast:{"--vui-ambient-duration":"13s","--vui-ambient-speed-multiplier":"1.25"}},Ts=({background:t,contentClassName:n,intensity:s="medium",speed:o="medium",interactive:r=!1,className:a,style:l,children:i,...c})=>{const _=[ye.root,r?ye.interactive:"",a??""].filter(Boolean).join(" "),p=[ye.content,n??""].filter(Boolean).join(" "),h={...Rs[s],...Ws[o],...l};return e.jsxs("div",{className:_,style:h,...c,children:[t?e.jsx("div",{className:ye.background,children:t}):null,e.jsx("div",{className:p,children:i})]})},Ds="_root_1h0b6_1",Ms="_orb_1h0b6_8",zs="_floatOrb_1h0b6_1",Fs="_primary_1h0b6_19",As="_secondary_1h0b6_25",Os="_accent_1h0b6_33",Hs="_highlight_1h0b6_40",Ps="_hero_1h0b6_48",Us="_diagonal_1h0b6_68",Vs="_spotlight_1h0b6_88",z={root:Ds,orb:Ms,floatOrb:zs,primary:Fs,secondary:As,accent:Os,highlight:Hs,hero:Ps,diagonal:Us,spotlight:Vs},Xs=({variant:t="hero",className:n,...s})=>{const o=[z.root,z[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:`${z.orb} ${z.primary}`}),e.jsx("span",{className:`${z.orb} ${z.secondary}`}),e.jsx("span",{className:`${z.orb} ${z.accent}`}),e.jsx("span",{className:`${z.orb} ${z.highlight}`})]})},Ys="_root_3f8d1_1",Gs="_grid_3f8d1_9",Ks="_glow_3f8d1_10",Js="_beam_3f8d1_11",Qs="_sweepBeam_3f8d1_1",Zs="_spotlight_3f8d1_49",en="_panel_3f8d1_57",he={root:Ys,grid:Gs,glow:Ks,beam:Js,sweepBeam:Qs,default:"_default_3f8d1_45",spotlight:Zs,panel:en},tn=({variant:t="default",className:n,...s})=>{const o=[he.root,he[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:he.grid}),e.jsx("span",{className:he.glow}),e.jsx("span",{className:he.beam})]})},sn="_wrapper_1xu0d_1",nn="_wrapperFullWidth_1xu0d_7",on="_label_1xu0d_11",rn="_required_1xu0d_18",an="_textarea_1xu0d_23",ln="_hasError_1xu0d_53",cn="_sm_1xu0d_62",dn="_md_1xu0d_67",_n="_lg_1xu0d_72",un="_none_1xu0d_78",pn="_vertical_1xu0d_82",hn="_horizontal_1xu0d_86",mn="_both_1xu0d_90",fn="_fullWidth_1xu0d_94",bn="_hint_1xu0d_98",xn="_errorText_1xu0d_104",M={wrapper:sn,wrapperFullWidth:nn,label:on,required:rn,textarea:an,hasError:ln,sm:cn,md:dn,lg:_n,none:un,vertical:pn,horizontal:hn,both:mn,fullWidth:fn,hint:bn,errorText:xn},Pe=m.forwardRef(({label:t,size:n="md",error:s,hint:o,required:r,fullWidth:a=!1,resize:l="vertical",className:i,id:c,..._},p)=>{const h=c??(t?`vui-textarea-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),d=h?`${h}-error`:void 0,f=h?`${h}-hint`:void 0,x=[M.textarea,M[n],M[l],s?M.hasError:"",a?M.fullWidth:"",i??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${M.wrapper}${a?` ${M.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{htmlFor:h,className:M.label,children:[t,r&&e.jsx("span",{className:M.required,"aria-hidden":"true",children:"*"})]}),e.jsx("textarea",{ref:p,id:h,className:x,required:r,"aria-invalid":!!s,"aria-describedby":[s?d:null,o&&!s?f:null].filter(Boolean).join(" ")||void 0,..._}),s&&e.jsx("span",{id:d,className:M.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:f,className:M.hint,children:o})]})});Pe.displayName="Textarea";const gn="_wrapper_1cpn4_1",vn="_wrapperFullWidth_1cpn4_7",jn="_label_1cpn4_11",wn="_required_1cpn4_18",$n="_selectWrapper_1cpn4_23",kn="_hiddenSelect_1cpn4_46",yn="_trigger_1cpn4_53",Nn="_hasError_1cpn4_103",Ln="_sm_1cpn4_114",Bn="_md_1cpn4_120",In="_lg_1cpn4_126",Cn="_fullWidth_1cpn4_132",En="_valueText_1cpn4_136",Sn="_placeholder_1cpn4_144",qn="_chevron_1cpn4_148",Rn="_isOpen_1cpn4_180",Wn="_menu_1cpn4_184",Tn="_option_1cpn4_203",Dn="_optionFocused_1cpn4_222",Mn="_optionSelected_1cpn4_229",zn="_optionLabel_1cpn4_238",Fn="_optionCheck_1cpn4_243",An="_optionCheckVisible_1cpn4_250",On="_hint_1cpn4_260",Hn="_errorText_1cpn4_266",y={wrapper:gn,wrapperFullWidth:vn,label:jn,required:wn,selectWrapper:$n,hiddenSelect:kn,trigger:yn,hasError:Nn,sm:Ln,md:Bn,lg:In,fullWidth:Cn,valueText:En,placeholder:Sn,chevron:qn,isOpen:Rn,menu:Wn,option:Tn,optionFocused:Dn,optionSelected:Mn,optionLabel:zn,optionCheck:Fn,optionCheckVisible:An,hint:On,errorText:Hn};function Pn(t){return m.Children.toArray(t).flatMap(n=>{if(!m.isValidElement(n)||n.type!=="option")return[];const s=n.props.value,o=typeof n.props.children=="string"?n.props.children:String(s??"");return s==null?[]:[{value:String(s),label:o,disabled:!!n.props.disabled}]})}const Ue=m.forwardRef(({label:t,size:n="md",error:s,hint:o,required:r,fullWidth:a=!1,options:l,placeholder:i,className:c,id:_,children:p,value:h,defaultValue:d,onChange:f,onBlur:x,onFocus:u,onKeyDown:g,disabled:v,name:N,autoComplete:j,form:E,...k},O)=>{const X=m.useRef(null),w=m.useRef(null);m.useImperativeHandle(O,()=>X.current);const $=_??(t?`vui-select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),H=$?`${$}-error`:void 0,Y=$?`${$}-hint`:void 0,ne=$?`${$}-listbox`:void 0,ge=$?`${$}-label`:void 0,B=m.useMemo(()=>l||Pn(p),[p,l]),ve=h!==void 0,Q=B.find(b=>!b.disabled),Qe=String(d??(i?"":(Q==null?void 0:Q.value)??"")),[Ie,qe]=m.useState(Qe),je=String(ve?h??"":Ie),[Z,oe]=m.useState(!1),[_e,we]=m.useState(-1);m.useEffect(()=>{if(ve||!B.length)return;B.some(I=>I.value===Ie)||qe((Q==null?void 0:Q.value)??"")},[B,ve,Ie,Q]),m.useEffect(()=>{const b=I=>{w.current&&!w.current.contains(I.target)&&oe(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const $e=B.find(b=>b.value===je),Ze=($e==null?void 0:$e.label)??i??"",et=[y.trigger,y[n],s?y.hasError:"",a?y.fullWidth:"",Z?y.isOpen:"",c??""].filter(Boolean).join(" "),Re=b=>{var S;ve||qe(b);const I=X.current;if(I){const ue=(S=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:S.set;ue==null||ue.call(I,b),I.dispatchEvent(new Event("change",{bubbles:!0}))}},Ce=()=>{if(v||!B.length)return;oe(!0);const b=B.findIndex(S=>S.value===je&&!S.disabled);if(b>=0){we(b);return}const I=B.findIndex(S=>!S.disabled);we(I)},We=b=>{if(!B.length)return;let I=_e;for(let S=0;S<B.length;S+=1)if(I=(I+b+B.length)%B.length,!B[I].disabled){we(I);return}},tt=b=>{if(g==null||g(b),!b.defaultPrevented){if(!Z&&(b.key==="ArrowDown"||b.key==="ArrowUp")){b.preventDefault(),Ce();return}if(!Z&&(b.key==="Enter"||b.key===" ")){b.preventDefault(),Ce();return}if(Z){if(b.key==="Escape"){b.preventDefault(),oe(!1);return}if(b.key==="ArrowDown"){b.preventDefault(),We(1);return}if(b.key==="ArrowUp"){b.preventDefault(),We(-1);return}(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),_e>=0&&!B[_e].disabled&&(Re(B[_e].value),oe(!1)))}}};return e.jsxs("div",{className:`${y.wrapper}${a?` ${y.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{id:ge,className:y.label,children:[t,r&&e.jsx("span",{className:y.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:y.selectWrapper,ref:w,children:[e.jsxs("select",{ref:X,id:$,className:y.hiddenSelect,value:je,required:r,disabled:v,name:N,form:E,autoComplete:j,"aria-invalid":!!s,"aria-describedby":[s?H:null,o&&!s?Y:null].filter(Boolean).join(" ")||void 0,"aria-hidden":"true",tabIndex:-1,onChange:f??(()=>{}),...k,children:[i&&e.jsx("option",{value:"",disabled:r,children:i}),B.map(b=>e.jsx("option",{value:b.value,disabled:b.disabled,children:b.label},b.value))]}),e.jsx("button",{type:"button",className:et,disabled:v,role:"combobox","aria-invalid":!!s,"aria-labelledby":ge,"aria-haspopup":"listbox","aria-expanded":Z,"aria-controls":ne,onClick:()=>Z?oe(!1):Ce(),onKeyDown:tt,onFocus:b=>u==null?void 0:u(b),onBlur:b=>x==null?void 0:x(b),children:e.jsx("span",{className:`${y.valueText}${$e?"":` ${y.placeholder}`}`,children:Ze})}),e.jsx("span",{className:y.chevron,"aria-hidden":"true",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),Z&&e.jsx("ul",{id:ne,role:"listbox",className:y.menu,children:B.map((b,I)=>{const S=b.value===je,ue=I===_e;return e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":S,className:[y.option,S?y.optionSelected:"",ue?y.optionFocused:""].filter(Boolean).join(" "),disabled:b.disabled,onMouseEnter:()=>we(I),onClick:()=>{Re(b.value),oe(!1)},children:[e.jsx("span",{className:y.optionLabel,children:b.label}),e.jsx("span",{className:`${y.optionCheck}${S?` ${y.optionCheckVisible}`:""}`,"aria-hidden":"true",children:e.jsx("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M5 13l4 4L19 7"})})})]})},b.value)})})]}),s&&e.jsx("span",{id:H,className:y.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:Y,className:y.hint,children:o})]})});Ue.displayName="Select";const Un="_wrapper_iu9cq_1",Vn="_row_iu9cq_7",Xn="_checkbox_iu9cq_14",Yn="_hasError_iu9cq_51",Gn="_sm_iu9cq_60",Kn="_md_iu9cq_74",Jn="_lg_iu9cq_88",Qn="_label_iu9cq_102",Zn="_description_iu9cq_113",eo="_errorText_iu9cq_123",P={wrapper:Un,row:Vn,checkbox:Xn,hasError:Yn,sm:Gn,md:Kn,lg:Jn,label:Qn,description:Zn,errorText:eo},Ve=m.forwardRef(({label:t,description:n,error:s,size:o="md",className:r,id:a,...l},i)=>{const c=a??(t?`vui-checkbox-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),_=c?`${c}-error`:void 0,p=c&&n?`${c}-desc`:void 0,h=[P.checkbox,P[o],s?P.hasError:"",r??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${P.wrapper} ${P[o]}`,children:[e.jsxs("div",{className:P.row,children:[e.jsx("input",{ref:i,type:"checkbox",id:c,className:h,"aria-invalid":!!s,"aria-describedby":[s?_:null,p].filter(Boolean).join(" ")||void 0,...l}),t&&e.jsx("label",{htmlFor:c,className:P.label,children:t})]}),n&&!s&&e.jsx("span",{id:p,className:P.description,children:n}),s&&e.jsx("span",{id:_,className:P.errorText,role:"alert",children:s})]})});Ve.displayName="Checkbox";const to="_fieldset_nj7or_1",so="_legend_nj7or_10",no="_required_nj7or_19",oo="_group_nj7or_24",ro="_vertical_nj7or_28",ao="_horizontal_nj7or_33",io="_option_nj7or_39",lo="_radio_nj7or_46",co="_hasError_nj7or_81",_o="_sm_nj7or_86",uo="_md_nj7or_87",po="_lg_nj7or_88",ho="_optionContent_nj7or_90",mo="_optionLabel_nj7or_96",fo="_optionDescription_nj7or_107",bo="_hint_nj7or_113",xo="_errorText_nj7or_119",q={fieldset:to,legend:so,required:no,group:oo,vertical:ro,horizontal:ao,option:io,radio:lo,hasError:co,sm:_o,md:uo,lg:po,optionContent:ho,optionLabel:mo,optionDescription:fo,hint:bo,errorText:xo},go=({name:t,label:n,options:s,value:o,defaultValue:r,onChange:a,size:l="md",orientation:i="vertical",error:c,hint:_,required:p})=>{const h=`vui-radiogroup-${t}`,d=`${h}-error`,f=`${h}-hint`,x=o!==void 0;return e.jsxs("fieldset",{className:`${q.fieldset} ${q[l]}`,"aria-describedby":[c?d:null,_&&!c?f:null].filter(Boolean).join(" ")||void 0,children:[n&&e.jsxs("legend",{className:q.legend,children:[n,p&&e.jsx("span",{className:q.required,"aria-hidden":"true",children:"*"})]}),e.jsx("div",{className:`${q.group} ${q[i]}`,children:s.map(u=>{const g=`${h}-${u.value}`,v=x?{checked:o===u.value}:{defaultChecked:r===u.value};return e.jsxs("div",{className:q.option,children:[e.jsx("input",{type:"radio",id:g,name:t,value:u.value,disabled:u.disabled,required:p,onChange:()=>a==null?void 0:a(u.value),className:`${q.radio} ${c?q.hasError:""}`,"aria-invalid":c?!0:void 0,...v}),e.jsxs("div",{className:q.optionContent,children:[e.jsx("label",{htmlFor:g,className:q.optionLabel,children:u.label}),u.description&&e.jsx("span",{className:q.optionDescription,children:u.description})]})]},u.value)})}),c&&e.jsx("span",{id:d,className:q.errorText,role:"alert",children:c}),_&&!c&&e.jsx("span",{id:f,className:q.hint,children:_})]})},vo="_wrapper_okiio_1",jo="_labelRow_okiio_7",wo="_track_okiio_15",$o="_input_okiio_23",ko="_thumb_okiio_32",yo="_labelText_okiio_65",No="_sm_okiio_74",Lo="_md_okiio_80",Bo="_lg_okiio_86",Io="_description_okiio_98",G={wrapper:vo,labelRow:jo,track:wo,input:$o,thumb:ko,labelText:yo,sm:No,md:Lo,lg:Bo,description:Io},Xe=m.forwardRef(({label:t,description:n,size:s="md",className:o,id:r,...a},l)=>{const i=r??(t?`vui-switch-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),c=i&&n?`${i}-desc`:void 0;return e.jsxs("div",{className:`${G.wrapper} ${G[s]}`,children:[e.jsxs("label",{className:G.labelRow,htmlFor:i,children:[e.jsxs("span",{className:G.track,children:[e.jsx("input",{ref:l,type:"checkbox",role:"switch",id:i,className:`${G.input} ${o??""}`,"aria-describedby":c||void 0,...a}),e.jsx("span",{className:G.thumb,"aria-hidden":"true"})]}),t&&e.jsx("span",{className:G.labelText,children:t})]}),n&&e.jsx("span",{id:c,className:G.description,children:n})]})});Xe.displayName="Switch";const Co="_overlay_gedqr_1",Eo="_overlayFadeIn_gedqr_1",So="_dialog_gedqr_19",qo="_dialogSlideUp_gedqr_1",Ro="_sm_gedqr_39",Wo="_md_gedqr_40",To="_lg_gedqr_41",Do="_xl_gedqr_42",Mo="_header_gedqr_45",zo="_title_gedqr_51",Fo="_description_gedqr_59",Ao="_body_gedqr_66",Oo="_footer_gedqr_71",Ho="_closeBtn_gedqr_81",A={overlay:Co,overlayFadeIn:Eo,dialog:So,dialogSlideUp:qo,sm:Ro,md:Wo,lg:To,xl:Do,header:Mo,title:zo,description:Fo,body:Ao,footer:Oo,closeBtn:Ho},Te='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',Ye=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.header} ${n??""}`,...s,children:t});Ye.displayName="Dialog.Header";const Ge=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.body} ${n??""}`,...s,children:t});Ge.displayName="Dialog.Body";const Ke=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.footer} ${n??""}`,...s,children:t});Ke.displayName="Dialog.Footer";const De={current:0},Po=({open:t,onClose:n,title:s,description:o,size:r="md",children:a,className:l,closeOnOverlayClick:i=!0})=>{const c=m.useRef(null),_=m.useRef(`vui-dialog-title-${++De.current}`).current,p=m.useRef(`vui-dialog-desc-${De.current}`).current,h=m.useRef(null);if(m.useEffect(()=>{if(!t)return;h.current=document.activeElement,document.body.style.overflow="hidden";const x=requestAnimationFrame(()=>{var v,N;const g=(v=c.current)==null?void 0:v.querySelectorAll(Te);(N=g==null?void 0:g[0])==null||N.focus()}),u=g=>{if(g.key==="Escape"){n();return}if(g.key==="Tab"&&c.current){const v=Array.from(c.current.querySelectorAll(Te));if(v.length===0){g.preventDefault();return}const N=v[0],j=v[v.length-1];g.shiftKey?document.activeElement===N&&(j.focus(),g.preventDefault()):document.activeElement===j&&(N.focus(),g.preventDefault())}};return document.addEventListener("keydown",u),()=>{var g;cancelAnimationFrame(x),document.removeEventListener("keydown",u),document.body.style.overflow="",(g=h.current)==null||g.focus()}},[t,n]),!t)return null;const d=f=>{i&&f.target===f.currentTarget&&n()};return e.jsx("div",{className:A.overlay,onClick:d,"aria-modal":"true",role:"presentation",children:e.jsxs("div",{ref:c,role:"dialog","aria-labelledby":s?_:void 0,"aria-describedby":o?p:void 0,className:[A.dialog,A[r],l??""].filter(Boolean).join(" "),children:[s&&e.jsxs("div",{className:A.header,children:[e.jsx("p",{id:_,className:A.title,children:s}),o&&e.jsx("p",{id:p,className:A.description,children:o})]}),a,e.jsx("button",{type:"button",className:A.closeBtn,onClick:n,"aria-label":"Close dialog",children:e.jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})})},xe=Po;xe.Header=Ye;xe.Body=Ge;xe.Footer=Ke;xe.displayName="Dialog";const Uo="_wrapper_16e9w_1",Vo="_tooltip_16e9w_6",Xo="_visible_16e9w_25",Yo="_top_16e9w_30",Go="_bottom_16e9w_36",Ko="_left_16e9w_42",Jo="_right_16e9w_48",Qo="_arrow_16e9w_55",Zo="_arrowTop_16e9w_61",er="_arrowBottom_16e9w_70",tr="_arrowLeft_16e9w_79",sr="_arrowRight_16e9w_88",ae={wrapper:Uo,tooltip:Vo,visible:Xo,top:Yo,bottom:Go,left:Ko,right:Jo,arrow:Qo,arrowTop:Zo,arrowBottom:er,arrowLeft:tr,arrowRight:sr},nr=({content:t,children:n,placement:s="top",delay:o=0})=>{const[r,a]=m.useState(!1),i=`vui-tooltip-${m.useId().replace(/:/g,"")}`,c=m.useRef(null),_=()=>{o>0?c.current=setTimeout(()=>a(!0),o):a(!0)},p=()=>{c.current&&clearTimeout(c.current),a(!1)},h=m.cloneElement(n,{"aria-describedby":r?i:void 0});return e.jsxs("span",{className:ae.wrapper,onMouseEnter:_,onMouseLeave:p,onFocus:_,onBlur:p,children:[h,e.jsxs("span",{id:i,role:"tooltip",className:[ae.tooltip,ae[s],r?ae.visible:""].filter(Boolean).join(" "),"aria-hidden":!r,children:[t,e.jsx("span",{className:`${ae.arrow} ${ae[`arrow${s.charAt(0).toUpperCase()}${s.slice(1)}`]}`,"aria-hidden":"true"})]})]})},or="_tabs_16y0p_1",rr="_tablist_16y0p_8",ar="_underline_16y0p_14",ir="_tab_16y0p_1",lr="_activeTab_16y0p_39",cr="_pills_16y0p_50",dr="_boxed_16y0p_89",_r="_panel_16y0p_139",ie={tabs:or,tablist:rr,underline:ar,tab:ir,activeTab:lr,pills:cr,boxed:dr,panel:_r},ur=({items:t,defaultValue:n,value:s,onChange:o,variant:r="underline"})=>{var x;const a=s!==void 0,[l,i]=m.useState(n??((x=t[0])==null?void 0:x.value)??""),c=a?s:l,_=m.useRef(null),p=u=>{a||i(u),o==null||o(u)},h=(u,g)=>{var E;const v=t.filter(k=>!k.disabled),N=v.findIndex(k=>k.value===t[g].value);let j=null;if(u.key==="ArrowRight"?j=(N+1)%v.length:u.key==="ArrowLeft"?j=(N-1+v.length)%v.length:u.key==="Home"?j=0:u.key==="End"&&(j=v.length-1),j!==null){u.preventDefault();const k=v[j];p(k.value);const O=(E=_.current)==null?void 0:E.querySelector(`[data-value="${k.value}"]`);O==null||O.focus()}},d=u=>`vui-tabpanel-${u}`,f=u=>`vui-tab-${u}`;return e.jsxs("div",{className:ie.tabs,children:[e.jsx("div",{ref:_,role:"tablist",className:[ie.tablist,ie[r]].filter(Boolean).join(" "),children:t.map((u,g)=>e.jsx("button",{id:f(u.value),role:"tab",type:"button","data-value":u.value,"aria-selected":c===u.value,"aria-controls":d(u.value),disabled:u.disabled,tabIndex:c===u.value?0:-1,className:[ie.tab,c===u.value?ie.activeTab:""].filter(Boolean).join(" "),onClick:()=>p(u.value),onKeyDown:v=>h(v,g),children:u.label},u.value))}),t.map(u=>e.jsx("div",{id:d(u.value),role:"tabpanel","aria-labelledby":f(u.value),hidden:c!==u.value,className:ie.panel,children:u.children},u.value))]})},pr="_accordion_wacbm_1",hr="_bordered_wacbm_7",mr="_item_wacbm_13",fr="_flush_wacbm_17",br="_separated_wacbm_21",xr="_heading_wacbm_35",gr="_trigger_wacbm_40",vr="_icon_wacbm_72",jr="_open_wacbm_80",wr="_contentOuter_wacbm_85",$r="_contentInner_wacbm_95",U={accordion:pr,bordered:hr,item:mr,flush:fr,separated:br,heading:xr,trigger:gr,icon:vr,open:jr,contentOuter:wr,contentInner:$r},kr=({items:t,defaultValue:n,value:s,onChange:o,multiple:r=!1,variant:a="bordered"})=>{const l=s!==void 0,i=d=>d?Array.isArray(d)?d:[d]:[],[c,_]=m.useState(i(n)),p=l?i(s):c,h=d=>{let f;p.includes(d)?f=p.filter(x=>x!==d):f=r?[...p,d]:[d],l||_(f),o==null||o(r?f:f[0]??"")};return e.jsx("div",{className:[U.accordion,U[a]].filter(Boolean).join(" "),children:t.map(d=>{const f=p.includes(d.value),x=`vui-accordion-trigger-${d.value}`,u=`vui-accordion-panel-${d.value}`;return e.jsxs("div",{className:[U.item,f?U.open:""].filter(Boolean).join(" "),children:[e.jsx("h3",{className:U.heading,children:e.jsxs("button",{id:x,type:"button","aria-expanded":f,"aria-controls":u,disabled:d.disabled,className:U.trigger,onClick:()=>!d.disabled&&h(d.value),children:[e.jsx("span",{children:d.title}),e.jsx("span",{className:U.icon,"aria-hidden":"true",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})}),e.jsx("div",{id:u,role:"region","aria-labelledby":x,className:U.contentOuter,children:e.jsx("div",{className:U.contentInner,children:d.content})})]},d.value)})})},yr="_alert_b1vtk_1",Nr="_icon_b1vtk_12",Lr="_content_b1vtk_19",Br="_title_b1vtk_24",Ir="_body_b1vtk_31",Cr="_closeBtn_b1vtk_35",Er="_info_b1vtk_64",Sr="_success_b1vtk_70",qr="_warning_b1vtk_76",Rr="_danger_b1vtk_82",ee={alert:yr,icon:Nr,content:Lr,title:Br,body:Ir,closeBtn:Cr,info:Er,success:Sr,warning:qr,danger:Rr},Wr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),Tr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),Dr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),Mr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),zr={info:e.jsx(Wr,{}),success:e.jsx(Tr,{}),warning:e.jsx(Dr,{}),danger:e.jsx(Mr,{})},Fr=({variant:t="info",title:n,icon:s,onClose:o,children:r,className:a,...l})=>{const i=[ee.alert,ee[t],a??""].filter(Boolean).join(" "),c=s!==void 0?s:zr[t];return e.jsxs("div",{className:i,role:"alert",...l,children:[c&&e.jsx("span",{className:ee.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:ee.content,children:[n&&e.jsx("p",{className:ee.title,children:n}),e.jsx("div",{className:ee.body,children:r})]}),o&&e.jsx("button",{type:"button",className:ee.closeBtn,onClick:o,"aria-label":"Dismiss alert",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},Ar="_divider_vfae1_1",Or="_horizontal_vfae1_6",Hr="_vertical_vfae1_12",Pr="_withLabel_vfae1_19",Ur="_label_vfae1_33",Ne={divider:Ar,horizontal:Or,vertical:Hr,withLabel:Pr,label:Ur},Vr=({orientation:t="horizontal",label:n,className:s,...o})=>{const r=[Ne.divider,Ne[t],n?Ne.withLabel:"",s??""].filter(Boolean).join(" ");return e.jsx("div",{role:"separator","aria-orientation":t,className:r,...o,children:n&&e.jsx("span",{className:Ne.label,children:n})})},Xr="_spinner_1232t_1",Yr="_svg_1232t_8",Gr="_spin_1232t_1",Kr="_track_1232t_17",Jr="_arc_1232t_21",Qr="_sm_1232t_27",Zr="_md_1232t_33",ea="_lg_1232t_39",ta="_primary_1232t_46",sa="_muted_1232t_50",na="_white_1232t_54",le={spinner:Xr,svg:Yr,spin:Gr,track:Kr,arc:Jr,sm:Qr,md:Zr,lg:ea,primary:ta,muted:sa,white:na},oa=({size:t="md",color:n="primary",label:s="Loading…",className:o,...r})=>{const a=[le.spinner,le[t],le[n],o??""].filter(Boolean).join(" ");return e.jsx("span",{className:a,role:"status","aria-label":s,...r,children:e.jsxs("svg",{className:le.svg,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{className:le.track,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),e.jsx("circle",{className:le.arc,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})})},ra="_block_tuupu_1",aa="_stack_tuupu_13",Ee={block:ra,stack:aa},te=t=>{if(t!==void 0)return typeof t=="number"?`${t}px`:t},ia=({width:t,height:n,radius:s,lines:o,gap:r,className:a,style:l,...i})=>{if(o&&o>1){const c=te(r)??"0.5rem";return e.jsx("span",{className:[Ee.stack,a??""].filter(Boolean).join(" "),style:{gap:c,...l},"aria-hidden":"true",...i,children:Array.from({length:o}).map((_,p)=>{const h=p===o-1;return e.jsx("span",{className:Ee.block,style:{width:h?"75%":te(t)??"100%",height:te(n)??"1rem",borderRadius:te(s)??"var(--vui-radius-sm, 0.375rem)"}},p)})})}return e.jsx("span",{className:[Ee.block,a??""].filter(Boolean).join(" "),style:{width:te(t),height:te(n)??"1rem",borderRadius:te(s)??"var(--vui-radius-sm, 0.375rem)",...l},"aria-hidden":"true",...i})},la="_wrapper_xgu51_1",ca="_labelRow_xgu51_8",da="_label_xgu51_8",_a="_value_xgu51_20",ua="_track_xgu51_26",pa="_sm_xgu51_33",ha="_md_xgu51_34",ma="_lg_xgu51_35",fa="_bar_xgu51_37",ba="_primary_xgu51_43",xa="_success_xgu51_44",ga="_warning_xgu51_45",va="_danger_xgu51_46",K={wrapper:la,labelRow:ca,label:da,value:_a,track:ua,sm:pa,md:ha,lg:ma,bar:fa,primary:ba,success:xa,warning:ga,danger:va},ja=({value:t,variant:n="primary",size:s="md",label:o,showValue:r=!1,className:a,...l})=>{const i=Math.min(100,Math.max(0,t));return e.jsxs("div",{className:[K.wrapper,a??""].filter(Boolean).join(" "),...l,children:[(o||r)&&e.jsxs("div",{className:K.labelRow,children:[o&&e.jsx("span",{className:K.label,children:o}),r&&e.jsxs("span",{className:K.value,children:[i,"%"]})]}),e.jsx("div",{className:[K.track,K[s]].filter(Boolean).join(" "),role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o??`${i}%`,children:e.jsx("div",{className:[K.bar,K[n]].filter(Boolean).join(" "),style:{width:`${i}%`}})})]})},wa="_container_2etd3_1",$a="_toast_2etd3_14",ka="_slideUp_2etd3_1",ya="_message_2etd3_31",Na="_close_2etd3_38",La="_info_2etd3_63",Ba="_success_2etd3_69",Ia="_warning_2etd3_75",Ca="_danger_2etd3_81",fe={container:wa,toast:$a,slideUp:ka,message:ya,close:Na,info:La,success:Ba,warning:Ia,danger:Ca},Je=m.createContext(null);let Ea=0;const Sa=()=>e.jsx("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),qa=({item:t,onRemove:n})=>{const s=m.useRef(null);m.useEffect(()=>{const r=t.duration??4e3;return r>0&&(s.current=setTimeout(()=>n(t.id),r)),()=>{s.current&&clearTimeout(s.current)}},[t.id,t.duration,n]);const o=[fe.toast,fe[t.variant??"info"]].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"alert","aria-live":"assertive",children:[e.jsx("span",{className:fe.message,children:t.message}),e.jsx("button",{type:"button",className:fe.close,onClick:()=>n(t.id),"aria-label":"Dismiss notification",children:e.jsx(Sa,{})})]})},Ra=({children:t})=>{const[n,s]=m.useState([]),o=m.useCallback(a=>{const l=`toast-${++Ea}`;s(i=>[...i,{...a,id:l}])},[]),r=m.useCallback(a=>{s(l=>l.filter(i=>i.id!==a))},[]);return e.jsxs(Je.Provider,{value:{addToast:o,removeToast:r},children:[t,typeof document<"u"&&Se.createPortal(e.jsx("div",{className:fe.container,"aria-label":"Notifications",children:n.map(a=>e.jsx(qa,{item:a,onRemove:r},a.id))}),document.body)]})},Wa=()=>{const t=m.useContext(Je);if(!t)throw new Error("useToast must be used inside <ToastProvider>");return t},Ta="_avatar_1ado7_1",Da="_xs_1ado7_15",Ma="_sm_1ado7_16",za="_md_1ado7_17",Fa="_lg_1ado7_18",Aa="_xl_1ado7_19",Oa="_circle_1ado7_22",Ha="_square_1ado7_23",Pa="_img_1ado7_25",Ua="_initials_1ado7_32",Va="_fallbackIcon_1ado7_37",Xa="_status_1ado7_44",Ya="_online_1ado7_56",Ga="_away_1ado7_57",Ka="_offline_1ado7_58",J={avatar:Ta,xs:Da,sm:Ma,md:za,lg:Fa,xl:Aa,circle:Oa,square:Ha,img:Pa,initials:Ua,fallbackIcon:Va,status:Xa,online:Ya,away:Ga,offline:Ka};function Ja(t){const n=t.trim().split(/\s+/);return n.length===1?n[0].charAt(0).toUpperCase():(n[0].charAt(0)+n[n.length-1].charAt(0)).toUpperCase()}const Qa=({src:t,alt:n,name:s,size:o="md",shape:r="circle",status:a,className:l,...i})=>{const[c,_]=m.useState(!1),p=[J.avatar,J[o],J[r],l??""].filter(Boolean).join(" "),h=t&&!c,d=s?Ja(s):null;return e.jsxs("span",{className:p,"aria-label":n??s,...i,children:[h?e.jsx("img",{src:t,alt:n??s??"",className:J.img,onError:()=>_(!0)}):d?e.jsx("span",{className:J.initials,"aria-hidden":"true",children:d}):e.jsx("svg",{className:J.fallbackIcon,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"})}),a&&e.jsx("span",{className:[J.status,J[a]].filter(Boolean).join(" "),"aria-label":a})]})},Za="_tag_13w40_1",ei="_sm_13w40_14",ti="_md_13w40_19",si="_lg_13w40_24",ni="_info_13w40_36",oi="_success_13w40_42",ri="_warning_13w40_48",ai="_danger_13w40_54",ii="_primary_13w40_60",li="_label_13w40_66",ci="_icon_13w40_70",di="_close_13w40_75",ce={tag:Za,sm:ei,md:ti,lg:si,default:"_default_13w40_30",info:ni,success:oi,warning:ri,danger:ai,primary:ii,label:li,icon:ci,close:di},_i=({variant:t="default",size:n="md",onClose:s,leftIcon:o,children:r,className:a,...l})=>{const i=[ce.tag,ce[t],ce[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[o&&e.jsx("span",{className:ce.icon,"aria-hidden":"true",children:o}),e.jsx("span",{className:ce.label,children:r}),s&&e.jsx("button",{type:"button",className:ce.close,onClick:c=>{c.stopPropagation(),s()},"aria-label":"Remove",children:e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]})},ui="_root_6ieqa_1",pi="_icon_6ieqa_11",hi="_title_6ieqa_23",mi="_description_6ieqa_31",fi="_action_6ieqa_39",me={root:ui,icon:pi,title:hi,description:mi,action:fi},bi=({icon:t,title:n,description:s,action:o,className:r,...a})=>e.jsxs("div",{className:[me.root,r??""].filter(Boolean).join(" "),...a,children:[t&&e.jsx("span",{className:me.icon,"aria-hidden":"true",children:t}),e.jsx("p",{className:me.title,children:n}),s&&e.jsx("p",{className:me.description,children:s}),o&&e.jsx("div",{className:me.action,children:o})]}),xi="_nav_1s2na_1",gi="_list_1s2na_5",vi="_item_1s2na_15",ji="_separator_1s2na_20",wi="_crumb_1s2na_27",$i="_link_1s2na_33",ki="_current_1s2na_50",V={nav:xi,list:gi,item:vi,separator:ji,crumb:wi,link:$i,current:ki},yi=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18l6-6-6-6"})}),Ni=({items:t,separator:n,className:s,...o})=>{const r=n??e.jsx(yi,{});return e.jsx("nav",{"aria-label":"Breadcrumb",className:[V.nav,s??""].filter(Boolean).join(" "),...o,children:e.jsx("ol",{className:V.list,children:t.map((a,l)=>{const i=l===t.length-1;return e.jsxs("li",{className:V.item,children:[l>0&&e.jsx("span",{className:V.separator,"aria-hidden":"true",children:r}),i||!a.href?e.jsx("span",{className:[V.crumb,i?V.current:V.link].filter(Boolean).join(" "),"aria-current":i?"page":void 0,children:a.label}):e.jsx("a",{href:a.href,className:[V.crumb,V.link].filter(Boolean).join(" "),children:a.label})]},l)})})})},Li="_nav_10kny_1",Bi="_list_10kny_5",Ii="_btn_10kny_14",Ci="_disabled_10kny_32",Ei="_active_10kny_32",Si="_dots_10kny_54",R={nav:Li,list:Bi,btn:Ii,disabled:Ci,active:Ei,dots:Si};function Le(t,n){const s=n-t+1;return Array.from({length:s},(o,r)=>t+r)}function qi(t,n,s){const o=s*2+5;if(n<=o)return Le(1,n);const r=Math.max(t-s,1),a=Math.min(t+s,n),l=r>2,i=a<n-1;return!l&&i?[...Le(1,3+s*2),"...",n]:l&&!i?[1,"...",...Le(n-(2+s*2),n)]:[1,"...",...Le(r,a),"...",n]}const Ri=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 18l-6-6 6-6"})}),Wi=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18l6-6-6-6"})}),Ti=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 17l-5-5 5-5M18 17l-5-5 5-5"})}),Di=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 17l5-5-5-5M6 17l5-5-5-5"})}),Mi=({page:t,totalPages:n,onChange:s,siblingCount:o=1,showFirstLast:r=!0,className:a,...l})=>{const i=qi(t,n,o),c=_=>{_<1||_>n||_===t||s(_)};return e.jsx("nav",{"aria-label":"Pagination",className:[R.nav,a??""].filter(Boolean).join(" "),...l,children:e.jsxs("ul",{className:R.list,children:[r&&e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===1?R.disabled:""].filter(Boolean).join(" "),onClick:()=>c(1),disabled:t===1,"aria-label":"First page",children:e.jsx(Ti,{})})}),e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===1?R.disabled:""].filter(Boolean).join(" "),onClick:()=>c(t-1),disabled:t===1,"aria-label":"Previous page",children:e.jsx(Ri,{})})}),i.map((_,p)=>_==="..."?e.jsx("li",{children:e.jsx("span",{className:R.dots,children:"…"})},`dots-${p}`):e.jsx("li",{children:e.jsx("button",{className:[R.btn,_===t?R.active:""].filter(Boolean).join(" "),onClick:()=>c(_),"aria-label":`Page ${_}`,"aria-current":_===t?"page":void 0,children:_})},_)),e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===n?R.disabled:""].filter(Boolean).join(" "),onClick:()=>c(t+1),disabled:t===n,"aria-label":"Next page",children:e.jsx(Wi,{})})}),r&&e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===n?R.disabled:""].filter(Boolean).join(" "),onClick:()=>c(n),disabled:t===n,"aria-label":"Last page",children:e.jsx(Di,{})})})]})})},zi="_root_1wmfi_1",Fi="_horizontal_1wmfi_6",Ai="_vertical_1wmfi_11",Oi="_step_1wmfi_16",Hi="_connector_1wmfi_32",Pi="_indicator_1wmfi_37",Ui="_circle_1wmfi_55",Vi="_pending_1wmfi_88",Xi="_active_1wmfi_94",Yi="_completed_1wmfi_100",Gi="_content_1wmfi_111",Ki="_label_1wmfi_127",Ji="_description_1wmfi_139",W={root:zi,horizontal:Fi,vertical:Ai,step:Oi,connector:Hi,indicator:Pi,circle:Ui,pending:Vi,active:Xi,completed:Yi,content:Gi,label:Ki,description:Ji},Qi=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}),Zi=({steps:t,currentStep:n,orientation:s="horizontal",variant:o="default",className:r,...a})=>{const l=[W.root,W[s],W[o],r??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,role:"list","aria-label":"Steps",...a,children:t.map((i,c)=>{const _=c+1,p=_<n,h=_===n,d=c===t.length-1,f=[W.step,p?W.completed:"",h?W.active:"",!p&&!h?W.pending:""].filter(Boolean).join(" ");return e.jsxs("div",{className:f,role:"listitem",children:[e.jsxs("div",{className:W.indicator,children:[e.jsx("span",{className:W.circle,children:p?e.jsx(Qi,{}):e.jsx("span",{children:_})}),!d&&e.jsx("span",{className:W.connector,"aria-hidden":"true"})]}),o!=="compact"&&e.jsxs("div",{className:W.content,children:[e.jsx("span",{className:W.label,children:i.label}),i.description&&e.jsx("span",{className:W.description,children:i.description})]})]},c)})})},el="_triggerWrapper_v2cko_1",tl="_popover_v2cko_6",sl="_fadeIn_v2cko_1",nl="_arrow_v2cko_24",ol="_bottom_v2cko_34",rl="_top_v2cko_42",al="_right_v2cko_50",il="_left_v2cko_58",Be={triggerWrapper:el,popover:tl,fadeIn:sl,arrow:nl,bottom:ol,top:rl,right:al,left:il};function ll(t,n,s){const{top:o,left:r,bottom:a,right:l,width:i,height:c}=t,_=n.offsetWidth,p=n.offsetHeight,h=8;switch(s){case"top":return{top:o-p-h+window.scrollY,left:r+i/2-_/2+window.scrollX};case"bottom":return{top:a+h+window.scrollY,left:r+i/2-_/2+window.scrollX};case"left":return{top:o+c/2-p/2+window.scrollY,left:r-_-h+window.scrollX};case"right":return{top:o+c/2-p/2+window.scrollY,left:l+h+window.scrollX}}}const cl=({trigger:t,content:n,placement:s="bottom",open:o,onOpenChange:r,className:a})=>{const l=o!==void 0,[i,c]=m.useState(!1),_=l?o:i,p=m.useRef(null),h=m.useRef(null),[d,f]=m.useState({top:0,left:0}),x=m.useCallback(v=>{l||c(v),r==null||r(v)},[l,r]),u=m.useCallback(()=>{if(!p.current||!h.current)return;const v=p.current.getBoundingClientRect();f(ll(v,h.current,s))},[s]);m.useEffect(()=>{if(_)return u(),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0)}},[_,u]),m.useEffect(()=>{if(!_)return;const v=j=>{var E,k;!((E=p.current)!=null&&E.contains(j.target))&&!((k=h.current)!=null&&k.contains(j.target))&&x(!1)},N=j=>{j.key==="Escape"&&x(!1)};return document.addEventListener("mousedown",v),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",N)}},[_,x]);const g=[Be.popover,Be[s],a??""].filter(Boolean).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:p,className:Be.triggerWrapper,onClick:()=>x(!_),"aria-expanded":_,"aria-haspopup":"true",children:t}),_&&typeof document<"u"&&Se.createPortal(e.jsxs("div",{ref:h,className:g,style:{top:d.top,left:d.left},role:"dialog",children:[e.jsx("div",{className:Be.arrow,"aria-hidden":"true"}),n]}),document.body)]})},dl="_triggerWrapper_19rgz_1",_l="_menu_19rgz_6",ul="_item_19rgz_23",pl="_itemDisabled_19rgz_41",hl="_itemIcon_19rgz_56",ml="_separator_19rgz_63",de={triggerWrapper:dl,menu:_l,item:ul,itemDisabled:pl,itemIcon:hl,separator:ml};function fl(t,n,s){const{top:o,left:r,bottom:a,right:l}=t,i=n.offsetHeight,c=n.offsetWidth,_=4;switch(s){case"bottom-start":return{top:a+_+window.scrollY,left:r+window.scrollX};case"bottom-end":return{top:a+_+window.scrollY,left:l-c+window.scrollX};case"top-start":return{top:o-i-_+window.scrollY,left:r+window.scrollX};case"top-end":return{top:o-i-_+window.scrollY,left:l-c+window.scrollX};default:return{top:a+_+window.scrollY,left:r+window.scrollX}}}const bl=({trigger:t,items:n,placement:s="bottom-start",className:o})=>{const[r,a]=m.useState(!1),l=m.useRef(null),i=m.useRef(null),[c,_]=m.useState({top:0,left:0}),p=m.useCallback(()=>{if(!l.current||!i.current)return;const d=l.current.getBoundingClientRect();_(fl(d,i.current,s))},[s]);m.useEffect(()=>{if(r)return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0)}},[r,p]),m.useEffect(()=>{if(!r)return;const d=x=>{var u,g;!((u=l.current)!=null&&u.contains(x.target))&&!((g=i.current)!=null&&g.contains(x.target))&&a(!1)},f=x=>{var u;if(x.key==="Escape"){a(!1);const g=(u=l.current)==null?void 0:u.querySelector("button, a, [tabindex]");g==null||g.focus()}};return document.addEventListener("mousedown",d),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",f)}},[r]);const h=d=>{var f;d.disabled||((f=d.onClick)==null||f.call(d),a(!1))};return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:l,className:de.triggerWrapper,onClick:()=>a(d=>!d),"aria-haspopup":"menu","aria-expanded":r,children:t}),r&&typeof document<"u"&&Se.createPortal(e.jsx("div",{ref:i,className:[de.menu,o??""].filter(Boolean).join(" "),style:{top:c.top,left:c.left},role:"menu",children:n.map((d,f)=>d.separator?e.jsx("div",{className:de.separator,role:"separator"},f):e.jsxs("button",{type:"button",role:"menuitem",className:[de.item,d.disabled?de.itemDisabled:""].filter(Boolean).join(" "),onClick:()=>h(d),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:de.itemIcon,"aria-hidden":"true",children:d.icon}),e.jsx("span",{children:d.label})]},f))}),document.body)]})},xl="_wrapper_13j54_1",gl="_wrapperDisabled_13j54_8",vl="_labelRow_13j54_13",jl="_label_13j54_13",wl="_valueDisplay_13j54_25",$l="_trackWrapper_13j54_31",kl="_sm_13j54_37",yl="_md_13j54_38",Nl="_lg_13j54_39",Ll="_trackBg_13j54_41",Bl="_trackFill_13j54_51",Il="_input_13j54_61",F={wrapper:xl,wrapperDisabled:gl,labelRow:vl,label:jl,valueDisplay:wl,trackWrapper:$l,sm:kl,md:yl,lg:Nl,trackBg:Ll,trackFill:Bl,input:Il},Cl=({min:t=0,max:n=100,step:s=1,value:o,onChange:r,label:a,showValue:l=!1,size:i="md",disabled:c,className:_,id:p,...h})=>{const d=m.useId(),f=p??d,x=o!==void 0?(o-t)/(n-t)*100:0;return e.jsxs("div",{className:[F.wrapper,c?F.wrapperDisabled:"",_??""].filter(Boolean).join(" "),children:[(a||l)&&e.jsxs("div",{className:F.labelRow,children:[a&&e.jsx("label",{htmlFor:f,className:F.label,children:a}),l&&o!==void 0&&e.jsx("span",{className:F.valueDisplay,children:o})]}),e.jsxs("div",{className:[F.trackWrapper,F[i]].filter(Boolean).join(" "),children:[e.jsx("div",{className:F.trackBg}),e.jsx("div",{className:F.trackFill,style:{width:`${x}%`}}),e.jsx("input",{id:f,type:"range",min:t,max:n,step:s,value:o,disabled:c,onChange:u=>r==null?void 0:r(Number(u.target.value)),className:F.input,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,...h})]})]})},El="_root_q5j4f_1",Sl="_label_q5j4f_7",ql="_required_q5j4f_14",Rl="_wrapper_q5j4f_18",Wl="_hasError_q5j4f_33",Tl="_disabled_q5j4f_41",Dl="_sm_q5j4f_47",Ml="_md_q5j4f_48",zl="_lg_q5j4f_49",Fl="_input_q5j4f_51",Al="_stepBtn_q5j4f_72",Ol="_errorMsg_q5j4f_96",Hl="_hintMsg_q5j4f_103",D={root:El,label:Sl,required:ql,wrapper:Rl,hasError:Wl,disabled:Tl,sm:Dl,md:Ml,lg:zl,input:Fl,stepBtn:Al,errorMsg:Ol,hintMsg:Hl},Pl=({value:t,onChange:n,min:s,max:o,step:r=1,label:a,error:l,hint:i,size:c="md",disabled:_,required:p,id:h,className:d,...f})=>{const x=m.useId(),u=h??x,g=`${u}-hint`,v=`${u}-error`,N=()=>{const k=(t??0)-r;s!==void 0&&k<s||n==null||n(k)},j=()=>{const k=(t??0)+r;o!==void 0&&k>o||n==null||n(k)},E=[D.wrapper,D[c],l?D.hasError:"",_?D.disabled:"",d??""].filter(Boolean).join(" ");return e.jsxs("div",{className:D.root,children:[a&&e.jsxs("label",{htmlFor:u,className:D.label,children:[a,p&&e.jsx("span",{className:D.required,"aria-hidden":"true",children:" *"})]}),e.jsxs("div",{className:E,children:[e.jsx("button",{type:"button",className:D.stepBtn,onClick:N,disabled:_||s!==void 0&&(t??0)<=s,"aria-label":"Decrease value",tabIndex:-1,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 12h14"})})}),e.jsx("input",{id:u,type:"number",className:D.input,value:t,min:s,max:o,step:r,disabled:_,required:p,"aria-invalid":!!l,"aria-describedby":l?v:i?g:void 0,onChange:k=>n==null?void 0:n(k.target.valueAsNumber),...f}),e.jsx("button",{type:"button",className:D.stepBtn,onClick:j,disabled:_||o!==void 0&&(t??0)>=o,"aria-label":"Increase value",tabIndex:-1,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M12 5v14M5 12h14"})})})]}),l&&e.jsx("p",{id:v,className:D.errorMsg,role:"alert",children:l}),!l&&i&&e.jsx("p",{id:g,className:D.hintMsg,children:i})]})},Ul="_root_10bwd_1",Vl="_label_10bwd_7",Xl="_zone_10bwd_14",Yl="_zoneDisabled_10bwd_29",Gl="_dragging_10bwd_34",Kl="_zoneError_10bwd_39",Jl="_hiddenInput_10bwd_48",Ql="_uploadIcon_10bwd_52",Zl="_zoneText_10bwd_56",ec="_zoneLink_10bwd_61",tc="_zoneHint_10bwd_68",sc="_errorMsg_10bwd_73",nc="_fileList_10bwd_79",oc="_fileItem_10bwd_88",rc="_fileName_10bwd_98",ac="_fileSize_10bwd_108",ic="_removeBtn_10bwd_114",C={root:Ul,label:Vl,zone:Xl,zoneDisabled:Yl,dragging:Gl,zoneError:Kl,hiddenInput:Jl,uploadIcon:Ql,zoneText:Zl,zoneLink:ec,zoneHint:tc,errorMsg:sc,fileList:nc,fileItem:oc,fileName:rc,fileSize:ac,removeBtn:ic},lc=()=>e.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})});function Me(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const cc=({accept:t,multiple:n=!1,maxSize:s,onChange:o,label:r,hint:a,error:l,disabled:i=!1,className:c,id:_})=>{const p=m.useId(),h=_??p,d=m.useRef(null),[f,x]=m.useState(!1),[u,g]=m.useState([]),[v,N]=m.useState(null),j=l??v,E=w=>{if(!w)return;const $=Array.from(w);if(s&&$.filter(ne=>ne.size>s).length>0){N(`File exceeds maximum size of ${Me(s)}.`);return}N(null);const H=n?$:$.slice(0,1);g(H),o==null||o(H)},k=w=>{w.preventDefault(),x(!1),i||E(w.dataTransfer.files)},O=w=>{const $=u.filter((H,Y)=>Y!==w);g($),o==null||o($)},X=[C.zone,f?C.dragging:"",j?C.zoneError:"",i?C.zoneDisabled:""].filter(Boolean).join(" ");return e.jsxs("div",{className:[C.root,c??""].filter(Boolean).join(" "),children:[r&&e.jsx("span",{className:C.label,children:r}),e.jsxs("label",{htmlFor:h,className:X,onDragOver:w=>{w.preventDefault(),i||x(!0)},onDragLeave:()=>x(!1),onDrop:k,children:[e.jsx("input",{ref:d,id:h,type:"file",accept:t,multiple:n,disabled:i,className:C.hiddenInput,onChange:w=>E(w.target.files)}),e.jsx("span",{className:C.uploadIcon,children:e.jsx(lc,{})}),e.jsxs("span",{className:C.zoneText,children:[e.jsx("span",{className:C.zoneLink,children:"Choose files"})," or drag and drop"]}),a&&e.jsx("span",{className:C.zoneHint,children:a})]}),j&&e.jsx("p",{className:C.errorMsg,role:"alert",children:j}),u.length>0&&e.jsx("ul",{className:C.fileList,children:u.map((w,$)=>e.jsxs("li",{className:C.fileItem,children:[e.jsx("span",{className:C.fileName,children:w.name}),e.jsx("span",{className:C.fileSize,children:Me(w.size)}),e.jsx("button",{type:"button",className:C.removeBtn,onClick:()=>O($),"aria-label":`Remove ${w.name}`,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]},$))})]})},dc="_wrapper_i5kin_1",_c="_table_i5kin_8",uc="_sm_i5kin_15",pc="_th_i5kin_15",hc="_td_i5kin_16",mc="_md_i5kin_21",fc="_lg_i5kin_27",bc="_thContent_i5kin_43",xc="_sortable_i5kin_49",gc="_sortActive_i5kin_58",vc="_sortIcon_i5kin_62",jc="_tr_i5kin_72",wc="_striped_i5kin_91",$c="_bordered_i5kin_100",kc="_empty_i5kin_105",T={wrapper:dc,table:_c,sm:uc,th:pc,td:hc,md:mc,lg:fc,thContent:bc,sortable:xc,sortActive:gc,sortIcon:vc,tr:jc,striped:wc,bordered:$c,empty:kc},yc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),Nc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),Lc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l4-4 4 4M16 15l-4 4-4-4"})});function Bc({columns:t,data:n,sortKey:s,sortDir:o,onSort:r,striped:a=!1,bordered:l=!1,size:i="md",className:c,..._}){const p=d=>{if(!d.sortable||!r)return;const f=s===d.key&&o==="asc"?"desc":"asc";r(d.key,f)},h=[T.table,T[i],a?T.striped:"",l?T.bordered:""].filter(Boolean).join(" ");return e.jsx("div",{className:[T.wrapper,c??""].filter(Boolean).join(" "),..._,children:e.jsxs("table",{className:h,children:[e.jsx("thead",{children:e.jsx("tr",{children:t.map(d=>{const f=s===d.key,x=[T.th,d.sortable?T.sortable:"",f?T.sortActive:""].filter(Boolean).join(" ");return e.jsx("th",{className:x,onClick:()=>p(d),"aria-sort":f?o==="asc"?"ascending":"descending":d.sortable?"none":void 0,children:e.jsxs("span",{className:T.thContent,children:[d.header,d.sortable&&e.jsx("span",{className:T.sortIcon,children:f?o==="asc"?e.jsx(yc,{}):e.jsx(Nc,{}):e.jsx(Lc,{})})]})},d.key)})})}),e.jsx("tbody",{children:n.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length,className:T.empty,children:"No data available."})}):n.map((d,f)=>e.jsx("tr",{className:T.tr,children:t.map(x=>{const u=d[x.key],g=x.render?x.render(u,d,f):u;return e.jsx("td",{className:T.td,children:g},x.key)})},f))})]})})}exports.Accordion=kr;exports.Alert=Fr;exports.AnimatedBackground=Ts;exports.Avatar=Qa;exports.Badge=fs;exports.Breadcrumb=Ni;exports.Button=ze;exports.Card=be;exports.Checkbox=Ve;exports.Dialog=xe;exports.Divider=Vr;exports.Dropdown=bl;exports.EmptyState=bi;exports.FileUpload=cc;exports.GradientOrbs=Xs;exports.GridGlow=tn;exports.Input=Fe;exports.NumberInput=Pl;exports.Pagination=Mi;exports.Popover=cl;exports.Progress=ja;exports.RadioGroup=go;exports.Select=Ue;exports.Skeleton=ia;exports.Slider=Cl;exports.Spinner=oa;exports.Stepper=Zi;exports.Switch=Xe;exports.Table=Bc;exports.Tabs=ur;exports.Tag=_i;exports.Textarea=Pe;exports.Title=rs;exports.ToastProvider=Ra;exports.Tooltip=nr;exports.useToast=Wa;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),Ee=require("react-dom"),st="_button_16l0b_1",nt="_loading_16l0b_34",ot="_sm_16l0b_41",rt="_md_16l0b_47",at="_lg_16l0b_53",it="_primary_16l0b_60",lt="_secondary_16l0b_73",ct="_outline_16l0b_86",dt="_ghost_16l0b_98",_t="_danger_16l0b_109",ut="_fullWidth_16l0b_122",pt="_pulse_16l0b_126",ht="_buttonPulse_16l0b_1",mt="_shine_16l0b_130",ft="_buttonShine_16l0b_1",bt="_spinner_16l0b_145",xt="_spin_16l0b_145",ee={button:st,loading:nt,sm:ot,md:rt,lg:at,primary:it,secondary:lt,outline:ct,ghost:dt,danger:_t,fullWidth:ut,pulse:pt,buttonPulse:ht,shine:mt,buttonShine:ft,spinner:bt,spin:xt},ze=f.forwardRef(({variant:t="primary",size:n="md",animation:s="none",loading:o=!1,fullWidth:r=!1,leftIcon:a,rightIcon:c,children:i,className:l,disabled:_,...p},h)=>{const d=[ee.button,ee[t],ee[n],s!=="none"?ee[s]:"",r?ee.fullWidth:"",o?ee.loading:"",l??""].filter(Boolean).join(" ");return e.jsxs("button",{ref:h,className:d,disabled:_||o,"aria-busy":o,...p,children:[o&&e.jsx("span",{className:ee.spinner,"aria-hidden":"true"}),!o&&a&&e.jsx("span",{"aria-hidden":"true",children:a}),i,!o&&c&&e.jsx("span",{"aria-hidden":"true",children:c})]})});ze.displayName="Button";const gt="_wrapper_1r7em_1",vt="_label_1r7em_8",jt="_required_1r7em_15",wt="_inputWrapper_1r7em_20",$t="_input_1r7em_20",kt="_error_1r7em_55",yt="_sm_1r7em_64",Nt="_md_1r7em_70",Lt="_lg_1r7em_76",Bt="_hasLeft_1r7em_83",It="_hasRight_1r7em_87",St="_iconLeft_1r7em_91",Ct="_iconRight_1r7em_92",Et="_hint_1r7em_111",qt="_errorText_1r7em_117",Rt="_floatingWrapper_1r7em_125",Wt="_inputFloating_1r7em_130",Tt="_floatingLabelEl_1r7em_149",Dt="_floatingLabelSm_1r7em_165",Mt="_floatingLabelMd_1r7em_166",zt="_floatingLabelLg_1r7em_167",Ft="_floatingLabelWithLeft_1r7em_170",At="_floatingLabelError_1r7em_190",L={wrapper:gt,label:vt,required:jt,inputWrapper:wt,input:$t,error:kt,sm:yt,md:Nt,lg:Lt,hasLeft:Bt,hasRight:It,iconLeft:St,iconRight:Ct,hint:Et,errorText:qt,floatingWrapper:Rt,inputFloating:Wt,floatingLabelEl:Tt,floatingLabelSm:Dt,floatingLabelMd:Mt,floatingLabelLg:zt,floatingLabelWithLeft:Ft,floatingLabelError:At},Pt=()=>e.jsx("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),Fe=f.forwardRef(({label:t,size:n="md",error:s,hint:o,leftIcon:r,rightIcon:a,search:c=!1,searchIcon:i,searchIconPosition:l="left",leftIconClassName:_,rightIconClassName:p,required:h,fullWidth:d,floatingLabel:m,className:x,id:u,placeholder:g,...v},N)=>{const j=u??(t?`vui-input-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),C=j?`${j}-error`:void 0,k=j?`${j}-hint`:void 0,P=c||!!i,Y=i??e.jsx(Pt,{});let w=r,$=a,O=!1,G=!1;P&&(l==="right"?$||($=Y,G=!0):w||(w=Y,O=!0));const oe=[L.input,L[n],m?L.inputFloating:"",s?L.error:"",w?L.hasLeft:"",$?L.hasRight:"",x??""].filter(Boolean).join(" "),ve=[L.floatingLabelEl,L[`floatingLabel${n.charAt(0).toUpperCase()+n.slice(1)}`],w?L.floatingLabelWithLeft:"",s?L.floatingLabelError:""].filter(Boolean).join(" ");return e.jsxs("div",{className:L.wrapper,children:[t&&!m&&e.jsxs("label",{htmlFor:j,className:L.label,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:`${L.inputWrapper}${m?` ${L.floatingWrapper}`:""}`,children:[w&&e.jsx("span",{className:[L.iconLeft,_??""].filter(Boolean).join(" "),"data-slot":"left-icon","data-search-icon":O?"true":void 0,"aria-hidden":"true",children:w}),e.jsx("input",{ref:N,id:j,className:oe,required:h,"aria-invalid":!!s,"aria-describedby":[s?C:null,o?k:null].filter(Boolean).join(" ")||void 0,placeholder:m?" ":g,...v}),t&&m&&e.jsxs("label",{htmlFor:j,className:ve,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),$&&e.jsx("span",{className:[L.iconRight,p??""].filter(Boolean).join(" "),"data-slot":"right-icon","data-search-icon":G?"true":void 0,"aria-hidden":"true",children:$})]}),s&&e.jsx("span",{id:C,className:L.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:k,className:L.hint,children:o})]})});Fe.displayName="Input";const Ot="_title_1np0f_1",Ht="_xs_1np0f_9",Ut="_sm_1np0f_14",Vt="_md_1np0f_19",Xt="_lg_1np0f_24",Yt="_xl_1np0f_29",Gt="_xxl_1np0f_34",Kt="_light_1np0f_40",Jt="_normal_1np0f_44",Qt="_medium_1np0f_48",Zt="_semibold_1np0f_52",es="_bold_1np0f_56",ts="_extrabold_1np0f_60",ss="_left_1np0f_65",ns="_center_1np0f_69",os="_right_1np0f_73",rs="_muted_1np0f_82",as="_primary_1np0f_86",is="_gradient_1np0f_90",pe={title:Ot,xs:Ht,sm:Ut,md:Vt,lg:Xt,xl:Yt,xxl:Gt,light:Kt,normal:Jt,medium:Qt,semibold:Zt,bold:es,extrabold:ts,left:ss,center:ns,right:os,default:"_default_1np0f_78",muted:rs,primary:as,gradient:is},ls={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},cs=({as:t,level:n="h1",size:s,weight:o="bold",align:r="left",color:a="default",children:c,className:i,...l})=>{const _=t??n,p=s??ls[_],h=[pe.title,pe[p],pe[o],pe[r],pe[a],i??""].filter(Boolean).join(" ");return f.createElement(_,{className:h,...l},c)},ds="_badge_1d51m_1",_s="_sm_1d51m_24",us="_md_1d51m_29",ps="_lg_1d51m_34",hs="_info_1d51m_46",ms="_success_1d51m_52",fs="_warning_1d51m_58",bs="_danger_1d51m_64",xs="_primary_1d51m_70",gs="_dot_1d51m_77",vs="_pulse_1d51m_85",js="_badgePulse_1d51m_1",ws="_badgeDotPulse_1d51m_1",$s="_shine_1d51m_93",ks="_badgeShine_1d51m_1",he={badge:ds,sm:_s,md:us,lg:ps,default:"_default_1d51m_40",info:hs,success:ms,warning:fs,danger:bs,primary:xs,dot:gs,pulse:vs,badgePulse:js,badgeDotPulse:ws,shine:$s,badgeShine:ks},ys=({variant:t="default",size:n="md",animation:s="none",dot:o=!1,leftIcon:r,children:a,className:c,...i})=>{const l=[he.badge,he[t],he[n],s!=="none"?he[s]:"",c??""].filter(Boolean).join(" ");return e.jsxs("span",{className:l,...i,children:[o&&e.jsx("span",{className:he.dot,"aria-hidden":"true"}),!o&&r&&e.jsx("span",{"aria-hidden":"true",children:r}),a]})},Ns="_card_1q61w_1",Ls="_bordered_1q61w_11",Bs="_shadow_1q61w_15",Is="_elevated_1q61w_19",Ss="_ghost_1q61w_23",Cs="_sm_1q61w_29",Es="_cardHeader_1q61w_29",qs="_cardBody_1q61w_30",Rs="_cardFooter_1q61w_31",Ws="_md_1q61w_35",Ts="_lg_1q61w_41",Ds="_hoverable_1q61w_72",ne={card:Ns,bordered:Ls,shadow:Bs,elevated:Is,ghost:Ss,sm:Cs,cardHeader:Es,cardBody:qs,cardFooter:Rs,md:Ws,lg:Ts,hoverable:Ds},Ae=({children:t,className:n,...s})=>e.jsx("div",{className:`${ne.cardHeader} ${n??""}`,...s,children:t});Ae.displayName="Card.Header";const Pe=({children:t,className:n,...s})=>e.jsx("div",{className:`${ne.cardBody} ${n??""}`,...s,children:t});Pe.displayName="Card.Body";const Oe=({children:t,className:n,...s})=>e.jsx("div",{className:`${ne.cardFooter} ${n??""}`,...s,children:t});Oe.displayName="Card.Footer";const Ms=({variant:t="bordered",size:n="md",hoverable:s=!1,children:o,className:r,...a})=>{const c=[ne.card,ne[t],ne[n],s?ne.hoverable:"",r??""].filter(Boolean).join(" ");return e.jsx("div",{className:c,...a,children:o})},xe=Ms;xe.Header=Ae;xe.Body=Pe;xe.Footer=Oe;xe.displayName="Card";const zs="_root_y54b0_1",Fs="_background_y54b0_12",As="_interactive_y54b0_19",Ps="_content_y54b0_23",ye={root:zs,background:Fs,interactive:As,content:Ps},Os={subtle:{"--vui-ambient-opacity":"0.62","--vui-ambient-blur":"88px","--vui-ambient-scale":"0.92"},medium:{"--vui-ambient-opacity":"0.82","--vui-ambient-blur":"112px","--vui-ambient-scale":"1"},vivid:{"--vui-ambient-opacity":"1","--vui-ambient-blur":"136px","--vui-ambient-scale":"1.08"}},Hs={slow:{"--vui-ambient-duration":"24s","--vui-ambient-speed-multiplier":"0.72"},medium:{"--vui-ambient-duration":"18s","--vui-ambient-speed-multiplier":"1"},fast:{"--vui-ambient-duration":"13s","--vui-ambient-speed-multiplier":"1.25"}},Us=({background:t,contentClassName:n,intensity:s="medium",speed:o="medium",interactive:r=!1,className:a,style:c,children:i,...l})=>{const _=[ye.root,r?ye.interactive:"",a??""].filter(Boolean).join(" "),p=[ye.content,n??""].filter(Boolean).join(" "),h={...Os[s],...Hs[o],...c};return e.jsxs("div",{className:_,style:h,...l,children:[t?e.jsx("div",{className:ye.background,children:t}):null,e.jsx("div",{className:p,children:i})]})},Vs="_root_1h0b6_1",Xs="_orb_1h0b6_8",Ys="_floatOrb_1h0b6_1",Gs="_primary_1h0b6_19",Ks="_secondary_1h0b6_25",Js="_accent_1h0b6_33",Qs="_highlight_1h0b6_40",Zs="_hero_1h0b6_48",en="_diagonal_1h0b6_68",tn="_spotlight_1h0b6_88",z={root:Vs,orb:Xs,floatOrb:Ys,primary:Gs,secondary:Ks,accent:Js,highlight:Qs,hero:Zs,diagonal:en,spotlight:tn},sn=({variant:t="hero",className:n,...s})=>{const o=[z.root,z[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:`${z.orb} ${z.primary}`}),e.jsx("span",{className:`${z.orb} ${z.secondary}`}),e.jsx("span",{className:`${z.orb} ${z.accent}`}),e.jsx("span",{className:`${z.orb} ${z.highlight}`})]})},nn="_root_3f8d1_1",on="_grid_3f8d1_9",rn="_glow_3f8d1_10",an="_beam_3f8d1_11",ln="_sweepBeam_3f8d1_1",cn="_spotlight_3f8d1_49",dn="_panel_3f8d1_57",me={root:nn,grid:on,glow:rn,beam:an,sweepBeam:ln,default:"_default_3f8d1_45",spotlight:cn,panel:dn},_n=({variant:t="default",className:n,...s})=>{const o=[me.root,me[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:me.grid}),e.jsx("span",{className:me.glow}),e.jsx("span",{className:me.beam})]})},un="_wrapper_1xu0d_1",pn="_wrapperFullWidth_1xu0d_7",hn="_label_1xu0d_11",mn="_required_1xu0d_18",fn="_textarea_1xu0d_23",bn="_hasError_1xu0d_53",xn="_sm_1xu0d_62",gn="_md_1xu0d_67",vn="_lg_1xu0d_72",jn="_none_1xu0d_78",wn="_vertical_1xu0d_82",$n="_horizontal_1xu0d_86",kn="_both_1xu0d_90",yn="_fullWidth_1xu0d_94",Nn="_hint_1xu0d_98",Ln="_errorText_1xu0d_104",M={wrapper:un,wrapperFullWidth:pn,label:hn,required:mn,textarea:fn,hasError:bn,sm:xn,md:gn,lg:vn,none:jn,vertical:wn,horizontal:$n,both:kn,fullWidth:yn,hint:Nn,errorText:Ln},He=f.forwardRef(({label:t,size:n="md",error:s,hint:o,required:r,fullWidth:a=!1,resize:c="vertical",className:i,id:l,..._},p)=>{const h=l??(t?`vui-textarea-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),d=h?`${h}-error`:void 0,m=h?`${h}-hint`:void 0,x=[M.textarea,M[n],M[c],s?M.hasError:"",a?M.fullWidth:"",i??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${M.wrapper}${a?` ${M.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{htmlFor:h,className:M.label,children:[t,r&&e.jsx("span",{className:M.required,"aria-hidden":"true",children:"*"})]}),e.jsx("textarea",{ref:p,id:h,className:x,required:r,"aria-invalid":!!s,"aria-describedby":[s?d:null,o&&!s?m:null].filter(Boolean).join(" ")||void 0,..._}),s&&e.jsx("span",{id:d,className:M.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:m,className:M.hint,children:o})]})});He.displayName="Textarea";const Bn="_wrapper_1cpn4_1",In="_wrapperFullWidth_1cpn4_7",Sn="_label_1cpn4_11",Cn="_required_1cpn4_18",En="_selectWrapper_1cpn4_23",qn="_hiddenSelect_1cpn4_46",Rn="_trigger_1cpn4_53",Wn="_hasError_1cpn4_103",Tn="_sm_1cpn4_114",Dn="_md_1cpn4_120",Mn="_lg_1cpn4_126",zn="_fullWidth_1cpn4_132",Fn="_valueText_1cpn4_136",An="_placeholder_1cpn4_144",Pn="_chevron_1cpn4_148",On="_isOpen_1cpn4_180",Hn="_menu_1cpn4_184",Un="_option_1cpn4_203",Vn="_optionFocused_1cpn4_222",Xn="_optionSelected_1cpn4_229",Yn="_optionLabel_1cpn4_238",Gn="_optionCheck_1cpn4_243",Kn="_optionCheckVisible_1cpn4_250",Jn="_hint_1cpn4_260",Qn="_errorText_1cpn4_266",y={wrapper:Bn,wrapperFullWidth:In,label:Sn,required:Cn,selectWrapper:En,hiddenSelect:qn,trigger:Rn,hasError:Wn,sm:Tn,md:Dn,lg:Mn,fullWidth:zn,valueText:Fn,placeholder:An,chevron:Pn,isOpen:On,menu:Hn,option:Un,optionFocused:Vn,optionSelected:Xn,optionLabel:Yn,optionCheck:Gn,optionCheckVisible:Kn,hint:Jn,errorText:Qn};function Zn(t){return f.Children.toArray(t).flatMap(n=>{if(!f.isValidElement(n)||n.type!=="option")return[];const s=n.props.value,o=typeof n.props.children=="string"?n.props.children:String(s??"");return s==null?[]:[{value:String(s),label:o,disabled:!!n.props.disabled}]})}const Ue=f.forwardRef(({label:t,size:n="md",error:s,hint:o,required:r,fullWidth:a=!1,options:c,placeholder:i,className:l,id:_,children:p,value:h,defaultValue:d,onChange:m,onBlur:x,onFocus:u,onKeyDown:g,disabled:v,name:N,autoComplete:j,form:C,...k},P)=>{const Y=f.useRef(null),w=f.useRef(null);f.useImperativeHandle(P,()=>Y.current);const $=_??(t?`vui-select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),O=$?`${$}-error`:void 0,G=$?`${$}-hint`:void 0,oe=$?`${$}-listbox`:void 0,ve=$?`${$}-label`:void 0,B=f.useMemo(()=>c||Zn(p),[p,c]),je=h!==void 0,Q=B.find(b=>!b.disabled),Qe=String(d??(i?"":(Q==null?void 0:Q.value)??"")),[Ie,qe]=f.useState(Qe),we=String(je?h??"":Ie),[Z,re]=f.useState(!1),[_e,$e]=f.useState(-1);f.useEffect(()=>{if(je||!B.length)return;B.some(I=>I.value===Ie)||qe((Q==null?void 0:Q.value)??"")},[B,je,Ie,Q]),f.useEffect(()=>{const b=I=>{w.current&&!w.current.contains(I.target)&&re(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const ke=B.find(b=>b.value===we),Ze=(ke==null?void 0:ke.label)??i??"",et=[y.trigger,y[n],s?y.hasError:"",a?y.fullWidth:"",Z?y.isOpen:"",l??""].filter(Boolean).join(" "),Re=b=>{var E;je||qe(b);const I=Y.current;if(I){const ue=(E=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:E.set;ue==null||ue.call(I,b),I.dispatchEvent(new Event("change",{bubbles:!0}))}},Se=()=>{if(v||!B.length)return;re(!0);const b=B.findIndex(E=>E.value===we&&!E.disabled);if(b>=0){$e(b);return}const I=B.findIndex(E=>!E.disabled);$e(I)},We=b=>{if(!B.length)return;let I=_e;for(let E=0;E<B.length;E+=1)if(I=(I+b+B.length)%B.length,!B[I].disabled){$e(I);return}},tt=b=>{if(g==null||g(b),!b.defaultPrevented){if(!Z&&(b.key==="ArrowDown"||b.key==="ArrowUp")){b.preventDefault(),Se();return}if(!Z&&(b.key==="Enter"||b.key===" ")){b.preventDefault(),Se();return}if(Z){if(b.key==="Escape"){b.preventDefault(),re(!1);return}if(b.key==="ArrowDown"){b.preventDefault(),We(1);return}if(b.key==="ArrowUp"){b.preventDefault(),We(-1);return}(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),_e>=0&&!B[_e].disabled&&(Re(B[_e].value),re(!1)))}}};return e.jsxs("div",{className:`${y.wrapper}${a?` ${y.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{id:ve,className:y.label,children:[t,r&&e.jsx("span",{className:y.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:y.selectWrapper,ref:w,children:[e.jsxs("select",{ref:Y,id:$,className:y.hiddenSelect,value:we,required:r,disabled:v,name:N,form:C,autoComplete:j,"aria-invalid":!!s,"aria-describedby":[s?O:null,o&&!s?G:null].filter(Boolean).join(" ")||void 0,"aria-hidden":"true",tabIndex:-1,onChange:m??(()=>{}),...k,children:[i&&e.jsx("option",{value:"",disabled:r,children:i}),B.map(b=>e.jsx("option",{value:b.value,disabled:b.disabled,children:b.label},b.value))]}),e.jsx("button",{type:"button",className:et,disabled:v,role:"combobox","aria-invalid":!!s,"aria-labelledby":ve,"aria-haspopup":"listbox","aria-expanded":Z,"aria-controls":oe,onClick:()=>Z?re(!1):Se(),onKeyDown:tt,onFocus:b=>u==null?void 0:u(b),onBlur:b=>x==null?void 0:x(b),children:e.jsx("span",{className:`${y.valueText}${ke?"":` ${y.placeholder}`}`,children:Ze})}),e.jsx("span",{className:y.chevron,"aria-hidden":"true",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),Z&&e.jsx("ul",{id:oe,role:"listbox",className:y.menu,children:B.map((b,I)=>{const E=b.value===we,ue=I===_e;return e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":E,className:[y.option,E?y.optionSelected:"",ue?y.optionFocused:""].filter(Boolean).join(" "),disabled:b.disabled,onMouseEnter:()=>$e(I),onClick:()=>{Re(b.value),re(!1)},children:[e.jsx("span",{className:y.optionLabel,children:b.label}),e.jsx("span",{className:`${y.optionCheck}${E?` ${y.optionCheckVisible}`:""}`,"aria-hidden":"true",children:e.jsx("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M5 13l4 4L19 7"})})})]})},b.value)})})]}),s&&e.jsx("span",{id:O,className:y.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:G,className:y.hint,children:o})]})});Ue.displayName="Select";const eo="_wrapper_iu9cq_1",to="_row_iu9cq_7",so="_checkbox_iu9cq_14",no="_hasError_iu9cq_51",oo="_sm_iu9cq_60",ro="_md_iu9cq_74",ao="_lg_iu9cq_88",io="_label_iu9cq_102",lo="_description_iu9cq_113",co="_errorText_iu9cq_123",H={wrapper:eo,row:to,checkbox:so,hasError:no,sm:oo,md:ro,lg:ao,label:io,description:lo,errorText:co},Ve=f.forwardRef(({label:t,description:n,error:s,size:o="md",className:r,id:a,...c},i)=>{const l=a??(t?`vui-checkbox-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),_=l?`${l}-error`:void 0,p=l&&n?`${l}-desc`:void 0,h=[H.checkbox,H[o],s?H.hasError:"",r??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${H.wrapper} ${H[o]}`,children:[e.jsxs("div",{className:H.row,children:[e.jsx("input",{ref:i,type:"checkbox",id:l,className:h,"aria-invalid":!!s,"aria-describedby":[s?_:null,p].filter(Boolean).join(" ")||void 0,...c}),t&&e.jsx("label",{htmlFor:l,className:H.label,children:t})]}),n&&!s&&e.jsx("span",{id:p,className:H.description,children:n}),s&&e.jsx("span",{id:_,className:H.errorText,role:"alert",children:s})]})});Ve.displayName="Checkbox";const _o="_fieldset_nj7or_1",uo="_legend_nj7or_10",po="_required_nj7or_19",ho="_group_nj7or_24",mo="_vertical_nj7or_28",fo="_horizontal_nj7or_33",bo="_option_nj7or_39",xo="_radio_nj7or_46",go="_hasError_nj7or_81",vo="_sm_nj7or_86",jo="_md_nj7or_87",wo="_lg_nj7or_88",$o="_optionContent_nj7or_90",ko="_optionLabel_nj7or_96",yo="_optionDescription_nj7or_107",No="_hint_nj7or_113",Lo="_errorText_nj7or_119",q={fieldset:_o,legend:uo,required:po,group:ho,vertical:mo,horizontal:fo,option:bo,radio:xo,hasError:go,sm:vo,md:jo,lg:wo,optionContent:$o,optionLabel:ko,optionDescription:yo,hint:No,errorText:Lo},Bo=({name:t,label:n,options:s,value:o,defaultValue:r,onChange:a,size:c="md",orientation:i="vertical",error:l,hint:_,required:p})=>{const h=`vui-radiogroup-${t}`,d=`${h}-error`,m=`${h}-hint`,x=o!==void 0;return e.jsxs("fieldset",{className:`${q.fieldset} ${q[c]}`,"aria-describedby":[l?d:null,_&&!l?m:null].filter(Boolean).join(" ")||void 0,children:[n&&e.jsxs("legend",{className:q.legend,children:[n,p&&e.jsx("span",{className:q.required,"aria-hidden":"true",children:"*"})]}),e.jsx("div",{className:`${q.group} ${q[i]}`,children:s.map(u=>{const g=`${h}-${u.value}`,v=x?{checked:o===u.value}:{defaultChecked:r===u.value};return e.jsxs("div",{className:q.option,children:[e.jsx("input",{type:"radio",id:g,name:t,value:u.value,disabled:u.disabled,required:p,onChange:()=>a==null?void 0:a(u.value),className:`${q.radio} ${l?q.hasError:""}`,"aria-invalid":l?!0:void 0,...v}),e.jsxs("div",{className:q.optionContent,children:[e.jsx("label",{htmlFor:g,className:q.optionLabel,children:u.label}),u.description&&e.jsx("span",{className:q.optionDescription,children:u.description})]})]},u.value)})}),l&&e.jsx("span",{id:d,className:q.errorText,role:"alert",children:l}),_&&!l&&e.jsx("span",{id:m,className:q.hint,children:_})]})},Io="_wrapper_okiio_1",So="_labelRow_okiio_7",Co="_track_okiio_15",Eo="_input_okiio_23",qo="_thumb_okiio_32",Ro="_labelText_okiio_65",Wo="_sm_okiio_74",To="_md_okiio_80",Do="_lg_okiio_86",Mo="_description_okiio_98",K={wrapper:Io,labelRow:So,track:Co,input:Eo,thumb:qo,labelText:Ro,sm:Wo,md:To,lg:Do,description:Mo},Xe=f.forwardRef(({label:t,description:n,size:s="md",className:o,id:r,...a},c)=>{const i=r??(t?`vui-switch-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),l=i&&n?`${i}-desc`:void 0;return e.jsxs("div",{className:`${K.wrapper} ${K[s]}`,children:[e.jsxs("label",{className:K.labelRow,htmlFor:i,children:[e.jsxs("span",{className:K.track,children:[e.jsx("input",{ref:c,type:"checkbox",role:"switch",id:i,className:`${K.input} ${o??""}`,"aria-describedby":l||void 0,...a}),e.jsx("span",{className:K.thumb,"aria-hidden":"true"})]}),t&&e.jsx("span",{className:K.labelText,children:t})]}),n&&e.jsx("span",{id:l,className:K.description,children:n})]})});Xe.displayName="Switch";const zo="_overlay_gedqr_1",Fo="_overlayFadeIn_gedqr_1",Ao="_dialog_gedqr_19",Po="_dialogSlideUp_gedqr_1",Oo="_sm_gedqr_39",Ho="_md_gedqr_40",Uo="_lg_gedqr_41",Vo="_xl_gedqr_42",Xo="_header_gedqr_45",Yo="_title_gedqr_51",Go="_description_gedqr_59",Ko="_body_gedqr_66",Jo="_footer_gedqr_71",Qo="_closeBtn_gedqr_81",A={overlay:zo,overlayFadeIn:Fo,dialog:Ao,dialogSlideUp:Po,sm:Oo,md:Ho,lg:Uo,xl:Vo,header:Xo,title:Yo,description:Go,body:Ko,footer:Jo,closeBtn:Qo},Te='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',Ye=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.header} ${n??""}`,...s,children:t});Ye.displayName="Dialog.Header";const Ge=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.body} ${n??""}`,...s,children:t});Ge.displayName="Dialog.Body";const Ke=({children:t,className:n,...s})=>e.jsx("div",{className:`${A.footer} ${n??""}`,...s,children:t});Ke.displayName="Dialog.Footer";const De={current:0},Zo=({open:t,onClose:n,title:s,description:o,size:r="md",children:a,className:c,closeOnOverlayClick:i=!0})=>{const l=f.useRef(null),_=f.useRef(`vui-dialog-title-${++De.current}`).current,p=f.useRef(`vui-dialog-desc-${De.current}`).current,h=f.useRef(null);if(f.useEffect(()=>{if(!t)return;h.current=document.activeElement,document.body.style.overflow="hidden";const x=requestAnimationFrame(()=>{var v,N;const g=(v=l.current)==null?void 0:v.querySelectorAll(Te);(N=g==null?void 0:g[0])==null||N.focus()}),u=g=>{if(g.key==="Escape"){n();return}if(g.key==="Tab"&&l.current){const v=Array.from(l.current.querySelectorAll(Te));if(v.length===0){g.preventDefault();return}const N=v[0],j=v[v.length-1];g.shiftKey?document.activeElement===N&&(j.focus(),g.preventDefault()):document.activeElement===j&&(N.focus(),g.preventDefault())}};return document.addEventListener("keydown",u),()=>{var g;cancelAnimationFrame(x),document.removeEventListener("keydown",u),document.body.style.overflow="",(g=h.current)==null||g.focus()}},[t,n]),!t)return null;const d=m=>{i&&m.target===m.currentTarget&&n()};return e.jsx("div",{className:A.overlay,onClick:d,"aria-modal":"true",role:"presentation",children:e.jsxs("div",{ref:l,role:"dialog","aria-labelledby":s?_:void 0,"aria-describedby":o?p:void 0,className:[A.dialog,A[r],c??""].filter(Boolean).join(" "),children:[s&&e.jsxs("div",{className:A.header,children:[e.jsx("p",{id:_,className:A.title,children:s}),o&&e.jsx("p",{id:p,className:A.description,children:o})]}),a,e.jsx("button",{type:"button",className:A.closeBtn,onClick:n,"aria-label":"Close dialog",children:e.jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})})},ge=Zo;ge.Header=Ye;ge.Body=Ge;ge.Footer=Ke;ge.displayName="Dialog";const er="_wrapper_16e9w_1",tr="_tooltip_16e9w_6",sr="_visible_16e9w_25",nr="_top_16e9w_30",or="_bottom_16e9w_36",rr="_left_16e9w_42",ar="_right_16e9w_48",ir="_arrow_16e9w_55",lr="_arrowTop_16e9w_61",cr="_arrowBottom_16e9w_70",dr="_arrowLeft_16e9w_79",_r="_arrowRight_16e9w_88",ae={wrapper:er,tooltip:tr,visible:sr,top:nr,bottom:or,left:rr,right:ar,arrow:ir,arrowTop:lr,arrowBottom:cr,arrowLeft:dr,arrowRight:_r},ur=({content:t,children:n,placement:s="top",delay:o=0})=>{const[r,a]=f.useState(!1),i=`vui-tooltip-${f.useId().replace(/:/g,"")}`,l=f.useRef(null),_=()=>{o>0?l.current=setTimeout(()=>a(!0),o):a(!0)},p=()=>{l.current&&clearTimeout(l.current),a(!1)},h=f.cloneElement(n,{"aria-describedby":r?i:void 0});return e.jsxs("span",{className:ae.wrapper,onMouseEnter:_,onMouseLeave:p,onFocus:_,onBlur:p,children:[h,e.jsxs("span",{id:i,role:"tooltip",className:[ae.tooltip,ae[s],r?ae.visible:""].filter(Boolean).join(" "),"aria-hidden":!r,children:[t,e.jsx("span",{className:`${ae.arrow} ${ae[`arrow${s.charAt(0).toUpperCase()}${s.slice(1)}`]}`,"aria-hidden":"true"})]})]})},pr="_tabs_16y0p_1",hr="_tablist_16y0p_8",mr="_underline_16y0p_14",fr="_tab_16y0p_1",br="_activeTab_16y0p_39",xr="_pills_16y0p_50",gr="_boxed_16y0p_89",vr="_panel_16y0p_139",ie={tabs:pr,tablist:hr,underline:mr,tab:fr,activeTab:br,pills:xr,boxed:gr,panel:vr},jr=({items:t,defaultValue:n,value:s,onChange:o,variant:r="underline"})=>{var x;const a=s!==void 0,[c,i]=f.useState(n??((x=t[0])==null?void 0:x.value)??""),l=a?s:c,_=f.useRef(null),p=u=>{a||i(u),o==null||o(u)},h=(u,g)=>{var C;const v=t.filter(k=>!k.disabled),N=v.findIndex(k=>k.value===t[g].value);let j=null;if(u.key==="ArrowRight"?j=(N+1)%v.length:u.key==="ArrowLeft"?j=(N-1+v.length)%v.length:u.key==="Home"?j=0:u.key==="End"&&(j=v.length-1),j!==null){u.preventDefault();const k=v[j];p(k.value);const P=(C=_.current)==null?void 0:C.querySelector(`[data-value="${k.value}"]`);P==null||P.focus()}},d=u=>`vui-tabpanel-${u}`,m=u=>`vui-tab-${u}`;return e.jsxs("div",{className:ie.tabs,children:[e.jsx("div",{ref:_,role:"tablist",className:[ie.tablist,ie[r]].filter(Boolean).join(" "),children:t.map((u,g)=>e.jsx("button",{id:m(u.value),role:"tab",type:"button","data-value":u.value,"aria-selected":l===u.value,"aria-controls":d(u.value),disabled:u.disabled,tabIndex:l===u.value?0:-1,className:[ie.tab,l===u.value?ie.activeTab:""].filter(Boolean).join(" "),onClick:()=>p(u.value),onKeyDown:v=>h(v,g),children:u.label},u.value))}),t.map(u=>e.jsx("div",{id:d(u.value),role:"tabpanel","aria-labelledby":m(u.value),hidden:l!==u.value,className:ie.panel,children:u.children},u.value))]})},wr="_accordion_wacbm_1",$r="_bordered_wacbm_7",kr="_item_wacbm_13",yr="_flush_wacbm_17",Nr="_separated_wacbm_21",Lr="_heading_wacbm_35",Br="_trigger_wacbm_40",Ir="_icon_wacbm_72",Sr="_open_wacbm_80",Cr="_contentOuter_wacbm_85",Er="_contentInner_wacbm_95",U={accordion:wr,bordered:$r,item:kr,flush:yr,separated:Nr,heading:Lr,trigger:Br,icon:Ir,open:Sr,contentOuter:Cr,contentInner:Er},qr=({items:t,defaultValue:n,value:s,onChange:o,multiple:r=!1,variant:a="bordered"})=>{const c=s!==void 0,i=d=>d?Array.isArray(d)?d:[d]:[],[l,_]=f.useState(i(n)),p=c?i(s):l,h=d=>{let m;p.includes(d)?m=p.filter(x=>x!==d):m=r?[...p,d]:[d],c||_(m),o==null||o(r?m:m[0]??"")};return e.jsx("div",{className:[U.accordion,U[a]].filter(Boolean).join(" "),children:t.map(d=>{const m=p.includes(d.value),x=`vui-accordion-trigger-${d.value}`,u=`vui-accordion-panel-${d.value}`;return e.jsxs("div",{className:[U.item,m?U.open:""].filter(Boolean).join(" "),children:[e.jsx("h3",{className:U.heading,children:e.jsxs("button",{id:x,type:"button","aria-expanded":m,"aria-controls":u,disabled:d.disabled,className:U.trigger,onClick:()=>!d.disabled&&h(d.value),children:[e.jsx("span",{children:d.title}),e.jsx("span",{className:U.icon,"aria-hidden":"true",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})}),e.jsx("div",{id:u,role:"region","aria-labelledby":x,className:U.contentOuter,children:e.jsx("div",{className:U.contentInner,children:d.content})})]},d.value)})})},Rr="_alert_b1vtk_1",Wr="_icon_b1vtk_12",Tr="_content_b1vtk_19",Dr="_title_b1vtk_24",Mr="_body_b1vtk_31",zr="_closeBtn_b1vtk_35",Fr="_info_b1vtk_64",Ar="_success_b1vtk_70",Pr="_warning_b1vtk_76",Or="_danger_b1vtk_82",te={alert:Rr,icon:Wr,content:Tr,title:Dr,body:Mr,closeBtn:zr,info:Fr,success:Ar,warning:Pr,danger:Or},Hr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),Ur=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),Vr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),Xr=()=>e.jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),Yr={info:e.jsx(Hr,{}),success:e.jsx(Ur,{}),warning:e.jsx(Vr,{}),danger:e.jsx(Xr,{})},Gr=({variant:t="info",title:n,icon:s,onClose:o,children:r,className:a,...c})=>{const i=[te.alert,te[t],a??""].filter(Boolean).join(" "),l=s!==void 0?s:Yr[t];return e.jsxs("div",{className:i,role:"alert",...c,children:[l&&e.jsx("span",{className:te.icon,"aria-hidden":"true",children:l}),e.jsxs("div",{className:te.content,children:[n&&e.jsx("p",{className:te.title,children:n}),e.jsx("div",{className:te.body,children:r})]}),o&&e.jsx("button",{type:"button",className:te.closeBtn,onClick:o,"aria-label":"Dismiss alert",children:e.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})},Kr="_divider_vfae1_1",Jr="_horizontal_vfae1_6",Qr="_vertical_vfae1_12",Zr="_withLabel_vfae1_19",ea="_label_vfae1_33",Ne={divider:Kr,horizontal:Jr,vertical:Qr,withLabel:Zr,label:ea},ta=({orientation:t="horizontal",label:n,className:s,...o})=>{const r=[Ne.divider,Ne[t],n?Ne.withLabel:"",s??""].filter(Boolean).join(" ");return e.jsx("div",{role:"separator","aria-orientation":t,className:r,...o,children:n&&e.jsx("span",{className:Ne.label,children:n})})},sa="_spinner_1232t_1",na="_svg_1232t_8",oa="_spin_1232t_1",ra="_track_1232t_17",aa="_arc_1232t_21",ia="_sm_1232t_27",la="_md_1232t_33",ca="_lg_1232t_39",da="_primary_1232t_46",_a="_muted_1232t_50",ua="_white_1232t_54",le={spinner:sa,svg:na,spin:oa,track:ra,arc:aa,sm:ia,md:la,lg:ca,primary:da,muted:_a,white:ua},pa=({size:t="md",color:n="primary",label:s="Loading…",className:o,...r})=>{const a=[le.spinner,le[t],le[n],o??""].filter(Boolean).join(" ");return e.jsx("span",{className:a,role:"status","aria-label":s,...r,children:e.jsxs("svg",{className:le.svg,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{className:le.track,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),e.jsx("circle",{className:le.arc,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})})},ha="_block_tuupu_1",ma="_stack_tuupu_13",Ce={block:ha,stack:ma},se=t=>{if(t!==void 0)return typeof t=="number"?`${t}px`:t},fa=({width:t,height:n,radius:s,lines:o,gap:r,className:a,style:c,...i})=>{if(o&&o>1){const l=se(r)??"0.5rem";return e.jsx("span",{className:[Ce.stack,a??""].filter(Boolean).join(" "),style:{gap:l,...c},"aria-hidden":"true",...i,children:Array.from({length:o}).map((_,p)=>{const h=p===o-1;return e.jsx("span",{className:Ce.block,style:{width:h?"75%":se(t)??"100%",height:se(n)??"1rem",borderRadius:se(s)??"var(--vui-radius-sm, 0.375rem)"}},p)})})}return e.jsx("span",{className:[Ce.block,a??""].filter(Boolean).join(" "),style:{width:se(t),height:se(n)??"1rem",borderRadius:se(s)??"var(--vui-radius-sm, 0.375rem)",...c},"aria-hidden":"true",...i})},ba="_wrapper_xgu51_1",xa="_labelRow_xgu51_8",ga="_label_xgu51_8",va="_value_xgu51_20",ja="_track_xgu51_26",wa="_sm_xgu51_33",$a="_md_xgu51_34",ka="_lg_xgu51_35",ya="_bar_xgu51_37",Na="_primary_xgu51_43",La="_success_xgu51_44",Ba="_warning_xgu51_45",Ia="_danger_xgu51_46",J={wrapper:ba,labelRow:xa,label:ga,value:va,track:ja,sm:wa,md:$a,lg:ka,bar:ya,primary:Na,success:La,warning:Ba,danger:Ia},Sa=({value:t,variant:n="primary",size:s="md",label:o,showValue:r=!1,className:a,...c})=>{const i=Math.min(100,Math.max(0,t));return e.jsxs("div",{className:[J.wrapper,a??""].filter(Boolean).join(" "),...c,children:[(o||r)&&e.jsxs("div",{className:J.labelRow,children:[o&&e.jsx("span",{className:J.label,children:o}),r&&e.jsxs("span",{className:J.value,children:[i,"%"]})]}),e.jsx("div",{className:[J.track,J[s]].filter(Boolean).join(" "),role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o??`${i}%`,children:e.jsx("div",{className:[J.bar,J[n]].filter(Boolean).join(" "),style:{width:`${i}%`}})})]})},Ca="_container_2etd3_1",Ea="_toast_2etd3_14",qa="_slideUp_2etd3_1",Ra="_message_2etd3_31",Wa="_close_2etd3_38",Ta="_info_2etd3_63",Da="_success_2etd3_69",Ma="_warning_2etd3_75",za="_danger_2etd3_81",be={container:Ca,toast:Ea,slideUp:qa,message:Ra,close:Wa,info:Ta,success:Da,warning:Ma,danger:za},Je=f.createContext(null);let Fa=0;const Aa=()=>e.jsx("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Pa=({item:t,onRemove:n})=>{const s=f.useRef(null);f.useEffect(()=>{const r=t.duration??4e3;return r>0&&(s.current=setTimeout(()=>n(t.id),r)),()=>{s.current&&clearTimeout(s.current)}},[t.id,t.duration,n]);const o=[be.toast,be[t.variant??"info"]].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"alert","aria-live":"assertive",children:[e.jsx("span",{className:be.message,children:t.message}),e.jsx("button",{type:"button",className:be.close,onClick:()=>n(t.id),"aria-label":"Dismiss notification",children:e.jsx(Aa,{})})]})},Oa=({children:t})=>{const[n,s]=f.useState([]),o=f.useCallback(a=>{const c=`toast-${++Fa}`;s(i=>[...i,{...a,id:c}])},[]),r=f.useCallback(a=>{s(c=>c.filter(i=>i.id!==a))},[]);return e.jsxs(Je.Provider,{value:{addToast:o,removeToast:r},children:[t,typeof document<"u"&&Ee.createPortal(e.jsx("div",{className:be.container,"aria-label":"Notifications",children:n.map(a=>e.jsx(Pa,{item:a,onRemove:r},a.id))}),document.body)]})},Ha=()=>{const t=f.useContext(Je);if(!t)throw new Error("useToast must be used inside <ToastProvider>");return t},Ua="_avatar_14l02_1",Va="_xs_14l02_15",Xa="_sm_14l02_16",Ya="_md_14l02_17",Ga="_lg_14l02_18",Ka="_xl_14l02_19",Ja="_circle_14l02_22",Qa="_square_14l02_23",Za="_img_14l02_25",ei="_initials_14l02_32",ti="_fallbackIcon_14l02_37",si="_status_14l02_44",ni="_online_14l02_57",oi="_away_14l02_58",ri="_offline_14l02_59",ai="_statusPulse_14l02_61",ii="_avatarStatusPulse_14l02_1",V={avatar:Ua,xs:Va,sm:Xa,md:Ya,lg:Ga,xl:Ka,circle:Ja,square:Qa,img:Za,initials:ei,fallbackIcon:ti,status:si,online:ni,away:oi,offline:ri,statusPulse:ai,avatarStatusPulse:ii};function li(t){const n=t.trim().split(/\s+/);return n.length===1?n[0].charAt(0).toUpperCase():(n[0].charAt(0)+n[n.length-1].charAt(0)).toUpperCase()}const ci=({src:t,alt:n,name:s,size:o="md",shape:r="circle",status:a,statusAnimation:c="none",className:i,...l})=>{const[_,p]=f.useState(!1),h=[V.avatar,V[o],V[r],i??""].filter(Boolean).join(" "),d=t&&!_,m=s?li(s):null;return e.jsxs("span",{className:h,"aria-label":n??s,...l,children:[d?e.jsx("img",{src:t,alt:n??s??"",className:V.img,onError:()=>p(!0)}):m?e.jsx("span",{className:V.initials,"aria-hidden":"true",children:m}):e.jsx("svg",{className:V.fallbackIcon,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"})}),a&&e.jsx("span",{className:[V.status,V[a],c==="pulse"?V.statusPulse:""].filter(Boolean).join(" "),"aria-label":a})]})},di="_tag_13w40_1",_i="_sm_13w40_14",ui="_md_13w40_19",pi="_lg_13w40_24",hi="_info_13w40_36",mi="_success_13w40_42",fi="_warning_13w40_48",bi="_danger_13w40_54",xi="_primary_13w40_60",gi="_label_13w40_66",vi="_icon_13w40_70",ji="_close_13w40_75",ce={tag:di,sm:_i,md:ui,lg:pi,default:"_default_13w40_30",info:hi,success:mi,warning:fi,danger:bi,primary:xi,label:gi,icon:vi,close:ji},wi=({variant:t="default",size:n="md",onClose:s,leftIcon:o,children:r,className:a,...c})=>{const i=[ce.tag,ce[t],ce[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...c,children:[o&&e.jsx("span",{className:ce.icon,"aria-hidden":"true",children:o}),e.jsx("span",{className:ce.label,children:r}),s&&e.jsx("button",{type:"button",className:ce.close,onClick:l=>{l.stopPropagation(),s()},"aria-label":"Remove",children:e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]})},$i="_root_6ieqa_1",ki="_icon_6ieqa_11",yi="_title_6ieqa_23",Ni="_description_6ieqa_31",Li="_action_6ieqa_39",fe={root:$i,icon:ki,title:yi,description:Ni,action:Li},Bi=({icon:t,title:n,description:s,action:o,className:r,...a})=>e.jsxs("div",{className:[fe.root,r??""].filter(Boolean).join(" "),...a,children:[t&&e.jsx("span",{className:fe.icon,"aria-hidden":"true",children:t}),e.jsx("p",{className:fe.title,children:n}),s&&e.jsx("p",{className:fe.description,children:s}),o&&e.jsx("div",{className:fe.action,children:o})]}),Ii="_nav_1s2na_1",Si="_list_1s2na_5",Ci="_item_1s2na_15",Ei="_separator_1s2na_20",qi="_crumb_1s2na_27",Ri="_link_1s2na_33",Wi="_current_1s2na_50",X={nav:Ii,list:Si,item:Ci,separator:Ei,crumb:qi,link:Ri,current:Wi},Ti=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18l6-6-6-6"})}),Di=({items:t,separator:n,className:s,...o})=>{const r=n??e.jsx(Ti,{});return e.jsx("nav",{"aria-label":"Breadcrumb",className:[X.nav,s??""].filter(Boolean).join(" "),...o,children:e.jsx("ol",{className:X.list,children:t.map((a,c)=>{const i=c===t.length-1;return e.jsxs("li",{className:X.item,children:[c>0&&e.jsx("span",{className:X.separator,"aria-hidden":"true",children:r}),i||!a.href?e.jsx("span",{className:[X.crumb,i?X.current:X.link].filter(Boolean).join(" "),"aria-current":i?"page":void 0,children:a.label}):e.jsx("a",{href:a.href,className:[X.crumb,X.link].filter(Boolean).join(" "),children:a.label})]},c)})})})},Mi="_nav_10kny_1",zi="_list_10kny_5",Fi="_btn_10kny_14",Ai="_disabled_10kny_32",Pi="_active_10kny_32",Oi="_dots_10kny_54",R={nav:Mi,list:zi,btn:Fi,disabled:Ai,active:Pi,dots:Oi};function Le(t,n){const s=n-t+1;return Array.from({length:s},(o,r)=>t+r)}function Hi(t,n,s){const o=s*2+5;if(n<=o)return Le(1,n);const r=Math.max(t-s,1),a=Math.min(t+s,n),c=r>2,i=a<n-1;return!c&&i?[...Le(1,3+s*2),"...",n]:c&&!i?[1,"...",...Le(n-(2+s*2),n)]:[1,"...",...Le(r,a),"...",n]}const Ui=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 18l-6-6 6-6"})}),Vi=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 18l6-6-6-6"})}),Xi=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 17l-5-5 5-5M18 17l-5-5 5-5"})}),Yi=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 17l5-5-5-5M6 17l5-5-5-5"})}),Gi=({page:t,totalPages:n,onChange:s,siblingCount:o=1,showFirstLast:r=!0,className:a,...c})=>{const i=Hi(t,n,o),l=_=>{_<1||_>n||_===t||s(_)};return e.jsx("nav",{"aria-label":"Pagination",className:[R.nav,a??""].filter(Boolean).join(" "),...c,children:e.jsxs("ul",{className:R.list,children:[r&&e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===1?R.disabled:""].filter(Boolean).join(" "),onClick:()=>l(1),disabled:t===1,"aria-label":"First page",children:e.jsx(Xi,{})})}),e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===1?R.disabled:""].filter(Boolean).join(" "),onClick:()=>l(t-1),disabled:t===1,"aria-label":"Previous page",children:e.jsx(Ui,{})})}),i.map((_,p)=>_==="..."?e.jsx("li",{children:e.jsx("span",{className:R.dots,children:"…"})},`dots-${p}`):e.jsx("li",{children:e.jsx("button",{className:[R.btn,_===t?R.active:""].filter(Boolean).join(" "),onClick:()=>l(_),"aria-label":`Page ${_}`,"aria-current":_===t?"page":void 0,children:_})},_)),e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===n?R.disabled:""].filter(Boolean).join(" "),onClick:()=>l(t+1),disabled:t===n,"aria-label":"Next page",children:e.jsx(Vi,{})})}),r&&e.jsx("li",{children:e.jsx("button",{className:[R.btn,t===n?R.disabled:""].filter(Boolean).join(" "),onClick:()=>l(n),disabled:t===n,"aria-label":"Last page",children:e.jsx(Yi,{})})})]})})},Ki="_root_1wmfi_1",Ji="_horizontal_1wmfi_6",Qi="_vertical_1wmfi_11",Zi="_step_1wmfi_16",el="_connector_1wmfi_32",tl="_indicator_1wmfi_37",sl="_circle_1wmfi_55",nl="_pending_1wmfi_88",ol="_active_1wmfi_94",rl="_completed_1wmfi_100",al="_content_1wmfi_111",il="_label_1wmfi_127",ll="_description_1wmfi_139",W={root:Ki,horizontal:Ji,vertical:Qi,step:Zi,connector:el,indicator:tl,circle:sl,pending:nl,active:ol,completed:rl,content:al,label:il,description:ll},cl=()=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}),dl=({steps:t,currentStep:n,orientation:s="horizontal",variant:o="default",className:r,...a})=>{const c=[W.root,W[s],W[o],r??""].filter(Boolean).join(" ");return e.jsx("div",{className:c,role:"list","aria-label":"Steps",...a,children:t.map((i,l)=>{const _=l+1,p=_<n,h=_===n,d=l===t.length-1,m=[W.step,p?W.completed:"",h?W.active:"",!p&&!h?W.pending:""].filter(Boolean).join(" ");return e.jsxs("div",{className:m,role:"listitem",children:[e.jsxs("div",{className:W.indicator,children:[e.jsx("span",{className:W.circle,children:p?e.jsx(cl,{}):e.jsx("span",{children:_})}),!d&&e.jsx("span",{className:W.connector,"aria-hidden":"true"})]}),o!=="compact"&&e.jsxs("div",{className:W.content,children:[e.jsx("span",{className:W.label,children:i.label}),i.description&&e.jsx("span",{className:W.description,children:i.description})]})]},l)})})},_l="_triggerWrapper_v2cko_1",ul="_popover_v2cko_6",pl="_fadeIn_v2cko_1",hl="_arrow_v2cko_24",ml="_bottom_v2cko_34",fl="_top_v2cko_42",bl="_right_v2cko_50",xl="_left_v2cko_58",Be={triggerWrapper:_l,popover:ul,fadeIn:pl,arrow:hl,bottom:ml,top:fl,right:bl,left:xl};function gl(t,n,s){const{top:o,left:r,bottom:a,right:c,width:i,height:l}=t,_=n.offsetWidth,p=n.offsetHeight,h=8;switch(s){case"top":return{top:o-p-h+window.scrollY,left:r+i/2-_/2+window.scrollX};case"bottom":return{top:a+h+window.scrollY,left:r+i/2-_/2+window.scrollX};case"left":return{top:o+l/2-p/2+window.scrollY,left:r-_-h+window.scrollX};case"right":return{top:o+l/2-p/2+window.scrollY,left:c+h+window.scrollX}}}const vl=({trigger:t,content:n,placement:s="bottom",open:o,onOpenChange:r,className:a})=>{const c=o!==void 0,[i,l]=f.useState(!1),_=c?o:i,p=f.useRef(null),h=f.useRef(null),[d,m]=f.useState({top:0,left:0}),x=f.useCallback(v=>{c||l(v),r==null||r(v)},[c,r]),u=f.useCallback(()=>{if(!p.current||!h.current)return;const v=p.current.getBoundingClientRect();m(gl(v,h.current,s))},[s]);f.useEffect(()=>{if(_)return u(),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0)}},[_,u]),f.useEffect(()=>{if(!_)return;const v=j=>{var C,k;!((C=p.current)!=null&&C.contains(j.target))&&!((k=h.current)!=null&&k.contains(j.target))&&x(!1)},N=j=>{j.key==="Escape"&&x(!1)};return document.addEventListener("mousedown",v),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",N)}},[_,x]);const g=[Be.popover,Be[s],a??""].filter(Boolean).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:p,className:Be.triggerWrapper,onClick:()=>x(!_),"aria-expanded":_,"aria-haspopup":"true",children:t}),_&&typeof document<"u"&&Ee.createPortal(e.jsxs("div",{ref:h,className:g,style:{top:d.top,left:d.left},role:"dialog",children:[e.jsx("div",{className:Be.arrow,"aria-hidden":"true"}),n]}),document.body)]})},jl="_triggerWrapper_19rgz_1",wl="_menu_19rgz_6",$l="_item_19rgz_23",kl="_itemDisabled_19rgz_41",yl="_itemIcon_19rgz_56",Nl="_separator_19rgz_63",de={triggerWrapper:jl,menu:wl,item:$l,itemDisabled:kl,itemIcon:yl,separator:Nl};function Ll(t,n,s){const{top:o,left:r,bottom:a,right:c}=t,i=n.offsetHeight,l=n.offsetWidth,_=4;switch(s){case"bottom-start":return{top:a+_+window.scrollY,left:r+window.scrollX};case"bottom-end":return{top:a+_+window.scrollY,left:c-l+window.scrollX};case"top-start":return{top:o-i-_+window.scrollY,left:r+window.scrollX};case"top-end":return{top:o-i-_+window.scrollY,left:c-l+window.scrollX};default:return{top:a+_+window.scrollY,left:r+window.scrollX}}}const Bl=({trigger:t,items:n,placement:s="bottom-start",className:o})=>{const[r,a]=f.useState(!1),c=f.useRef(null),i=f.useRef(null),[l,_]=f.useState({top:0,left:0}),p=f.useCallback(()=>{if(!c.current||!i.current)return;const d=c.current.getBoundingClientRect();_(Ll(d,i.current,s))},[s]);f.useEffect(()=>{if(r)return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0)}},[r,p]),f.useEffect(()=>{if(!r)return;const d=x=>{var u,g;!((u=c.current)!=null&&u.contains(x.target))&&!((g=i.current)!=null&&g.contains(x.target))&&a(!1)},m=x=>{var u;if(x.key==="Escape"){a(!1);const g=(u=c.current)==null?void 0:u.querySelector("button, a, [tabindex]");g==null||g.focus()}};return document.addEventListener("mousedown",d),document.addEventListener("keydown",m),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",m)}},[r]);const h=d=>{var m;d.disabled||((m=d.onClick)==null||m.call(d),a(!1))};return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:c,className:de.triggerWrapper,onClick:()=>a(d=>!d),"aria-haspopup":"menu","aria-expanded":r,children:t}),r&&typeof document<"u"&&Ee.createPortal(e.jsx("div",{ref:i,className:[de.menu,o??""].filter(Boolean).join(" "),style:{top:l.top,left:l.left},role:"menu",children:n.map((d,m)=>d.separator?e.jsx("div",{className:de.separator,role:"separator"},m):e.jsxs("button",{type:"button",role:"menuitem",className:[de.item,d.disabled?de.itemDisabled:""].filter(Boolean).join(" "),onClick:()=>h(d),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:de.itemIcon,"aria-hidden":"true",children:d.icon}),e.jsx("span",{children:d.label})]},m))}),document.body)]})},Il="_wrapper_13j54_1",Sl="_wrapperDisabled_13j54_8",Cl="_labelRow_13j54_13",El="_label_13j54_13",ql="_valueDisplay_13j54_25",Rl="_trackWrapper_13j54_31",Wl="_sm_13j54_37",Tl="_md_13j54_38",Dl="_lg_13j54_39",Ml="_trackBg_13j54_41",zl="_trackFill_13j54_51",Fl="_input_13j54_61",F={wrapper:Il,wrapperDisabled:Sl,labelRow:Cl,label:El,valueDisplay:ql,trackWrapper:Rl,sm:Wl,md:Tl,lg:Dl,trackBg:Ml,trackFill:zl,input:Fl},Al=({min:t=0,max:n=100,step:s=1,value:o,onChange:r,label:a,showValue:c=!1,size:i="md",disabled:l,className:_,id:p,...h})=>{const d=f.useId(),m=p??d,x=o!==void 0?(o-t)/(n-t)*100:0;return e.jsxs("div",{className:[F.wrapper,l?F.wrapperDisabled:"",_??""].filter(Boolean).join(" "),children:[(a||c)&&e.jsxs("div",{className:F.labelRow,children:[a&&e.jsx("label",{htmlFor:m,className:F.label,children:a}),c&&o!==void 0&&e.jsx("span",{className:F.valueDisplay,children:o})]}),e.jsxs("div",{className:[F.trackWrapper,F[i]].filter(Boolean).join(" "),children:[e.jsx("div",{className:F.trackBg}),e.jsx("div",{className:F.trackFill,style:{width:`${x}%`}}),e.jsx("input",{id:m,type:"range",min:t,max:n,step:s,value:o,disabled:l,onChange:u=>r==null?void 0:r(Number(u.target.value)),className:F.input,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,...h})]})]})},Pl="_root_q5j4f_1",Ol="_label_q5j4f_7",Hl="_required_q5j4f_14",Ul="_wrapper_q5j4f_18",Vl="_hasError_q5j4f_33",Xl="_disabled_q5j4f_41",Yl="_sm_q5j4f_47",Gl="_md_q5j4f_48",Kl="_lg_q5j4f_49",Jl="_input_q5j4f_51",Ql="_stepBtn_q5j4f_72",Zl="_errorMsg_q5j4f_96",ec="_hintMsg_q5j4f_103",D={root:Pl,label:Ol,required:Hl,wrapper:Ul,hasError:Vl,disabled:Xl,sm:Yl,md:Gl,lg:Kl,input:Jl,stepBtn:Ql,errorMsg:Zl,hintMsg:ec},tc=({value:t,onChange:n,min:s,max:o,step:r=1,label:a,error:c,hint:i,size:l="md",disabled:_,required:p,id:h,className:d,...m})=>{const x=f.useId(),u=h??x,g=`${u}-hint`,v=`${u}-error`,N=()=>{const k=(t??0)-r;s!==void 0&&k<s||n==null||n(k)},j=()=>{const k=(t??0)+r;o!==void 0&&k>o||n==null||n(k)},C=[D.wrapper,D[l],c?D.hasError:"",_?D.disabled:"",d??""].filter(Boolean).join(" ");return e.jsxs("div",{className:D.root,children:[a&&e.jsxs("label",{htmlFor:u,className:D.label,children:[a,p&&e.jsx("span",{className:D.required,"aria-hidden":"true",children:" *"})]}),e.jsxs("div",{className:C,children:[e.jsx("button",{type:"button",className:D.stepBtn,onClick:N,disabled:_||s!==void 0&&(t??0)<=s,"aria-label":"Decrease value",tabIndex:-1,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 12h14"})})}),e.jsx("input",{id:u,type:"number",className:D.input,value:t,min:s,max:o,step:r,disabled:_,required:p,"aria-invalid":!!c,"aria-describedby":c?v:i?g:void 0,onChange:k=>n==null?void 0:n(k.target.valueAsNumber),...m}),e.jsx("button",{type:"button",className:D.stepBtn,onClick:j,disabled:_||o!==void 0&&(t??0)>=o,"aria-label":"Increase value",tabIndex:-1,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M12 5v14M5 12h14"})})})]}),c&&e.jsx("p",{id:v,className:D.errorMsg,role:"alert",children:c}),!c&&i&&e.jsx("p",{id:g,className:D.hintMsg,children:i})]})},sc="_root_10bwd_1",nc="_label_10bwd_7",oc="_zone_10bwd_14",rc="_zoneDisabled_10bwd_29",ac="_dragging_10bwd_34",ic="_zoneError_10bwd_39",lc="_hiddenInput_10bwd_48",cc="_uploadIcon_10bwd_52",dc="_zoneText_10bwd_56",_c="_zoneLink_10bwd_61",uc="_zoneHint_10bwd_68",pc="_errorMsg_10bwd_73",hc="_fileList_10bwd_79",mc="_fileItem_10bwd_88",fc="_fileName_10bwd_98",bc="_fileSize_10bwd_108",xc="_removeBtn_10bwd_114",S={root:sc,label:nc,zone:oc,zoneDisabled:rc,dragging:ac,zoneError:ic,hiddenInput:lc,uploadIcon:cc,zoneText:dc,zoneLink:_c,zoneHint:uc,errorMsg:pc,fileList:hc,fileItem:mc,fileName:fc,fileSize:bc,removeBtn:xc},gc=()=>e.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})});function Me(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const vc=({accept:t,multiple:n=!1,maxSize:s,onChange:o,label:r,hint:a,error:c,disabled:i=!1,className:l,id:_})=>{const p=f.useId(),h=_??p,d=f.useRef(null),[m,x]=f.useState(!1),[u,g]=f.useState([]),[v,N]=f.useState(null),j=c??v,C=w=>{if(!w)return;const $=Array.from(w);if(s&&$.filter(oe=>oe.size>s).length>0){N(`File exceeds maximum size of ${Me(s)}.`);return}N(null);const O=n?$:$.slice(0,1);g(O),o==null||o(O)},k=w=>{w.preventDefault(),x(!1),i||C(w.dataTransfer.files)},P=w=>{const $=u.filter((O,G)=>G!==w);g($),o==null||o($)},Y=[S.zone,m?S.dragging:"",j?S.zoneError:"",i?S.zoneDisabled:""].filter(Boolean).join(" ");return e.jsxs("div",{className:[S.root,l??""].filter(Boolean).join(" "),children:[r&&e.jsx("span",{className:S.label,children:r}),e.jsxs("label",{htmlFor:h,className:Y,onDragOver:w=>{w.preventDefault(),i||x(!0)},onDragLeave:()=>x(!1),onDrop:k,children:[e.jsx("input",{ref:d,id:h,type:"file",accept:t,multiple:n,disabled:i,className:S.hiddenInput,onChange:w=>C(w.target.files)}),e.jsx("span",{className:S.uploadIcon,children:e.jsx(gc,{})}),e.jsxs("span",{className:S.zoneText,children:[e.jsx("span",{className:S.zoneLink,children:"Choose files"})," or drag and drop"]}),a&&e.jsx("span",{className:S.zoneHint,children:a})]}),j&&e.jsx("p",{className:S.errorMsg,role:"alert",children:j}),u.length>0&&e.jsx("ul",{className:S.fileList,children:u.map((w,$)=>e.jsxs("li",{className:S.fileItem,children:[e.jsx("span",{className:S.fileName,children:w.name}),e.jsx("span",{className:S.fileSize,children:Me(w.size)}),e.jsx("button",{type:"button",className:S.removeBtn,onClick:()=>P($),"aria-label":`Remove ${w.name}`,children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]},$))})]})},jc="_wrapper_i5kin_1",wc="_table_i5kin_8",$c="_sm_i5kin_15",kc="_th_i5kin_15",yc="_td_i5kin_16",Nc="_md_i5kin_21",Lc="_lg_i5kin_27",Bc="_thContent_i5kin_43",Ic="_sortable_i5kin_49",Sc="_sortActive_i5kin_58",Cc="_sortIcon_i5kin_62",Ec="_tr_i5kin_72",qc="_striped_i5kin_91",Rc="_bordered_i5kin_100",Wc="_empty_i5kin_105",T={wrapper:jc,table:wc,sm:$c,th:kc,td:yc,md:Nc,lg:Lc,thContent:Bc,sortable:Ic,sortActive:Sc,sortIcon:Cc,tr:Ec,striped:qc,bordered:Rc,empty:Wc},Tc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})}),Dc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),Mc=()=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l4-4 4 4M16 15l-4 4-4-4"})});function zc({columns:t,data:n,sortKey:s,sortDir:o,onSort:r,striped:a=!1,bordered:c=!1,size:i="md",className:l,..._}){const p=d=>{if(!d.sortable||!r)return;const m=s===d.key&&o==="asc"?"desc":"asc";r(d.key,m)},h=[T.table,T[i],a?T.striped:"",c?T.bordered:""].filter(Boolean).join(" ");return e.jsx("div",{className:[T.wrapper,l??""].filter(Boolean).join(" "),..._,children:e.jsxs("table",{className:h,children:[e.jsx("thead",{children:e.jsx("tr",{children:t.map(d=>{const m=s===d.key,x=[T.th,d.sortable?T.sortable:"",m?T.sortActive:""].filter(Boolean).join(" ");return e.jsx("th",{className:x,onClick:()=>p(d),"aria-sort":m?o==="asc"?"ascending":"descending":d.sortable?"none":void 0,children:e.jsxs("span",{className:T.thContent,children:[d.header,d.sortable&&e.jsx("span",{className:T.sortIcon,children:m?o==="asc"?e.jsx(Tc,{}):e.jsx(Dc,{}):e.jsx(Mc,{})})]})},d.key)})})}),e.jsx("tbody",{children:n.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length,className:T.empty,children:"No data available."})}):n.map((d,m)=>e.jsx("tr",{className:T.tr,children:t.map(x=>{const u=d[x.key],g=x.render?x.render(u,d,m):u;return e.jsx("td",{className:T.td,children:g},x.key)})},m))})]})})}exports.Accordion=qr;exports.Alert=Gr;exports.AnimatedBackground=Us;exports.Avatar=ci;exports.Badge=ys;exports.Breadcrumb=Di;exports.Button=ze;exports.Card=xe;exports.Checkbox=Ve;exports.Dialog=ge;exports.Divider=ta;exports.Dropdown=Bl;exports.EmptyState=Bi;exports.FileUpload=vc;exports.GradientOrbs=sn;exports.GridGlow=_n;exports.Input=Fe;exports.NumberInput=tc;exports.Pagination=Gi;exports.Popover=vl;exports.Progress=Sa;exports.RadioGroup=Bo;exports.Select=Ue;exports.Skeleton=fa;exports.Slider=Al;exports.Spinner=pa;exports.Stepper=dl;exports.Switch=Xe;exports.Table=zc;exports.Tabs=jr;exports.Tag=wi;exports.Textarea=He;exports.Title=cs;exports.ToastProvider=Oa;exports.Tooltip=ur;exports.useToast=Ha;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
 
2
2
  export { Button } from './components/Button';
3
- export type { ButtonProps, ButtonVariant, ButtonSize } from './components/Button';
3
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonAnimation } from './components/Button';
4
4
  export { Input } from './components/Input';
5
5
  export type { InputProps, InputSize, InputIconPosition } from './components/Input';
6
6
  export { Title } from './components/Title';
7
7
  export type { TitleProps, TitleLevel, TitleSize, TitleWeight, TitleAlign, TitleColor } from './components/Title';
8
8
  export { Badge } from './components/Badge';
9
- export type { BadgeProps, BadgeVariant, BadgeSize } from './components/Badge';
9
+ export type { BadgeProps, BadgeVariant, BadgeSize, BadgeAnimation } from './components/Badge';
10
10
  export { Card } from './components/Card';
11
11
  export type { CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, CardVariant, CardSize } from './components/Card';
12
12
  export { AnimatedBackground } from './components/AnimatedBackground';
@@ -46,7 +46,7 @@ export type { ProgressProps, ProgressVariant, ProgressSize } from './components/
46
46
  export { ToastProvider, useToast } from './components/Toast';
47
47
  export type { ToastItem, ToastVariant, ToastContextValue } from './components/Toast';
48
48
  export { Avatar } from './components/Avatar';
49
- export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus } from './components/Avatar';
49
+ export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus, AvatarStatusAnimation } from './components/Avatar';
50
50
  export { Tag } from './components/Tag';
51
51
  export type { TagProps, TagVariant, TagSize } from './components/Tag';
52
52
  export { EmptyState } from './components/EmptyState';