@velocityuikit/velocityui 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ChatAttachmentVariant = 'image' | 'file' | 'video' | 'audio';
4
+ export interface ChatAttachmentProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ variant?: ChatAttachmentVariant;
6
+ src?: string;
7
+ fileName?: string;
8
+ fileSize?: string;
9
+ onDownload?: () => void;
10
+ onPreview?: () => void;
11
+ }
12
+ export declare const ChatAttachment: React.FC<ChatAttachmentProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatAttachment } from './ChatAttachment';
2
+ export type { ChatAttachmentProps, ChatAttachmentVariant } from './ChatAttachment';
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ChatBubbleVariant = 'sent' | 'received' | 'system' | 'ai';
4
+ export type ChatBubbleStatus = 'sent' | 'delivered' | 'read';
5
+ export type ChatBubbleGrouping = 'single' | 'first' | 'middle' | 'last';
6
+ export interface ChatBubbleProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ variant?: ChatBubbleVariant;
8
+ avatar?: React.ReactNode;
9
+ username?: string;
10
+ timestamp?: string;
11
+ status?: ChatBubbleStatus;
12
+ grouping?: ChatBubbleGrouping;
13
+ isStreaming?: boolean;
14
+ actions?: React.ReactNode;
15
+ children: React.ReactNode;
16
+ }
17
+ export declare const ChatBubble: React.FC<ChatBubbleProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatBubble } from './ChatBubble';
2
+ export type { ChatBubbleProps, ChatBubbleVariant, ChatBubbleStatus, ChatBubbleGrouping, } from './ChatBubble';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ChatHeaderStatus = 'online' | 'offline' | 'away';
4
+ export interface ChatHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ title: string;
6
+ subtitle?: string;
7
+ avatar?: React.ReactNode;
8
+ status?: ChatHeaderStatus;
9
+ actions?: React.ReactNode;
10
+ onBack?: () => void;
11
+ }
12
+ export declare const ChatHeader: React.FC<ChatHeaderProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatHeader } from './ChatHeader';
2
+ export type { ChatHeaderProps, ChatHeaderStatus } from './ChatHeader';
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
4
+ value?: string;
5
+ onChange?: (value: string) => void;
6
+ onSend?: (value: string) => void;
7
+ onAttach?: () => void;
8
+ maxRows?: number;
9
+ leftSlot?: React.ReactNode;
10
+ rightSlot?: React.ReactNode;
11
+ showSendButton?: boolean;
12
+ sendOnEnter?: boolean;
13
+ }
14
+ export declare const ChatInput: React.ForwardRefExoticComponent<ChatInputProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,2 @@
1
+ export { ChatInput } from './ChatInput';
2
+ export type { ChatInputProps } from './ChatInput';
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatConversation {
4
+ id: string;
5
+ name: string;
6
+ avatar?: React.ReactNode;
7
+ lastMessage?: string;
8
+ timestamp?: string;
9
+ unread?: number;
10
+ online?: boolean;
11
+ }
12
+ export interface ChatListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
13
+ conversations: ChatConversation[];
14
+ activeId?: string;
15
+ onSelect?: (id: string) => void;
16
+ emptyText?: string;
17
+ }
18
+ export declare const ChatList: React.FC<ChatListProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatList } from './ChatList';
2
+ export type { ChatListProps, ChatConversation } from './ChatList';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatReactionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ emoji: string;
5
+ count?: number;
6
+ active?: boolean;
7
+ }
8
+ export declare const ChatReaction: React.ForwardRefExoticComponent<ChatReactionProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { ChatReaction } from './ChatReaction';
2
+ export type { ChatReactionProps } from './ChatReaction';
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ChatStatusVariant = 'online' | 'offline' | 'away' | 'busy' | 'dnd';
4
+ export type ChatStatusSize = 'sm' | 'md' | 'lg';
5
+ export interface ChatStatusProps extends React.HTMLAttributes<HTMLSpanElement> {
6
+ variant?: ChatStatusVariant;
7
+ size?: ChatStatusSize;
8
+ showLabel?: boolean;
9
+ pulse?: boolean;
10
+ }
11
+ export declare const ChatStatus: React.FC<ChatStatusProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatStatus } from './ChatStatus';
2
+ export type { ChatStatusProps, ChatStatusVariant, ChatStatusSize } from './ChatStatus';
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatThreadProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ replyCount?: number;
5
+ lastReplyTimestamp?: string;
6
+ participants?: React.ReactNode[];
7
+ expanded?: boolean;
8
+ onToggle?: () => void;
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare const ChatThread: React.FC<ChatThreadProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatThread } from './ChatThread';
2
+ export type { ChatThreadProps } from './ChatThread';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatTimestampProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const ChatTimestamp: React.FC<ChatTimestampProps>;
@@ -0,0 +1,2 @@
1
+ export { ChatTimestamp } from './ChatTimestamp';
2
+ export type { ChatTimestampProps } from './ChatTimestamp';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ChatWindowProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ autoScroll?: boolean;
7
+ children?: React.ReactNode;
8
+ }
9
+ export declare const ChatWindow: React.ForwardRefExoticComponent<ChatWindowProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { ChatWindow } from './ChatWindow';
2
+ export type { ChatWindowProps } from './ChatWindow';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface TypingIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ users?: string[];
5
+ }
6
+ export declare const TypingIndicator: React.FC<TypingIndicatorProps>;
@@ -0,0 +1,2 @@
1
+ export { TypingIndicator } from './TypingIndicator';
2
+ export type { TypingIndicatorProps } from './TypingIndicator';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),He=require("react-dom"),jt="_button_16l0b_1",gt="_loading_16l0b_34",vt="_sm_16l0b_41",wt="_md_16l0b_47",$t="_lg_16l0b_53",yt="_primary_16l0b_60",kt="_secondary_16l0b_73",Nt="_outline_16l0b_86",Bt="_ghost_16l0b_98",Lt="_danger_16l0b_109",Ct="_fullWidth_16l0b_122",It="_pulse_16l0b_126",zt="_buttonPulse_16l0b_1",St="_shine_16l0b_130",Rt="_buttonShine_16l0b_1",Wt="_spinner_16l0b_145",Tt="_spin_16l0b_145",ae={button:jt,loading:gt,sm:vt,md:wt,lg:$t,primary:yt,secondary:kt,outline:Nt,ghost:Bt,danger:Lt,fullWidth:Ct,pulse:It,buttonPulse:zt,shine:St,buttonShine:Rt,spinner:Wt,spin:Tt},Qe=h.forwardRef(({variant:t="primary",size:n="md",animation:s="none",loading:o=!1,fullWidth:a=!1,leftIcon:i,rightIcon:l,children:r,className:c,disabled:d,...p},m)=>{const _=[ae.button,ae[t],ae[n],s!=="none"?ae[s]:"",a?ae.fullWidth:"",o?ae.loading:"",c??""].filter(Boolean).join(" ");return e.jsxs("button",{ref:m,className:_,disabled:d||o,"aria-busy":o,...p,children:[o&&e.jsx("span",{className:ae.spinner,"aria-hidden":"true"}),!o&&i&&e.jsx("span",{"aria-hidden":"true",children:i}),r,!o&&l&&e.jsx("span",{"aria-hidden":"true",children:l})]})});Qe.displayName="Button";const Et="_wrapper_1r7em_1",Dt="_label_1r7em_8",qt="_required_1r7em_15",Mt="_inputWrapper_1r7em_20",Ft="_input_1r7em_20",At="_error_1r7em_55",Pt="_sm_1r7em_64",Ht="_md_1r7em_70",Ot="_lg_1r7em_76",Ut="_hasLeft_1r7em_83",Vt="_hasRight_1r7em_87",Gt="_iconLeft_1r7em_91",Xt="_iconRight_1r7em_92",Yt="_hint_1r7em_111",Kt="_errorText_1r7em_117",Jt="_floatingWrapper_1r7em_125",Qt="_inputFloating_1r7em_130",Zt="_floatingLabelEl_1r7em_149",es="_floatingLabelSm_1r7em_165",ts="_floatingLabelMd_1r7em_166",ss="_floatingLabelLg_1r7em_167",ns="_floatingLabelWithLeft_1r7em_170",os="_floatingLabelError_1r7em_190",L={wrapper:Et,label:Dt,required:qt,inputWrapper:Mt,input:Ft,error:At,sm:Pt,md:Ht,lg:Ot,hasLeft:Ut,hasRight:Vt,iconLeft:Gt,iconRight:Xt,hint:Yt,errorText:Kt,floatingWrapper:Jt,inputFloating:Qt,floatingLabelEl:Zt,floatingLabelSm:es,floatingLabelMd:ts,floatingLabelLg:ss,floatingLabelWithLeft:ns,floatingLabelError:os},as=()=>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"})}),Ze=h.forwardRef(({label:t,size:n="md",error:s,hint:o,leftIcon:a,rightIcon:i,search:l=!1,searchIcon:r,searchIconPosition:c="left",leftIconClassName:d,rightIconClassName:p,required:m,fullWidth:_,floatingLabel:f,className:j,id:u,placeholder:b,...g},N)=>{const w=u??(t?`vui-input-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),I=w?`${w}-error`:void 0,y=w?`${w}-hint`:void 0,F=l||!!r,k=r??e.jsx(as,{});let v=a,$=i,G=!1,Z=!1;F&&(c==="right"?$||($=k,Z=!0):v||(v=k,G=!0));const ce=[L.input,L[n],f?L.inputFloating:"",s?L.error:"",v?L.hasLeft:"",$?L.hasRight:"",j??""].filter(Boolean).join(" "),Le=[L.floatingLabelEl,L[`floatingLabel${n.charAt(0).toUpperCase()+n.slice(1)}`],v?L.floatingLabelWithLeft:"",s?L.floatingLabelError:""].filter(Boolean).join(" ");return e.jsxs("div",{className:L.wrapper,children:[t&&!f&&e.jsxs("label",{htmlFor:w,className:L.label,children:[t,m&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:`${L.inputWrapper}${f?` ${L.floatingWrapper}`:""}`,children:[v&&e.jsx("span",{className:[L.iconLeft,d??""].filter(Boolean).join(" "),"data-slot":"left-icon","data-search-icon":G?"true":void 0,"aria-hidden":"true",children:v}),e.jsx("input",{ref:N,id:w,className:ce,required:m,"aria-invalid":!!s,"aria-describedby":[s?I:null,o?y:null].filter(Boolean).join(" ")||void 0,placeholder:f?" ":b,...g}),t&&f&&e.jsxs("label",{htmlFor:w,className:Le,children:[t,m&&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":Z?"true":void 0,"aria-hidden":"true",children:$})]}),s&&e.jsx("span",{id:I,className:L.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:y,className:L.hint,children:o})]})});Ze.displayName="Input";const rs="_title_1np0f_1",is="_xs_1np0f_9",ls="_sm_1np0f_14",cs="_md_1np0f_19",ds="_lg_1np0f_24",_s="_xl_1np0f_29",us="_xxl_1np0f_34",ps="_light_1np0f_40",hs="_normal_1np0f_44",ms="_medium_1np0f_48",fs="_semibold_1np0f_52",xs="_bold_1np0f_56",bs="_extrabold_1np0f_60",js="_left_1np0f_65",gs="_center_1np0f_69",vs="_right_1np0f_73",ws="_muted_1np0f_82",$s="_primary_1np0f_86",ys="_gradient_1np0f_90",ve={title:rs,xs:is,sm:ls,md:cs,lg:ds,xl:_s,xxl:us,light:ps,normal:hs,medium:ms,semibold:fs,bold:xs,extrabold:bs,left:js,center:gs,right:vs,default:"_default_1np0f_78",muted:ws,primary:$s,gradient:ys},ks={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},Ns=({as:t,level:n="h1",size:s,weight:o="bold",align:a="left",color:i="default",children:l,className:r,...c})=>{const d=t??n,p=s??ks[d],m=[ve.title,ve[p],ve[o],ve[a],ve[i],r??""].filter(Boolean).join(" ");return h.createElement(d,{className:m,...c},l)},Bs="_badge_1d51m_1",Ls="_sm_1d51m_24",Cs="_md_1d51m_29",Is="_lg_1d51m_34",zs="_info_1d51m_46",Ss="_success_1d51m_52",Rs="_warning_1d51m_58",Ws="_danger_1d51m_64",Ts="_primary_1d51m_70",Es="_dot_1d51m_77",Ds="_pulse_1d51m_85",qs="_badgePulse_1d51m_1",Ms="_badgeDotPulse_1d51m_1",Fs="_shine_1d51m_93",As="_badgeShine_1d51m_1",we={badge:Bs,sm:Ls,md:Cs,lg:Is,default:"_default_1d51m_40",info:zs,success:Ss,warning:Rs,danger:Ws,primary:Ts,dot:Es,pulse:Ds,badgePulse:qs,badgeDotPulse:Ms,shine:Fs,badgeShine:As},Ps=({variant:t="default",size:n="md",animation:s="none",dot:o=!1,leftIcon:a,children:i,className:l,...r})=>{const c=[we.badge,we[t],we[n],s!=="none"?we[s]:"",l??""].filter(Boolean).join(" ");return e.jsxs("span",{className:c,...r,children:[o&&e.jsx("span",{className:we.dot,"aria-hidden":"true"}),!o&&a&&e.jsx("span",{"aria-hidden":"true",children:a}),i]})},Hs="_card_1q61w_1",Os="_bordered_1q61w_11",Us="_shadow_1q61w_15",Vs="_elevated_1q61w_19",Gs="_ghost_1q61w_23",Xs="_sm_1q61w_29",Ys="_cardHeader_1q61w_29",Ks="_cardBody_1q61w_30",Js="_cardFooter_1q61w_31",Qs="_md_1q61w_35",Zs="_lg_1q61w_41",en="_hoverable_1q61w_72",le={card:Hs,bordered:Os,shadow:Us,elevated:Vs,ghost:Gs,sm:Xs,cardHeader:Ys,cardBody:Ks,cardFooter:Js,md:Qs,lg:Zs,hoverable:en},et=({children:t,className:n,...s})=>e.jsx("div",{className:`${le.cardHeader} ${n??""}`,...s,children:t});et.displayName="Card.Header";const tt=({children:t,className:n,...s})=>e.jsx("div",{className:`${le.cardBody} ${n??""}`,...s,children:t});tt.displayName="Card.Body";const st=({children:t,className:n,...s})=>e.jsx("div",{className:`${le.cardFooter} ${n??""}`,...s,children:t});st.displayName="Card.Footer";const tn=({variant:t="bordered",size:n="md",hoverable:s=!1,children:o,className:a,...i})=>{const l=[le.card,le[t],le[n],s?le.hoverable:"",a??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,...i,children:o})},Ne=tn;Ne.Header=et;Ne.Body=tt;Ne.Footer=st;Ne.displayName="Card";const sn="_root_y54b0_1",nn="_background_y54b0_12",on="_interactive_y54b0_19",an="_content_y54b0_23",Re={root:sn,background:nn,interactive:on,content:an},rn={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"}},ln={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"}},cn=({background:t,contentClassName:n,intensity:s="medium",speed:o="medium",interactive:a=!1,className:i,style:l,children:r,...c})=>{const d=[Re.root,a?Re.interactive:"",i??""].filter(Boolean).join(" "),p=[Re.content,n??""].filter(Boolean).join(" "),m={...rn[s],...ln[o],...l};return e.jsxs("div",{className:d,style:m,...c,children:[t?e.jsx("div",{className:Re.background,children:t}):null,e.jsx("div",{className:p,children:r})]})},dn="_root_1h0b6_1",_n="_orb_1h0b6_8",un="_floatOrb_1h0b6_1",pn="_primary_1h0b6_19",hn="_secondary_1h0b6_25",mn="_accent_1h0b6_33",fn="_highlight_1h0b6_40",xn="_hero_1h0b6_48",bn="_diagonal_1h0b6_68",jn="_spotlight_1h0b6_88",O={root:dn,orb:_n,floatOrb:un,primary:pn,secondary:hn,accent:mn,highlight:fn,hero:xn,diagonal:bn,spotlight:jn},gn=({variant:t="hero",className:n,...s})=>{const o=[O.root,O[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:`${O.orb} ${O.primary}`}),e.jsx("span",{className:`${O.orb} ${O.secondary}`}),e.jsx("span",{className:`${O.orb} ${O.accent}`}),e.jsx("span",{className:`${O.orb} ${O.highlight}`})]})},vn="_root_3f8d1_1",wn="_grid_3f8d1_9",$n="_glow_3f8d1_10",yn="_beam_3f8d1_11",kn="_sweepBeam_3f8d1_1",Nn="_spotlight_3f8d1_49",Bn="_panel_3f8d1_57",$e={root:vn,grid:wn,glow:$n,beam:yn,sweepBeam:kn,default:"_default_3f8d1_45",spotlight:Nn,panel:Bn},Ln=({variant:t="default",className:n,...s})=>{const o=[$e.root,$e[t],n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,"aria-hidden":"true",...s,children:[e.jsx("span",{className:$e.grid}),e.jsx("span",{className:$e.glow}),e.jsx("span",{className:$e.beam})]})},Cn="_wrapper_1xu0d_1",In="_wrapperFullWidth_1xu0d_7",zn="_label_1xu0d_11",Sn="_required_1xu0d_18",Rn="_textarea_1xu0d_23",Wn="_hasError_1xu0d_53",Tn="_sm_1xu0d_62",En="_md_1xu0d_67",Dn="_lg_1xu0d_72",qn="_none_1xu0d_78",Mn="_vertical_1xu0d_82",Fn="_horizontal_1xu0d_86",An="_both_1xu0d_90",Pn="_fullWidth_1xu0d_94",Hn="_hint_1xu0d_98",On="_errorText_1xu0d_104",P={wrapper:Cn,wrapperFullWidth:In,label:zn,required:Sn,textarea:Rn,hasError:Wn,sm:Tn,md:En,lg:Dn,none:qn,vertical:Mn,horizontal:Fn,both:An,fullWidth:Pn,hint:Hn,errorText:On},nt=h.forwardRef(({label:t,size:n="md",error:s,hint:o,required:a,fullWidth:i=!1,resize:l="vertical",className:r,id:c,...d},p)=>{const m=c??(t?`vui-textarea-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),_=m?`${m}-error`:void 0,f=m?`${m}-hint`:void 0,j=[P.textarea,P[n],P[l],s?P.hasError:"",i?P.fullWidth:"",r??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${P.wrapper}${i?` ${P.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{htmlFor:m,className:P.label,children:[t,a&&e.jsx("span",{className:P.required,"aria-hidden":"true",children:"*"})]}),e.jsx("textarea",{ref:p,id:m,className:j,required:a,"aria-invalid":!!s,"aria-describedby":[s?_:null,o&&!s?f:null].filter(Boolean).join(" ")||void 0,...d}),s&&e.jsx("span",{id:_,className:P.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:f,className:P.hint,children:o})]})});nt.displayName="Textarea";const Un="_wrapper_1cpn4_1",Vn="_wrapperFullWidth_1cpn4_7",Gn="_label_1cpn4_11",Xn="_required_1cpn4_18",Yn="_selectWrapper_1cpn4_23",Kn="_hiddenSelect_1cpn4_46",Jn="_trigger_1cpn4_53",Qn="_hasError_1cpn4_103",Zn="_sm_1cpn4_114",eo="_md_1cpn4_120",to="_lg_1cpn4_126",so="_fullWidth_1cpn4_132",no="_valueText_1cpn4_136",oo="_placeholder_1cpn4_144",ao="_chevron_1cpn4_148",ro="_isOpen_1cpn4_180",io="_menu_1cpn4_184",lo="_option_1cpn4_203",co="_optionFocused_1cpn4_222",_o="_optionSelected_1cpn4_229",uo="_optionLabel_1cpn4_238",po="_optionCheck_1cpn4_243",ho="_optionCheckVisible_1cpn4_250",mo="_hint_1cpn4_260",fo="_errorText_1cpn4_266",B={wrapper:Un,wrapperFullWidth:Vn,label:Gn,required:Xn,selectWrapper:Yn,hiddenSelect:Kn,trigger:Jn,hasError:Qn,sm:Zn,md:eo,lg:to,fullWidth:so,valueText:no,placeholder:oo,chevron:ao,isOpen:ro,menu:io,option:lo,optionFocused:co,optionSelected:_o,optionLabel:uo,optionCheck:po,optionCheckVisible:ho,hint:mo,errorText:fo};function xo(t){return h.Children.toArray(t).flatMap(n=>{if(!h.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 ot=h.forwardRef(({label:t,size:n="md",error:s,hint:o,required:a,fullWidth:i=!1,options:l,placeholder:r,className:c,id:d,children:p,value:m,defaultValue:_,onChange:f,onBlur:j,onFocus:u,onKeyDown:b,disabled:g,name:N,autoComplete:w,form:I,...y},F)=>{const k=h.useRef(null),v=h.useRef(null);h.useImperativeHandle(F,()=>k.current);const $=d??(t?`vui-select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),G=$?`${$}-error`:void 0,Z=$?`${$}-hint`:void 0,ce=$?`${$}-listbox`:void 0,Le=$?`${$}-label`:void 0,z=h.useMemo(()=>l||xo(p),[p,l]),Ce=m!==void 0,ne=z.find(x=>!x.disabled),mt=String(_??(r?"":(ne==null?void 0:ne.value)??"")),[Fe,Oe]=h.useState(mt),Ie=String(Ce?m??"":Fe),[oe,de]=h.useState(!1),[je,ze]=h.useState(-1);h.useEffect(()=>{if(Ce||!z.length)return;z.some(S=>S.value===Fe)||Oe((ne==null?void 0:ne.value)??"")},[z,Ce,Fe,ne]),h.useEffect(()=>{const x=S=>{v.current&&!v.current.contains(S.target)&&de(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const Se=z.find(x=>x.value===Ie),ft=(Se==null?void 0:Se.label)??r??"",xt=[B.trigger,B[n],s?B.hasError:"",i?B.fullWidth:"",oe?B.isOpen:"",c??""].filter(Boolean).join(" "),Ue=x=>{var W;Ce||Oe(x);const S=k.current;if(S){const ge=(W=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:W.set;ge==null||ge.call(S,x),S.dispatchEvent(new Event("change",{bubbles:!0}))}},Ae=()=>{if(g||!z.length)return;de(!0);const x=z.findIndex(W=>W.value===Ie&&!W.disabled);if(x>=0){ze(x);return}const S=z.findIndex(W=>!W.disabled);ze(S)},Ve=x=>{if(!z.length)return;let S=je;for(let W=0;W<z.length;W+=1)if(S=(S+x+z.length)%z.length,!z[S].disabled){ze(S);return}},bt=x=>{if(b==null||b(x),!x.defaultPrevented){if(!oe&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault(),Ae();return}if(!oe&&(x.key==="Enter"||x.key===" ")){x.preventDefault(),Ae();return}if(oe){if(x.key==="Escape"){x.preventDefault(),de(!1);return}if(x.key==="ArrowDown"){x.preventDefault(),Ve(1);return}if(x.key==="ArrowUp"){x.preventDefault(),Ve(-1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),je>=0&&!z[je].disabled&&(Ue(z[je].value),de(!1)))}}};return e.jsxs("div",{className:`${B.wrapper}${i?` ${B.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{id:Le,className:B.label,children:[t,a&&e.jsx("span",{className:B.required,"aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:B.selectWrapper,ref:v,children:[e.jsxs("select",{ref:k,id:$,className:B.hiddenSelect,value:Ie,required:a,disabled:g,name:N,form:I,autoComplete:w,"aria-invalid":!!s,"aria-describedby":[s?G:null,o&&!s?Z:null].filter(Boolean).join(" ")||void 0,"aria-hidden":"true",tabIndex:-1,onChange:f??(()=>{}),...y,children:[r&&e.jsx("option",{value:"",disabled:a,children:r}),z.map(x=>e.jsx("option",{value:x.value,disabled:x.disabled,children:x.label},x.value))]}),e.jsx("button",{type:"button",className:xt,disabled:g,role:"combobox","aria-invalid":!!s,"aria-labelledby":Le,"aria-haspopup":"listbox","aria-expanded":oe,"aria-controls":ce,onClick:()=>oe?de(!1):Ae(),onKeyDown:bt,onFocus:x=>u==null?void 0:u(x),onBlur:x=>j==null?void 0:j(x),children:e.jsx("span",{className:`${B.valueText}${Se?"":` ${B.placeholder}`}`,children:ft})}),e.jsx("span",{className:B.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"})})}),oe&&e.jsx("ul",{id:ce,role:"listbox",className:B.menu,children:z.map((x,S)=>{const W=x.value===Ie,ge=S===je;return e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":W,className:[B.option,W?B.optionSelected:"",ge?B.optionFocused:""].filter(Boolean).join(" "),disabled:x.disabled,onMouseEnter:()=>ze(S),onClick:()=>{Ue(x.value),de(!1)},children:[e.jsx("span",{className:B.optionLabel,children:x.label}),e.jsx("span",{className:`${B.optionCheck}${W?` ${B.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"})})})]})},x.value)})})]}),s&&e.jsx("span",{id:G,className:B.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:Z,className:B.hint,children:o})]})});ot.displayName="Select";const bo="_wrapper_iu9cq_1",jo="_row_iu9cq_7",go="_checkbox_iu9cq_14",vo="_hasError_iu9cq_51",wo="_sm_iu9cq_60",$o="_md_iu9cq_74",yo="_lg_iu9cq_88",ko="_label_iu9cq_102",No="_description_iu9cq_113",Bo="_errorText_iu9cq_123",X={wrapper:bo,row:jo,checkbox:go,hasError:vo,sm:wo,md:$o,lg:yo,label:ko,description:No,errorText:Bo},at=h.forwardRef(({label:t,description:n,error:s,size:o="md",className:a,id:i,...l},r)=>{const c=i??(t?`vui-checkbox-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),d=c?`${c}-error`:void 0,p=c&&n?`${c}-desc`:void 0,m=[X.checkbox,X[o],s?X.hasError:"",a??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${X.wrapper} ${X[o]}`,children:[e.jsxs("div",{className:X.row,children:[e.jsx("input",{ref:r,type:"checkbox",id:c,className:m,"aria-invalid":!!s,"aria-describedby":[s?d:null,p].filter(Boolean).join(" ")||void 0,...l}),t&&e.jsx("label",{htmlFor:c,className:X.label,children:t})]}),n&&!s&&e.jsx("span",{id:p,className:X.description,children:n}),s&&e.jsx("span",{id:d,className:X.errorText,role:"alert",children:s})]})});at.displayName="Checkbox";const Lo="_fieldset_nj7or_1",Co="_legend_nj7or_10",Io="_required_nj7or_19",zo="_group_nj7or_24",So="_vertical_nj7or_28",Ro="_horizontal_nj7or_33",Wo="_option_nj7or_39",To="_radio_nj7or_46",Eo="_hasError_nj7or_81",Do="_sm_nj7or_86",qo="_md_nj7or_87",Mo="_lg_nj7or_88",Fo="_optionContent_nj7or_90",Ao="_optionLabel_nj7or_96",Po="_optionDescription_nj7or_107",Ho="_hint_nj7or_113",Oo="_errorText_nj7or_119",T={fieldset:Lo,legend:Co,required:Io,group:zo,vertical:So,horizontal:Ro,option:Wo,radio:To,hasError:Eo,sm:Do,md:qo,lg:Mo,optionContent:Fo,optionLabel:Ao,optionDescription:Po,hint:Ho,errorText:Oo},Uo=({name:t,label:n,options:s,value:o,defaultValue:a,onChange:i,size:l="md",orientation:r="vertical",error:c,hint:d,required:p})=>{const m=`vui-radiogroup-${t}`,_=`${m}-error`,f=`${m}-hint`,j=o!==void 0;return e.jsxs("fieldset",{className:`${T.fieldset} ${T[l]}`,"aria-describedby":[c?_:null,d&&!c?f:null].filter(Boolean).join(" ")||void 0,children:[n&&e.jsxs("legend",{className:T.legend,children:[n,p&&e.jsx("span",{className:T.required,"aria-hidden":"true",children:"*"})]}),e.jsx("div",{className:`${T.group} ${T[r]}`,children:s.map(u=>{const b=`${m}-${u.value}`,g=j?{checked:o===u.value}:{defaultChecked:a===u.value};return e.jsxs("div",{className:T.option,children:[e.jsx("input",{type:"radio",id:b,name:t,value:u.value,disabled:u.disabled,required:p,onChange:()=>i==null?void 0:i(u.value),className:`${T.radio} ${c?T.hasError:""}`,"aria-invalid":c?!0:void 0,...g}),e.jsxs("div",{className:T.optionContent,children:[e.jsx("label",{htmlFor:b,className:T.optionLabel,children:u.label}),u.description&&e.jsx("span",{className:T.optionDescription,children:u.description})]})]},u.value)})}),c&&e.jsx("span",{id:_,className:T.errorText,role:"alert",children:c}),d&&!c&&e.jsx("span",{id:f,className:T.hint,children:d})]})},Vo="_wrapper_okiio_1",Go="_labelRow_okiio_7",Xo="_track_okiio_15",Yo="_input_okiio_23",Ko="_thumb_okiio_32",Jo="_labelText_okiio_65",Qo="_sm_okiio_74",Zo="_md_okiio_80",ea="_lg_okiio_86",ta="_description_okiio_98",ee={wrapper:Vo,labelRow:Go,track:Xo,input:Yo,thumb:Ko,labelText:Jo,sm:Qo,md:Zo,lg:ea,description:ta},rt=h.forwardRef(({label:t,description:n,size:s="md",className:o,id:a,...i},l)=>{const r=a??(t?`vui-switch-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),c=r&&n?`${r}-desc`:void 0;return e.jsxs("div",{className:`${ee.wrapper} ${ee[s]}`,children:[e.jsxs("label",{className:ee.labelRow,htmlFor:r,children:[e.jsxs("span",{className:ee.track,children:[e.jsx("input",{ref:l,type:"checkbox",role:"switch",id:r,className:`${ee.input} ${o??""}`,"aria-describedby":c||void 0,...i}),e.jsx("span",{className:ee.thumb,"aria-hidden":"true"})]}),t&&e.jsx("span",{className:ee.labelText,children:t})]}),n&&e.jsx("span",{id:c,className:ee.description,children:n})]})});rt.displayName="Switch";const sa="_overlay_gedqr_1",na="_overlayFadeIn_gedqr_1",oa="_dialog_gedqr_19",aa="_dialogSlideUp_gedqr_1",ra="_sm_gedqr_39",ia="_md_gedqr_40",la="_lg_gedqr_41",ca="_xl_gedqr_42",da="_header_gedqr_45",_a="_title_gedqr_51",ua="_description_gedqr_59",pa="_body_gedqr_66",ha="_footer_gedqr_71",ma="_closeBtn_gedqr_81",V={overlay:sa,overlayFadeIn:na,dialog:oa,dialogSlideUp:aa,sm:ra,md:ia,lg:la,xl:ca,header:da,title:_a,description:ua,body:pa,footer:ha,closeBtn:ma},Ge='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',it=({children:t,className:n,...s})=>e.jsx("div",{className:`${V.header} ${n??""}`,...s,children:t});it.displayName="Dialog.Header";const lt=({children:t,className:n,...s})=>e.jsx("div",{className:`${V.body} ${n??""}`,...s,children:t});lt.displayName="Dialog.Body";const ct=({children:t,className:n,...s})=>e.jsx("div",{className:`${V.footer} ${n??""}`,...s,children:t});ct.displayName="Dialog.Footer";const Xe={current:0},fa=({open:t,onClose:n,title:s,description:o,size:a="md",children:i,className:l,closeOnOverlayClick:r=!0})=>{const c=h.useRef(null),d=h.useRef(`vui-dialog-title-${++Xe.current}`).current,p=h.useRef(`vui-dialog-desc-${Xe.current}`).current,m=h.useRef(null);if(h.useEffect(()=>{if(!t)return;m.current=document.activeElement,document.body.style.overflow="hidden";const j=requestAnimationFrame(()=>{var g,N;const b=(g=c.current)==null?void 0:g.querySelectorAll(Ge);(N=b==null?void 0:b[0])==null||N.focus()}),u=b=>{if(b.key==="Escape"){n();return}if(b.key==="Tab"&&c.current){const g=Array.from(c.current.querySelectorAll(Ge));if(g.length===0){b.preventDefault();return}const N=g[0],w=g[g.length-1];b.shiftKey?document.activeElement===N&&(w.focus(),b.preventDefault()):document.activeElement===w&&(N.focus(),b.preventDefault())}};return document.addEventListener("keydown",u),()=>{var b;cancelAnimationFrame(j),document.removeEventListener("keydown",u),document.body.style.overflow="",(b=m.current)==null||b.focus()}},[t,n]),!t)return null;const _=f=>{r&&f.target===f.currentTarget&&n()};return e.jsx("div",{className:V.overlay,onClick:_,"aria-modal":"true",role:"presentation",children:e.jsxs("div",{ref:c,role:"dialog","aria-labelledby":s?d:void 0,"aria-describedby":o?p:void 0,className:[V.dialog,V[a],l??""].filter(Boolean).join(" "),children:[s&&e.jsxs("div",{className:V.header,children:[e.jsx("p",{id:d,className:V.title,children:s}),o&&e.jsx("p",{id:p,className:V.description,children:o})]}),i,e.jsx("button",{type:"button",className:V.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"})})})]})})},Be=fa;Be.Header=it;Be.Body=lt;Be.Footer=ct;Be.displayName="Dialog";const xa="_wrapper_16e9w_1",ba="_tooltip_16e9w_6",ja="_visible_16e9w_25",ga="_top_16e9w_30",va="_bottom_16e9w_36",wa="_left_16e9w_42",$a="_right_16e9w_48",ya="_arrow_16e9w_55",ka="_arrowTop_16e9w_61",Na="_arrowBottom_16e9w_70",Ba="_arrowLeft_16e9w_79",La="_arrowRight_16e9w_88",_e={wrapper:xa,tooltip:ba,visible:ja,top:ga,bottom:va,left:wa,right:$a,arrow:ya,arrowTop:ka,arrowBottom:Na,arrowLeft:Ba,arrowRight:La},Ca=({content:t,children:n,placement:s="top",delay:o=0})=>{const[a,i]=h.useState(!1),r=`vui-tooltip-${h.useId().replace(/:/g,"")}`,c=h.useRef(null),d=()=>{o>0?c.current=setTimeout(()=>i(!0),o):i(!0)},p=()=>{c.current&&clearTimeout(c.current),i(!1)},m=h.cloneElement(n,{"aria-describedby":a?r:void 0});return e.jsxs("span",{className:_e.wrapper,onMouseEnter:d,onMouseLeave:p,onFocus:d,onBlur:p,children:[m,e.jsxs("span",{id:r,role:"tooltip",className:[_e.tooltip,_e[s],a?_e.visible:""].filter(Boolean).join(" "),"aria-hidden":!a,children:[t,e.jsx("span",{className:`${_e.arrow} ${_e[`arrow${s.charAt(0).toUpperCase()}${s.slice(1)}`]}`,"aria-hidden":"true"})]})]})},Ia="_tabs_16y0p_1",za="_tablist_16y0p_8",Sa="_underline_16y0p_14",Ra="_tab_16y0p_1",Wa="_activeTab_16y0p_39",Ta="_pills_16y0p_50",Ea="_boxed_16y0p_89",Da="_panel_16y0p_139",ue={tabs:Ia,tablist:za,underline:Sa,tab:Ra,activeTab:Wa,pills:Ta,boxed:Ea,panel:Da},qa=({items:t,defaultValue:n,value:s,onChange:o,variant:a="underline"})=>{var j;const i=s!==void 0,[l,r]=h.useState(n??((j=t[0])==null?void 0:j.value)??""),c=i?s:l,d=h.useRef(null),p=u=>{i||r(u),o==null||o(u)},m=(u,b)=>{var I;const g=t.filter(y=>!y.disabled),N=g.findIndex(y=>y.value===t[b].value);let w=null;if(u.key==="ArrowRight"?w=(N+1)%g.length:u.key==="ArrowLeft"?w=(N-1+g.length)%g.length:u.key==="Home"?w=0:u.key==="End"&&(w=g.length-1),w!==null){u.preventDefault();const y=g[w];p(y.value);const F=(I=d.current)==null?void 0:I.querySelector(`[data-value="${y.value}"]`);F==null||F.focus()}},_=u=>`vui-tabpanel-${u}`,f=u=>`vui-tab-${u}`;return e.jsxs("div",{className:ue.tabs,children:[e.jsx("div",{ref:d,role:"tablist",className:[ue.tablist,ue[a]].filter(Boolean).join(" "),children:t.map((u,b)=>e.jsx("button",{id:f(u.value),role:"tab",type:"button","data-value":u.value,"aria-selected":c===u.value,"aria-controls":_(u.value),disabled:u.disabled,tabIndex:c===u.value?0:-1,className:[ue.tab,c===u.value?ue.activeTab:""].filter(Boolean).join(" "),onClick:()=>p(u.value),onKeyDown:g=>m(g,b),children:u.label},u.value))}),t.map(u=>e.jsx("div",{id:_(u.value),role:"tabpanel","aria-labelledby":f(u.value),hidden:c!==u.value,className:ue.panel,children:u.children},u.value))]})},Ma="_accordion_wacbm_1",Fa="_bordered_wacbm_7",Aa="_item_wacbm_13",Pa="_flush_wacbm_17",Ha="_separated_wacbm_21",Oa="_heading_wacbm_35",Ua="_trigger_wacbm_40",Va="_icon_wacbm_72",Ga="_open_wacbm_80",Xa="_contentOuter_wacbm_85",Ya="_contentInner_wacbm_95",Y={accordion:Ma,bordered:Fa,item:Aa,flush:Pa,separated:Ha,heading:Oa,trigger:Ua,icon:Va,open:Ga,contentOuter:Xa,contentInner:Ya},Ka=({items:t,defaultValue:n,value:s,onChange:o,multiple:a=!1,variant:i="bordered"})=>{const l=s!==void 0,r=_=>_?Array.isArray(_)?_:[_]:[],[c,d]=h.useState(r(n)),p=l?r(s):c,m=_=>{let f;p.includes(_)?f=p.filter(j=>j!==_):f=a?[...p,_]:[_],l||d(f),o==null||o(a?f:f[0]??"")};return e.jsx("div",{className:[Y.accordion,Y[i]].filter(Boolean).join(" "),children:t.map(_=>{const f=p.includes(_.value),j=`vui-accordion-trigger-${_.value}`,u=`vui-accordion-panel-${_.value}`;return e.jsxs("div",{className:[Y.item,f?Y.open:""].filter(Boolean).join(" "),children:[e.jsx("h3",{className:Y.heading,children:e.jsxs("button",{id:j,type:"button","aria-expanded":f,"aria-controls":u,disabled:_.disabled,className:Y.trigger,onClick:()=>!_.disabled&&m(_.value),children:[e.jsx("span",{children:_.title}),e.jsx("span",{className:Y.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":j,className:Y.contentOuter,children:e.jsx("div",{className:Y.contentInner,children:_.content})})]},_.value)})})},Ja="_alert_b1vtk_1",Qa="_icon_b1vtk_12",Za="_content_b1vtk_19",er="_title_b1vtk_24",tr="_body_b1vtk_31",sr="_closeBtn_b1vtk_35",nr="_info_b1vtk_64",or="_success_b1vtk_70",ar="_warning_b1vtk_76",rr="_danger_b1vtk_82",re={alert:Ja,icon:Qa,content:Za,title:er,body:tr,closeBtn:sr,info:nr,success:or,warning:ar,danger:rr},ir=()=>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"})}),lr=()=>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"})}),cr=()=>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"})}),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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),_r={info:e.jsx(ir,{}),success:e.jsx(lr,{}),warning:e.jsx(cr,{}),danger:e.jsx(dr,{})},ur=({variant:t="info",title:n,icon:s,onClose:o,children:a,className:i,...l})=>{const r=[re.alert,re[t],i??""].filter(Boolean).join(" "),c=s!==void 0?s:_r[t];return e.jsxs("div",{className:r,role:"alert",...l,children:[c&&e.jsx("span",{className:re.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:re.content,children:[n&&e.jsx("p",{className:re.title,children:n}),e.jsx("div",{className:re.body,children:a})]}),o&&e.jsx("button",{type:"button",className:re.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"})})})]})},pr="_divider_vfae1_1",hr="_horizontal_vfae1_6",mr="_vertical_vfae1_12",fr="_withLabel_vfae1_19",xr="_label_vfae1_33",We={divider:pr,horizontal:hr,vertical:mr,withLabel:fr,label:xr},br=({orientation:t="horizontal",label:n,className:s,...o})=>{const a=[We.divider,We[t],n?We.withLabel:"",s??""].filter(Boolean).join(" ");return e.jsx("div",{role:"separator","aria-orientation":t,className:a,...o,children:n&&e.jsx("span",{className:We.label,children:n})})},jr="_spinner_1232t_1",gr="_svg_1232t_8",vr="_spin_1232t_1",wr="_track_1232t_17",$r="_arc_1232t_21",yr="_sm_1232t_27",kr="_md_1232t_33",Nr="_lg_1232t_39",Br="_primary_1232t_46",Lr="_muted_1232t_50",Cr="_white_1232t_54",pe={spinner:jr,svg:gr,spin:vr,track:wr,arc:$r,sm:yr,md:kr,lg:Nr,primary:Br,muted:Lr,white:Cr},Ir=({size:t="md",color:n="primary",label:s="Loading…",className:o,...a})=>{const i=[pe.spinner,pe[t],pe[n],o??""].filter(Boolean).join(" ");return e.jsx("span",{className:i,role:"status","aria-label":s,...a,children:e.jsxs("svg",{className:pe.svg,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{className:pe.track,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),e.jsx("circle",{className:pe.arc,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})})},zr="_block_tuupu_1",Sr="_stack_tuupu_13",Pe={block:zr,stack:Sr},ie=t=>{if(t!==void 0)return typeof t=="number"?`${t}px`:t},Rr=({width:t,height:n,radius:s,lines:o,gap:a,className:i,style:l,...r})=>{if(o&&o>1){const c=ie(a)??"0.5rem";return e.jsx("span",{className:[Pe.stack,i??""].filter(Boolean).join(" "),style:{gap:c,...l},"aria-hidden":"true",...r,children:Array.from({length:o}).map((d,p)=>{const m=p===o-1;return e.jsx("span",{className:Pe.block,style:{width:m?"75%":ie(t)??"100%",height:ie(n)??"1rem",borderRadius:ie(s)??"var(--vui-radius-sm, 0.375rem)"}},p)})})}return e.jsx("span",{className:[Pe.block,i??""].filter(Boolean).join(" "),style:{width:ie(t),height:ie(n)??"1rem",borderRadius:ie(s)??"var(--vui-radius-sm, 0.375rem)",...l},"aria-hidden":"true",...r})},Wr="_wrapper_xgu51_1",Tr="_labelRow_xgu51_8",Er="_label_xgu51_8",Dr="_value_xgu51_20",qr="_track_xgu51_26",Mr="_sm_xgu51_33",Fr="_md_xgu51_34",Ar="_lg_xgu51_35",Pr="_bar_xgu51_37",Hr="_primary_xgu51_43",Or="_success_xgu51_44",Ur="_warning_xgu51_45",Vr="_danger_xgu51_46",te={wrapper:Wr,labelRow:Tr,label:Er,value:Dr,track:qr,sm:Mr,md:Fr,lg:Ar,bar:Pr,primary:Hr,success:Or,warning:Ur,danger:Vr},Gr=({value:t,variant:n="primary",size:s="md",label:o,showValue:a=!1,className:i,...l})=>{const r=Math.min(100,Math.max(0,t));return e.jsxs("div",{className:[te.wrapper,i??""].filter(Boolean).join(" "),...l,children:[(o||a)&&e.jsxs("div",{className:te.labelRow,children:[o&&e.jsx("span",{className:te.label,children:o}),a&&e.jsxs("span",{className:te.value,children:[r,"%"]})]}),e.jsx("div",{className:[te.track,te[s]].filter(Boolean).join(" "),role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o??`${r}%`,children:e.jsx("div",{className:[te.bar,te[n]].filter(Boolean).join(" "),style:{width:`${r}%`}})})]})},Xr="_container_2etd3_1",Yr="_toast_2etd3_14",Kr="_slideUp_2etd3_1",Jr="_message_2etd3_31",Qr="_close_2etd3_38",Zr="_info_2etd3_63",ei="_success_2etd3_69",ti="_warning_2etd3_75",si="_danger_2etd3_81",ke={container:Xr,toast:Yr,slideUp:Kr,message:Jr,close:Qr,info:Zr,success:ei,warning:ti,danger:si},dt=h.createContext(null);let ni=0;const oi=()=>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"})}),ai=({item:t,onRemove:n})=>{const s=h.useRef(null);h.useEffect(()=>{const a=t.duration??4e3;return a>0&&(s.current=setTimeout(()=>n(t.id),a)),()=>{s.current&&clearTimeout(s.current)}},[t.id,t.duration,n]);const o=[ke.toast,ke[t.variant??"info"]].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"alert","aria-live":"assertive",children:[e.jsx("span",{className:ke.message,children:t.message}),e.jsx("button",{type:"button",className:ke.close,onClick:()=>n(t.id),"aria-label":"Dismiss notification",children:e.jsx(oi,{})})]})},ri=({children:t})=>{const[n,s]=h.useState([]),o=h.useCallback(i=>{const l=`toast-${++ni}`;s(r=>[...r,{...i,id:l}])},[]),a=h.useCallback(i=>{s(l=>l.filter(r=>r.id!==i))},[]);return e.jsxs(dt.Provider,{value:{addToast:o,removeToast:a},children:[t,typeof document<"u"&&He.createPortal(e.jsx("div",{className:ke.container,"aria-label":"Notifications",children:n.map(i=>e.jsx(ai,{item:i,onRemove:a},i.id))}),document.body)]})},ii=()=>{const t=h.useContext(dt);if(!t)throw new Error("useToast must be used inside <ToastProvider>");return t},li="_avatar_14l02_1",ci="_xs_14l02_15",di="_sm_14l02_16",_i="_md_14l02_17",ui="_lg_14l02_18",pi="_xl_14l02_19",hi="_circle_14l02_22",mi="_square_14l02_23",fi="_img_14l02_25",xi="_initials_14l02_32",bi="_fallbackIcon_14l02_37",ji="_status_14l02_44",gi="_online_14l02_57",vi="_away_14l02_58",wi="_offline_14l02_59",$i="_statusPulse_14l02_61",yi="_avatarStatusPulse_14l02_1",K={avatar:li,xs:ci,sm:di,md:_i,lg:ui,xl:pi,circle:hi,square:mi,img:fi,initials:xi,fallbackIcon:bi,status:ji,online:gi,away:vi,offline:wi,statusPulse:$i,avatarStatusPulse:yi};function ki(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 Ni=({src:t,alt:n,name:s,size:o="md",shape:a="circle",status:i,statusAnimation:l="none",className:r,...c})=>{const[d,p]=h.useState(!1),m=[K.avatar,K[o],K[a],r??""].filter(Boolean).join(" "),_=t&&!d,f=s?ki(s):null;return e.jsxs("span",{className:m,"aria-label":n??s,...c,children:[_?e.jsx("img",{src:t,alt:n??s??"",className:K.img,onError:()=>p(!0)}):f?e.jsx("span",{className:K.initials,"aria-hidden":"true",children:f}):e.jsx("svg",{className:K.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"})}),i&&e.jsx("span",{className:[K.status,K[i],l==="pulse"?K.statusPulse:""].filter(Boolean).join(" "),"aria-label":i})]})},Bi="_tag_13w40_1",Li="_sm_13w40_14",Ci="_md_13w40_19",Ii="_lg_13w40_24",zi="_info_13w40_36",Si="_success_13w40_42",Ri="_warning_13w40_48",Wi="_danger_13w40_54",Ti="_primary_13w40_60",Ei="_label_13w40_66",Di="_icon_13w40_70",qi="_close_13w40_75",he={tag:Bi,sm:Li,md:Ci,lg:Ii,default:"_default_13w40_30",info:zi,success:Si,warning:Ri,danger:Wi,primary:Ti,label:Ei,icon:Di,close:qi},Mi=({variant:t="default",size:n="md",onClose:s,leftIcon:o,children:a,className:i,...l})=>{const r=[he.tag,he[t],he[n],i??""].filter(Boolean).join(" ");return e.jsxs("span",{className:r,...l,children:[o&&e.jsx("span",{className:he.icon,"aria-hidden":"true",children:o}),e.jsx("span",{className:he.label,children:a}),s&&e.jsx("button",{type:"button",className:he.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"})})})]})},Fi="_root_6ieqa_1",Ai="_icon_6ieqa_11",Pi="_title_6ieqa_23",Hi="_description_6ieqa_31",Oi="_action_6ieqa_39",ye={root:Fi,icon:Ai,title:Pi,description:Hi,action:Oi},Ui=({icon:t,title:n,description:s,action:o,className:a,...i})=>e.jsxs("div",{className:[ye.root,a??""].filter(Boolean).join(" "),...i,children:[t&&e.jsx("span",{className:ye.icon,"aria-hidden":"true",children:t}),e.jsx("p",{className:ye.title,children:n}),s&&e.jsx("p",{className:ye.description,children:s}),o&&e.jsx("div",{className:ye.action,children:o})]}),Vi="_nav_1s2na_1",Gi="_list_1s2na_5",Xi="_item_1s2na_15",Yi="_separator_1s2na_20",Ki="_crumb_1s2na_27",Ji="_link_1s2na_33",Qi="_current_1s2na_50",J={nav:Vi,list:Gi,item:Xi,separator:Yi,crumb:Ki,link:Ji,current:Qi},Zi=()=>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"})}),el=({items:t,separator:n,className:s,...o})=>{const a=n??e.jsx(Zi,{});return e.jsx("nav",{"aria-label":"Breadcrumb",className:[J.nav,s??""].filter(Boolean).join(" "),...o,children:e.jsx("ol",{className:J.list,children:t.map((i,l)=>{const r=l===t.length-1;return e.jsxs("li",{className:J.item,children:[l>0&&e.jsx("span",{className:J.separator,"aria-hidden":"true",children:a}),r||!i.href?e.jsx("span",{className:[J.crumb,r?J.current:J.link].filter(Boolean).join(" "),"aria-current":r?"page":void 0,children:i.label}):e.jsx("a",{href:i.href,className:[J.crumb,J.link].filter(Boolean).join(" "),children:i.label})]},l)})})})},tl="_nav_10kny_1",sl="_list_10kny_5",nl="_btn_10kny_14",ol="_disabled_10kny_32",al="_active_10kny_32",rl="_dots_10kny_54",D={nav:tl,list:sl,btn:nl,disabled:ol,active:al,dots:rl};function Te(t,n){const s=n-t+1;return Array.from({length:s},(o,a)=>t+a)}function il(t,n,s){const o=s*2+5;if(n<=o)return Te(1,n);const a=Math.max(t-s,1),i=Math.min(t+s,n),l=a>2,r=i<n-1;return!l&&r?[...Te(1,3+s*2),"...",n]:l&&!r?[1,"...",...Te(n-(2+s*2),n)]:[1,"...",...Te(a,i),"...",n]}const ll=()=>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"})}),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,d:"M9 18l6-6-6-6"})}),dl=()=>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"})}),_l=()=>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"})}),ul=({page:t,totalPages:n,onChange:s,siblingCount:o=1,showFirstLast:a=!0,className:i,...l})=>{const r=il(t,n,o),c=d=>{d<1||d>n||d===t||s(d)};return e.jsx("nav",{"aria-label":"Pagination",className:[D.nav,i??""].filter(Boolean).join(" "),...l,children:e.jsxs("ul",{className:D.list,children:[a&&e.jsx("li",{children:e.jsx("button",{className:[D.btn,t===1?D.disabled:""].filter(Boolean).join(" "),onClick:()=>c(1),disabled:t===1,"aria-label":"First page",children:e.jsx(dl,{})})}),e.jsx("li",{children:e.jsx("button",{className:[D.btn,t===1?D.disabled:""].filter(Boolean).join(" "),onClick:()=>c(t-1),disabled:t===1,"aria-label":"Previous page",children:e.jsx(ll,{})})}),r.map((d,p)=>d==="..."?e.jsx("li",{children:e.jsx("span",{className:D.dots,children:"…"})},`dots-${p}`):e.jsx("li",{children:e.jsx("button",{className:[D.btn,d===t?D.active:""].filter(Boolean).join(" "),onClick:()=>c(d),"aria-label":`Page ${d}`,"aria-current":d===t?"page":void 0,children:d})},d)),e.jsx("li",{children:e.jsx("button",{className:[D.btn,t===n?D.disabled:""].filter(Boolean).join(" "),onClick:()=>c(t+1),disabled:t===n,"aria-label":"Next page",children:e.jsx(cl,{})})}),a&&e.jsx("li",{children:e.jsx("button",{className:[D.btn,t===n?D.disabled:""].filter(Boolean).join(" "),onClick:()=>c(n),disabled:t===n,"aria-label":"Last page",children:e.jsx(_l,{})})})]})})},pl="_root_1wmfi_1",hl="_horizontal_1wmfi_6",ml="_vertical_1wmfi_11",fl="_step_1wmfi_16",xl="_connector_1wmfi_32",bl="_indicator_1wmfi_37",jl="_circle_1wmfi_55",gl="_pending_1wmfi_88",vl="_active_1wmfi_94",wl="_completed_1wmfi_100",$l="_content_1wmfi_111",yl="_label_1wmfi_127",kl="_description_1wmfi_139",q={root:pl,horizontal:hl,vertical:ml,step:fl,connector:xl,indicator:bl,circle:jl,pending:gl,active:vl,completed:wl,content:$l,label:yl,description:kl},Nl=()=>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"})}),Bl=({steps:t,currentStep:n,orientation:s="horizontal",variant:o="default",className:a,...i})=>{const l=[q.root,q[s],q[o],a??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,role:"list","aria-label":"Steps",...i,children:t.map((r,c)=>{const d=c+1,p=d<n,m=d===n,_=c===t.length-1,f=[q.step,p?q.completed:"",m?q.active:"",!p&&!m?q.pending:""].filter(Boolean).join(" ");return e.jsxs("div",{className:f,role:"listitem",children:[e.jsxs("div",{className:q.indicator,children:[e.jsx("span",{className:q.circle,children:p?e.jsx(Nl,{}):e.jsx("span",{children:d})}),!_&&e.jsx("span",{className:q.connector,"aria-hidden":"true"})]}),o!=="compact"&&e.jsxs("div",{className:q.content,children:[e.jsx("span",{className:q.label,children:r.label}),r.description&&e.jsx("span",{className:q.description,children:r.description})]})]},c)})})},Ll="_triggerWrapper_v2cko_1",Cl="_popover_v2cko_6",Il="_fadeIn_v2cko_1",zl="_arrow_v2cko_24",Sl="_bottom_v2cko_34",Rl="_top_v2cko_42",Wl="_right_v2cko_50",Tl="_left_v2cko_58",Ee={triggerWrapper:Ll,popover:Cl,fadeIn:Il,arrow:zl,bottom:Sl,top:Rl,right:Wl,left:Tl};function El(t,n,s){const{top:o,left:a,bottom:i,right:l,width:r,height:c}=t,d=n.offsetWidth,p=n.offsetHeight,m=8;switch(s){case"top":return{top:o-p-m+window.scrollY,left:a+r/2-d/2+window.scrollX};case"bottom":return{top:i+m+window.scrollY,left:a+r/2-d/2+window.scrollX};case"left":return{top:o+c/2-p/2+window.scrollY,left:a-d-m+window.scrollX};case"right":return{top:o+c/2-p/2+window.scrollY,left:l+m+window.scrollX}}}const Dl=({trigger:t,content:n,placement:s="bottom",open:o,onOpenChange:a,className:i})=>{const l=o!==void 0,[r,c]=h.useState(!1),d=l?o:r,p=h.useRef(null),m=h.useRef(null),[_,f]=h.useState({top:0,left:0}),j=h.useCallback(g=>{l||c(g),a==null||a(g)},[l,a]),u=h.useCallback(()=>{if(!p.current||!m.current)return;const g=p.current.getBoundingClientRect();f(El(g,m.current,s))},[s]);h.useEffect(()=>{if(d)return u(),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0)}},[d,u]),h.useEffect(()=>{if(!d)return;const g=w=>{var I,y;!((I=p.current)!=null&&I.contains(w.target))&&!((y=m.current)!=null&&y.contains(w.target))&&j(!1)},N=w=>{w.key==="Escape"&&j(!1)};return document.addEventListener("mousedown",g),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",g),document.removeEventListener("keydown",N)}},[d,j]);const b=[Ee.popover,Ee[s],i??""].filter(Boolean).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:p,className:Ee.triggerWrapper,onClick:()=>j(!d),"aria-expanded":d,"aria-haspopup":"true",children:t}),d&&typeof document<"u"&&He.createPortal(e.jsxs("div",{ref:m,className:b,style:{top:_.top,left:_.left},role:"dialog",children:[e.jsx("div",{className:Ee.arrow,"aria-hidden":"true"}),n]}),document.body)]})},ql="_triggerWrapper_19rgz_1",Ml="_menu_19rgz_6",Fl="_item_19rgz_23",Al="_itemDisabled_19rgz_41",Pl="_itemIcon_19rgz_56",Hl="_separator_19rgz_63",me={triggerWrapper:ql,menu:Ml,item:Fl,itemDisabled:Al,itemIcon:Pl,separator:Hl};function Ol(t,n,s){const{top:o,left:a,bottom:i,right:l}=t,r=n.offsetHeight,c=n.offsetWidth,d=4;switch(s){case"bottom-start":return{top:i+d+window.scrollY,left:a+window.scrollX};case"bottom-end":return{top:i+d+window.scrollY,left:l-c+window.scrollX};case"top-start":return{top:o-r-d+window.scrollY,left:a+window.scrollX};case"top-end":return{top:o-r-d+window.scrollY,left:l-c+window.scrollX};default:return{top:i+d+window.scrollY,left:a+window.scrollX}}}const Ul=({trigger:t,items:n,placement:s="bottom-start",className:o})=>{const[a,i]=h.useState(!1),l=h.useRef(null),r=h.useRef(null),[c,d]=h.useState({top:0,left:0}),p=h.useCallback(()=>{if(!l.current||!r.current)return;const _=l.current.getBoundingClientRect();d(Ol(_,r.current,s))},[s]);h.useEffect(()=>{if(a)return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0)}},[a,p]),h.useEffect(()=>{if(!a)return;const _=j=>{var u,b;!((u=l.current)!=null&&u.contains(j.target))&&!((b=r.current)!=null&&b.contains(j.target))&&i(!1)},f=j=>{var u;if(j.key==="Escape"){i(!1);const b=(u=l.current)==null?void 0:u.querySelector("button, a, [tabindex]");b==null||b.focus()}};return document.addEventListener("mousedown",_),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",f)}},[a]);const m=_=>{var f;_.disabled||((f=_.onClick)==null||f.call(_),i(!1))};return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:l,className:me.triggerWrapper,onClick:()=>i(_=>!_),"aria-haspopup":"menu","aria-expanded":a,children:t}),a&&typeof document<"u"&&He.createPortal(e.jsx("div",{ref:r,className:[me.menu,o??""].filter(Boolean).join(" "),style:{top:c.top,left:c.left},role:"menu",children:n.map((_,f)=>_.separator?e.jsx("div",{className:me.separator,role:"separator"},f):e.jsxs("button",{type:"button",role:"menuitem",className:[me.item,_.disabled?me.itemDisabled:""].filter(Boolean).join(" "),onClick:()=>m(_),disabled:_.disabled,children:[_.icon&&e.jsx("span",{className:me.itemIcon,"aria-hidden":"true",children:_.icon}),e.jsx("span",{children:_.label})]},f))}),document.body)]})},Vl="_wrapper_13j54_1",Gl="_wrapperDisabled_13j54_8",Xl="_labelRow_13j54_13",Yl="_label_13j54_13",Kl="_valueDisplay_13j54_25",Jl="_trackWrapper_13j54_31",Ql="_sm_13j54_37",Zl="_md_13j54_38",ec="_lg_13j54_39",tc="_trackBg_13j54_41",sc="_trackFill_13j54_51",nc="_input_13j54_61",U={wrapper:Vl,wrapperDisabled:Gl,labelRow:Xl,label:Yl,valueDisplay:Kl,trackWrapper:Jl,sm:Ql,md:Zl,lg:ec,trackBg:tc,trackFill:sc,input:nc},oc=({min:t=0,max:n=100,step:s=1,value:o,onChange:a,label:i,showValue:l=!1,size:r="md",disabled:c,className:d,id:p,...m})=>{const _=h.useId(),f=p??_,j=o!==void 0?(o-t)/(n-t)*100:0;return e.jsxs("div",{className:[U.wrapper,c?U.wrapperDisabled:"",d??""].filter(Boolean).join(" "),children:[(i||l)&&e.jsxs("div",{className:U.labelRow,children:[i&&e.jsx("label",{htmlFor:f,className:U.label,children:i}),l&&o!==void 0&&e.jsx("span",{className:U.valueDisplay,children:o})]}),e.jsxs("div",{className:[U.trackWrapper,U[r]].filter(Boolean).join(" "),children:[e.jsx("div",{className:U.trackBg}),e.jsx("div",{className:U.trackFill,style:{width:`${j}%`}}),e.jsx("input",{id:f,type:"range",min:t,max:n,step:s,value:o,disabled:c,onChange:u=>a==null?void 0:a(Number(u.target.value)),className:U.input,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,...m})]})]})},ac="_root_q5j4f_1",rc="_label_q5j4f_7",ic="_required_q5j4f_14",lc="_wrapper_q5j4f_18",cc="_hasError_q5j4f_33",dc="_disabled_q5j4f_41",_c="_sm_q5j4f_47",uc="_md_q5j4f_48",pc="_lg_q5j4f_49",hc="_input_q5j4f_51",mc="_stepBtn_q5j4f_72",fc="_errorMsg_q5j4f_96",xc="_hintMsg_q5j4f_103",A={root:ac,label:rc,required:ic,wrapper:lc,hasError:cc,disabled:dc,sm:_c,md:uc,lg:pc,input:hc,stepBtn:mc,errorMsg:fc,hintMsg:xc},bc=({value:t,onChange:n,min:s,max:o,step:a=1,label:i,error:l,hint:r,size:c="md",disabled:d,required:p,id:m,className:_,...f})=>{const j=h.useId(),u=m??j,b=`${u}-hint`,g=`${u}-error`,N=()=>{const y=(t??0)-a;s!==void 0&&y<s||n==null||n(y)},w=()=>{const y=(t??0)+a;o!==void 0&&y>o||n==null||n(y)},I=[A.wrapper,A[c],l?A.hasError:"",d?A.disabled:"",_??""].filter(Boolean).join(" ");return e.jsxs("div",{className:A.root,children:[i&&e.jsxs("label",{htmlFor:u,className:A.label,children:[i,p&&e.jsx("span",{className:A.required,"aria-hidden":"true",children:" *"})]}),e.jsxs("div",{className:I,children:[e.jsx("button",{type:"button",className:A.stepBtn,onClick:N,disabled:d||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:A.input,value:t,min:s,max:o,step:a,disabled:d,required:p,"aria-invalid":!!l,"aria-describedby":l?g:r?b:void 0,onChange:y=>n==null?void 0:n(y.target.valueAsNumber),...f}),e.jsx("button",{type:"button",className:A.stepBtn,onClick:w,disabled:d||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:g,className:A.errorMsg,role:"alert",children:l}),!l&&r&&e.jsx("p",{id:b,className:A.hintMsg,children:r})]})},jc="_root_10bwd_1",gc="_label_10bwd_7",vc="_zone_10bwd_14",wc="_zoneDisabled_10bwd_29",$c="_dragging_10bwd_34",yc="_zoneError_10bwd_39",kc="_hiddenInput_10bwd_48",Nc="_uploadIcon_10bwd_52",Bc="_zoneText_10bwd_56",Lc="_zoneLink_10bwd_61",Cc="_zoneHint_10bwd_68",Ic="_errorMsg_10bwd_73",zc="_fileList_10bwd_79",Sc="_fileItem_10bwd_88",Rc="_fileName_10bwd_98",Wc="_fileSize_10bwd_108",Tc="_removeBtn_10bwd_114",R={root:jc,label:gc,zone:vc,zoneDisabled:wc,dragging:$c,zoneError:yc,hiddenInput:kc,uploadIcon:Nc,zoneText:Bc,zoneLink:Lc,zoneHint:Cc,errorMsg:Ic,fileList:zc,fileItem:Sc,fileName:Rc,fileSize:Wc,removeBtn:Tc},Ec=()=>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 Ye(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Dc=({accept:t,multiple:n=!1,maxSize:s,onChange:o,label:a,hint:i,error:l,disabled:r=!1,className:c,id:d})=>{const p=h.useId(),m=d??p,_=h.useRef(null),[f,j]=h.useState(!1),[u,b]=h.useState([]),[g,N]=h.useState(null),w=l??g,I=v=>{if(!v)return;const $=Array.from(v);if(s&&$.filter(ce=>ce.size>s).length>0){N(`File exceeds maximum size of ${Ye(s)}.`);return}N(null);const G=n?$:$.slice(0,1);b(G),o==null||o(G)},y=v=>{v.preventDefault(),j(!1),r||I(v.dataTransfer.files)},F=v=>{const $=u.filter((G,Z)=>Z!==v);b($),o==null||o($)},k=[R.zone,f?R.dragging:"",w?R.zoneError:"",r?R.zoneDisabled:""].filter(Boolean).join(" ");return e.jsxs("div",{className:[R.root,c??""].filter(Boolean).join(" "),children:[a&&e.jsx("span",{className:R.label,children:a}),e.jsxs("label",{htmlFor:m,className:k,onDragOver:v=>{v.preventDefault(),r||j(!0)},onDragLeave:()=>j(!1),onDrop:y,children:[e.jsx("input",{ref:_,id:m,type:"file",accept:t,multiple:n,disabled:r,className:R.hiddenInput,onChange:v=>I(v.target.files)}),e.jsx("span",{className:R.uploadIcon,children:e.jsx(Ec,{})}),e.jsxs("span",{className:R.zoneText,children:[e.jsx("span",{className:R.zoneLink,children:"Choose files"})," or drag and drop"]}),i&&e.jsx("span",{className:R.zoneHint,children:i})]}),w&&e.jsx("p",{className:R.errorMsg,role:"alert",children:w}),u.length>0&&e.jsx("ul",{className:R.fileList,children:u.map((v,$)=>e.jsxs("li",{className:R.fileItem,children:[e.jsx("span",{className:R.fileName,children:v.name}),e.jsx("span",{className:R.fileSize,children:Ye(v.size)}),e.jsx("button",{type:"button",className:R.removeBtn,onClick:()=>F($),"aria-label":`Remove ${v.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"})})})]},$))})]})},qc="_wrapper_i5kin_1",Mc="_table_i5kin_8",Fc="_sm_i5kin_15",Ac="_th_i5kin_15",Pc="_td_i5kin_16",Hc="_md_i5kin_21",Oc="_lg_i5kin_27",Uc="_thContent_i5kin_43",Vc="_sortable_i5kin_49",Gc="_sortActive_i5kin_58",Xc="_sortIcon_i5kin_62",Yc="_tr_i5kin_72",Kc="_striped_i5kin_91",Jc="_bordered_i5kin_100",Qc="_empty_i5kin_105",M={wrapper:qc,table:Mc,sm:Fc,th:Ac,td:Pc,md:Hc,lg:Oc,thContent:Uc,sortable:Vc,sortActive:Gc,sortIcon:Xc,tr:Yc,striped:Kc,bordered:Jc,empty:Qc},Zc=()=>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"})}),ed=()=>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"})}),td=()=>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 sd({columns:t,data:n,sortKey:s,sortDir:o,onSort:a,striped:i=!1,bordered:l=!1,size:r="md",className:c,...d}){const p=_=>{if(!_.sortable||!a)return;const f=s===_.key&&o==="asc"?"desc":"asc";a(_.key,f)},m=[M.table,M[r],i?M.striped:"",l?M.bordered:""].filter(Boolean).join(" ");return e.jsx("div",{className:[M.wrapper,c??""].filter(Boolean).join(" "),...d,children:e.jsxs("table",{className:m,children:[e.jsx("thead",{children:e.jsx("tr",{children:t.map(_=>{const f=s===_.key,j=[M.th,_.sortable?M.sortable:"",f?M.sortActive:""].filter(Boolean).join(" ");return e.jsx("th",{className:j,onClick:()=>p(_),"aria-sort":f?o==="asc"?"ascending":"descending":_.sortable?"none":void 0,children:e.jsxs("span",{className:M.thContent,children:[_.header,_.sortable&&e.jsx("span",{className:M.sortIcon,children:f?o==="asc"?e.jsx(Zc,{}):e.jsx(ed,{}):e.jsx(td,{})})]})},_.key)})})}),e.jsx("tbody",{children:n.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length,className:M.empty,children:"No data available."})}):n.map((_,f)=>e.jsx("tr",{className:M.tr,children:t.map(j=>{const u=_[j.key],b=j.render?j.render(u,_,f):u;return e.jsx("td",{className:M.td,children:b},j.key)})},f))})]})})}const nd="_root_d7z0d_1",od="_sent_d7z0d_9",ad="_received_d7z0d_13",rd="_ai_d7z0d_14",id="_system_d7z0d_18",ld="_avatarSlot_d7z0d_23",cd="_avatar_d7z0d_23",dd="_avatarSpacer_d7z0d_37",_d="_content_d7z0d_42",ud="_header_d7z0d_60",pd="_username_d7z0d_67",hd="_time_d7z0d_73",md="_bubble_d7z0d_79",fd="_first_d7z0d_107",xd="_middle_d7z0d_111",bd="_last_d7z0d_115",jd="_systemText_d7z0d_141",gd="_body_d7z0d_150",vd="_cursor_d7z0d_155",wd="_cursorBlink_d7z0d_1",$d="_footer_d7z0d_166",yd="_actions_d7z0d_173",kd="_status_d7z0d_178",Nd="_statusRead_d7z0d_183",C={root:nd,sent:od,received:ad,ai:rd,system:id,avatarSlot:ld,avatar:cd,avatarSpacer:dd,content:_d,header:ud,username:pd,time:hd,bubble:md,first:fd,middle:xd,last:bd,systemText:jd,body:gd,cursor:vd,cursorBlink:wd,footer:$d,actions:yd,status:kd,statusRead:Nd};function Bd(){return e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Ke(){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 7 17l-5-5"}),e.jsx("path",{d:"m22 10-9.5 9.5L10 17"})]})}const Ld={sent:e.jsx(Bd,{}),delivered:e.jsx(Ke,{}),read:e.jsx(Ke,{})},Cd=({variant:t="received",avatar:n,username:s,timestamp:o,status:a,grouping:i="single",isStreaming:l=!1,actions:r,children:c,className:d,...p})=>{const m=[C.root,C[t],C[i],d??""].filter(Boolean).join(" ");if(t==="system")return e.jsx("div",{className:m,...p,children:e.jsx("div",{className:C.systemText,children:c})});const _=n&&(i==="single"||i==="last"),f=(s||o)&&(i==="single"||i==="first");return e.jsxs("div",{className:m,...p,children:[e.jsx("div",{className:C.avatarSlot,children:_?e.jsx("div",{className:C.avatar,children:n}):e.jsx("div",{className:C.avatarSpacer})}),e.jsxs("div",{className:C.content,children:[f&&e.jsxs("div",{className:C.header,children:[s&&e.jsx("span",{className:C.username,children:s}),o&&e.jsx("span",{className:C.time,children:o})]}),e.jsx("div",{className:C.bubble,children:e.jsxs("div",{className:C.body,children:[c,l&&e.jsx("span",{className:C.cursor,"aria-hidden":"true"})]})}),(r||a)&&e.jsxs("div",{className:C.footer,children:[r&&e.jsx("div",{className:C.actions,children:r}),a&&t==="sent"&&e.jsx("span",{className:`${C.status} ${a==="read"?C.statusRead:""}`,"aria-label":a,children:Ld[a]})]})]})]})},Id="_root_1w79c_1",zd="_disabled_1w79c_17",Sd="_textarea_1w79c_22",Rd="_slot_1w79c_46",Wd="_sendButton_1w79c_52",fe={root:Id,disabled:zd,textarea:Sd,slot:Rd,sendButton:Wd};function Td(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),e.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})}const _t=h.forwardRef(({value:t,onChange:n,onSend:s,onAttach:o,maxRows:a=5,leftSlot:i,rightSlot:l,showSendButton:r=!0,sendOnEnter:c=!0,placeholder:d="Type a message…",disabled:p,className:m,..._},f)=>{var F;const j=h.useRef(null),u=f??j,b=h.useCallback(()=>{const k=u.current;if(!k)return;k.style.height="auto";const $=(parseFloat(getComputedStyle(k).lineHeight)||20)*a;k.style.height=`${Math.min(k.scrollHeight,$)}px`},[a,u]);h.useEffect(()=>{b()},[t,b]);const g=k=>{n==null||n(k.target.value),b()},N=()=>{var v;const k=((v=u.current)==null?void 0:v.value)??t??"";k.trim()&&s&&s(k.trim())},w=k=>{var v;c&&k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),N()),(v=_.onKeyDown)==null||v.call(_,k)},I=[fe.root,p?fe.disabled:"",m??""].filter(Boolean).join(" "),y=(t??((F=u.current)==null?void 0:F.value)??"").trim().length>0;return e.jsxs("div",{className:I,children:[i&&e.jsx("div",{className:fe.slot,children:i}),e.jsx("textarea",{ref:u,className:fe.textarea,value:t,onChange:g,onKeyDown:w,placeholder:d,disabled:p,rows:1,..._}),l&&e.jsx("div",{className:fe.slot,children:l}),r&&e.jsx("button",{type:"button",className:fe.sendButton,onClick:N,disabled:p||!y,"aria-label":"Send message",children:e.jsx(Td,{})})]})});_t.displayName="ChatInput";const Ed="_list_u1347_1",Dd="_empty_u1347_7",qd="_item_u1347_14",Md="_active_u1347_38",Fd="_avatarWrapper_u1347_46",Ad="_avatar_u1347_46",Pd="_avatarFallback_u1347_61",Hd="_onlineDot_u1347_74",Od="_info_u1347_85",Ud="_topRow_u1347_93",Vd="_name_u1347_100",Gd="_time_u1347_109",Xd="_lastMessage_u1347_116",Yd="_unread_u1347_125",E={list:Ed,empty:Dd,item:qd,active:Md,avatarWrapper:Fd,avatar:Ad,avatarFallback:Pd,onlineDot:Hd,info:Od,topRow:Ud,name:Vd,time:Gd,lastMessage:Xd,unread:Yd},Kd=({conversations:t,activeId:n,onSelect:s,emptyText:o="No conversations",className:a,...i})=>{const l=[E.list,a??""].filter(Boolean).join(" ");return t.length===0?e.jsx("div",{className:l,...i,children:e.jsx("p",{className:E.empty,children:o})}):e.jsx("div",{className:l,role:"listbox","aria-label":"Conversations",...i,children:t.map(r=>{const c=r.id===n,d=[E.item,c?E.active:""].filter(Boolean).join(" ");return e.jsxs("button",{type:"button",role:"option","aria-selected":c,className:d,onClick:()=>s==null?void 0:s(r.id),children:[e.jsxs("div",{className:E.avatarWrapper,children:[r.avatar?e.jsx("div",{className:E.avatar,children:r.avatar}):e.jsx("div",{className:E.avatarFallback,"aria-hidden":"true",children:r.name.charAt(0).toUpperCase()}),r.online&&e.jsx("span",{className:E.onlineDot,"aria-label":"Online"})]}),e.jsxs("div",{className:E.info,children:[e.jsxs("div",{className:E.topRow,children:[e.jsx("span",{className:E.name,children:r.name}),r.timestamp&&e.jsx("span",{className:E.time,children:r.timestamp})]}),r.lastMessage&&e.jsx("p",{className:E.lastMessage,children:r.lastMessage})]}),r.unread!=null&&r.unread>0&&e.jsx("span",{className:E.unread,"aria-label":`${r.unread} unread`,children:r.unread>99?"99+":r.unread})]},r.id)})})},Jd="_window_171g8_1",Qd="_header_171g8_11",Zd="_messages_171g8_15",e_="_footer_171g8_24",De={window:Jd,header:Qd,messages:Zd,footer:e_},ut=h.forwardRef(({header:t,footer:n,autoScroll:s=!0,children:o,className:a,...i},l)=>{const r=h.useRef(null);h.useEffect(()=>{s&&r.current&&(r.current.scrollTop=r.current.scrollHeight)},[o,s]);const c=[De.window,a??""].filter(Boolean).join(" ");return e.jsxs("div",{ref:l,className:c,...i,children:[t&&e.jsx("div",{className:De.header,children:t}),e.jsx("div",{ref:r,className:De.messages,children:o}),n&&e.jsx("div",{className:De.footer,children:n})]})});ut.displayName="ChatWindow";const t_="_header_1xu0b_1",s_="_left_1xu0b_12",n_="_backButton_1xu0b_20",o_="_avatarWrapper_1xu0b_45",a_="_avatar_1xu0b_45",r_="_statusDot_1xu0b_60",i_="_online_1xu0b_70",l_="_offline_1xu0b_74",c_="_away_1xu0b_78",d_="_info_1xu0b_82",__="_title_1xu0b_88",u_="_subtitle_1xu0b_97",p_="_actions_1xu0b_105",H={header:t_,left:s_,backButton:n_,avatarWrapper:o_,avatar:a_,statusDot:r_,online:i_,offline:l_,away:c_,info:d_,title:__,subtitle:u_,actions:p_};function h_(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),e.jsx("polyline",{points:"12 19 5 12 12 5"})]})}const m_=({title:t,subtitle:n,avatar:s,status:o,actions:a,onBack:i,className:l,...r})=>{const c=[H.header,l??""].filter(Boolean).join(" ");return e.jsxs("div",{className:c,...r,children:[e.jsxs("div",{className:H.left,children:[i&&e.jsx("button",{type:"button",className:H.backButton,onClick:i,"aria-label":"Go back",children:e.jsx(h_,{})}),s&&e.jsxs("div",{className:H.avatarWrapper,children:[e.jsx("div",{className:H.avatar,children:s}),o&&e.jsx("span",{className:`${H.statusDot} ${H[o]}`,"aria-label":o})]}),e.jsxs("div",{className:H.info,children:[e.jsx("span",{className:H.title,children:t}),n&&e.jsx("span",{className:H.subtitle,children:n})]})]}),a&&e.jsx("div",{className:H.actions,children:a})]})},f_="_indicator_1c024_1",x_="_dots_1c024_8",b_="_dot_1c024_8",j_="_text_1c024_34",xe={indicator:f_,dots:x_,dot:b_,text:j_};function g_(t){return t.length===0?"":t.length===1?`${t[0]} is typing`:t.length===2?`${t[0]} and ${t[1]} are typing`:`${t[0]} and ${t.length-1} others are typing`}const v_=({users:t=[],className:n,...s})=>{const o=[xe.indicator,n??""].filter(Boolean).join(" "),a=g_(t);return e.jsxs("div",{className:o,role:"status","aria-label":a||"Someone is typing",...s,children:[e.jsxs("span",{className:xe.dots,"aria-hidden":"true",children:[e.jsx("span",{className:xe.dot}),e.jsx("span",{className:xe.dot}),e.jsx("span",{className:xe.dot})]}),a&&e.jsx("span",{className:xe.text,children:a})]})},w_="_timestamp_1ddjc_1",$_="_line_1ddjc_9",y_="_text_1ddjc_15",qe={timestamp:w_,line:$_,text:y_},k_=({children:t,className:n,...s})=>{const o=[qe.timestamp,n??""].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"separator","aria-label":typeof t=="string"?t:void 0,...s,children:[e.jsx("span",{className:qe.line,"aria-hidden":"true"}),e.jsx("span",{className:qe.text,children:t}),e.jsx("span",{className:qe.line,"aria-hidden":"true"})]})},N_="_reaction_1wf9z_1",B_="_active_1wf9z_25",L_="_emoji_1wf9z_35",C_="_count_1wf9z_40",Me={reaction:N_,active:B_,emoji:L_,count:C_},pt=h.forwardRef(({emoji:t,count:n=1,active:s=!1,className:o,...a},i)=>{const l=[Me.reaction,s?Me.active:"",o??""].filter(Boolean).join(" ");return e.jsxs("button",{ref:i,type:"button",className:l,"aria-pressed":s,"aria-label":`${t} ${n}`,...a,children:[e.jsx("span",{className:Me.emoji,children:t}),e.jsx("span",{className:Me.count,children:n})]})});pt.displayName="ChatReaction";const I_="_attachment_hawg9_1",z_="_file_hawg9_9",S_="_video_hawg9_10",R_="_audio_hawg9_11",W_="_icon_hawg9_18",T_="_info_hawg9_30",E_="_fileName_hawg9_38",D_="_fileSize_hawg9_47",q_="_downloadButton_hawg9_52",M_="_image_hawg9_78",F_="_imageButton_hawg9_86",Q={attachment:I_,file:z_,video:S_,audio:R_,icon:W_,info:T_,fileName:E_,fileSize:D_,downloadButton:q_,image:M_,imageButton:F_};function ht(){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function A_(){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})}function P_(){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M9 18V5l12-2v13"}),e.jsx("circle",{cx:"6",cy:"18",r:"3"}),e.jsx("circle",{cx:"18",cy:"16",r:"3"})]})}function H_(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("polyline",{points:"7 10 12 15 17 10"}),e.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}const O_={file:ht,video:A_,audio:P_},U_=({variant:t="file",src:n,fileName:s,fileSize:o,onDownload:a,onPreview:i,className:l,...r})=>{const c=[Q.attachment,Q[t],l??""].filter(Boolean).join(" ");if(t==="image"&&n)return e.jsx("div",{className:c,...r,children:e.jsx("button",{type:"button",className:Q.imageButton,onClick:i,"aria-label":s?`Preview ${s}`:"Preview image",children:e.jsx("img",{src:n,alt:s??"Attachment",className:Q.image,loading:"lazy"})})});const d=O_[t]??ht;return e.jsxs("div",{className:c,...r,children:[e.jsx("span",{className:Q.icon,"aria-hidden":"true",children:e.jsx(d,{})}),e.jsxs("div",{className:Q.info,children:[e.jsx("span",{className:Q.fileName,children:s??"File"}),o&&e.jsx("span",{className:Q.fileSize,children:o})]}),a&&e.jsx("button",{type:"button",className:Q.downloadButton,onClick:a,"aria-label":`Download ${s??"file"}`,children:e.jsx(H_,{})})]})},V_="_status_1h1yp_1",G_="_dot_1h1yp_8",X_="_label_1h1yp_14",Y_="_sm_1h1yp_20",K_="_md_1h1yp_25",J_="_lg_1h1yp_30",Q_="_online_1h1yp_36",Z_="_offline_1h1yp_40",eu="_away_1h1yp_44",tu="_busy_1h1yp_48",su="_dnd_1h1yp_52",nu="_pulse_1h1yp_57",ou="_statusPulse_1h1yp_1",be={status:V_,dot:G_,label:X_,sm:Y_,md:K_,lg:J_,online:Q_,offline:Z_,away:eu,busy:tu,dnd:su,pulse:nu,statusPulse:ou},Je={online:"Online",offline:"Offline",away:"Away",busy:"Busy",dnd:"Do not disturb"},au=({variant:t="offline",size:n="md",showLabel:s=!1,pulse:o=!1,className:a,...i})=>{const l=[be.status,be[t],be[n],o&&t==="online"?be.pulse:"",a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:l,role:"status","aria-label":Je[t],...i,children:[e.jsx("span",{className:be.dot,"aria-hidden":"true"}),s&&e.jsx("span",{className:be.label,children:Je[t]})]})},ru="_thread_fnasz_1",iu="_summary_fnasz_7",lu="_participants_fnasz_30",cu="_participant_fnasz_30",du="_replyText_fnasz_50",_u="_lastReply_fnasz_57",uu="_content_fnasz_63",pu="_expanded_fnasz_70",se={thread:ru,summary:iu,participants:lu,participant:cu,replyText:du,lastReply:_u,content:uu,expanded:pu};function hu({expanded:t}){return e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.2s",transform:t?"rotate(90deg)":"rotate(0deg)"},children:e.jsx("polyline",{points:"9 18 15 12 9 6"})})}const mu=({replyCount:t=0,lastReplyTimestamp:n,participants:s=[],expanded:o=!1,onToggle:a,children:i,className:l,...r})=>{const c=[se.thread,o?se.expanded:"",l??""].filter(Boolean).join(" ");return e.jsxs("div",{className:c,...r,children:[e.jsxs("button",{type:"button",className:se.summary,onClick:a,"aria-expanded":o,children:[s.length>0&&e.jsx("div",{className:se.participants,children:s.slice(0,3).map((d,p)=>e.jsx("span",{className:se.participant,"aria-hidden":"true",children:d},p))}),e.jsx("span",{className:se.replyText,children:t===1?"1 reply":`${t} replies`}),n&&e.jsxs("span",{className:se.lastReply,children:["Last reply ",n]}),e.jsx(hu,{expanded:o})]}),o&&i&&e.jsx("div",{className:se.content,children:i})]})};exports.Accordion=Ka;exports.Alert=ur;exports.AnimatedBackground=cn;exports.Avatar=Ni;exports.Badge=Ps;exports.Breadcrumb=el;exports.Button=Qe;exports.Card=Ne;exports.ChatAttachment=U_;exports.ChatBubble=Cd;exports.ChatHeader=m_;exports.ChatInput=_t;exports.ChatList=Kd;exports.ChatReaction=pt;exports.ChatStatus=au;exports.ChatThread=mu;exports.ChatTimestamp=k_;exports.ChatWindow=ut;exports.Checkbox=at;exports.Dialog=Be;exports.Divider=br;exports.Dropdown=Ul;exports.EmptyState=Ui;exports.FileUpload=Dc;exports.GradientOrbs=gn;exports.GridGlow=Ln;exports.Input=Ze;exports.NumberInput=bc;exports.Pagination=ul;exports.Popover=Dl;exports.Progress=Gr;exports.RadioGroup=Uo;exports.Select=ot;exports.Skeleton=Rr;exports.Slider=oc;exports.Spinner=Ir;exports.Stepper=Bl;exports.Switch=rt;exports.Table=sd;exports.Tabs=qa;exports.Tag=Mi;exports.Textarea=nt;exports.Title=Ns;exports.ToastProvider=ri;exports.Tooltip=Ca;exports.TypingIndicator=v_;exports.useToast=ii;
package/dist/index.d.ts CHANGED
@@ -69,3 +69,25 @@ export { FileUpload } from './components/FileUpload';
69
69
  export type { FileUploadProps } from './components/FileUpload';
70
70
  export { Table } from './components/Table';
71
71
  export type { TableProps, TableColumn, TableSize, SortDirection } from './components/Table';
72
+ export { ChatBubble } from './components/ChatBubble';
73
+ export type { ChatBubbleProps, ChatBubbleVariant, ChatBubbleStatus, ChatBubbleGrouping, } from './components/ChatBubble';
74
+ export { ChatInput } from './components/ChatInput';
75
+ export type { ChatInputProps } from './components/ChatInput';
76
+ export { ChatList } from './components/ChatList';
77
+ export type { ChatListProps, ChatConversation } from './components/ChatList';
78
+ export { ChatWindow } from './components/ChatWindow';
79
+ export type { ChatWindowProps } from './components/ChatWindow';
80
+ export { ChatHeader } from './components/ChatHeader';
81
+ export type { ChatHeaderProps, ChatHeaderStatus } from './components/ChatHeader';
82
+ export { TypingIndicator } from './components/TypingIndicator';
83
+ export type { TypingIndicatorProps } from './components/TypingIndicator';
84
+ export { ChatTimestamp } from './components/ChatTimestamp';
85
+ export type { ChatTimestampProps } from './components/ChatTimestamp';
86
+ export { ChatReaction } from './components/ChatReaction';
87
+ export type { ChatReactionProps } from './components/ChatReaction';
88
+ export { ChatAttachment } from './components/ChatAttachment';
89
+ export type { ChatAttachmentProps, ChatAttachmentVariant } from './components/ChatAttachment';
90
+ export { ChatStatus } from './components/ChatStatus';
91
+ export type { ChatStatusProps, ChatStatusVariant, ChatStatusSize } from './components/ChatStatus';
92
+ export { ChatThread } from './components/ChatThread';
93
+ export type { ChatThreadProps } from './components/ChatThread';