@clarlabs/ui 0.1.6 → 0.1.7

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/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),fs="styles-module__accordion__gf0fR",xs="styles-module__item__KZ8v2",vs="styles-module__header__wApZ8",bs="styles-module__title__yCYjK",$s="styles-module__icon__8N04V",js="styles-module__iconOpen__PXmc8",Ns="styles-module__content__WKJF6",ws="styles-module__contentOpen__l7aJG",Ss="styles-module__contentInner__Co6a-",he={accordion:fs,item:xs,header:vs,title:bs,icon:$s,iconOpen:js,content:Ns,contentOpen:ws,contentInner:Ss};function ks({items:s,allowMultiple:t=!1,defaultOpenIds:n=[],className:l=""}){const[a,o]=p.useState(new Set(n)),_=c=>{o(i=>{const r=new Set(i);return r.has(c)?r.delete(c):(t||r.clear(),r.add(c)),r})};return e.jsx("div",{className:`${he.accordion} ${l}`,children:s.map(c=>e.jsx(Cs,{item:c,isOpen:a.has(c.id),onToggle:()=>_(c.id)},c.id))})}function Cs({item:s,isOpen:t,onToggle:n}){return e.jsxs("div",{className:`${he.item} ${t?he.open:""}`,children:[e.jsxs("button",{className:he.header,onClick:n,"aria-expanded":t,children:[e.jsx("span",{className:he.title,children:s.title}),e.jsx("span",{className:`${he.icon} ${t?he.iconOpen:""}`,children:"▼"})]}),e.jsx("div",{className:`${he.content} ${t?he.contentOpen:""}`,children:e.jsx("div",{className:he.contentInner,children:s.content})})]})}const Ls="styles-module__alert__EMa3w",Is="styles-module__icon__7XvtI",Ms="styles-module__content__qU8OK",zs="styles-module__title__Jui7D",Ds="styles-module__message__cazZX",Ts="styles-module__dismissButton__RhF19",Ws="styles-module__info__Rb2nq",Bs="styles-module__success__sQGN5",Es="styles-module__warning__Ev8EY",Rs="styles-module__error__plkoU",De={alert:Ls,icon:Is,content:Ms,title:zs,message:Ds,dismissButton:Ts,info:Ws,success:Bs,warning:Es,error:Rs};function Xs({variant:s="info",title:t,message:n,dismissible:l=!1,onDismiss:a,className:o=""}){const _={info:"ℹ",success:"✓",warning:"⚠",error:"✕"};return e.jsxs("div",{className:`${De.alert} ${De[s]} ${o}`,role:"alert",children:[e.jsx("div",{className:De.icon,children:_[s]}),e.jsxs("div",{className:De.content,children:[t&&e.jsx("div",{className:De.title,children:t}),e.jsx("div",{className:De.message,children:n})]}),l&&e.jsx("button",{className:De.dismissButton,onClick:a,"aria-label":"Dismiss alert",children:"✕"})]})}const Gs="styles-module__avatar__xMx8n",As="styles-module__image__rl-6T",Vs="styles-module__initials__d0Z0v",Ps="styles-module__sm__YBcEp",Fs="styles-module__md__4GVi1",Ys="styles-module__lg__bEtEd",Os="styles-module__xl__WBAtD",qs="styles-module__status__8qwum",Hs="styles-module__online__9lOl6",Ks="styles-module__offline__pi-XT",Zs="styles-module__busy__Cer8C",Us="styles-module__away__zT9iM",Ee={avatar:Gs,image:As,initials:Vs,sm:Ps,md:Fs,lg:Ys,xl:Os,status:qs,online:Hs,offline:Ks,busy:Zs,away:Us};function Js({src:s,alt:t="Avatar",initials:n,size:l="md",status:a,className:o=""}){const _=()=>{if(n)return n;if(t){const c=t.split(" ");return c.length>=2?`${c[0][0]}${c[1][0]}`.toUpperCase():t.slice(0,2).toUpperCase()}return"?"};return e.jsxs("div",{className:`${Ee.avatar} ${Ee[l]} ${o}`,children:[s?e.jsx("img",{src:s,alt:t,className:Ee.image}):e.jsx("div",{className:Ee.initials,children:_()}),a&&e.jsx("span",{className:`${Ee.status} ${Ee[a]}`,"aria-label":`Status: ${a}`})]})}const Qs="styles-module__badge__d6igj",et="styles-module__dot__lsgxk",st="styles-module__sm__rstsk",tt="styles-module__md__o-6j3",lt="styles-module__lg__EXM1E",nt="styles-module__primary__tHsyl",ot="styles-module__success__okGOk",at="styles-module__warning__W-psO",_t="styles-module__error__300RS",ct="styles-module__info__Qec-V",He={badge:Qs,dot:et,sm:st,md:tt,lg:lt,default:"styles-module__default__lOwCs",primary:nt,success:ot,warning:at,error:_t,info:ct};function rt({children:s,variant:t="default",size:n="md",dot:l=!1,className:a=""}){return e.jsxs("span",{className:`${He.badge} ${He[t]} ${He[n]} ${a}`,children:[l&&e.jsx("span",{className:He.dot}),s]})}const dt="styles-module__breadcrumbs__jVeyK",it="styles-module__list__IBUYZ",ut="styles-module__item__unpP2",mt="styles-module__link__n-LMO",pt="styles-module__button__MamiK",yt="styles-module__text__xQt-q",ht="styles-module__current__vuaM0",gt="styles-module__separator__81mEk",Ne={breadcrumbs:dt,list:it,item:ut,link:mt,button:pt,text:yt,current:ht,separator:gt};function ft({items:s,separator:t="/",className:n=""}){return e.jsx("nav",{className:`${Ne.breadcrumbs} ${n}`,"aria-label":"Breadcrumb",children:e.jsx("ol",{className:Ne.list,children:s.map((l,a)=>{const o=a===s.length-1;return e.jsxs("li",{className:Ne.item,children:[l.href&&!o?e.jsx("a",{href:l.href,className:Ne.link,children:l.label}):l.onClick&&!o?e.jsx("button",{onClick:l.onClick,className:Ne.button,children:l.label}):e.jsx("span",{className:`${Ne.text} ${o?Ne.current:""}`,children:l.label}),!o&&e.jsx("span",{className:Ne.separator,"aria-hidden":"true",children:t})]},a)})})})}const xt="styles-module__button__Sh-fr",vt="styles-module__sm__TZ7PA",bt="styles-module__md__MdfAS",$t="styles-module__lg__zhBVx",jt="styles-module__fullWidth__KAUu7",Nt="styles-module__loading__jL3RT",wt="styles-module__spinner__cTprF",St="styles-module__spin__aE1Nk",kt="styles-module__hiddenContent__lbKDI",Ct="styles-module__primary__TRNPt",Lt="styles-module__secondary__QKgly",It="styles-module__success__DI2AT",Mt="styles-module__danger__dnMp7",zt="styles-module__outline__-o6rL",Dt="styles-module__ghost__lca2R",Te={button:xt,sm:vt,md:bt,lg:$t,fullWidth:jt,loading:Nt,spinner:wt,spin:St,hiddenContent:kt,primary:Ct,secondary:Lt,success:It,danger:Mt,outline:zt,ghost:Dt};function Tt({variant:s="primary",size:t="md",fullWidth:n=!1,loading:l=!1,disabled:a,className:o="",children:_,...c}){return e.jsxs("button",{className:`
2
- ${Te.button}
3
- ${Te[s]}
4
- ${Te[t]}
5
- ${n?Te.fullWidth:""}
6
- ${l?Te.loading:""}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),xs="styles-module__accordion__gf0fR",bs="styles-module__item__KZ8v2",vs="styles-module__header__wApZ8",$s="styles-module__title__yCYjK",js="styles-module__icon__8N04V",Ns="styles-module__iconOpen__PXmc8",ws="styles-module__content__WKJF6",ks="styles-module__contentOpen__l7aJG",Ss="styles-module__contentInner__Co6a-",fe={accordion:xs,item:bs,header:vs,title:$s,icon:js,iconOpen:Ns,content:ws,contentOpen:ks,contentInner:Ss};function Cs({items:s,allowMultiple:t=!1,defaultOpenIds:n=[],className:l=""}){const[a,o]=p.useState(new Set(n)),c=d=>{o(r=>{const _=new Set(r);return _.has(d)?_.delete(d):(t||_.clear(),_.add(d)),_})};return e.jsx("div",{className:`${fe.accordion} ${l}`,children:s.map(d=>e.jsx(Ls,{item:d,isOpen:a.has(d.id),onToggle:()=>c(d.id)},d.id))})}function Ls({item:s,isOpen:t,onToggle:n}){return e.jsxs("div",{className:`${fe.item} ${t?fe.open:""}`,children:[e.jsxs("button",{className:fe.header,onClick:n,"aria-expanded":t,children:[e.jsx("span",{className:fe.title,children:s.title}),e.jsx("span",{className:`${fe.icon} ${t?fe.iconOpen:""}`,children:"▼"})]}),e.jsx("div",{className:`${fe.content} ${t?fe.contentOpen:""}`,children:e.jsx("div",{className:fe.contentInner,children:s.content})})]})}const Is="styles-module__alert__EMa3w",Ms="styles-module__icon__7XvtI",zs="styles-module__content__qU8OK",Ds="styles-module__title__Jui7D",Ts="styles-module__message__cazZX",Bs="styles-module__dismissButton__RhF19",Es="styles-module__info__Rb2nq",Ws="styles-module__success__sQGN5",Rs="styles-module__warning__Ev8EY",Xs="styles-module__error__plkoU",Ee={alert:Is,icon:Ms,content:zs,title:Ds,message:Ts,dismissButton:Bs,info:Es,success:Ws,warning:Rs,error:Xs};function Gs({variant:s="info",title:t,message:n,dismissible:l=!1,onDismiss:a,className:o=""}){const c={info:"ℹ",success:"✓",warning:"⚠",error:"✕"};return e.jsxs("div",{className:`${Ee.alert} ${Ee[s]} ${o}`,role:"alert",children:[e.jsx("div",{className:Ee.icon,children:c[s]}),e.jsxs("div",{className:Ee.content,children:[t&&e.jsx("div",{className:Ee.title,children:t}),e.jsx("div",{className:Ee.message,children:n})]}),l&&e.jsx("button",{className:Ee.dismissButton,onClick:a,"aria-label":"Dismiss alert",children:"✕"})]})}const Vs="styles-module__avatar__xMx8n",As="styles-module__image__rl-6T",Ps="styles-module__initials__d0Z0v",Fs="styles-module__sm__YBcEp",Os="styles-module__md__4GVi1",Hs="styles-module__lg__bEtEd",Ys="styles-module__xl__WBAtD",qs="styles-module__status__8qwum",Ks="styles-module__online__9lOl6",Zs="styles-module__offline__pi-XT",Us="styles-module__busy__Cer8C",Js="styles-module__away__zT9iM",Ge={avatar:Vs,image:As,initials:Ps,sm:Fs,md:Os,lg:Hs,xl:Ys,status:qs,online:Ks,offline:Zs,busy:Us,away:Js};function Qs({src:s,alt:t="Avatar",initials:n,size:l="md",status:a,className:o=""}){const c=()=>{if(n)return n;if(t){const d=t.split(" ");return d.length>=2?`${d[0][0]}${d[1][0]}`.toUpperCase():t.slice(0,2).toUpperCase()}return"?"};return e.jsxs("div",{className:`${Ge.avatar} ${Ge[l]} ${o}`,children:[s?e.jsx("img",{src:s,alt:t,className:Ge.image}):e.jsx("div",{className:Ge.initials,children:c()}),a&&e.jsx("span",{className:`${Ge.status} ${Ge[a]}`,"aria-label":`Status: ${a}`})]})}const et="styles-module__badge__d6igj",st="styles-module__dot__lsgxk",tt="styles-module__sm__rstsk",lt="styles-module__md__o-6j3",nt="styles-module__lg__EXM1E",ot="styles-module__primary__tHsyl",at="styles-module__success__okGOk",ct="styles-module__warning__W-psO",_t="styles-module__error__300RS",rt="styles-module__info__Qec-V",Ze={badge:et,dot:st,sm:tt,md:lt,lg:nt,default:"styles-module__default__lOwCs",primary:ot,success:at,warning:ct,error:_t,info:rt};function dt({children:s,variant:t="default",size:n="md",dot:l=!1,className:a=""}){return e.jsxs("span",{className:`${Ze.badge} ${Ze[t]} ${Ze[n]} ${a}`,children:[l&&e.jsx("span",{className:Ze.dot}),s]})}const it="styles-module__breadcrumbs__jVeyK",ut="styles-module__list__IBUYZ",mt="styles-module__item__unpP2",pt="styles-module__link__n-LMO",yt="styles-module__button__MamiK",ht="styles-module__text__xQt-q",gt="styles-module__current__vuaM0",ft="styles-module__separator__81mEk",Se={breadcrumbs:it,list:ut,item:mt,link:pt,button:yt,text:ht,current:gt,separator:ft};function xt({items:s,separator:t="/",className:n=""}){return e.jsx("nav",{className:`${Se.breadcrumbs} ${n}`,"aria-label":"Breadcrumb",children:e.jsx("ol",{className:Se.list,children:s.map((l,a)=>{const o=a===s.length-1;return e.jsxs("li",{className:Se.item,children:[l.href&&!o?e.jsx("a",{href:l.href,className:Se.link,children:l.label}):l.onClick&&!o?e.jsx("button",{onClick:l.onClick,className:Se.button,children:l.label}):e.jsx("span",{className:`${Se.text} ${o?Se.current:""}`,children:l.label}),!o&&e.jsx("span",{className:Se.separator,"aria-hidden":"true",children:t})]},a)})})})}const bt="styles-module__button__Sh-fr",vt="styles-module__sm__TZ7PA",$t="styles-module__md__MdfAS",jt="styles-module__lg__zhBVx",Nt="styles-module__fullWidth__KAUu7",wt="styles-module__loading__jL3RT",kt="styles-module__spinner__cTprF",St="styles-module__spin__aE1Nk",Ct="styles-module__hiddenContent__lbKDI",Lt="styles-module__primary__TRNPt",It="styles-module__secondary__QKgly",Mt="styles-module__success__DI2AT",zt="styles-module__danger__dnMp7",Dt="styles-module__outline__-o6rL",Tt="styles-module__ghost__lca2R",We={button:bt,sm:vt,md:$t,lg:jt,fullWidth:Nt,loading:wt,spinner:kt,spin:St,hiddenContent:Ct,primary:Lt,secondary:It,success:Mt,danger:zt,outline:Dt,ghost:Tt};function Bt({variant:s="primary",size:t="md",fullWidth:n=!1,loading:l=!1,disabled:a,className:o="",children:c,...d}){return e.jsxs("button",{className:`
2
+ ${We.button}
3
+ ${We[s]}
4
+ ${We[t]}
5
+ ${n?We.fullWidth:""}
6
+ ${l?We.loading:""}
7
7
  ${o}
8
- `,disabled:a||l,...c,children:[l&&e.jsx("span",{className:Te.spinner}),e.jsx("span",{className:l?Te.hiddenContent:"",children:_})]})}const Wt="styles-module__buttonGroup__Uqp-x",Bt="styles-module__horizontal__oeLpW",Et="styles-module__vertical__ZrJkT",Rt="styles-module__fullWidth__sxqJJ",es={buttonGroup:Wt,horizontal:Bt,vertical:Et,fullWidth:Rt};function Xt({children:s,orientation:t="horizontal",fullWidth:n=!1,className:l=""}){return e.jsx("div",{className:`
9
- ${es.buttonGroup}
10
- ${es[t]}
11
- ${n?es.fullWidth:""}
8
+ `,disabled:a||l,...d,children:[l&&e.jsx("span",{className:We.spinner}),e.jsx("span",{className:l?We.hiddenContent:"",children:c})]})}const Et="styles-module__buttonGroup__Uqp-x",Wt="styles-module__horizontal__oeLpW",Rt="styles-module__vertical__ZrJkT",Xt="styles-module__fullWidth__sxqJJ",ts={buttonGroup:Et,horizontal:Wt,vertical:Rt,fullWidth:Xt};function Gt({children:s,orientation:t="horizontal",fullWidth:n=!1,className:l=""}){return e.jsx("div",{className:`
9
+ ${ts.buttonGroup}
10
+ ${ts[t]}
11
+ ${n?ts.fullWidth:""}
12
12
  ${l}
13
- `,role:"group",children:s})}const Gt="styles-module__card__0iVez",At="styles-module__hoverable__7-MZP",Vt="styles-module__clickable__WiARM",Pt="styles-module__imageWrapper__LlBXL",Ft="styles-module__image__5KApl",Yt="styles-module__content__-0XZZ",Ot="styles-module__header__WVGN7",qt="styles-module__title__-Th-m",Ht="styles-module__subtitle__VDwvc",Kt="styles-module__body__iaDKl",Zt="styles-module__footer__b10VS",_e={card:Gt,hoverable:At,clickable:Vt,imageWrapper:Pt,image:Ft,content:Yt,header:Ot,title:qt,subtitle:Ht,body:Kt,footer:Zt};function Ut({children:s,title:t,subtitle:n,footer:l,image:a,hoverable:o=!1,className:_="",onClick:c}){const i=!!c;return e.jsxs("div",{className:`
14
- ${_e.card}
15
- ${o?_e.hoverable:""}
16
- ${i?_e.clickable:""}
17
- ${_}
18
- `,onClick:c,role:i?"button":void 0,tabIndex:i?0:void 0,children:[a&&e.jsx("div",{className:_e.imageWrapper,children:e.jsx("img",{src:a,alt:t||"",className:_e.image})}),e.jsxs("div",{className:_e.content,children:[(t||n)&&e.jsxs("div",{className:_e.header,children:[t&&e.jsx("h3",{className:_e.title,children:t}),n&&e.jsx("p",{className:_e.subtitle,children:n})]}),e.jsx("div",{className:_e.body,children:s}),l&&e.jsx("div",{className:_e.footer,children:l})]})]})}const Jt="styles-module__checkboxWrapper__5ECcg",Qt="styles-module__checkbox__AVGTi",el="styles-module__checkmark__xfDiG",sl="styles-module__label__56KkR",tl="styles-module__checkIcon__B246P",ll="styles-module__indeterminateIcon__L9Kf-",Re={checkboxWrapper:Jt,checkbox:Qt,checkmark:el,label:sl,checkIcon:tl,indeterminateIcon:ll};function nl({label:s,indeterminate:t=!1,className:n="",...l}){const a=p.useRef(null);return p.useEffect(()=>{a.current&&(a.current.indeterminate=t)},[t]),e.jsxs("label",{className:`${Re.checkboxWrapper} ${n}`,children:[e.jsx("input",{ref:a,type:"checkbox",className:Re.checkbox,...l}),e.jsx("span",{className:Re.checkmark,children:t?e.jsx("span",{className:Re.indeterminateIcon,children:"−"}):e.jsx("span",{className:Re.checkIcon,children:"✓"})}),s&&e.jsx("span",{className:Re.label,children:s})]})}const ol="styles-module__combobox__YH03u",al="styles-module__inputWrapper__UsIYk",_l="styles-module__input__F-6BL",cl="styles-module__disabled__UR9gQ",rl="styles-module__arrow__LV12a",dl="styles-module__open__-bJ28",il="styles-module__menu__twpPT",ul="styles-module__option__v6IYz",ml="styles-module__optionDisabled__vOMRI",pl="styles-module__highlighted__pxy-X",yl="styles-module__noResults__-sgTv",ce={combobox:ol,inputWrapper:al,input:_l,disabled:cl,arrow:rl,open:dl,menu:il,option:ul,optionDisabled:ml,highlighted:pl,noResults:yl};function hl({options:s,value:t,defaultValue:n="",onChange:l,placeholder:a="Select or type...",disabled:o=!1,className:_="",allowCustomValue:c=!1,filterFunction:i}){const[r,d]=p.useState(n),[u,x]=p.useState(!1),[f,b]=p.useState(-1),m=p.useRef(null),N=p.useRef(null),j=p.useRef(null),h=t!==void 0,S=h?t:r,$=i||((y,v)=>y.label.toLowerCase().includes(v.toLowerCase())),C=s.filter(y=>$(y,S));p.useEffect(()=>{const y=v=>{j.current&&!j.current.contains(v.target)&&x(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),p.useEffect(()=>{if(u&&f>=0&&N.current){const y=N.current.children[f];y&&y.scrollIntoView({block:"nearest"})}},[f,u]);const T=y=>{const v=y.target.value;h||d(v),l?.(v),x(!0),b(-1)},I=y=>{if(y.disabled)return;const v=y.value;h||d(y.label),l?.(v),x(!1),b(-1),m.current?.blur()},A=y=>{if(!o)switch(y.key){case"ArrowDown":y.preventDefault(),x(!0),b(v=>{const k=C.length-1;if(v>=k)return k;let B=v+1;for(;B<=k&&C[B].disabled;)B++;return B<=k?B:v});break;case"ArrowUp":y.preventDefault(),b(v=>{if(v<=0)return-1;let k=v-1;for(;k>=0&&C[k].disabled;)k--;return k>=0?k:-1});break;case"Enter":y.preventDefault(),u&&f>=0?I(C[f]):c&&(l?.(S),x(!1));break;case"Escape":y.preventDefault(),x(!1),b(-1),m.current?.blur();break;case"Tab":x(!1);break}},R=()=>{o||x(!0)},W=s.find(y=>y.value===S),P=W?W.label:S;return e.jsxs("div",{ref:j,className:`${ce.combobox} ${_}`,children:[e.jsxs("div",{className:ce.inputWrapper,children:[e.jsx("input",{ref:m,type:"text",className:`${ce.input} ${o?ce.disabled:""}`,value:P,onChange:T,onKeyDown:A,onFocus:R,placeholder:a,disabled:o,autoComplete:"off",role:"combobox","aria-expanded":u,"aria-autocomplete":"list","aria-controls":"combobox-listbox"}),e.jsx("span",{className:`${ce.arrow} ${u?ce.open:""}`,children:"▼"})]}),u&&C.length>0&&e.jsx("ul",{ref:N,id:"combobox-listbox",className:ce.menu,role:"listbox",children:C.map((y,v)=>e.jsx("li",{className:`${ce.option} ${f===v?ce.highlighted:""} ${y.disabled?ce.optionDisabled:""}`,onClick:()=>I(y),role:"option","aria-selected":y.value===S,"aria-disabled":y.disabled,children:y.label},y.value))}),u&&C.length===0&&e.jsx("div",{className:ce.noResults,children:c?"Press Enter to use custom value":"No results found"})]})}const gl="styles-module__datagridWrapper__rcPKe",fl="styles-module__datagrid__2KTB3",xl="styles-module__thead__VLK3H",vl="styles-module__th__GVqEG",bl="styles-module__tbody__vIVcl",$l="styles-module__tr__Qn6CH",jl="styles-module__td__UsBhW",Nl="styles-module__hoverable__6H3Yy",wl="styles-module__clickable__acA9M",Sl="styles-module__striped__1a6NP",ue={datagridWrapper:gl,datagrid:fl,thead:xl,th:vl,tbody:bl,tr:$l,td:jl,hoverable:Nl,clickable:wl,striped:Sl};function kl({columns:s,data:t,onRowClick:n,striped:l=!1,hoverable:a=!0,className:o=""}){return e.jsx("div",{className:`${ue.datagridWrapper} ${o}`,children:e.jsxs("table",{className:ue.datagrid,children:[e.jsx("thead",{className:ue.thead,children:e.jsx("tr",{children:s.map(_=>e.jsx("th",{className:ue.th,style:{width:_.width},children:_.header},_.key))})}),e.jsx("tbody",{className:ue.tbody,children:t.map((_,c)=>e.jsx("tr",{className:`
19
- ${ue.tr}
20
- ${l&&c%2===1?ue.striped:""}
21
- ${a?ue.hoverable:""}
22
- ${n?ue.clickable:""}
23
- `,onClick:()=>n?.(_),children:s.map(i=>e.jsx("td",{className:ue.td,children:i.render?i.render(_[i.key],_):_[i.key]},i.key))},c))})]})})}const Cl="styles-module__datePicker__uLxOg",Ll="styles-module__input__0m5L3",Il="styles-module__icon__0-EVW",ss={datePicker:Cl,input:Ll,icon:Il};function Ml({value:s,onChange:t,minDate:n,maxDate:l,className:a="",...o}){const[_,c]=p.useState(s?ts(s):""),i=r=>{const d=r.target.value;if(c(d),d){const u=new Date(d);isNaN(u.getTime())||t?.(u)}else t?.(null)};return e.jsxs("div",{className:`${ss.datePicker} ${a}`,children:[e.jsx("input",{type:"date",className:ss.input,value:_,onChange:i,min:n?ts(n):void 0,max:l?ts(l):void 0,...o}),e.jsx("span",{className:ss.icon,children:"📅"})]})}function ts(s){const t=s.getFullYear(),n=String(s.getMonth()+1).padStart(2,"0"),l=String(s.getDate()).padStart(2,"0");return`${t}-${n}-${l}`}const zl="styles-module__dateRangePicker__2-ckk",Dl="styles-module__inputWrapper__gXzep",Tl="styles-module__input__yirN1",Wl="styles-module__icon__k-Xdp",Bl="styles-module__separator__Lxjed",we={dateRangePicker:zl,inputWrapper:Dl,input:Tl,icon:Wl,separator:Bl};function El({value:s,onChange:t,minDate:n,maxDate:l,className:a=""}){const[o,_]=p.useState(s?.start?Xe(s.start):""),[c,i]=p.useState(s?.end?Xe(s.end):""),r=u=>{const x=u.target.value;_(x);const f=x?new Date(x):null,b=c?new Date(c):null;f&&!isNaN(f.getTime())?t?.({start:f,end:b}):t?.({start:null,end:b})},d=u=>{const x=u.target.value;i(x);const f=o?new Date(o):null,b=x?new Date(x):null;b&&!isNaN(b.getTime())?t?.({start:f,end:b}):t?.({start:f,end:null})};return e.jsxs("div",{className:`${we.dateRangePicker} ${a}`,children:[e.jsxs("div",{className:we.inputWrapper,children:[e.jsx("input",{type:"date",className:we.input,value:o,onChange:r,min:n?Xe(n):void 0,max:c||(l?Xe(l):void 0),placeholder:"Start date"}),e.jsx("span",{className:we.icon,children:"📅"})]}),e.jsx("span",{className:we.separator,children:"→"}),e.jsxs("div",{className:we.inputWrapper,children:[e.jsx("input",{type:"date",className:we.input,value:c,onChange:d,min:o||(n?Xe(n):void 0),max:l?Xe(l):void 0,placeholder:"End date"}),e.jsx("span",{className:we.icon,children:"📅"})]})]})}function Xe(s){const t=s.getFullYear(),n=String(s.getMonth()+1).padStart(2,"0"),l=String(s.getDate()).padStart(2,"0");return`${t}-${n}-${l}`}const Rl="styles-module__divider__I6KTc",Xl="styles-module__horizontal__rrjPy",Gl="styles-module__solid__LhHPX",Al="styles-module__dashed__2ZL2z",Vl="styles-module__dotted__N8tLr",Pl="styles-module__line__ff0dO",Fl="styles-module__label__izE2E",Yl="styles-module__vertical__RBm03",Ge={divider:Rl,horizontal:Xl,solid:Gl,dashed:Al,dotted:Vl,line:Pl,label:Fl,vertical:Yl};function Ol({orientation:s="horizontal",variant:t="solid",label:n,className:l=""}){const a=`${Ge.divider} ${Ge[s]} ${Ge[t]} ${l}`;return n&&s==="horizontal"?e.jsxs("div",{className:a,children:[e.jsx("span",{className:Ge.line}),e.jsx("span",{className:Ge.label,children:n}),e.jsx("span",{className:Ge.line})]}):e.jsx("div",{className:a})}const ql="styles-module__dropdown__uiKSF",Hl="styles-module__trigger__tVV7I",Kl="styles-module__disabled__Xy0oo",Zl="styles-module__selected__RnAL-",Ul="styles-module__placeholder__aePOZ",Jl="styles-module__arrow__QYBcO",Ql="styles-module__open__huthl",en="styles-module__menu__Fvg4d",sn="styles-module__option__OLwBz",tn="styles-module__optionDisabled__n9Gdm",ln="styles-module__active__W7XbV",re={dropdown:ql,trigger:Hl,disabled:Kl,selected:Zl,placeholder:Ul,arrow:Jl,open:Ql,menu:en,option:sn,optionDisabled:tn,active:ln};function nn({options:s,value:t,onChange:n,placeholder:l="Select an option",disabled:a=!1,className:o=""}){const[_,c]=p.useState(!1),[i,r]=p.useState(t||""),d=p.useRef(null);p.useEffect(()=>{const b=m=>{d.current&&!d.current.contains(m.target)&&c(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const u=b=>{a||(r(b),c(!1),n?.(b))},x=s.find(b=>b.value===i),f=x?.label||l;return e.jsxs("div",{className:`${re.dropdown} ${o}`,ref:d,children:[e.jsxs("button",{className:`${re.trigger} ${a?re.disabled:""}`,onClick:()=>!a&&c(!_),disabled:a,type:"button",children:[e.jsx("span",{className:x?re.selected:re.placeholder,children:f}),e.jsx("span",{className:`${re.arrow} ${_?re.open:""}`,children:"▼"})]}),_&&e.jsx("div",{className:re.menu,children:s.map(b=>e.jsx("div",{className:`${re.option} ${b.value===i?re.active:""} ${b.disabled?re.optionDisabled:""}`,onClick:()=>!b.disabled&&u(b.value),children:b.label},b.value))})]})}const on="styles-module__filePicker__mq8yj",an="styles-module__dropzone__DdFZi",_n="styles-module__disabled__PEgD4",cn="styles-module__icon__lgApu",rn="styles-module__text__Djodx",dn="styles-module__input__3Edc4",un="styles-module__fileList__mG9O1",mn="styles-module__fileItem__NB3Uq",pn="styles-module__processing__R-ZHY",yn="styles-module__uploaded__gJ1od",hn="styles-module__failed__MlKNj",gn="styles-module__fileIcon__IUNOU",fn="styles-module__fileName__E1M5I",xn="styles-module__fileSize__Yiown",vn="styles-module__error__KmdmE",bn="styles-module__remove__JiGmS",Q={filePicker:on,dropzone:an,disabled:_n,icon:cn,text:rn,input:dn,fileList:un,fileItem:mn,processing:pn,uploaded:yn,failed:hn,fileIcon:gn,fileName:fn,fileSize:xn,error:vn,remove:bn};function $n({accept:s,multiple:t=!1,maxSize:n,disabled:l=!1,onChange:a,onUpload:o,className:_=""}){const[c,i]=p.useState([]),r=p.useRef(null),d=async m=>{if(!m||l)return;const N=Array.from(m).map(j=>n&&j.size>n?{file:j,status:"failed",error:"File too large"}:{file:j,status:"idle"});if(i(j=>[...j,...N]),a?.(N),o)for(const j of N)j.status!=="failed"&&await u(j)},u=async m=>{x(m.file.name,"processing");try{await o?.(m.file),x(m.file.name,"uploaded")}catch(N){x(m.file.name,"failed",N.message)}},x=(m,N,j)=>{i(h=>h.map(S=>S.file.name===m?{...S,status:N,error:j}:S))},f=m=>{i(N=>N.filter(j=>j.file.name!==m))},b=m=>{switch(m){case"processing":return"⏳";case"uploaded":return"✓";case"failed":return"✗";default:return"📄"}};return e.jsxs("div",{className:`${Q.filePicker} ${_}`,children:[e.jsxs("div",{className:`${Q.dropzone} ${l?Q.disabled:""}`,onClick:()=>!l&&r.current?.click(),children:[e.jsx("span",{className:Q.icon,children:"📁"}),e.jsx("span",{className:Q.text,children:"Click to select files"})]}),e.jsx("input",{ref:r,type:"file",accept:s,multiple:t,disabled:l,onChange:m=>d(m.target.files),className:Q.input}),c.length>0&&e.jsx("div",{className:Q.fileList,children:c.map((m,N)=>e.jsxs("div",{className:`${Q.fileItem} ${Q[m.status]}`,children:[e.jsx("span",{className:Q.fileIcon,children:b(m.status)}),e.jsx("span",{className:Q.fileName,children:m.file.name}),e.jsxs("span",{className:Q.fileSize,children:[(m.file.size/1024).toFixed(1)," KB"]}),m.error&&e.jsx("span",{className:Q.error,children:m.error}),e.jsx("button",{className:Q.remove,onClick:()=>f(m.file.name),children:"×"})]},`${m.file.name}-${N}`))})]})}const jn="styles-module__header__9QAJF",Nn="styles-module__sticky__wm-sd",wn="styles-module__content__ZPdW7",Sn="styles-module__brand__-0bx7",kn="styles-module__logo__3KpY5",Cn="styles-module__title__yDhEG",Ln="styles-module__nav__6MmHf",In="styles-module__actions__yTPsJ",Se={header:jn,sticky:Nn,content:wn,brand:Sn,logo:kn,title:Cn,nav:Ln,actions:In};function Mn({logo:s,title:t,children:n,actions:l,sticky:a=!1,className:o=""}){return e.jsx("header",{className:`${Se.header} ${a?Se.sticky:""} ${o}`,children:e.jsxs("div",{className:Se.content,children:[(s||t)&&e.jsxs("div",{className:Se.brand,children:[s&&e.jsx("div",{className:Se.logo,children:s}),t&&e.jsx("h1",{className:Se.title,children:t})]}),n&&e.jsx("div",{className:Se.nav,children:n}),l&&e.jsx("div",{className:Se.actions,children:l})]})})}const zn="styles-module__inputContainer__KSDK-",Dn="styles-module__fullWidth__rLaUj",Tn="styles-module__label__-uPCz",Wn="styles-module__wrapper__JTZMt",Bn="styles-module__input__KRJnF",En="styles-module__withIcon__mikvP",Rn="styles-module__disabled__NjJFs",Xn="styles-module__sm__cr6Ko",Gn="styles-module__lg__geHP2",An="styles-module__error__UCrFp",Vn="styles-module__success__fKUT8",Pn="styles-module__icon__qopq-",Fn="styles-module__helperText__9ULK8",Yn="styles-module__errorText__JTsOi",ne={inputContainer:zn,fullWidth:Dn,label:Tn,wrapper:Wn,input:Bn,withIcon:En,disabled:Rn,sm:Xn,lg:Gn,error:An,success:Vn,icon:Pn,helperText:Fn,errorText:Yn},as=p.forwardRef(({label:s,error:t,helperText:n,size:l="md",variant:a="default",icon:o,fullWidth:_=!1,className:c="",disabled:i=!1,...r},d)=>{const u=t?"error":a,x=`${ne.inputContainer} ${_?ne.fullWidth:""} ${c}`,f=`${ne.input} ${ne[l]} ${ne[u]} ${o?ne.withIcon:""} ${i?ne.disabled:""}`;return e.jsxs("div",{className:x,children:[s&&e.jsx("label",{className:ne.label,children:s}),e.jsxs("div",{className:ne.wrapper,children:[o&&e.jsx("span",{className:ne.icon,children:o}),e.jsx("input",{ref:d,className:f,disabled:i,...r})]}),(t||n)&&e.jsx("span",{className:`${ne.helperText} ${t?ne.errorText:""}`,children:t||n})]})});as.displayName="Input";const On="styles-module__label__QjEAd",qn="styles-module__disabled__yJ4NK",Hn="styles-module__sm__KnRgV",Kn="styles-module__md__z8a54",Zn="styles-module__lg__KOzy-",Un="styles-module__required__ZBqbG",Ke={label:On,disabled:qn,sm:Hn,md:Kn,lg:Zn,required:Un};function Jn({size:s="md",required:t=!1,disabled:n=!1,className:l="",children:a,...o}){return e.jsxs("label",{className:`${Ke.label} ${Ke[s]} ${n?Ke.disabled:""} ${l}`,...o,children:[a,t&&e.jsx("span",{className:Ke.required,children:"*"})]})}const Qn="styles-module__list__i-PH3",eo="styles-module__dividers__klcR-",so="styles-module__item__hLR7A",to="styles-module__hoverable__6FbJF",lo="styles-module__clickable__ahnDb",no="styles-module__disabled__W5Z3Y",oo="styles-module__icon__fSr06",ao="styles-module__content__ujdaE",_o="styles-module__badge__dwlRk",xe={list:Qn,dividers:eo,item:so,hoverable:to,clickable:lo,disabled:no,icon:oo,content:ao,badge:_o};function co({items:s,hoverable:t=!1,dividers:n=!1,className:l=""}){return e.jsx("ul",{className:`${xe.list} ${n?xe.dividers:""} ${l}`,children:s.map(a=>e.jsxs("li",{className:`${xe.item} ${t&&!a.disabled?xe.hoverable:""} ${a.disabled?xe.disabled:""} ${a.onClick&&!a.disabled?xe.clickable:""}`,onClick:a.disabled?void 0:a.onClick,children:[a.icon&&e.jsx("span",{className:xe.icon,children:a.icon}),e.jsx("span",{className:xe.content,children:a.content}),a.badge&&e.jsx("span",{className:xe.badge,children:a.badge})]},a.id))})}const ro="styles-module__overlay__Ty-He",io="styles-module__fadeIn__vywQ8",uo="styles-module__modal__bC015",mo="styles-module__slideUp__i-uri",po="styles-module__sm__HasCZ",yo="styles-module__md__y-51k",ho="styles-module__lg__bXotd",go="styles-module__xl__wKYbR",fo="styles-module__header__agEZy",xo="styles-module__title__91HGo",vo="styles-module__closeButton__u-naO",bo="styles-module__content__1xlis",$o="styles-module__footer__m3SbZ",ke={overlay:ro,fadeIn:io,modal:uo,slideUp:mo,sm:po,md:yo,lg:ho,xl:go,header:fo,title:xo,closeButton:vo,content:bo,footer:$o};function jo({isOpen:s,onClose:t,title:n,children:l,footer:a,size:o="md",closeOnOverlayClick:_=!0,showCloseButton:c=!0,className:i=""}){return p.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),p.useEffect(()=>{const r=d=>{d.key==="Escape"&&s&&t()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[s,t]),s?e.jsx("div",{className:ke.overlay,onClick:_?t:void 0,children:e.jsxs("div",{className:`${ke.modal} ${ke[o]} ${i}`,onClick:r=>r.stopPropagation(),children:[(n||c)&&e.jsxs("div",{className:ke.header,children:[n&&e.jsx("h2",{className:ke.title,children:n}),c&&e.jsx("button",{className:ke.closeButton,onClick:t,type:"button",children:"×"})]}),e.jsx("div",{className:ke.content,children:l}),a&&e.jsx("div",{className:ke.footer,children:a})]})}):null}const No="styles-module__pagination__P-TuL",wo="styles-module__pageButton__saWQq",So="styles-module__active__6G9dp",ko="styles-module__dots__HNsj1",Ce={pagination:No,pageButton:wo,active:So,dots:ko};function Co({currentPage:s,totalPages:t,onPageChange:n,showFirstLast:l=!0,siblingCount:a=1,className:o=""}){const _=(u,x)=>Array.from({length:x-u+1},(f,b)=>u+b),i=(()=>{const u=a+5;if(t<=u)return _(1,t);const x=Math.max(s-a,1),f=Math.min(s+a,t),b=x>2,m=f<t-1;return!b&&m?[..._(1,3+2*a),"...",t]:b&&!m?[1,"...",..._(t-(2+2*a),t)]:[1,"...",..._(x,f),"...",t]})(),r=()=>{s>1&&n(s-1)},d=()=>{s<t&&n(s+1)};return e.jsxs("nav",{className:`${Ce.pagination} ${o}`,children:[l&&e.jsx("button",{className:Ce.pageButton,onClick:()=>n(1),disabled:s===1,children:"«"}),e.jsx("button",{className:Ce.pageButton,onClick:r,disabled:s===1,children:"‹"}),i.map((u,x)=>u==="..."?e.jsx("span",{className:Ce.dots,children:"..."},`dots-${x}`):e.jsx("button",{className:`${Ce.pageButton} ${u===s?Ce.active:""}`,onClick:()=>n(u),children:u},u)),e.jsx("button",{className:Ce.pageButton,onClick:d,disabled:s===t,children:"›"}),l&&e.jsx("button",{className:Ce.pageButton,onClick:()=>n(t),disabled:s===t,children:"»"})]})}const Lo="styles-module__container__u4q5n",Io="styles-module__progressBar__wAUjD",Mo="styles-module__sm__ZBiyl",zo="styles-module__md__oXZzu",Do="styles-module__lg__JmNO0",To="styles-module__fill__bDflZ",Wo="styles-module__success__drT36",Bo="styles-module__warning__p-mHQ",Eo="styles-module__error__ecpJB",Ro="styles-module__info__vfjga",Xo="styles-module__striped__El9o5",Go="styles-module__animated__9FN7u",Ao="styles-module__progress-stripes__etVVj",Vo="styles-module__label__TpB8Q",Le={container:Lo,progressBar:Io,sm:Mo,md:zo,lg:Do,fill:To,default:"styles-module__default__7qIAE",success:Wo,warning:Bo,error:Eo,info:Ro,striped:Xo,animated:Go,"progress-stripes":"styles-module__progress-stripes__etVVj",progressStripes:Ao,label:Vo};function Po({value:s,max:t=100,variant:n="default",size:l="md",showLabel:a=!1,label:o,animated:_=!1,striped:c=!1,className:i=""}){const r=Math.min(Math.max(s/t*100,0),100),d=o||`${Math.round(r)}%`;return e.jsx("div",{className:`${Le.container} ${i}`,children:e.jsx("div",{className:`${Le.progressBar} ${Le[l]}`,children:e.jsx("div",{className:`${Le.fill} ${Le[n]} ${c?Le.striped:""} ${_?Le.animated:""}`,style:{width:`${r}%`},children:a&&e.jsx("span",{className:Le.label,children:d})})})})}const Fo="styles-module__radioButton__30HVZ",Yo="styles-module__disabled__TuSU6",Oo="styles-module__input__-NkgJ",qo="styles-module__radio__dKOL5",Ho="styles-module__label__M94so",Ye={radioButton:Fo,disabled:Yo,input:Oo,radio:qo,label:Ho};function Ko({label:s,value:t,name:n,checked:l=!1,disabled:a=!1,onChange:o,className:_="",...c}){return e.jsxs("label",{className:`${Ye.radioButton} ${a?Ye.disabled:""} ${_}`,children:[e.jsx("input",{type:"radio",name:n,value:t,checked:l,disabled:a,onChange:o,className:Ye.input,...c}),e.jsx("span",{className:Ye.radio}),s&&e.jsx("span",{className:Ye.label,children:s})]})}const Zo="styles-module__container__KhKB7",Uo="styles-module__label__nGyr8",Jo="styles-module__rangeWrapper__dnhOv",Qo="styles-module__inputWrapper__vVIhy",ea="styles-module__input__C9H5I",sa="styles-module__disabled__8xB9M",ta="styles-module__minMax__5jVHq",la="styles-module__value__4hZJK",ve={container:Zo,label:Uo,rangeWrapper:Jo,inputWrapper:Qo,input:ea,disabled:sa,minMax:ta,value:la};function na({label:s,min:t=0,max:n=100,step:l=1,value:a=50,showValue:o=!1,showMinMax:_=!1,onChange:c,className:i="",disabled:r=!1,...d}){const u=(a-t)/(n-t)*100;return e.jsxs("div",{className:`${ve.container} ${i}`,children:[s&&e.jsx("label",{className:ve.label,children:s}),e.jsxs("div",{className:ve.rangeWrapper,children:[_&&e.jsx("span",{className:ve.minMax,children:t}),e.jsx("div",{className:ve.inputWrapper,children:e.jsx("input",{type:"range",min:t,max:n,step:l,value:a,onChange:c,disabled:r,className:`${ve.input} ${r?ve.disabled:""}`,style:{"--percentage":`${u}%`},...d})}),_&&e.jsx("span",{className:ve.minMax,children:n})]}),o&&e.jsx("span",{className:ve.value,children:a})]})}const oa="styles-module__richSelect__xtDdz",aa="styles-module__trigger__nkuFi",_a="styles-module__disabled__aRnNR",ca="styles-module__selectedContent__1YUDI",ra="styles-module__textContent__sVML5",da="styles-module__label__DYAVs",ia="styles-module__description__-NG4t",ua="styles-module__placeholder__83U0w",ma="styles-module__icon__v-J2b",pa="styles-module__arrow__m-D1Y",ya="styles-module__open__gZef9",ha="styles-module__menu__zMZHy",ga="styles-module__searchWrapper__yPXor",fa="styles-module__searchInput__Vq3C6",xa="styles-module__optionsList__OAhYK",va="styles-module__option__vTDi0",ba="styles-module__optionDisabled__spphz",$a="styles-module__active__FRlKy",ja="styles-module__noResults__DsPu8",F={richSelect:oa,trigger:aa,disabled:_a,selectedContent:ca,textContent:ra,label:da,description:ia,placeholder:ua,icon:ma,arrow:pa,open:ya,menu:ha,searchWrapper:ga,searchInput:fa,optionsList:xa,option:va,optionDisabled:ba,active:$a,noResults:ja};function Na({options:s,value:t,onChange:n,placeholder:l="Select an option",disabled:a=!1,searchable:o=!1,className:_=""}){const[c,i]=p.useState(!1),[r,d]=p.useState(""),u=p.useRef(null);p.useEffect(()=>{const m=N=>{u.current&&!u.current.contains(N.target)&&(i(!1),d(""))};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);const x=m=>{a||(n?.(m),i(!1),d(""))},f=s.find(m=>m.value===t),b=o?s.filter(m=>m.label.toLowerCase().includes(r.toLowerCase())):s;return e.jsxs("div",{className:`${F.richSelect} ${_}`,ref:u,children:[e.jsxs("button",{className:`${F.trigger} ${a?F.disabled:""}`,onClick:()=>!a&&i(!c),disabled:a,type:"button",children:[f?e.jsxs("div",{className:F.selectedContent,children:[f.icon&&e.jsx("span",{className:F.icon,children:f.icon}),e.jsxs("div",{className:F.textContent,children:[e.jsx("span",{className:F.label,children:f.label}),f.description&&e.jsx("span",{className:F.description,children:f.description})]})]}):e.jsx("span",{className:F.placeholder,children:l}),e.jsx("span",{className:`${F.arrow} ${c?F.open:""}`,children:"▼"})]}),c&&e.jsxs("div",{className:F.menu,children:[o&&e.jsx("div",{className:F.searchWrapper,children:e.jsx("input",{type:"text",className:F.searchInput,placeholder:"Search...",value:r,onChange:m=>d(m.target.value),autoFocus:!0})}),e.jsxs("div",{className:F.optionsList,children:[b.map(m=>e.jsxs("div",{className:`${F.option} ${m.value===t?F.active:""} ${m.disabled?F.optionDisabled:""}`,onClick:()=>!m.disabled&&x(m.value),children:[m.icon&&e.jsx("span",{className:F.icon,children:m.icon}),e.jsxs("div",{className:F.textContent,children:[e.jsx("span",{className:F.label,children:m.label}),m.description&&e.jsx("span",{className:F.description,children:m.description})]})]},m.value)),b.length===0&&e.jsx("div",{className:F.noResults,children:"No results found"})]})]})]})}const wa="styles-module__overlay__tP-g3",Sa="styles-module__fadeIn__MKn3S",ka="styles-module__sidePanel__bfmoW",Ca="styles-module__left__X7-S4",La="styles-module__slideInLeft__nE6Ff",Ia="styles-module__right__Fvefe",Ma="styles-module__slideInRight__bvjTy",za="styles-module__sm__CHsFH",Da="styles-module__md__17Q10",Ta="styles-module__lg__8XCJd",Wa="styles-module__header__-AKr-",Ba="styles-module__title__8S4yp",Ea="styles-module__closeButton__DQgJe",Ra="styles-module__content__XGAif",Xa="styles-module__footer__cX66N",be={overlay:wa,fadeIn:Sa,sidePanel:ka,left:Ca,slideInLeft:La,right:Ia,slideInRight:Ma,sm:za,md:Da,lg:Ta,header:Wa,title:Ba,closeButton:Ea,content:Ra,footer:Xa};function Ga({isOpen:s,onClose:t,title:n,children:l,footer:a,position:o="right",size:_="md",closeOnOverlayClick:c=!0,showCloseButton:i=!0,className:r=""}){return p.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),p.useEffect(()=>{const d=u=>{u.key==="Escape"&&s&&t()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[s,t]),s?e.jsx("div",{className:be.overlay,onClick:c?t:void 0,children:e.jsxs("div",{className:`${be.sidePanel} ${be[o]} ${be[_]} ${r}`,onClick:d=>d.stopPropagation(),children:[(n||i)&&e.jsxs("div",{className:be.header,children:[n&&e.jsx("h2",{className:be.title,children:n}),i&&e.jsx("button",{className:be.closeButton,onClick:t,type:"button",children:"×"})]}),e.jsx("div",{className:be.content,children:l}),a&&e.jsx("div",{className:be.footer,children:a})]})}):null}const Aa="styles-module__signpost__tLnmc",Va="styles-module__trigger__25KnS",Pa="styles-module__content__z4pUG",Fa="styles-module__fadeIn__0jB27",Ya="styles-module__top__Jn5XX",Oa="styles-module__bottom__CGe3J",qa="styles-module__left__zuDmF",Ha="styles-module__right__xnSw3",Ka="styles-module__inner__7euCB",Za="styles-module__arrow__mGVpk",Ae={signpost:Aa,trigger:Va,content:Pa,fadeIn:Fa,top:Ya,bottom:Oa,left:qa,right:Ha,inner:Ka,arrow:Za};function Ua({trigger:s,children:t,position:n="top",className:l=""}){const[a,o]=p.useState(!1),_=p.useRef(null);return p.useEffect(()=>{const c=i=>{_.current&&!_.current.contains(i.target)&&o(!1)};return a&&document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[a]),e.jsxs("div",{className:`${Ae.signpost} ${l}`,ref:_,children:[e.jsx("div",{className:Ae.trigger,onClick:()=>o(!a),children:s}),a&&e.jsxs("div",{className:`${Ae.content} ${Ae[n]}`,children:[e.jsx("div",{className:Ae.arrow}),e.jsx("div",{className:Ae.inner,children:t})]})]})}const Ja="styles-module__spinnerWrapper__ht5E9",Qa="styles-module__spinner__D8f-h",e_="styles-module__circle__z537L",s_="styles-module__spin__Gt3A-",t_="styles-module__sm__Ukc8Q",l_="styles-module__md__Hg7EK",n_="styles-module__lg__ac6jQ",o_="styles-module__primary__Pah-x",a_="styles-module__secondary__D29qO",__="styles-module__label__nc2IY",Ve={spinnerWrapper:Ja,spinner:Qa,circle:e_,spin:s_,sm:t_,md:l_,lg:n_,default:"styles-module__default__X7JGx",primary:o_,secondary:a_,label:__};function c_({size:s="md",variant:t="default",className:n="",label:l}){return e.jsxs("div",{className:`${Ve.spinnerWrapper} ${n}`,children:[e.jsx("div",{className:`${Ve.spinner} ${Ve[s]} ${Ve[t]}`,role:"status","aria-label":l||"Loading",children:e.jsx("div",{className:Ve.circle})}),l&&e.jsx("span",{className:Ve.label,children:l})]})}const r_="styles-module__stackView__wGZRw",d_="styles-module__horizontal__MCJ8E",i_="styles-module__vertical__INW6v",u_="styles-module__wrap__wvZPS",m_="styles-module__align-start__TeH6Z",p_="styles-module__align-center__DWOt-",y_="styles-module__align-end__9Xsx4",h_="styles-module__align-stretch__raPvB",g_="styles-module__justify-start__YVdZp",f_="styles-module__justify-center__VKg8-",x_="styles-module__justify-end__kVPBC",v_="styles-module__justify-space-between__z5-wE",b_="styles-module__justify-space-around__FP-0m",$_="styles-module__justify-space-evenly__v5xco",j_="styles-module__spacing-none__M23xt",N_="styles-module__spacing-xs__zdXjS",w_="styles-module__spacing-sm__G-5sR",S_="styles-module__spacing-md__oa-Jw",k_="styles-module__spacing-lg__5zhiQ",C_="styles-module__spacing-xl__qSFPT",Pe={stackView:r_,horizontal:d_,vertical:i_,wrap:u_,"align-start":"styles-module__align-start__TeH6Z",alignStart:m_,"align-center":"styles-module__align-center__DWOt-",alignCenter:p_,"align-end":"styles-module__align-end__9Xsx4",alignEnd:y_,"align-stretch":"styles-module__align-stretch__raPvB",alignStretch:h_,"justify-start":"styles-module__justify-start__YVdZp",justifyStart:g_,"justify-center":"styles-module__justify-center__VKg8-",justifyCenter:f_,"justify-end":"styles-module__justify-end__kVPBC",justifyEnd:x_,"justify-space-between":"styles-module__justify-space-between__z5-wE",justifySpaceBetween:v_,"justify-space-around":"styles-module__justify-space-around__FP-0m",justifySpaceAround:b_,"justify-space-evenly":"styles-module__justify-space-evenly__v5xco",justifySpaceEvenly:$_,"spacing-none":"styles-module__spacing-none__M23xt",spacingNone:j_,"spacing-xs":"styles-module__spacing-xs__zdXjS",spacingXs:N_,"spacing-sm":"styles-module__spacing-sm__G-5sR",spacingSm:w_,"spacing-md":"styles-module__spacing-md__oa-Jw",spacingMd:S_,"spacing-lg":"styles-module__spacing-lg__5zhiQ",spacingLg:k_,"spacing-xl":"styles-module__spacing-xl__qSFPT",spacingXl:C_};function L_({children:s,direction:t="horizontal",align:n="start",justify:l="start",spacing:a="md",wrap:o=!1,className:_="",style:c}){return e.jsx("div",{className:`${Pe.stackView} ${Pe[t]} ${Pe[`align-${n}`]} ${Pe[`justify-${l}`]} ${Pe[`spacing-${a}`]} ${o?Pe.wrap:""} ${_}`,style:c,children:s})}const I_="styles-module__stepper__NUsL2",M_="styles-module__horizontal__wW8by",z_="styles-module__vertical__UqRFo",D_="styles-module__step__lmR8-",T_="styles-module__clickable__-O5QE",W_="styles-module__stepIndicator__GbO4U",B_="styles-module__current__LW7L4",E_="styles-module__completed__MC9gq",R_="styles-module__checkmark__GAoUn",X_="styles-module__stepNumber__qLNDJ",G_="styles-module__stepContent__pKC94",A_="styles-module__stepLabel__JK-4j",V_="styles-module__stepDescription__hlARr",P_="styles-module__connector__76Rsb",ee={stepper:I_,horizontal:M_,vertical:z_,step:D_,clickable:T_,stepIndicator:W_,current:B_,completed:E_,checkmark:R_,stepNumber:X_,stepContent:G_,stepLabel:A_,stepDescription:V_,connector:P_};function F_({steps:s,currentStep:t,orientation:n="horizontal",onStepClick:l,className:a=""}){return e.jsx("div",{className:`${ee.stepper} ${ee[n]} ${a}`,children:s.map((o,_)=>{const c=_<t,i=_===t,r=l&&(c||i);return e.jsxs(p.Fragment,{children:[e.jsxs("div",{className:`${ee.step} ${c?ee.completed:""} ${i?ee.current:""} ${r?ee.clickable:""}`,onClick:()=>r&&l(_),children:[e.jsx("div",{className:ee.stepIndicator,children:c?e.jsx("span",{className:ee.checkmark,children:"✓"}):o.icon?o.icon:e.jsx("span",{className:ee.stepNumber,children:_+1})}),e.jsxs("div",{className:ee.stepContent,children:[e.jsx("div",{className:ee.stepLabel,children:o.label}),o.description&&e.jsx("div",{className:ee.stepDescription,children:o.description})]})]}),_<s.length-1&&e.jsx("div",{className:`${ee.connector} ${c?ee.completed:""}`})]},_)})})}const Y_="styles-module__tableWrapper__7pbjW",O_="styles-module__table__G-UMw",q_="styles-module__thead__uTTEj",H_="styles-module__th__tBFLB",K_="styles-module__tbody__-OiiP",Z_="styles-module__tr__ioLC7",U_="styles-module__td__mjOQt",J_="styles-module__striped__iZ3bT",Q_="styles-module__hoverable__ewlPb",ec="styles-module__bordered__IB5cr",sc="styles-module__compact__JfcIE",tc="styles-module__clickable__URnJc",lc="styles-module__empty__Xo2NZ",te={tableWrapper:Y_,table:O_,thead:q_,th:H_,tbody:K_,tr:Z_,td:U_,striped:J_,hoverable:Q_,bordered:ec,compact:sc,clickable:tc,empty:lc};function nc({columns:s,data:t,striped:n=!1,hoverable:l=!1,bordered:a=!1,compact:o=!1,onRowClick:_,className:c=""}){return e.jsxs("div",{className:`${te.tableWrapper} ${c}`,children:[e.jsxs("table",{className:`${te.table} ${n?te.striped:""} ${l?te.hoverable:""} ${a?te.bordered:""} ${o?te.compact:""}`,children:[e.jsx("thead",{className:te.thead,children:e.jsx("tr",{children:s.map(i=>e.jsx("th",{className:te.th,style:{width:i.width},children:i.header},i.key))})}),e.jsx("tbody",{className:te.tbody,children:t.map((i,r)=>e.jsx("tr",{className:`${te.tr} ${_?te.clickable:""}`,onClick:()=>_?.(i),children:s.map(d=>e.jsx("td",{className:te.td,children:d.render?d.render(i[d.key],i):String(i[d.key]??"")},d.key))},r))})]}),t.length===0&&e.jsx("div",{className:te.empty,children:"No data available"})]})}const oc="styles-module__tabsContainer__Jv3WS",ac="styles-module__tabsList__G5a9Z",_c="styles-module__fullWidth__IiyGO",cc="styles-module__tab__Veki-",rc="styles-module__disabled__M9qZK",dc="styles-module__active__PVi-W",ic="styles-module__icon__4sTw8",uc="styles-module__pills__VlbD0",mc="styles-module__underline__Jdu1g",pc="styles-module__tabContent__bSDk7",yc="styles-module__fadeIn__sgbzQ",$e={tabsContainer:oc,tabsList:ac,fullWidth:_c,tab:cc,disabled:rc,active:dc,icon:ic,default:"styles-module__default__02SGT",pills:uc,underline:mc,tabContent:pc,fadeIn:yc};function hc({items:s,defaultActiveId:t,variant:n="default",fullWidth:l=!1,onChange:a,className:o=""}){const[_,c]=p.useState(t||s[0]?.id),i=(d,u)=>{u||(c(d),a?.(d))},r=s.find(d=>d.id===_);return e.jsxs("div",{className:`${$e.tabsContainer} ${o}`,children:[e.jsx("div",{className:`${$e.tabsList} ${$e[n]} ${l?$e.fullWidth:""}`,role:"tablist",children:s.map(d=>e.jsxs("button",{role:"tab","aria-selected":d.id===_,"aria-disabled":d.disabled,className:`${$e.tab} ${d.id===_?$e.active:""} ${d.disabled?$e.disabled:""}`,onClick:()=>i(d.id,d.disabled),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:$e.icon,children:d.icon}),e.jsx("span",{children:d.label})]},d.id))}),e.jsx("div",{className:$e.tabContent,role:"tabpanel",children:r?.content})]})}const gc="styles-module__textareaWrapper__xo-uo",fc="styles-module__fullWidth__y5-Ce",xc="styles-module__label__xONj0",vc="styles-module__textarea__LmnbQ",bc="styles-module__sm__uIQkQ",$c="styles-module__md__qfL-2",jc="styles-module__lg__s6Iey",Nc="styles-module__success__ehWww",wc="styles-module__error__h9V4X",Sc="styles-module__resize-none__w4h2b",kc="styles-module__resize-vertical__4lTu1",Cc="styles-module__resize-horizontal__3Fdb7",Lc="styles-module__resize-both__07ghL",Ic="styles-module__helperText__Zaq6O",Mc="styles-module__errorText__RI-rl",me={textareaWrapper:gc,fullWidth:fc,label:xc,textarea:vc,sm:bc,md:$c,lg:jc,default:"styles-module__default__jlE7o",success:Nc,error:wc,"resize-none":"styles-module__resize-none__w4h2b",resizeNone:Sc,"resize-vertical":"styles-module__resize-vertical__4lTu1",resizeVertical:kc,"resize-horizontal":"styles-module__resize-horizontal__3Fdb7",resizeHorizontal:Cc,"resize-both":"styles-module__resize-both__07ghL",resizeBoth:Lc,helperText:Ic,errorText:Mc},_s=p.forwardRef(({label:s,helperText:t,error:n,size:l="md",variant:a="default",fullWidth:o=!1,resize:_="vertical",className:c="",disabled:i,...r},d)=>{const u=n?"error":a;return e.jsxs("div",{className:`${me.textareaWrapper} ${o?me.fullWidth:""} ${c}`,children:[s&&e.jsx("label",{className:me.label,children:s}),e.jsx("textarea",{ref:d,className:`${me.textarea} ${me[l]} ${me[u]} ${me[`resize-${_}`]} ${i?me.disabled:""}`,disabled:i,...r}),n&&e.jsx("span",{className:me.errorText,children:n}),!n&&t&&e.jsx("span",{className:me.helperText,children:t})]})});_s.displayName="Textarea";const zc="styles-module__timeline__khbcN",Dc="styles-module__vertical__EcI8f",Tc="styles-module__horizontal__kv46j",Wc="styles-module__timelineItem__j0IQ5",Bc="styles-module__timelineMarker__qk22j",Ec="styles-module__dot__gfgUf",Rc="styles-module__icon__hWWJd",Xc="styles-module__primary__t4Cyx",Gc="styles-module__success__NWp7i",Ac="styles-module__warning__mfRNM",Vc="styles-module__error__AwsC3",Pc="styles-module__info__QaR5w",Fc="styles-module__timelineConnector__deWEH",Yc="styles-module__timelineContent__Yzy-t",Oc="styles-module__date__OIOdY",qc="styles-module__title__PZb8L",Hc="styles-module__description__LesWv",U={timeline:zc,vertical:Dc,horizontal:Tc,timelineItem:Wc,timelineMarker:Bc,dot:Ec,icon:Rc,default:"styles-module__default__QmROp",primary:Xc,success:Gc,warning:Ac,error:Vc,info:Pc,timelineConnector:Fc,timelineContent:Yc,date:Oc,title:qc,description:Hc};function Kc({items:s,orientation:t="vertical",className:n=""}){return e.jsx("div",{className:`${U.timeline} ${U[t]} ${n}`,children:s.map((l,a)=>e.jsxs("div",{className:U.timelineItem,children:[e.jsx("div",{className:`${U.timelineMarker} ${l.color?U[l.color]:U.default}`,children:l.icon?e.jsx("span",{className:U.icon,children:l.icon}):e.jsx("span",{className:U.dot})}),a<s.length-1&&e.jsx("div",{className:`${U.timelineConnector} ${l.color?U[l.color]:U.default}`}),e.jsxs("div",{className:U.timelineContent,children:[l.date&&e.jsx("span",{className:U.date,children:l.date}),e.jsx("h4",{className:U.title,children:l.title}),l.description&&e.jsx("p",{className:U.description,children:l.description})]})]},l.id))})}const Zc="styles-module__toggleSwitch__HDqFP",Uc="styles-module__disabled__tbXNT",Jc="styles-module__input__oBVdg",Qc="styles-module__sm__O8zA8",er="styles-module__md__2vfHI",sr="styles-module__lg__S65-b",tr="styles-module__slider__gYGJ6",lr="styles-module__checked__-4pJ2",nr="styles-module__label__xIgTV",Ie={toggleSwitch:Zc,disabled:Uc,input:Jc,switch:"styles-module__switch__4NsVE",sm:Qc,md:er,lg:sr,slider:tr,checked:lr,label:nr};function or({checked:s,defaultChecked:t=!1,onChange:n,label:l,disabled:a=!1,size:o="md",className:_=""}){const[c,i]=p.useState(t),r=s!==void 0,d=r?s:c,u=()=>{if(a)return;const x=!d;r||i(x),n?.(x)};return e.jsxs("label",{className:`${Ie.toggleSwitch} ${a?Ie.disabled:""} ${_}`,children:[e.jsx("input",{type:"checkbox",checked:d,onChange:u,disabled:a,className:Ie.input}),e.jsx("span",{className:`${Ie.switch} ${Ie[o]} ${d?Ie.checked:""}`,children:e.jsx("span",{className:Ie.slider})}),l&&e.jsx("span",{className:Ie.label,children:l})]})}const ar="styles-module__tooltipWrapper__jXXEP",_r="styles-module__tooltip__NP2ZM",cr="styles-module__fadeIn__5hHms",rr="styles-module__top__kvf2D",dr="styles-module__bottom__vkl92",ir="styles-module__left__q2e3D",ur="styles-module__right__FRcXP",mr="styles-module__tooltipContent__3R4WL",pr="styles-module__tooltipArrow__11JdT",Oe={tooltipWrapper:ar,tooltip:_r,fadeIn:cr,top:rr,bottom:dr,left:ir,right:ur,tooltipContent:mr,tooltipArrow:pr};function yr({children:s,content:t,position:n="top",delay:l=200,className:a=""}){const[o,_]=p.useState(!1),c=p.useRef(),i=p.useRef(null),r=()=>{c.current=setTimeout(()=>{_(!0)},l)},d=()=>{c.current&&clearTimeout(c.current),_(!1)};return p.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.jsxs("div",{className:`${Oe.tooltipWrapper} ${a}`,ref:i,onMouseEnter:r,onMouseLeave:d,onFocus:r,onBlur:d,children:[s,o&&e.jsxs("div",{className:`${Oe.tooltip} ${Oe[n]}`,role:"tooltip",children:[e.jsx("div",{className:Oe.tooltipContent,children:t}),e.jsx("div",{className:Oe.tooltipArrow})]})]})}const hr="styles-module__toastContainer__-uOPe",gr="styles-module__topLeft__MCDhr",fr="styles-module__topCenter__loC-J",xr="styles-module__topRight__alKSR",vr="styles-module__bottomLeft__sPZ6I",br="styles-module__bottomCenter__12yLT",$r="styles-module__bottomRight__EdLbD",jr="styles-module__toast__q9A3H",Nr="styles-module__slideIn__-Mhbw",wr="styles-module__fadeIn__I0huT",Sr="styles-module__slideInLeft__Bs5x3",kr="styles-module__slideInDown__OUDGH",Cr="styles-module__icon__iRAEt",Lr="styles-module__message__id55d",Ir="styles-module__closeButton__vnBxf",Mr="styles-module__info__RjsXR",zr="styles-module__success__1qQf4",Dr="styles-module__warning__UhEF-",Tr="styles-module__error__sOYOC",oe={toastContainer:hr,topLeft:gr,topCenter:fr,topRight:xr,bottomLeft:vr,bottomCenter:br,bottomRight:$r,toast:jr,slideIn:Nr,fadeIn:wr,slideInLeft:Sr,slideInDown:kr,icon:Cr,message:Lr,closeButton:Ir,info:Mr,success:zr,warning:Dr,error:Tr},cs=p.createContext(void 0);function Wr({children:s,position:t="top-right",maxToasts:n=5}){const[l,a]=p.useState([]),o=p.useCallback((r,d={})=>{const u=Math.random().toString(36).substring(2,9),x={id:u,message:r,variant:d.variant||"info",duration:d.duration??5e3,dismissible:d.dismissible??!0};a(f=>[...f,x].slice(-n)),x.duration&&x.duration>0&&setTimeout(()=>{_(u)},x.duration)},[n]),_=p.useCallback(r=>{a(d=>d.filter(u=>u.id!==r))},[]),c=()=>({"top-left":oe.topLeft,"top-center":oe.topCenter,"top-right":oe.topRight,"bottom-left":oe.bottomLeft,"bottom-center":oe.bottomCenter,"bottom-right":oe.bottomRight})[t],i=r=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕"})[r];return e.jsxs(cs.Provider,{value:{showToast:o},children:[s,e.jsx("div",{className:`${oe.toastContainer} ${c()}`,children:l.map(r=>e.jsxs("div",{className:`${oe.toast} ${oe[r.variant||"info"]}`,role:"alert","aria-live":"polite",children:[e.jsx("div",{className:oe.icon,children:i(r.variant||"info")}),e.jsx("div",{className:oe.message,children:r.message}),r.dismissible&&e.jsx("button",{className:oe.closeButton,onClick:()=>_(r.id),"aria-label":"Close",children:"✕"})]},r.id))})]})}function Br(){const s=p.useContext(cs);if(!s)throw new Error("useToast must be used within a ToastProvider");return s}const Er="styles-module__treeView__qtZfC",Rr="styles-module__treeNodeWrapper__6m8CE",Xr="styles-module__treeNode__xhhOE",Gr="styles-module__disabled__-brxQ",Ar="styles-module__expandIcon__Zp-Yb",Vr="styles-module__expanded__A4kyH",Pr="styles-module__spacer__56WdM",Fr="styles-module__icon__AIE-i",Yr="styles-module__label__XDGcT",Or="styles-module__children__N1c5Z",ge={treeView:Er,treeNodeWrapper:Rr,treeNode:Xr,disabled:Gr,expandIcon:Ar,expanded:Vr,spacer:Pr,icon:Fr,label:Yr,children:Or};function rs({node:s,level:t,expandedIds:n,onToggle:l,onNodeClick:a}){const o=s.children&&s.children.length>0,_=n.has(s.id),c=()=>{s.disabled||(o&&l(s.id),a?.(s))};return e.jsxs("div",{className:ge.treeNodeWrapper,children:[e.jsxs("div",{className:`${ge.treeNode} ${s.disabled?ge.disabled:""}`,style:{paddingLeft:`${t*1.5}rem`},onClick:c,children:[o&&e.jsx("span",{className:`${ge.expandIcon} ${_?ge.expanded:""}`,children:"▶"}),!o&&e.jsx("span",{className:ge.spacer}),s.icon&&e.jsx("span",{className:ge.icon,children:s.icon}),e.jsx("span",{className:ge.label,children:s.label})]}),o&&_&&e.jsx("div",{className:ge.children,children:s.children.map(i=>e.jsx(rs,{node:i,level:t+1,expandedIds:n,onToggle:l,onNodeClick:a},i.id))})]})}function qr({data:s,defaultExpandedIds:t=[],onNodeClick:n,className:l=""}){const[a,o]=p.useState(new Set(t)),_=c=>{o(i=>{const r=new Set(i);return r.has(c)?r.delete(c):r.add(c),r})};return e.jsx("div",{className:`${ge.treeView} ${l}`,children:s.map(c=>e.jsx(rs,{node:c,level:0,expandedIds:a,onToggle:_,onNodeClick:n},c.id))})}const Hr="styles-module__nav__sMQSv",Kr="styles-module__vertical__6EFeu",Zr="styles-module__collapsed__eIVC7",Ur="styles-module__horizontal__5UU20",Jr="styles-module__navItemWrapper__Sc9wi",Qr="styles-module__navItem__7O2YX",ed="styles-module__disabled__hvWkN",sd="styles-module__nested__oejUs",td="styles-module__icon__SLdZe",ld="styles-module__label__pji80",nd="styles-module__badge__03qDH",od="styles-module__expandIcon__bGlQG",ad="styles-module__dropdownIcon__uf35v",_d="styles-module__expanded__2R6-v",cd="styles-module__children__sfAGb",rd="styles-module__slideDown__xKrR1",dd="styles-module__dropdown__LuTLW",id="styles-module__megaMenu__02Wp7",ud="styles-module__megaMenuWrapper__yLvBH",md="styles-module__megaMenuGrid__4FrxU",pd="styles-module__megaMenuColumn__DI0z2",O={nav:Hr,vertical:Kr,collapsed:Zr,horizontal:Ur,navItemWrapper:Jr,navItem:Qr,disabled:ed,nested:sd,icon:td,label:ld,badge:nd,expandIcon:od,dropdownIcon:ad,expanded:_d,children:cd,slideDown:rd,dropdown:dd,megaMenu:id,megaMenuWrapper:ud,megaMenuGrid:md,megaMenuColumn:pd};function Ue({item:s,level:t,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:_}){const c=s.children&&s.children.length>0,i=n.has(s.id),r=s.megaMenu&&c,d=f=>{s.disabled||(c&&o==="vertical"&&(f.preventDefault(),l(s.id)),s.onClick&&s.onClick(),a?.(s))},u=()=>e.jsxs(e.Fragment,{children:[s.icon&&e.jsx("span",{className:O.icon,children:s.icon}),!_&&e.jsx("span",{className:O.label,children:s.label}),!_&&s.badge&&e.jsx("span",{className:O.badge,children:s.badge}),!_&&c&&o==="vertical"&&e.jsx("span",{className:`${O.expandIcon} ${i?O.expanded:""}`,children:"▶"}),!_&&c&&o==="horizontal"&&e.jsx("span",{className:O.dropdownIcon,children:"▼"})]}),x=s.href?e.jsx("a",{href:s.href,className:`${O.navItem} ${s.disabled?O.disabled:""} ${t>0?O.nested:""}`,onClick:d,children:u()}):e.jsx("button",{type:"button",className:`${O.navItem} ${s.disabled?O.disabled:""} ${t>0?O.nested:""}`,onClick:d,children:u()});return e.jsxs("div",{className:`${O.navItemWrapper} ${r?O.megaMenuWrapper:""}`,children:[x,c&&e.jsxs(e.Fragment,{children:[o==="vertical"&&i&&e.jsx("div",{className:O.children,children:s.children.map(f=>e.jsx(Ue,{item:f,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:_},f.id))}),o==="horizontal"&&e.jsx("div",{className:`${O.dropdown} ${r?O.megaMenu:""}`,children:r?e.jsx("div",{className:O.megaMenuGrid,children:s.children.map(f=>e.jsx("div",{className:O.megaMenuColumn,children:e.jsx(Ue,{item:f,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:_})},f.id))}):s.children.map(f=>e.jsx(Ue,{item:f,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:_},f.id))})]})]})}function yd({items:s,orientation:t="vertical",defaultExpandedIds:n=[],onItemClick:l,className:a="",collapsed:o=!1}){const[_,c]=p.useState(new Set(n)),i=r=>{c(d=>{const u=new Set(d);return u.has(r)?u.delete(r):u.add(r),u})};return e.jsx("nav",{className:`${O.nav} ${O[t]} ${o?O.collapsed:""} ${a}`,children:s.map(r=>e.jsx(Ue,{item:r,level:0,expandedIds:_,onToggle:i,onItemClick:l,orientation:t,collapsed:o},r.id))})}const hd="styles-module__selectContainer__JfMFS",gd="styles-module__fullWidth__XXFCr",fd="styles-module__label__eUUOm",xd="styles-module__wrapper__98xFk",vd="styles-module__select__xJaN9",bd="styles-module__disabled__A1ppA",$d="styles-module__sm__MEAFW",jd="styles-module__lg__sd1Gy",Nd="styles-module__error__w1Lsu",wd="styles-module__success__xbtdD",Sd="styles-module__arrow__UJXzt",kd="styles-module__helperText__sXAtM",Cd="styles-module__errorText__7kPjp",de={selectContainer:hd,fullWidth:gd,label:fd,wrapper:xd,select:vd,disabled:bd,sm:$d,lg:jd,error:Nd,success:wd,arrow:Sd,helperText:kd,errorText:Cd},ds=p.forwardRef(({label:s,error:t,helperText:n,size:l="md",variant:a="default",fullWidth:o=!1,className:_="",disabled:c=!1,options:i,placeholder:r,...d},u)=>{const x=t?"error":a,f=`${de.selectContainer} ${o?de.fullWidth:""} ${_}`,b=`${de.select} ${de[l]} ${de[x]} ${c?de.disabled:""}`;return e.jsxs("div",{className:f,children:[s&&e.jsx("label",{className:de.label,children:s}),e.jsxs("div",{className:de.wrapper,children:[e.jsxs("select",{ref:u,className:b,disabled:c,...d,children:[r&&e.jsx("option",{value:"",disabled:!0,children:r}),i.map(m=>e.jsx("option",{value:m.value,disabled:m.disabled,children:m.label},m.value))]}),e.jsx("span",{className:de.arrow,children:"▼"})]}),(t||n)&&e.jsx("span",{className:`${de.helperText} ${t?de.errorText:""}`,children:t||n})]})});ds.displayName="Select";const Ld="styles-module__grid__-18GG",Id="styles-module__columns-1__v8SEE",Md="styles-module__columns-2__Zq8Ih",zd="styles-module__columns-3__-sPCq",Dd="styles-module__columns-4__jB2X6",Td="styles-module__columns-5__WbWn4",Wd="styles-module__columns-6__B-cvH",Bd="styles-module__columns-7__C29vY",Ed="styles-module__columns-8__lFc3E",Rd="styles-module__columns-9__Rhzrn",Xd="styles-module__columns-10__hXu1z",Gd="styles-module__columns-11__LYy-7",Ad="styles-module__columns-12__0tALI",Vd="styles-module__columns-sm-1__rGPgC",Pd="styles-module__columns-sm-2__PjfNA",Fd="styles-module__columns-sm-3__-DkQI",Yd="styles-module__columns-sm-4__vtgo0",Od="styles-module__columns-sm-5__e91Bf",qd="styles-module__columns-sm-6__2BPvq",Hd="styles-module__columns-sm-7__7WSj3",Kd="styles-module__columns-sm-8__Y1rAn",Zd="styles-module__columns-sm-9__ipGTO",Ud="styles-module__columns-sm-10__PsNnZ",Jd="styles-module__columns-sm-11__0Xt-s",Qd="styles-module__columns-sm-12__uDrsj",ei="styles-module__columns-md-1__VxJSA",si="styles-module__columns-md-2__7Jb7M",ti="styles-module__columns-md-3__NPgJ4",li="styles-module__columns-md-4__caSiE",ni="styles-module__columns-md-5__YV-KD",oi="styles-module__columns-md-6__eYuBW",ai="styles-module__columns-md-7__kFwVo",_i="styles-module__columns-md-8__--8cy",ci="styles-module__columns-md-9__R5Q9b",ri="styles-module__columns-md-10__-1u9i",di="styles-module__columns-md-11__3fWd5",ii="styles-module__columns-md-12__6p-sc",ui="styles-module__columns-lg-1__Us4pj",mi="styles-module__columns-lg-2__42pEt",pi="styles-module__columns-lg-3__-TIpF",yi="styles-module__columns-lg-4__gZKHW",hi="styles-module__columns-lg-5__04nEU",gi="styles-module__columns-lg-6__cdsbL",fi="styles-module__columns-lg-7__s2yv9",xi="styles-module__columns-lg-8__B1jK9",vi="styles-module__columns-lg-9__rA-9F",bi="styles-module__columns-lg-10__99khu",$i="styles-module__columns-lg-11__Wfy-H",ji="styles-module__columns-lg-12__mIBrq",Ni="styles-module__columns-xl-1__uxEeX",wi="styles-module__columns-xl-2__xerO3",Si="styles-module__columns-xl-3__6GLSS",ki="styles-module__columns-xl-4__XYS09",Ci="styles-module__columns-xl-5__4Y5e8",Li="styles-module__columns-xl-6__Qufa4",Ii="styles-module__columns-xl-7__jAsJu",Mi="styles-module__columns-xl-8__1BctD",zi="styles-module__columns-xl-9__HNe1-",Di="styles-module__columns-xl-10__dSLX9",Ti="styles-module__columns-xl-11__KB6nJ",Wi="styles-module__columns-xl-12__UvRYk",Bi="styles-module__gap-none__FSY1O",Ei="styles-module__gap-xs__yd0Vu",Ri="styles-module__gap-sm__9o2un",Xi="styles-module__gap-md__Yb5VI",Gi="styles-module__gap-lg__H0Kke",Ai="styles-module__gap-xl__LDewl",Vi="styles-module__gap-2xl__8nYbr",Pi="styles-module__row-gap-none__JAJpj",Fi="styles-module__row-gap-xs__a3tit",Yi="styles-module__row-gap-sm__72-ut",Oi="styles-module__row-gap-md__7aLU-",qi="styles-module__row-gap-lg__1DeqX",Hi="styles-module__row-gap-xl__KsfMY",Ki="styles-module__row-gap-2xl__obZGl",Zi="styles-module__column-gap-none__KecTY",Ui="styles-module__column-gap-xs__k5jWZ",Ji="styles-module__column-gap-sm__QPdcs",Qi="styles-module__column-gap-md__bjSOf",eu="styles-module__column-gap-lg__EbeJF",su="styles-module__column-gap-xl__5A633",tu="styles-module__column-gap-2xl__vgLSu",lu="styles-module__align-start__bjdHG",nu="styles-module__align-center__yx3-m",ou="styles-module__align-end__a4IA3",au="styles-module__align-stretch__NyQwc",_u="styles-module__align-baseline__XDLXG",cu="styles-module__justify-items-start__0oBcn",ru="styles-module__justify-items-center__nVsrc",du="styles-module__justify-items-end__-0L3F",iu="styles-module__justify-items-stretch__0Lw7a",uu="styles-module__justify-content-start__AUQmN",mu="styles-module__justify-content-center__DbeoQ",pu="styles-module__justify-content-end__WV6jz",yu="styles-module__justify-content-space-between__8AaIN",hu="styles-module__justify-content-space-around__aODdb",gu="styles-module__justify-content-space-evenly__L9gkw",fu="styles-module__flow-row__kRZfS",xu="styles-module__flow-column__WwpqM",vu="styles-module__flow-dense__lUpft",bu="styles-module__flow-row-dense__tF-IP",$u="styles-module__flow-column-dense__GEsOK",ju="styles-module__gridItem__DDjWB",Nu="styles-module__col-span-1__mH-jY",wu="styles-module__col-span-2__eTM2S",Su="styles-module__col-span-3__HYpEw",ku="styles-module__col-span-4__mg-mS",Cu="styles-module__col-span-5__VVpGI",Lu="styles-module__col-span-6__SC8e-",Iu="styles-module__col-span-7__Jibfe",Mu="styles-module__col-span-8__qSQX1",zu="styles-module__col-span-9__95itg",Du="styles-module__col-span-10__-Ghn-",Tu="styles-module__col-span-11__Jk2PJ",Wu="styles-module__col-span-12__UG7o2",Bu="styles-module__col-span-full__zFrNk",Eu="styles-module__col-span-sm-1__Eyzeo",Ru="styles-module__col-span-sm-2__qw56t",Xu="styles-module__col-span-sm-3__Dwrhj",Gu="styles-module__col-span-sm-4__mdKu-",Au="styles-module__col-span-sm-5__erB04",Vu="styles-module__col-span-sm-6__AN-Eo",Pu="styles-module__col-span-sm-7__jDZJk",Fu="styles-module__col-span-sm-8__-c6X9",Yu="styles-module__col-span-sm-9__tqIxC",Ou="styles-module__col-span-sm-10__Z4S4U",qu="styles-module__col-span-sm-11__5l3EF",Hu="styles-module__col-span-sm-12__ToxhH",Ku="styles-module__col-span-sm-full__5PByZ",Zu="styles-module__col-span-md-1__2iH1s",Uu="styles-module__col-span-md-2__metsn",Ju="styles-module__col-span-md-3__ArbKb",Qu="styles-module__col-span-md-4__xVXZU",em="styles-module__col-span-md-5__ym6rl",sm="styles-module__col-span-md-6__peA2T",tm="styles-module__col-span-md-7__AAm1f",lm="styles-module__col-span-md-8__VLafy",nm="styles-module__col-span-md-9__PWAAq",om="styles-module__col-span-md-10__GRmCe",am="styles-module__col-span-md-11__M8B4R",_m="styles-module__col-span-md-12__HGzlP",cm="styles-module__col-span-md-full__4y9gL",rm="styles-module__col-span-lg-1__FG3dm",dm="styles-module__col-span-lg-2__5dZiG",im="styles-module__col-span-lg-3__oZmcU",um="styles-module__col-span-lg-4__itdqY",mm="styles-module__col-span-lg-5__ux3GV",pm="styles-module__col-span-lg-6__zf4Bn",ym="styles-module__col-span-lg-7__olG9c",hm="styles-module__col-span-lg-8__-QheZ",gm="styles-module__col-span-lg-9__ZXgY2",fm="styles-module__col-span-lg-10__bbXiL",xm="styles-module__col-span-lg-11__AQw76",vm="styles-module__col-span-lg-12__cFfHJ",bm="styles-module__col-span-lg-full__IBuri",$m="styles-module__col-span-xl-1__hoqul",jm="styles-module__col-span-xl-2__iTlZE",Nm="styles-module__col-span-xl-3__pw3Vu",wm="styles-module__col-span-xl-4__NaUdq",Sm="styles-module__col-span-xl-5__NZfk2",km="styles-module__col-span-xl-6__piqQd",Cm="styles-module__col-span-xl-7__YGer8",Lm="styles-module__col-span-xl-8__Dr6aM",Im="styles-module__col-span-xl-9__zyuUC",Mm="styles-module__col-span-xl-10__1tCT-",zm="styles-module__col-span-xl-11__4neTT",Dm="styles-module__col-span-xl-12__yqf3o",Tm="styles-module__col-span-xl-full__LIPRp",Wm="styles-module__row-span-1__zy3Hq",Bm="styles-module__row-span-2__Z8RpU",Em="styles-module__row-span-3__JkAqM",Rm="styles-module__row-span-4__X5Xkb",Xm="styles-module__row-span-5__UGWBp",Gm="styles-module__row-span-6__Ok7gd",H={grid:Ld,"columns-1":"styles-module__columns-1__v8SEE",columns1:Id,"columns-2":"styles-module__columns-2__Zq8Ih",columns2:Md,"columns-3":"styles-module__columns-3__-sPCq",columns3:zd,"columns-4":"styles-module__columns-4__jB2X6",columns4:Dd,"columns-5":"styles-module__columns-5__WbWn4",columns5:Td,"columns-6":"styles-module__columns-6__B-cvH",columns6:Wd,"columns-7":"styles-module__columns-7__C29vY",columns7:Bd,"columns-8":"styles-module__columns-8__lFc3E",columns8:Ed,"columns-9":"styles-module__columns-9__Rhzrn",columns9:Rd,"columns-10":"styles-module__columns-10__hXu1z",columns10:Xd,"columns-11":"styles-module__columns-11__LYy-7",columns11:Gd,"columns-12":"styles-module__columns-12__0tALI",columns12:Ad,"columns-sm-1":"styles-module__columns-sm-1__rGPgC",columnsSm1:Vd,"columns-sm-2":"styles-module__columns-sm-2__PjfNA",columnsSm2:Pd,"columns-sm-3":"styles-module__columns-sm-3__-DkQI",columnsSm3:Fd,"columns-sm-4":"styles-module__columns-sm-4__vtgo0",columnsSm4:Yd,"columns-sm-5":"styles-module__columns-sm-5__e91Bf",columnsSm5:Od,"columns-sm-6":"styles-module__columns-sm-6__2BPvq",columnsSm6:qd,"columns-sm-7":"styles-module__columns-sm-7__7WSj3",columnsSm7:Hd,"columns-sm-8":"styles-module__columns-sm-8__Y1rAn",columnsSm8:Kd,"columns-sm-9":"styles-module__columns-sm-9__ipGTO",columnsSm9:Zd,"columns-sm-10":"styles-module__columns-sm-10__PsNnZ",columnsSm10:Ud,"columns-sm-11":"styles-module__columns-sm-11__0Xt-s",columnsSm11:Jd,"columns-sm-12":"styles-module__columns-sm-12__uDrsj",columnsSm12:Qd,"columns-md-1":"styles-module__columns-md-1__VxJSA",columnsMd1:ei,"columns-md-2":"styles-module__columns-md-2__7Jb7M",columnsMd2:si,"columns-md-3":"styles-module__columns-md-3__NPgJ4",columnsMd3:ti,"columns-md-4":"styles-module__columns-md-4__caSiE",columnsMd4:li,"columns-md-5":"styles-module__columns-md-5__YV-KD",columnsMd5:ni,"columns-md-6":"styles-module__columns-md-6__eYuBW",columnsMd6:oi,"columns-md-7":"styles-module__columns-md-7__kFwVo",columnsMd7:ai,"columns-md-8":"styles-module__columns-md-8__--8cy",columnsMd8:_i,"columns-md-9":"styles-module__columns-md-9__R5Q9b",columnsMd9:ci,"columns-md-10":"styles-module__columns-md-10__-1u9i",columnsMd10:ri,"columns-md-11":"styles-module__columns-md-11__3fWd5",columnsMd11:di,"columns-md-12":"styles-module__columns-md-12__6p-sc",columnsMd12:ii,"columns-lg-1":"styles-module__columns-lg-1__Us4pj",columnsLg1:ui,"columns-lg-2":"styles-module__columns-lg-2__42pEt",columnsLg2:mi,"columns-lg-3":"styles-module__columns-lg-3__-TIpF",columnsLg3:pi,"columns-lg-4":"styles-module__columns-lg-4__gZKHW",columnsLg4:yi,"columns-lg-5":"styles-module__columns-lg-5__04nEU",columnsLg5:hi,"columns-lg-6":"styles-module__columns-lg-6__cdsbL",columnsLg6:gi,"columns-lg-7":"styles-module__columns-lg-7__s2yv9",columnsLg7:fi,"columns-lg-8":"styles-module__columns-lg-8__B1jK9",columnsLg8:xi,"columns-lg-9":"styles-module__columns-lg-9__rA-9F",columnsLg9:vi,"columns-lg-10":"styles-module__columns-lg-10__99khu",columnsLg10:bi,"columns-lg-11":"styles-module__columns-lg-11__Wfy-H",columnsLg11:$i,"columns-lg-12":"styles-module__columns-lg-12__mIBrq",columnsLg12:ji,"columns-xl-1":"styles-module__columns-xl-1__uxEeX",columnsXl1:Ni,"columns-xl-2":"styles-module__columns-xl-2__xerO3",columnsXl2:wi,"columns-xl-3":"styles-module__columns-xl-3__6GLSS",columnsXl3:Si,"columns-xl-4":"styles-module__columns-xl-4__XYS09",columnsXl4:ki,"columns-xl-5":"styles-module__columns-xl-5__4Y5e8",columnsXl5:Ci,"columns-xl-6":"styles-module__columns-xl-6__Qufa4",columnsXl6:Li,"columns-xl-7":"styles-module__columns-xl-7__jAsJu",columnsXl7:Ii,"columns-xl-8":"styles-module__columns-xl-8__1BctD",columnsXl8:Mi,"columns-xl-9":"styles-module__columns-xl-9__HNe1-",columnsXl9:zi,"columns-xl-10":"styles-module__columns-xl-10__dSLX9",columnsXl10:Di,"columns-xl-11":"styles-module__columns-xl-11__KB6nJ",columnsXl11:Ti,"columns-xl-12":"styles-module__columns-xl-12__UvRYk",columnsXl12:Wi,"gap-none":"styles-module__gap-none__FSY1O",gapNone:Bi,"gap-xs":"styles-module__gap-xs__yd0Vu",gapXs:Ei,"gap-sm":"styles-module__gap-sm__9o2un",gapSm:Ri,"gap-md":"styles-module__gap-md__Yb5VI",gapMd:Xi,"gap-lg":"styles-module__gap-lg__H0Kke",gapLg:Gi,"gap-xl":"styles-module__gap-xl__LDewl",gapXl:Ai,"gap-2xl":"styles-module__gap-2xl__8nYbr",gap2Xl:Vi,"row-gap-none":"styles-module__row-gap-none__JAJpj",rowGapNone:Pi,"row-gap-xs":"styles-module__row-gap-xs__a3tit",rowGapXs:Fi,"row-gap-sm":"styles-module__row-gap-sm__72-ut",rowGapSm:Yi,"row-gap-md":"styles-module__row-gap-md__7aLU-",rowGapMd:Oi,"row-gap-lg":"styles-module__row-gap-lg__1DeqX",rowGapLg:qi,"row-gap-xl":"styles-module__row-gap-xl__KsfMY",rowGapXl:Hi,"row-gap-2xl":"styles-module__row-gap-2xl__obZGl",rowGap2Xl:Ki,"column-gap-none":"styles-module__column-gap-none__KecTY",columnGapNone:Zi,"column-gap-xs":"styles-module__column-gap-xs__k5jWZ",columnGapXs:Ui,"column-gap-sm":"styles-module__column-gap-sm__QPdcs",columnGapSm:Ji,"column-gap-md":"styles-module__column-gap-md__bjSOf",columnGapMd:Qi,"column-gap-lg":"styles-module__column-gap-lg__EbeJF",columnGapLg:eu,"column-gap-xl":"styles-module__column-gap-xl__5A633",columnGapXl:su,"column-gap-2xl":"styles-module__column-gap-2xl__vgLSu",columnGap2Xl:tu,"align-start":"styles-module__align-start__bjdHG",alignStart:lu,"align-center":"styles-module__align-center__yx3-m",alignCenter:nu,"align-end":"styles-module__align-end__a4IA3",alignEnd:ou,"align-stretch":"styles-module__align-stretch__NyQwc",alignStretch:au,"align-baseline":"styles-module__align-baseline__XDLXG",alignBaseline:_u,"justify-items-start":"styles-module__justify-items-start__0oBcn",justifyItemsStart:cu,"justify-items-center":"styles-module__justify-items-center__nVsrc",justifyItemsCenter:ru,"justify-items-end":"styles-module__justify-items-end__-0L3F",justifyItemsEnd:du,"justify-items-stretch":"styles-module__justify-items-stretch__0Lw7a",justifyItemsStretch:iu,"justify-content-start":"styles-module__justify-content-start__AUQmN",justifyContentStart:uu,"justify-content-center":"styles-module__justify-content-center__DbeoQ",justifyContentCenter:mu,"justify-content-end":"styles-module__justify-content-end__WV6jz",justifyContentEnd:pu,"justify-content-space-between":"styles-module__justify-content-space-between__8AaIN",justifyContentSpaceBetween:yu,"justify-content-space-around":"styles-module__justify-content-space-around__aODdb",justifyContentSpaceAround:hu,"justify-content-space-evenly":"styles-module__justify-content-space-evenly__L9gkw",justifyContentSpaceEvenly:gu,"flow-row":"styles-module__flow-row__kRZfS",flowRow:fu,"flow-column":"styles-module__flow-column__WwpqM",flowColumn:xu,"flow-dense":"styles-module__flow-dense__lUpft",flowDense:vu,"flow-row-dense":"styles-module__flow-row-dense__tF-IP",flowRowDense:bu,"flow-column-dense":"styles-module__flow-column-dense__GEsOK",flowColumnDense:$u,gridItem:ju,"col-span-1":"styles-module__col-span-1__mH-jY",colSpan1:Nu,"col-span-2":"styles-module__col-span-2__eTM2S",colSpan2:wu,"col-span-3":"styles-module__col-span-3__HYpEw",colSpan3:Su,"col-span-4":"styles-module__col-span-4__mg-mS",colSpan4:ku,"col-span-5":"styles-module__col-span-5__VVpGI",colSpan5:Cu,"col-span-6":"styles-module__col-span-6__SC8e-",colSpan6:Lu,"col-span-7":"styles-module__col-span-7__Jibfe",colSpan7:Iu,"col-span-8":"styles-module__col-span-8__qSQX1",colSpan8:Mu,"col-span-9":"styles-module__col-span-9__95itg",colSpan9:zu,"col-span-10":"styles-module__col-span-10__-Ghn-",colSpan10:Du,"col-span-11":"styles-module__col-span-11__Jk2PJ",colSpan11:Tu,"col-span-12":"styles-module__col-span-12__UG7o2",colSpan12:Wu,"col-span-full":"styles-module__col-span-full__zFrNk",colSpanFull:Bu,"col-span-sm-1":"styles-module__col-span-sm-1__Eyzeo",colSpanSm1:Eu,"col-span-sm-2":"styles-module__col-span-sm-2__qw56t",colSpanSm2:Ru,"col-span-sm-3":"styles-module__col-span-sm-3__Dwrhj",colSpanSm3:Xu,"col-span-sm-4":"styles-module__col-span-sm-4__mdKu-",colSpanSm4:Gu,"col-span-sm-5":"styles-module__col-span-sm-5__erB04",colSpanSm5:Au,"col-span-sm-6":"styles-module__col-span-sm-6__AN-Eo",colSpanSm6:Vu,"col-span-sm-7":"styles-module__col-span-sm-7__jDZJk",colSpanSm7:Pu,"col-span-sm-8":"styles-module__col-span-sm-8__-c6X9",colSpanSm8:Fu,"col-span-sm-9":"styles-module__col-span-sm-9__tqIxC",colSpanSm9:Yu,"col-span-sm-10":"styles-module__col-span-sm-10__Z4S4U",colSpanSm10:Ou,"col-span-sm-11":"styles-module__col-span-sm-11__5l3EF",colSpanSm11:qu,"col-span-sm-12":"styles-module__col-span-sm-12__ToxhH",colSpanSm12:Hu,"col-span-sm-full":"styles-module__col-span-sm-full__5PByZ",colSpanSmFull:Ku,"col-span-md-1":"styles-module__col-span-md-1__2iH1s",colSpanMd1:Zu,"col-span-md-2":"styles-module__col-span-md-2__metsn",colSpanMd2:Uu,"col-span-md-3":"styles-module__col-span-md-3__ArbKb",colSpanMd3:Ju,"col-span-md-4":"styles-module__col-span-md-4__xVXZU",colSpanMd4:Qu,"col-span-md-5":"styles-module__col-span-md-5__ym6rl",colSpanMd5:em,"col-span-md-6":"styles-module__col-span-md-6__peA2T",colSpanMd6:sm,"col-span-md-7":"styles-module__col-span-md-7__AAm1f",colSpanMd7:tm,"col-span-md-8":"styles-module__col-span-md-8__VLafy",colSpanMd8:lm,"col-span-md-9":"styles-module__col-span-md-9__PWAAq",colSpanMd9:nm,"col-span-md-10":"styles-module__col-span-md-10__GRmCe",colSpanMd10:om,"col-span-md-11":"styles-module__col-span-md-11__M8B4R",colSpanMd11:am,"col-span-md-12":"styles-module__col-span-md-12__HGzlP",colSpanMd12:_m,"col-span-md-full":"styles-module__col-span-md-full__4y9gL",colSpanMdFull:cm,"col-span-lg-1":"styles-module__col-span-lg-1__FG3dm",colSpanLg1:rm,"col-span-lg-2":"styles-module__col-span-lg-2__5dZiG",colSpanLg2:dm,"col-span-lg-3":"styles-module__col-span-lg-3__oZmcU",colSpanLg3:im,"col-span-lg-4":"styles-module__col-span-lg-4__itdqY",colSpanLg4:um,"col-span-lg-5":"styles-module__col-span-lg-5__ux3GV",colSpanLg5:mm,"col-span-lg-6":"styles-module__col-span-lg-6__zf4Bn",colSpanLg6:pm,"col-span-lg-7":"styles-module__col-span-lg-7__olG9c",colSpanLg7:ym,"col-span-lg-8":"styles-module__col-span-lg-8__-QheZ",colSpanLg8:hm,"col-span-lg-9":"styles-module__col-span-lg-9__ZXgY2",colSpanLg9:gm,"col-span-lg-10":"styles-module__col-span-lg-10__bbXiL",colSpanLg10:fm,"col-span-lg-11":"styles-module__col-span-lg-11__AQw76",colSpanLg11:xm,"col-span-lg-12":"styles-module__col-span-lg-12__cFfHJ",colSpanLg12:vm,"col-span-lg-full":"styles-module__col-span-lg-full__IBuri",colSpanLgFull:bm,"col-span-xl-1":"styles-module__col-span-xl-1__hoqul",colSpanXl1:$m,"col-span-xl-2":"styles-module__col-span-xl-2__iTlZE",colSpanXl2:jm,"col-span-xl-3":"styles-module__col-span-xl-3__pw3Vu",colSpanXl3:Nm,"col-span-xl-4":"styles-module__col-span-xl-4__NaUdq",colSpanXl4:wm,"col-span-xl-5":"styles-module__col-span-xl-5__NZfk2",colSpanXl5:Sm,"col-span-xl-6":"styles-module__col-span-xl-6__piqQd",colSpanXl6:km,"col-span-xl-7":"styles-module__col-span-xl-7__YGer8",colSpanXl7:Cm,"col-span-xl-8":"styles-module__col-span-xl-8__Dr6aM",colSpanXl8:Lm,"col-span-xl-9":"styles-module__col-span-xl-9__zyuUC",colSpanXl9:Im,"col-span-xl-10":"styles-module__col-span-xl-10__1tCT-",colSpanXl10:Mm,"col-span-xl-11":"styles-module__col-span-xl-11__4neTT",colSpanXl11:zm,"col-span-xl-12":"styles-module__col-span-xl-12__yqf3o",colSpanXl12:Dm,"col-span-xl-full":"styles-module__col-span-xl-full__LIPRp",colSpanXlFull:Tm,"row-span-1":"styles-module__row-span-1__zy3Hq",rowSpan1:Wm,"row-span-2":"styles-module__row-span-2__Z8RpU",rowSpan2:Bm,"row-span-3":"styles-module__row-span-3__JkAqM",rowSpan3:Em,"row-span-4":"styles-module__row-span-4__X5Xkb",rowSpan4:Rm,"row-span-5":"styles-module__row-span-5__UGWBp",rowSpan5:Xm,"row-span-6":"styles-module__row-span-6__Ok7gd",rowSpan6:Gm};function is({columns:s=12,columnsSm:t,columnsMd:n,columnsLg:l,columnsXl:a,gap:o="md",rowGap:_,columnGap:c,alignItems:i,justifyItems:r,justifyContent:d,autoFlow:u,className:x="",children:f,...b}){const m=[H.grid,H[`columns-${s}`],t&&H[`columns-sm-${t}`],n&&H[`columns-md-${n}`],l&&H[`columns-lg-${l}`],a&&H[`columns-xl-${a}`],H[`gap-${o}`],_&&H[`row-gap-${_}`],c&&H[`column-gap-${c}`],i&&H[`align-${i}`],r&&H[`justify-items-${r}`],d&&H[`justify-content-${d}`],u&&H[`flow-${u}`],x].filter(Boolean).join(" ");return e.jsx("div",{className:m,...b,children:f})}function us({colSpan:s,colSpanSm:t,colSpanMd:n,colSpanLg:l,colSpanXl:a,rowSpan:o,colStart:_,colEnd:c,rowStart:i,rowEnd:r,className:d="",children:u,...x}){const f=[H.gridItem,s&&H[`col-span-${s}`],t&&H[`col-span-sm-${t}`],n&&H[`col-span-md-${n}`],l&&H[`col-span-lg-${l}`],a&&H[`col-span-xl-${a}`],o&&H[`row-span-${o}`],d].filter(Boolean).join(" "),b={};return _&&(b.gridColumnStart=_),c&&(b.gridColumnEnd=c),i&&(b.gridRowStart=i),r&&(b.gridRowEnd=r),e.jsx("div",{className:f,style:b,...x,children:u})}is.Item=us;const Am="styles-module__container__VdOF1",Vm="styles-module__centered__VnHGF",Pm="styles-module__size-xs__-MEhp",Fm="styles-module__size-sm__ZuE4A",Ym="styles-module__size-md__piQ0Z",Om="styles-module__size-lg__Grr0V",qm="styles-module__size-xl__aBZcL",Hm="styles-module__size-2xl__qimqK",Km="styles-module__size-full__02jid",Zm="styles-module__fluid__yUjnw",Um="styles-module__padding-none__BoJqT",Jm="styles-module__padding-sm__jnwGB",Qm="styles-module__padding-md__awpVn",ep="styles-module__padding-lg__rnErD",sp="styles-module__padding-xl__vpDQ1",qe={container:Am,centered:Vm,"size-xs":"styles-module__size-xs__-MEhp",sizeXs:Pm,"size-sm":"styles-module__size-sm__ZuE4A",sizeSm:Fm,"size-md":"styles-module__size-md__piQ0Z",sizeMd:Ym,"size-lg":"styles-module__size-lg__Grr0V",sizeLg:Om,"size-xl":"styles-module__size-xl__aBZcL",sizeXl:qm,"size-2xl":"styles-module__size-2xl__qimqK",size2Xl:Hm,"size-full":"styles-module__size-full__02jid",sizeFull:Km,fluid:Zm,"padding-none":"styles-module__padding-none__BoJqT",paddingNone:Um,"padding-sm":"styles-module__padding-sm__jnwGB",paddingSm:Jm,"padding-md":"styles-module__padding-md__awpVn",paddingMd:Qm,"padding-lg":"styles-module__padding-lg__rnErD",paddingLg:ep,"padding-xl":"styles-module__padding-xl__vpDQ1",paddingXl:sp};function tp({size:s="lg",padding:t="md",centered:n=!0,fluid:l=!1,className:a="",children:o,..._}){const c=[qe.container,!l&&qe[`size-${s}`],qe[`padding-${t}`],n&&qe.centered,l&&qe.fluid,a].filter(Boolean).join(" ");return e.jsx("div",{className:c,..._,children:o})}const lp="styles-module__spacer__qss6j",np="styles-module__axis-vertical__3Kgfw",op="styles-module__size-xs__SaVUa",ap="styles-module__size-sm__UBNV3",_p="styles-module__size-md__yESLg",cp="styles-module__size-lg__vQTo6",rp="styles-module__size-xl__xnHrI",dp="styles-module__size-2xl__3-kBv",ip="styles-module__size-3xl__CLpLD",up="styles-module__size-4xl__JaQzV",mp="styles-module__axis-horizontal__zztIj",pp="styles-module__axis-both__1qVsg",ls={spacer:lp,"axis-vertical":"styles-module__axis-vertical__3Kgfw",axisVertical:np,"size-xs":"styles-module__size-xs__SaVUa",sizeXs:op,"size-sm":"styles-module__size-sm__UBNV3",sizeSm:ap,"size-md":"styles-module__size-md__yESLg",sizeMd:_p,"size-lg":"styles-module__size-lg__vQTo6",sizeLg:cp,"size-xl":"styles-module__size-xl__xnHrI",sizeXl:rp,"size-2xl":"styles-module__size-2xl__3-kBv",size2Xl:dp,"size-3xl":"styles-module__size-3xl__CLpLD",size3Xl:ip,"size-4xl":"styles-module__size-4xl__JaQzV",size4Xl:up,"axis-horizontal":"styles-module__axis-horizontal__zztIj",axisHorizontal:mp,"axis-both":"styles-module__axis-both__1qVsg",axisBoth:pp};function yp({size:s="md",axis:t="vertical",spacing:n,className:l=""}){const a=[ls.spacer,ls[`size-${s}`],ls[`axis-${t}`],l].filter(Boolean).join(" "),o={};if(n!==void 0){const _=typeof n=="number"?`${n}px`:n;switch(t){case"horizontal":o.width=_,o.height=0;break;case"vertical":o.height=_,o.width=0;break;case"both":o.width=_,o.height=_;break}}return e.jsx("div",{className:a,style:o,"aria-hidden":"true"})}const hp="styles-module__skeleton__IE-Vu",gp="styles-module__animation-pulse__aYSI1",fp="styles-module__pulse__8b7Cb",xp="styles-module__animation-wave__88ZQe",vp="styles-module__wave__5-OJD",bp="styles-module__variant-text__QpDWV",$p="styles-module__variant-circular__3X6OU",jp="styles-module__variant-rectangular__bDGYd",Np="styles-module__variant-rounded__5rsz7",wp="styles-module__textGroup__djF5j",Ze={skeleton:hp,"animation-pulse":"styles-module__animation-pulse__aYSI1",animationPulse:gp,pulse:fp,"animation-wave":"styles-module__animation-wave__88ZQe",animationWave:xp,wave:vp,"variant-text":"styles-module__variant-text__QpDWV",variantText:bp,"variant-circular":"styles-module__variant-circular__3X6OU",variantCircular:$p,"variant-rectangular":"styles-module__variant-rectangular__bDGYd",variantRectangular:jp,"variant-rounded":"styles-module__variant-rounded__5rsz7",variantRounded:Np,textGroup:wp};function We({variant:s="text",width:t,height:n,animation:l="pulse",className:a="",lines:o=1,..._}){const c=()=>{const r={};return t!==void 0&&(r.width=typeof t=="number"?`${t}px`:t),n!==void 0&&(r.height=typeof n=="number"?`${n}px`:n),r},i=[Ze.skeleton,Ze[`variant-${s}`],l!=="none"&&Ze[`animation-${l}`],a].filter(Boolean).join(" ");return s==="text"&&o>1?e.jsx("div",{className:Ze.textGroup,..._,children:Array.from({length:o},(r,d)=>e.jsx("div",{className:i,style:{...c(),...d===o-1&&{width:t||"80%"}}},d))}):e.jsx("div",{className:i,style:c(),..._})}function ms({lines:s=3,...t}){return e.jsx(We,{variant:"text",lines:s,...t})}function ps({size:s=40,...t}){return e.jsx(We,{variant:"circular",width:s,height:s,...t})}function ys({width:s="100%",height:t=200,...n}){return e.jsx(We,{variant:"rectangular",width:s,height:t,...n})}We.Text=ms;We.Circle=ps;We.Rectangle=ys;const Sp="styles-module__videoContainer__3jwCO",kp="styles-module__video__i5zru",Cp="styles-module__aspect-16-9__1C9zz",Lp="styles-module__aspect-4-3__d-QMp",Ip="styles-module__aspect-1-1__pNYYM",Mp="styles-module__aspect-21-9__h138i",ns={videoContainer:Sp,video:kp,"aspect-16-9":"styles-module__aspect-16-9__1C9zz",aspect169:Cp,"aspect-4-3":"styles-module__aspect-4-3__d-QMp",aspect43:Lp,"aspect-1-1":"styles-module__aspect-1-1__pNYYM",aspect11:Ip,"aspect-21-9":"styles-module__aspect-21-9__h138i",aspect219:Mp},hs=p.forwardRef(({src:s,sources:t,poster:n,aspectRatio:l="16:9",controls:a=!0,autoPlay:o=!1,loop:_=!1,muted:c=!1,playsInline:i=!0,width:r,height:d,className:u="",loading:x="lazy",onError:f,...b},m)=>{const N={};r&&(N.width=typeof r=="number"?`${r}px`:r),d&&(N.height=typeof d=="number"?`${d}px`:d);const j=[ns.videoContainer,l!=="auto"&&ns[`aspect-${l.replace(":","-")}`],u].filter(Boolean).join(" ");return e.jsx("div",{className:j,style:N,children:e.jsxs("video",{ref:m,className:ns.video,controls:a,autoPlay:o,loop:_,muted:c,playsInline:i,poster:n,onError:f,...b,children:[t&&t.length>0?t.map((h,S)=>e.jsx("source",{src:h.src,type:h.type},S)):e.jsx("source",{src:s}),"Your browser does not support the video tag."]})})});hs.displayName="Video";const zp="styles-module__audioContainer__16H-K",Dp="styles-module__audio__Mq-EL",Tp="styles-module__metadata__avzvt",Wp="styles-module__coverArt__uvMH0",Bp="styles-module__info__yWEjQ",Ep="styles-module__title__zSubd",Rp="styles-module__artist__YDHxr",Xp="styles-module__album__15liA",Gp="styles-module__variant-minimal__kn0IV",Ap="styles-module__variant-standard__aqKxT",Vp="styles-module__variant-detailed__jUpfp",je={audioContainer:zp,audio:Dp,metadata:Tp,coverArt:Wp,info:Bp,title:Ep,artist:Rp,album:Xp,"variant-minimal":"styles-module__variant-minimal__kn0IV",variantMinimal:Gp,"variant-standard":"styles-module__variant-standard__aqKxT",variantStandard:Ap,"variant-detailed":"styles-module__variant-detailed__jUpfp",variantDetailed:Vp},gs=p.forwardRef(({src:s,sources:t,title:n,artist:l,album:a,coverArt:o,variant:_="standard",controls:c=!0,autoPlay:i=!1,loop:r=!1,muted:d=!1,preload:u="metadata",className:x="",onError:f,onPlay:b,onPause:m,onEnded:N,...j},h)=>{const S=[je.audioContainer,je[`variant-${_}`],x].filter(Boolean).join(" "),z=n||l||a||o;return e.jsxs("div",{className:S,children:[z&&_!=="minimal"&&e.jsxs("div",{className:je.metadata,children:[o&&e.jsx("div",{className:je.coverArt,children:e.jsx("img",{src:o,alt:n||"Cover art"})}),e.jsxs("div",{className:je.info,children:[n&&e.jsx("div",{className:je.title,children:n}),l&&e.jsx("div",{className:je.artist,children:l}),a&&_==="detailed"&&e.jsx("div",{className:je.album,children:a})]})]}),e.jsxs("audio",{ref:h,className:je.audio,controls:c,autoPlay:i,loop:r,muted:d,preload:u,onError:f,onPlay:b,onPause:m,onEnded:N,...j,children:[t&&t.length>0?t.map(($,C)=>e.jsx("source",{src:$.src,type:$.type},C)):e.jsx("source",{src:s}),"Your browser does not support the audio tag."]})]})});gs.displayName="Audio";const Pp="styles-module__tagInputContainer__rG-TN",Fp="styles-module__fullWidth__nfUqH",Yp="styles-module__label__r7qNM",Op="styles-module__inputWrapper__lb9-U",qp="styles-module__disabled__DJG6N",Hp="styles-module__sm__f1Ha1",Kp="styles-module__lg__bmnGH",Zp="styles-module__error__Gtr32",Up="styles-module__success__SgWLH",Jp="styles-module__tagsContainer__9dKnO",Qp="styles-module__tag__UTkfA",ey="styles-module__tagLabel__koIV7",sy="styles-module__removeButton__4LMvA",ty="styles-module__input__G3wtc",ly="styles-module__helperText__G6VBC",ny="styles-module__errorText__LPcTb",se={tagInputContainer:Pp,fullWidth:Fp,label:Yp,inputWrapper:Op,disabled:qp,sm:Hp,lg:Kp,error:Zp,success:Up,tagsContainer:Jp,tag:Qp,tagLabel:ey,removeButton:sy,input:ty,helperText:ly,errorText:ny};function oy({tags:s=[],onChange:t,onTagAdd:n,onTagRemove:l,placeholder:a="Add tags...",label:o,error:_,helperText:c,size:i="md",variant:r="default",disabled:d=!1,maxTags:u,separators:x=["Enter",","],allowDuplicates:f=!1,validate:b,removable:m=!0,fullWidth:N=!1,className:j=""}){const[h,S]=p.useState(""),z=p.useRef(null),$=_?"error":r,C=y=>{const v=y.trim();if(!v||u&&s.length>=u||!f&&s.some(q=>q.label.toLowerCase()===v.toLowerCase())||b&&!b(v))return;const k={id:`${Date.now()}-${Math.random()}`,label:v},B=[...s,k];t?.(B),n?.(k),S("")},T=y=>{if(!m||d)return;const v=s.filter(k=>k.id!==y.id);t?.(v),l?.(y)},I=y=>{const v=h.trim();if(x.includes(y.key)){y.preventDefault(),C(v);return}y.key==="Backspace"&&!h&&s.length>0&&m&&(y.preventDefault(),T(s[s.length-1]))},A=y=>{const v=y.target.value;if(x.includes(",")&&v.includes(",")){const k=v.split(",");k.slice(0,-1).forEach(B=>C(B)),S(k[k.length-1])}else S(v)},R=()=>{z.current?.focus()},W=[se.tagInputContainer,N&&se.fullWidth,j].filter(Boolean).join(" "),P=[se.inputWrapper,se[i],se[$],d&&se.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:W,children:[o&&e.jsx("label",{className:se.label,children:o}),e.jsx("div",{className:P,onClick:R,children:e.jsxs("div",{className:se.tagsContainer,children:[s.map(y=>e.jsxs("div",{className:se.tag,children:[e.jsx("span",{className:se.tagLabel,children:y.label}),m&&!d&&e.jsx("button",{type:"button",className:se.removeButton,onClick:v=>{v.stopPropagation(),T(y)},"aria-label":`Remove ${y.label}`,children:"×"})]},y.id)),(!u||s.length<u)&&e.jsx("input",{ref:z,type:"text",className:se.input,value:h,onChange:A,onKeyDown:I,onBlur:()=>{h.trim()&&C(h)},placeholder:s.length===0?a:"",disabled:d})]})}),(_||c)&&e.jsx("span",{className:`${se.helperText} ${_?se.errorText:""}`,children:_||c})]})}const ay="styles-module__pinInputContainer__A-JES",_y="styles-module__label__oTDys",cy="styles-module__inputsWrapper__kkWw4",ry="styles-module__pinInput__98qy7",dy="styles-module__sm__soj3i",iy="styles-module__lg__i9e56",uy="styles-module__error__n5-a4",my="styles-module__success__P-ASa",py="styles-module__masked__DP3X2",yy="styles-module__helperText__1DBEi",hy="styles-module__errorText__Hr-Sq",pe={pinInputContainer:ay,label:_y,inputsWrapper:cy,pinInput:ry,sm:dy,lg:iy,error:uy,success:my,masked:py,helperText:yy,errorText:hy};function gy({length:s=6,type:t="numeric",size:n="md",variant:l="default",mask:a=!1,autoFocus:o=!1,disabled:_=!1,placeholder:c="",label:i,error:r,helperText:d,onChange:u,onComplete:x,value:f,defaultValue:b="",selectOnFocus:m=!0,className:N=""}){const[j,h]=p.useState(f?.split("")||b.split("").slice(0,s)||Array(s).fill("")),S=p.useRef([]),z=r?"error":l;p.useEffect(()=>{if(f!==void 0){const y=f.split("").slice(0,s);for(;y.length<s;)y.push("");h(y)}},[f,s]),p.useEffect(()=>{o&&S.current[0]&&S.current[0].focus()},[o]);const $=y=>{if(!y)return!0;switch(t){case"numeric":return/^\d$/.test(y);case"alphabetic":return/^[a-zA-Z]$/.test(y);case"alphanumeric":return/^[a-zA-Z0-9]$/.test(y);default:return!0}},C=y=>{S.current[y]&&(S.current[y]?.focus(),m&&S.current[y]?.select())},T=(y,v)=>{const k=v.slice(-1);if(v&&!$(k))return;const B=[...j];B[y]=k,h(B);const q=B.join("");u?.(q),k&&y<s-1&&C(y+1),B.every(E=>E!=="")&&x?.(q)},I=(y,v)=>{if(v.key==="Backspace"){v.preventDefault();const k=[...j];j[y]?(k[y]="",h(k),u?.(k.join(""))):y>0&&(k[y-1]="",h(k),u?.(k.join("")),C(y-1))}if(v.key==="Delete"){v.preventDefault();const k=[...j];k[y]="",h(k),u?.(k.join(""))}v.key==="ArrowLeft"&&y>0&&(v.preventDefault(),C(y-1)),v.key==="ArrowRight"&&y<s-1&&(v.preventDefault(),C(y+1)),v.key==="Home"&&(v.preventDefault(),C(0)),v.key==="End"&&(v.preventDefault(),C(s-1))},A=y=>{y.preventDefault();const k=y.clipboardData.getData("text").slice(0,s).split("").filter($),B=[...j];k.forEach((E,w)=>{w<s&&(B[w]=E)}),h(B),u?.(B.join(""));const q=B.findIndex(E=>!E);C(q===-1?s-1:q),B.every(E=>E!=="")&&x?.(B.join(""))},R=y=>{m&&S.current[y]&&S.current[y]?.select()},W=[pe.pinInputContainer,N].filter(Boolean).join(" "),P=[pe.pinInput,pe[n],pe[z],a&&pe.masked,_&&pe.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:W,children:[i&&e.jsx("label",{className:pe.label,children:i}),e.jsx("div",{className:pe.inputsWrapper,children:Array.from({length:s}).map((y,v)=>e.jsx("input",{ref:k=>S.current[v]=k,type:a?"password":"text",inputMode:t==="numeric"?"numeric":"text",maxLength:1,value:j[v]||"",onChange:k=>T(v,k.target.value),onKeyDown:k=>I(v,k),onPaste:A,onFocus:()=>R(v),disabled:_,placeholder:c,className:P,"aria-label":`PIN digit ${v+1}`},v))}),(r||d)&&e.jsx("span",{className:`${pe.helperText} ${r?pe.errorText:""}`,children:r||d})]})}const fy="styles-module__ratingContainer__F0pJb",xy="styles-module__label__P8tLy",vy="styles-module__ratingWrapper__vNfnc",by="styles-module__rating__NcjYB",$y="styles-module__star__1LgQx",jy="styles-module__sm__KTEVu",Ny="styles-module__md__vRYlw",wy="styles-module__lg__NoGC1",Sy="styles-module__readOnly__yNpwH",ky="styles-module__disabled__cME0J",Cy="styles-module__valueDisplay__KxK-j",Ly="styles-module__helperText__-Dh55",ye={ratingContainer:fy,label:xy,ratingWrapper:vy,rating:by,star:$y,sm:jy,md:Ny,lg:wy,readOnly:Sy,disabled:ky,valueDisplay:Cy,helperText:Ly};function Iy({value:s,defaultValue:t=0,max:n=5,precision:l=1,size:a="md",readOnly:o=!1,disabled:_=!1,label:c,showValue:i=!1,emptyIcon:r,filledIcon:d,halfIcon:u,onChange:x,onHoverChange:f,className:b="",helperText:m}){const[N,j]=p.useState(t),[h,S]=p.useState(null),z=s!==void 0?s:N,$=h!==null?h:z,C=!o&&!_,T=y=>{if(!C)return;const v=z===y?0:y;s===void 0&&j(v),x?.(v)},I=(y,v)=>{if(C)if(l===.5){const{left:k,width:B}=v.currentTarget.getBoundingClientRect(),q=(v.clientX-k)/B,E=y+(q>.5?1:.5);S(E),f?.(E)}else{const k=y+1;S(k),f?.(k)}},A=()=>{C&&(S(null),f?.(0))},R=y=>{const v=y+1,k=$>=v,B=l===.5&&$>=v-.5&&$<v;return k?d||"★":B?u||"⯨":r||"☆"},W=[ye.ratingContainer,b].filter(Boolean).join(" "),P=[ye.rating,ye[a],_&&ye.disabled,o&&ye.readOnly].filter(Boolean).join(" ");return e.jsxs("div",{className:W,children:[c&&e.jsx("label",{className:ye.label,children:c}),e.jsxs("div",{className:ye.ratingWrapper,children:[e.jsx("div",{className:P,onMouseLeave:A,children:Array.from({length:n},(y,v)=>e.jsx("button",{type:"button",className:ye.star,onClick:()=>T(v+1),onMouseMove:k=>I(v,k),disabled:_,"aria-label":`Rate ${v+1} out of ${n}`,children:R(v)},v))}),i&&e.jsxs("span",{className:ye.valueDisplay,children:[$.toFixed(l===.5?1:0)," / ",n]})]}),m&&e.jsx("span",{className:ye.helperText,children:m})]})}const My="styles-module__window__kkIRc",zy="styles-module__maximized__8yMaC",Dy="styles-module__resizable__sHn40",Ty="styles-module__size-sm__yjumC",Wy="styles-module__size-md__kavLf",By="styles-module__size-lg__IBW3e",Ey="styles-module__size-xl__9yXK2",Ry="styles-module__size-full__AEyyM",Xy="styles-module__variant-default__fGFvQ",Gy="styles-module__variant-dark__4x4Z6",Ay="styles-module__variant-light__ruY9H",Vy="styles-module__titleBar__q4Nxs",Py="styles-module__draggable__AmUbi",Fy="styles-module__titleBarContent__blnTu",Yy="styles-module__title__muIAe",Oy="styles-module__toolbar__3bLH-",qy="styles-module__controls__nFGhQ",Hy="styles-module__control__qiMAt",Ky="styles-module__minimize__zGRY6",Zy="styles-module__maximize__SuZ8f",Uy="styles-module__close__PVa1W",Jy="styles-module__content__ABsnm",Qy="styles-module__footer__g5GSG",K={window:My,maximized:zy,resizable:Dy,"size-sm":"styles-module__size-sm__yjumC",sizeSm:Ty,"size-md":"styles-module__size-md__kavLf",sizeMd:Wy,"size-lg":"styles-module__size-lg__IBW3e",sizeLg:By,"size-xl":"styles-module__size-xl__9yXK2",sizeXl:Ey,"size-full":"styles-module__size-full__AEyyM",sizeFull:Ry,"variant-default":"styles-module__variant-default__fGFvQ",variantDefault:Xy,"variant-dark":"styles-module__variant-dark__4x4Z6",variantDark:Gy,"variant-light":"styles-module__variant-light__ruY9H",variantLight:Ay,titleBar:Vy,draggable:Py,titleBarContent:Fy,title:Yy,toolbar:Oy,controls:qy,control:Hy,minimize:Ky,maximize:Zy,close:Uy,content:Jy,footer:Qy};function eh({title:s="Window",size:t="md",variant:n="default",open:l=!0,closable:a=!0,minimizable:o=!1,maximizable:_=!0,resizable:c=!1,draggable:i=!0,onClose:r,onMinimize:d,onMaximize:u,width:x,height:f,initialX:b=0,initialY:m=0,children:N,className:j="",showControls:h=!0,toolbar:S,footer:z}){const[$,C]=p.useState(!1),[T,I]=p.useState({x:b,y:m}),[A,R]=p.useState(!1),[W,P]=p.useState({x:0,y:0}),y=p.useRef(null);if(!l)return null;const v=g=>{!i||$||(R(!0),P({x:g.clientX-T.x,y:g.clientY-T.y}))},k=g=>{A&&I({x:g.clientX-W.x,y:g.clientY-W.y})},B=()=>{R(!1)};p.useEffect(()=>{if(A)return document.addEventListener("mousemove",k),document.addEventListener("mouseup",B),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",B)}},[A,W]);const q=()=>{C(!$),u?.()},E={};!$&&i&&(E.transform=`translate(${T.x}px, ${T.y}px)`),x&&(E.width=typeof x=="number"?`${x}px`:x),f&&(E.height=typeof f=="number"?`${f}px`:f);const w=[K.window,K[`size-${t}`],K[`variant-${n}`],$&&K.maximized,c&&K.resizable,j].filter(Boolean).join(" ");return e.jsxs("div",{ref:y,className:w,style:E,children:[e.jsxs("div",{className:`${K.titleBar} ${i&&!$?K.draggable:""}`,onMouseDown:v,children:[e.jsxs("div",{className:K.titleBarContent,children:[e.jsx("span",{className:K.title,children:s}),S&&e.jsx("div",{className:K.toolbar,children:S})]}),h&&e.jsxs("div",{className:K.controls,children:[o&&e.jsx("button",{type:"button",className:`${K.control} ${K.minimize}`,onClick:d,"aria-label":"Minimize",children:"−"}),_&&e.jsx("button",{type:"button",className:`${K.control} ${K.maximize}`,onClick:q,"aria-label":$?"Restore":"Maximize",children:$?"⧉":"□"}),a&&e.jsx("button",{type:"button",className:`${K.control} ${K.close}`,onClick:r,"aria-label":"Close",children:"×"})]})]}),e.jsx("div",{className:K.content,children:N}),z&&e.jsx("div",{className:K.footer,children:z})]})}const sh="styles-module__gaugeContainer__BnFBJ",th="styles-module__svg__IOyJ8",lh="styles-module__animatedPath__MmF1n",nh="styles-module__gaugeAnimation__Hxuof",oh="styles-module__centerText__-aFc6",ah="styles-module__value__f21LN",_h="styles-module__unit__f4531",ch="styles-module__label__3mWKl",rh="styles-module__minMaxLabels__Zc16l",dh="styles-module__minLabel__gGD9N",ih="styles-module__maxLabel__tNNbn",uh="styles-module__sm__5ZJIU",mh="styles-module__md__ZNSR1",ph="styles-module__lg__BS4ab",yh="styles-module__xl__Qeyec",ie={gaugeContainer:sh,svg:th,animatedPath:lh,gaugeAnimation:nh,centerText:oh,value:ah,unit:_h,label:ch,minMaxLabels:rh,minLabel:dh,maxLabel:ih,sm:uh,md:mh,lg:ph,xl:yh};function hh({value:s,min:t=0,max:n=100,size:l="md",variant:a="default",thickness:o=12,label:_,showValue:c=!0,valueFormatter:i,showMinMax:r=!1,startAngle:d=-135,endAngle:u=135,animate:x=!0,className:f="",unit:b=""}){const m=Math.max(t,Math.min(n,s)),N=(m-t)/(n-t)*100,j=50-o/2,h=2*Math.PI*j,S=d*Math.PI/180,z=u*Math.PI/180,$=z-S,C=S+$*N/100,T=50+j*Math.sin(S),I=50-j*Math.cos(S),A=50+j*Math.sin(z),R=50-j*Math.cos(z),W=50+j*Math.sin(C),P=50-j*Math.cos(C),y=Math.abs(u-d)>180?1:0,v=N/100*Math.abs(u-d)>180?1:0,k=`M ${T} ${I} A ${j} ${j} 0 ${y} 1 ${A} ${R}`,B=N>0?`M ${T} ${I} A ${j} ${j} 0 ${v} 1 ${W} ${P}`:"",q=i?i(m):m.toFixed(0),E=[ie.gaugeContainer,ie[l],f].filter(Boolean).join(" "),w={default:"rgba(99, 102, 241, 0.8)",success:"rgba(34, 197, 94, 0.8)",warning:"rgba(251, 191, 36, 0.8)",error:"rgba(239, 68, 68, 0.8)",info:"rgba(59, 130, 246, 0.8)"};return e.jsxs("div",{className:E,children:[e.jsxs("svg",{className:ie.svg,viewBox:"0 0 100 100",children:[e.jsx("path",{d:k,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o,strokeLinecap:"round"}),N>0&&e.jsx("path",{d:B,fill:"none",stroke:w[a],strokeWidth:o,strokeLinecap:"round",className:x?ie.animatedPath:"",style:{strokeDasharray:h,strokeDashoffset:h*(1-N/100)}}),e.jsxs("g",{className:ie.centerText,children:[c&&e.jsxs("text",{x:"50",y:_?"45":"52",className:ie.value,children:[q,b&&e.jsx("tspan",{className:ie.unit,children:b})]}),_&&e.jsx("text",{x:"50",y:c?"60":"52",className:ie.label,children:_})]})]}),r&&e.jsxs("div",{className:ie.minMaxLabels,children:[e.jsx("span",{className:ie.minLabel,children:t}),e.jsx("span",{className:ie.maxLabel,children:n})]})]})}const gh="styles-module__colorPickerContainer__GcH66",fh="styles-module__label__t8ugX",xh="styles-module__inputWrapper__DD6E-",vh="styles-module__colorButton__gbskz",bh="styles-module__disabled__f-loV",$h="styles-module__colorPreview__toNQY",jh="styles-module__colorInput__LWEMn",Nh="styles-module__popover__x3a-e",wh="styles-module__pickerContent__2W72c",Sh="styles-module__nativeColorPicker__rPI-9",kh="styles-module__presets__IuFHV",Ch="styles-module__quickColors__YOCtI",Lh="styles-module__presetsLabel__2bK2r",Ih="styles-module__quickColorsLabel__jiYjL",Mh="styles-module__presetsGrid__VDTHM",zh="styles-module__presetButton__5wc-z",Dh="styles-module__active__SqIPE",Th="styles-module__quickColorsGrid__9ZX0W",Wh="styles-module__quickColorButton__2FpSv",Bh="styles-module__helperText__AqKTN",Eh="styles-module__errorText__cardI",Y={colorPickerContainer:gh,label:fh,inputWrapper:xh,colorButton:vh,disabled:bh,colorPreview:$h,colorInput:jh,popover:Nh,pickerContent:wh,nativeColorPicker:Sh,presets:kh,quickColors:Ch,presetsLabel:Lh,quickColorsLabel:Ih,presetsGrid:Mh,presetButton:zh,active:Dh,quickColorsGrid:Th,quickColorButton:Wh,helperText:Bh,errorText:Eh},Rh=s=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},Xh=(s,t,n)=>{s/=255,t/=255,n/=255;const l=Math.max(s,t,n),a=Math.min(s,t,n);let o=0,_=0;const c=(l+a)/2;if(l!==a){const i=l-a;switch(_=c>.5?i/(2-l-a):i/(l+a),l){case s:o=((t-n)/i+(t<n?6:0))/6;break;case t:o=((n-s)/i+2)/6;break;case n:o=((s-t)/i+4)/6;break}}return{h:Math.round(o*360),s:Math.round(_*100),l:Math.round(c*100)}};function Gh({value:s,defaultValue:t="#6366f1",onChange:n,format:l="hex",label:a,disabled:o=!1,showPresets:_=!0,presets:c=["#ef4444","#f97316","#f59e0b","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#ec4899"],showAlpha:i=!1,className:r="",helperText:d,error:u}){const[x,f]=p.useState(t),[b,m]=p.useState(!1),N=p.useRef(null),j=s!==void 0?s:x;p.useEffect(()=>{const $=C=>{N.current&&!N.current.contains(C.target)&&m(!1)};return b&&document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[b]);const h=$=>{s===void 0&&f($),n?.($)},S=$=>{const C=Rh($);if(!C)return $;switch(l){case"rgb":return`rgb(${C.r}, ${C.g}, ${C.b})`;case"hsl":const T=Xh(C.r,C.g,C.b);return`hsl(${T.h}, ${T.s}%, ${T.l}%)`;default:return $}},z=[Y.colorPickerContainer,r].filter(Boolean).join(" ");return e.jsxs("div",{className:z,children:[a&&e.jsx("label",{className:Y.label,children:a}),e.jsxs("div",{className:Y.inputWrapper,ref:N,children:[e.jsx("button",{type:"button",className:`${Y.colorButton} ${o?Y.disabled:""}`,onClick:()=>!o&&m(!b),disabled:o,style:{backgroundColor:j},"aria-label":"Select color",children:e.jsx("span",{className:Y.colorPreview,style:{backgroundColor:j}})}),e.jsx("input",{type:"text",className:Y.colorInput,value:S(j),onChange:$=>h($.target.value),disabled:o,placeholder:"#000000"}),b&&!o&&e.jsx("div",{className:Y.popover,children:e.jsxs("div",{className:Y.pickerContent,children:[e.jsx("input",{type:"color",className:Y.nativeColorPicker,value:j,onChange:$=>h($.target.value)}),_&&e.jsxs("div",{className:Y.presets,children:[e.jsx("div",{className:Y.presetsLabel,children:"Presets"}),e.jsx("div",{className:Y.presetsGrid,children:c.map($=>e.jsx("button",{type:"button",className:`${Y.presetButton} ${$===j?Y.active:""}`,style:{backgroundColor:$},onClick:()=>h($),"aria-label":`Select ${$}`},$))})]}),e.jsxs("div",{className:Y.quickColors,children:[e.jsx("div",{className:Y.quickColorsLabel,children:"Quick Colors"}),e.jsxs("div",{className:Y.quickColorsGrid,children:[e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#000000"},onClick:()=>h("#000000")}),e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#ffffff"},onClick:()=>h("#ffffff")}),e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#808080"},onClick:()=>h("#808080")})]})]})]})})]}),(u||d)&&e.jsx("span",{className:`${Y.helperText} ${u?Y.errorText:""}`,children:u||d})]})}const Ah="styles-module__contextMenu__GRBVO",Vh="styles-module__menuItem__RSaTZ",Ph="styles-module__disabled__bw0t-",Fh="styles-module__danger__KAIXk",Yh="styles-module__menuItemContent__-bnOm",Oh="styles-module__icon__WnkZL",qh="styles-module__label__HqC1u",Hh="styles-module__menuItemRight__NVcQN",Kh="styles-module__shortcut__4Ry6D",Zh="styles-module__submenuIndicator__glhiH",Uh="styles-module__separator__VcMO9",Jh="styles-module__submenu__HTiQG",ae={contextMenu:Ah,menuItem:Vh,disabled:Ph,danger:Fh,menuItemContent:Yh,icon:Oh,label:qh,menuItemRight:Hh,shortcut:Kh,submenuIndicator:Zh,separator:Uh,submenu:Jh};function Qh({items:s,children:t,className:n="",disabled:l=!1}){const[a,o]=p.useState(!1),[_,c]=p.useState({x:0,y:0}),[i,r]=p.useState({}),d=p.useRef(null),u=p.useRef(null),x=h=>{if(l)return;h.preventDefault(),h.stopPropagation();const S=h.clientX,z=h.clientY,$=240,C=s.length*40+16,T=window.innerWidth,I=window.innerHeight,A=S+$>T?T-$-10:S,R=z+C>I?I-C-10:z;c({x:A,y:R}),o(!0)},f=h=>{d.current&&!d.current.contains(h.target)&&u.current&&!u.current.contains(h.target)&&(o(!1),r({}))};p.useEffect(()=>{if(a)return document.addEventListener("mousedown",f),document.addEventListener("contextmenu",f),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("contextmenu",f)}},[a]);const b=h=>{h.disabled||(h.submenu?r(S=>({...S,[h.id]:!S[h.id]})):(h.onClick?.(),o(!1),r({})))},m=h=>{r(S=>({...S,[h]:!0}))},N=h=>{r(S=>({...S,[h]:!1}))},j=(h,S=0)=>{const z=h.submenu&&h.submenu.length>0,$=i[h.id];return e.jsxs(p.Fragment,{children:[e.jsxs("div",{className:`${ae.menuItem} ${h.disabled?ae.disabled:""} ${h.danger?ae.danger:""}`,onClick:()=>b(h),onMouseEnter:()=>z&&m(h.id),onMouseLeave:()=>z&&N(h.id),style:{paddingLeft:`${.75+S*.5}rem`},children:[e.jsxs("div",{className:ae.menuItemContent,children:[h.icon&&e.jsx("span",{className:ae.icon,children:h.icon}),e.jsx("span",{className:ae.label,children:h.label})]}),e.jsxs("div",{className:ae.menuItemRight,children:[h.shortcut&&e.jsx("span",{className:ae.shortcut,children:h.shortcut}),z&&e.jsx("span",{className:ae.submenuIndicator,children:"›"})]}),z&&$&&e.jsx("div",{className:ae.submenu,children:h.submenu.map(C=>j(C,S+1))})]}),h.separator&&e.jsx("div",{className:ae.separator})]},h.id)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:u,onContextMenu:x,className:n,style:{display:"inline-block"},children:t}),a&&e.jsx("div",{ref:d,className:ae.contextMenu,style:{left:`${_.x}px`,top:`${_.y}px`},children:s.map(h=>j(h))})]})}const eg="styles-module__dataList__0oRGD",sg="styles-module__item__eOSeD",tg="styles-module__highlight__DdCec",lg="styles-module__horizontal__GB4WY",ng="styles-module__label__75f3b",og="styles-module__value__aOT7v",ag="styles-module__vertical__H42DV",_g="styles-module__bold__mfZsI",cg="styles-module__icon__EoISr",rg="styles-module__labelText__ca0Gf",dg="styles-module__helpText__CW7oi",ig="styles-module__valueContent__NlivI",ug="styles-module__copyButton__pQctE",mg="styles-module__dividers__uU1uU",pg="styles-module__striped__7ArH9",yg="styles-module__sm__J9JEm",hg="styles-module__md__stc8l",gg="styles-module__lg__iKJsr",J={dataList:eg,item:sg,highlight:tg,horizontal:lg,label:ng,value:og,vertical:ag,bold:_g,icon:cg,labelText:rg,helpText:dg,valueContent:ig,copyButton:ug,dividers:mg,striped:pg,sm:yg,md:hg,lg:gg};function fg({items:s,orientation:t="horizontal",size:n="md",dividers:l=!0,boldLabels:a=!0,className:o="",labelWidth:_,striped:c=!1,onCopy:i}){const r=async d=>{if(!(!d.copyable||typeof d.value!="string"))try{await navigator.clipboard.writeText(d.value),i?.(d)}catch(u){console.error("Failed to copy:",u)}};return e.jsx("dl",{className:`${J.dataList} ${J[t]} ${J[n]} ${l?J.dividers:""} ${c?J.striped:""} ${o}`,style:{"--label-width":_},children:s.map((d,u)=>e.jsxs("div",{className:`${J.item} ${d.highlight?J.highlight:""} ${d.className||""}`,children:[e.jsxs("dt",{className:`${J.label} ${a?J.bold:""}`,children:[d.icon&&e.jsx("span",{className:J.icon,children:d.icon}),e.jsxs("span",{className:J.labelText,children:[d.label,d.helpText&&e.jsx("span",{className:J.helpText,title:d.helpText,children:"?"})]})]}),e.jsxs("dd",{className:J.value,children:[e.jsx("span",{className:J.valueContent,children:d.value}),d.copyable&&e.jsx("button",{type:"button",className:J.copyButton,onClick:()=>r(d),"aria-label":"Copy value",title:"Copy to clipboard",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.5 2.5h-2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2m-5-8h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},d.id))})}const xg="styles-module__statCard__oYt00",vg="styles-module__bordered__A56Xz",bg="styles-module__clickable__mMZBY",$g="styles-module__header__IYBwN",jg="styles-module__labelContainer__mSkYw",Ng="styles-module__icon__-4Vf1",wg="styles-module__label__xxYm9",Sg="styles-module__content__RE4Xm",kg="styles-module__valueContainer__o1jtt",Cg="styles-module__value__ZjSG8",Lg="styles-module__prefix__jaOdQ",Ig="styles-module__suffix__9g-Zt",Mg="styles-module__description__DOrYb",zg="styles-module__changeContainer__p4K9m",Dg="styles-module__trendIcon__8hzJD",Tg="styles-module__trend-up__EkKSW",Wg="styles-module__trend-down__PAAY-",Bg="styles-module__trend-neutral__1OaEM",Eg="styles-module__footer__y26Lt",Rg="styles-module__loading__q9k-W",Xg="styles-module__loadingSkeleton__eMNrK",Gg="styles-module__skeletonValue__Pio1n",Ag="styles-module__shimmer__OH-3R",Vg="styles-module__skeletonDescription__Qws61",Pg="styles-module__sm__t0NLs",Fg="styles-module__md__f-ZAw",Yg="styles-module__lg__o7Q4y",Og="styles-module__primary__Kp-sj",qg="styles-module__success__Q5jxs",Hg="styles-module__warning__l8Nwy",Kg="styles-module__error__tcxHs",Zg="styles-module__info__cF-x1",X={statCard:xg,bordered:vg,clickable:bg,header:$g,labelContainer:jg,icon:Ng,label:wg,content:Sg,valueContainer:kg,value:Cg,prefix:Lg,suffix:Ig,description:Mg,changeContainer:zg,trendIcon:Dg,"trend-up":"styles-module__trend-up__EkKSW",trendUp:Tg,"trend-down":"styles-module__trend-down__PAAY-",trendDown:Wg,"trend-neutral":"styles-module__trend-neutral__1OaEM",trendNeutral:Bg,footer:Eg,loading:Rg,loadingSkeleton:Xg,skeletonValue:Gg,shimmer:Ag,skeletonDescription:Vg,sm:Pg,md:Fg,lg:Yg,default:"styles-module__default__AaRSX",primary:Og,success:qg,warning:Hg,error:Kg,info:Zg};function Ug({value:s,label:t,icon:n,variant:l="default",size:a="md",change:o,trend:_,description:c,footer:i,loading:r=!1,className:d="",onClick:u,bordered:x=!1,prefix:f,suffix:b}){const m=!!u,N=()=>r?e.jsx("div",{className:X.loadingSkeleton,children:e.jsx("div",{className:X.skeletonValue})}):e.jsxs("div",{className:X.valueContainer,children:[f&&e.jsx("span",{className:X.prefix,children:f}),e.jsx("span",{className:X.value,children:s}),b&&e.jsx("span",{className:X.suffix,children:b})]}),j=()=>{if(!o&&!_)return null;const h=_?X[`trend-${_}`]:o?.startsWith("+")||o?.startsWith("↑")?X["trend-up"]:o?.startsWith("-")||o?.startsWith("↓")?X["trend-down"]:X["trend-neutral"];return e.jsxs("div",{className:`${X.changeContainer} ${h}`,children:[_==="up"&&!o?.includes("↑")&&!o?.includes("▲")&&e.jsx("span",{className:X.trendIcon,children:"↑"}),_==="down"&&!o?.includes("↓")&&!o?.includes("▼")&&e.jsx("span",{className:X.trendIcon,children:"↓"}),_==="neutral"&&!o?.includes("→")&&e.jsx("span",{className:X.trendIcon,children:"→"}),o&&e.jsx("span",{className:X.change,children:o})]})};return e.jsxs("div",{className:`${X.statCard} ${X[l]} ${X[a]} ${m?X.clickable:""} ${x?X.bordered:""} ${r?X.loading:""} ${d}`,onClick:u,role:m?"button":void 0,tabIndex:m?0:void 0,onKeyDown:m?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),u?.())}:void 0,children:[e.jsxs("div",{className:X.header,children:[e.jsxs("div",{className:X.labelContainer,children:[n&&e.jsx("span",{className:X.icon,children:n}),e.jsx("span",{className:X.label,children:t})]}),j()]}),e.jsxs("div",{className:X.content,children:[N(),c&&!r&&e.jsx("p",{className:X.description,children:c}),r&&c&&e.jsx("div",{className:X.loadingSkeleton,children:e.jsx("div",{className:X.skeletonDescription})})]}),i&&!r&&e.jsx("div",{className:X.footer,children:i})]})}const Jg="styles-module__split__10amd",Qg="styles-module__horizontal__nWMIm",ef="styles-module__vertical__dHG5L",sf="styles-module__pane__eLr0i",tf="styles-module__gutter__bzVSj",lf="styles-module__gutterHandle__laNCM",nf="styles-module__dragging__GRmLp",of="styles-module__disabled__-Lei8",Me={split:Jg,horizontal:Qg,vertical:ef,pane:sf,gutter:tf,gutterHandle:lf,dragging:nf,disabled:of};function af({direction:s="horizontal",initialSize:t=50,minSize:n=100,maxSize:l,children:a,onResize:o,className:_="",disabled:c=!1,snapPositions:i=[],snapThreshold:r=20,gutterSize:d=8}){const[u,x]=p.useState(t),[f,b]=p.useState(!1),m=p.useRef(null),N=p.useRef(0),j=p.useRef(0),h=s==="horizontal",S=W=>{c||(W.preventDefault(),b(!0),N.current=h?W.clientX:W.clientY,j.current=u)},z=p.useCallback(W=>{if(!f||!m.current)return;const y=m.current.getBoundingClientRect(),v=h?y.width:y.height,k=h?W.clientX:W.clientY;h?y.left:y.top;const q=(k-N.current)/v*100;let E=j.current+q;const w=n/v*100;let g=100-w;if(l&&(g=Math.min(g,l/v*100)),E=Math.max(w,Math.min(g,E)),i.length>0)for(const L of i){const fe=L/100*v,le=E/100*v;if(Math.abs(le-fe)<r){E=L;break}}x(E),o?.(E)},[f,h,n,l,i,r,o]),$=p.useCallback(()=>{f&&b(!1)},[f]);p.useEffect(()=>{if(f)return document.addEventListener("mousemove",z),document.addEventListener("mouseup",$),document.body.style.userSelect="none",document.body.style.cursor=h?"col-resize":"row-resize",()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",$),document.body.style.userSelect="",document.body.style.cursor=""}},[f,z,$,h]);const C=W=>{if(c)return;W.preventDefault(),b(!0);const P=W.touches[0];N.current=h?P.clientX:P.clientY,j.current=u},T=p.useCallback(W=>{if(!f||!m.current)return;const P=W.touches[0],v=m.current.getBoundingClientRect(),k=h?v.width:v.height,E=((h?P.clientX:P.clientY)-N.current)/k*100;let w=j.current+E;const g=n/k*100;let L=100-g;if(l&&(L=Math.min(L,l/k*100)),w=Math.max(g,Math.min(L,w)),i.length>0)for(const fe of i){const le=fe/100*k,Be=w/100*k;if(Math.abs(Be-le)<r){w=fe;break}}x(w),o?.(w)},[f,h,n,l,i,r,o]),I=p.useCallback(()=>{f&&b(!1)},[f]);p.useEffect(()=>{if(f)return document.addEventListener("touchmove",T),document.addEventListener("touchend",I),()=>{document.removeEventListener("touchmove",T),document.removeEventListener("touchend",I)}},[f,T,I]);const[A,R]=a;return e.jsxs("div",{ref:m,className:`${Me.split} ${Me[s]} ${f?Me.dragging:""} ${c?Me.disabled:""} ${_}`,children:[e.jsx("div",{className:Me.pane,style:{[h?"width":"height"]:`${u}%`},children:A}),e.jsx("div",{className:Me.gutter,style:{[h?"width":"height"]:`${d}px`},onMouseDown:S,onTouchStart:C,role:"separator","aria-orientation":s,"aria-valuenow":u,"aria-valuemin":n,"aria-valuemax":l||100,children:e.jsx("div",{className:Me.gutterHandle})}),e.jsx("div",{className:Me.pane,style:{flex:1},children:R})]})}const _f="styles-module__imageGallery__1ewHX",cf="styles-module__carouselContainer__CELQo",rf="styles-module__carouselMain__228vS",df="styles-module__carouselTrack__KssOC",uf="styles-module__carouselSlide__pjIfk",mf="styles-module__carouselImage__QcK-1",pf="styles-module__sm__oyagg",yf="styles-module__md__fP0C0",hf="styles-module__lg__yaqEo",gf="styles-module__arrow__fKqP7",ff="styles-module__arrowLeft__KpeXV",xf="styles-module__arrowRight__K9tqV",vf="styles-module__indicators__BuRqL",bf="styles-module__indicator__W0UZw",$f="styles-module__active__rCFls",jf="styles-module__thumbnails__rbSf8",Nf="styles-module__thumbnail__uw-GG",wf="styles-module__caption__WXDtk",Sf="styles-module__grid__Godk8",kf="styles-module__gridItem__R13Ho",Cf="styles-module__gridOverlay__2Y-3Z",Lf="styles-module__gridTitle__9Q2p3",If="styles-module__gridCaption__mpcNh",Mf="styles-module__masonry__tNDHq",zf="styles-module__masonryItem__22ZfL",Df="styles-module__masonryOverlay__nQ91c",Tf="styles-module__masonryTitle__WhvJr",Wf="styles-module__masonryCaption__HP0Zk",Bf="styles-module__lightbox__DLFIG",Ef="styles-module__fadeIn__DWqo2",Rf="styles-module__lightboxContent__45Wxl",Xf="styles-module__zoomIn__CIB6-",Gf="styles-module__lightboxClose__9oi0c",Af="styles-module__lightboxArrow__f6Qhq",Vf="styles-module__lightboxArrowLeft__qHu5S",Pf="styles-module__lightboxArrowRight__4wu-Y",Ff="styles-module__lightboxCaption__gVJhg",Yf="styles-module__lightboxTitle__M-1gH",Of="styles-module__lightboxCounter__mpIt8",D={imageGallery:_f,carouselContainer:cf,carouselMain:rf,carouselTrack:df,carouselSlide:uf,carouselImage:mf,sm:pf,md:yf,lg:hf,arrow:gf,arrowLeft:ff,arrowRight:xf,indicators:vf,indicator:bf,active:$f,thumbnails:jf,thumbnail:Nf,caption:wf,grid:Sf,gridItem:kf,gridOverlay:Cf,gridTitle:Lf,gridCaption:If,masonry:Mf,masonryItem:zf,masonryOverlay:Df,masonryTitle:Tf,masonryCaption:Wf,lightbox:Bf,fadeIn:Ef,lightboxContent:Rf,zoomIn:Xf,lightboxClose:Gf,lightboxArrow:Af,lightboxArrowLeft:Vf,lightboxArrowRight:Pf,lightboxCaption:Ff,lightboxTitle:Yf,lightboxCounter:Of};function qf({images:s,variant:t="carousel",size:n="md",initialIndex:l=0,showThumbnails:a=!1,showCaptions:o=!0,autoPlay:_=0,columns:c=3,gap:i=16,lightbox:r=!0,className:d="",onImageClick:u,onIndexChange:x,showArrows:f=!0,showIndicators:b=!0,infinite:m=!0}){const[N,j]=p.useState(l),[h,S]=p.useState(!1),[z,$]=p.useState(0),[C,T]=p.useState(!1),I=p.useRef(),A=p.useCallback(()=>{C||(T(!0),j(g=>{const L=g===0?m?s.length-1:0:g-1;return x?.(L),L}),setTimeout(()=>T(!1),300))},[s.length,m,x,C]),R=p.useCallback(()=>{C||(T(!0),j(g=>{const L=g===s.length-1?m?0:s.length-1:g+1;return x?.(L),L}),setTimeout(()=>T(!1),300))},[s.length,m,x,C]),W=(g,L)=>{u?.(g,L),r&&($(L),S(!0))},P=g=>{j(g),x?.(g)},y=()=>{S(!1)},v=()=>{$(g=>g===0?s.length-1:g-1)},k=()=>{$(g=>g===s.length-1?0:g+1)};p.useEffect(()=>{if(t==="carousel"&&_>0)return I.current=setInterval(()=>{R()},_),()=>{I.current&&clearInterval(I.current)}},[t,_,R]),p.useEffect(()=>{const g=L=>{h?(L.key==="Escape"&&y(),L.key==="ArrowLeft"&&v(),L.key==="ArrowRight"&&k()):t==="carousel"&&(L.key==="ArrowLeft"&&A(),L.key==="ArrowRight"&&R())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[h,t,A,R]);const B=()=>e.jsxs("div",{className:D.carouselContainer,children:[e.jsxs("div",{className:D.carouselMain,children:[e.jsx("div",{className:D.carouselTrack,style:{transform:`translateX(-${N*100}%)`},children:s.map((g,L)=>e.jsxs("div",{className:D.carouselSlide,onClick:()=>W(g,L),children:[e.jsx("img",{src:g.src,alt:g.alt,className:D.carouselImage}),o&&g.caption&&e.jsx("div",{className:D.caption,children:g.caption})]},g.id))}),f&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${D.arrow} ${D.arrowLeft}`,onClick:A,"aria-label":"Previous image",disabled:!m&&N===0,children:"‹"}),e.jsx("button",{className:`${D.arrow} ${D.arrowRight}`,onClick:R,"aria-label":"Next image",disabled:!m&&N===s.length-1,children:"›"})]})]}),b&&e.jsx("div",{className:D.indicators,children:s.map((g,L)=>e.jsx("button",{className:`${D.indicator} ${L===N?D.active:""}`,onClick:()=>{j(L),x?.(L)},"aria-label":`Go to image ${L+1}`},L))}),a&&e.jsx("div",{className:D.thumbnails,children:s.map((g,L)=>e.jsx("button",{className:`${D.thumbnail} ${L===N?D.active:""}`,onClick:()=>P(L),"aria-label":`Select image ${L+1}`,children:e.jsx("img",{src:g.thumbnail||g.src,alt:g.alt})},g.id))})]}),q=()=>e.jsx("div",{className:D.grid,style:{gridTemplateColumns:`repeat(${c}, 1fr)`,gap:`${i}px`},children:s.map((g,L)=>e.jsxs("div",{className:D.gridItem,onClick:()=>W(g,L),children:[e.jsx("img",{src:g.thumbnail||g.src,alt:g.alt}),o&&(g.caption||g.title)&&e.jsxs("div",{className:D.gridOverlay,children:[g.title&&e.jsx("div",{className:D.gridTitle,children:g.title}),g.caption&&e.jsx("div",{className:D.gridCaption,children:g.caption})]})]},g.id))}),E=()=>e.jsx("div",{className:D.masonry,style:{columnCount:c,columnGap:`${i}px`},children:s.map((g,L)=>e.jsxs("div",{className:D.masonryItem,style:{marginBottom:`${i}px`},onClick:()=>W(g,L),children:[e.jsx("img",{src:g.thumbnail||g.src,alt:g.alt}),o&&(g.caption||g.title)&&e.jsxs("div",{className:D.masonryOverlay,children:[g.title&&e.jsx("div",{className:D.masonryTitle,children:g.title}),g.caption&&e.jsx("div",{className:D.masonryCaption,children:g.caption})]})]},g.id))}),w=()=>{if(!h)return null;const g=s[z];return e.jsxs("div",{className:D.lightbox,onClick:y,children:[e.jsx("button",{className:D.lightboxClose,onClick:y,"aria-label":"Close lightbox",children:"×"}),e.jsx("button",{className:`${D.lightboxArrow} ${D.lightboxArrowLeft}`,onClick:L=>{L.stopPropagation(),v()},"aria-label":"Previous image",children:"‹"}),e.jsxs("div",{className:D.lightboxContent,onClick:L=>L.stopPropagation(),children:[e.jsx("img",{src:g.src,alt:g.alt}),(g.caption||g.title)&&e.jsxs("div",{className:D.lightboxCaption,children:[g.title&&e.jsx("div",{className:D.lightboxTitle,children:g.title}),g.caption&&e.jsx("div",{children:g.caption})]})]}),e.jsx("button",{className:`${D.lightboxArrow} ${D.lightboxArrowRight}`,onClick:L=>{L.stopPropagation(),k()},"aria-label":"Next image",children:"›"}),e.jsxs("div",{className:D.lightboxCounter,children:[z+1," / ",s.length]})]})};return e.jsxs("div",{className:`${D.imageGallery} ${D[t]} ${D[n]} ${d}`,children:[t==="carousel"&&B(),t==="grid"&&q(),t==="masonry"&&E(),w()]})}const Hf="styles-module__themeToggle__6zyVl",Kf="styles-module__iconContainer__-mq02",Zf="styles-module__icon__yzZOS",Uf="styles-module__sun__wk-Eu",Jf="styles-module__moon__OtQ8C",Qf="styles-module__light__WvEIx",ex="styles-module__dark__zXrhJ",ze={themeToggle:Hf,iconContainer:Kf,icon:Zf,sun:Uf,moon:Jf,light:Qf,dark:ex};function sx({defaultTheme:s="dark",onThemeChange:t,className:n="",...l}){const[a,o]=p.useState(()=>typeof window>"u"?s:localStorage.getItem("theme")||s);p.useEffect(()=>{a==="light"?document.body.classList.add("light-mode"):document.body.classList.remove("light-mode"),localStorage.setItem("theme",a),t?.(a)},[a,t]);const _=()=>{o(c=>c==="light"?"dark":"light")};return e.jsx("button",{type:"button",className:`${ze.themeToggle} ${n}`,onClick:_,"aria-label":"Toggle theme",...l,children:e.jsxs("div",{className:`${ze.iconContainer} ${a==="light"?ze.light:ze.dark}`,children:[e.jsxs("svg",{className:`${ze.icon} ${ze.sun}`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"}),e.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),e.jsx("svg",{className:`${ze.icon} ${ze.moon}`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})}const tx="styles-module__languageSelectContainer__Xulku",lx="styles-module__label__5r4RN",nx="styles-module__languageSelect__gSAkW",ox="styles-module__disabled__-9pxf",ax="styles-module__trigger__Icsh6",_x="styles-module__flag__n4YbG",cx="styles-module__open__c-08x",rx="styles-module__chevron__1XEr0",dx="styles-module__selectedText__tGBSV",ix="styles-module__languageName__EnqxF",ux="styles-module__nativeName__Qvg9C",mx="styles-module__dropdown__m7E55",px="styles-module__searchContainer__n15Bi",yx="styles-module__searchIcon__EKL9D",hx="styles-module__searchInput__mnR-j",gx="styles-module__list__KJT7D",fx="styles-module__option__zxNEH",xx="styles-module__highlighted__wHxl6",vx="styles-module__optionFlag__FbLUG",bx="styles-module__selected__s0-8V",$x="styles-module__optionName__NIJdm",jx="styles-module__optionText__3cC-4",Nx="styles-module__optionNative__4Poud",wx="styles-module__checkIcon__dOQGx",Sx="styles-module__noResults__uck5W",V={languageSelectContainer:tx,label:lx,languageSelect:nx,disabled:ox,trigger:ax,flag:_x,open:cx,chevron:rx,selectedText:dx,languageName:ix,nativeName:ux,dropdown:mx,searchContainer:px,searchIcon:yx,searchInput:hx,list:gx,option:fx,highlighted:xx,optionFlag:vx,selected:bx,optionName:$x,optionText:jx,optionNative:Nx,checkIcon:wx,noResults:Sx},kx=[{code:"en",name:"English",nativeName:"English",flag:"🇺🇸"},{code:"es",name:"Spanish",nativeName:"Español",flag:"🇪🇸"},{code:"fr",name:"French",nativeName:"Français",flag:"🇫🇷"},{code:"de",name:"German",nativeName:"Deutsch",flag:"🇩🇪"},{code:"it",name:"Italian",nativeName:"Italiano",flag:"🇮🇹"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"🇵🇹"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"🇷🇺"},{code:"ja",name:"Japanese",nativeName:"日本語",flag:"🇯🇵"},{code:"zh",name:"Chinese",nativeName:"中文",flag:"🇨🇳"},{code:"ko",name:"Korean",nativeName:"한국어",flag:"🇰🇷"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"🇸🇦"},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"🇮🇳"}];function Cx({languages:s=kx,defaultLanguage:t="en",onChange:n,disabled:l=!1,showSearch:a=!1,label:o,className:_="",...c}){const[i,r]=p.useState(!1),[d,u]=p.useState(()=>s.find($=>$.code===t)||s[0]),[x,f]=p.useState(""),[b,m]=p.useState(0),N=p.useRef(null),j=p.useRef(null),h=s.filter($=>$.name.toLowerCase().includes(x.toLowerCase())||$.nativeName.toLowerCase().includes(x.toLowerCase())||$.code.toLowerCase().includes(x.toLowerCase()));p.useEffect(()=>{const $=C=>{N.current&&!N.current.contains(C.target)&&(r(!1),f(""))};return i&&document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[i]),p.useEffect(()=>{i&&a&&j.current&&j.current.focus()},[i,a]);const S=$=>{u($),r(!1),f(""),n?.($)},z=$=>{if(!l)switch($.key){case"Enter":case" ":i?h[b]&&($.preventDefault(),S(h[b])):($.preventDefault(),r(!0));break;case"Escape":r(!1),f("");break;case"ArrowDown":$.preventDefault(),i?m(C=>C<h.length-1?C+1:0):r(!0);break;case"ArrowUp":$.preventDefault(),i&&m(C=>C>0?C-1:h.length-1);break}};return e.jsxs("div",{className:`${V.languageSelectContainer} ${_}`,ref:N,...c,children:[o&&e.jsx("label",{className:V.label,children:o}),e.jsxs("div",{className:`${V.languageSelect} ${l?V.disabled:""}`,children:[e.jsxs("button",{type:"button",className:`${V.trigger} ${i?V.open:""}`,onClick:()=>!l&&r(!i),onKeyDown:z,disabled:l,"aria-haspopup":"listbox","aria-expanded":i,children:[e.jsx("span",{className:V.flag,children:d.flag}),e.jsxs("span",{className:V.selectedText,children:[e.jsx("span",{className:V.languageName,children:d.name}),e.jsx("span",{className:V.nativeName,children:d.nativeName})]}),e.jsx("svg",{className:V.chevron,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),i&&e.jsxs("div",{className:V.dropdown,children:[a&&e.jsxs("div",{className:V.searchContainer,children:[e.jsx("svg",{className:V.searchIcon,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})}),e.jsx("input",{ref:j,type:"text",className:V.searchInput,placeholder:"Search languages...",value:x,onChange:$=>{f($.target.value),m(0)},onKeyDown:z})]}),e.jsx("ul",{className:V.list,role:"listbox",children:h.length>0?h.map(($,C)=>e.jsxs("li",{className:`${V.option} ${d.code===$.code?V.selected:""} ${C===b?V.highlighted:""}`,onClick:()=>S($),onMouseEnter:()=>m(C),role:"option","aria-selected":d.code===$.code,children:[e.jsx("span",{className:V.optionFlag,children:$.flag}),e.jsxs("span",{className:V.optionText,children:[e.jsx("span",{className:V.optionName,children:$.name}),e.jsx("span",{className:V.optionNative,children:$.nativeName})]}),d.code===$.code&&e.jsx("svg",{className:V.checkIcon,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]},$.code)):e.jsx("li",{className:V.noResults,children:"No languages found"})})]})]})]})}const Lx="styles-module__chatContainer__ny1TV",Ix="styles-module__messagesWrapper__RZiB3",Mx="styles-module__emptyState__hzFZj",zx="styles-module__emptyIcon__x39wy",Dx="styles-module__emptyText__lrl1o",Tx="styles-module__emptySubtext__SqnCZ",Wx="styles-module__messagesList__d-S-F",Bx="styles-module__messageGroup__tMBkW",Ex="styles-module__userMessage__9MGMu",Rx="styles-module__messageContent__dFgZ4",Xx="styles-module__messageBubble__9fJI4",Gx="styles-module__timestamp__a4uAo",Ax="styles-module__systemMessage__j8BLk",Vx="styles-module__avatarWrapper__u9sbM",Px="styles-module__avatar__UI0YW",Fx="styles-module__avatarPlaceholder__NVOuf",Yx="styles-module__userAvatar__5XxxX",Ox="styles-module__botAvatar__a-W8a",qx="styles-module__senderName__vOvEB",Hx="styles-module__typing__FSien",Kx="styles-module__messageText__w-MlW",Zx="styles-module__typingIndicator__VL6DD",Ux="styles-module__dot__cJEkH",Jx="styles-module__inputForm__l-juI",Qx="styles-module__inputWrapper__HSXpx",ev="styles-module__focused__GIWaK",sv="styles-module__input__AmkBF",tv="styles-module__sendButton__xy1bf",lv="styles-module__sendIcon__XEMIa",nv="styles-module__active__HG7ga",M={chatContainer:Lx,messagesWrapper:Ix,emptyState:Mx,emptyIcon:zx,emptyText:Dx,emptySubtext:Tx,messagesList:Wx,messageGroup:Bx,userMessage:Ex,messageContent:Rx,messageBubble:Xx,timestamp:Gx,systemMessage:Ax,avatarWrapper:Vx,avatar:Px,avatarPlaceholder:Fx,userAvatar:Yx,botAvatar:Ox,senderName:qx,typing:Hx,messageText:Kx,typingIndicator:Zx,dot:Ux,inputForm:Jx,inputWrapper:Qx,focused:ev,input:sv,sendButton:tv,sendIcon:lv,active:nv};function ov({messages:s,onSendMessage:t,placeholder:n="Type a message...",disabled:l=!1,showTimestamps:a=!1,showAvatars:o=!0,maxHeight:_="600px",typingIndicator:c=!1,userName:i="You",botName:r="Assistant",className:d="",...u}){const[x,f]=p.useState(""),[b,m]=p.useState(!1),N=p.useRef(null),j=p.useRef(null),h=()=>{N.current?.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{h()},[s]);const S=I=>{I.preventDefault(),x.trim()&&t&&!l&&(t(x.trim()),f(""),j.current&&(j.current.style.height="auto"))},z=I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),S(I))},$=I=>{f(I.target.value),I.target.style.height="auto",I.target.style.height=`${Math.min(I.target.scrollHeight,120)}px`},C=I=>I.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),T=I=>I.split(" ").map(A=>A[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{className:`${M.chatContainer} ${d}`,...u,children:[e.jsx("div",{className:M.messagesWrapper,style:{maxHeight:_},children:s.length===0?e.jsxs("div",{className:M.emptyState,children:[e.jsx("div",{className:M.emptyIcon,children:"💬"}),e.jsx("p",{className:M.emptyText,children:"No messages yet"}),e.jsx("p",{className:M.emptySubtext,children:"Start a conversation!"})]}):e.jsxs("div",{className:M.messagesList,children:[s.map((I,A)=>{const R=I.sender==="user",W=I.sender==="system",P=o&&!W,y=R?i:I.senderName||r;return e.jsxs("div",{className:`${M.messageGroup} ${R?M.userMessage:""} ${W?M.systemMessage:""}`,children:[P&&e.jsx("div",{className:M.avatarWrapper,children:I.avatar?e.jsx("img",{src:I.avatar,alt:y,className:M.avatar}):e.jsx("div",{className:`${M.avatarPlaceholder} ${R?M.userAvatar:M.botAvatar}`,children:T(y)})}),e.jsxs("div",{className:M.messageContent,children:[!W&&!R&&e.jsx("div",{className:M.senderName,children:y}),e.jsx("div",{className:`${M.messageBubble} ${I.isTyping?M.typing:""}`,children:I.isTyping?e.jsxs("div",{className:M.typingIndicator,children:[e.jsx("span",{className:M.dot}),e.jsx("span",{className:M.dot}),e.jsx("span",{className:M.dot})]}):e.jsx("p",{className:M.messageText,children:I.content})}),a&&!I.isTyping&&e.jsx("div",{className:M.timestamp,children:C(I.timestamp)})]})]},I.id)}),c&&e.jsxs("div",{className:`${M.messageGroup}`,children:[o&&e.jsx("div",{className:M.avatarWrapper,children:e.jsx("div",{className:`${M.avatarPlaceholder} ${M.botAvatar}`,children:T(r)})}),e.jsxs("div",{className:M.messageContent,children:[e.jsx("div",{className:M.senderName,children:r}),e.jsx("div",{className:`${M.messageBubble} ${M.typing}`,children:e.jsxs("div",{className:M.typingIndicator,children:[e.jsx("span",{className:M.dot}),e.jsx("span",{className:M.dot}),e.jsx("span",{className:M.dot})]})})]})]}),e.jsx("div",{ref:N})]})}),e.jsx("form",{onSubmit:S,className:M.inputForm,children:e.jsxs("div",{className:`${M.inputWrapper} ${b?M.focused:""}`,children:[e.jsx("textarea",{ref:j,className:M.input,value:x,onChange:$,onKeyDown:z,onFocus:()=>m(!0),onBlur:()=>m(!1),placeholder:n,disabled:l,rows:1}),e.jsx("button",{type:"submit",className:`${M.sendButton} ${x.trim()?M.active:""}`,disabled:!x.trim()||l,children:e.jsx("svg",{className:M.sendIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M22 2L11 13M22 2L15 22L11 13M22 2L2 9L11 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})}const av="styles-module__calendar__ksu3Z",_v="styles-module__header__UaHj3",cv="styles-module__navButton__279oK",rv="styles-module__monthYear__RKQOf",dv="styles-module__month__w3ai-",iv="styles-module__year__VN2vF",uv="styles-module__weekdays__U3vpO",mv="styles-module__weekday__g2nb6",pv="styles-module__days__XPYYB",yv="styles-module__week__5lMWI",hv="styles-module__weekNumber__Hgwi-",gv="styles-module__day__lj7zf",fv="styles-module__currentMonth__yCa9a",xv="styles-module__otherMonth__ppTX4",vv="styles-module__today__DSndt",bv="styles-module__dayNumber__ifIP9",$v="styles-module__selected__VqCiG",jv="styles-module__highlighted__QBnL-",Nv="styles-module__disabled__WJUmV",wv="styles-module__eventIndicators__SuOYU",Sv="styles-module__eventDot__1QFLK",kv="styles-module__eventPulse__1lkEF",Cv="styles-module__footer__rraAV",Lv="styles-module__todayButton__661G0",Iv="styles-module__minimal__5Zdyf",Mv="styles-module__modern__2J5kk",G={calendar:av,header:_v,navButton:cv,monthYear:rv,month:dv,year:iv,weekdays:uv,weekday:mv,days:pv,week:yv,weekNumber:hv,day:gv,currentMonth:fv,otherMonth:xv,today:vv,dayNumber:bv,selected:$v,highlighted:jv,disabled:Nv,eventIndicators:wv,eventDot:Sv,eventPulse:kv,footer:Cv,todayButton:Lv,minimal:Iv,modern:Mv},zv=["January","February","March","April","May","June","July","August","September","October","November","December"],os=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Dv({value:s,onChange:t,minDate:n,maxDate:l,events:a=[],highlightedDates:o=[],disabledDates:_=[],showWeekNumbers:c=!1,firstDayOfWeek:i=0,variant:r="default",className:d="",...u}){const[x,f]=p.useState(s||new Date),[b,m]=p.useState(s||null),[N,j]=p.useState(s||new Date),h=p.useMemo(()=>i===1?[...os.slice(1),os[0]]:os,[i]),S=(w,g)=>w.getDate()===g.getDate()&&w.getMonth()===g.getMonth()&&w.getFullYear()===g.getFullYear(),z=w=>n&&w<n||l&&w>l?!0:_.some(g=>S(w,g)),$=w=>o.some(g=>S(w,g)),C=w=>a.filter(g=>S(g.date,w)),T=(w,g)=>new Date(w,g+1,0).getDate(),I=(w,g)=>{const L=new Date(w,g,1).getDay();return i===1?L===0?6:L-1:L},A=w=>{const g=new Date(w.getFullYear(),0,1),L=(w.getTime()-g.getTime())/864e5;return Math.ceil((L+g.getDay()+1)/7)},R=p.useMemo(()=>{const w=N.getFullYear(),g=N.getMonth(),L=T(w,g),fe=I(w,g),le=[],Be=T(w,g-1);for(let Z=fe-1;Z>=0;Z--){const Je=g===0?11:g-1,Qe=g===0?w-1:w;le.push(new Date(Qe,Je,Be-Z))}for(let Z=1;Z<=L;Z++)le.push(new Date(w,g,Z));const Fe=42-le.length;for(let Z=1;Z<=Fe;Z++){const Je=g===11?0:g+1,Qe=g===11?w+1:w;le.push(new Date(Qe,Je,Z))}return le},[N,i]),W=()=>{j(new Date(N.getFullYear(),N.getMonth()-1))},P=()=>{j(new Date(N.getFullYear(),N.getMonth()+1))},y=w=>{z(w)||(m(w),t?.(w))},v=()=>{const w=new Date;j(w),m(w),t?.(w)},k=w=>S(w,new Date),B=w=>b&&S(w,b),q=w=>w.getMonth()===N.getMonth(),E=[];for(let w=0;w<R.length;w+=7)E.push(R.slice(w,w+7));return e.jsxs("div",{className:`${G.calendar} ${G[r]} ${d}`,...u,children:[e.jsxs("div",{className:G.header,children:[e.jsx("button",{type:"button",className:G.navButton,onClick:W,"aria-label":"Previous month",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsxs("div",{className:G.monthYear,children:[e.jsx("span",{className:G.month,children:zv[N.getMonth()]}),e.jsx("span",{className:G.year,children:N.getFullYear()})]}),e.jsx("button",{type:"button",className:G.navButton,onClick:P,"aria-label":"Next month",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:G.weekdays,children:[c&&e.jsx("div",{className:G.weekNumber,children:"Wk"}),h.map(w=>e.jsx("div",{className:G.weekday,children:w},w))]}),e.jsx("div",{className:G.days,children:E.map((w,g)=>e.jsxs("div",{className:G.week,children:[c&&w[0]&&e.jsx("div",{className:G.weekNumber,children:A(w[0])}),w.map((L,fe)=>{if(!L)return e.jsx("div",{className:G.day},fe);const le=C(L),Be=$(L),Fe=z(L);return e.jsxs("button",{type:"button",className:`${G.day} ${q(L)?G.currentMonth:G.otherMonth} ${k(L)?G.today:""} ${B(L)?G.selected:""} ${Be?G.highlighted:""} ${Fe?G.disabled:""}`,onClick:()=>y(L),disabled:Fe,"aria-label":L.toDateString(),children:[e.jsx("span",{className:G.dayNumber,children:L.getDate()}),le.length>0&&e.jsx("div",{className:G.eventIndicators,children:le.slice(0,3).map(Z=>e.jsx("span",{className:G.eventDot,style:{backgroundColor:Z.color||"#6366f1"},title:Z.title},Z.id))})]},fe)})]},g))}),e.jsx("div",{className:G.footer,children:e.jsx("button",{type:"button",className:G.todayButton,onClick:v,children:"Today"})})]})}exports.Accordion=ks;exports.Alert=Xs;exports.Audio=gs;exports.Avatar=Js;exports.Badge=rt;exports.Breadcrumbs=ft;exports.Button=Tt;exports.ButtonGroup=Xt;exports.Calendar=Dv;exports.Card=Ut;exports.Chat=ov;exports.Checkbox=nl;exports.ColorPicker=Gh;exports.Combobox=hl;exports.Container=tp;exports.ContextMenu=Qh;exports.DataList=fg;exports.Datagrid=kl;exports.DatePicker=Ml;exports.DateRangePicker=El;exports.Divider=Ol;exports.Dropdown=nn;exports.FilePicker=$n;exports.Gauge=hh;exports.Grid=is;exports.GridItem=us;exports.Header=Mn;exports.ImageGallery=qf;exports.Input=as;exports.Label=Jn;exports.LanguageSelect=Cx;exports.List=co;exports.Modal=jo;exports.Pagination=Co;exports.PinInput=gy;exports.ProgressBar=Po;exports.RadioButton=Ko;exports.RangeInput=na;exports.Rating=Iy;exports.RichSelect=Na;exports.Select=ds;exports.SidePanel=Ga;exports.Signpost=Ua;exports.Skeleton=We;exports.SkeletonCircle=ps;exports.SkeletonRectangle=ys;exports.SkeletonText=ms;exports.Spacer=yp;exports.Spinner=c_;exports.Split=af;exports.StackView=L_;exports.StatCard=Ug;exports.Stepper=F_;exports.Table=nc;exports.Tabs=hc;exports.TagInput=oy;exports.Textarea=_s;exports.ThemeToggle=sx;exports.Timeline=Kc;exports.ToastProvider=Wr;exports.ToggleSwitch=or;exports.Tooltip=yr;exports.TreeView=qr;exports.VerticalNav=yd;exports.Video=hs;exports.Window=eh;exports.useToast=Br;
13
+ `,role:"group",children:s})}const Vt="styles-module__card__0iVez",At="styles-module__hoverable__7-MZP",Pt="styles-module__clickable__WiARM",Ft="styles-module__imageWrapper__LlBXL",Ot="styles-module__image__5KApl",Ht="styles-module__content__-0XZZ",Yt="styles-module__header__WVGN7",qt="styles-module__title__-Th-m",Kt="styles-module__subtitle__VDwvc",Zt="styles-module__body__iaDKl",Ut="styles-module__footer__b10VS",re={card:Vt,hoverable:At,clickable:Pt,imageWrapper:Ft,image:Ot,content:Ht,header:Yt,title:qt,subtitle:Kt,body:Zt,footer:Ut};function Jt({children:s,title:t,subtitle:n,footer:l,image:a,hoverable:o=!1,className:c="",onClick:d}){const r=!!d;return e.jsxs("div",{className:`
14
+ ${re.card}
15
+ ${o?re.hoverable:""}
16
+ ${r?re.clickable:""}
17
+ ${c}
18
+ `,onClick:d,role:r?"button":void 0,tabIndex:r?0:void 0,children:[a&&e.jsx("div",{className:re.imageWrapper,children:e.jsx("img",{src:a,alt:t||"",className:re.image})}),e.jsxs("div",{className:re.content,children:[(t||n)&&e.jsxs("div",{className:re.header,children:[t&&e.jsx("h3",{className:re.title,children:t}),n&&e.jsx("p",{className:re.subtitle,children:n})]}),e.jsx("div",{className:re.body,children:s}),l&&e.jsx("div",{className:re.footer,children:l})]})]})}const Qt="styles-module__checkboxWrapper__5ECcg",el="styles-module__checkbox__AVGTi",sl="styles-module__checkmark__xfDiG",tl="styles-module__label__56KkR",ll="styles-module__checkIcon__B246P",nl="styles-module__indeterminateIcon__L9Kf-",Ve={checkboxWrapper:Qt,checkbox:el,checkmark:sl,label:tl,checkIcon:ll,indeterminateIcon:nl};function ol({label:s,indeterminate:t=!1,className:n="",...l}){const a=p.useRef(null);return p.useEffect(()=>{a.current&&(a.current.indeterminate=t)},[t]),e.jsxs("label",{className:`${Ve.checkboxWrapper} ${n}`,children:[e.jsx("input",{ref:a,type:"checkbox",className:Ve.checkbox,...l}),e.jsx("span",{className:Ve.checkmark,children:t?e.jsx("span",{className:Ve.indeterminateIcon,children:"−"}):e.jsx("span",{className:Ve.checkIcon,children:"✓"})}),s&&e.jsx("span",{className:Ve.label,children:s})]})}const al="styles-module__combobox__YH03u",cl="styles-module__inputWrapper__UsIYk",_l="styles-module__input__F-6BL",rl="styles-module__disabled__UR9gQ",dl="styles-module__arrow__LV12a",il="styles-module__open__-bJ28",ul="styles-module__menu__twpPT",ml="styles-module__option__v6IYz",pl="styles-module__optionDisabled__vOMRI",yl="styles-module__highlighted__pxy-X",hl="styles-module__noResults__-sgTv",de={combobox:al,inputWrapper:cl,input:_l,disabled:rl,arrow:dl,open:il,menu:ul,option:ml,optionDisabled:pl,highlighted:yl,noResults:hl};function gl({options:s,value:t,defaultValue:n="",onChange:l,placeholder:a="Select or type...",disabled:o=!1,className:c="",allowCustomValue:d=!1,filterFunction:r}){const[_,i]=p.useState(n),[m,v]=p.useState(!1),[h,$]=p.useState(-1),u=p.useRef(null),N=p.useRef(null),b=p.useRef(null),y=t!==void 0,w=y?t:_,x=r||((g,j)=>g.label.toLowerCase().includes(j.toLowerCase())),k=s.filter(g=>x(g,w));p.useEffect(()=>{const g=j=>{b.current&&!b.current.contains(j.target)&&v(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),p.useEffect(()=>{if(m&&h>=0&&N.current){const g=N.current.children[h];g&&g.scrollIntoView({block:"nearest"})}},[h,m]);const D=g=>{const j=g.target.value;y||i(j),l?.(j),v(!0),$(-1)},M=g=>{if(g.disabled)return;const j=g.value;y||i(g.label),l?.(j),v(!1),$(-1),u.current?.blur()},P=g=>{if(!o)switch(g.key){case"ArrowDown":g.preventDefault(),v(!0),$(j=>{const C=k.length-1;if(j>=C)return C;let E=j+1;for(;E<=C&&k[E].disabled;)E++;return E<=C?E:j});break;case"ArrowUp":g.preventDefault(),$(j=>{if(j<=0)return-1;let C=j-1;for(;C>=0&&k[C].disabled;)C--;return C>=0?C:-1});break;case"Enter":g.preventDefault(),m&&h>=0?M(k[h]):d&&(l?.(w),v(!1));break;case"Escape":g.preventDefault(),v(!1),$(-1),u.current?.blur();break;case"Tab":v(!1);break}},R=()=>{o||v(!0)},B=s.find(g=>g.value===w),O=B?B.label:w;return e.jsxs("div",{ref:b,className:`${de.combobox} ${c}`,children:[e.jsxs("div",{className:de.inputWrapper,children:[e.jsx("input",{ref:u,type:"text",className:`${de.input} ${o?de.disabled:""}`,value:O,onChange:D,onKeyDown:P,onFocus:R,placeholder:a,disabled:o,autoComplete:"off",role:"combobox","aria-expanded":m,"aria-autocomplete":"list","aria-controls":"combobox-listbox"}),e.jsx("span",{className:`${de.arrow} ${m?de.open:""}`,children:"▼"})]}),m&&k.length>0&&e.jsx("ul",{ref:N,id:"combobox-listbox",className:de.menu,role:"listbox",children:k.map((g,j)=>e.jsx("li",{className:`${de.option} ${h===j?de.highlighted:""} ${g.disabled?de.optionDisabled:""}`,onClick:()=>M(g),role:"option","aria-selected":g.value===w,"aria-disabled":g.disabled,children:g.label},g.value))}),m&&k.length===0&&e.jsx("div",{className:de.noResults,children:d?"Press Enter to use custom value":"No results found"})]})}const fl="styles-module__datagridWrapper__rcPKe",xl="styles-module__datagrid__2KTB3",bl="styles-module__thead__VLK3H",vl="styles-module__th__GVqEG",$l="styles-module__tbody__vIVcl",jl="styles-module__tr__Qn6CH",Nl="styles-module__td__UsBhW",wl="styles-module__hoverable__6H3Yy",kl="styles-module__clickable__acA9M",Sl="styles-module__striped__1a6NP",pe={datagridWrapper:fl,datagrid:xl,thead:bl,th:vl,tbody:$l,tr:jl,td:Nl,hoverable:wl,clickable:kl,striped:Sl};function Cl({columns:s,data:t,onRowClick:n,striped:l=!1,hoverable:a=!0,className:o=""}){return e.jsx("div",{className:`${pe.datagridWrapper} ${o}`,children:e.jsxs("table",{className:pe.datagrid,children:[e.jsx("thead",{className:pe.thead,children:e.jsx("tr",{children:s.map(c=>e.jsx("th",{className:pe.th,style:{width:c.width},children:c.header},c.key))})}),e.jsx("tbody",{className:pe.tbody,children:t.map((c,d)=>e.jsx("tr",{className:`
19
+ ${pe.tr}
20
+ ${l&&d%2===1?pe.striped:""}
21
+ ${a?pe.hoverable:""}
22
+ ${n?pe.clickable:""}
23
+ `,onClick:()=>n?.(c),children:s.map(r=>e.jsx("td",{className:pe.td,children:r.render?r.render(c[r.key],c):c[r.key]},r.key))},d))})]})})}const Ll="styles-module__calendar__ksu3Z",Il="styles-module__header__UaHj3",Ml="styles-module__navButton__279oK",zl="styles-module__monthYear__RKQOf",Dl="styles-module__month__w3ai-",Tl="styles-module__year__VN2vF",Bl="styles-module__weekdays__U3vpO",El="styles-module__weekday__g2nb6",Wl="styles-module__days__XPYYB",Rl="styles-module__week__5lMWI",Xl="styles-module__weekNumber__Hgwi-",Gl="styles-module__day__lj7zf",Vl="styles-module__currentMonth__yCa9a",Al="styles-module__otherMonth__ppTX4",Pl="styles-module__today__DSndt",Fl="styles-module__dayNumber__ifIP9",Ol="styles-module__selected__VqCiG",Hl="styles-module__highlighted__QBnL-",Yl="styles-module__disabled__WJUmV",ql="styles-module__eventIndicators__SuOYU",Kl="styles-module__eventDot__1QFLK",Zl="styles-module__eventPulse__1lkEF",Ul="styles-module__footer__rraAV",Jl="styles-module__todayButton__661G0",Ql="styles-module__minimal__5Zdyf",en="styles-module__modern__2J5kk",A={calendar:Ll,header:Il,navButton:Ml,monthYear:zl,month:Dl,year:Tl,weekdays:Bl,weekday:El,days:Wl,week:Rl,weekNumber:Xl,day:Gl,currentMonth:Vl,otherMonth:Al,today:Pl,dayNumber:Fl,selected:Ol,highlighted:Hl,disabled:Yl,eventIndicators:ql,eventDot:Kl,eventPulse:Zl,footer:Ul,todayButton:Jl,minimal:Ql,modern:en},sn=["January","February","March","April","May","June","July","August","September","October","November","December"],ls=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function as({value:s,onChange:t,minDate:n,maxDate:l,events:a=[],highlightedDates:o=[],disabledDates:c=[],showWeekNumbers:d=!1,firstDayOfWeek:r=0,variant:_="default",className:i="",...m}){const[v,h]=p.useState(s||new Date),[$,u]=p.useState(s||null),[N,b]=p.useState(s||new Date),y=p.useMemo(()=>r===1?[...ls.slice(1),ls[0]]:ls,[r]),w=(S,f)=>S.getDate()===f.getDate()&&S.getMonth()===f.getMonth()&&S.getFullYear()===f.getFullYear(),L=S=>n&&S<n||l&&S>l?!0:c.some(f=>w(S,f)),x=S=>o.some(f=>w(S,f)),k=S=>a.filter(f=>w(f.date,S)),D=(S,f)=>new Date(S,f+1,0).getDate(),M=(S,f)=>{const I=new Date(S,f,1).getDay();return r===1?I===0?6:I-1:I},P=S=>{const f=new Date(S.getFullYear(),0,1),I=(S.getTime()-f.getTime())/864e5;return Math.ceil((I+f.getDay()+1)/7)},R=p.useMemo(()=>{const S=N.getFullYear(),f=N.getMonth(),I=D(S,f),be=M(S,f),oe=[],Xe=D(S,f-1);for(let J=be-1;J>=0;J--){const es=f===0?11:f-1,ss=f===0?S-1:S;oe.push(new Date(ss,es,Xe-J))}for(let J=1;J<=I;J++)oe.push(new Date(S,f,J));const He=42-oe.length;for(let J=1;J<=He;J++){const es=f===11?0:f+1,ss=f===11?S+1:S;oe.push(new Date(ss,es,J))}return oe},[N,r]),B=()=>{b(new Date(N.getFullYear(),N.getMonth()-1))},O=()=>{b(new Date(N.getFullYear(),N.getMonth()+1))},g=S=>{L(S)||(u(S),t?.(S))},j=()=>{const S=new Date;b(S),u(S),t?.(S)},C=S=>w(S,new Date),E=S=>$&&w(S,$),K=S=>S.getMonth()===N.getMonth(),W=[];for(let S=0;S<R.length;S+=7)W.push(R.slice(S,S+7));return e.jsxs("div",{className:`${A.calendar} ${A[_]} ${i}`,...m,children:[e.jsxs("div",{className:A.header,children:[e.jsx("button",{type:"button",className:A.navButton,onClick:B,"aria-label":"Previous month",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsxs("div",{className:A.monthYear,children:[e.jsx("span",{className:A.month,children:sn[N.getMonth()]}),e.jsx("span",{className:A.year,children:N.getFullYear()})]}),e.jsx("button",{type:"button",className:A.navButton,onClick:O,"aria-label":"Next month",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:A.weekdays,children:[d&&e.jsx("div",{className:A.weekNumber,children:"Wk"}),y.map(S=>e.jsx("div",{className:A.weekday,children:S},S))]}),e.jsx("div",{className:A.days,children:W.map((S,f)=>e.jsxs("div",{className:A.week,children:[d&&S[0]&&e.jsx("div",{className:A.weekNumber,children:P(S[0])}),S.map((I,be)=>{if(!I)return e.jsx("div",{className:A.day},be);const oe=k(I),Xe=x(I),He=L(I);return e.jsxs("button",{type:"button",className:`${A.day} ${K(I)?A.currentMonth:A.otherMonth} ${C(I)?A.today:""} ${E(I)?A.selected:""} ${Xe?A.highlighted:""} ${He?A.disabled:""}`,onClick:()=>g(I),disabled:He,"aria-label":I.toDateString(),children:[e.jsx("span",{className:A.dayNumber,children:I.getDate()}),oe.length>0&&e.jsx("div",{className:A.eventIndicators,children:oe.slice(0,3).map(J=>e.jsx("span",{className:A.eventDot,style:{backgroundColor:J.color||"#6366f1"},title:J.title},J.id))})]},be)})]},f))}),e.jsx("div",{className:A.footer,children:e.jsx("button",{type:"button",className:A.todayButton,onClick:j,children:"Today"})})]})}const tn="styles-module__datePicker__uLxOg",ln="styles-module__input__0m5L3",nn="styles-module__disabled__T10FG",on="styles-module__value__6l7A3",an="styles-module__icons__-b7ea",cn="styles-module__clearIcon__ELMFy",_n="styles-module__icon__0-EVW",rn="styles-module__popover__ej0Pl",Ce={datePicker:tn,input:ln,disabled:nn,value:on,icons:an,clearIcon:cn,icon:_n,popover:rn};function dn({value:s,onChange:t,minDate:n,maxDate:l,placeholder:a="Select a date",disabled:o=!1,variant:c="default",className:d="",...r}){const[_,i]=p.useState(!1),m=p.useRef(null);p.useEffect(()=>{const u=N=>{m.current&&!m.current.contains(N.target)&&i(!1)};return _&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[_]);const v=u=>{t?.(u),i(!1)},h=u=>{u.stopPropagation(),t?.(null)},$=u=>u.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.jsxs("div",{className:`${Ce.datePicker} ${d}`,ref:m,...r,children:[e.jsxs("button",{type:"button",className:`${Ce.input} ${o?Ce.disabled:""}`,onClick:()=>!o&&i(!_),disabled:o,children:[e.jsx("span",{className:Ce.value,children:s?$(s):a}),e.jsxs("span",{className:Ce.icons,children:[s&&!o&&e.jsx("span",{className:Ce.clearIcon,onClick:h,children:"×"}),e.jsx("span",{className:Ce.icon,children:"📅"})]})]}),_&&e.jsx("div",{className:Ce.popover,children:e.jsx(as,{value:s,onChange:v,minDate:n,maxDate:l,variant:c})})]})}const un="styles-module__dateRangePicker__2-ckk",mn="styles-module__input__yirN1",pn="styles-module__disabled__88Oht",yn="styles-module__value__rLHDv",hn="styles-module__icons__Ceazb",gn="styles-module__clearIcon__XoOWV",fn="styles-module__icon__k-Xdp",xn="styles-module__popover__PVw7h",bn="styles-module__rangeInfo__qCqH0",ve={dateRangePicker:un,input:mn,disabled:pn,value:yn,icons:hn,clearIcon:gn,icon:fn,popover:xn,rangeInfo:bn};function vn({value:s,onChange:t,minDate:n,maxDate:l,className:a="",placeholder:o="Select date range",disabled:c=!1,variant:d="default"}){const[r,_]=p.useState(!1),[i,m]=p.useState({start:null,end:null}),[v,h]=p.useState(!1),$=p.useRef(null);p.useEffect(()=>{const L=x=>{$.current&&!$.current.contains(x.target)&&(_(!1),m({start:null,end:null}),h(!1))};return r&&document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}},[r]);const u=L=>{if(!v)m({start:L,end:null}),h(!0);else{const x=i.start,k=L;x>k?t?.({start:k,end:x}):t?.({start:x,end:k}),_(!1),m({start:null,end:null}),h(!1)}},N=L=>{L.stopPropagation(),t?.({start:null,end:null}),m({start:null,end:null}),h(!1)},b=L=>L.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),y=()=>s?.start&&s?.end?`${b(s.start)} → ${b(s.end)}`:s?.start?b(s.start):o,w=()=>{const L=[],x=i.start||s?.start,k=i.end||s?.end;if(x&&k){const D=new Date(x);for(;D<=k;)L.push(new Date(D)),D.setDate(D.getDate()+1)}return L};return e.jsxs("div",{className:`${ve.dateRangePicker} ${a}`,ref:$,children:[e.jsxs("button",{type:"button",className:`${ve.input} ${c?ve.disabled:""}`,onClick:()=>!c&&_(!r),disabled:c,children:[e.jsx("span",{className:ve.value,children:y()}),e.jsxs("span",{className:ve.icons,children:[(s?.start||s?.end)&&!c&&e.jsx("span",{className:ve.clearIcon,onClick:N,children:"×"}),e.jsx("span",{className:ve.icon,children:"📅"})]})]}),r&&e.jsxs("div",{className:ve.popover,children:[e.jsx("div",{className:ve.rangeInfo,children:v?"Select end date":"Select start date"}),e.jsx(as,{value:i.start||s?.start||void 0,onChange:u,minDate:n,maxDate:l,highlightedDates:w(),variant:d})]})]})}const $n="styles-module__divider__I6KTc",jn="styles-module__horizontal__rrjPy",Nn="styles-module__solid__LhHPX",wn="styles-module__dashed__2ZL2z",kn="styles-module__dotted__N8tLr",Sn="styles-module__line__ff0dO",Cn="styles-module__label__izE2E",Ln="styles-module__vertical__RBm03",Ae={divider:$n,horizontal:jn,solid:Nn,dashed:wn,dotted:kn,line:Sn,label:Cn,vertical:Ln};function In({orientation:s="horizontal",variant:t="solid",label:n,className:l=""}){const a=`${Ae.divider} ${Ae[s]} ${Ae[t]} ${l}`;return n&&s==="horizontal"?e.jsxs("div",{className:a,children:[e.jsx("span",{className:Ae.line}),e.jsx("span",{className:Ae.label,children:n}),e.jsx("span",{className:Ae.line})]}):e.jsx("div",{className:a})}const Mn="styles-module__dropdown__uiKSF",zn="styles-module__trigger__tVV7I",Dn="styles-module__disabled__Xy0oo",Tn="styles-module__selected__RnAL-",Bn="styles-module__placeholder__aePOZ",En="styles-module__arrow__QYBcO",Wn="styles-module__open__huthl",Rn="styles-module__menu__Fvg4d",Xn="styles-module__option__OLwBz",Gn="styles-module__optionDisabled__n9Gdm",Vn="styles-module__active__W7XbV",ie={dropdown:Mn,trigger:zn,disabled:Dn,selected:Tn,placeholder:Bn,arrow:En,open:Wn,menu:Rn,option:Xn,optionDisabled:Gn,active:Vn};function An({options:s,value:t,onChange:n,placeholder:l="Select an option",disabled:a=!1,className:o=""}){const[c,d]=p.useState(!1),[r,_]=p.useState(t||""),i=p.useRef(null);p.useEffect(()=>{const $=u=>{i.current&&!i.current.contains(u.target)&&d(!1)};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[]);const m=$=>{a||(_($),d(!1),n?.($))},v=s.find($=>$.value===r),h=v?.label||l;return e.jsxs("div",{className:`${ie.dropdown} ${o}`,ref:i,children:[e.jsxs("button",{className:`${ie.trigger} ${a?ie.disabled:""}`,onClick:()=>!a&&d(!c),disabled:a,type:"button",children:[e.jsx("span",{className:v?ie.selected:ie.placeholder,children:h}),e.jsx("span",{className:`${ie.arrow} ${c?ie.open:""}`,children:"▼"})]}),c&&e.jsx("div",{className:ie.menu,children:s.map($=>e.jsx("div",{className:`${ie.option} ${$.value===r?ie.active:""} ${$.disabled?ie.optionDisabled:""}`,onClick:()=>!$.disabled&&m($.value),children:$.label},$.value))})]})}const Pn="styles-module__filePicker__mq8yj",Fn="styles-module__dropzone__DdFZi",On="styles-module__disabled__PEgD4",Hn="styles-module__icon__lgApu",Yn="styles-module__text__Djodx",qn="styles-module__input__3Edc4",Kn="styles-module__fileList__mG9O1",Zn="styles-module__fileItem__NB3Uq",Un="styles-module__processing__R-ZHY",Jn="styles-module__uploaded__gJ1od",Qn="styles-module__failed__MlKNj",eo="styles-module__fileIcon__IUNOU",so="styles-module__fileName__E1M5I",to="styles-module__fileSize__Yiown",lo="styles-module__error__KmdmE",no="styles-module__remove__JiGmS",se={filePicker:Pn,dropzone:Fn,disabled:On,icon:Hn,text:Yn,input:qn,fileList:Kn,fileItem:Zn,processing:Un,uploaded:Jn,failed:Qn,fileIcon:eo,fileName:so,fileSize:to,error:lo,remove:no};function oo({accept:s,multiple:t=!1,maxSize:n,disabled:l=!1,onChange:a,onUpload:o,className:c=""}){const[d,r]=p.useState([]),_=p.useRef(null),i=async u=>{if(!u||l)return;const N=Array.from(u).map(b=>n&&b.size>n?{file:b,status:"failed",error:"File too large"}:{file:b,status:"idle"});if(r(b=>[...b,...N]),a?.(N),o)for(const b of N)b.status!=="failed"&&await m(b)},m=async u=>{v(u.file.name,"processing");try{await o?.(u.file),v(u.file.name,"uploaded")}catch(N){v(u.file.name,"failed",N.message)}},v=(u,N,b)=>{r(y=>y.map(w=>w.file.name===u?{...w,status:N,error:b}:w))},h=u=>{r(N=>N.filter(b=>b.file.name!==u))},$=u=>{switch(u){case"processing":return"⏳";case"uploaded":return"✓";case"failed":return"✗";default:return"📄"}};return e.jsxs("div",{className:`${se.filePicker} ${c}`,children:[e.jsxs("div",{className:`${se.dropzone} ${l?se.disabled:""}`,onClick:()=>!l&&_.current?.click(),children:[e.jsx("span",{className:se.icon,children:"📁"}),e.jsx("span",{className:se.text,children:"Click to select files"})]}),e.jsx("input",{ref:_,type:"file",accept:s,multiple:t,disabled:l,onChange:u=>i(u.target.files),className:se.input}),d.length>0&&e.jsx("div",{className:se.fileList,children:d.map((u,N)=>e.jsxs("div",{className:`${se.fileItem} ${se[u.status]}`,children:[e.jsx("span",{className:se.fileIcon,children:$(u.status)}),e.jsx("span",{className:se.fileName,children:u.file.name}),e.jsxs("span",{className:se.fileSize,children:[(u.file.size/1024).toFixed(1)," KB"]}),u.error&&e.jsx("span",{className:se.error,children:u.error}),e.jsx("button",{className:se.remove,onClick:()=>h(u.file.name),children:"×"})]},`${u.file.name}-${N}`))})]})}const ao="styles-module__header__9QAJF",co="styles-module__sticky__wm-sd",_o="styles-module__content__ZPdW7",ro="styles-module__brand__-0bx7",io="styles-module__logo__3KpY5",uo="styles-module__title__yDhEG",mo="styles-module__nav__6MmHf",po="styles-module__actions__yTPsJ",Le={header:ao,sticky:co,content:_o,brand:ro,logo:io,title:uo,nav:mo,actions:po};function yo({logo:s,title:t,children:n,actions:l,sticky:a=!1,className:o=""}){return e.jsx("header",{className:`${Le.header} ${a?Le.sticky:""} ${o}`,children:e.jsxs("div",{className:Le.content,children:[(s||t)&&e.jsxs("div",{className:Le.brand,children:[s&&e.jsx("div",{className:Le.logo,children:s}),t&&e.jsx("h1",{className:Le.title,children:t})]}),n&&e.jsx("div",{className:Le.nav,children:n}),l&&e.jsx("div",{className:Le.actions,children:l})]})})}const ho="styles-module__inputContainer__KSDK-",go="styles-module__fullWidth__rLaUj",fo="styles-module__label__-uPCz",xo="styles-module__wrapper__JTZMt",bo="styles-module__input__KRJnF",vo="styles-module__withIcon__mikvP",$o="styles-module__disabled__NjJFs",jo="styles-module__sm__cr6Ko",No="styles-module__lg__geHP2",wo="styles-module__error__UCrFp",ko="styles-module__success__fKUT8",So="styles-module__icon__qopq-",Co="styles-module__helperText__9ULK8",Lo="styles-module__errorText__JTsOi",ae={inputContainer:ho,fullWidth:go,label:fo,wrapper:xo,input:bo,withIcon:vo,disabled:$o,sm:jo,lg:No,error:wo,success:ko,icon:So,helperText:Co,errorText:Lo},cs=p.forwardRef(({label:s,error:t,helperText:n,size:l="md",variant:a="default",icon:o,fullWidth:c=!1,className:d="",disabled:r=!1,..._},i)=>{const m=t?"error":a,v=`${ae.inputContainer} ${c?ae.fullWidth:""} ${d}`,h=`${ae.input} ${ae[l]} ${ae[m]} ${o?ae.withIcon:""} ${r?ae.disabled:""}`;return e.jsxs("div",{className:v,children:[s&&e.jsx("label",{className:ae.label,children:s}),e.jsxs("div",{className:ae.wrapper,children:[o&&e.jsx("span",{className:ae.icon,children:o}),e.jsx("input",{ref:i,className:h,disabled:r,..._})]}),(t||n)&&e.jsx("span",{className:`${ae.helperText} ${t?ae.errorText:""}`,children:t||n})]})});cs.displayName="Input";const Io="styles-module__label__QjEAd",Mo="styles-module__disabled__yJ4NK",zo="styles-module__sm__KnRgV",Do="styles-module__md__z8a54",To="styles-module__lg__KOzy-",Bo="styles-module__required__ZBqbG",Ue={label:Io,disabled:Mo,sm:zo,md:Do,lg:To,required:Bo};function Eo({size:s="md",required:t=!1,disabled:n=!1,className:l="",children:a,...o}){return e.jsxs("label",{className:`${Ue.label} ${Ue[s]} ${n?Ue.disabled:""} ${l}`,...o,children:[a,t&&e.jsx("span",{className:Ue.required,children:"*"})]})}const Wo="styles-module__list__i-PH3",Ro="styles-module__dividers__klcR-",Xo="styles-module__item__hLR7A",Go="styles-module__hoverable__6FbJF",Vo="styles-module__clickable__ahnDb",Ao="styles-module__disabled__W5Z3Y",Po="styles-module__icon__fSr06",Fo="styles-module__content__ujdaE",Oo="styles-module__badge__dwlRk",$e={list:Wo,dividers:Ro,item:Xo,hoverable:Go,clickable:Vo,disabled:Ao,icon:Po,content:Fo,badge:Oo};function Ho({items:s,hoverable:t=!1,dividers:n=!1,className:l=""}){return e.jsx("ul",{className:`${$e.list} ${n?$e.dividers:""} ${l}`,children:s.map(a=>e.jsxs("li",{className:`${$e.item} ${t&&!a.disabled?$e.hoverable:""} ${a.disabled?$e.disabled:""} ${a.onClick&&!a.disabled?$e.clickable:""}`,onClick:a.disabled?void 0:a.onClick,children:[a.icon&&e.jsx("span",{className:$e.icon,children:a.icon}),e.jsx("span",{className:$e.content,children:a.content}),a.badge&&e.jsx("span",{className:$e.badge,children:a.badge})]},a.id))})}const Yo="styles-module__overlay__Ty-He",qo="styles-module__fadeIn__vywQ8",Ko="styles-module__modal__bC015",Zo="styles-module__slideUp__i-uri",Uo="styles-module__sm__HasCZ",Jo="styles-module__md__y-51k",Qo="styles-module__lg__bXotd",ea="styles-module__xl__wKYbR",sa="styles-module__header__agEZy",ta="styles-module__title__91HGo",la="styles-module__closeButton__u-naO",na="styles-module__content__1xlis",oa="styles-module__footer__m3SbZ",Ie={overlay:Yo,fadeIn:qo,modal:Ko,slideUp:Zo,sm:Uo,md:Jo,lg:Qo,xl:ea,header:sa,title:ta,closeButton:la,content:na,footer:oa};function aa({isOpen:s,onClose:t,title:n,children:l,footer:a,size:o="md",closeOnOverlayClick:c=!0,showCloseButton:d=!0,className:r=""}){return p.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),p.useEffect(()=>{const _=i=>{i.key==="Escape"&&s&&t()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[s,t]),s?e.jsx("div",{className:Ie.overlay,onClick:c?t:void 0,children:e.jsxs("div",{className:`${Ie.modal} ${Ie[o]} ${r}`,onClick:_=>_.stopPropagation(),children:[(n||d)&&e.jsxs("div",{className:Ie.header,children:[n&&e.jsx("h2",{className:Ie.title,children:n}),d&&e.jsx("button",{className:Ie.closeButton,onClick:t,type:"button",children:"×"})]}),e.jsx("div",{className:Ie.content,children:l}),a&&e.jsx("div",{className:Ie.footer,children:a})]})}):null}const ca="styles-module__pagination__P-TuL",_a="styles-module__pageButton__saWQq",ra="styles-module__active__6G9dp",da="styles-module__dots__HNsj1",Me={pagination:ca,pageButton:_a,active:ra,dots:da};function ia({currentPage:s,totalPages:t,onPageChange:n,showFirstLast:l=!0,siblingCount:a=1,className:o=""}){const c=(m,v)=>Array.from({length:v-m+1},(h,$)=>m+$),r=(()=>{const m=a+5;if(t<=m)return c(1,t);const v=Math.max(s-a,1),h=Math.min(s+a,t),$=v>2,u=h<t-1;return!$&&u?[...c(1,3+2*a),"...",t]:$&&!u?[1,"...",...c(t-(2+2*a),t)]:[1,"...",...c(v,h),"...",t]})(),_=()=>{s>1&&n(s-1)},i=()=>{s<t&&n(s+1)};return e.jsxs("nav",{className:`${Me.pagination} ${o}`,children:[l&&e.jsx("button",{className:Me.pageButton,onClick:()=>n(1),disabled:s===1,children:"«"}),e.jsx("button",{className:Me.pageButton,onClick:_,disabled:s===1,children:"‹"}),r.map((m,v)=>m==="..."?e.jsx("span",{className:Me.dots,children:"..."},`dots-${v}`):e.jsx("button",{className:`${Me.pageButton} ${m===s?Me.active:""}`,onClick:()=>n(m),children:m},m)),e.jsx("button",{className:Me.pageButton,onClick:i,disabled:s===t,children:"›"}),l&&e.jsx("button",{className:Me.pageButton,onClick:()=>n(t),disabled:s===t,children:"»"})]})}const ua="styles-module__container__u4q5n",ma="styles-module__progressBar__wAUjD",pa="styles-module__sm__ZBiyl",ya="styles-module__md__oXZzu",ha="styles-module__lg__JmNO0",ga="styles-module__fill__bDflZ",fa="styles-module__success__drT36",xa="styles-module__warning__p-mHQ",ba="styles-module__error__ecpJB",va="styles-module__info__vfjga",$a="styles-module__striped__El9o5",ja="styles-module__animated__9FN7u",Na="styles-module__progress-stripes__etVVj",wa="styles-module__label__TpB8Q",ze={container:ua,progressBar:ma,sm:pa,md:ya,lg:ha,fill:ga,default:"styles-module__default__7qIAE",success:fa,warning:xa,error:ba,info:va,striped:$a,animated:ja,"progress-stripes":"styles-module__progress-stripes__etVVj",progressStripes:Na,label:wa};function ka({value:s,max:t=100,variant:n="default",size:l="md",showLabel:a=!1,label:o,animated:c=!1,striped:d=!1,className:r=""}){const _=Math.min(Math.max(s/t*100,0),100),i=o||`${Math.round(_)}%`;return e.jsx("div",{className:`${ze.container} ${r}`,children:e.jsx("div",{className:`${ze.progressBar} ${ze[l]}`,children:e.jsx("div",{className:`${ze.fill} ${ze[n]} ${d?ze.striped:""} ${c?ze.animated:""}`,style:{width:`${_}%`},children:a&&e.jsx("span",{className:ze.label,children:i})})})})}const Sa="styles-module__radioButton__30HVZ",Ca="styles-module__disabled__TuSU6",La="styles-module__input__-NkgJ",Ia="styles-module__radio__dKOL5",Ma="styles-module__label__M94so",Ye={radioButton:Sa,disabled:Ca,input:La,radio:Ia,label:Ma};function za({label:s,value:t,name:n,checked:l=!1,disabled:a=!1,onChange:o,className:c="",...d}){return e.jsxs("label",{className:`${Ye.radioButton} ${a?Ye.disabled:""} ${c}`,children:[e.jsx("input",{type:"radio",name:n,value:t,checked:l,disabled:a,onChange:o,className:Ye.input,...d}),e.jsx("span",{className:Ye.radio}),s&&e.jsx("span",{className:Ye.label,children:s})]})}const Da="styles-module__container__KhKB7",Ta="styles-module__label__nGyr8",Ba="styles-module__rangeWrapper__dnhOv",Ea="styles-module__inputWrapper__vVIhy",Wa="styles-module__input__C9H5I",Ra="styles-module__disabled__8xB9M",Xa="styles-module__minMax__5jVHq",Ga="styles-module__value__4hZJK",je={container:Da,label:Ta,rangeWrapper:Ba,inputWrapper:Ea,input:Wa,disabled:Ra,minMax:Xa,value:Ga};function Va({label:s,min:t=0,max:n=100,step:l=1,value:a=50,showValue:o=!1,showMinMax:c=!1,onChange:d,className:r="",disabled:_=!1,...i}){const m=(a-t)/(n-t)*100;return e.jsxs("div",{className:`${je.container} ${r}`,children:[s&&e.jsx("label",{className:je.label,children:s}),e.jsxs("div",{className:je.rangeWrapper,children:[c&&e.jsx("span",{className:je.minMax,children:t}),e.jsx("div",{className:je.inputWrapper,children:e.jsx("input",{type:"range",min:t,max:n,step:l,value:a,onChange:d,disabled:_,className:`${je.input} ${_?je.disabled:""}`,style:{"--percentage":`${m}%`},...i})}),c&&e.jsx("span",{className:je.minMax,children:n})]}),o&&e.jsx("span",{className:je.value,children:a})]})}const Aa="styles-module__richSelect__xtDdz",Pa="styles-module__trigger__nkuFi",Fa="styles-module__disabled__aRnNR",Oa="styles-module__selectedContent__1YUDI",Ha="styles-module__textContent__sVML5",Ya="styles-module__label__DYAVs",qa="styles-module__description__-NG4t",Ka="styles-module__placeholder__83U0w",Za="styles-module__icon__v-J2b",Ua="styles-module__arrow__m-D1Y",Ja="styles-module__open__gZef9",Qa="styles-module__menu__zMZHy",ec="styles-module__searchWrapper__yPXor",sc="styles-module__searchInput__Vq3C6",tc="styles-module__optionsList__OAhYK",lc="styles-module__option__vTDi0",nc="styles-module__optionDisabled__spphz",oc="styles-module__active__FRlKy",ac="styles-module__noResults__DsPu8",H={richSelect:Aa,trigger:Pa,disabled:Fa,selectedContent:Oa,textContent:Ha,label:Ya,description:qa,placeholder:Ka,icon:Za,arrow:Ua,open:Ja,menu:Qa,searchWrapper:ec,searchInput:sc,optionsList:tc,option:lc,optionDisabled:nc,active:oc,noResults:ac};function cc({options:s,value:t,onChange:n,placeholder:l="Select an option",disabled:a=!1,searchable:o=!1,className:c=""}){const[d,r]=p.useState(!1),[_,i]=p.useState(""),m=p.useRef(null);p.useEffect(()=>{const u=N=>{m.current&&!m.current.contains(N.target)&&(r(!1),i(""))};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const v=u=>{a||(n?.(u),r(!1),i(""))},h=s.find(u=>u.value===t),$=o?s.filter(u=>u.label.toLowerCase().includes(_.toLowerCase())):s;return e.jsxs("div",{className:`${H.richSelect} ${c}`,ref:m,children:[e.jsxs("button",{className:`${H.trigger} ${a?H.disabled:""}`,onClick:()=>!a&&r(!d),disabled:a,type:"button",children:[h?e.jsxs("div",{className:H.selectedContent,children:[h.icon&&e.jsx("span",{className:H.icon,children:h.icon}),e.jsxs("div",{className:H.textContent,children:[e.jsx("span",{className:H.label,children:h.label}),h.description&&e.jsx("span",{className:H.description,children:h.description})]})]}):e.jsx("span",{className:H.placeholder,children:l}),e.jsx("span",{className:`${H.arrow} ${d?H.open:""}`,children:"▼"})]}),d&&e.jsxs("div",{className:H.menu,children:[o&&e.jsx("div",{className:H.searchWrapper,children:e.jsx("input",{type:"text",className:H.searchInput,placeholder:"Search...",value:_,onChange:u=>i(u.target.value),autoFocus:!0})}),e.jsxs("div",{className:H.optionsList,children:[$.map(u=>e.jsxs("div",{className:`${H.option} ${u.value===t?H.active:""} ${u.disabled?H.optionDisabled:""}`,onClick:()=>!u.disabled&&v(u.value),children:[u.icon&&e.jsx("span",{className:H.icon,children:u.icon}),e.jsxs("div",{className:H.textContent,children:[e.jsx("span",{className:H.label,children:u.label}),u.description&&e.jsx("span",{className:H.description,children:u.description})]})]},u.value)),$.length===0&&e.jsx("div",{className:H.noResults,children:"No results found"})]})]})]})}const _c="styles-module__overlay__tP-g3",rc="styles-module__fadeIn__MKn3S",dc="styles-module__sidePanel__bfmoW",ic="styles-module__left__X7-S4",uc="styles-module__slideInLeft__nE6Ff",mc="styles-module__right__Fvefe",pc="styles-module__slideInRight__bvjTy",yc="styles-module__sm__CHsFH",hc="styles-module__md__17Q10",gc="styles-module__lg__8XCJd",fc="styles-module__header__-AKr-",xc="styles-module__title__8S4yp",bc="styles-module__closeButton__DQgJe",vc="styles-module__content__XGAif",$c="styles-module__footer__cX66N",Ne={overlay:_c,fadeIn:rc,sidePanel:dc,left:ic,slideInLeft:uc,right:mc,slideInRight:pc,sm:yc,md:hc,lg:gc,header:fc,title:xc,closeButton:bc,content:vc,footer:$c};function jc({isOpen:s,onClose:t,title:n,children:l,footer:a,position:o="right",size:c="md",closeOnOverlayClick:d=!0,showCloseButton:r=!0,className:_=""}){return p.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),p.useEffect(()=>{const i=m=>{m.key==="Escape"&&s&&t()};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[s,t]),s?e.jsx("div",{className:Ne.overlay,onClick:d?t:void 0,children:e.jsxs("div",{className:`${Ne.sidePanel} ${Ne[o]} ${Ne[c]} ${_}`,onClick:i=>i.stopPropagation(),children:[(n||r)&&e.jsxs("div",{className:Ne.header,children:[n&&e.jsx("h2",{className:Ne.title,children:n}),r&&e.jsx("button",{className:Ne.closeButton,onClick:t,type:"button",children:"×"})]}),e.jsx("div",{className:Ne.content,children:l}),a&&e.jsx("div",{className:Ne.footer,children:a})]})}):null}const Nc="styles-module__signpost__tLnmc",wc="styles-module__trigger__25KnS",kc="styles-module__content__z4pUG",Sc="styles-module__fadeIn__0jB27",Cc="styles-module__top__Jn5XX",Lc="styles-module__bottom__CGe3J",Ic="styles-module__left__zuDmF",Mc="styles-module__right__xnSw3",zc="styles-module__inner__7euCB",Dc="styles-module__arrow__mGVpk",Pe={signpost:Nc,trigger:wc,content:kc,fadeIn:Sc,top:Cc,bottom:Lc,left:Ic,right:Mc,inner:zc,arrow:Dc};function Tc({trigger:s,children:t,position:n="top",className:l=""}){const[a,o]=p.useState(!1),c=p.useRef(null);return p.useEffect(()=>{const d=r=>{c.current&&!c.current.contains(r.target)&&o(!1)};return a&&document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[a]),e.jsxs("div",{className:`${Pe.signpost} ${l}`,ref:c,children:[e.jsx("div",{className:Pe.trigger,onClick:()=>o(!a),children:s}),a&&e.jsxs("div",{className:`${Pe.content} ${Pe[n]}`,children:[e.jsx("div",{className:Pe.arrow}),e.jsx("div",{className:Pe.inner,children:t})]})]})}const Bc="styles-module__spinnerWrapper__ht5E9",Ec="styles-module__spinner__D8f-h",Wc="styles-module__circle__z537L",Rc="styles-module__spin__Gt3A-",Xc="styles-module__sm__Ukc8Q",Gc="styles-module__md__Hg7EK",Vc="styles-module__lg__ac6jQ",Ac="styles-module__primary__Pah-x",Pc="styles-module__secondary__D29qO",Fc="styles-module__label__nc2IY",Fe={spinnerWrapper:Bc,spinner:Ec,circle:Wc,spin:Rc,sm:Xc,md:Gc,lg:Vc,default:"styles-module__default__X7JGx",primary:Ac,secondary:Pc,label:Fc};function Oc({size:s="md",variant:t="default",className:n="",label:l}){return e.jsxs("div",{className:`${Fe.spinnerWrapper} ${n}`,children:[e.jsx("div",{className:`${Fe.spinner} ${Fe[s]} ${Fe[t]}`,role:"status","aria-label":l||"Loading",children:e.jsx("div",{className:Fe.circle})}),l&&e.jsx("span",{className:Fe.label,children:l})]})}const Hc="styles-module__stackView__wGZRw",Yc="styles-module__horizontal__MCJ8E",qc="styles-module__vertical__INW6v",Kc="styles-module__wrap__wvZPS",Zc="styles-module__align-start__TeH6Z",Uc="styles-module__align-center__DWOt-",Jc="styles-module__align-end__9Xsx4",Qc="styles-module__align-stretch__raPvB",e_="styles-module__justify-start__YVdZp",s_="styles-module__justify-center__VKg8-",t_="styles-module__justify-end__kVPBC",l_="styles-module__justify-space-between__z5-wE",n_="styles-module__justify-space-around__FP-0m",o_="styles-module__justify-space-evenly__v5xco",a_="styles-module__spacing-none__M23xt",c_="styles-module__spacing-xs__zdXjS",__="styles-module__spacing-sm__G-5sR",r_="styles-module__spacing-md__oa-Jw",d_="styles-module__spacing-lg__5zhiQ",i_="styles-module__spacing-xl__qSFPT",Oe={stackView:Hc,horizontal:Yc,vertical:qc,wrap:Kc,"align-start":"styles-module__align-start__TeH6Z",alignStart:Zc,"align-center":"styles-module__align-center__DWOt-",alignCenter:Uc,"align-end":"styles-module__align-end__9Xsx4",alignEnd:Jc,"align-stretch":"styles-module__align-stretch__raPvB",alignStretch:Qc,"justify-start":"styles-module__justify-start__YVdZp",justifyStart:e_,"justify-center":"styles-module__justify-center__VKg8-",justifyCenter:s_,"justify-end":"styles-module__justify-end__kVPBC",justifyEnd:t_,"justify-space-between":"styles-module__justify-space-between__z5-wE",justifySpaceBetween:l_,"justify-space-around":"styles-module__justify-space-around__FP-0m",justifySpaceAround:n_,"justify-space-evenly":"styles-module__justify-space-evenly__v5xco",justifySpaceEvenly:o_,"spacing-none":"styles-module__spacing-none__M23xt",spacingNone:a_,"spacing-xs":"styles-module__spacing-xs__zdXjS",spacingXs:c_,"spacing-sm":"styles-module__spacing-sm__G-5sR",spacingSm:__,"spacing-md":"styles-module__spacing-md__oa-Jw",spacingMd:r_,"spacing-lg":"styles-module__spacing-lg__5zhiQ",spacingLg:d_,"spacing-xl":"styles-module__spacing-xl__qSFPT",spacingXl:i_};function u_({children:s,direction:t="horizontal",align:n="start",justify:l="start",spacing:a="md",wrap:o=!1,className:c="",style:d}){return e.jsx("div",{className:`${Oe.stackView} ${Oe[t]} ${Oe[`align-${n}`]} ${Oe[`justify-${l}`]} ${Oe[`spacing-${a}`]} ${o?Oe.wrap:""} ${c}`,style:d,children:s})}const m_="styles-module__stepper__NUsL2",p_="styles-module__horizontal__wW8by",y_="styles-module__vertical__UqRFo",h_="styles-module__step__lmR8-",g_="styles-module__clickable__-O5QE",f_="styles-module__stepIndicator__GbO4U",x_="styles-module__current__LW7L4",b_="styles-module__completed__MC9gq",v_="styles-module__checkmark__GAoUn",$_="styles-module__stepNumber__qLNDJ",j_="styles-module__stepContent__pKC94",N_="styles-module__stepLabel__JK-4j",w_="styles-module__stepDescription__hlARr",k_="styles-module__connector__76Rsb",te={stepper:m_,horizontal:p_,vertical:y_,step:h_,clickable:g_,stepIndicator:f_,current:x_,completed:b_,checkmark:v_,stepNumber:$_,stepContent:j_,stepLabel:N_,stepDescription:w_,connector:k_};function S_({steps:s,currentStep:t,orientation:n="horizontal",onStepClick:l,className:a=""}){return e.jsx("div",{className:`${te.stepper} ${te[n]} ${a}`,children:s.map((o,c)=>{const d=c<t,r=c===t,_=l&&(d||r);return e.jsxs(p.Fragment,{children:[e.jsxs("div",{className:`${te.step} ${d?te.completed:""} ${r?te.current:""} ${_?te.clickable:""}`,onClick:()=>_&&l(c),children:[e.jsx("div",{className:te.stepIndicator,children:d?e.jsx("span",{className:te.checkmark,children:"✓"}):o.icon?o.icon:e.jsx("span",{className:te.stepNumber,children:c+1})}),e.jsxs("div",{className:te.stepContent,children:[e.jsx("div",{className:te.stepLabel,children:o.label}),o.description&&e.jsx("div",{className:te.stepDescription,children:o.description})]})]}),c<s.length-1&&e.jsx("div",{className:`${te.connector} ${d?te.completed:""}`})]},c)})})}const C_="styles-module__tableWrapper__7pbjW",L_="styles-module__table__G-UMw",I_="styles-module__thead__uTTEj",M_="styles-module__th__tBFLB",z_="styles-module__tbody__-OiiP",D_="styles-module__tr__ioLC7",T_="styles-module__td__mjOQt",B_="styles-module__striped__iZ3bT",E_="styles-module__hoverable__ewlPb",W_="styles-module__bordered__IB5cr",R_="styles-module__compact__JfcIE",X_="styles-module__clickable__URnJc",G_="styles-module__empty__Xo2NZ",ne={tableWrapper:C_,table:L_,thead:I_,th:M_,tbody:z_,tr:D_,td:T_,striped:B_,hoverable:E_,bordered:W_,compact:R_,clickable:X_,empty:G_};function V_({columns:s,data:t,striped:n=!1,hoverable:l=!1,bordered:a=!1,compact:o=!1,onRowClick:c,className:d=""}){return e.jsxs("div",{className:`${ne.tableWrapper} ${d}`,children:[e.jsxs("table",{className:`${ne.table} ${n?ne.striped:""} ${l?ne.hoverable:""} ${a?ne.bordered:""} ${o?ne.compact:""}`,children:[e.jsx("thead",{className:ne.thead,children:e.jsx("tr",{children:s.map(r=>e.jsx("th",{className:ne.th,style:{width:r.width},children:r.header},r.key))})}),e.jsx("tbody",{className:ne.tbody,children:t.map((r,_)=>e.jsx("tr",{className:`${ne.tr} ${c?ne.clickable:""}`,onClick:()=>c?.(r),children:s.map(i=>e.jsx("td",{className:ne.td,children:i.render?i.render(r[i.key],r):String(r[i.key]??"")},i.key))},_))})]}),t.length===0&&e.jsx("div",{className:ne.empty,children:"No data available"})]})}const A_="styles-module__tabsContainer__Jv3WS",P_="styles-module__tabsList__G5a9Z",F_="styles-module__fullWidth__IiyGO",O_="styles-module__tab__Veki-",H_="styles-module__disabled__M9qZK",Y_="styles-module__active__PVi-W",q_="styles-module__icon__4sTw8",K_="styles-module__pills__VlbD0",Z_="styles-module__underline__Jdu1g",U_="styles-module__tabContent__bSDk7",J_="styles-module__fadeIn__sgbzQ",we={tabsContainer:A_,tabsList:P_,fullWidth:F_,tab:O_,disabled:H_,active:Y_,icon:q_,default:"styles-module__default__02SGT",pills:K_,underline:Z_,tabContent:U_,fadeIn:J_};function Q_({items:s,defaultActiveId:t,variant:n="default",fullWidth:l=!1,onChange:a,className:o=""}){const[c,d]=p.useState(t||s[0]?.id),r=(i,m)=>{m||(d(i),a?.(i))},_=s.find(i=>i.id===c);return e.jsxs("div",{className:`${we.tabsContainer} ${o}`,children:[e.jsx("div",{className:`${we.tabsList} ${we[n]} ${l?we.fullWidth:""}`,role:"tablist",children:s.map(i=>e.jsxs("button",{role:"tab","aria-selected":i.id===c,"aria-disabled":i.disabled,className:`${we.tab} ${i.id===c?we.active:""} ${i.disabled?we.disabled:""}`,onClick:()=>r(i.id,i.disabled),disabled:i.disabled,children:[i.icon&&e.jsx("span",{className:we.icon,children:i.icon}),e.jsx("span",{children:i.label})]},i.id))}),e.jsx("div",{className:we.tabContent,role:"tabpanel",children:_?.content})]})}const er="styles-module__textareaWrapper__xo-uo",sr="styles-module__fullWidth__y5-Ce",tr="styles-module__label__xONj0",lr="styles-module__textarea__LmnbQ",nr="styles-module__sm__uIQkQ",or="styles-module__md__qfL-2",ar="styles-module__lg__s6Iey",cr="styles-module__success__ehWww",_r="styles-module__error__h9V4X",rr="styles-module__resize-none__w4h2b",dr="styles-module__resize-vertical__4lTu1",ir="styles-module__resize-horizontal__3Fdb7",ur="styles-module__resize-both__07ghL",mr="styles-module__helperText__Zaq6O",pr="styles-module__errorText__RI-rl",ye={textareaWrapper:er,fullWidth:sr,label:tr,textarea:lr,sm:nr,md:or,lg:ar,default:"styles-module__default__jlE7o",success:cr,error:_r,"resize-none":"styles-module__resize-none__w4h2b",resizeNone:rr,"resize-vertical":"styles-module__resize-vertical__4lTu1",resizeVertical:dr,"resize-horizontal":"styles-module__resize-horizontal__3Fdb7",resizeHorizontal:ir,"resize-both":"styles-module__resize-both__07ghL",resizeBoth:ur,helperText:mr,errorText:pr},_s=p.forwardRef(({label:s,helperText:t,error:n,size:l="md",variant:a="default",fullWidth:o=!1,resize:c="vertical",className:d="",disabled:r,..._},i)=>{const m=n?"error":a;return e.jsxs("div",{className:`${ye.textareaWrapper} ${o?ye.fullWidth:""} ${d}`,children:[s&&e.jsx("label",{className:ye.label,children:s}),e.jsx("textarea",{ref:i,className:`${ye.textarea} ${ye[l]} ${ye[m]} ${ye[`resize-${c}`]} ${r?ye.disabled:""}`,disabled:r,..._}),n&&e.jsx("span",{className:ye.errorText,children:n}),!n&&t&&e.jsx("span",{className:ye.helperText,children:t})]})});_s.displayName="Textarea";const yr="styles-module__timeline__khbcN",hr="styles-module__vertical__EcI8f",gr="styles-module__horizontal__kv46j",fr="styles-module__timelineItem__j0IQ5",xr="styles-module__timelineMarker__qk22j",br="styles-module__dot__gfgUf",vr="styles-module__icon__hWWJd",$r="styles-module__primary__t4Cyx",jr="styles-module__success__NWp7i",Nr="styles-module__warning__mfRNM",wr="styles-module__error__AwsC3",kr="styles-module__info__QaR5w",Sr="styles-module__timelineConnector__deWEH",Cr="styles-module__timelineContent__Yzy-t",Lr="styles-module__date__OIOdY",Ir="styles-module__title__PZb8L",Mr="styles-module__description__LesWv",Q={timeline:yr,vertical:hr,horizontal:gr,timelineItem:fr,timelineMarker:xr,dot:br,icon:vr,default:"styles-module__default__QmROp",primary:$r,success:jr,warning:Nr,error:wr,info:kr,timelineConnector:Sr,timelineContent:Cr,date:Lr,title:Ir,description:Mr};function zr({items:s,orientation:t="vertical",className:n=""}){return e.jsx("div",{className:`${Q.timeline} ${Q[t]} ${n}`,children:s.map((l,a)=>e.jsxs("div",{className:Q.timelineItem,children:[e.jsx("div",{className:`${Q.timelineMarker} ${l.color?Q[l.color]:Q.default}`,children:l.icon?e.jsx("span",{className:Q.icon,children:l.icon}):e.jsx("span",{className:Q.dot})}),a<s.length-1&&e.jsx("div",{className:`${Q.timelineConnector} ${l.color?Q[l.color]:Q.default}`}),e.jsxs("div",{className:Q.timelineContent,children:[l.date&&e.jsx("span",{className:Q.date,children:l.date}),e.jsx("h4",{className:Q.title,children:l.title}),l.description&&e.jsx("p",{className:Q.description,children:l.description})]})]},l.id))})}const Dr="styles-module__toggleSwitch__HDqFP",Tr="styles-module__disabled__tbXNT",Br="styles-module__input__oBVdg",Er="styles-module__sm__O8zA8",Wr="styles-module__md__2vfHI",Rr="styles-module__lg__S65-b",Xr="styles-module__slider__gYGJ6",Gr="styles-module__checked__-4pJ2",Vr="styles-module__label__xIgTV",De={toggleSwitch:Dr,disabled:Tr,input:Br,switch:"styles-module__switch__4NsVE",sm:Er,md:Wr,lg:Rr,slider:Xr,checked:Gr,label:Vr};function Ar({checked:s,defaultChecked:t=!1,onChange:n,label:l,disabled:a=!1,size:o="md",className:c=""}){const[d,r]=p.useState(t),_=s!==void 0,i=_?s:d,m=()=>{if(a)return;const v=!i;_||r(v),n?.(v)};return e.jsxs("label",{className:`${De.toggleSwitch} ${a?De.disabled:""} ${c}`,children:[e.jsx("input",{type:"checkbox",checked:i,onChange:m,disabled:a,className:De.input}),e.jsx("span",{className:`${De.switch} ${De[o]} ${i?De.checked:""}`,children:e.jsx("span",{className:De.slider})}),l&&e.jsx("span",{className:De.label,children:l})]})}const Pr="styles-module__tooltipWrapper__jXXEP",Fr="styles-module__tooltip__NP2ZM",Or="styles-module__fadeIn__5hHms",Hr="styles-module__top__kvf2D",Yr="styles-module__bottom__vkl92",qr="styles-module__left__q2e3D",Kr="styles-module__right__FRcXP",Zr="styles-module__tooltipContent__3R4WL",Ur="styles-module__tooltipArrow__11JdT",qe={tooltipWrapper:Pr,tooltip:Fr,fadeIn:Or,top:Hr,bottom:Yr,left:qr,right:Kr,tooltipContent:Zr,tooltipArrow:Ur};function Jr({children:s,content:t,position:n="top",delay:l=200,className:a=""}){const[o,c]=p.useState(!1),d=p.useRef(),r=p.useRef(null),_=()=>{d.current=setTimeout(()=>{c(!0)},l)},i=()=>{d.current&&clearTimeout(d.current),c(!1)};return p.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),e.jsxs("div",{className:`${qe.tooltipWrapper} ${a}`,ref:r,onMouseEnter:_,onMouseLeave:i,onFocus:_,onBlur:i,children:[s,o&&e.jsxs("div",{className:`${qe.tooltip} ${qe[n]}`,role:"tooltip",children:[e.jsx("div",{className:qe.tooltipContent,children:t}),e.jsx("div",{className:qe.tooltipArrow})]})]})}const Qr="styles-module__toastContainer__-uOPe",ed="styles-module__topLeft__MCDhr",sd="styles-module__topCenter__loC-J",td="styles-module__topRight__alKSR",ld="styles-module__bottomLeft__sPZ6I",nd="styles-module__bottomCenter__12yLT",od="styles-module__bottomRight__EdLbD",ad="styles-module__toast__q9A3H",cd="styles-module__slideIn__-Mhbw",_d="styles-module__fadeIn__I0huT",rd="styles-module__slideInLeft__Bs5x3",dd="styles-module__slideInDown__OUDGH",id="styles-module__icon__iRAEt",ud="styles-module__message__id55d",md="styles-module__closeButton__vnBxf",pd="styles-module__info__RjsXR",yd="styles-module__success__1qQf4",hd="styles-module__warning__UhEF-",gd="styles-module__error__sOYOC",ce={toastContainer:Qr,topLeft:ed,topCenter:sd,topRight:td,bottomLeft:ld,bottomCenter:nd,bottomRight:od,toast:ad,slideIn:cd,fadeIn:_d,slideInLeft:rd,slideInDown:dd,icon:id,message:ud,closeButton:md,info:pd,success:yd,warning:hd,error:gd},rs=p.createContext(void 0);function fd({children:s,position:t="top-right",maxToasts:n=5}){const[l,a]=p.useState([]),o=p.useCallback((_,i={})=>{const m=Math.random().toString(36).substring(2,9),v={id:m,message:_,variant:i.variant||"info",duration:i.duration??5e3,dismissible:i.dismissible??!0};a(h=>[...h,v].slice(-n)),v.duration&&v.duration>0&&setTimeout(()=>{c(m)},v.duration)},[n]),c=p.useCallback(_=>{a(i=>i.filter(m=>m.id!==_))},[]),d=()=>({"top-left":ce.topLeft,"top-center":ce.topCenter,"top-right":ce.topRight,"bottom-left":ce.bottomLeft,"bottom-center":ce.bottomCenter,"bottom-right":ce.bottomRight})[t],r=_=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕"})[_];return e.jsxs(rs.Provider,{value:{showToast:o},children:[s,e.jsx("div",{className:`${ce.toastContainer} ${d()}`,children:l.map(_=>e.jsxs("div",{className:`${ce.toast} ${ce[_.variant||"info"]}`,role:"alert","aria-live":"polite",children:[e.jsx("div",{className:ce.icon,children:r(_.variant||"info")}),e.jsx("div",{className:ce.message,children:_.message}),_.dismissible&&e.jsx("button",{className:ce.closeButton,onClick:()=>c(_.id),"aria-label":"Close",children:"✕"})]},_.id))})]})}function xd(){const s=p.useContext(rs);if(!s)throw new Error("useToast must be used within a ToastProvider");return s}const bd="styles-module__treeView__qtZfC",vd="styles-module__treeNodeWrapper__6m8CE",$d="styles-module__treeNode__xhhOE",jd="styles-module__disabled__-brxQ",Nd="styles-module__expandIcon__Zp-Yb",wd="styles-module__expanded__A4kyH",kd="styles-module__spacer__56WdM",Sd="styles-module__icon__AIE-i",Cd="styles-module__label__XDGcT",Ld="styles-module__children__N1c5Z",xe={treeView:bd,treeNodeWrapper:vd,treeNode:$d,disabled:jd,expandIcon:Nd,expanded:wd,spacer:kd,icon:Sd,label:Cd,children:Ld};function ds({node:s,level:t,expandedIds:n,onToggle:l,onNodeClick:a}){const o=s.children&&s.children.length>0,c=n.has(s.id),d=()=>{s.disabled||(o&&l(s.id),a?.(s))};return e.jsxs("div",{className:xe.treeNodeWrapper,children:[e.jsxs("div",{className:`${xe.treeNode} ${s.disabled?xe.disabled:""}`,style:{paddingLeft:`${t*1.5}rem`},onClick:d,children:[o&&e.jsx("span",{className:`${xe.expandIcon} ${c?xe.expanded:""}`,children:"▶"}),!o&&e.jsx("span",{className:xe.spacer}),s.icon&&e.jsx("span",{className:xe.icon,children:s.icon}),e.jsx("span",{className:xe.label,children:s.label})]}),o&&c&&e.jsx("div",{className:xe.children,children:s.children.map(r=>e.jsx(ds,{node:r,level:t+1,expandedIds:n,onToggle:l,onNodeClick:a},r.id))})]})}function Id({data:s,defaultExpandedIds:t=[],onNodeClick:n,className:l=""}){const[a,o]=p.useState(new Set(t)),c=d=>{o(r=>{const _=new Set(r);return _.has(d)?_.delete(d):_.add(d),_})};return e.jsx("div",{className:`${xe.treeView} ${l}`,children:s.map(d=>e.jsx(ds,{node:d,level:0,expandedIds:a,onToggle:c,onNodeClick:n},d.id))})}const Md="styles-module__nav__sMQSv",zd="styles-module__vertical__6EFeu",Dd="styles-module__collapsed__eIVC7",Td="styles-module__horizontal__5UU20",Bd="styles-module__navItemWrapper__Sc9wi",Ed="styles-module__navItem__7O2YX",Wd="styles-module__disabled__hvWkN",Rd="styles-module__nested__oejUs",Xd="styles-module__icon__SLdZe",Gd="styles-module__label__pji80",Vd="styles-module__badge__03qDH",Ad="styles-module__expandIcon__bGlQG",Pd="styles-module__dropdownIcon__uf35v",Fd="styles-module__expanded__2R6-v",Od="styles-module__children__sfAGb",Hd="styles-module__slideDown__xKrR1",Yd="styles-module__dropdown__LuTLW",qd="styles-module__megaMenu__02Wp7",Kd="styles-module__megaMenuWrapper__yLvBH",Zd="styles-module__megaMenuGrid__4FrxU",Ud="styles-module__megaMenuColumn__DI0z2",q={nav:Md,vertical:zd,collapsed:Dd,horizontal:Td,navItemWrapper:Bd,navItem:Ed,disabled:Wd,nested:Rd,icon:Xd,label:Gd,badge:Vd,expandIcon:Ad,dropdownIcon:Pd,expanded:Fd,children:Od,slideDown:Hd,dropdown:Yd,megaMenu:qd,megaMenuWrapper:Kd,megaMenuGrid:Zd,megaMenuColumn:Ud};function Qe({item:s,level:t,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:c}){const d=s.children&&s.children.length>0,r=n.has(s.id),_=s.megaMenu&&d,i=h=>{s.disabled||(d&&o==="vertical"&&(h.preventDefault(),l(s.id)),s.onClick&&s.onClick(),a?.(s))},m=()=>e.jsxs(e.Fragment,{children:[s.icon&&e.jsx("span",{className:q.icon,children:s.icon}),!c&&e.jsx("span",{className:q.label,children:s.label}),!c&&s.badge&&e.jsx("span",{className:q.badge,children:s.badge}),!c&&d&&o==="vertical"&&e.jsx("span",{className:`${q.expandIcon} ${r?q.expanded:""}`,children:"▶"}),!c&&d&&o==="horizontal"&&e.jsx("span",{className:q.dropdownIcon,children:"▼"})]}),v=s.href?e.jsx("a",{href:s.href,className:`${q.navItem} ${s.disabled?q.disabled:""} ${t>0?q.nested:""}`,onClick:i,children:m()}):e.jsx("button",{type:"button",className:`${q.navItem} ${s.disabled?q.disabled:""} ${t>0?q.nested:""}`,onClick:i,children:m()});return e.jsxs("div",{className:`${q.navItemWrapper} ${_?q.megaMenuWrapper:""}`,children:[v,d&&e.jsxs(e.Fragment,{children:[o==="vertical"&&r&&e.jsx("div",{className:q.children,children:s.children.map(h=>e.jsx(Qe,{item:h,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:c},h.id))}),o==="horizontal"&&e.jsx("div",{className:`${q.dropdown} ${_?q.megaMenu:""}`,children:_?e.jsx("div",{className:q.megaMenuGrid,children:s.children.map(h=>e.jsx("div",{className:q.megaMenuColumn,children:e.jsx(Qe,{item:h,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:c})},h.id))}):s.children.map(h=>e.jsx(Qe,{item:h,level:t+1,expandedIds:n,onToggle:l,onItemClick:a,orientation:o,collapsed:c},h.id))})]})]})}function Jd({items:s,orientation:t="vertical",defaultExpandedIds:n=[],onItemClick:l,className:a="",collapsed:o=!1}){const[c,d]=p.useState(new Set(n)),r=_=>{d(i=>{const m=new Set(i);return m.has(_)?m.delete(_):m.add(_),m})};return e.jsx("nav",{className:`${q.nav} ${q[t]} ${o?q.collapsed:""} ${a}`,children:s.map(_=>e.jsx(Qe,{item:_,level:0,expandedIds:c,onToggle:r,onItemClick:l,orientation:t,collapsed:o},_.id))})}const Qd="styles-module__selectContainer__JfMFS",ei="styles-module__fullWidth__XXFCr",si="styles-module__label__eUUOm",ti="styles-module__wrapper__98xFk",li="styles-module__select__xJaN9",ni="styles-module__disabled__A1ppA",oi="styles-module__sm__MEAFW",ai="styles-module__lg__sd1Gy",ci="styles-module__error__w1Lsu",_i="styles-module__success__xbtdD",ri="styles-module__arrow__UJXzt",di="styles-module__helperText__sXAtM",ii="styles-module__errorText__7kPjp",ue={selectContainer:Qd,fullWidth:ei,label:si,wrapper:ti,select:li,disabled:ni,sm:oi,lg:ai,error:ci,success:_i,arrow:ri,helperText:di,errorText:ii},is=p.forwardRef(({label:s,error:t,helperText:n,size:l="md",variant:a="default",fullWidth:o=!1,className:c="",disabled:d=!1,options:r,placeholder:_,...i},m)=>{const v=t?"error":a,h=`${ue.selectContainer} ${o?ue.fullWidth:""} ${c}`,$=`${ue.select} ${ue[l]} ${ue[v]} ${d?ue.disabled:""}`;return e.jsxs("div",{className:h,children:[s&&e.jsx("label",{className:ue.label,children:s}),e.jsxs("div",{className:ue.wrapper,children:[e.jsxs("select",{ref:m,className:$,disabled:d,...i,children:[_&&e.jsx("option",{value:"",disabled:!0,children:_}),r.map(u=>e.jsx("option",{value:u.value,disabled:u.disabled,children:u.label},u.value))]}),e.jsx("span",{className:ue.arrow,children:"▼"})]}),(t||n)&&e.jsx("span",{className:`${ue.helperText} ${t?ue.errorText:""}`,children:t||n})]})});is.displayName="Select";const ui="styles-module__grid__-18GG",mi="styles-module__columns-1__v8SEE",pi="styles-module__columns-2__Zq8Ih",yi="styles-module__columns-3__-sPCq",hi="styles-module__columns-4__jB2X6",gi="styles-module__columns-5__WbWn4",fi="styles-module__columns-6__B-cvH",xi="styles-module__columns-7__C29vY",bi="styles-module__columns-8__lFc3E",vi="styles-module__columns-9__Rhzrn",$i="styles-module__columns-10__hXu1z",ji="styles-module__columns-11__LYy-7",Ni="styles-module__columns-12__0tALI",wi="styles-module__columns-sm-1__rGPgC",ki="styles-module__columns-sm-2__PjfNA",Si="styles-module__columns-sm-3__-DkQI",Ci="styles-module__columns-sm-4__vtgo0",Li="styles-module__columns-sm-5__e91Bf",Ii="styles-module__columns-sm-6__2BPvq",Mi="styles-module__columns-sm-7__7WSj3",zi="styles-module__columns-sm-8__Y1rAn",Di="styles-module__columns-sm-9__ipGTO",Ti="styles-module__columns-sm-10__PsNnZ",Bi="styles-module__columns-sm-11__0Xt-s",Ei="styles-module__columns-sm-12__uDrsj",Wi="styles-module__columns-md-1__VxJSA",Ri="styles-module__columns-md-2__7Jb7M",Xi="styles-module__columns-md-3__NPgJ4",Gi="styles-module__columns-md-4__caSiE",Vi="styles-module__columns-md-5__YV-KD",Ai="styles-module__columns-md-6__eYuBW",Pi="styles-module__columns-md-7__kFwVo",Fi="styles-module__columns-md-8__--8cy",Oi="styles-module__columns-md-9__R5Q9b",Hi="styles-module__columns-md-10__-1u9i",Yi="styles-module__columns-md-11__3fWd5",qi="styles-module__columns-md-12__6p-sc",Ki="styles-module__columns-lg-1__Us4pj",Zi="styles-module__columns-lg-2__42pEt",Ui="styles-module__columns-lg-3__-TIpF",Ji="styles-module__columns-lg-4__gZKHW",Qi="styles-module__columns-lg-5__04nEU",eu="styles-module__columns-lg-6__cdsbL",su="styles-module__columns-lg-7__s2yv9",tu="styles-module__columns-lg-8__B1jK9",lu="styles-module__columns-lg-9__rA-9F",nu="styles-module__columns-lg-10__99khu",ou="styles-module__columns-lg-11__Wfy-H",au="styles-module__columns-lg-12__mIBrq",cu="styles-module__columns-xl-1__uxEeX",_u="styles-module__columns-xl-2__xerO3",ru="styles-module__columns-xl-3__6GLSS",du="styles-module__columns-xl-4__XYS09",iu="styles-module__columns-xl-5__4Y5e8",uu="styles-module__columns-xl-6__Qufa4",mu="styles-module__columns-xl-7__jAsJu",pu="styles-module__columns-xl-8__1BctD",yu="styles-module__columns-xl-9__HNe1-",hu="styles-module__columns-xl-10__dSLX9",gu="styles-module__columns-xl-11__KB6nJ",fu="styles-module__columns-xl-12__UvRYk",xu="styles-module__gap-none__FSY1O",bu="styles-module__gap-xs__yd0Vu",vu="styles-module__gap-sm__9o2un",$u="styles-module__gap-md__Yb5VI",ju="styles-module__gap-lg__H0Kke",Nu="styles-module__gap-xl__LDewl",wu="styles-module__gap-2xl__8nYbr",ku="styles-module__row-gap-none__JAJpj",Su="styles-module__row-gap-xs__a3tit",Cu="styles-module__row-gap-sm__72-ut",Lu="styles-module__row-gap-md__7aLU-",Iu="styles-module__row-gap-lg__1DeqX",Mu="styles-module__row-gap-xl__KsfMY",zu="styles-module__row-gap-2xl__obZGl",Du="styles-module__column-gap-none__KecTY",Tu="styles-module__column-gap-xs__k5jWZ",Bu="styles-module__column-gap-sm__QPdcs",Eu="styles-module__column-gap-md__bjSOf",Wu="styles-module__column-gap-lg__EbeJF",Ru="styles-module__column-gap-xl__5A633",Xu="styles-module__column-gap-2xl__vgLSu",Gu="styles-module__align-start__bjdHG",Vu="styles-module__align-center__yx3-m",Au="styles-module__align-end__a4IA3",Pu="styles-module__align-stretch__NyQwc",Fu="styles-module__align-baseline__XDLXG",Ou="styles-module__justify-items-start__0oBcn",Hu="styles-module__justify-items-center__nVsrc",Yu="styles-module__justify-items-end__-0L3F",qu="styles-module__justify-items-stretch__0Lw7a",Ku="styles-module__justify-content-start__AUQmN",Zu="styles-module__justify-content-center__DbeoQ",Uu="styles-module__justify-content-end__WV6jz",Ju="styles-module__justify-content-space-between__8AaIN",Qu="styles-module__justify-content-space-around__aODdb",em="styles-module__justify-content-space-evenly__L9gkw",sm="styles-module__flow-row__kRZfS",tm="styles-module__flow-column__WwpqM",lm="styles-module__flow-dense__lUpft",nm="styles-module__flow-row-dense__tF-IP",om="styles-module__flow-column-dense__GEsOK",am="styles-module__gridItem__DDjWB",cm="styles-module__col-span-1__mH-jY",_m="styles-module__col-span-2__eTM2S",rm="styles-module__col-span-3__HYpEw",dm="styles-module__col-span-4__mg-mS",im="styles-module__col-span-5__VVpGI",um="styles-module__col-span-6__SC8e-",mm="styles-module__col-span-7__Jibfe",pm="styles-module__col-span-8__qSQX1",ym="styles-module__col-span-9__95itg",hm="styles-module__col-span-10__-Ghn-",gm="styles-module__col-span-11__Jk2PJ",fm="styles-module__col-span-12__UG7o2",xm="styles-module__col-span-full__zFrNk",bm="styles-module__col-span-sm-1__Eyzeo",vm="styles-module__col-span-sm-2__qw56t",$m="styles-module__col-span-sm-3__Dwrhj",jm="styles-module__col-span-sm-4__mdKu-",Nm="styles-module__col-span-sm-5__erB04",wm="styles-module__col-span-sm-6__AN-Eo",km="styles-module__col-span-sm-7__jDZJk",Sm="styles-module__col-span-sm-8__-c6X9",Cm="styles-module__col-span-sm-9__tqIxC",Lm="styles-module__col-span-sm-10__Z4S4U",Im="styles-module__col-span-sm-11__5l3EF",Mm="styles-module__col-span-sm-12__ToxhH",zm="styles-module__col-span-sm-full__5PByZ",Dm="styles-module__col-span-md-1__2iH1s",Tm="styles-module__col-span-md-2__metsn",Bm="styles-module__col-span-md-3__ArbKb",Em="styles-module__col-span-md-4__xVXZU",Wm="styles-module__col-span-md-5__ym6rl",Rm="styles-module__col-span-md-6__peA2T",Xm="styles-module__col-span-md-7__AAm1f",Gm="styles-module__col-span-md-8__VLafy",Vm="styles-module__col-span-md-9__PWAAq",Am="styles-module__col-span-md-10__GRmCe",Pm="styles-module__col-span-md-11__M8B4R",Fm="styles-module__col-span-md-12__HGzlP",Om="styles-module__col-span-md-full__4y9gL",Hm="styles-module__col-span-lg-1__FG3dm",Ym="styles-module__col-span-lg-2__5dZiG",qm="styles-module__col-span-lg-3__oZmcU",Km="styles-module__col-span-lg-4__itdqY",Zm="styles-module__col-span-lg-5__ux3GV",Um="styles-module__col-span-lg-6__zf4Bn",Jm="styles-module__col-span-lg-7__olG9c",Qm="styles-module__col-span-lg-8__-QheZ",ep="styles-module__col-span-lg-9__ZXgY2",sp="styles-module__col-span-lg-10__bbXiL",tp="styles-module__col-span-lg-11__AQw76",lp="styles-module__col-span-lg-12__cFfHJ",np="styles-module__col-span-lg-full__IBuri",op="styles-module__col-span-xl-1__hoqul",ap="styles-module__col-span-xl-2__iTlZE",cp="styles-module__col-span-xl-3__pw3Vu",_p="styles-module__col-span-xl-4__NaUdq",rp="styles-module__col-span-xl-5__NZfk2",dp="styles-module__col-span-xl-6__piqQd",ip="styles-module__col-span-xl-7__YGer8",up="styles-module__col-span-xl-8__Dr6aM",mp="styles-module__col-span-xl-9__zyuUC",pp="styles-module__col-span-xl-10__1tCT-",yp="styles-module__col-span-xl-11__4neTT",hp="styles-module__col-span-xl-12__yqf3o",gp="styles-module__col-span-xl-full__LIPRp",fp="styles-module__row-span-1__zy3Hq",xp="styles-module__row-span-2__Z8RpU",bp="styles-module__row-span-3__JkAqM",vp="styles-module__row-span-4__X5Xkb",$p="styles-module__row-span-5__UGWBp",jp="styles-module__row-span-6__Ok7gd",Z={grid:ui,"columns-1":"styles-module__columns-1__v8SEE",columns1:mi,"columns-2":"styles-module__columns-2__Zq8Ih",columns2:pi,"columns-3":"styles-module__columns-3__-sPCq",columns3:yi,"columns-4":"styles-module__columns-4__jB2X6",columns4:hi,"columns-5":"styles-module__columns-5__WbWn4",columns5:gi,"columns-6":"styles-module__columns-6__B-cvH",columns6:fi,"columns-7":"styles-module__columns-7__C29vY",columns7:xi,"columns-8":"styles-module__columns-8__lFc3E",columns8:bi,"columns-9":"styles-module__columns-9__Rhzrn",columns9:vi,"columns-10":"styles-module__columns-10__hXu1z",columns10:$i,"columns-11":"styles-module__columns-11__LYy-7",columns11:ji,"columns-12":"styles-module__columns-12__0tALI",columns12:Ni,"columns-sm-1":"styles-module__columns-sm-1__rGPgC",columnsSm1:wi,"columns-sm-2":"styles-module__columns-sm-2__PjfNA",columnsSm2:ki,"columns-sm-3":"styles-module__columns-sm-3__-DkQI",columnsSm3:Si,"columns-sm-4":"styles-module__columns-sm-4__vtgo0",columnsSm4:Ci,"columns-sm-5":"styles-module__columns-sm-5__e91Bf",columnsSm5:Li,"columns-sm-6":"styles-module__columns-sm-6__2BPvq",columnsSm6:Ii,"columns-sm-7":"styles-module__columns-sm-7__7WSj3",columnsSm7:Mi,"columns-sm-8":"styles-module__columns-sm-8__Y1rAn",columnsSm8:zi,"columns-sm-9":"styles-module__columns-sm-9__ipGTO",columnsSm9:Di,"columns-sm-10":"styles-module__columns-sm-10__PsNnZ",columnsSm10:Ti,"columns-sm-11":"styles-module__columns-sm-11__0Xt-s",columnsSm11:Bi,"columns-sm-12":"styles-module__columns-sm-12__uDrsj",columnsSm12:Ei,"columns-md-1":"styles-module__columns-md-1__VxJSA",columnsMd1:Wi,"columns-md-2":"styles-module__columns-md-2__7Jb7M",columnsMd2:Ri,"columns-md-3":"styles-module__columns-md-3__NPgJ4",columnsMd3:Xi,"columns-md-4":"styles-module__columns-md-4__caSiE",columnsMd4:Gi,"columns-md-5":"styles-module__columns-md-5__YV-KD",columnsMd5:Vi,"columns-md-6":"styles-module__columns-md-6__eYuBW",columnsMd6:Ai,"columns-md-7":"styles-module__columns-md-7__kFwVo",columnsMd7:Pi,"columns-md-8":"styles-module__columns-md-8__--8cy",columnsMd8:Fi,"columns-md-9":"styles-module__columns-md-9__R5Q9b",columnsMd9:Oi,"columns-md-10":"styles-module__columns-md-10__-1u9i",columnsMd10:Hi,"columns-md-11":"styles-module__columns-md-11__3fWd5",columnsMd11:Yi,"columns-md-12":"styles-module__columns-md-12__6p-sc",columnsMd12:qi,"columns-lg-1":"styles-module__columns-lg-1__Us4pj",columnsLg1:Ki,"columns-lg-2":"styles-module__columns-lg-2__42pEt",columnsLg2:Zi,"columns-lg-3":"styles-module__columns-lg-3__-TIpF",columnsLg3:Ui,"columns-lg-4":"styles-module__columns-lg-4__gZKHW",columnsLg4:Ji,"columns-lg-5":"styles-module__columns-lg-5__04nEU",columnsLg5:Qi,"columns-lg-6":"styles-module__columns-lg-6__cdsbL",columnsLg6:eu,"columns-lg-7":"styles-module__columns-lg-7__s2yv9",columnsLg7:su,"columns-lg-8":"styles-module__columns-lg-8__B1jK9",columnsLg8:tu,"columns-lg-9":"styles-module__columns-lg-9__rA-9F",columnsLg9:lu,"columns-lg-10":"styles-module__columns-lg-10__99khu",columnsLg10:nu,"columns-lg-11":"styles-module__columns-lg-11__Wfy-H",columnsLg11:ou,"columns-lg-12":"styles-module__columns-lg-12__mIBrq",columnsLg12:au,"columns-xl-1":"styles-module__columns-xl-1__uxEeX",columnsXl1:cu,"columns-xl-2":"styles-module__columns-xl-2__xerO3",columnsXl2:_u,"columns-xl-3":"styles-module__columns-xl-3__6GLSS",columnsXl3:ru,"columns-xl-4":"styles-module__columns-xl-4__XYS09",columnsXl4:du,"columns-xl-5":"styles-module__columns-xl-5__4Y5e8",columnsXl5:iu,"columns-xl-6":"styles-module__columns-xl-6__Qufa4",columnsXl6:uu,"columns-xl-7":"styles-module__columns-xl-7__jAsJu",columnsXl7:mu,"columns-xl-8":"styles-module__columns-xl-8__1BctD",columnsXl8:pu,"columns-xl-9":"styles-module__columns-xl-9__HNe1-",columnsXl9:yu,"columns-xl-10":"styles-module__columns-xl-10__dSLX9",columnsXl10:hu,"columns-xl-11":"styles-module__columns-xl-11__KB6nJ",columnsXl11:gu,"columns-xl-12":"styles-module__columns-xl-12__UvRYk",columnsXl12:fu,"gap-none":"styles-module__gap-none__FSY1O",gapNone:xu,"gap-xs":"styles-module__gap-xs__yd0Vu",gapXs:bu,"gap-sm":"styles-module__gap-sm__9o2un",gapSm:vu,"gap-md":"styles-module__gap-md__Yb5VI",gapMd:$u,"gap-lg":"styles-module__gap-lg__H0Kke",gapLg:ju,"gap-xl":"styles-module__gap-xl__LDewl",gapXl:Nu,"gap-2xl":"styles-module__gap-2xl__8nYbr",gap2Xl:wu,"row-gap-none":"styles-module__row-gap-none__JAJpj",rowGapNone:ku,"row-gap-xs":"styles-module__row-gap-xs__a3tit",rowGapXs:Su,"row-gap-sm":"styles-module__row-gap-sm__72-ut",rowGapSm:Cu,"row-gap-md":"styles-module__row-gap-md__7aLU-",rowGapMd:Lu,"row-gap-lg":"styles-module__row-gap-lg__1DeqX",rowGapLg:Iu,"row-gap-xl":"styles-module__row-gap-xl__KsfMY",rowGapXl:Mu,"row-gap-2xl":"styles-module__row-gap-2xl__obZGl",rowGap2Xl:zu,"column-gap-none":"styles-module__column-gap-none__KecTY",columnGapNone:Du,"column-gap-xs":"styles-module__column-gap-xs__k5jWZ",columnGapXs:Tu,"column-gap-sm":"styles-module__column-gap-sm__QPdcs",columnGapSm:Bu,"column-gap-md":"styles-module__column-gap-md__bjSOf",columnGapMd:Eu,"column-gap-lg":"styles-module__column-gap-lg__EbeJF",columnGapLg:Wu,"column-gap-xl":"styles-module__column-gap-xl__5A633",columnGapXl:Ru,"column-gap-2xl":"styles-module__column-gap-2xl__vgLSu",columnGap2Xl:Xu,"align-start":"styles-module__align-start__bjdHG",alignStart:Gu,"align-center":"styles-module__align-center__yx3-m",alignCenter:Vu,"align-end":"styles-module__align-end__a4IA3",alignEnd:Au,"align-stretch":"styles-module__align-stretch__NyQwc",alignStretch:Pu,"align-baseline":"styles-module__align-baseline__XDLXG",alignBaseline:Fu,"justify-items-start":"styles-module__justify-items-start__0oBcn",justifyItemsStart:Ou,"justify-items-center":"styles-module__justify-items-center__nVsrc",justifyItemsCenter:Hu,"justify-items-end":"styles-module__justify-items-end__-0L3F",justifyItemsEnd:Yu,"justify-items-stretch":"styles-module__justify-items-stretch__0Lw7a",justifyItemsStretch:qu,"justify-content-start":"styles-module__justify-content-start__AUQmN",justifyContentStart:Ku,"justify-content-center":"styles-module__justify-content-center__DbeoQ",justifyContentCenter:Zu,"justify-content-end":"styles-module__justify-content-end__WV6jz",justifyContentEnd:Uu,"justify-content-space-between":"styles-module__justify-content-space-between__8AaIN",justifyContentSpaceBetween:Ju,"justify-content-space-around":"styles-module__justify-content-space-around__aODdb",justifyContentSpaceAround:Qu,"justify-content-space-evenly":"styles-module__justify-content-space-evenly__L9gkw",justifyContentSpaceEvenly:em,"flow-row":"styles-module__flow-row__kRZfS",flowRow:sm,"flow-column":"styles-module__flow-column__WwpqM",flowColumn:tm,"flow-dense":"styles-module__flow-dense__lUpft",flowDense:lm,"flow-row-dense":"styles-module__flow-row-dense__tF-IP",flowRowDense:nm,"flow-column-dense":"styles-module__flow-column-dense__GEsOK",flowColumnDense:om,gridItem:am,"col-span-1":"styles-module__col-span-1__mH-jY",colSpan1:cm,"col-span-2":"styles-module__col-span-2__eTM2S",colSpan2:_m,"col-span-3":"styles-module__col-span-3__HYpEw",colSpan3:rm,"col-span-4":"styles-module__col-span-4__mg-mS",colSpan4:dm,"col-span-5":"styles-module__col-span-5__VVpGI",colSpan5:im,"col-span-6":"styles-module__col-span-6__SC8e-",colSpan6:um,"col-span-7":"styles-module__col-span-7__Jibfe",colSpan7:mm,"col-span-8":"styles-module__col-span-8__qSQX1",colSpan8:pm,"col-span-9":"styles-module__col-span-9__95itg",colSpan9:ym,"col-span-10":"styles-module__col-span-10__-Ghn-",colSpan10:hm,"col-span-11":"styles-module__col-span-11__Jk2PJ",colSpan11:gm,"col-span-12":"styles-module__col-span-12__UG7o2",colSpan12:fm,"col-span-full":"styles-module__col-span-full__zFrNk",colSpanFull:xm,"col-span-sm-1":"styles-module__col-span-sm-1__Eyzeo",colSpanSm1:bm,"col-span-sm-2":"styles-module__col-span-sm-2__qw56t",colSpanSm2:vm,"col-span-sm-3":"styles-module__col-span-sm-3__Dwrhj",colSpanSm3:$m,"col-span-sm-4":"styles-module__col-span-sm-4__mdKu-",colSpanSm4:jm,"col-span-sm-5":"styles-module__col-span-sm-5__erB04",colSpanSm5:Nm,"col-span-sm-6":"styles-module__col-span-sm-6__AN-Eo",colSpanSm6:wm,"col-span-sm-7":"styles-module__col-span-sm-7__jDZJk",colSpanSm7:km,"col-span-sm-8":"styles-module__col-span-sm-8__-c6X9",colSpanSm8:Sm,"col-span-sm-9":"styles-module__col-span-sm-9__tqIxC",colSpanSm9:Cm,"col-span-sm-10":"styles-module__col-span-sm-10__Z4S4U",colSpanSm10:Lm,"col-span-sm-11":"styles-module__col-span-sm-11__5l3EF",colSpanSm11:Im,"col-span-sm-12":"styles-module__col-span-sm-12__ToxhH",colSpanSm12:Mm,"col-span-sm-full":"styles-module__col-span-sm-full__5PByZ",colSpanSmFull:zm,"col-span-md-1":"styles-module__col-span-md-1__2iH1s",colSpanMd1:Dm,"col-span-md-2":"styles-module__col-span-md-2__metsn",colSpanMd2:Tm,"col-span-md-3":"styles-module__col-span-md-3__ArbKb",colSpanMd3:Bm,"col-span-md-4":"styles-module__col-span-md-4__xVXZU",colSpanMd4:Em,"col-span-md-5":"styles-module__col-span-md-5__ym6rl",colSpanMd5:Wm,"col-span-md-6":"styles-module__col-span-md-6__peA2T",colSpanMd6:Rm,"col-span-md-7":"styles-module__col-span-md-7__AAm1f",colSpanMd7:Xm,"col-span-md-8":"styles-module__col-span-md-8__VLafy",colSpanMd8:Gm,"col-span-md-9":"styles-module__col-span-md-9__PWAAq",colSpanMd9:Vm,"col-span-md-10":"styles-module__col-span-md-10__GRmCe",colSpanMd10:Am,"col-span-md-11":"styles-module__col-span-md-11__M8B4R",colSpanMd11:Pm,"col-span-md-12":"styles-module__col-span-md-12__HGzlP",colSpanMd12:Fm,"col-span-md-full":"styles-module__col-span-md-full__4y9gL",colSpanMdFull:Om,"col-span-lg-1":"styles-module__col-span-lg-1__FG3dm",colSpanLg1:Hm,"col-span-lg-2":"styles-module__col-span-lg-2__5dZiG",colSpanLg2:Ym,"col-span-lg-3":"styles-module__col-span-lg-3__oZmcU",colSpanLg3:qm,"col-span-lg-4":"styles-module__col-span-lg-4__itdqY",colSpanLg4:Km,"col-span-lg-5":"styles-module__col-span-lg-5__ux3GV",colSpanLg5:Zm,"col-span-lg-6":"styles-module__col-span-lg-6__zf4Bn",colSpanLg6:Um,"col-span-lg-7":"styles-module__col-span-lg-7__olG9c",colSpanLg7:Jm,"col-span-lg-8":"styles-module__col-span-lg-8__-QheZ",colSpanLg8:Qm,"col-span-lg-9":"styles-module__col-span-lg-9__ZXgY2",colSpanLg9:ep,"col-span-lg-10":"styles-module__col-span-lg-10__bbXiL",colSpanLg10:sp,"col-span-lg-11":"styles-module__col-span-lg-11__AQw76",colSpanLg11:tp,"col-span-lg-12":"styles-module__col-span-lg-12__cFfHJ",colSpanLg12:lp,"col-span-lg-full":"styles-module__col-span-lg-full__IBuri",colSpanLgFull:np,"col-span-xl-1":"styles-module__col-span-xl-1__hoqul",colSpanXl1:op,"col-span-xl-2":"styles-module__col-span-xl-2__iTlZE",colSpanXl2:ap,"col-span-xl-3":"styles-module__col-span-xl-3__pw3Vu",colSpanXl3:cp,"col-span-xl-4":"styles-module__col-span-xl-4__NaUdq",colSpanXl4:_p,"col-span-xl-5":"styles-module__col-span-xl-5__NZfk2",colSpanXl5:rp,"col-span-xl-6":"styles-module__col-span-xl-6__piqQd",colSpanXl6:dp,"col-span-xl-7":"styles-module__col-span-xl-7__YGer8",colSpanXl7:ip,"col-span-xl-8":"styles-module__col-span-xl-8__Dr6aM",colSpanXl8:up,"col-span-xl-9":"styles-module__col-span-xl-9__zyuUC",colSpanXl9:mp,"col-span-xl-10":"styles-module__col-span-xl-10__1tCT-",colSpanXl10:pp,"col-span-xl-11":"styles-module__col-span-xl-11__4neTT",colSpanXl11:yp,"col-span-xl-12":"styles-module__col-span-xl-12__yqf3o",colSpanXl12:hp,"col-span-xl-full":"styles-module__col-span-xl-full__LIPRp",colSpanXlFull:gp,"row-span-1":"styles-module__row-span-1__zy3Hq",rowSpan1:fp,"row-span-2":"styles-module__row-span-2__Z8RpU",rowSpan2:xp,"row-span-3":"styles-module__row-span-3__JkAqM",rowSpan3:bp,"row-span-4":"styles-module__row-span-4__X5Xkb",rowSpan4:vp,"row-span-5":"styles-module__row-span-5__UGWBp",rowSpan5:$p,"row-span-6":"styles-module__row-span-6__Ok7gd",rowSpan6:jp};function us({columns:s=12,columnsSm:t,columnsMd:n,columnsLg:l,columnsXl:a,gap:o="md",rowGap:c,columnGap:d,alignItems:r,justifyItems:_,justifyContent:i,autoFlow:m,className:v="",children:h,...$}){const u=[Z.grid,Z[`columns-${s}`],t&&Z[`columns-sm-${t}`],n&&Z[`columns-md-${n}`],l&&Z[`columns-lg-${l}`],a&&Z[`columns-xl-${a}`],Z[`gap-${o}`],c&&Z[`row-gap-${c}`],d&&Z[`column-gap-${d}`],r&&Z[`align-${r}`],_&&Z[`justify-items-${_}`],i&&Z[`justify-content-${i}`],m&&Z[`flow-${m}`],v].filter(Boolean).join(" ");return e.jsx("div",{className:u,...$,children:h})}function ms({colSpan:s,colSpanSm:t,colSpanMd:n,colSpanLg:l,colSpanXl:a,rowSpan:o,colStart:c,colEnd:d,rowStart:r,rowEnd:_,className:i="",children:m,...v}){const h=[Z.gridItem,s&&Z[`col-span-${s}`],t&&Z[`col-span-sm-${t}`],n&&Z[`col-span-md-${n}`],l&&Z[`col-span-lg-${l}`],a&&Z[`col-span-xl-${a}`],o&&Z[`row-span-${o}`],i].filter(Boolean).join(" "),$={};return c&&($.gridColumnStart=c),d&&($.gridColumnEnd=d),r&&($.gridRowStart=r),_&&($.gridRowEnd=_),e.jsx("div",{className:h,style:$,...v,children:m})}us.Item=ms;const Np="styles-module__container__VdOF1",wp="styles-module__centered__VnHGF",kp="styles-module__size-xs__-MEhp",Sp="styles-module__size-sm__ZuE4A",Cp="styles-module__size-md__piQ0Z",Lp="styles-module__size-lg__Grr0V",Ip="styles-module__size-xl__aBZcL",Mp="styles-module__size-2xl__qimqK",zp="styles-module__size-full__02jid",Dp="styles-module__fluid__yUjnw",Tp="styles-module__padding-none__BoJqT",Bp="styles-module__padding-sm__jnwGB",Ep="styles-module__padding-md__awpVn",Wp="styles-module__padding-lg__rnErD",Rp="styles-module__padding-xl__vpDQ1",Ke={container:Np,centered:wp,"size-xs":"styles-module__size-xs__-MEhp",sizeXs:kp,"size-sm":"styles-module__size-sm__ZuE4A",sizeSm:Sp,"size-md":"styles-module__size-md__piQ0Z",sizeMd:Cp,"size-lg":"styles-module__size-lg__Grr0V",sizeLg:Lp,"size-xl":"styles-module__size-xl__aBZcL",sizeXl:Ip,"size-2xl":"styles-module__size-2xl__qimqK",size2Xl:Mp,"size-full":"styles-module__size-full__02jid",sizeFull:zp,fluid:Dp,"padding-none":"styles-module__padding-none__BoJqT",paddingNone:Tp,"padding-sm":"styles-module__padding-sm__jnwGB",paddingSm:Bp,"padding-md":"styles-module__padding-md__awpVn",paddingMd:Ep,"padding-lg":"styles-module__padding-lg__rnErD",paddingLg:Wp,"padding-xl":"styles-module__padding-xl__vpDQ1",paddingXl:Rp};function Xp({size:s="lg",padding:t="md",centered:n=!0,fluid:l=!1,className:a="",children:o,...c}){const d=[Ke.container,!l&&Ke[`size-${s}`],Ke[`padding-${t}`],n&&Ke.centered,l&&Ke.fluid,a].filter(Boolean).join(" ");return e.jsx("div",{className:d,...c,children:o})}const Gp="styles-module__spacer__qss6j",Vp="styles-module__axis-vertical__3Kgfw",Ap="styles-module__size-xs__SaVUa",Pp="styles-module__size-sm__UBNV3",Fp="styles-module__size-md__yESLg",Op="styles-module__size-lg__vQTo6",Hp="styles-module__size-xl__xnHrI",Yp="styles-module__size-2xl__3-kBv",qp="styles-module__size-3xl__CLpLD",Kp="styles-module__size-4xl__JaQzV",Zp="styles-module__axis-horizontal__zztIj",Up="styles-module__axis-both__1qVsg",ns={spacer:Gp,"axis-vertical":"styles-module__axis-vertical__3Kgfw",axisVertical:Vp,"size-xs":"styles-module__size-xs__SaVUa",sizeXs:Ap,"size-sm":"styles-module__size-sm__UBNV3",sizeSm:Pp,"size-md":"styles-module__size-md__yESLg",sizeMd:Fp,"size-lg":"styles-module__size-lg__vQTo6",sizeLg:Op,"size-xl":"styles-module__size-xl__xnHrI",sizeXl:Hp,"size-2xl":"styles-module__size-2xl__3-kBv",size2Xl:Yp,"size-3xl":"styles-module__size-3xl__CLpLD",size3Xl:qp,"size-4xl":"styles-module__size-4xl__JaQzV",size4Xl:Kp,"axis-horizontal":"styles-module__axis-horizontal__zztIj",axisHorizontal:Zp,"axis-both":"styles-module__axis-both__1qVsg",axisBoth:Up};function Jp({size:s="md",axis:t="vertical",spacing:n,className:l=""}){const a=[ns.spacer,ns[`size-${s}`],ns[`axis-${t}`],l].filter(Boolean).join(" "),o={};if(n!==void 0){const c=typeof n=="number"?`${n}px`:n;switch(t){case"horizontal":o.width=c,o.height=0;break;case"vertical":o.height=c,o.width=0;break;case"both":o.width=c,o.height=c;break}}return e.jsx("div",{className:a,style:o,"aria-hidden":"true"})}const Qp="styles-module__skeleton__IE-Vu",ey="styles-module__animation-pulse__aYSI1",sy="styles-module__pulse__8b7Cb",ty="styles-module__animation-wave__88ZQe",ly="styles-module__wave__5-OJD",ny="styles-module__variant-text__QpDWV",oy="styles-module__variant-circular__3X6OU",ay="styles-module__variant-rectangular__bDGYd",cy="styles-module__variant-rounded__5rsz7",_y="styles-module__textGroup__djF5j",Je={skeleton:Qp,"animation-pulse":"styles-module__animation-pulse__aYSI1",animationPulse:ey,pulse:sy,"animation-wave":"styles-module__animation-wave__88ZQe",animationWave:ty,wave:ly,"variant-text":"styles-module__variant-text__QpDWV",variantText:ny,"variant-circular":"styles-module__variant-circular__3X6OU",variantCircular:oy,"variant-rectangular":"styles-module__variant-rectangular__bDGYd",variantRectangular:ay,"variant-rounded":"styles-module__variant-rounded__5rsz7",variantRounded:cy,textGroup:_y};function Re({variant:s="text",width:t,height:n,animation:l="pulse",className:a="",lines:o=1,...c}){const d=()=>{const _={};return t!==void 0&&(_.width=typeof t=="number"?`${t}px`:t),n!==void 0&&(_.height=typeof n=="number"?`${n}px`:n),_},r=[Je.skeleton,Je[`variant-${s}`],l!=="none"&&Je[`animation-${l}`],a].filter(Boolean).join(" ");return s==="text"&&o>1?e.jsx("div",{className:Je.textGroup,...c,children:Array.from({length:o},(_,i)=>e.jsx("div",{className:r,style:{...d(),...i===o-1&&{width:t||"80%"}}},i))}):e.jsx("div",{className:r,style:d(),...c})}function ps({lines:s=3,...t}){return e.jsx(Re,{variant:"text",lines:s,...t})}function ys({size:s=40,...t}){return e.jsx(Re,{variant:"circular",width:s,height:s,...t})}function hs({width:s="100%",height:t=200,...n}){return e.jsx(Re,{variant:"rectangular",width:s,height:t,...n})}Re.Text=ps;Re.Circle=ys;Re.Rectangle=hs;const ry="styles-module__videoContainer__3jwCO",dy="styles-module__video__i5zru",iy="styles-module__aspect-16-9__1C9zz",uy="styles-module__aspect-4-3__d-QMp",my="styles-module__aspect-1-1__pNYYM",py="styles-module__aspect-21-9__h138i",os={videoContainer:ry,video:dy,"aspect-16-9":"styles-module__aspect-16-9__1C9zz",aspect169:iy,"aspect-4-3":"styles-module__aspect-4-3__d-QMp",aspect43:uy,"aspect-1-1":"styles-module__aspect-1-1__pNYYM",aspect11:my,"aspect-21-9":"styles-module__aspect-21-9__h138i",aspect219:py},gs=p.forwardRef(({src:s,sources:t,poster:n,aspectRatio:l="16:9",controls:a=!0,autoPlay:o=!1,loop:c=!1,muted:d=!1,playsInline:r=!0,width:_,height:i,className:m="",loading:v="lazy",onError:h,...$},u)=>{const N={};_&&(N.width=typeof _=="number"?`${_}px`:_),i&&(N.height=typeof i=="number"?`${i}px`:i);const b=[os.videoContainer,l!=="auto"&&os[`aspect-${l.replace(":","-")}`],m].filter(Boolean).join(" ");return e.jsx("div",{className:b,style:N,children:e.jsxs("video",{ref:u,className:os.video,controls:a,autoPlay:o,loop:c,muted:d,playsInline:r,poster:n,onError:h,...$,children:[t&&t.length>0?t.map((y,w)=>e.jsx("source",{src:y.src,type:y.type},w)):e.jsx("source",{src:s}),"Your browser does not support the video tag."]})})});gs.displayName="Video";const yy="styles-module__audioContainer__16H-K",hy="styles-module__audio__Mq-EL",gy="styles-module__metadata__avzvt",fy="styles-module__coverArt__uvMH0",xy="styles-module__info__yWEjQ",by="styles-module__title__zSubd",vy="styles-module__artist__YDHxr",$y="styles-module__album__15liA",jy="styles-module__variant-minimal__kn0IV",Ny="styles-module__variant-standard__aqKxT",wy="styles-module__variant-detailed__jUpfp",ke={audioContainer:yy,audio:hy,metadata:gy,coverArt:fy,info:xy,title:by,artist:vy,album:$y,"variant-minimal":"styles-module__variant-minimal__kn0IV",variantMinimal:jy,"variant-standard":"styles-module__variant-standard__aqKxT",variantStandard:Ny,"variant-detailed":"styles-module__variant-detailed__jUpfp",variantDetailed:wy},fs=p.forwardRef(({src:s,sources:t,title:n,artist:l,album:a,coverArt:o,variant:c="standard",controls:d=!0,autoPlay:r=!1,loop:_=!1,muted:i=!1,preload:m="metadata",className:v="",onError:h,onPlay:$,onPause:u,onEnded:N,...b},y)=>{const w=[ke.audioContainer,ke[`variant-${c}`],v].filter(Boolean).join(" "),L=n||l||a||o;return e.jsxs("div",{className:w,children:[L&&c!=="minimal"&&e.jsxs("div",{className:ke.metadata,children:[o&&e.jsx("div",{className:ke.coverArt,children:e.jsx("img",{src:o,alt:n||"Cover art"})}),e.jsxs("div",{className:ke.info,children:[n&&e.jsx("div",{className:ke.title,children:n}),l&&e.jsx("div",{className:ke.artist,children:l}),a&&c==="detailed"&&e.jsx("div",{className:ke.album,children:a})]})]}),e.jsxs("audio",{ref:y,className:ke.audio,controls:d,autoPlay:r,loop:_,muted:i,preload:m,onError:h,onPlay:$,onPause:u,onEnded:N,...b,children:[t&&t.length>0?t.map((x,k)=>e.jsx("source",{src:x.src,type:x.type},k)):e.jsx("source",{src:s}),"Your browser does not support the audio tag."]})]})});fs.displayName="Audio";const ky="styles-module__tagInputContainer__rG-TN",Sy="styles-module__fullWidth__nfUqH",Cy="styles-module__label__r7qNM",Ly="styles-module__inputWrapper__lb9-U",Iy="styles-module__disabled__DJG6N",My="styles-module__sm__f1Ha1",zy="styles-module__lg__bmnGH",Dy="styles-module__error__Gtr32",Ty="styles-module__success__SgWLH",By="styles-module__tagsContainer__9dKnO",Ey="styles-module__tag__UTkfA",Wy="styles-module__tagLabel__koIV7",Ry="styles-module__removeButton__4LMvA",Xy="styles-module__input__G3wtc",Gy="styles-module__helperText__G6VBC",Vy="styles-module__errorText__LPcTb",le={tagInputContainer:ky,fullWidth:Sy,label:Cy,inputWrapper:Ly,disabled:Iy,sm:My,lg:zy,error:Dy,success:Ty,tagsContainer:By,tag:Ey,tagLabel:Wy,removeButton:Ry,input:Xy,helperText:Gy,errorText:Vy};function Ay({tags:s=[],onChange:t,onTagAdd:n,onTagRemove:l,placeholder:a="Add tags...",label:o,error:c,helperText:d,size:r="md",variant:_="default",disabled:i=!1,maxTags:m,separators:v=["Enter",","],allowDuplicates:h=!1,validate:$,removable:u=!0,fullWidth:N=!1,className:b=""}){const[y,w]=p.useState(""),L=p.useRef(null),x=c?"error":_,k=g=>{const j=g.trim();if(!j||m&&s.length>=m||!h&&s.some(K=>K.label.toLowerCase()===j.toLowerCase())||$&&!$(j))return;const C={id:`${Date.now()}-${Math.random()}`,label:j},E=[...s,C];t?.(E),n?.(C),w("")},D=g=>{if(!u||i)return;const j=s.filter(C=>C.id!==g.id);t?.(j),l?.(g)},M=g=>{const j=y.trim();if(v.includes(g.key)){g.preventDefault(),k(j);return}g.key==="Backspace"&&!y&&s.length>0&&u&&(g.preventDefault(),D(s[s.length-1]))},P=g=>{const j=g.target.value;if(v.includes(",")&&j.includes(",")){const C=j.split(",");C.slice(0,-1).forEach(E=>k(E)),w(C[C.length-1])}else w(j)},R=()=>{L.current?.focus()},B=[le.tagInputContainer,N&&le.fullWidth,b].filter(Boolean).join(" "),O=[le.inputWrapper,le[r],le[x],i&&le.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:B,children:[o&&e.jsx("label",{className:le.label,children:o}),e.jsx("div",{className:O,onClick:R,children:e.jsxs("div",{className:le.tagsContainer,children:[s.map(g=>e.jsxs("div",{className:le.tag,children:[e.jsx("span",{className:le.tagLabel,children:g.label}),u&&!i&&e.jsx("button",{type:"button",className:le.removeButton,onClick:j=>{j.stopPropagation(),D(g)},"aria-label":`Remove ${g.label}`,children:"×"})]},g.id)),(!m||s.length<m)&&e.jsx("input",{ref:L,type:"text",className:le.input,value:y,onChange:P,onKeyDown:M,onBlur:()=>{y.trim()&&k(y)},placeholder:s.length===0?a:"",disabled:i})]})}),(c||d)&&e.jsx("span",{className:`${le.helperText} ${c?le.errorText:""}`,children:c||d})]})}const Py="styles-module__pinInputContainer__A-JES",Fy="styles-module__label__oTDys",Oy="styles-module__inputsWrapper__kkWw4",Hy="styles-module__pinInput__98qy7",Yy="styles-module__sm__soj3i",qy="styles-module__lg__i9e56",Ky="styles-module__error__n5-a4",Zy="styles-module__success__P-ASa",Uy="styles-module__masked__DP3X2",Jy="styles-module__helperText__1DBEi",Qy="styles-module__errorText__Hr-Sq",he={pinInputContainer:Py,label:Fy,inputsWrapper:Oy,pinInput:Hy,sm:Yy,lg:qy,error:Ky,success:Zy,masked:Uy,helperText:Jy,errorText:Qy};function eh({length:s=6,type:t="numeric",size:n="md",variant:l="default",mask:a=!1,autoFocus:o=!1,disabled:c=!1,placeholder:d="",label:r,error:_,helperText:i,onChange:m,onComplete:v,value:h,defaultValue:$="",selectOnFocus:u=!0,className:N=""}){const[b,y]=p.useState(h?.split("")||$.split("").slice(0,s)||Array(s).fill("")),w=p.useRef([]),L=_?"error":l;p.useEffect(()=>{if(h!==void 0){const g=h.split("").slice(0,s);for(;g.length<s;)g.push("");y(g)}},[h,s]),p.useEffect(()=>{o&&w.current[0]&&w.current[0].focus()},[o]);const x=g=>{if(!g)return!0;switch(t){case"numeric":return/^\d$/.test(g);case"alphabetic":return/^[a-zA-Z]$/.test(g);case"alphanumeric":return/^[a-zA-Z0-9]$/.test(g);default:return!0}},k=g=>{w.current[g]&&(w.current[g]?.focus(),u&&w.current[g]?.select())},D=(g,j)=>{const C=j.slice(-1);if(j&&!x(C))return;const E=[...b];E[g]=C,y(E);const K=E.join("");m?.(K),C&&g<s-1&&k(g+1),E.every(W=>W!=="")&&v?.(K)},M=(g,j)=>{if(j.key==="Backspace"){j.preventDefault();const C=[...b];b[g]?(C[g]="",y(C),m?.(C.join(""))):g>0&&(C[g-1]="",y(C),m?.(C.join("")),k(g-1))}if(j.key==="Delete"){j.preventDefault();const C=[...b];C[g]="",y(C),m?.(C.join(""))}j.key==="ArrowLeft"&&g>0&&(j.preventDefault(),k(g-1)),j.key==="ArrowRight"&&g<s-1&&(j.preventDefault(),k(g+1)),j.key==="Home"&&(j.preventDefault(),k(0)),j.key==="End"&&(j.preventDefault(),k(s-1))},P=g=>{g.preventDefault();const C=g.clipboardData.getData("text").slice(0,s).split("").filter(x),E=[...b];C.forEach((W,S)=>{S<s&&(E[S]=W)}),y(E),m?.(E.join(""));const K=E.findIndex(W=>!W);k(K===-1?s-1:K),E.every(W=>W!=="")&&v?.(E.join(""))},R=g=>{u&&w.current[g]&&w.current[g]?.select()},B=[he.pinInputContainer,N].filter(Boolean).join(" "),O=[he.pinInput,he[n],he[L],a&&he.masked,c&&he.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:B,children:[r&&e.jsx("label",{className:he.label,children:r}),e.jsx("div",{className:he.inputsWrapper,children:Array.from({length:s}).map((g,j)=>e.jsx("input",{ref:C=>w.current[j]=C,type:a?"password":"text",inputMode:t==="numeric"?"numeric":"text",maxLength:1,value:b[j]||"",onChange:C=>D(j,C.target.value),onKeyDown:C=>M(j,C),onPaste:P,onFocus:()=>R(j),disabled:c,placeholder:d,className:O,"aria-label":`PIN digit ${j+1}`},j))}),(_||i)&&e.jsx("span",{className:`${he.helperText} ${_?he.errorText:""}`,children:_||i})]})}const sh="styles-module__ratingContainer__F0pJb",th="styles-module__label__P8tLy",lh="styles-module__ratingWrapper__vNfnc",nh="styles-module__rating__NcjYB",oh="styles-module__star__1LgQx",ah="styles-module__sm__KTEVu",ch="styles-module__md__vRYlw",_h="styles-module__lg__NoGC1",rh="styles-module__readOnly__yNpwH",dh="styles-module__disabled__cME0J",ih="styles-module__valueDisplay__KxK-j",uh="styles-module__helperText__-Dh55",ge={ratingContainer:sh,label:th,ratingWrapper:lh,rating:nh,star:oh,sm:ah,md:ch,lg:_h,readOnly:rh,disabled:dh,valueDisplay:ih,helperText:uh};function mh({value:s,defaultValue:t=0,max:n=5,precision:l=1,size:a="md",readOnly:o=!1,disabled:c=!1,label:d,showValue:r=!1,emptyIcon:_,filledIcon:i,halfIcon:m,onChange:v,onHoverChange:h,className:$="",helperText:u}){const[N,b]=p.useState(t),[y,w]=p.useState(null),L=s!==void 0?s:N,x=y!==null?y:L,k=!o&&!c,D=g=>{if(!k)return;const j=L===g?0:g;s===void 0&&b(j),v?.(j)},M=(g,j)=>{if(k)if(l===.5){const{left:C,width:E}=j.currentTarget.getBoundingClientRect(),K=(j.clientX-C)/E,W=g+(K>.5?1:.5);w(W),h?.(W)}else{const C=g+1;w(C),h?.(C)}},P=()=>{k&&(w(null),h?.(0))},R=g=>{const j=g+1,C=x>=j,E=l===.5&&x>=j-.5&&x<j;return C?i||"★":E?m||"⯨":_||"☆"},B=[ge.ratingContainer,$].filter(Boolean).join(" "),O=[ge.rating,ge[a],c&&ge.disabled,o&&ge.readOnly].filter(Boolean).join(" ");return e.jsxs("div",{className:B,children:[d&&e.jsx("label",{className:ge.label,children:d}),e.jsxs("div",{className:ge.ratingWrapper,children:[e.jsx("div",{className:O,onMouseLeave:P,children:Array.from({length:n},(g,j)=>e.jsx("button",{type:"button",className:ge.star,onClick:()=>D(j+1),onMouseMove:C=>M(j,C),disabled:c,"aria-label":`Rate ${j+1} out of ${n}`,children:R(j)},j))}),r&&e.jsxs("span",{className:ge.valueDisplay,children:[x.toFixed(l===.5?1:0)," / ",n]})]}),u&&e.jsx("span",{className:ge.helperText,children:u})]})}const ph="styles-module__window__kkIRc",yh="styles-module__maximized__8yMaC",hh="styles-module__resizable__sHn40",gh="styles-module__size-sm__yjumC",fh="styles-module__size-md__kavLf",xh="styles-module__size-lg__IBW3e",bh="styles-module__size-xl__9yXK2",vh="styles-module__size-full__AEyyM",$h="styles-module__variant-default__fGFvQ",jh="styles-module__variant-dark__4x4Z6",Nh="styles-module__variant-light__ruY9H",wh="styles-module__titleBar__q4Nxs",kh="styles-module__draggable__AmUbi",Sh="styles-module__titleBarContent__blnTu",Ch="styles-module__title__muIAe",Lh="styles-module__toolbar__3bLH-",Ih="styles-module__controls__nFGhQ",Mh="styles-module__control__qiMAt",zh="styles-module__minimize__zGRY6",Dh="styles-module__maximize__SuZ8f",Th="styles-module__close__PVa1W",Bh="styles-module__content__ABsnm",Eh="styles-module__footer__g5GSG",U={window:ph,maximized:yh,resizable:hh,"size-sm":"styles-module__size-sm__yjumC",sizeSm:gh,"size-md":"styles-module__size-md__kavLf",sizeMd:fh,"size-lg":"styles-module__size-lg__IBW3e",sizeLg:xh,"size-xl":"styles-module__size-xl__9yXK2",sizeXl:bh,"size-full":"styles-module__size-full__AEyyM",sizeFull:vh,"variant-default":"styles-module__variant-default__fGFvQ",variantDefault:$h,"variant-dark":"styles-module__variant-dark__4x4Z6",variantDark:jh,"variant-light":"styles-module__variant-light__ruY9H",variantLight:Nh,titleBar:wh,draggable:kh,titleBarContent:Sh,title:Ch,toolbar:Lh,controls:Ih,control:Mh,minimize:zh,maximize:Dh,close:Th,content:Bh,footer:Eh};function Wh({title:s="Window",size:t="md",variant:n="default",open:l=!0,closable:a=!0,minimizable:o=!1,maximizable:c=!0,resizable:d=!1,draggable:r=!0,onClose:_,onMinimize:i,onMaximize:m,width:v,height:h,initialX:$=0,initialY:u=0,children:N,className:b="",showControls:y=!0,toolbar:w,footer:L}){const[x,k]=p.useState(!1),[D,M]=p.useState({x:$,y:u}),[P,R]=p.useState(!1),[B,O]=p.useState({x:0,y:0}),g=p.useRef(null);if(!l)return null;const j=f=>{!r||x||(R(!0),O({x:f.clientX-D.x,y:f.clientY-D.y}))},C=f=>{P&&M({x:f.clientX-B.x,y:f.clientY-B.y})},E=()=>{R(!1)};p.useEffect(()=>{if(P)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)}},[P,B]);const K=()=>{k(!x),m?.()},W={};!x&&r&&(W.transform=`translate(${D.x}px, ${D.y}px)`),v&&(W.width=typeof v=="number"?`${v}px`:v),h&&(W.height=typeof h=="number"?`${h}px`:h);const S=[U.window,U[`size-${t}`],U[`variant-${n}`],x&&U.maximized,d&&U.resizable,b].filter(Boolean).join(" ");return e.jsxs("div",{ref:g,className:S,style:W,children:[e.jsxs("div",{className:`${U.titleBar} ${r&&!x?U.draggable:""}`,onMouseDown:j,children:[e.jsxs("div",{className:U.titleBarContent,children:[e.jsx("span",{className:U.title,children:s}),w&&e.jsx("div",{className:U.toolbar,children:w})]}),y&&e.jsxs("div",{className:U.controls,children:[o&&e.jsx("button",{type:"button",className:`${U.control} ${U.minimize}`,onClick:i,"aria-label":"Minimize",children:"−"}),c&&e.jsx("button",{type:"button",className:`${U.control} ${U.maximize}`,onClick:K,"aria-label":x?"Restore":"Maximize",children:x?"⧉":"□"}),a&&e.jsx("button",{type:"button",className:`${U.control} ${U.close}`,onClick:_,"aria-label":"Close",children:"×"})]})]}),e.jsx("div",{className:U.content,children:N}),L&&e.jsx("div",{className:U.footer,children:L})]})}const Rh="styles-module__gaugeContainer__BnFBJ",Xh="styles-module__svg__IOyJ8",Gh="styles-module__animatedPath__MmF1n",Vh="styles-module__gaugeAnimation__Hxuof",Ah="styles-module__centerText__-aFc6",Ph="styles-module__value__f21LN",Fh="styles-module__unit__f4531",Oh="styles-module__label__3mWKl",Hh="styles-module__minMaxLabels__Zc16l",Yh="styles-module__minLabel__gGD9N",qh="styles-module__maxLabel__tNNbn",Kh="styles-module__sm__5ZJIU",Zh="styles-module__md__ZNSR1",Uh="styles-module__lg__BS4ab",Jh="styles-module__xl__Qeyec",me={gaugeContainer:Rh,svg:Xh,animatedPath:Gh,gaugeAnimation:Vh,centerText:Ah,value:Ph,unit:Fh,label:Oh,minMaxLabels:Hh,minLabel:Yh,maxLabel:qh,sm:Kh,md:Zh,lg:Uh,xl:Jh};function Qh({value:s,min:t=0,max:n=100,size:l="md",variant:a="default",thickness:o=12,label:c,showValue:d=!0,valueFormatter:r,showMinMax:_=!1,startAngle:i=-135,endAngle:m=135,animate:v=!0,className:h="",unit:$=""}){const u=Math.max(t,Math.min(n,s)),N=(u-t)/(n-t)*100,b=50-o/2,y=2*Math.PI*b,w=i*Math.PI/180,L=m*Math.PI/180,x=L-w,k=w+x*N/100,D=50+b*Math.sin(w),M=50-b*Math.cos(w),P=50+b*Math.sin(L),R=50-b*Math.cos(L),B=50+b*Math.sin(k),O=50-b*Math.cos(k),g=Math.abs(m-i)>180?1:0,j=N/100*Math.abs(m-i)>180?1:0,C=`M ${D} ${M} A ${b} ${b} 0 ${g} 1 ${P} ${R}`,E=N>0?`M ${D} ${M} A ${b} ${b} 0 ${j} 1 ${B} ${O}`:"",K=r?r(u):u.toFixed(0),W=[me.gaugeContainer,me[l],h].filter(Boolean).join(" "),S={default:"rgba(99, 102, 241, 0.8)",success:"rgba(34, 197, 94, 0.8)",warning:"rgba(251, 191, 36, 0.8)",error:"rgba(239, 68, 68, 0.8)",info:"rgba(59, 130, 246, 0.8)"};return e.jsxs("div",{className:W,children:[e.jsxs("svg",{className:me.svg,viewBox:"0 0 100 100",children:[e.jsx("path",{d:C,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o,strokeLinecap:"round"}),N>0&&e.jsx("path",{d:E,fill:"none",stroke:S[a],strokeWidth:o,strokeLinecap:"round",className:v?me.animatedPath:"",style:{strokeDasharray:y,strokeDashoffset:y*(1-N/100)}}),e.jsxs("g",{className:me.centerText,children:[d&&e.jsxs("text",{x:"50",y:c?"45":"52",className:me.value,children:[K,$&&e.jsx("tspan",{className:me.unit,children:$})]}),c&&e.jsx("text",{x:"50",y:d?"60":"52",className:me.label,children:c})]})]}),_&&e.jsxs("div",{className:me.minMaxLabels,children:[e.jsx("span",{className:me.minLabel,children:t}),e.jsx("span",{className:me.maxLabel,children:n})]})]})}const eg="styles-module__colorPickerContainer__GcH66",sg="styles-module__label__t8ugX",tg="styles-module__inputWrapper__DD6E-",lg="styles-module__colorButton__gbskz",ng="styles-module__disabled__f-loV",og="styles-module__colorPreview__toNQY",ag="styles-module__colorInput__LWEMn",cg="styles-module__popover__x3a-e",_g="styles-module__pickerContent__2W72c",rg="styles-module__nativeColorPicker__rPI-9",dg="styles-module__presets__IuFHV",ig="styles-module__quickColors__YOCtI",ug="styles-module__presetsLabel__2bK2r",mg="styles-module__quickColorsLabel__jiYjL",pg="styles-module__presetsGrid__VDTHM",yg="styles-module__presetButton__5wc-z",hg="styles-module__active__SqIPE",gg="styles-module__quickColorsGrid__9ZX0W",fg="styles-module__quickColorButton__2FpSv",xg="styles-module__helperText__AqKTN",bg="styles-module__errorText__cardI",Y={colorPickerContainer:eg,label:sg,inputWrapper:tg,colorButton:lg,disabled:ng,colorPreview:og,colorInput:ag,popover:cg,pickerContent:_g,nativeColorPicker:rg,presets:dg,quickColors:ig,presetsLabel:ug,quickColorsLabel:mg,presetsGrid:pg,presetButton:yg,active:hg,quickColorsGrid:gg,quickColorButton:fg,helperText:xg,errorText:bg},vg=s=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},$g=(s,t,n)=>{s/=255,t/=255,n/=255;const l=Math.max(s,t,n),a=Math.min(s,t,n);let o=0,c=0;const d=(l+a)/2;if(l!==a){const r=l-a;switch(c=d>.5?r/(2-l-a):r/(l+a),l){case s:o=((t-n)/r+(t<n?6:0))/6;break;case t:o=((n-s)/r+2)/6;break;case n:o=((s-t)/r+4)/6;break}}return{h:Math.round(o*360),s:Math.round(c*100),l:Math.round(d*100)}};function jg({value:s,defaultValue:t="#6366f1",onChange:n,format:l="hex",label:a,disabled:o=!1,showPresets:c=!0,presets:d=["#ef4444","#f97316","#f59e0b","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#ec4899"],showAlpha:r=!1,className:_="",helperText:i,error:m}){const[v,h]=p.useState(t),[$,u]=p.useState(!1),N=p.useRef(null),b=s!==void 0?s:v;p.useEffect(()=>{const x=k=>{N.current&&!N.current.contains(k.target)&&u(!1)};return $&&document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[$]);const y=x=>{s===void 0&&h(x),n?.(x)},w=x=>{const k=vg(x);if(!k)return x;switch(l){case"rgb":return`rgb(${k.r}, ${k.g}, ${k.b})`;case"hsl":const D=$g(k.r,k.g,k.b);return`hsl(${D.h}, ${D.s}%, ${D.l}%)`;default:return x}},L=[Y.colorPickerContainer,_].filter(Boolean).join(" ");return e.jsxs("div",{className:L,children:[a&&e.jsx("label",{className:Y.label,children:a}),e.jsxs("div",{className:Y.inputWrapper,ref:N,children:[e.jsx("button",{type:"button",className:`${Y.colorButton} ${o?Y.disabled:""}`,onClick:()=>!o&&u(!$),disabled:o,style:{backgroundColor:b},"aria-label":"Select color",children:e.jsx("span",{className:Y.colorPreview,style:{backgroundColor:b}})}),e.jsx("input",{type:"text",className:Y.colorInput,value:w(b),onChange:x=>y(x.target.value),disabled:o,placeholder:"#000000"}),$&&!o&&e.jsx("div",{className:Y.popover,children:e.jsxs("div",{className:Y.pickerContent,children:[e.jsx("input",{type:"color",className:Y.nativeColorPicker,value:b,onChange:x=>y(x.target.value)}),c&&e.jsxs("div",{className:Y.presets,children:[e.jsx("div",{className:Y.presetsLabel,children:"Presets"}),e.jsx("div",{className:Y.presetsGrid,children:d.map(x=>e.jsx("button",{type:"button",className:`${Y.presetButton} ${x===b?Y.active:""}`,style:{backgroundColor:x},onClick:()=>y(x),"aria-label":`Select ${x}`},x))})]}),e.jsxs("div",{className:Y.quickColors,children:[e.jsx("div",{className:Y.quickColorsLabel,children:"Quick Colors"}),e.jsxs("div",{className:Y.quickColorsGrid,children:[e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#000000"},onClick:()=>y("#000000")}),e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#ffffff"},onClick:()=>y("#ffffff")}),e.jsx("button",{type:"button",className:Y.quickColorButton,style:{backgroundColor:"#808080"},onClick:()=>y("#808080")})]})]})]})})]}),(m||i)&&e.jsx("span",{className:`${Y.helperText} ${m?Y.errorText:""}`,children:m||i})]})}const Ng="styles-module__contextMenu__GRBVO",wg="styles-module__menuItem__RSaTZ",kg="styles-module__disabled__bw0t-",Sg="styles-module__danger__KAIXk",Cg="styles-module__menuItemContent__-bnOm",Lg="styles-module__icon__WnkZL",Ig="styles-module__label__HqC1u",Mg="styles-module__menuItemRight__NVcQN",zg="styles-module__shortcut__4Ry6D",Dg="styles-module__submenuIndicator__glhiH",Tg="styles-module__separator__VcMO9",Bg="styles-module__submenu__HTiQG",_e={contextMenu:Ng,menuItem:wg,disabled:kg,danger:Sg,menuItemContent:Cg,icon:Lg,label:Ig,menuItemRight:Mg,shortcut:zg,submenuIndicator:Dg,separator:Tg,submenu:Bg};function Eg({items:s,children:t,className:n="",disabled:l=!1}){const[a,o]=p.useState(!1),[c,d]=p.useState({x:0,y:0}),[r,_]=p.useState({}),i=p.useRef(null),m=p.useRef(null),v=y=>{if(l)return;y.preventDefault(),y.stopPropagation();const w=y.clientX,L=y.clientY,x=240,k=s.length*40+16,D=window.innerWidth,M=window.innerHeight,P=w+x>D?D-x-10:w,R=L+k>M?M-k-10:L;d({x:P,y:R}),o(!0)},h=y=>{i.current&&!i.current.contains(y.target)&&m.current&&!m.current.contains(y.target)&&(o(!1),_({}))};p.useEffect(()=>{if(a)return document.addEventListener("mousedown",h),document.addEventListener("contextmenu",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("contextmenu",h)}},[a]);const $=y=>{y.disabled||(y.submenu?_(w=>({...w,[y.id]:!w[y.id]})):(y.onClick?.(),o(!1),_({})))},u=y=>{_(w=>({...w,[y]:!0}))},N=y=>{_(w=>({...w,[y]:!1}))},b=(y,w=0)=>{const L=y.submenu&&y.submenu.length>0,x=r[y.id];return e.jsxs(p.Fragment,{children:[e.jsxs("div",{className:`${_e.menuItem} ${y.disabled?_e.disabled:""} ${y.danger?_e.danger:""}`,onClick:()=>$(y),onMouseEnter:()=>L&&u(y.id),onMouseLeave:()=>L&&N(y.id),style:{paddingLeft:`${.75+w*.5}rem`},children:[e.jsxs("div",{className:_e.menuItemContent,children:[y.icon&&e.jsx("span",{className:_e.icon,children:y.icon}),e.jsx("span",{className:_e.label,children:y.label})]}),e.jsxs("div",{className:_e.menuItemRight,children:[y.shortcut&&e.jsx("span",{className:_e.shortcut,children:y.shortcut}),L&&e.jsx("span",{className:_e.submenuIndicator,children:"›"})]}),L&&x&&e.jsx("div",{className:_e.submenu,children:y.submenu.map(k=>b(k,w+1))})]}),y.separator&&e.jsx("div",{className:_e.separator})]},y.id)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:m,onContextMenu:v,className:n,style:{display:"inline-block"},children:t}),a&&e.jsx("div",{ref:i,className:_e.contextMenu,style:{left:`${c.x}px`,top:`${c.y}px`},children:s.map(y=>b(y))})]})}const Wg="styles-module__dataList__0oRGD",Rg="styles-module__item__eOSeD",Xg="styles-module__highlight__DdCec",Gg="styles-module__horizontal__GB4WY",Vg="styles-module__label__75f3b",Ag="styles-module__value__aOT7v",Pg="styles-module__vertical__H42DV",Fg="styles-module__bold__mfZsI",Og="styles-module__icon__EoISr",Hg="styles-module__labelText__ca0Gf",Yg="styles-module__helpText__CW7oi",qg="styles-module__valueContent__NlivI",Kg="styles-module__copyButton__pQctE",Zg="styles-module__dividers__uU1uU",Ug="styles-module__striped__7ArH9",Jg="styles-module__sm__J9JEm",Qg="styles-module__md__stc8l",ef="styles-module__lg__iKJsr",ee={dataList:Wg,item:Rg,highlight:Xg,horizontal:Gg,label:Vg,value:Ag,vertical:Pg,bold:Fg,icon:Og,labelText:Hg,helpText:Yg,valueContent:qg,copyButton:Kg,dividers:Zg,striped:Ug,sm:Jg,md:Qg,lg:ef};function sf({items:s,orientation:t="horizontal",size:n="md",dividers:l=!0,boldLabels:a=!0,className:o="",labelWidth:c,striped:d=!1,onCopy:r}){const _=async i=>{if(!(!i.copyable||typeof i.value!="string"))try{await navigator.clipboard.writeText(i.value),r?.(i)}catch(m){console.error("Failed to copy:",m)}};return e.jsx("dl",{className:`${ee.dataList} ${ee[t]} ${ee[n]} ${l?ee.dividers:""} ${d?ee.striped:""} ${o}`,style:{"--label-width":c},children:s.map((i,m)=>e.jsxs("div",{className:`${ee.item} ${i.highlight?ee.highlight:""} ${i.className||""}`,children:[e.jsxs("dt",{className:`${ee.label} ${a?ee.bold:""}`,children:[i.icon&&e.jsx("span",{className:ee.icon,children:i.icon}),e.jsxs("span",{className:ee.labelText,children:[i.label,i.helpText&&e.jsx("span",{className:ee.helpText,title:i.helpText,children:"?"})]})]}),e.jsxs("dd",{className:ee.value,children:[e.jsx("span",{className:ee.valueContent,children:i.value}),i.copyable&&e.jsx("button",{type:"button",className:ee.copyButton,onClick:()=>_(i),"aria-label":"Copy value",title:"Copy to clipboard",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.5 2.5h-2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2m-5-8h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},i.id))})}const tf="styles-module__statCard__oYt00",lf="styles-module__bordered__A56Xz",nf="styles-module__clickable__mMZBY",of="styles-module__header__IYBwN",af="styles-module__labelContainer__mSkYw",cf="styles-module__icon__-4Vf1",_f="styles-module__label__xxYm9",rf="styles-module__content__RE4Xm",df="styles-module__valueContainer__o1jtt",uf="styles-module__value__ZjSG8",mf="styles-module__prefix__jaOdQ",pf="styles-module__suffix__9g-Zt",yf="styles-module__description__DOrYb",hf="styles-module__changeContainer__p4K9m",gf="styles-module__trendIcon__8hzJD",ff="styles-module__trend-up__EkKSW",xf="styles-module__trend-down__PAAY-",bf="styles-module__trend-neutral__1OaEM",vf="styles-module__footer__y26Lt",$f="styles-module__loading__q9k-W",jf="styles-module__loadingSkeleton__eMNrK",Nf="styles-module__skeletonValue__Pio1n",wf="styles-module__shimmer__OH-3R",kf="styles-module__skeletonDescription__Qws61",Sf="styles-module__sm__t0NLs",Cf="styles-module__md__f-ZAw",Lf="styles-module__lg__o7Q4y",If="styles-module__primary__Kp-sj",Mf="styles-module__success__Q5jxs",zf="styles-module__warning__l8Nwy",Df="styles-module__error__tcxHs",Tf="styles-module__info__cF-x1",X={statCard:tf,bordered:lf,clickable:nf,header:of,labelContainer:af,icon:cf,label:_f,content:rf,valueContainer:df,value:uf,prefix:mf,suffix:pf,description:yf,changeContainer:hf,trendIcon:gf,"trend-up":"styles-module__trend-up__EkKSW",trendUp:ff,"trend-down":"styles-module__trend-down__PAAY-",trendDown:xf,"trend-neutral":"styles-module__trend-neutral__1OaEM",trendNeutral:bf,footer:vf,loading:$f,loadingSkeleton:jf,skeletonValue:Nf,shimmer:wf,skeletonDescription:kf,sm:Sf,md:Cf,lg:Lf,default:"styles-module__default__AaRSX",primary:If,success:Mf,warning:zf,error:Df,info:Tf};function Bf({value:s,label:t,icon:n,variant:l="default",size:a="md",change:o,trend:c,description:d,footer:r,loading:_=!1,className:i="",onClick:m,bordered:v=!1,prefix:h,suffix:$}){const u=!!m,N=()=>_?e.jsx("div",{className:X.loadingSkeleton,children:e.jsx("div",{className:X.skeletonValue})}):e.jsxs("div",{className:X.valueContainer,children:[h&&e.jsx("span",{className:X.prefix,children:h}),e.jsx("span",{className:X.value,children:s}),$&&e.jsx("span",{className:X.suffix,children:$})]}),b=()=>{if(!o&&!c)return null;const y=c?X[`trend-${c}`]:o?.startsWith("+")||o?.startsWith("↑")?X["trend-up"]:o?.startsWith("-")||o?.startsWith("↓")?X["trend-down"]:X["trend-neutral"];return e.jsxs("div",{className:`${X.changeContainer} ${y}`,children:[c==="up"&&!o?.includes("↑")&&!o?.includes("▲")&&e.jsx("span",{className:X.trendIcon,children:"↑"}),c==="down"&&!o?.includes("↓")&&!o?.includes("▼")&&e.jsx("span",{className:X.trendIcon,children:"↓"}),c==="neutral"&&!o?.includes("→")&&e.jsx("span",{className:X.trendIcon,children:"→"}),o&&e.jsx("span",{className:X.change,children:o})]})};return e.jsxs("div",{className:`${X.statCard} ${X[l]} ${X[a]} ${u?X.clickable:""} ${v?X.bordered:""} ${_?X.loading:""} ${i}`,onClick:m,role:u?"button":void 0,tabIndex:u?0:void 0,onKeyDown:u?y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),m?.())}:void 0,children:[e.jsxs("div",{className:X.header,children:[e.jsxs("div",{className:X.labelContainer,children:[n&&e.jsx("span",{className:X.icon,children:n}),e.jsx("span",{className:X.label,children:t})]}),b()]}),e.jsxs("div",{className:X.content,children:[N(),d&&!_&&e.jsx("p",{className:X.description,children:d}),_&&d&&e.jsx("div",{className:X.loadingSkeleton,children:e.jsx("div",{className:X.skeletonDescription})})]}),r&&!_&&e.jsx("div",{className:X.footer,children:r})]})}const Ef="styles-module__split__10amd",Wf="styles-module__horizontal__nWMIm",Rf="styles-module__vertical__dHG5L",Xf="styles-module__pane__eLr0i",Gf="styles-module__gutter__bzVSj",Vf="styles-module__gutterHandle__laNCM",Af="styles-module__dragging__GRmLp",Pf="styles-module__disabled__-Lei8",Te={split:Ef,horizontal:Wf,vertical:Rf,pane:Xf,gutter:Gf,gutterHandle:Vf,dragging:Af,disabled:Pf};function Ff({direction:s="horizontal",initialSize:t=50,minSize:n=100,maxSize:l,children:a,onResize:o,className:c="",disabled:d=!1,snapPositions:r=[],snapThreshold:_=20,gutterSize:i=8}){const[m,v]=p.useState(t),[h,$]=p.useState(!1),u=p.useRef(null),N=p.useRef(0),b=p.useRef(0),y=s==="horizontal",w=B=>{d||(B.preventDefault(),$(!0),N.current=y?B.clientX:B.clientY,b.current=m)},L=p.useCallback(B=>{if(!h||!u.current)return;const g=u.current.getBoundingClientRect(),j=y?g.width:g.height,C=y?B.clientX:B.clientY;y?g.left:g.top;const K=(C-N.current)/j*100;let W=b.current+K;const S=n/j*100;let f=100-S;if(l&&(f=Math.min(f,l/j*100)),W=Math.max(S,Math.min(f,W)),r.length>0)for(const I of r){const be=I/100*j,oe=W/100*j;if(Math.abs(oe-be)<_){W=I;break}}v(W),o?.(W)},[h,y,n,l,r,_,o]),x=p.useCallback(()=>{h&&$(!1)},[h]);p.useEffect(()=>{if(h)return document.addEventListener("mousemove",L),document.addEventListener("mouseup",x),document.body.style.userSelect="none",document.body.style.cursor=y?"col-resize":"row-resize",()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",x),document.body.style.userSelect="",document.body.style.cursor=""}},[h,L,x,y]);const k=B=>{if(d)return;B.preventDefault(),$(!0);const O=B.touches[0];N.current=y?O.clientX:O.clientY,b.current=m},D=p.useCallback(B=>{if(!h||!u.current)return;const O=B.touches[0],j=u.current.getBoundingClientRect(),C=y?j.width:j.height,W=((y?O.clientX:O.clientY)-N.current)/C*100;let S=b.current+W;const f=n/C*100;let I=100-f;if(l&&(I=Math.min(I,l/C*100)),S=Math.max(f,Math.min(I,S)),r.length>0)for(const be of r){const oe=be/100*C,Xe=S/100*C;if(Math.abs(Xe-oe)<_){S=be;break}}v(S),o?.(S)},[h,y,n,l,r,_,o]),M=p.useCallback(()=>{h&&$(!1)},[h]);p.useEffect(()=>{if(h)return document.addEventListener("touchmove",D),document.addEventListener("touchend",M),()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",M)}},[h,D,M]);const[P,R]=a;return e.jsxs("div",{ref:u,className:`${Te.split} ${Te[s]} ${h?Te.dragging:""} ${d?Te.disabled:""} ${c}`,children:[e.jsx("div",{className:Te.pane,style:{[y?"width":"height"]:`${m}%`},children:P}),e.jsx("div",{className:Te.gutter,style:{[y?"width":"height"]:`${i}px`},onMouseDown:w,onTouchStart:k,role:"separator","aria-orientation":s,"aria-valuenow":m,"aria-valuemin":n,"aria-valuemax":l||100,children:e.jsx("div",{className:Te.gutterHandle})}),e.jsx("div",{className:Te.pane,style:{flex:1},children:R})]})}const Of="styles-module__imageGallery__1ewHX",Hf="styles-module__carouselContainer__CELQo",Yf="styles-module__carouselMain__228vS",qf="styles-module__carouselTrack__KssOC",Kf="styles-module__carouselSlide__pjIfk",Zf="styles-module__carouselImage__QcK-1",Uf="styles-module__sm__oyagg",Jf="styles-module__md__fP0C0",Qf="styles-module__lg__yaqEo",ex="styles-module__arrow__fKqP7",sx="styles-module__arrowLeft__KpeXV",tx="styles-module__arrowRight__K9tqV",lx="styles-module__indicators__BuRqL",nx="styles-module__indicator__W0UZw",ox="styles-module__active__rCFls",ax="styles-module__thumbnails__rbSf8",cx="styles-module__thumbnail__uw-GG",_x="styles-module__caption__WXDtk",rx="styles-module__grid__Godk8",dx="styles-module__gridItem__R13Ho",ix="styles-module__gridOverlay__2Y-3Z",ux="styles-module__gridTitle__9Q2p3",mx="styles-module__gridCaption__mpcNh",px="styles-module__masonry__tNDHq",yx="styles-module__masonryItem__22ZfL",hx="styles-module__masonryOverlay__nQ91c",gx="styles-module__masonryTitle__WhvJr",fx="styles-module__masonryCaption__HP0Zk",xx="styles-module__lightbox__DLFIG",bx="styles-module__fadeIn__DWqo2",vx="styles-module__lightboxContent__45Wxl",$x="styles-module__zoomIn__CIB6-",jx="styles-module__lightboxClose__9oi0c",Nx="styles-module__lightboxArrow__f6Qhq",wx="styles-module__lightboxArrowLeft__qHu5S",kx="styles-module__lightboxArrowRight__4wu-Y",Sx="styles-module__lightboxCaption__gVJhg",Cx="styles-module__lightboxTitle__M-1gH",Lx="styles-module__lightboxCounter__mpIt8",T={imageGallery:Of,carouselContainer:Hf,carouselMain:Yf,carouselTrack:qf,carouselSlide:Kf,carouselImage:Zf,sm:Uf,md:Jf,lg:Qf,arrow:ex,arrowLeft:sx,arrowRight:tx,indicators:lx,indicator:nx,active:ox,thumbnails:ax,thumbnail:cx,caption:_x,grid:rx,gridItem:dx,gridOverlay:ix,gridTitle:ux,gridCaption:mx,masonry:px,masonryItem:yx,masonryOverlay:hx,masonryTitle:gx,masonryCaption:fx,lightbox:xx,fadeIn:bx,lightboxContent:vx,zoomIn:$x,lightboxClose:jx,lightboxArrow:Nx,lightboxArrowLeft:wx,lightboxArrowRight:kx,lightboxCaption:Sx,lightboxTitle:Cx,lightboxCounter:Lx};function Ix({images:s,variant:t="carousel",size:n="md",initialIndex:l=0,showThumbnails:a=!1,showCaptions:o=!0,autoPlay:c=0,columns:d=3,gap:r=16,lightbox:_=!0,className:i="",onImageClick:m,onIndexChange:v,showArrows:h=!0,showIndicators:$=!0,infinite:u=!0}){const[N,b]=p.useState(l),[y,w]=p.useState(!1),[L,x]=p.useState(0),[k,D]=p.useState(!1),M=p.useRef(),P=p.useCallback(()=>{k||(D(!0),b(f=>{const I=f===0?u?s.length-1:0:f-1;return v?.(I),I}),setTimeout(()=>D(!1),300))},[s.length,u,v,k]),R=p.useCallback(()=>{k||(D(!0),b(f=>{const I=f===s.length-1?u?0:s.length-1:f+1;return v?.(I),I}),setTimeout(()=>D(!1),300))},[s.length,u,v,k]),B=(f,I)=>{m?.(f,I),_&&(x(I),w(!0))},O=f=>{b(f),v?.(f)},g=()=>{w(!1)},j=()=>{x(f=>f===0?s.length-1:f-1)},C=()=>{x(f=>f===s.length-1?0:f+1)};p.useEffect(()=>{if(t==="carousel"&&c>0)return M.current=setInterval(()=>{R()},c),()=>{M.current&&clearInterval(M.current)}},[t,c,R]),p.useEffect(()=>{const f=I=>{y?(I.key==="Escape"&&g(),I.key==="ArrowLeft"&&j(),I.key==="ArrowRight"&&C()):t==="carousel"&&(I.key==="ArrowLeft"&&P(),I.key==="ArrowRight"&&R())};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[y,t,P,R]);const E=()=>e.jsxs("div",{className:T.carouselContainer,children:[e.jsxs("div",{className:T.carouselMain,children:[e.jsx("div",{className:T.carouselTrack,style:{transform:`translateX(-${N*100}%)`},children:s.map((f,I)=>e.jsxs("div",{className:T.carouselSlide,onClick:()=>B(f,I),children:[e.jsx("img",{src:f.src,alt:f.alt,className:T.carouselImage}),o&&f.caption&&e.jsx("div",{className:T.caption,children:f.caption})]},f.id))}),h&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${T.arrow} ${T.arrowLeft}`,onClick:P,"aria-label":"Previous image",disabled:!u&&N===0,children:"‹"}),e.jsx("button",{className:`${T.arrow} ${T.arrowRight}`,onClick:R,"aria-label":"Next image",disabled:!u&&N===s.length-1,children:"›"})]})]}),$&&e.jsx("div",{className:T.indicators,children:s.map((f,I)=>e.jsx("button",{className:`${T.indicator} ${I===N?T.active:""}`,onClick:()=>{b(I),v?.(I)},"aria-label":`Go to image ${I+1}`},I))}),a&&e.jsx("div",{className:T.thumbnails,children:s.map((f,I)=>e.jsx("button",{className:`${T.thumbnail} ${I===N?T.active:""}`,onClick:()=>O(I),"aria-label":`Select image ${I+1}`,children:e.jsx("img",{src:f.thumbnail||f.src,alt:f.alt})},f.id))})]}),K=()=>e.jsx("div",{className:T.grid,style:{gridTemplateColumns:`repeat(${d}, 1fr)`,gap:`${r}px`},children:s.map((f,I)=>e.jsxs("div",{className:T.gridItem,onClick:()=>B(f,I),children:[e.jsx("img",{src:f.thumbnail||f.src,alt:f.alt}),o&&(f.caption||f.title)&&e.jsxs("div",{className:T.gridOverlay,children:[f.title&&e.jsx("div",{className:T.gridTitle,children:f.title}),f.caption&&e.jsx("div",{className:T.gridCaption,children:f.caption})]})]},f.id))}),W=()=>e.jsx("div",{className:T.masonry,style:{columnCount:d,columnGap:`${r}px`},children:s.map((f,I)=>e.jsxs("div",{className:T.masonryItem,style:{marginBottom:`${r}px`},onClick:()=>B(f,I),children:[e.jsx("img",{src:f.thumbnail||f.src,alt:f.alt}),o&&(f.caption||f.title)&&e.jsxs("div",{className:T.masonryOverlay,children:[f.title&&e.jsx("div",{className:T.masonryTitle,children:f.title}),f.caption&&e.jsx("div",{className:T.masonryCaption,children:f.caption})]})]},f.id))}),S=()=>{if(!y)return null;const f=s[L];return e.jsxs("div",{className:T.lightbox,onClick:g,children:[e.jsx("button",{className:T.lightboxClose,onClick:g,"aria-label":"Close lightbox",children:"×"}),e.jsx("button",{className:`${T.lightboxArrow} ${T.lightboxArrowLeft}`,onClick:I=>{I.stopPropagation(),j()},"aria-label":"Previous image",children:"‹"}),e.jsxs("div",{className:T.lightboxContent,onClick:I=>I.stopPropagation(),children:[e.jsx("img",{src:f.src,alt:f.alt}),(f.caption||f.title)&&e.jsxs("div",{className:T.lightboxCaption,children:[f.title&&e.jsx("div",{className:T.lightboxTitle,children:f.title}),f.caption&&e.jsx("div",{children:f.caption})]})]}),e.jsx("button",{className:`${T.lightboxArrow} ${T.lightboxArrowRight}`,onClick:I=>{I.stopPropagation(),C()},"aria-label":"Next image",children:"›"}),e.jsxs("div",{className:T.lightboxCounter,children:[L+1," / ",s.length]})]})};return e.jsxs("div",{className:`${T.imageGallery} ${T[t]} ${T[n]} ${i}`,children:[t==="carousel"&&E(),t==="grid"&&K(),t==="masonry"&&W(),S()]})}const Mx="styles-module__themeToggle__6zyVl",zx="styles-module__iconContainer__-mq02",Dx="styles-module__icon__yzZOS",Tx="styles-module__sun__wk-Eu",Bx="styles-module__moon__OtQ8C",Ex="styles-module__light__WvEIx",Wx="styles-module__dark__zXrhJ",Be={themeToggle:Mx,iconContainer:zx,icon:Dx,sun:Tx,moon:Bx,light:Ex,dark:Wx};function Rx({defaultTheme:s="dark",onThemeChange:t,className:n="",...l}){const[a,o]=p.useState(()=>typeof window>"u"?s:localStorage.getItem("theme")||s);p.useEffect(()=>{a==="light"?document.body.classList.add("light-mode"):document.body.classList.remove("light-mode"),localStorage.setItem("theme",a),t?.(a)},[a,t]);const c=()=>{o(d=>d==="light"?"dark":"light")};return e.jsx("button",{type:"button",className:`${Be.themeToggle} ${n}`,onClick:c,"aria-label":"Toggle theme",...l,children:e.jsxs("div",{className:`${Be.iconContainer} ${a==="light"?Be.light:Be.dark}`,children:[e.jsxs("svg",{className:`${Be.icon} ${Be.sun}`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"}),e.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),e.jsx("svg",{className:`${Be.icon} ${Be.moon}`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})}const Xx="styles-module__languageSelectContainer__Xulku",Gx="styles-module__label__5r4RN",Vx="styles-module__languageSelect__gSAkW",Ax="styles-module__disabled__-9pxf",Px="styles-module__trigger__Icsh6",Fx="styles-module__flag__n4YbG",Ox="styles-module__open__c-08x",Hx="styles-module__chevron__1XEr0",Yx="styles-module__selectedText__tGBSV",qx="styles-module__languageName__EnqxF",Kx="styles-module__nativeName__Qvg9C",Zx="styles-module__dropdown__m7E55",Ux="styles-module__searchContainer__n15Bi",Jx="styles-module__searchIcon__EKL9D",Qx="styles-module__searchInput__mnR-j",eb="styles-module__list__KJT7D",sb="styles-module__option__zxNEH",tb="styles-module__highlighted__wHxl6",lb="styles-module__optionFlag__FbLUG",nb="styles-module__selected__s0-8V",ob="styles-module__optionName__NIJdm",ab="styles-module__optionText__3cC-4",cb="styles-module__optionNative__4Poud",_b="styles-module__checkIcon__dOQGx",rb="styles-module__noResults__uck5W",F={languageSelectContainer:Xx,label:Gx,languageSelect:Vx,disabled:Ax,trigger:Px,flag:Fx,open:Ox,chevron:Hx,selectedText:Yx,languageName:qx,nativeName:Kx,dropdown:Zx,searchContainer:Ux,searchIcon:Jx,searchInput:Qx,list:eb,option:sb,highlighted:tb,optionFlag:lb,selected:nb,optionName:ob,optionText:ab,optionNative:cb,checkIcon:_b,noResults:rb},db=[{code:"en",name:"English",nativeName:"English",flag:"🇺🇸"},{code:"es",name:"Spanish",nativeName:"Español",flag:"🇪🇸"},{code:"fr",name:"French",nativeName:"Français",flag:"🇫🇷"},{code:"de",name:"German",nativeName:"Deutsch",flag:"🇩🇪"},{code:"it",name:"Italian",nativeName:"Italiano",flag:"🇮🇹"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"🇵🇹"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"🇷🇺"},{code:"ja",name:"Japanese",nativeName:"日本語",flag:"🇯🇵"},{code:"zh",name:"Chinese",nativeName:"中文",flag:"🇨🇳"},{code:"ko",name:"Korean",nativeName:"한국어",flag:"🇰🇷"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"🇸🇦"},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"🇮🇳"}];function ib({languages:s=db,defaultLanguage:t="en",onChange:n,disabled:l=!1,showSearch:a=!1,label:o,className:c="",...d}){const[r,_]=p.useState(!1),[i,m]=p.useState(()=>s.find(x=>x.code===t)||s[0]),[v,h]=p.useState(""),[$,u]=p.useState(0),N=p.useRef(null),b=p.useRef(null),y=s.filter(x=>x.name.toLowerCase().includes(v.toLowerCase())||x.nativeName.toLowerCase().includes(v.toLowerCase())||x.code.toLowerCase().includes(v.toLowerCase()));p.useEffect(()=>{const x=k=>{N.current&&!N.current.contains(k.target)&&(_(!1),h(""))};return r&&document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[r]),p.useEffect(()=>{r&&a&&b.current&&b.current.focus()},[r,a]);const w=x=>{m(x),_(!1),h(""),n?.(x)},L=x=>{if(!l)switch(x.key){case"Enter":case" ":r?y[$]&&(x.preventDefault(),w(y[$])):(x.preventDefault(),_(!0));break;case"Escape":_(!1),h("");break;case"ArrowDown":x.preventDefault(),r?u(k=>k<y.length-1?k+1:0):_(!0);break;case"ArrowUp":x.preventDefault(),r&&u(k=>k>0?k-1:y.length-1);break}};return e.jsxs("div",{className:`${F.languageSelectContainer} ${c}`,ref:N,...d,children:[o&&e.jsx("label",{className:F.label,children:o}),e.jsxs("div",{className:`${F.languageSelect} ${l?F.disabled:""}`,children:[e.jsxs("button",{type:"button",className:`${F.trigger} ${r?F.open:""}`,onClick:()=>!l&&_(!r),onKeyDown:L,disabled:l,"aria-haspopup":"listbox","aria-expanded":r,children:[e.jsx("span",{className:F.flag,children:i.flag}),e.jsxs("span",{className:F.selectedText,children:[e.jsx("span",{className:F.languageName,children:i.name}),e.jsx("span",{className:F.nativeName,children:i.nativeName})]}),e.jsx("svg",{className:F.chevron,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),r&&e.jsxs("div",{className:F.dropdown,children:[a&&e.jsxs("div",{className:F.searchContainer,children:[e.jsx("svg",{className:F.searchIcon,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})}),e.jsx("input",{ref:b,type:"text",className:F.searchInput,placeholder:"Search languages...",value:v,onChange:x=>{h(x.target.value),u(0)},onKeyDown:L})]}),e.jsx("ul",{className:F.list,role:"listbox",children:y.length>0?y.map((x,k)=>e.jsxs("li",{className:`${F.option} ${i.code===x.code?F.selected:""} ${k===$?F.highlighted:""}`,onClick:()=>w(x),onMouseEnter:()=>u(k),role:"option","aria-selected":i.code===x.code,children:[e.jsx("span",{className:F.optionFlag,children:x.flag}),e.jsxs("span",{className:F.optionText,children:[e.jsx("span",{className:F.optionName,children:x.name}),e.jsx("span",{className:F.optionNative,children:x.nativeName})]}),i.code===x.code&&e.jsx("svg",{className:F.checkIcon,viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]},x.code)):e.jsx("li",{className:F.noResults,children:"No languages found"})})]})]})]})}const ub="styles-module__chatContainer__ny1TV",mb="styles-module__messagesWrapper__RZiB3",pb="styles-module__emptyState__hzFZj",yb="styles-module__emptyIcon__x39wy",hb="styles-module__emptyText__lrl1o",gb="styles-module__emptySubtext__SqnCZ",fb="styles-module__messagesList__d-S-F",xb="styles-module__messageGroup__tMBkW",bb="styles-module__userMessage__9MGMu",vb="styles-module__messageContent__dFgZ4",$b="styles-module__messageBubble__9fJI4",jb="styles-module__timestamp__a4uAo",Nb="styles-module__systemMessage__j8BLk",wb="styles-module__avatarWrapper__u9sbM",kb="styles-module__avatar__UI0YW",Sb="styles-module__avatarPlaceholder__NVOuf",Cb="styles-module__userAvatar__5XxxX",Lb="styles-module__botAvatar__a-W8a",Ib="styles-module__senderName__vOvEB",Mb="styles-module__typing__FSien",zb="styles-module__messageText__w-MlW",Db="styles-module__typingIndicator__VL6DD",Tb="styles-module__dot__cJEkH",Bb="styles-module__inputForm__l-juI",Eb="styles-module__inputWrapper__HSXpx",Wb="styles-module__focused__GIWaK",Rb="styles-module__input__AmkBF",Xb="styles-module__sendButton__xy1bf",Gb="styles-module__sendIcon__XEMIa",Vb="styles-module__active__HG7ga",z={chatContainer:ub,messagesWrapper:mb,emptyState:pb,emptyIcon:yb,emptyText:hb,emptySubtext:gb,messagesList:fb,messageGroup:xb,userMessage:bb,messageContent:vb,messageBubble:$b,timestamp:jb,systemMessage:Nb,avatarWrapper:wb,avatar:kb,avatarPlaceholder:Sb,userAvatar:Cb,botAvatar:Lb,senderName:Ib,typing:Mb,messageText:zb,typingIndicator:Db,dot:Tb,inputForm:Bb,inputWrapper:Eb,focused:Wb,input:Rb,sendButton:Xb,sendIcon:Gb,active:Vb};function Ab({messages:s,onSendMessage:t,placeholder:n="Type a message...",disabled:l=!1,showTimestamps:a=!1,showAvatars:o=!0,maxHeight:c="600px",typingIndicator:d=!1,userName:r="You",botName:_="Assistant",className:i="",...m}){const[v,h]=p.useState(""),[$,u]=p.useState(!1),N=p.useRef(null),b=p.useRef(null),y=()=>{N.current?.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{y()},[s]);const w=M=>{M.preventDefault(),v.trim()&&t&&!l&&(t(v.trim()),h(""),b.current&&(b.current.style.height="auto"))},L=M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),w(M))},x=M=>{h(M.target.value),M.target.style.height="auto",M.target.style.height=`${Math.min(M.target.scrollHeight,120)}px`},k=M=>M.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),D=M=>M.split(" ").map(P=>P[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{className:`${z.chatContainer} ${i}`,...m,children:[e.jsx("div",{className:z.messagesWrapper,style:{maxHeight:c},children:s.length===0?e.jsxs("div",{className:z.emptyState,children:[e.jsx("div",{className:z.emptyIcon,children:"💬"}),e.jsx("p",{className:z.emptyText,children:"No messages yet"}),e.jsx("p",{className:z.emptySubtext,children:"Start a conversation!"})]}):e.jsxs("div",{className:z.messagesList,children:[s.map((M,P)=>{const R=M.sender==="user",B=M.sender==="system",O=o&&!B,g=R?r:M.senderName||_;return e.jsxs("div",{className:`${z.messageGroup} ${R?z.userMessage:""} ${B?z.systemMessage:""}`,children:[O&&e.jsx("div",{className:z.avatarWrapper,children:M.avatar?e.jsx("img",{src:M.avatar,alt:g,className:z.avatar}):e.jsx("div",{className:`${z.avatarPlaceholder} ${R?z.userAvatar:z.botAvatar}`,children:D(g)})}),e.jsxs("div",{className:z.messageContent,children:[!B&&!R&&e.jsx("div",{className:z.senderName,children:g}),e.jsx("div",{className:`${z.messageBubble} ${M.isTyping?z.typing:""}`,children:M.isTyping?e.jsxs("div",{className:z.typingIndicator,children:[e.jsx("span",{className:z.dot}),e.jsx("span",{className:z.dot}),e.jsx("span",{className:z.dot})]}):e.jsx("p",{className:z.messageText,children:M.content})}),a&&!M.isTyping&&e.jsx("div",{className:z.timestamp,children:k(M.timestamp)})]})]},M.id)}),d&&e.jsxs("div",{className:`${z.messageGroup}`,children:[o&&e.jsx("div",{className:z.avatarWrapper,children:e.jsx("div",{className:`${z.avatarPlaceholder} ${z.botAvatar}`,children:D(_)})}),e.jsxs("div",{className:z.messageContent,children:[e.jsx("div",{className:z.senderName,children:_}),e.jsx("div",{className:`${z.messageBubble} ${z.typing}`,children:e.jsxs("div",{className:z.typingIndicator,children:[e.jsx("span",{className:z.dot}),e.jsx("span",{className:z.dot}),e.jsx("span",{className:z.dot})]})})]})]}),e.jsx("div",{ref:N})]})}),e.jsx("form",{onSubmit:w,className:z.inputForm,children:e.jsxs("div",{className:`${z.inputWrapper} ${$?z.focused:""}`,children:[e.jsx("textarea",{ref:b,className:z.input,value:v,onChange:x,onKeyDown:L,onFocus:()=>u(!0),onBlur:()=>u(!1),placeholder:n,disabled:l,rows:1}),e.jsx("button",{type:"submit",className:`${z.sendButton} ${v.trim()?z.active:""}`,disabled:!v.trim()||l,children:e.jsx("svg",{className:z.sendIcon,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M22 2L11 13M22 2L15 22L11 13M22 2L2 9L11 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})}const Pb="styles-module__hero__1sEBl",Fb="styles-module__container__xfiKE",Ob="styles-module__content__ueveF",Hb="styles-module__title__CIbf7",Yb="styles-module__subtitle__6yYjh",qb="styles-module__actions__tCll9",Kb="styles-module__button__7B3nI",Zb="styles-module__primary__83hkW",Ub="styles-module__secondary__D63-G",Jb="styles-module__children__2oopi",Qb="styles-module__backgroundVideo__J1Jv5",ev="styles-module__overlay__VHoNo",sv="styles-module__small__ZoLmv",tv="styles-module__medium__ZrBOD",lv="styles-module__large__U8d7Z",nv="styles-module__fullscreen__tMfK4",ov="styles-module__left__-vZ-2",av="styles-module__center__fOtY0",cv="styles-module__right__D623c",_v="styles-module__gradient__vlsu4",rv="styles-module__image__8xem5",dv="styles-module__video__igUU3",iv="styles-module__minimal__cwTwh",uv="styles-module__centered__bcej3",mv="styles-module__split__3uKlG",pv="styles-module__splitContent__XlL2y",yv="styles-module__splitImage__-QSEV",hv="styles-module__imageLeft__ldioA",gv="styles-module__imageRight__BEUMS",V={hero:Pb,container:Fb,content:Ob,title:Hb,subtitle:Yb,actions:qb,button:Kb,primary:Zb,secondary:Ub,children:Jb,backgroundVideo:Qb,overlay:ev,small:sv,medium:tv,large:lv,fullscreen:nv,left:ov,center:av,right:cv,default:"styles-module__default__IeguZ",gradient:_v,image:rv,video:dv,minimal:iv,centered:uv,split:mv,splitContent:pv,splitImage:yv,imageLeft:hv,imageRight:gv};function fv({variant:s="default",size:t="large",alignment:n="center",title:l,subtitle:a,backgroundImage:o,backgroundVideo:c,overlayOpacity:d=.5,primaryAction:r,secondaryAction:_,children:i,image:m,imageAlt:v="Hero image",imagePosition:h="right",className:$="",style:u,...N}){const b={...u};o&&s==="image"&&(b.backgroundImage=`url(${o})`);const y=()=>!r&&!_?null:e.jsxs("div",{className:V.actions,children:[r&&(r.href?e.jsx("a",{href:r.href,className:`${V.button} ${V.primary}`,children:r.label}):e.jsx("button",{type:"button",onClick:r.onClick,className:`${V.button} ${V.primary}`,children:r.label})),_&&(_.href?e.jsx("a",{href:_.href,className:`${V.button} ${V.secondary}`,children:_.label}):e.jsx("button",{type:"button",onClick:_.onClick,className:`${V.button} ${V.secondary}`,children:_.label}))]}),w=()=>e.jsxs("div",{className:V.content,children:[l&&e.jsx("h1",{className:V.title,children:l}),a&&e.jsx("p",{className:V.subtitle,children:a}),y(),i&&e.jsx("div",{className:V.children,children:i})]}),L=()=>!c||s!=="video"?null:e.jsx("video",{className:V.backgroundVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:e.jsx("source",{src:c,type:"video/mp4"})}),x=()=>(s==="image"||s==="video")&&d>0?e.jsx("div",{className:V.overlay,style:{opacity:d}}):null;return s==="split"&&m?e.jsx("section",{className:`${V.hero} ${V[s]} ${V[t]} ${V[n]} ${h==="left"?V.imageLeft:V.imageRight} ${$}`,style:b,...N,children:e.jsxs("div",{className:V.container,children:[e.jsx("div",{className:V.splitContent,children:w()}),e.jsx("div",{className:V.splitImage,children:e.jsx("img",{src:m,alt:v})})]})}):e.jsxs("section",{className:`${V.hero} ${V[s]} ${V[t]} ${V[n]} ${$}`,style:b,...N,children:[L(),x(),e.jsx("div",{className:V.container,children:w()})]})}const xv="styles-module__footer__KUFHl",bv="styles-module__container__KDDfW",vv="styles-module__brand__hbfVw",$v="styles-module__brandHeader__w1Akd",jv="styles-module__brandLogo__14u6t",Nv="styles-module__brandName__akAUX",wv="styles-module__brandDescription__44VOp",kv="styles-module__sections__CvDoA",Sv="styles-module__section__gFsHi",Cv="styles-module__sectionTitle__egnB1",Lv="styles-module__linkList__vR8l8",Iv="styles-module__link__uIT9J",Mv="styles-module__externalIcon__ogw1v",zv="styles-module__social__czSa6",Dv="styles-module__socialTitle__I8z4q",Tv="styles-module__socialLinks__lVO4V",Bv="styles-module__socialLink__EtXDt",Ev="styles-module__bottom__QEkk-",Wv="styles-module__copyright__8ihY2",Rv="styles-module__bottomLinks__9EsKU",Xv="styles-module__bottomLink__BUg0l",Gv="styles-module__separator__PGnP3",Vv="styles-module__children__zbz5a",Av="styles-module__main__zO3Pb",Pv="styles-module__sidebar__CwLFk",Fv="styles-module__minimal__Xdk1a",Ov="styles-module__centered__nIVxr",Hv="styles-module__centeredContent__YyOcX",Yv="styles-module__centeredSections__Jpw1a",qv="styles-module__stacked__2rn4u",G={footer:xv,container:bv,brand:vv,brandHeader:$v,brandLogo:jv,brandName:Nv,brandDescription:wv,sections:kv,section:Sv,sectionTitle:Cv,linkList:Lv,link:Iv,externalIcon:Mv,social:zv,socialTitle:Dv,socialLinks:Tv,socialLink:Bv,bottom:Ev,copyright:Wv,bottomLinks:Rv,bottomLink:Xv,separator:Gv,children:Vv,default:"styles-module__default__ekUYi",main:Av,sidebar:Pv,minimal:Fv,centered:Ov,centeredContent:Hv,centeredSections:Yv,stacked:qv};function Kv({variant:s="default",brandName:t,brandLogo:n,brandDescription:l,sections:a=[],socialLinks:o=[],copyright:c,showYear:d=!0,bottomLinks:r=[],children:_,className:i="",...m}){const v=new Date().getFullYear(),h=()=>!t&&!n&&!l?null:e.jsxs("div",{className:G.brand,children:[(n||t)&&e.jsxs("div",{className:G.brandHeader,children:[n&&e.jsx("div",{className:G.brandLogo,children:n}),t&&e.jsx("div",{className:G.brandName,children:t})]}),l&&e.jsx("p",{className:G.brandDescription,children:l})]}),$=()=>a.length===0?null:e.jsx("div",{className:G.sections,children:a.map((b,y)=>e.jsxs("div",{className:G.section,children:[e.jsx("h3",{className:G.sectionTitle,children:b.title}),e.jsx("ul",{className:G.linkList,children:b.links.map((w,L)=>e.jsx("li",{children:e.jsxs("a",{href:w.href,className:G.link,target:w.external?"_blank":void 0,rel:w.external?"noopener noreferrer":void 0,children:[w.label,w.external&&e.jsx("span",{className:G.externalIcon,"aria-label":"Opens in new tab",children:"↗"})]})},L))})]},y))}),u=()=>o.length===0?null:e.jsxs("div",{className:G.social,children:[e.jsx("div",{className:G.socialTitle,children:"Follow Us"}),e.jsx("div",{className:G.socialLinks,children:o.map((b,y)=>e.jsx("a",{href:b.href,className:G.socialLink,target:"_blank",rel:"noopener noreferrer","aria-label":b.platform,children:b.icon||b.platform},y))})]}),N=()=>{const b=c||(t?`© ${t}`:"© All rights reserved"),y=d?`${b} ${v}`:b;return e.jsxs("div",{className:G.bottom,children:[e.jsx("div",{className:G.copyright,children:y}),r.length>0&&e.jsx("div",{className:G.bottomLinks,children:r.map((w,L)=>e.jsxs(p.Fragment,{children:[e.jsx("a",{href:w.href,className:G.bottomLink,target:w.external?"_blank":void 0,rel:w.external?"noopener noreferrer":void 0,children:w.label}),L<r.length-1&&e.jsx("span",{className:G.separator,children:"•"})]},L))})]})};return e.jsx("footer",{className:`${G.footer} ${G[s]} ${i}`,...m,children:e.jsx("div",{className:G.container,children:s==="centered"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:G.centeredContent,children:[h(),u()]}),a.length>0&&e.jsx("div",{className:G.centeredSections,children:$()}),_&&e.jsx("div",{className:G.children,children:_}),N()]}):s==="stacked"?e.jsxs(e.Fragment,{children:[h(),$(),u(),_&&e.jsx("div",{className:G.children,children:_}),N()]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:G.main,children:[h(),$()]}),(o.length>0||_)&&e.jsxs("div",{className:G.sidebar,children:[u(),_&&e.jsx("div",{className:G.children,children:_})]}),N()]})})})}exports.Accordion=Cs;exports.Alert=Gs;exports.Audio=fs;exports.Avatar=Qs;exports.Badge=dt;exports.Breadcrumbs=xt;exports.Button=Bt;exports.ButtonGroup=Gt;exports.Calendar=as;exports.Card=Jt;exports.Chat=Ab;exports.Checkbox=ol;exports.ColorPicker=jg;exports.Combobox=gl;exports.Container=Xp;exports.ContextMenu=Eg;exports.DataList=sf;exports.Datagrid=Cl;exports.DatePicker=dn;exports.DateRangePicker=vn;exports.Divider=In;exports.Dropdown=An;exports.FilePicker=oo;exports.Footer=Kv;exports.Gauge=Qh;exports.Grid=us;exports.GridItem=ms;exports.Header=yo;exports.Hero=fv;exports.ImageGallery=Ix;exports.Input=cs;exports.Label=Eo;exports.LanguageSelect=ib;exports.List=Ho;exports.Modal=aa;exports.Pagination=ia;exports.PinInput=eh;exports.ProgressBar=ka;exports.RadioButton=za;exports.RangeInput=Va;exports.Rating=mh;exports.RichSelect=cc;exports.Select=is;exports.SidePanel=jc;exports.Signpost=Tc;exports.Skeleton=Re;exports.SkeletonCircle=ys;exports.SkeletonRectangle=hs;exports.SkeletonText=ps;exports.Spacer=Jp;exports.Spinner=Oc;exports.Split=Ff;exports.StackView=u_;exports.StatCard=Bf;exports.Stepper=S_;exports.Table=V_;exports.Tabs=Q_;exports.TagInput=Ay;exports.Textarea=_s;exports.ThemeToggle=Rx;exports.Timeline=zr;exports.ToastProvider=fd;exports.ToggleSwitch=Ar;exports.Tooltip=Jr;exports.TreeView=Id;exports.VerticalNav=Jd;exports.Video=gs;exports.Window=Wh;exports.useToast=xd;
24
24
  //# sourceMappingURL=index.js.map