@velocityuikit/velocityui 0.1.13 → 0.1.14
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.
- package/README.md +20 -12
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @velocityuikit/velocityui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Accessible React UI components with scoped CSS Modules styles and TypeScript support.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ export function Example() {
|
|
|
30
30
|
return (
|
|
31
31
|
<Card variant="shadow">
|
|
32
32
|
<Card.Header>
|
|
33
|
-
<Title
|
|
33
|
+
<Title as="h2">Welcome</Title>
|
|
34
34
|
</Card.Header>
|
|
35
35
|
<Card.Body>
|
|
36
36
|
<Input label="Email" placeholder="you@example.com" />
|
|
@@ -43,12 +43,12 @@ export function Example() {
|
|
|
43
43
|
|
|
44
44
|
## Available Exports
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
- Navigation
|
|
46
|
+
- **Forms:** `Button`, `Input`, `Textarea`, `Select`, `Checkbox`, `RadioGroup`, `Switch`, `Slider`, `NumberInput`, `FileUpload`
|
|
47
|
+
- **Display:** `Title`, `Badge`, `Avatar`, `Tag`, `EmptyState`, `Skeleton`, `Table`
|
|
48
|
+
- **Layout:** `Card`, `Divider`, `Accordion`, `Tabs`
|
|
49
|
+
- **Feedback:** `Alert`, `Spinner`, `Progress`, `ToastProvider`, `useToast`
|
|
50
|
+
- **Overlays:** `Dialog`, `Dropdown`, `Popover`, `Tooltip`
|
|
51
|
+
- **Navigation:** `Breadcrumb`, `Pagination`, `Stepper`
|
|
52
52
|
|
|
53
53
|
## Local Development
|
|
54
54
|
|
|
@@ -60,10 +60,10 @@ pnpm --filter velocityui build
|
|
|
60
60
|
|
|
61
61
|
Build output is written to `dist/`:
|
|
62
62
|
|
|
63
|
-
- `dist/index.js`
|
|
64
|
-
- `dist/index.cjs`
|
|
65
|
-
- `dist/index.d.ts`
|
|
66
|
-
- `dist/style.css`
|
|
63
|
+
- `dist/index.js` — ESM bundle
|
|
64
|
+
- `dist/index.cjs` — CJS bundle
|
|
65
|
+
- `dist/index.d.ts` — TypeScript declarations
|
|
66
|
+
- `dist/style.css` — bundled component styles
|
|
67
67
|
|
|
68
68
|
Watch mode:
|
|
69
69
|
|
|
@@ -83,3 +83,11 @@ Run tests:
|
|
|
83
83
|
pnpm --filter velocityui test
|
|
84
84
|
pnpm --filter velocityui test:run
|
|
85
85
|
```
|
|
86
|
+
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
See the root [CONTRIBUTING.md](../../CONTRIBUTING.md) for the full contribution guide.
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
[MIT](../../LICENSE)
|
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"),Ie=require("react-dom"),Ze="_button_111na_1",et="_loading_111na_26",tt="_sm_111na_33",st="_md_111na_39",nt="_lg_111na_45",ot="_primary_111na_52",rt="_secondary_111na_65",at="_outline_111na_78",it="_ghost_111na_90",lt="_danger_111na_101",ct="_fullWidth_111na_114",dt="_spinner_111na_119",_t="_spin_111na_119",oe={button:Ze,loading:et,sm:tt,md:st,lg:nt,primary:ot,secondary:rt,outline:at,ghost:it,danger:lt,fullWidth:ct,spinner:dt,spin:_t},Te=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=[oe.button,oe[t],oe[n],o?oe.fullWidth:"",s?oe.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:oe.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})]})});Te.displayName="Button";const ut="_wrapper_1r7em_1",pt="_label_1r7em_8",ht="_required_1r7em_15",mt="_inputWrapper_1r7em_20",ft="_input_1r7em_20",xt="_error_1r7em_55",bt="_sm_1r7em_64",gt="_md_1r7em_70",vt="_lg_1r7em_76",jt="_hasLeft_1r7em_83",wt="_hasRight_1r7em_87",kt="_iconLeft_1r7em_91",$t="_iconRight_1r7em_92",yt="_hint_1r7em_111",Nt="_errorText_1r7em_117",Lt="_floatingWrapper_1r7em_125",Bt="_inputFloating_1r7em_130",It="_floatingLabelEl_1r7em_149",Ct="_floatingLabelSm_1r7em_165",Et="_floatingLabelMd_1r7em_166",St="_floatingLabelLg_1r7em_167",qt="_floatingLabelWithLeft_1r7em_170",Rt="_floatingLabelError_1r7em_190",L={wrapper:ut,label:pt,required:ht,inputWrapper:mt,input:ft,error:xt,sm:bt,md:gt,lg:vt,hasLeft:jt,hasRight:wt,iconLeft:kt,iconRight:$t,hint:yt,errorText:Nt,floatingWrapper:Lt,inputFloating:Bt,floatingLabelEl:It,floatingLabelSm:Ct,floatingLabelMd:Et,floatingLabelLg:St,floatingLabelWithLeft:qt,floatingLabelError:Rt},Wt=()=>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"})}),De=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:b,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,$=j?`${j}-hint`:void 0,A=l||!!i,V=i??e.jsx(Wt,{});let w=r,k=a,H=!1,X=!1;A&&(c==="right"?k||(k=V,X=!0):w||(w=V,H=!0));const se=[L.input,L[n],f?L.inputFloating:"",s?L.error:"",w?L.hasLeft:"",k?L.hasRight:"",b??""].filter(Boolean).join(" "),xe=[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:se,required:h,"aria-invalid":!!s,"aria-describedby":[s?E:null,o?$:null].filter(Boolean).join(" ")||void 0,placeholder:f?" ":g,...v}),t&&f&&e.jsxs("label",{htmlFor:j,className:xe,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),k&&e.jsx("span",{className:[L.iconRight,p??""].filter(Boolean).join(" "),"data-slot":"right-icon","data-search-icon":X?"true":void 0,"aria-hidden":"true",children:k})]}),s&&e.jsx("span",{id:E,className:L.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:$,className:L.hint,children:o})]})});De.displayName="Input";const Tt="_title_1np0f_1",Dt="_xs_1np0f_9",Mt="_sm_1np0f_14",zt="_md_1np0f_19",Ft="_lg_1np0f_24",At="_xl_1np0f_29",Ht="_xxl_1np0f_34",Ot="_light_1np0f_40",Pt="_normal_1np0f_44",Ut="_medium_1np0f_48",Vt="_semibold_1np0f_52",Xt="_bold_1np0f_56",Yt="_extrabold_1np0f_60",Kt="_left_1np0f_65",Gt="_center_1np0f_69",Jt="_right_1np0f_73",Qt="_muted_1np0f_82",Zt="_primary_1np0f_86",es="_gradient_1np0f_90",ue={title:Tt,xs:Dt,sm:Mt,md:zt,lg:Ft,xl:At,xxl:Ht,light:Ot,normal:Pt,medium:Ut,semibold:Vt,bold:Xt,extrabold:Yt,left:Kt,center:Gt,right:Jt,default:"_default_1np0f_78",muted:Qt,primary:Zt,gradient:es},ts={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},ss=({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??ts[_],h=[ue.title,ue[p],ue[o],ue[r],ue[a],i??""].filter(Boolean).join(" ");return m.createElement(_,{className:h,...c},l)},ns="_badge_8sbva_1",os="_sm_8sbva_14",rs="_md_8sbva_19",as="_lg_8sbva_24",is="_info_8sbva_36",ls="_success_8sbva_42",cs="_warning_8sbva_48",ds="_danger_8sbva_54",_s="_primary_8sbva_60",us="_dot_8sbva_67",we={badge:ns,sm:os,md:rs,lg:as,default:"_default_8sbva_30",info:is,success:ls,warning:cs,danger:ds,primary:_s,dot:us},ps=({variant:t="default",size:n="md",dot:s=!1,leftIcon:o,children:r,className:a,...l})=>{const i=[we.badge,we[t],we[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[s&&e.jsx("span",{className:we.dot,"aria-hidden":"true"}),!s&&o&&e.jsx("span",{"aria-hidden":"true",children:o}),r]})},hs="_card_1q61w_1",ms="_bordered_1q61w_11",fs="_shadow_1q61w_15",xs="_elevated_1q61w_19",bs="_ghost_1q61w_23",gs="_sm_1q61w_29",vs="_cardHeader_1q61w_29",js="_cardBody_1q61w_30",ws="_cardFooter_1q61w_31",ks="_md_1q61w_35",$s="_lg_1q61w_41",ys="_hoverable_1q61w_72",te={card:hs,bordered:ms,shadow:fs,elevated:xs,ghost:bs,sm:gs,cardHeader:vs,cardBody:js,cardFooter:ws,md:ks,lg:$s,hoverable:ys},Me=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardHeader} ${n??""}`,...s,children:t});Me.displayName="Card.Header";const ze=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardBody} ${n??""}`,...s,children:t});ze.displayName="Card.Body";const Fe=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardFooter} ${n??""}`,...s,children:t});Fe.displayName="Card.Footer";const Ns=({variant:t="bordered",size:n="md",hoverable:s=!1,children:o,className:r,...a})=>{const l=[te.card,te[t],te[n],s?te.hoverable:"",r??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,...a,children:o})},me=Ns;me.Header=Me;me.Body=ze;me.Footer=Fe;me.displayName="Card";const Ls="_wrapper_1xu0d_1",Bs="_wrapperFullWidth_1xu0d_7",Is="_label_1xu0d_11",Cs="_required_1xu0d_18",Es="_textarea_1xu0d_23",Ss="_hasError_1xu0d_53",qs="_sm_1xu0d_62",Rs="_md_1xu0d_67",Ws="_lg_1xu0d_72",Ts="_none_1xu0d_78",Ds="_vertical_1xu0d_82",Ms="_horizontal_1xu0d_86",zs="_both_1xu0d_90",Fs="_fullWidth_1xu0d_94",As="_hint_1xu0d_98",Hs="_errorText_1xu0d_104",M={wrapper:Ls,wrapperFullWidth:Bs,label:Is,required:Cs,textarea:Es,hasError:Ss,sm:qs,md:Rs,lg:Ws,none:Ts,vertical:Ds,horizontal:Ms,both:zs,fullWidth:Fs,hint:As,errorText:Hs},Ae=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,b=[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:b,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})]})});Ae.displayName="Textarea";const Os="_wrapper_1cpn4_1",Ps="_wrapperFullWidth_1cpn4_7",Us="_label_1cpn4_11",Vs="_required_1cpn4_18",Xs="_selectWrapper_1cpn4_23",Ys="_hiddenSelect_1cpn4_46",Ks="_trigger_1cpn4_53",Gs="_hasError_1cpn4_103",Js="_sm_1cpn4_114",Qs="_md_1cpn4_120",Zs="_lg_1cpn4_126",en="_fullWidth_1cpn4_132",tn="_valueText_1cpn4_136",sn="_placeholder_1cpn4_144",nn="_chevron_1cpn4_148",on="_isOpen_1cpn4_180",rn="_menu_1cpn4_184",an="_option_1cpn4_203",ln="_optionFocused_1cpn4_222",cn="_optionSelected_1cpn4_229",dn="_optionLabel_1cpn4_238",_n="_optionCheck_1cpn4_243",un="_optionCheckVisible_1cpn4_250",pn="_hint_1cpn4_260",hn="_errorText_1cpn4_266",y={wrapper:Os,wrapperFullWidth:Ps,label:Us,required:Vs,selectWrapper:Xs,hiddenSelect:Ys,trigger:Ks,hasError:Gs,sm:Js,md:Qs,lg:Zs,fullWidth:en,valueText:tn,placeholder:sn,chevron:nn,isOpen:on,menu:rn,option:an,optionFocused:ln,optionSelected:cn,optionLabel:dn,optionCheck:_n,optionCheckVisible:un,hint:pn,errorText:hn};function mn(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 He=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:b,onFocus:u,onKeyDown:g,disabled:v,name:N,autoComplete:j,form:E,...$},A)=>{const V=m.useRef(null),w=m.useRef(null);m.useImperativeHandle(A,()=>V.current);const k=_??(t?`vui-select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),H=k?`${k}-error`:void 0,X=k?`${k}-hint`:void 0,se=k?`${k}-listbox`:void 0,xe=k?`${k}-label`:void 0,B=m.useMemo(()=>l||mn(p),[p,l]),be=h!==void 0,J=B.find(x=>!x.disabled),Ke=String(d??(i?"":(J==null?void 0:J.value)??"")),[Ne,Ce]=m.useState(Ke),ge=String(be?h??"":Ne),[Q,ne]=m.useState(!1),[de,ve]=m.useState(-1);m.useEffect(()=>{if(be||!B.length)return;B.some(I=>I.value===Ne)||Ce((J==null?void 0:J.value)??"")},[B,be,Ne,J]),m.useEffect(()=>{const x=I=>{w.current&&!w.current.contains(I.target)&&ne(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const je=B.find(x=>x.value===ge),Ge=(je==null?void 0:je.label)??i??"",Je=[y.trigger,y[n],s?y.hasError:"",a?y.fullWidth:"",Q?y.isOpen:"",c??""].filter(Boolean).join(" "),Ee=x=>{var S;be||Ce(x);const I=V.current;if(I){const _e=(S=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:S.set;_e==null||_e.call(I,x),I.dispatchEvent(new Event("change",{bubbles:!0}))}},Le=()=>{if(v||!B.length)return;ne(!0);const x=B.findIndex(S=>S.value===ge&&!S.disabled);if(x>=0){ve(x);return}const I=B.findIndex(S=>!S.disabled);ve(I)},Se=x=>{if(!B.length)return;let I=de;for(let S=0;S<B.length;S+=1)if(I=(I+x+B.length)%B.length,!B[I].disabled){ve(I);return}},Qe=x=>{if(g==null||g(x),!x.defaultPrevented){if(!Q&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault(),Le();return}if(!Q&&(x.key==="Enter"||x.key===" ")){x.preventDefault(),Le();return}if(Q){if(x.key==="Escape"){x.preventDefault(),ne(!1);return}if(x.key==="ArrowDown"){x.preventDefault(),Se(1);return}if(x.key==="ArrowUp"){x.preventDefault(),Se(-1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),de>=0&&!B[de].disabled&&(Ee(B[de].value),ne(!1)))}}};return e.jsxs("div",{className:`${y.wrapper}${a?` ${y.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{id:xe,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:V,id:k,className:y.hiddenSelect,value:ge,required:r,disabled:v,name:N,form:E,autoComplete:j,"aria-invalid":!!s,"aria-describedby":[s?H:null,o&&!s?X:null].filter(Boolean).join(" ")||void 0,"aria-hidden":"true",tabIndex:-1,onChange:f??(()=>{}),...$,children:[i&&e.jsx("option",{value:"",disabled:r,children:i}),B.map(x=>e.jsx("option",{value:x.value,disabled:x.disabled,children:x.label},x.value))]}),e.jsx("button",{type:"button",className:Je,disabled:v,role:"combobox","aria-invalid":!!s,"aria-labelledby":xe,"aria-haspopup":"listbox","aria-expanded":Q,"aria-controls":se,onClick:()=>Q?ne(!1):Le(),onKeyDown:Qe,onFocus:x=>u==null?void 0:u(x),onBlur:x=>b==null?void 0:b(x),children:e.jsx("span",{className:`${y.valueText}${je?"":` ${y.placeholder}`}`,children:Ge})}),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"})})}),Q&&e.jsx("ul",{id:se,role:"listbox",className:y.menu,children:B.map((x,I)=>{const S=x.value===ge,_e=I===de;return e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":S,className:[y.option,S?y.optionSelected:"",_e?y.optionFocused:""].filter(Boolean).join(" "),disabled:x.disabled,onMouseEnter:()=>ve(I),onClick:()=>{Ee(x.value),ne(!1)},children:[e.jsx("span",{className:y.optionLabel,children:x.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"})})})]})},x.value)})})]}),s&&e.jsx("span",{id:H,className:y.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:X,className:y.hint,children:o})]})});He.displayName="Select";const fn="_wrapper_iu9cq_1",xn="_row_iu9cq_7",bn="_checkbox_iu9cq_14",gn="_hasError_iu9cq_51",vn="_sm_iu9cq_60",jn="_md_iu9cq_74",wn="_lg_iu9cq_88",kn="_label_iu9cq_102",$n="_description_iu9cq_113",yn="_errorText_iu9cq_123",O={wrapper:fn,row:xn,checkbox:bn,hasError:gn,sm:vn,md:jn,lg:wn,label:kn,description:$n,errorText:yn},Oe=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=[O.checkbox,O[o],s?O.hasError:"",r??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${O.wrapper} ${O[o]}`,children:[e.jsxs("div",{className:O.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:O.label,children:t})]}),n&&!s&&e.jsx("span",{id:p,className:O.description,children:n}),s&&e.jsx("span",{id:_,className:O.errorText,role:"alert",children:s})]})});Oe.displayName="Checkbox";const Nn="_fieldset_nj7or_1",Ln="_legend_nj7or_10",Bn="_required_nj7or_19",In="_group_nj7or_24",Cn="_vertical_nj7or_28",En="_horizontal_nj7or_33",Sn="_option_nj7or_39",qn="_radio_nj7or_46",Rn="_hasError_nj7or_81",Wn="_sm_nj7or_86",Tn="_md_nj7or_87",Dn="_lg_nj7or_88",Mn="_optionContent_nj7or_90",zn="_optionLabel_nj7or_96",Fn="_optionDescription_nj7or_107",An="_hint_nj7or_113",Hn="_errorText_nj7or_119",q={fieldset:Nn,legend:Ln,required:Bn,group:In,vertical:Cn,horizontal:En,option:Sn,radio:qn,hasError:Rn,sm:Wn,md:Tn,lg:Dn,optionContent:Mn,optionLabel:zn,optionDescription:Fn,hint:An,errorText:Hn},On=({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`,b=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=b?{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:_})]})},Pn="_wrapper_okiio_1",Un="_labelRow_okiio_7",Vn="_track_okiio_15",Xn="_input_okiio_23",Yn="_thumb_okiio_32",Kn="_labelText_okiio_65",Gn="_sm_okiio_74",Jn="_md_okiio_80",Qn="_lg_okiio_86",Zn="_description_okiio_98",Y={wrapper:Pn,labelRow:Un,track:Vn,input:Xn,thumb:Yn,labelText:Kn,sm:Gn,md:Jn,lg:Qn,description:Zn},Pe=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:`${Y.wrapper} ${Y[s]}`,children:[e.jsxs("label",{className:Y.labelRow,htmlFor:i,children:[e.jsxs("span",{className:Y.track,children:[e.jsx("input",{ref:l,type:"checkbox",role:"switch",id:i,className:`${Y.input} ${o??""}`,"aria-describedby":c||void 0,...a}),e.jsx("span",{className:Y.thumb,"aria-hidden":"true"})]}),t&&e.jsx("span",{className:Y.labelText,children:t})]}),n&&e.jsx("span",{id:c,className:Y.description,children:n})]})});Pe.displayName="Switch";const eo="_overlay_gedqr_1",to="_overlayFadeIn_gedqr_1",so="_dialog_gedqr_19",no="_dialogSlideUp_gedqr_1",oo="_sm_gedqr_39",ro="_md_gedqr_40",ao="_lg_gedqr_41",io="_xl_gedqr_42",lo="_header_gedqr_45",co="_title_gedqr_51",_o="_description_gedqr_59",uo="_body_gedqr_66",po="_footer_gedqr_71",ho="_closeBtn_gedqr_81",F={overlay:eo,overlayFadeIn:to,dialog:so,dialogSlideUp:no,sm:oo,md:ro,lg:ao,xl:io,header:lo,title:co,description:_o,body:uo,footer:po,closeBtn:ho},qe='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',Ue=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.header} ${n??""}`,...s,children:t});Ue.displayName="Dialog.Header";const Ve=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.body} ${n??""}`,...s,children:t});Ve.displayName="Dialog.Body";const Xe=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.footer} ${n??""}`,...s,children:t});Xe.displayName="Dialog.Footer";const Re={current:0},mo=({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-${++Re.current}`).current,p=m.useRef(`vui-dialog-desc-${Re.current}`).current,h=m.useRef(null);if(m.useEffect(()=>{if(!t)return;h.current=document.activeElement,document.body.style.overflow="hidden";const b=requestAnimationFrame(()=>{var v,N;const g=(v=c.current)==null?void 0:v.querySelectorAll(qe);(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(qe));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(b),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:F.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:[F.dialog,F[r],l??""].filter(Boolean).join(" "),children:[s&&e.jsxs("div",{className:F.header,children:[e.jsx("p",{id:_,className:F.title,children:s}),o&&e.jsx("p",{id:p,className:F.description,children:o})]}),a,e.jsx("button",{type:"button",className:F.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"})})})]})})},fe=mo;fe.Header=Ue;fe.Body=Ve;fe.Footer=Xe;fe.displayName="Dialog";const fo="_wrapper_16e9w_1",xo="_tooltip_16e9w_6",bo="_visible_16e9w_25",go="_top_16e9w_30",vo="_bottom_16e9w_36",jo="_left_16e9w_42",wo="_right_16e9w_48",ko="_arrow_16e9w_55",$o="_arrowTop_16e9w_61",yo="_arrowBottom_16e9w_70",No="_arrowLeft_16e9w_79",Lo="_arrowRight_16e9w_88",re={wrapper:fo,tooltip:xo,visible:bo,top:go,bottom:vo,left:jo,right:wo,arrow:ko,arrowTop:$o,arrowBottom:yo,arrowLeft:No,arrowRight:Lo},Bo=({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:re.wrapper,onMouseEnter:_,onMouseLeave:p,onFocus:_,onBlur:p,children:[h,e.jsxs("span",{id:i,role:"tooltip",className:[re.tooltip,re[s],r?re.visible:""].filter(Boolean).join(" "),"aria-hidden":!r,children:[t,e.jsx("span",{className:`${re.arrow} ${re[`arrow${s.charAt(0).toUpperCase()}${s.slice(1)}`]}`,"aria-hidden":"true"})]})]})},Io="_tabs_16y0p_1",Co="_tablist_16y0p_8",Eo="_underline_16y0p_14",So="_tab_16y0p_1",qo="_activeTab_16y0p_39",Ro="_pills_16y0p_50",Wo="_boxed_16y0p_89",To="_panel_16y0p_139",ae={tabs:Io,tablist:Co,underline:Eo,tab:So,activeTab:qo,pills:Ro,boxed:Wo,panel:To},Do=({items:t,defaultValue:n,value:s,onChange:o,variant:r="underline"})=>{var b;const a=s!==void 0,[l,i]=m.useState(n??((b=t[0])==null?void 0:b.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($=>!$.disabled),N=v.findIndex($=>$.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 $=v[j];p($.value);const A=(E=_.current)==null?void 0:E.querySelector(`[data-value="${$.value}"]`);A==null||A.focus()}},d=u=>`vui-tabpanel-${u}`,f=u=>`vui-tab-${u}`;return e.jsxs("div",{className:ae.tabs,children:[e.jsx("div",{ref:_,role:"tablist",className:[ae.tablist,ae[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:[ae.tab,c===u.value?ae.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:ae.panel,children:u.children},u.value))]})},Mo="_accordion_wacbm_1",zo="_bordered_wacbm_7",Fo="_item_wacbm_13",Ao="_flush_wacbm_17",Ho="_separated_wacbm_21",Oo="_heading_wacbm_35",Po="_trigger_wacbm_40",Uo="_icon_wacbm_72",Vo="_open_wacbm_80",Xo="_contentOuter_wacbm_85",Yo="_contentInner_wacbm_95",P={accordion:Mo,bordered:zo,item:Fo,flush:Ao,separated:Ho,heading:Oo,trigger:Po,icon:Uo,open:Vo,contentOuter:Xo,contentInner:Yo},Ko=({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(b=>b!==d):f=r?[...p,d]:[d],l||_(f),o==null||o(r?f:f[0]??"")};return e.jsx("div",{className:[P.accordion,P[a]].filter(Boolean).join(" "),children:t.map(d=>{const f=p.includes(d.value),b=`vui-accordion-trigger-${d.value}`,u=`vui-accordion-panel-${d.value}`;return e.jsxs("div",{className:[P.item,f?P.open:""].filter(Boolean).join(" "),children:[e.jsx("h3",{className:P.heading,children:e.jsxs("button",{id:b,type:"button","aria-expanded":f,"aria-controls":u,disabled:d.disabled,className:P.trigger,onClick:()=>!d.disabled&&h(d.value),children:[e.jsx("span",{children:d.title}),e.jsx("span",{className:P.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":b,className:P.contentOuter,children:e.jsx("div",{className:P.contentInner,children:d.content})})]},d.value)})})},Go="_alert_b1vtk_1",Jo="_icon_b1vtk_12",Qo="_content_b1vtk_19",Zo="_title_b1vtk_24",er="_body_b1vtk_31",tr="_closeBtn_b1vtk_35",sr="_info_b1vtk_64",nr="_success_b1vtk_70",or="_warning_b1vtk_76",rr="_danger_b1vtk_82",Z={alert:Go,icon:Jo,content:Qo,title:Zo,body:er,closeBtn:tr,info:sr,success:nr,warning:or,danger:rr},ar=()=>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"})}),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:"M9 12l2 2 4-4m6 2a9 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:"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"})}),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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),dr={info:e.jsx(ar,{}),success:e.jsx(ir,{}),warning:e.jsx(lr,{}),danger:e.jsx(cr,{})},_r=({variant:t="info",title:n,icon:s,onClose:o,children:r,className:a,...l})=>{const i=[Z.alert,Z[t],a??""].filter(Boolean).join(" "),c=s!==void 0?s:dr[t];return e.jsxs("div",{className:i,role:"alert",...l,children:[c&&e.jsx("span",{className:Z.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:Z.content,children:[n&&e.jsx("p",{className:Z.title,children:n}),e.jsx("div",{className:Z.body,children:r})]}),o&&e.jsx("button",{type:"button",className:Z.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"})})})]})},ur="_divider_vfae1_1",pr="_horizontal_vfae1_6",hr="_vertical_vfae1_12",mr="_withLabel_vfae1_19",fr="_label_vfae1_33",ke={divider:ur,horizontal:pr,vertical:hr,withLabel:mr,label:fr},xr=({orientation:t="horizontal",label:n,className:s,...o})=>{const r=[ke.divider,ke[t],n?ke.withLabel:"",s??""].filter(Boolean).join(" ");return e.jsx("div",{role:"separator","aria-orientation":t,className:r,...o,children:n&&e.jsx("span",{className:ke.label,children:n})})},br="_spinner_1232t_1",gr="_svg_1232t_8",vr="_spin_1232t_1",jr="_track_1232t_17",wr="_arc_1232t_21",kr="_sm_1232t_27",$r="_md_1232t_33",yr="_lg_1232t_39",Nr="_primary_1232t_46",Lr="_muted_1232t_50",Br="_white_1232t_54",ie={spinner:br,svg:gr,spin:vr,track:jr,arc:wr,sm:kr,md:$r,lg:yr,primary:Nr,muted:Lr,white:Br},Ir=({size:t="md",color:n="primary",label:s="Loading…",className:o,...r})=>{const a=[ie.spinner,ie[t],ie[n],o??""].filter(Boolean).join(" ");return e.jsx("span",{className:a,role:"status","aria-label":s,...r,children:e.jsxs("svg",{className:ie.svg,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{className:ie.track,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),e.jsx("circle",{className:ie.arc,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})})},Cr="_block_tuupu_1",Er="_stack_tuupu_13",Be={block:Cr,stack:Er},ee=t=>{if(t!==void 0)return typeof t=="number"?`${t}px`:t},Sr=({width:t,height:n,radius:s,lines:o,gap:r,className:a,style:l,...i})=>{if(o&&o>1){const c=ee(r)??"0.5rem";return e.jsx("span",{className:[Be.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:Be.block,style:{width:h?"75%":ee(t)??"100%",height:ee(n)??"1rem",borderRadius:ee(s)??"var(--vui-radius-sm, 0.375rem)"}},p)})})}return e.jsx("span",{className:[Be.block,a??""].filter(Boolean).join(" "),style:{width:ee(t),height:ee(n)??"1rem",borderRadius:ee(s)??"var(--vui-radius-sm, 0.375rem)",...l},"aria-hidden":"true",...i})},qr="_wrapper_xgu51_1",Rr="_labelRow_xgu51_8",Wr="_label_xgu51_8",Tr="_value_xgu51_20",Dr="_track_xgu51_26",Mr="_sm_xgu51_33",zr="_md_xgu51_34",Fr="_lg_xgu51_35",Ar="_bar_xgu51_37",Hr="_primary_xgu51_43",Or="_success_xgu51_44",Pr="_warning_xgu51_45",Ur="_danger_xgu51_46",K={wrapper:qr,labelRow:Rr,label:Wr,value:Tr,track:Dr,sm:Mr,md:zr,lg:Fr,bar:Ar,primary:Hr,success:Or,warning:Pr,danger:Ur},Vr=({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}%`}})})]})},Xr="_container_2etd3_1",Yr="_toast_2etd3_14",Kr="_slideUp_2etd3_1",Gr="_message_2etd3_31",Jr="_close_2etd3_38",Qr="_info_2etd3_63",Zr="_success_2etd3_69",ea="_warning_2etd3_75",ta="_danger_2etd3_81",he={container:Xr,toast:Yr,slideUp:Kr,message:Gr,close:Jr,info:Qr,success:Zr,warning:ea,danger:ta},Ye=m.createContext(null);let sa=0;const na=()=>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"})}),oa=({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=[he.toast,he[t.variant??"info"]].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"alert","aria-live":"assertive",children:[e.jsx("span",{className:he.message,children:t.message}),e.jsx("button",{type:"button",className:he.close,onClick:()=>n(t.id),"aria-label":"Dismiss notification",children:e.jsx(na,{})})]})},ra=({children:t})=>{const[n,s]=m.useState([]),o=m.useCallback(a=>{const l=`toast-${++sa}`;s(i=>[...i,{...a,id:l}])},[]),r=m.useCallback(a=>{s(l=>l.filter(i=>i.id!==a))},[]);return e.jsxs(Ye.Provider,{value:{addToast:o,removeToast:r},children:[t,typeof document<"u"&&Ie.createPortal(e.jsx("div",{className:he.container,"aria-label":"Notifications",children:n.map(a=>e.jsx(oa,{item:a,onRemove:r},a.id))}),document.body)]})},aa=()=>{const t=m.useContext(Ye);if(!t)throw new Error("useToast must be used inside <ToastProvider>");return t},ia="_avatar_1ado7_1",la="_xs_1ado7_15",ca="_sm_1ado7_16",da="_md_1ado7_17",_a="_lg_1ado7_18",ua="_xl_1ado7_19",pa="_circle_1ado7_22",ha="_square_1ado7_23",ma="_img_1ado7_25",fa="_initials_1ado7_32",xa="_fallbackIcon_1ado7_37",ba="_status_1ado7_44",ga="_online_1ado7_56",va="_away_1ado7_57",ja="_offline_1ado7_58",G={avatar:ia,xs:la,sm:ca,md:da,lg:_a,xl:ua,circle:pa,square:ha,img:ma,initials:fa,fallbackIcon:xa,status:ba,online:ga,away:va,offline:ja};function wa(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 ka=({src:t,alt:n,name:s,size:o="md",shape:r="circle",status:a,className:l,...i})=>{const[c,_]=m.useState(!1),p=[G.avatar,G[o],G[r],l??""].filter(Boolean).join(" "),h=t&&!c,d=s?wa(s):null;return e.jsxs("span",{className:p,"aria-label":n??s,...i,children:[h?e.jsx("img",{src:t,alt:n??s??"",className:G.img,onError:()=>_(!0)}):d?e.jsx("span",{className:G.initials,"aria-hidden":"true",children:d}):e.jsx("svg",{className:G.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:[G.status,G[a]].filter(Boolean).join(" "),"aria-label":a})]})},$a="_tag_13w40_1",ya="_sm_13w40_14",Na="_md_13w40_19",La="_lg_13w40_24",Ba="_info_13w40_36",Ia="_success_13w40_42",Ca="_warning_13w40_48",Ea="_danger_13w40_54",Sa="_primary_13w40_60",qa="_label_13w40_66",Ra="_icon_13w40_70",Wa="_close_13w40_75",le={tag:$a,sm:ya,md:Na,lg:La,default:"_default_13w40_30",info:Ba,success:Ia,warning:Ca,danger:Ea,primary:Sa,label:qa,icon:Ra,close:Wa},Ta=({variant:t="default",size:n="md",onClose:s,leftIcon:o,children:r,className:a,...l})=>{const i=[le.tag,le[t],le[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[o&&e.jsx("span",{className:le.icon,"aria-hidden":"true",children:o}),e.jsx("span",{className:le.label,children:r}),s&&e.jsx("button",{type:"button",className:le.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"})})})]})},Da="_root_6ieqa_1",Ma="_icon_6ieqa_11",za="_title_6ieqa_23",Fa="_description_6ieqa_31",Aa="_action_6ieqa_39",pe={root:Da,icon:Ma,title:za,description:Fa,action:Aa},Ha=({icon:t,title:n,description:s,action:o,className:r,...a})=>e.jsxs("div",{className:[pe.root,r??""].filter(Boolean).join(" "),...a,children:[t&&e.jsx("span",{className:pe.icon,"aria-hidden":"true",children:t}),e.jsx("p",{className:pe.title,children:n}),s&&e.jsx("p",{className:pe.description,children:s}),o&&e.jsx("div",{className:pe.action,children:o})]}),Oa="_nav_1s2na_1",Pa="_list_1s2na_5",Ua="_item_1s2na_15",Va="_separator_1s2na_20",Xa="_crumb_1s2na_27",Ya="_link_1s2na_33",Ka="_current_1s2na_50",U={nav:Oa,list:Pa,item:Ua,separator:Va,crumb:Xa,link:Ya,current:Ka},Ga=()=>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"})}),Ja=({items:t,separator:n,className:s,...o})=>{const r=n??e.jsx(Ga,{});return e.jsx("nav",{"aria-label":"Breadcrumb",className:[U.nav,s??""].filter(Boolean).join(" "),...o,children:e.jsx("ol",{className:U.list,children:t.map((a,l)=>{const i=l===t.length-1;return e.jsxs("li",{className:U.item,children:[l>0&&e.jsx("span",{className:U.separator,"aria-hidden":"true",children:r}),i||!a.href?e.jsx("span",{className:[U.crumb,i?U.current:U.link].filter(Boolean).join(" "),"aria-current":i?"page":void 0,children:a.label}):e.jsx("a",{href:a.href,className:[U.crumb,U.link].filter(Boolean).join(" "),children:a.label})]},l)})})})},Qa="_nav_10kny_1",Za="_list_10kny_5",ei="_btn_10kny_14",ti="_disabled_10kny_32",si="_active_10kny_32",ni="_dots_10kny_54",R={nav:Qa,list:Za,btn:ei,disabled:ti,active:si,dots:ni};function $e(t,n){const s=n-t+1;return Array.from({length:s},(o,r)=>t+r)}function oi(t,n,s){const o=s*2+5;if(n<=o)return $e(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?[...$e(1,3+s*2),"...",n]:l&&!i?[1,"...",...$e(n-(2+s*2),n)]:[1,"...",...$e(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"})}),ai=()=>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"})}),ii=()=>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"})}),li=()=>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"})}),ci=({page:t,totalPages:n,onChange:s,siblingCount:o=1,showFirstLast:r=!0,className:a,...l})=>{const i=oi(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(ii,{})})}),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(ai,{})})}),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(li,{})})})]})})},di="_root_1wmfi_1",_i="_horizontal_1wmfi_6",ui="_vertical_1wmfi_11",pi="_step_1wmfi_16",hi="_connector_1wmfi_32",mi="_indicator_1wmfi_37",fi="_circle_1wmfi_55",xi="_pending_1wmfi_88",bi="_active_1wmfi_94",gi="_completed_1wmfi_100",vi="_content_1wmfi_111",ji="_label_1wmfi_127",wi="_description_1wmfi_139",W={root:di,horizontal:_i,vertical:ui,step:pi,connector:hi,indicator:mi,circle:fi,pending:xi,active:bi,completed:gi,content:vi,label:ji,description:wi},ki=()=>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"})}),$i=({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(ki,{}):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)})})},yi="_triggerWrapper_v2cko_1",Ni="_popover_v2cko_6",Li="_fadeIn_v2cko_1",Bi="_arrow_v2cko_24",Ii="_bottom_v2cko_34",Ci="_top_v2cko_42",Ei="_right_v2cko_50",Si="_left_v2cko_58",ye={triggerWrapper:yi,popover:Ni,fadeIn:Li,arrow:Bi,bottom:Ii,top:Ci,right:Ei,left:Si};function qi(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 Ri=({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}),b=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(qi(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,$;!((E=p.current)!=null&&E.contains(j.target))&&!(($=h.current)!=null&&$.contains(j.target))&&b(!1)},N=j=>{j.key==="Escape"&&b(!1)};return document.addEventListener("mousedown",v),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",N)}},[_,b]);const g=[ye.popover,ye[s],a??""].filter(Boolean).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:p,className:ye.triggerWrapper,onClick:()=>b(!_),"aria-expanded":_,"aria-haspopup":"true",children:t}),_&&typeof document<"u"&&Ie.createPortal(e.jsxs("div",{ref:h,className:g,style:{top:d.top,left:d.left},role:"dialog",children:[e.jsx("div",{className:ye.arrow,"aria-hidden":"true"}),n]}),document.body)]})},Wi="_triggerWrapper_19rgz_1",Ti="_menu_19rgz_6",Di="_item_19rgz_23",Mi="_itemDisabled_19rgz_41",zi="_itemIcon_19rgz_56",Fi="_separator_19rgz_63",ce={triggerWrapper:Wi,menu:Ti,item:Di,itemDisabled:Mi,itemIcon:zi,separator:Fi};function Ai(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 Hi=({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();_(Ai(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=b=>{var u,g;!((u=l.current)!=null&&u.contains(b.target))&&!((g=i.current)!=null&&g.contains(b.target))&&a(!1)},f=b=>{var u,g;b.key==="Escape"&&(a(!1),(g=(u=l.current)==null?void 0:u.querySelector("button, a, [tabindex]"))==null||g.dispatchEvent(new Event("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:ce.triggerWrapper,onClick:()=>a(d=>!d),"aria-haspopup":"menu","aria-expanded":r,children:t}),r&&typeof document<"u"&&Ie.createPortal(e.jsx("div",{ref:i,className:[ce.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:ce.separator,role:"separator"},f):e.jsxs("button",{type:"button",role:"menuitem",className:[ce.item,d.disabled?ce.itemDisabled:""].filter(Boolean).join(" "),onClick:()=>h(d),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:ce.itemIcon,"aria-hidden":"true",children:d.icon}),e.jsx("span",{children:d.label})]},f))}),document.body)]})},Oi="_wrapper_13j54_1",Pi="_wrapperDisabled_13j54_8",Ui="_labelRow_13j54_13",Vi="_label_13j54_13",Xi="_valueDisplay_13j54_25",Yi="_trackWrapper_13j54_31",Ki="_sm_13j54_37",Gi="_md_13j54_38",Ji="_lg_13j54_39",Qi="_trackBg_13j54_41",Zi="_trackFill_13j54_51",el="_input_13j54_61",z={wrapper:Oi,wrapperDisabled:Pi,labelRow:Ui,label:Vi,valueDisplay:Xi,trackWrapper:Yi,sm:Ki,md:Gi,lg:Ji,trackBg:Qi,trackFill:Zi,input:el},tl=({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,b=o!==void 0?(o-t)/(n-t)*100:0;return e.jsxs("div",{className:[z.wrapper,c?z.wrapperDisabled:"",_??""].filter(Boolean).join(" "),children:[(a||l)&&e.jsxs("div",{className:z.labelRow,children:[a&&e.jsx("label",{htmlFor:f,className:z.label,children:a}),l&&o!==void 0&&e.jsx("span",{className:z.valueDisplay,children:o})]}),e.jsxs("div",{className:[z.trackWrapper,z[i]].filter(Boolean).join(" "),children:[e.jsx("div",{className:z.trackBg}),e.jsx("div",{className:z.trackFill,style:{width:`${b}%`}}),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:z.input,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,...h})]})]})},sl="_root_q5j4f_1",nl="_label_q5j4f_7",ol="_required_q5j4f_14",rl="_wrapper_q5j4f_18",al="_hasError_q5j4f_33",il="_disabled_q5j4f_41",ll="_sm_q5j4f_47",cl="_md_q5j4f_48",dl="_lg_q5j4f_49",_l="_input_q5j4f_51",ul="_stepBtn_q5j4f_72",pl="_errorMsg_q5j4f_96",hl="_hintMsg_q5j4f_103",D={root:sl,label:nl,required:ol,wrapper:rl,hasError:al,disabled:il,sm:ll,md:cl,lg:dl,input:_l,stepBtn:ul,errorMsg:pl,hintMsg:hl},ml=({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 b=m.useId(),u=h??b,g=`${u}-hint`,v=`${u}-error`,N=()=>{const $=(t??0)-r;s!==void 0&&$<s||n==null||n($)},j=()=>{const $=(t??0)+r;o!==void 0&&$>o||n==null||n($)},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:$=>n==null?void 0:n($.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})]})},fl="_root_10bwd_1",xl="_label_10bwd_7",bl="_zone_10bwd_14",gl="_zoneDisabled_10bwd_29",vl="_dragging_10bwd_34",jl="_zoneError_10bwd_39",wl="_hiddenInput_10bwd_48",kl="_uploadIcon_10bwd_52",$l="_zoneText_10bwd_56",yl="_zoneLink_10bwd_61",Nl="_zoneHint_10bwd_68",Ll="_errorMsg_10bwd_73",Bl="_fileList_10bwd_79",Il="_fileItem_10bwd_88",Cl="_fileName_10bwd_98",El="_fileSize_10bwd_108",Sl="_removeBtn_10bwd_114",C={root:fl,label:xl,zone:bl,zoneDisabled:gl,dragging:vl,zoneError:jl,hiddenInput:wl,uploadIcon:kl,zoneText:$l,zoneLink:yl,zoneHint:Nl,errorMsg:Ll,fileList:Bl,fileItem:Il,fileName:Cl,fileSize:El,removeBtn:Sl},ql=()=>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 We(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Rl=({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,b]=m.useState(!1),[u,g]=m.useState([]),[v,N]=m.useState(null),j=l??v,E=w=>{if(!w)return;const k=Array.from(w);if(s&&k.filter(se=>se.size>s).length>0){N(`File exceeds maximum size of ${We(s)}.`);return}N(null);const H=n?k:k.slice(0,1);g(H),o==null||o(H)},$=w=>{w.preventDefault(),b(!1),i||E(w.dataTransfer.files)},A=w=>{const k=u.filter((H,X)=>X!==w);g(k),o==null||o(k)},V=[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:V,onDragOver:w=>{w.preventDefault(),i||b(!0)},onDragLeave:()=>b(!1),onDrop:$,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(ql,{})}),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,k)=>e.jsxs("li",{className:C.fileItem,children:[e.jsx("span",{className:C.fileName,children:w.name}),e.jsx("span",{className:C.fileSize,children:We(w.size)}),e.jsx("button",{type:"button",className:C.removeBtn,onClick:()=>A(k),"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"})})})]},k))})]})},Wl="_wrapper_i5kin_1",Tl="_table_i5kin_8",Dl="_sm_i5kin_15",Ml="_th_i5kin_15",zl="_td_i5kin_16",Fl="_md_i5kin_21",Al="_lg_i5kin_27",Hl="_thContent_i5kin_43",Ol="_sortable_i5kin_49",Pl="_sortActive_i5kin_58",Ul="_sortIcon_i5kin_62",Vl="_tr_i5kin_72",Xl="_striped_i5kin_91",Yl="_bordered_i5kin_100",Kl="_empty_i5kin_105",T={wrapper:Wl,table:Tl,sm:Dl,th:Ml,td:zl,md:Fl,lg:Al,thContent:Hl,sortable:Ol,sortActive:Pl,sortIcon:Ul,tr:Vl,striped:Xl,bordered:Yl,empty:Kl},Gl=()=>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"})}),Jl=()=>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"})}),Ql=()=>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 Zl({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,b=[T.th,d.sortable?T.sortable:"",f?T.sortActive:""].filter(Boolean).join(" ");return e.jsx("th",{className:b,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(Gl,{}):e.jsx(Jl,{}):e.jsx(Ql,{})})]})},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(b=>{const u=d[b.key],g=b.render?b.render(u,d,f):u;return e.jsx("td",{className:T.td,children:g},b.key)})},f))})]})})}exports.Accordion=Ko;exports.Alert=_r;exports.Avatar=ka;exports.Badge=ps;exports.Breadcrumb=Ja;exports.Button=Te;exports.Card=me;exports.Checkbox=Oe;exports.Dialog=fe;exports.Divider=xr;exports.Dropdown=Hi;exports.EmptyState=Ha;exports.FileUpload=Rl;exports.Input=De;exports.NumberInput=ml;exports.Pagination=ci;exports.Popover=Ri;exports.Progress=Vr;exports.RadioGroup=On;exports.Select=He;exports.Skeleton=Sr;exports.Slider=tl;exports.Spinner=Ir;exports.Stepper=$i;exports.Switch=Pe;exports.Table=Zl;exports.Tabs=Do;exports.Tag=Ta;exports.Textarea=Ae;exports.Title=ss;exports.ToastProvider=ra;exports.Tooltip=Bo;exports.useToast=aa;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),Ie=require("react-dom"),Ze="_button_111na_1",et="_loading_111na_26",tt="_sm_111na_33",st="_md_111na_39",nt="_lg_111na_45",ot="_primary_111na_52",rt="_secondary_111na_65",at="_outline_111na_78",it="_ghost_111na_90",lt="_danger_111na_101",ct="_fullWidth_111na_114",dt="_spinner_111na_119",_t="_spin_111na_119",oe={button:Ze,loading:et,sm:tt,md:st,lg:nt,primary:ot,secondary:rt,outline:at,ghost:it,danger:lt,fullWidth:ct,spinner:dt,spin:_t},Te=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=[oe.button,oe[t],oe[n],o?oe.fullWidth:"",s?oe.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:oe.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})]})});Te.displayName="Button";const ut="_wrapper_1r7em_1",pt="_label_1r7em_8",ht="_required_1r7em_15",mt="_inputWrapper_1r7em_20",ft="_input_1r7em_20",xt="_error_1r7em_55",bt="_sm_1r7em_64",gt="_md_1r7em_70",vt="_lg_1r7em_76",jt="_hasLeft_1r7em_83",wt="_hasRight_1r7em_87",kt="_iconLeft_1r7em_91",$t="_iconRight_1r7em_92",yt="_hint_1r7em_111",Nt="_errorText_1r7em_117",Lt="_floatingWrapper_1r7em_125",Bt="_inputFloating_1r7em_130",It="_floatingLabelEl_1r7em_149",Ct="_floatingLabelSm_1r7em_165",Et="_floatingLabelMd_1r7em_166",St="_floatingLabelLg_1r7em_167",qt="_floatingLabelWithLeft_1r7em_170",Rt="_floatingLabelError_1r7em_190",L={wrapper:ut,label:pt,required:ht,inputWrapper:mt,input:ft,error:xt,sm:bt,md:gt,lg:vt,hasLeft:jt,hasRight:wt,iconLeft:kt,iconRight:$t,hint:yt,errorText:Nt,floatingWrapper:Lt,inputFloating:Bt,floatingLabelEl:It,floatingLabelSm:Ct,floatingLabelMd:Et,floatingLabelLg:St,floatingLabelWithLeft:qt,floatingLabelError:Rt},Wt=()=>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"})}),De=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:b,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,$=j?`${j}-hint`:void 0,A=l||!!i,V=i??e.jsx(Wt,{});let w=r,k=a,H=!1,X=!1;A&&(c==="right"?k||(k=V,X=!0):w||(w=V,H=!0));const se=[L.input,L[n],f?L.inputFloating:"",s?L.error:"",w?L.hasLeft:"",k?L.hasRight:"",b??""].filter(Boolean).join(" "),xe=[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:se,required:h,"aria-invalid":!!s,"aria-describedby":[s?E:null,o?$:null].filter(Boolean).join(" ")||void 0,placeholder:f?" ":g,...v}),t&&f&&e.jsxs("label",{htmlFor:j,className:xe,children:[t,h&&e.jsx("span",{className:L.required,"aria-hidden":"true",children:"*"})]}),k&&e.jsx("span",{className:[L.iconRight,p??""].filter(Boolean).join(" "),"data-slot":"right-icon","data-search-icon":X?"true":void 0,"aria-hidden":"true",children:k})]}),s&&e.jsx("span",{id:E,className:L.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:$,className:L.hint,children:o})]})});De.displayName="Input";const Tt="_title_1np0f_1",Dt="_xs_1np0f_9",Mt="_sm_1np0f_14",zt="_md_1np0f_19",Ft="_lg_1np0f_24",At="_xl_1np0f_29",Ht="_xxl_1np0f_34",Ot="_light_1np0f_40",Pt="_normal_1np0f_44",Ut="_medium_1np0f_48",Vt="_semibold_1np0f_52",Xt="_bold_1np0f_56",Yt="_extrabold_1np0f_60",Kt="_left_1np0f_65",Gt="_center_1np0f_69",Jt="_right_1np0f_73",Qt="_muted_1np0f_82",Zt="_primary_1np0f_86",es="_gradient_1np0f_90",ue={title:Tt,xs:Dt,sm:Mt,md:zt,lg:Ft,xl:At,xxl:Ht,light:Ot,normal:Pt,medium:Ut,semibold:Vt,bold:Xt,extrabold:Yt,left:Kt,center:Gt,right:Jt,default:"_default_1np0f_78",muted:Qt,primary:Zt,gradient:es},ts={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},ss=({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??ts[_],h=[ue.title,ue[p],ue[o],ue[r],ue[a],i??""].filter(Boolean).join(" ");return m.createElement(_,{className:h,...c},l)},ns="_badge_8sbva_1",os="_sm_8sbva_14",rs="_md_8sbva_19",as="_lg_8sbva_24",is="_info_8sbva_36",ls="_success_8sbva_42",cs="_warning_8sbva_48",ds="_danger_8sbva_54",_s="_primary_8sbva_60",us="_dot_8sbva_67",we={badge:ns,sm:os,md:rs,lg:as,default:"_default_8sbva_30",info:is,success:ls,warning:cs,danger:ds,primary:_s,dot:us},ps=({variant:t="default",size:n="md",dot:s=!1,leftIcon:o,children:r,className:a,...l})=>{const i=[we.badge,we[t],we[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[s&&e.jsx("span",{className:we.dot,"aria-hidden":"true"}),!s&&o&&e.jsx("span",{"aria-hidden":"true",children:o}),r]})},hs="_card_1q61w_1",ms="_bordered_1q61w_11",fs="_shadow_1q61w_15",xs="_elevated_1q61w_19",bs="_ghost_1q61w_23",gs="_sm_1q61w_29",vs="_cardHeader_1q61w_29",js="_cardBody_1q61w_30",ws="_cardFooter_1q61w_31",ks="_md_1q61w_35",$s="_lg_1q61w_41",ys="_hoverable_1q61w_72",te={card:hs,bordered:ms,shadow:fs,elevated:xs,ghost:bs,sm:gs,cardHeader:vs,cardBody:js,cardFooter:ws,md:ks,lg:$s,hoverable:ys},Me=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardHeader} ${n??""}`,...s,children:t});Me.displayName="Card.Header";const ze=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardBody} ${n??""}`,...s,children:t});ze.displayName="Card.Body";const Fe=({children:t,className:n,...s})=>e.jsx("div",{className:`${te.cardFooter} ${n??""}`,...s,children:t});Fe.displayName="Card.Footer";const Ns=({variant:t="bordered",size:n="md",hoverable:s=!1,children:o,className:r,...a})=>{const l=[te.card,te[t],te[n],s?te.hoverable:"",r??""].filter(Boolean).join(" ");return e.jsx("div",{className:l,...a,children:o})},me=Ns;me.Header=Me;me.Body=ze;me.Footer=Fe;me.displayName="Card";const Ls="_wrapper_1xu0d_1",Bs="_wrapperFullWidth_1xu0d_7",Is="_label_1xu0d_11",Cs="_required_1xu0d_18",Es="_textarea_1xu0d_23",Ss="_hasError_1xu0d_53",qs="_sm_1xu0d_62",Rs="_md_1xu0d_67",Ws="_lg_1xu0d_72",Ts="_none_1xu0d_78",Ds="_vertical_1xu0d_82",Ms="_horizontal_1xu0d_86",zs="_both_1xu0d_90",Fs="_fullWidth_1xu0d_94",As="_hint_1xu0d_98",Hs="_errorText_1xu0d_104",M={wrapper:Ls,wrapperFullWidth:Bs,label:Is,required:Cs,textarea:Es,hasError:Ss,sm:qs,md:Rs,lg:Ws,none:Ts,vertical:Ds,horizontal:Ms,both:zs,fullWidth:Fs,hint:As,errorText:Hs},Ae=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,b=[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:b,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})]})});Ae.displayName="Textarea";const Os="_wrapper_1cpn4_1",Ps="_wrapperFullWidth_1cpn4_7",Us="_label_1cpn4_11",Vs="_required_1cpn4_18",Xs="_selectWrapper_1cpn4_23",Ys="_hiddenSelect_1cpn4_46",Ks="_trigger_1cpn4_53",Gs="_hasError_1cpn4_103",Js="_sm_1cpn4_114",Qs="_md_1cpn4_120",Zs="_lg_1cpn4_126",en="_fullWidth_1cpn4_132",tn="_valueText_1cpn4_136",sn="_placeholder_1cpn4_144",nn="_chevron_1cpn4_148",on="_isOpen_1cpn4_180",rn="_menu_1cpn4_184",an="_option_1cpn4_203",ln="_optionFocused_1cpn4_222",cn="_optionSelected_1cpn4_229",dn="_optionLabel_1cpn4_238",_n="_optionCheck_1cpn4_243",un="_optionCheckVisible_1cpn4_250",pn="_hint_1cpn4_260",hn="_errorText_1cpn4_266",y={wrapper:Os,wrapperFullWidth:Ps,label:Us,required:Vs,selectWrapper:Xs,hiddenSelect:Ys,trigger:Ks,hasError:Gs,sm:Js,md:Qs,lg:Zs,fullWidth:en,valueText:tn,placeholder:sn,chevron:nn,isOpen:on,menu:rn,option:an,optionFocused:ln,optionSelected:cn,optionLabel:dn,optionCheck:_n,optionCheckVisible:un,hint:pn,errorText:hn};function mn(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 He=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:b,onFocus:u,onKeyDown:g,disabled:v,name:N,autoComplete:j,form:E,...$},A)=>{const V=m.useRef(null),w=m.useRef(null);m.useImperativeHandle(A,()=>V.current);const k=_??(t?`vui-select-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0),H=k?`${k}-error`:void 0,X=k?`${k}-hint`:void 0,se=k?`${k}-listbox`:void 0,xe=k?`${k}-label`:void 0,B=m.useMemo(()=>l||mn(p),[p,l]),be=h!==void 0,J=B.find(x=>!x.disabled),Ke=String(d??(i?"":(J==null?void 0:J.value)??"")),[Ne,Ce]=m.useState(Ke),ge=String(be?h??"":Ne),[Q,ne]=m.useState(!1),[de,ve]=m.useState(-1);m.useEffect(()=>{if(be||!B.length)return;B.some(I=>I.value===Ne)||Ce((J==null?void 0:J.value)??"")},[B,be,Ne,J]),m.useEffect(()=>{const x=I=>{w.current&&!w.current.contains(I.target)&&ne(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const je=B.find(x=>x.value===ge),Ge=(je==null?void 0:je.label)??i??"",Je=[y.trigger,y[n],s?y.hasError:"",a?y.fullWidth:"",Q?y.isOpen:"",c??""].filter(Boolean).join(" "),Ee=x=>{var S;be||Ce(x);const I=V.current;if(I){const _e=(S=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:S.set;_e==null||_e.call(I,x),I.dispatchEvent(new Event("change",{bubbles:!0}))}},Le=()=>{if(v||!B.length)return;ne(!0);const x=B.findIndex(S=>S.value===ge&&!S.disabled);if(x>=0){ve(x);return}const I=B.findIndex(S=>!S.disabled);ve(I)},Se=x=>{if(!B.length)return;let I=de;for(let S=0;S<B.length;S+=1)if(I=(I+x+B.length)%B.length,!B[I].disabled){ve(I);return}},Qe=x=>{if(g==null||g(x),!x.defaultPrevented){if(!Q&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault(),Le();return}if(!Q&&(x.key==="Enter"||x.key===" ")){x.preventDefault(),Le();return}if(Q){if(x.key==="Escape"){x.preventDefault(),ne(!1);return}if(x.key==="ArrowDown"){x.preventDefault(),Se(1);return}if(x.key==="ArrowUp"){x.preventDefault(),Se(-1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),de>=0&&!B[de].disabled&&(Ee(B[de].value),ne(!1)))}}};return e.jsxs("div",{className:`${y.wrapper}${a?` ${y.wrapperFullWidth}`:""}`,children:[t&&e.jsxs("label",{id:xe,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:V,id:k,className:y.hiddenSelect,value:ge,required:r,disabled:v,name:N,form:E,autoComplete:j,"aria-invalid":!!s,"aria-describedby":[s?H:null,o&&!s?X:null].filter(Boolean).join(" ")||void 0,"aria-hidden":"true",tabIndex:-1,onChange:f??(()=>{}),...$,children:[i&&e.jsx("option",{value:"",disabled:r,children:i}),B.map(x=>e.jsx("option",{value:x.value,disabled:x.disabled,children:x.label},x.value))]}),e.jsx("button",{type:"button",className:Je,disabled:v,role:"combobox","aria-invalid":!!s,"aria-labelledby":xe,"aria-haspopup":"listbox","aria-expanded":Q,"aria-controls":se,onClick:()=>Q?ne(!1):Le(),onKeyDown:Qe,onFocus:x=>u==null?void 0:u(x),onBlur:x=>b==null?void 0:b(x),children:e.jsx("span",{className:`${y.valueText}${je?"":` ${y.placeholder}`}`,children:Ge})}),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"})})}),Q&&e.jsx("ul",{id:se,role:"listbox",className:y.menu,children:B.map((x,I)=>{const S=x.value===ge,_e=I===de;return e.jsx("li",{children:e.jsxs("button",{type:"button",role:"option","aria-selected":S,className:[y.option,S?y.optionSelected:"",_e?y.optionFocused:""].filter(Boolean).join(" "),disabled:x.disabled,onMouseEnter:()=>ve(I),onClick:()=>{Ee(x.value),ne(!1)},children:[e.jsx("span",{className:y.optionLabel,children:x.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"})})})]})},x.value)})})]}),s&&e.jsx("span",{id:H,className:y.errorText,role:"alert",children:s}),o&&!s&&e.jsx("span",{id:X,className:y.hint,children:o})]})});He.displayName="Select";const fn="_wrapper_iu9cq_1",xn="_row_iu9cq_7",bn="_checkbox_iu9cq_14",gn="_hasError_iu9cq_51",vn="_sm_iu9cq_60",jn="_md_iu9cq_74",wn="_lg_iu9cq_88",kn="_label_iu9cq_102",$n="_description_iu9cq_113",yn="_errorText_iu9cq_123",O={wrapper:fn,row:xn,checkbox:bn,hasError:gn,sm:vn,md:jn,lg:wn,label:kn,description:$n,errorText:yn},Oe=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=[O.checkbox,O[o],s?O.hasError:"",r??""].filter(Boolean).join(" ");return e.jsxs("div",{className:`${O.wrapper} ${O[o]}`,children:[e.jsxs("div",{className:O.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:O.label,children:t})]}),n&&!s&&e.jsx("span",{id:p,className:O.description,children:n}),s&&e.jsx("span",{id:_,className:O.errorText,role:"alert",children:s})]})});Oe.displayName="Checkbox";const Nn="_fieldset_nj7or_1",Ln="_legend_nj7or_10",Bn="_required_nj7or_19",In="_group_nj7or_24",Cn="_vertical_nj7or_28",En="_horizontal_nj7or_33",Sn="_option_nj7or_39",qn="_radio_nj7or_46",Rn="_hasError_nj7or_81",Wn="_sm_nj7or_86",Tn="_md_nj7or_87",Dn="_lg_nj7or_88",Mn="_optionContent_nj7or_90",zn="_optionLabel_nj7or_96",Fn="_optionDescription_nj7or_107",An="_hint_nj7or_113",Hn="_errorText_nj7or_119",q={fieldset:Nn,legend:Ln,required:Bn,group:In,vertical:Cn,horizontal:En,option:Sn,radio:qn,hasError:Rn,sm:Wn,md:Tn,lg:Dn,optionContent:Mn,optionLabel:zn,optionDescription:Fn,hint:An,errorText:Hn},On=({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`,b=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=b?{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:_})]})},Pn="_wrapper_okiio_1",Un="_labelRow_okiio_7",Vn="_track_okiio_15",Xn="_input_okiio_23",Yn="_thumb_okiio_32",Kn="_labelText_okiio_65",Gn="_sm_okiio_74",Jn="_md_okiio_80",Qn="_lg_okiio_86",Zn="_description_okiio_98",Y={wrapper:Pn,labelRow:Un,track:Vn,input:Xn,thumb:Yn,labelText:Kn,sm:Gn,md:Jn,lg:Qn,description:Zn},Pe=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:`${Y.wrapper} ${Y[s]}`,children:[e.jsxs("label",{className:Y.labelRow,htmlFor:i,children:[e.jsxs("span",{className:Y.track,children:[e.jsx("input",{ref:l,type:"checkbox",role:"switch",id:i,className:`${Y.input} ${o??""}`,"aria-describedby":c||void 0,...a}),e.jsx("span",{className:Y.thumb,"aria-hidden":"true"})]}),t&&e.jsx("span",{className:Y.labelText,children:t})]}),n&&e.jsx("span",{id:c,className:Y.description,children:n})]})});Pe.displayName="Switch";const eo="_overlay_gedqr_1",to="_overlayFadeIn_gedqr_1",so="_dialog_gedqr_19",no="_dialogSlideUp_gedqr_1",oo="_sm_gedqr_39",ro="_md_gedqr_40",ao="_lg_gedqr_41",io="_xl_gedqr_42",lo="_header_gedqr_45",co="_title_gedqr_51",_o="_description_gedqr_59",uo="_body_gedqr_66",po="_footer_gedqr_71",ho="_closeBtn_gedqr_81",F={overlay:eo,overlayFadeIn:to,dialog:so,dialogSlideUp:no,sm:oo,md:ro,lg:ao,xl:io,header:lo,title:co,description:_o,body:uo,footer:po,closeBtn:ho},qe='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',Ue=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.header} ${n??""}`,...s,children:t});Ue.displayName="Dialog.Header";const Ve=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.body} ${n??""}`,...s,children:t});Ve.displayName="Dialog.Body";const Xe=({children:t,className:n,...s})=>e.jsx("div",{className:`${F.footer} ${n??""}`,...s,children:t});Xe.displayName="Dialog.Footer";const Re={current:0},mo=({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-${++Re.current}`).current,p=m.useRef(`vui-dialog-desc-${Re.current}`).current,h=m.useRef(null);if(m.useEffect(()=>{if(!t)return;h.current=document.activeElement,document.body.style.overflow="hidden";const b=requestAnimationFrame(()=>{var v,N;const g=(v=c.current)==null?void 0:v.querySelectorAll(qe);(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(qe));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(b),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:F.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:[F.dialog,F[r],l??""].filter(Boolean).join(" "),children:[s&&e.jsxs("div",{className:F.header,children:[e.jsx("p",{id:_,className:F.title,children:s}),o&&e.jsx("p",{id:p,className:F.description,children:o})]}),a,e.jsx("button",{type:"button",className:F.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"})})})]})})},fe=mo;fe.Header=Ue;fe.Body=Ve;fe.Footer=Xe;fe.displayName="Dialog";const fo="_wrapper_16e9w_1",xo="_tooltip_16e9w_6",bo="_visible_16e9w_25",go="_top_16e9w_30",vo="_bottom_16e9w_36",jo="_left_16e9w_42",wo="_right_16e9w_48",ko="_arrow_16e9w_55",$o="_arrowTop_16e9w_61",yo="_arrowBottom_16e9w_70",No="_arrowLeft_16e9w_79",Lo="_arrowRight_16e9w_88",re={wrapper:fo,tooltip:xo,visible:bo,top:go,bottom:vo,left:jo,right:wo,arrow:ko,arrowTop:$o,arrowBottom:yo,arrowLeft:No,arrowRight:Lo},Bo=({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:re.wrapper,onMouseEnter:_,onMouseLeave:p,onFocus:_,onBlur:p,children:[h,e.jsxs("span",{id:i,role:"tooltip",className:[re.tooltip,re[s],r?re.visible:""].filter(Boolean).join(" "),"aria-hidden":!r,children:[t,e.jsx("span",{className:`${re.arrow} ${re[`arrow${s.charAt(0).toUpperCase()}${s.slice(1)}`]}`,"aria-hidden":"true"})]})]})},Io="_tabs_16y0p_1",Co="_tablist_16y0p_8",Eo="_underline_16y0p_14",So="_tab_16y0p_1",qo="_activeTab_16y0p_39",Ro="_pills_16y0p_50",Wo="_boxed_16y0p_89",To="_panel_16y0p_139",ae={tabs:Io,tablist:Co,underline:Eo,tab:So,activeTab:qo,pills:Ro,boxed:Wo,panel:To},Do=({items:t,defaultValue:n,value:s,onChange:o,variant:r="underline"})=>{var b;const a=s!==void 0,[l,i]=m.useState(n??((b=t[0])==null?void 0:b.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($=>!$.disabled),N=v.findIndex($=>$.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 $=v[j];p($.value);const A=(E=_.current)==null?void 0:E.querySelector(`[data-value="${$.value}"]`);A==null||A.focus()}},d=u=>`vui-tabpanel-${u}`,f=u=>`vui-tab-${u}`;return e.jsxs("div",{className:ae.tabs,children:[e.jsx("div",{ref:_,role:"tablist",className:[ae.tablist,ae[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:[ae.tab,c===u.value?ae.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:ae.panel,children:u.children},u.value))]})},Mo="_accordion_wacbm_1",zo="_bordered_wacbm_7",Fo="_item_wacbm_13",Ao="_flush_wacbm_17",Ho="_separated_wacbm_21",Oo="_heading_wacbm_35",Po="_trigger_wacbm_40",Uo="_icon_wacbm_72",Vo="_open_wacbm_80",Xo="_contentOuter_wacbm_85",Yo="_contentInner_wacbm_95",P={accordion:Mo,bordered:zo,item:Fo,flush:Ao,separated:Ho,heading:Oo,trigger:Po,icon:Uo,open:Vo,contentOuter:Xo,contentInner:Yo},Ko=({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(b=>b!==d):f=r?[...p,d]:[d],l||_(f),o==null||o(r?f:f[0]??"")};return e.jsx("div",{className:[P.accordion,P[a]].filter(Boolean).join(" "),children:t.map(d=>{const f=p.includes(d.value),b=`vui-accordion-trigger-${d.value}`,u=`vui-accordion-panel-${d.value}`;return e.jsxs("div",{className:[P.item,f?P.open:""].filter(Boolean).join(" "),children:[e.jsx("h3",{className:P.heading,children:e.jsxs("button",{id:b,type:"button","aria-expanded":f,"aria-controls":u,disabled:d.disabled,className:P.trigger,onClick:()=>!d.disabled&&h(d.value),children:[e.jsx("span",{children:d.title}),e.jsx("span",{className:P.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":b,className:P.contentOuter,children:e.jsx("div",{className:P.contentInner,children:d.content})})]},d.value)})})},Go="_alert_b1vtk_1",Jo="_icon_b1vtk_12",Qo="_content_b1vtk_19",Zo="_title_b1vtk_24",er="_body_b1vtk_31",tr="_closeBtn_b1vtk_35",sr="_info_b1vtk_64",nr="_success_b1vtk_70",or="_warning_b1vtk_76",rr="_danger_b1vtk_82",Z={alert:Go,icon:Jo,content:Qo,title:Zo,body:er,closeBtn:tr,info:sr,success:nr,warning:or,danger:rr},ar=()=>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"})}),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:"M9 12l2 2 4-4m6 2a9 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:"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"})}),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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),dr={info:e.jsx(ar,{}),success:e.jsx(ir,{}),warning:e.jsx(lr,{}),danger:e.jsx(cr,{})},_r=({variant:t="info",title:n,icon:s,onClose:o,children:r,className:a,...l})=>{const i=[Z.alert,Z[t],a??""].filter(Boolean).join(" "),c=s!==void 0?s:dr[t];return e.jsxs("div",{className:i,role:"alert",...l,children:[c&&e.jsx("span",{className:Z.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:Z.content,children:[n&&e.jsx("p",{className:Z.title,children:n}),e.jsx("div",{className:Z.body,children:r})]}),o&&e.jsx("button",{type:"button",className:Z.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"})})})]})},ur="_divider_vfae1_1",pr="_horizontal_vfae1_6",hr="_vertical_vfae1_12",mr="_withLabel_vfae1_19",fr="_label_vfae1_33",ke={divider:ur,horizontal:pr,vertical:hr,withLabel:mr,label:fr},xr=({orientation:t="horizontal",label:n,className:s,...o})=>{const r=[ke.divider,ke[t],n?ke.withLabel:"",s??""].filter(Boolean).join(" ");return e.jsx("div",{role:"separator","aria-orientation":t,className:r,...o,children:n&&e.jsx("span",{className:ke.label,children:n})})},br="_spinner_1232t_1",gr="_svg_1232t_8",vr="_spin_1232t_1",jr="_track_1232t_17",wr="_arc_1232t_21",kr="_sm_1232t_27",$r="_md_1232t_33",yr="_lg_1232t_39",Nr="_primary_1232t_46",Lr="_muted_1232t_50",Br="_white_1232t_54",ie={spinner:br,svg:gr,spin:vr,track:jr,arc:wr,sm:kr,md:$r,lg:yr,primary:Nr,muted:Lr,white:Br},Ir=({size:t="md",color:n="primary",label:s="Loading…",className:o,...r})=>{const a=[ie.spinner,ie[t],ie[n],o??""].filter(Boolean).join(" ");return e.jsx("span",{className:a,role:"status","aria-label":s,...r,children:e.jsxs("svg",{className:ie.svg,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{className:ie.track,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),e.jsx("circle",{className:ie.arc,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})})},Cr="_block_tuupu_1",Er="_stack_tuupu_13",Be={block:Cr,stack:Er},ee=t=>{if(t!==void 0)return typeof t=="number"?`${t}px`:t},Sr=({width:t,height:n,radius:s,lines:o,gap:r,className:a,style:l,...i})=>{if(o&&o>1){const c=ee(r)??"0.5rem";return e.jsx("span",{className:[Be.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:Be.block,style:{width:h?"75%":ee(t)??"100%",height:ee(n)??"1rem",borderRadius:ee(s)??"var(--vui-radius-sm, 0.375rem)"}},p)})})}return e.jsx("span",{className:[Be.block,a??""].filter(Boolean).join(" "),style:{width:ee(t),height:ee(n)??"1rem",borderRadius:ee(s)??"var(--vui-radius-sm, 0.375rem)",...l},"aria-hidden":"true",...i})},qr="_wrapper_xgu51_1",Rr="_labelRow_xgu51_8",Wr="_label_xgu51_8",Tr="_value_xgu51_20",Dr="_track_xgu51_26",Mr="_sm_xgu51_33",zr="_md_xgu51_34",Fr="_lg_xgu51_35",Ar="_bar_xgu51_37",Hr="_primary_xgu51_43",Or="_success_xgu51_44",Pr="_warning_xgu51_45",Ur="_danger_xgu51_46",K={wrapper:qr,labelRow:Rr,label:Wr,value:Tr,track:Dr,sm:Mr,md:zr,lg:Fr,bar:Ar,primary:Hr,success:Or,warning:Pr,danger:Ur},Vr=({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}%`}})})]})},Xr="_container_2etd3_1",Yr="_toast_2etd3_14",Kr="_slideUp_2etd3_1",Gr="_message_2etd3_31",Jr="_close_2etd3_38",Qr="_info_2etd3_63",Zr="_success_2etd3_69",ea="_warning_2etd3_75",ta="_danger_2etd3_81",he={container:Xr,toast:Yr,slideUp:Kr,message:Gr,close:Jr,info:Qr,success:Zr,warning:ea,danger:ta},Ye=m.createContext(null);let sa=0;const na=()=>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"})}),oa=({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=[he.toast,he[t.variant??"info"]].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"alert","aria-live":"assertive",children:[e.jsx("span",{className:he.message,children:t.message}),e.jsx("button",{type:"button",className:he.close,onClick:()=>n(t.id),"aria-label":"Dismiss notification",children:e.jsx(na,{})})]})},ra=({children:t})=>{const[n,s]=m.useState([]),o=m.useCallback(a=>{const l=`toast-${++sa}`;s(i=>[...i,{...a,id:l}])},[]),r=m.useCallback(a=>{s(l=>l.filter(i=>i.id!==a))},[]);return e.jsxs(Ye.Provider,{value:{addToast:o,removeToast:r},children:[t,typeof document<"u"&&Ie.createPortal(e.jsx("div",{className:he.container,"aria-label":"Notifications",children:n.map(a=>e.jsx(oa,{item:a,onRemove:r},a.id))}),document.body)]})},aa=()=>{const t=m.useContext(Ye);if(!t)throw new Error("useToast must be used inside <ToastProvider>");return t},ia="_avatar_1ado7_1",la="_xs_1ado7_15",ca="_sm_1ado7_16",da="_md_1ado7_17",_a="_lg_1ado7_18",ua="_xl_1ado7_19",pa="_circle_1ado7_22",ha="_square_1ado7_23",ma="_img_1ado7_25",fa="_initials_1ado7_32",xa="_fallbackIcon_1ado7_37",ba="_status_1ado7_44",ga="_online_1ado7_56",va="_away_1ado7_57",ja="_offline_1ado7_58",G={avatar:ia,xs:la,sm:ca,md:da,lg:_a,xl:ua,circle:pa,square:ha,img:ma,initials:fa,fallbackIcon:xa,status:ba,online:ga,away:va,offline:ja};function wa(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 ka=({src:t,alt:n,name:s,size:o="md",shape:r="circle",status:a,className:l,...i})=>{const[c,_]=m.useState(!1),p=[G.avatar,G[o],G[r],l??""].filter(Boolean).join(" "),h=t&&!c,d=s?wa(s):null;return e.jsxs("span",{className:p,"aria-label":n??s,...i,children:[h?e.jsx("img",{src:t,alt:n??s??"",className:G.img,onError:()=>_(!0)}):d?e.jsx("span",{className:G.initials,"aria-hidden":"true",children:d}):e.jsx("svg",{className:G.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:[G.status,G[a]].filter(Boolean).join(" "),"aria-label":a})]})},$a="_tag_13w40_1",ya="_sm_13w40_14",Na="_md_13w40_19",La="_lg_13w40_24",Ba="_info_13w40_36",Ia="_success_13w40_42",Ca="_warning_13w40_48",Ea="_danger_13w40_54",Sa="_primary_13w40_60",qa="_label_13w40_66",Ra="_icon_13w40_70",Wa="_close_13w40_75",le={tag:$a,sm:ya,md:Na,lg:La,default:"_default_13w40_30",info:Ba,success:Ia,warning:Ca,danger:Ea,primary:Sa,label:qa,icon:Ra,close:Wa},Ta=({variant:t="default",size:n="md",onClose:s,leftIcon:o,children:r,className:a,...l})=>{const i=[le.tag,le[t],le[n],a??""].filter(Boolean).join(" ");return e.jsxs("span",{className:i,...l,children:[o&&e.jsx("span",{className:le.icon,"aria-hidden":"true",children:o}),e.jsx("span",{className:le.label,children:r}),s&&e.jsx("button",{type:"button",className:le.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"})})})]})},Da="_root_6ieqa_1",Ma="_icon_6ieqa_11",za="_title_6ieqa_23",Fa="_description_6ieqa_31",Aa="_action_6ieqa_39",pe={root:Da,icon:Ma,title:za,description:Fa,action:Aa},Ha=({icon:t,title:n,description:s,action:o,className:r,...a})=>e.jsxs("div",{className:[pe.root,r??""].filter(Boolean).join(" "),...a,children:[t&&e.jsx("span",{className:pe.icon,"aria-hidden":"true",children:t}),e.jsx("p",{className:pe.title,children:n}),s&&e.jsx("p",{className:pe.description,children:s}),o&&e.jsx("div",{className:pe.action,children:o})]}),Oa="_nav_1s2na_1",Pa="_list_1s2na_5",Ua="_item_1s2na_15",Va="_separator_1s2na_20",Xa="_crumb_1s2na_27",Ya="_link_1s2na_33",Ka="_current_1s2na_50",U={nav:Oa,list:Pa,item:Ua,separator:Va,crumb:Xa,link:Ya,current:Ka},Ga=()=>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"})}),Ja=({items:t,separator:n,className:s,...o})=>{const r=n??e.jsx(Ga,{});return e.jsx("nav",{"aria-label":"Breadcrumb",className:[U.nav,s??""].filter(Boolean).join(" "),...o,children:e.jsx("ol",{className:U.list,children:t.map((a,l)=>{const i=l===t.length-1;return e.jsxs("li",{className:U.item,children:[l>0&&e.jsx("span",{className:U.separator,"aria-hidden":"true",children:r}),i||!a.href?e.jsx("span",{className:[U.crumb,i?U.current:U.link].filter(Boolean).join(" "),"aria-current":i?"page":void 0,children:a.label}):e.jsx("a",{href:a.href,className:[U.crumb,U.link].filter(Boolean).join(" "),children:a.label})]},l)})})})},Qa="_nav_10kny_1",Za="_list_10kny_5",ei="_btn_10kny_14",ti="_disabled_10kny_32",si="_active_10kny_32",ni="_dots_10kny_54",R={nav:Qa,list:Za,btn:ei,disabled:ti,active:si,dots:ni};function $e(t,n){const s=n-t+1;return Array.from({length:s},(o,r)=>t+r)}function oi(t,n,s){const o=s*2+5;if(n<=o)return $e(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?[...$e(1,3+s*2),"...",n]:l&&!i?[1,"...",...$e(n-(2+s*2),n)]:[1,"...",...$e(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"})}),ai=()=>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"})}),ii=()=>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"})}),li=()=>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"})}),ci=({page:t,totalPages:n,onChange:s,siblingCount:o=1,showFirstLast:r=!0,className:a,...l})=>{const i=oi(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(ii,{})})}),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(ai,{})})}),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(li,{})})})]})})},di="_root_1wmfi_1",_i="_horizontal_1wmfi_6",ui="_vertical_1wmfi_11",pi="_step_1wmfi_16",hi="_connector_1wmfi_32",mi="_indicator_1wmfi_37",fi="_circle_1wmfi_55",xi="_pending_1wmfi_88",bi="_active_1wmfi_94",gi="_completed_1wmfi_100",vi="_content_1wmfi_111",ji="_label_1wmfi_127",wi="_description_1wmfi_139",W={root:di,horizontal:_i,vertical:ui,step:pi,connector:hi,indicator:mi,circle:fi,pending:xi,active:bi,completed:gi,content:vi,label:ji,description:wi},ki=()=>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"})}),$i=({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(ki,{}):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)})})},yi="_triggerWrapper_v2cko_1",Ni="_popover_v2cko_6",Li="_fadeIn_v2cko_1",Bi="_arrow_v2cko_24",Ii="_bottom_v2cko_34",Ci="_top_v2cko_42",Ei="_right_v2cko_50",Si="_left_v2cko_58",ye={triggerWrapper:yi,popover:Ni,fadeIn:Li,arrow:Bi,bottom:Ii,top:Ci,right:Ei,left:Si};function qi(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 Ri=({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}),b=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(qi(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,$;!((E=p.current)!=null&&E.contains(j.target))&&!(($=h.current)!=null&&$.contains(j.target))&&b(!1)},N=j=>{j.key==="Escape"&&b(!1)};return document.addEventListener("mousedown",v),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",N)}},[_,b]);const g=[ye.popover,ye[s],a??""].filter(Boolean).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:p,className:ye.triggerWrapper,onClick:()=>b(!_),"aria-expanded":_,"aria-haspopup":"true",children:t}),_&&typeof document<"u"&&Ie.createPortal(e.jsxs("div",{ref:h,className:g,style:{top:d.top,left:d.left},role:"dialog",children:[e.jsx("div",{className:ye.arrow,"aria-hidden":"true"}),n]}),document.body)]})},Wi="_triggerWrapper_19rgz_1",Ti="_menu_19rgz_6",Di="_item_19rgz_23",Mi="_itemDisabled_19rgz_41",zi="_itemIcon_19rgz_56",Fi="_separator_19rgz_63",ce={triggerWrapper:Wi,menu:Ti,item:Di,itemDisabled:Mi,itemIcon:zi,separator:Fi};function Ai(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 Hi=({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();_(Ai(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=b=>{var u,g;!((u=l.current)!=null&&u.contains(b.target))&&!((g=i.current)!=null&&g.contains(b.target))&&a(!1)},f=b=>{var u;if(b.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:ce.triggerWrapper,onClick:()=>a(d=>!d),"aria-haspopup":"menu","aria-expanded":r,children:t}),r&&typeof document<"u"&&Ie.createPortal(e.jsx("div",{ref:i,className:[ce.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:ce.separator,role:"separator"},f):e.jsxs("button",{type:"button",role:"menuitem",className:[ce.item,d.disabled?ce.itemDisabled:""].filter(Boolean).join(" "),onClick:()=>h(d),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:ce.itemIcon,"aria-hidden":"true",children:d.icon}),e.jsx("span",{children:d.label})]},f))}),document.body)]})},Oi="_wrapper_13j54_1",Pi="_wrapperDisabled_13j54_8",Ui="_labelRow_13j54_13",Vi="_label_13j54_13",Xi="_valueDisplay_13j54_25",Yi="_trackWrapper_13j54_31",Ki="_sm_13j54_37",Gi="_md_13j54_38",Ji="_lg_13j54_39",Qi="_trackBg_13j54_41",Zi="_trackFill_13j54_51",el="_input_13j54_61",z={wrapper:Oi,wrapperDisabled:Pi,labelRow:Ui,label:Vi,valueDisplay:Xi,trackWrapper:Yi,sm:Ki,md:Gi,lg:Ji,trackBg:Qi,trackFill:Zi,input:el},tl=({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,b=o!==void 0?(o-t)/(n-t)*100:0;return e.jsxs("div",{className:[z.wrapper,c?z.wrapperDisabled:"",_??""].filter(Boolean).join(" "),children:[(a||l)&&e.jsxs("div",{className:z.labelRow,children:[a&&e.jsx("label",{htmlFor:f,className:z.label,children:a}),l&&o!==void 0&&e.jsx("span",{className:z.valueDisplay,children:o})]}),e.jsxs("div",{className:[z.trackWrapper,z[i]].filter(Boolean).join(" "),children:[e.jsx("div",{className:z.trackBg}),e.jsx("div",{className:z.trackFill,style:{width:`${b}%`}}),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:z.input,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":o,...h})]})]})},sl="_root_q5j4f_1",nl="_label_q5j4f_7",ol="_required_q5j4f_14",rl="_wrapper_q5j4f_18",al="_hasError_q5j4f_33",il="_disabled_q5j4f_41",ll="_sm_q5j4f_47",cl="_md_q5j4f_48",dl="_lg_q5j4f_49",_l="_input_q5j4f_51",ul="_stepBtn_q5j4f_72",pl="_errorMsg_q5j4f_96",hl="_hintMsg_q5j4f_103",D={root:sl,label:nl,required:ol,wrapper:rl,hasError:al,disabled:il,sm:ll,md:cl,lg:dl,input:_l,stepBtn:ul,errorMsg:pl,hintMsg:hl},ml=({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 b=m.useId(),u=h??b,g=`${u}-hint`,v=`${u}-error`,N=()=>{const $=(t??0)-r;s!==void 0&&$<s||n==null||n($)},j=()=>{const $=(t??0)+r;o!==void 0&&$>o||n==null||n($)},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:$=>n==null?void 0:n($.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})]})},fl="_root_10bwd_1",xl="_label_10bwd_7",bl="_zone_10bwd_14",gl="_zoneDisabled_10bwd_29",vl="_dragging_10bwd_34",jl="_zoneError_10bwd_39",wl="_hiddenInput_10bwd_48",kl="_uploadIcon_10bwd_52",$l="_zoneText_10bwd_56",yl="_zoneLink_10bwd_61",Nl="_zoneHint_10bwd_68",Ll="_errorMsg_10bwd_73",Bl="_fileList_10bwd_79",Il="_fileItem_10bwd_88",Cl="_fileName_10bwd_98",El="_fileSize_10bwd_108",Sl="_removeBtn_10bwd_114",C={root:fl,label:xl,zone:bl,zoneDisabled:gl,dragging:vl,zoneError:jl,hiddenInput:wl,uploadIcon:kl,zoneText:$l,zoneLink:yl,zoneHint:Nl,errorMsg:Ll,fileList:Bl,fileItem:Il,fileName:Cl,fileSize:El,removeBtn:Sl},ql=()=>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 We(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Rl=({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,b]=m.useState(!1),[u,g]=m.useState([]),[v,N]=m.useState(null),j=l??v,E=w=>{if(!w)return;const k=Array.from(w);if(s&&k.filter(se=>se.size>s).length>0){N(`File exceeds maximum size of ${We(s)}.`);return}N(null);const H=n?k:k.slice(0,1);g(H),o==null||o(H)},$=w=>{w.preventDefault(),b(!1),i||E(w.dataTransfer.files)},A=w=>{const k=u.filter((H,X)=>X!==w);g(k),o==null||o(k)},V=[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:V,onDragOver:w=>{w.preventDefault(),i||b(!0)},onDragLeave:()=>b(!1),onDrop:$,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(ql,{})}),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,k)=>e.jsxs("li",{className:C.fileItem,children:[e.jsx("span",{className:C.fileName,children:w.name}),e.jsx("span",{className:C.fileSize,children:We(w.size)}),e.jsx("button",{type:"button",className:C.removeBtn,onClick:()=>A(k),"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"})})})]},k))})]})},Wl="_wrapper_i5kin_1",Tl="_table_i5kin_8",Dl="_sm_i5kin_15",Ml="_th_i5kin_15",zl="_td_i5kin_16",Fl="_md_i5kin_21",Al="_lg_i5kin_27",Hl="_thContent_i5kin_43",Ol="_sortable_i5kin_49",Pl="_sortActive_i5kin_58",Ul="_sortIcon_i5kin_62",Vl="_tr_i5kin_72",Xl="_striped_i5kin_91",Yl="_bordered_i5kin_100",Kl="_empty_i5kin_105",T={wrapper:Wl,table:Tl,sm:Dl,th:Ml,td:zl,md:Fl,lg:Al,thContent:Hl,sortable:Ol,sortActive:Pl,sortIcon:Ul,tr:Vl,striped:Xl,bordered:Yl,empty:Kl},Gl=()=>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"})}),Jl=()=>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"})}),Ql=()=>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 Zl({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,b=[T.th,d.sortable?T.sortable:"",f?T.sortActive:""].filter(Boolean).join(" ");return e.jsx("th",{className:b,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(Gl,{}):e.jsx(Jl,{}):e.jsx(Ql,{})})]})},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(b=>{const u=d[b.key],g=b.render?b.render(u,d,f):u;return e.jsx("td",{className:T.td,children:g},b.key)})},f))})]})})}exports.Accordion=Ko;exports.Alert=_r;exports.Avatar=ka;exports.Badge=ps;exports.Breadcrumb=Ja;exports.Button=Te;exports.Card=me;exports.Checkbox=Oe;exports.Dialog=fe;exports.Divider=xr;exports.Dropdown=Hi;exports.EmptyState=Ha;exports.FileUpload=Rl;exports.Input=De;exports.NumberInput=ml;exports.Pagination=ci;exports.Popover=Ri;exports.Progress=Vr;exports.RadioGroup=On;exports.Select=He;exports.Skeleton=Sr;exports.Slider=tl;exports.Spinner=Ir;exports.Stepper=$i;exports.Switch=Pe;exports.Table=Zl;exports.Tabs=Do;exports.Tag=Ta;exports.Textarea=Ae;exports.Title=ss;exports.ToastProvider=ra;exports.Tooltip=Bo;exports.useToast=aa;
|
package/dist/index.js
CHANGED
|
@@ -1839,10 +1839,12 @@ const ic = ({
|
|
|
1839
1839
|
var u, v;
|
|
1840
1840
|
!((u = l.current) != null && u.contains(g.target)) && !((v = i.current) != null && v.contains(g.target)) && a(!1);
|
|
1841
1841
|
}, f = (g) => {
|
|
1842
|
-
var u
|
|
1843
|
-
g.key === "Escape"
|
|
1844
|
-
|
|
1845
|
-
|
|
1842
|
+
var u;
|
|
1843
|
+
if (g.key === "Escape") {
|
|
1844
|
+
a(!1);
|
|
1845
|
+
const v = (u = l.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
|
|
1846
|
+
v == null || v.focus();
|
|
1847
|
+
}
|
|
1846
1848
|
};
|
|
1847
1849
|
return document.addEventListener("mousedown", d), document.addEventListener("keydown", f), () => {
|
|
1848
1850
|
document.removeEventListener("mousedown", d), document.removeEventListener("keydown", f);
|