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