@clarlabs/ui 0.1.4 → 0.1.6

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"),g=require("react"),ds="styles-module__accordion__gf0fR",rs="styles-module__item__KZ8v2",is="styles-module__header__wApZ8",us="styles-module__title__yCYjK",ms="styles-module__icon__8N04V",ps="styles-module__iconOpen__PXmc8",ys="styles-module__content__WKJF6",hs="styles-module__contentOpen__l7aJG",gs="styles-module__contentInner__Co6a-",ie={accordion:ds,item:rs,header:is,title:us,icon:ms,iconOpen:ps,content:ys,contentOpen:hs,contentInner:gs};function fs({items:s,allowMultiple:l=!1,defaultOpenIds:t=[],className:o=""}){const[_,n]=g.useState(new Set(t)),a=c=>{n(i=>{const r=new Set(i);return r.has(c)?r.delete(c):(l||r.clear(),r.add(c)),r})};return e.jsx("div",{className:`${ie.accordion} ${o}`,children:s.map(c=>e.jsx(xs,{item:c,isOpen:_.has(c.id),onToggle:()=>a(c.id)},c.id))})}function xs({item:s,isOpen:l,onToggle:t}){return e.jsxs("div",{className:`${ie.item} ${l?ie.open:""}`,children:[e.jsxs("button",{className:ie.header,onClick:t,"aria-expanded":l,children:[e.jsx("span",{className:ie.title,children:s.title}),e.jsx("span",{className:`${ie.icon} ${l?ie.iconOpen:""}`,children:"▼"})]}),e.jsx("div",{className:`${ie.content} ${l?ie.contentOpen:""}`,children:e.jsx("div",{className:ie.contentInner,children:s.content})})]})}const bs="styles-module__alert__EMa3w",$s="styles-module__icon__7XvtI",vs="styles-module__content__qU8OK",js="styles-module__title__Jui7D",Ns="styles-module__message__cazZX",ws="styles-module__dismissButton__RhF19",Ss="styles-module__info__Rb2nq",Cs="styles-module__success__sQGN5",ks="styles-module__warning__Ev8EY",Is="styles-module__error__plkoU",Se={alert:bs,icon:$s,content:vs,title:js,message:Ns,dismissButton:ws,info:Ss,success:Cs,warning:ks,error:Is};function Ls({variant:s="info",title:l,message:t,dismissible:o=!1,onDismiss:_,className:n=""}){const a={info:"ℹ",success:"✓",warning:"⚠",error:"✕"};return e.jsxs("div",{className:`${Se.alert} ${Se[s]} ${n}`,role:"alert",children:[e.jsx("div",{className:Se.icon,children:a[s]}),e.jsxs("div",{className:Se.content,children:[l&&e.jsx("div",{className:Se.title,children:l}),e.jsx("div",{className:Se.message,children:t})]}),o&&e.jsx("button",{className:Se.dismissButton,onClick:_,"aria-label":"Dismiss alert",children:"✕"})]})}const zs="styles-module__avatar__xMx8n",Ms="styles-module__image__rl-6T",Ts="styles-module__initials__d0Z0v",Ds="styles-module__sm__YBcEp",Ws="styles-module__md__4GVi1",Bs="styles-module__lg__bEtEd",Es="styles-module__xl__WBAtD",Rs="styles-module__status__8qwum",Xs="styles-module__online__9lOl6",Gs="styles-module__offline__pi-XT",Vs="styles-module__busy__Cer8C",As="styles-module__away__zT9iM",Ie={avatar:zs,image:Ms,initials:Ts,sm:Ds,md:Ws,lg:Bs,xl:Es,status:Rs,online:Xs,offline:Gs,busy:Vs,away:As};function Ps({src:s,alt:l="Avatar",initials:t,size:o="md",status:_,className:n=""}){const a=()=>{if(t)return t;if(l){const c=l.split(" ");return c.length>=2?`${c[0][0]}${c[1][0]}`.toUpperCase():l.slice(0,2).toUpperCase()}return"?"};return e.jsxs("div",{className:`${Ie.avatar} ${Ie[o]} ${n}`,children:[s?e.jsx("img",{src:s,alt:l,className:Ie.image}):e.jsx("div",{className:Ie.initials,children:a()}),_&&e.jsx("span",{className:`${Ie.status} ${Ie[_]}`,"aria-label":`Status: ${_}`})]})}const qs="styles-module__badge__d6igj",Fs="styles-module__dot__lsgxk",Os="styles-module__sm__rstsk",Hs="styles-module__md__o-6j3",Zs="styles-module__lg__EXM1E",Ks="styles-module__primary__tHsyl",Ys="styles-module__success__okGOk",Us="styles-module__warning__W-psO",Js="styles-module__error__300RS",Qs="styles-module__info__Qec-V",Ge={badge:qs,dot:Fs,sm:Os,md:Hs,lg:Zs,default:"styles-module__default__lOwCs",primary:Ks,success:Ys,warning:Us,error:Js,info:Qs};function el({children:s,variant:l="default",size:t="md",dot:o=!1,className:_=""}){return e.jsxs("span",{className:`${Ge.badge} ${Ge[l]} ${Ge[t]} ${_}`,children:[o&&e.jsx("span",{className:Ge.dot}),s]})}const sl="styles-module__breadcrumbs__jVeyK",ll="styles-module__list__IBUYZ",tl="styles-module__item__unpP2",ol="styles-module__link__n-LMO",nl="styles-module__button__MamiK",_l="styles-module__text__xQt-q",al="styles-module__current__vuaM0",cl="styles-module__separator__81mEk",fe={breadcrumbs:sl,list:ll,item:tl,link:ol,button:nl,text:_l,current:al,separator:cl};function dl({items:s,separator:l="/",className:t=""}){return e.jsx("nav",{className:`${fe.breadcrumbs} ${t}`,"aria-label":"Breadcrumb",children:e.jsx("ol",{className:fe.list,children:s.map((o,_)=>{const n=_===s.length-1;return e.jsxs("li",{className:fe.item,children:[o.href&&!n?e.jsx("a",{href:o.href,className:fe.link,children:o.label}):o.onClick&&!n?e.jsx("button",{onClick:o.onClick,className:fe.button,children:o.label}):e.jsx("span",{className:`${fe.text} ${n?fe.current:""}`,children:o.label}),!n&&e.jsx("span",{className:fe.separator,"aria-hidden":"true",children:l})]},_)})})})}const rl="styles-module__button__Sh-fr",il="styles-module__sm__TZ7PA",ul="styles-module__md__MdfAS",ml="styles-module__lg__zhBVx",pl="styles-module__fullWidth__KAUu7",yl="styles-module__loading__jL3RT",hl="styles-module__spinner__cTprF",gl="styles-module__spin__aE1Nk",fl="styles-module__hiddenContent__lbKDI",xl="styles-module__primary__TRNPt",bl="styles-module__secondary__QKgly",$l="styles-module__success__DI2AT",vl="styles-module__danger__dnMp7",jl="styles-module__outline__-o6rL",Nl="styles-module__ghost__lca2R",Ce={button:rl,sm:il,md:ul,lg:ml,fullWidth:pl,loading:yl,spinner:hl,spin:gl,hiddenContent:fl,primary:xl,secondary:bl,success:$l,danger:vl,outline:jl,ghost:Nl};function wl({variant:s="primary",size:l="md",fullWidth:t=!1,loading:o=!1,disabled:_,className:n="",children:a,...c}){return e.jsxs("button",{className:`
2
- ${Ce.button}
3
- ${Ce[s]}
4
- ${Ce[l]}
5
- ${t?Ce.fullWidth:""}
6
- ${o?Ce.loading:""}
7
- ${n}
8
- `,disabled:_||o,...c,children:[o&&e.jsx("span",{className:Ce.spinner}),e.jsx("span",{className:o?Ce.hiddenContent:"",children:a})]})}const Sl="styles-module__buttonGroup__Uqp-x",Cl="styles-module__horizontal__oeLpW",kl="styles-module__vertical__ZrJkT",Il="styles-module__fullWidth__sxqJJ",Fe={buttonGroup:Sl,horizontal:Cl,vertical:kl,fullWidth:Il};function Ll({children:s,orientation:l="horizontal",fullWidth:t=!1,className:o=""}){return e.jsx("div",{className:`
9
- ${Fe.buttonGroup}
10
- ${Fe[l]}
11
- ${t?Fe.fullWidth:""}
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:""}
12
7
  ${o}
13
- `,role:"group",children:s})}const zl="styles-module__card__0iVez",Ml="styles-module__hoverable__7-MZP",Tl="styles-module__clickable__WiARM",Dl="styles-module__imageWrapper__LlBXL",Wl="styles-module__image__5KApl",Bl="styles-module__content__-0XZZ",El="styles-module__header__WVGN7",Rl="styles-module__title__-Th-m",Xl="styles-module__subtitle__VDwvc",Gl="styles-module__body__iaDKl",Vl="styles-module__footer__b10VS",le={card:zl,hoverable:Ml,clickable:Tl,imageWrapper:Dl,image:Wl,content:Bl,header:El,title:Rl,subtitle:Xl,body:Gl,footer:Vl};function Al({children:s,title:l,subtitle:t,footer:o,image:_,hoverable:n=!1,className:a="",onClick:c}){const i=!!c;return e.jsxs("div",{className:`
14
- ${le.card}
15
- ${n?le.hoverable:""}
16
- ${i?le.clickable:""}
17
- ${a}
18
- `,onClick:c,role:i?"button":void 0,tabIndex:i?0:void 0,children:[_&&e.jsx("div",{className:le.imageWrapper,children:e.jsx("img",{src:_,alt:l||"",className:le.image})}),e.jsxs("div",{className:le.content,children:[(l||t)&&e.jsxs("div",{className:le.header,children:[l&&e.jsx("h3",{className:le.title,children:l}),t&&e.jsx("p",{className:le.subtitle,children:t})]}),e.jsx("div",{className:le.body,children:s}),o&&e.jsx("div",{className:le.footer,children:o})]})]})}const Pl="styles-module__checkboxWrapper__5ECcg",ql="styles-module__checkbox__AVGTi",Fl="styles-module__checkmark__xfDiG",Ol="styles-module__label__56KkR",Hl="styles-module__checkIcon__B246P",Zl="styles-module__indeterminateIcon__L9Kf-",Le={checkboxWrapper:Pl,checkbox:ql,checkmark:Fl,label:Ol,checkIcon:Hl,indeterminateIcon:Zl};function Kl({label:s,indeterminate:l=!1,className:t="",...o}){const _=g.useRef(null);return g.useEffect(()=>{_.current&&(_.current.indeterminate=l)},[l]),e.jsxs("label",{className:`${Le.checkboxWrapper} ${t}`,children:[e.jsx("input",{ref:_,type:"checkbox",className:Le.checkbox,...o}),e.jsx("span",{className:Le.checkmark,children:l?e.jsx("span",{className:Le.indeterminateIcon,children:"−"}):e.jsx("span",{className:Le.checkIcon,children:"✓"})}),s&&e.jsx("span",{className:Le.label,children:s})]})}const Yl="styles-module__combobox__YH03u",Ul="styles-module__inputWrapper__UsIYk",Jl="styles-module__input__F-6BL",Ql="styles-module__disabled__UR9gQ",et="styles-module__arrow__LV12a",st="styles-module__open__-bJ28",lt="styles-module__menu__twpPT",tt="styles-module__option__v6IYz",ot="styles-module__optionDisabled__vOMRI",nt="styles-module__highlighted__pxy-X",_t="styles-module__noResults__-sgTv",te={combobox:Yl,inputWrapper:Ul,input:Jl,disabled:Ql,arrow:et,open:st,menu:lt,option:tt,optionDisabled:ot,highlighted:nt,noResults:_t};function at({options:s,value:l,defaultValue:t="",onChange:o,placeholder:_="Select or type...",disabled:n=!1,className:a="",allowCustomValue:c=!1,filterFunction:i}){const[r,d]=g.useState(t),[u,x]=g.useState(!1),[h,b]=g.useState(-1),m=g.useRef(null),w=g.useRef(null),v=g.useRef(null),y=l!==void 0,N=y?l:r,S=i||((p,f)=>p.label.toLowerCase().includes(f.toLowerCase())),C=s.filter(p=>S(p,N));g.useEffect(()=>{const p=f=>{v.current&&!v.current.contains(f.target)&&x(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),g.useEffect(()=>{if(u&&h>=0&&w.current){const p=w.current.children[h];p&&p.scrollIntoView({block:"nearest"})}},[h,u]);const M=p=>{const f=p.target.value;y||d(f),o?.(f),x(!0),b(-1)},B=p=>{if(p.disabled)return;const f=p.value;y||d(p.label),o?.(f),x(!1),b(-1),m.current?.blur()},V=p=>{if(!n)switch(p.key){case"ArrowDown":p.preventDefault(),x(!0),b(f=>{const j=C.length-1;if(f>=j)return j;let z=f+1;for(;z<=j&&C[z].disabled;)z++;return z<=j?z:f});break;case"ArrowUp":p.preventDefault(),b(f=>{if(f<=0)return-1;let j=f-1;for(;j>=0&&C[j].disabled;)j--;return j>=0?j:-1});break;case"Enter":p.preventDefault(),u&&h>=0?B(C[h]):c&&(o?.(N),x(!1));break;case"Escape":p.preventDefault(),x(!1),b(-1),m.current?.blur();break;case"Tab":x(!1);break}},X=()=>{n||x(!0)},T=s.find(p=>p.value===N),A=T?T.label:N;return e.jsxs("div",{ref:v,className:`${te.combobox} ${a}`,children:[e.jsxs("div",{className:te.inputWrapper,children:[e.jsx("input",{ref:m,type:"text",className:`${te.input} ${n?te.disabled:""}`,value:A,onChange:M,onKeyDown:V,onFocus:X,placeholder:_,disabled:n,autoComplete:"off",role:"combobox","aria-expanded":u,"aria-autocomplete":"list","aria-controls":"combobox-listbox"}),e.jsx("span",{className:`${te.arrow} ${u?te.open:""}`,children:"▼"})]}),u&&C.length>0&&e.jsx("ul",{ref:w,id:"combobox-listbox",className:te.menu,role:"listbox",children:C.map((p,f)=>e.jsx("li",{className:`${te.option} ${h===f?te.highlighted:""} ${p.disabled?te.optionDisabled:""}`,onClick:()=>B(p),role:"option","aria-selected":p.value===N,"aria-disabled":p.disabled,children:p.label},p.value))}),u&&C.length===0&&e.jsx("div",{className:te.noResults,children:c?"Press Enter to use custom value":"No results found"})]})}const ct="styles-module__datagridWrapper__rcPKe",dt="styles-module__datagrid__2KTB3",rt="styles-module__thead__VLK3H",it="styles-module__th__GVqEG",ut="styles-module__tbody__vIVcl",mt="styles-module__tr__Qn6CH",pt="styles-module__td__UsBhW",yt="styles-module__hoverable__6H3Yy",ht="styles-module__clickable__acA9M",gt="styles-module__striped__1a6NP",ae={datagridWrapper:ct,datagrid:dt,thead:rt,th:it,tbody:ut,tr:mt,td:pt,hoverable:yt,clickable:ht,striped:gt};function ft({columns:s,data:l,onRowClick:t,striped:o=!1,hoverable:_=!0,className:n=""}){return e.jsx("div",{className:`${ae.datagridWrapper} ${n}`,children:e.jsxs("table",{className:ae.datagrid,children:[e.jsx("thead",{className:ae.thead,children:e.jsx("tr",{children:s.map(a=>e.jsx("th",{className:ae.th,style:{width:a.width},children:a.header},a.key))})}),e.jsx("tbody",{className:ae.tbody,children:l.map((a,c)=>e.jsx("tr",{className:`
19
- ${ae.tr}
20
- ${o&&c%2===1?ae.striped:""}
21
- ${_?ae.hoverable:""}
22
- ${t?ae.clickable:""}
23
- `,onClick:()=>t?.(a),children:s.map(i=>e.jsx("td",{className:ae.td,children:i.render?i.render(a[i.key],a):a[i.key]},i.key))},c))})]})})}const xt="styles-module__datePicker__uLxOg",bt="styles-module__input__0m5L3",$t="styles-module__icon__0-EVW",Oe={datePicker:xt,input:bt,icon:$t};function vt({value:s,onChange:l,minDate:t,maxDate:o,className:_="",...n}){const[a,c]=g.useState(s?He(s):""),i=r=>{const d=r.target.value;if(c(d),d){const u=new Date(d);isNaN(u.getTime())||l?.(u)}else l?.(null)};return e.jsxs("div",{className:`${Oe.datePicker} ${_}`,children:[e.jsx("input",{type:"date",className:Oe.input,value:a,onChange:i,min:t?He(t):void 0,max:o?He(o):void 0,...n}),e.jsx("span",{className:Oe.icon,children:"📅"})]})}function He(s){const l=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),o=String(s.getDate()).padStart(2,"0");return`${l}-${t}-${o}`}const jt="styles-module__dateRangePicker__2-ckk",Nt="styles-module__inputWrapper__gXzep",wt="styles-module__input__yirN1",St="styles-module__icon__k-Xdp",Ct="styles-module__separator__Lxjed",xe={dateRangePicker:jt,inputWrapper:Nt,input:wt,icon:St,separator:Ct};function kt({value:s,onChange:l,minDate:t,maxDate:o,className:_=""}){const[n,a]=g.useState(s?.start?ze(s.start):""),[c,i]=g.useState(s?.end?ze(s.end):""),r=u=>{const x=u.target.value;a(x);const h=x?new Date(x):null,b=c?new Date(c):null;h&&!isNaN(h.getTime())?l?.({start:h,end:b}):l?.({start:null,end:b})},d=u=>{const x=u.target.value;i(x);const h=n?new Date(n):null,b=x?new Date(x):null;b&&!isNaN(b.getTime())?l?.({start:h,end:b}):l?.({start:h,end:null})};return e.jsxs("div",{className:`${xe.dateRangePicker} ${_}`,children:[e.jsxs("div",{className:xe.inputWrapper,children:[e.jsx("input",{type:"date",className:xe.input,value:n,onChange:r,min:t?ze(t):void 0,max:c||(o?ze(o):void 0),placeholder:"Start date"}),e.jsx("span",{className:xe.icon,children:"📅"})]}),e.jsx("span",{className:xe.separator,children:"→"}),e.jsxs("div",{className:xe.inputWrapper,children:[e.jsx("input",{type:"date",className:xe.input,value:c,onChange:d,min:n||(t?ze(t):void 0),max:o?ze(o):void 0,placeholder:"End date"}),e.jsx("span",{className:xe.icon,children:"📅"})]})]})}function ze(s){const l=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),o=String(s.getDate()).padStart(2,"0");return`${l}-${t}-${o}`}const It="styles-module__divider__I6KTc",Lt="styles-module__horizontal__rrjPy",zt="styles-module__solid__LhHPX",Mt="styles-module__dashed__2ZL2z",Tt="styles-module__dotted__N8tLr",Dt="styles-module__line__ff0dO",Wt="styles-module__label__izE2E",Bt="styles-module__vertical__RBm03",Me={divider:It,horizontal:Lt,solid:zt,dashed:Mt,dotted:Tt,line:Dt,label:Wt,vertical:Bt};function Et({orientation:s="horizontal",variant:l="solid",label:t,className:o=""}){const _=`${Me.divider} ${Me[s]} ${Me[l]} ${o}`;return t&&s==="horizontal"?e.jsxs("div",{className:_,children:[e.jsx("span",{className:Me.line}),e.jsx("span",{className:Me.label,children:t}),e.jsx("span",{className:Me.line})]}):e.jsx("div",{className:_})}const Rt="styles-module__dropdown__uiKSF",Xt="styles-module__trigger__tVV7I",Gt="styles-module__disabled__Xy0oo",Vt="styles-module__selected__RnAL-",At="styles-module__placeholder__aePOZ",Pt="styles-module__arrow__QYBcO",qt="styles-module__open__huthl",Ft="styles-module__menu__Fvg4d",Ot="styles-module__option__OLwBz",Ht="styles-module__optionDisabled__n9Gdm",Zt="styles-module__active__W7XbV",oe={dropdown:Rt,trigger:Xt,disabled:Gt,selected:Vt,placeholder:At,arrow:Pt,open:qt,menu:Ft,option:Ot,optionDisabled:Ht,active:Zt};function Kt({options:s,value:l,onChange:t,placeholder:o="Select an option",disabled:_=!1,className:n=""}){const[a,c]=g.useState(!1),[i,r]=g.useState(l||""),d=g.useRef(null);g.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=>{_||(r(b),c(!1),t?.(b))},x=s.find(b=>b.value===i),h=x?.label||o;return e.jsxs("div",{className:`${oe.dropdown} ${n}`,ref:d,children:[e.jsxs("button",{className:`${oe.trigger} ${_?oe.disabled:""}`,onClick:()=>!_&&c(!a),disabled:_,type:"button",children:[e.jsx("span",{className:x?oe.selected:oe.placeholder,children:h}),e.jsx("span",{className:`${oe.arrow} ${a?oe.open:""}`,children:"▼"})]}),a&&e.jsx("div",{className:oe.menu,children:s.map(b=>e.jsx("div",{className:`${oe.option} ${b.value===i?oe.active:""} ${b.disabled?oe.optionDisabled:""}`,onClick:()=>!b.disabled&&u(b.value),children:b.label},b.value))})]})}const Yt="styles-module__filePicker__mq8yj",Ut="styles-module__dropzone__DdFZi",Jt="styles-module__disabled__PEgD4",Qt="styles-module__icon__lgApu",eo="styles-module__text__Djodx",so="styles-module__input__3Edc4",lo="styles-module__fileList__mG9O1",to="styles-module__fileItem__NB3Uq",oo="styles-module__processing__R-ZHY",no="styles-module__uploaded__gJ1od",_o="styles-module__failed__MlKNj",ao="styles-module__fileIcon__IUNOU",co="styles-module__fileName__E1M5I",ro="styles-module__fileSize__Yiown",io="styles-module__error__KmdmE",uo="styles-module__remove__JiGmS",K={filePicker:Yt,dropzone:Ut,disabled:Jt,icon:Qt,text:eo,input:so,fileList:lo,fileItem:to,processing:oo,uploaded:no,failed:_o,fileIcon:ao,fileName:co,fileSize:ro,error:io,remove:uo};function mo({accept:s,multiple:l=!1,maxSize:t,disabled:o=!1,onChange:_,onUpload:n,className:a=""}){const[c,i]=g.useState([]),r=g.useRef(null),d=async m=>{if(!m||o)return;const w=Array.from(m).map(v=>t&&v.size>t?{file:v,status:"failed",error:"File too large"}:{file:v,status:"idle"});if(i(v=>[...v,...w]),_?.(w),n)for(const v of w)v.status!=="failed"&&await u(v)},u=async m=>{x(m.file.name,"processing");try{await n?.(m.file),x(m.file.name,"uploaded")}catch(w){x(m.file.name,"failed",w.message)}},x=(m,w,v)=>{i(y=>y.map(N=>N.file.name===m?{...N,status:w,error:v}:N))},h=m=>{i(w=>w.filter(v=>v.file.name!==m))},b=m=>{switch(m){case"processing":return"⏳";case"uploaded":return"✓";case"failed":return"✗";default:return"📄"}};return e.jsxs("div",{className:`${K.filePicker} ${a}`,children:[e.jsxs("div",{className:`${K.dropzone} ${o?K.disabled:""}`,onClick:()=>!o&&r.current?.click(),children:[e.jsx("span",{className:K.icon,children:"📁"}),e.jsx("span",{className:K.text,children:"Click to select files"})]}),e.jsx("input",{ref:r,type:"file",accept:s,multiple:l,disabled:o,onChange:m=>d(m.target.files),className:K.input}),c.length>0&&e.jsx("div",{className:K.fileList,children:c.map((m,w)=>e.jsxs("div",{className:`${K.fileItem} ${K[m.status]}`,children:[e.jsx("span",{className:K.fileIcon,children:b(m.status)}),e.jsx("span",{className:K.fileName,children:m.file.name}),e.jsxs("span",{className:K.fileSize,children:[(m.file.size/1024).toFixed(1)," KB"]}),m.error&&e.jsx("span",{className:K.error,children:m.error}),e.jsx("button",{className:K.remove,onClick:()=>h(m.file.name),children:"×"})]},`${m.file.name}-${w}`))})]})}const po="styles-module__header__9QAJF",yo="styles-module__sticky__wm-sd",ho="styles-module__content__ZPdW7",go="styles-module__brand__-0bx7",fo="styles-module__logo__3KpY5",xo="styles-module__title__yDhEG",bo="styles-module__nav__6MmHf",$o="styles-module__actions__yTPsJ",be={header:po,sticky:yo,content:ho,brand:go,logo:fo,title:xo,nav:bo,actions:$o};function vo({logo:s,title:l,children:t,actions:o,sticky:_=!1,className:n=""}){return e.jsx("header",{className:`${be.header} ${_?be.sticky:""} ${n}`,children:e.jsxs("div",{className:be.content,children:[(s||l)&&e.jsxs("div",{className:be.brand,children:[s&&e.jsx("div",{className:be.logo,children:s}),l&&e.jsx("h1",{className:be.title,children:l})]}),t&&e.jsx("div",{className:be.nav,children:t}),o&&e.jsx("div",{className:be.actions,children:o})]})})}const jo="styles-module__inputContainer__KSDK-",No="styles-module__fullWidth__rLaUj",wo="styles-module__label__-uPCz",So="styles-module__wrapper__JTZMt",Co="styles-module__input__KRJnF",ko="styles-module__withIcon__mikvP",Io="styles-module__disabled__NjJFs",Lo="styles-module__sm__cr6Ko",zo="styles-module__lg__geHP2",Mo="styles-module__error__UCrFp",To="styles-module__success__fKUT8",Do="styles-module__icon__qopq-",Wo="styles-module__helperText__9ULK8",Bo="styles-module__errorText__JTsOi",Q={inputContainer:jo,fullWidth:No,label:wo,wrapper:So,input:Co,withIcon:ko,disabled:Io,sm:Lo,lg:zo,error:Mo,success:To,icon:Do,helperText:Wo,errorText:Bo},Ue=g.forwardRef(({label:s,error:l,helperText:t,size:o="md",variant:_="default",icon:n,fullWidth:a=!1,className:c="",disabled:i=!1,...r},d)=>{const u=l?"error":_,x=`${Q.inputContainer} ${a?Q.fullWidth:""} ${c}`,h=`${Q.input} ${Q[o]} ${Q[u]} ${n?Q.withIcon:""} ${i?Q.disabled:""}`;return e.jsxs("div",{className:x,children:[s&&e.jsx("label",{className:Q.label,children:s}),e.jsxs("div",{className:Q.wrapper,children:[n&&e.jsx("span",{className:Q.icon,children:n}),e.jsx("input",{ref:d,className:h,disabled:i,...r})]}),(l||t)&&e.jsx("span",{className:`${Q.helperText} ${l?Q.errorText:""}`,children:l||t})]})});Ue.displayName="Input";const Eo="styles-module__label__QjEAd",Ro="styles-module__disabled__yJ4NK",Xo="styles-module__sm__KnRgV",Go="styles-module__md__z8a54",Vo="styles-module__lg__KOzy-",Ao="styles-module__required__ZBqbG",Ve={label:Eo,disabled:Ro,sm:Xo,md:Go,lg:Vo,required:Ao};function Po({size:s="md",required:l=!1,disabled:t=!1,className:o="",children:_,...n}){return e.jsxs("label",{className:`${Ve.label} ${Ve[s]} ${t?Ve.disabled:""} ${o}`,...n,children:[_,l&&e.jsx("span",{className:Ve.required,children:"*"})]})}const qo="styles-module__list__i-PH3",Fo="styles-module__dividers__klcR-",Oo="styles-module__item__hLR7A",Ho="styles-module__hoverable__6FbJF",Zo="styles-module__clickable__ahnDb",Ko="styles-module__disabled__W5Z3Y",Yo="styles-module__icon__fSr06",Uo="styles-module__content__ujdaE",Jo="styles-module__badge__dwlRk",me={list:qo,dividers:Fo,item:Oo,hoverable:Ho,clickable:Zo,disabled:Ko,icon:Yo,content:Uo,badge:Jo};function Qo({items:s,hoverable:l=!1,dividers:t=!1,className:o=""}){return e.jsx("ul",{className:`${me.list} ${t?me.dividers:""} ${o}`,children:s.map(_=>e.jsxs("li",{className:`${me.item} ${l&&!_.disabled?me.hoverable:""} ${_.disabled?me.disabled:""} ${_.onClick&&!_.disabled?me.clickable:""}`,onClick:_.disabled?void 0:_.onClick,children:[_.icon&&e.jsx("span",{className:me.icon,children:_.icon}),e.jsx("span",{className:me.content,children:_.content}),_.badge&&e.jsx("span",{className:me.badge,children:_.badge})]},_.id))})}const en="styles-module__overlay__Ty-He",sn="styles-module__fadeIn__vywQ8",ln="styles-module__modal__bC015",tn="styles-module__slideUp__i-uri",on="styles-module__sm__HasCZ",nn="styles-module__md__y-51k",_n="styles-module__lg__bXotd",an="styles-module__xl__wKYbR",cn="styles-module__header__agEZy",dn="styles-module__title__91HGo",rn="styles-module__closeButton__u-naO",un="styles-module__content__1xlis",mn="styles-module__footer__m3SbZ",$e={overlay:en,fadeIn:sn,modal:ln,slideUp:tn,sm:on,md:nn,lg:_n,xl:an,header:cn,title:dn,closeButton:rn,content:un,footer:mn};function pn({isOpen:s,onClose:l,title:t,children:o,footer:_,size:n="md",closeOnOverlayClick:a=!0,showCloseButton:c=!0,className:i=""}){return g.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),g.useEffect(()=>{const r=d=>{d.key==="Escape"&&s&&l()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[s,l]),s?e.jsx("div",{className:$e.overlay,onClick:a?l:void 0,children:e.jsxs("div",{className:`${$e.modal} ${$e[n]} ${i}`,onClick:r=>r.stopPropagation(),children:[(t||c)&&e.jsxs("div",{className:$e.header,children:[t&&e.jsx("h2",{className:$e.title,children:t}),c&&e.jsx("button",{className:$e.closeButton,onClick:l,type:"button",children:"×"})]}),e.jsx("div",{className:$e.content,children:o}),_&&e.jsx("div",{className:$e.footer,children:_})]})}):null}const yn="styles-module__pagination__P-TuL",hn="styles-module__pageButton__saWQq",gn="styles-module__active__6G9dp",fn="styles-module__dots__HNsj1",ve={pagination:yn,pageButton:hn,active:gn,dots:fn};function xn({currentPage:s,totalPages:l,onPageChange:t,showFirstLast:o=!0,siblingCount:_=1,className:n=""}){const a=(u,x)=>Array.from({length:x-u+1},(h,b)=>u+b),i=(()=>{const u=_+5;if(l<=u)return a(1,l);const x=Math.max(s-_,1),h=Math.min(s+_,l),b=x>2,m=h<l-1;return!b&&m?[...a(1,3+2*_),"...",l]:b&&!m?[1,"...",...a(l-(2+2*_),l)]:[1,"...",...a(x,h),"...",l]})(),r=()=>{s>1&&t(s-1)},d=()=>{s<l&&t(s+1)};return e.jsxs("nav",{className:`${ve.pagination} ${n}`,children:[o&&e.jsx("button",{className:ve.pageButton,onClick:()=>t(1),disabled:s===1,children:"«"}),e.jsx("button",{className:ve.pageButton,onClick:r,disabled:s===1,children:"‹"}),i.map((u,x)=>u==="..."?e.jsx("span",{className:ve.dots,children:"..."},`dots-${x}`):e.jsx("button",{className:`${ve.pageButton} ${u===s?ve.active:""}`,onClick:()=>t(u),children:u},u)),e.jsx("button",{className:ve.pageButton,onClick:d,disabled:s===l,children:"›"}),o&&e.jsx("button",{className:ve.pageButton,onClick:()=>t(l),disabled:s===l,children:"»"})]})}const bn="styles-module__container__u4q5n",$n="styles-module__progressBar__wAUjD",vn="styles-module__sm__ZBiyl",jn="styles-module__md__oXZzu",Nn="styles-module__lg__JmNO0",wn="styles-module__fill__bDflZ",Sn="styles-module__success__drT36",Cn="styles-module__warning__p-mHQ",kn="styles-module__error__ecpJB",In="styles-module__info__vfjga",Ln="styles-module__striped__El9o5",zn="styles-module__animated__9FN7u",Mn="styles-module__progress-stripes__etVVj",Tn="styles-module__label__TpB8Q",je={container:bn,progressBar:$n,sm:vn,md:jn,lg:Nn,fill:wn,default:"styles-module__default__7qIAE",success:Sn,warning:Cn,error:kn,info:In,striped:Ln,animated:zn,"progress-stripes":"styles-module__progress-stripes__etVVj",progressStripes:Mn,label:Tn};function Dn({value:s,max:l=100,variant:t="default",size:o="md",showLabel:_=!1,label:n,animated:a=!1,striped:c=!1,className:i=""}){const r=Math.min(Math.max(s/l*100,0),100),d=n||`${Math.round(r)}%`;return e.jsx("div",{className:`${je.container} ${i}`,children:e.jsx("div",{className:`${je.progressBar} ${je[o]}`,children:e.jsx("div",{className:`${je.fill} ${je[t]} ${c?je.striped:""} ${a?je.animated:""}`,style:{width:`${r}%`},children:_&&e.jsx("span",{className:je.label,children:d})})})})}const Wn="styles-module__radioButton__30HVZ",Bn="styles-module__disabled__TuSU6",En="styles-module__input__-NkgJ",Rn="styles-module__radio__dKOL5",Xn="styles-module__label__M94so",Be={radioButton:Wn,disabled:Bn,input:En,radio:Rn,label:Xn};function Gn({label:s,value:l,name:t,checked:o=!1,disabled:_=!1,onChange:n,className:a="",...c}){return e.jsxs("label",{className:`${Be.radioButton} ${_?Be.disabled:""} ${a}`,children:[e.jsx("input",{type:"radio",name:t,value:l,checked:o,disabled:_,onChange:n,className:Be.input,...c}),e.jsx("span",{className:Be.radio}),s&&e.jsx("span",{className:Be.label,children:s})]})}const Vn="styles-module__container__KhKB7",An="styles-module__label__nGyr8",Pn="styles-module__rangeWrapper__dnhOv",qn="styles-module__inputWrapper__vVIhy",Fn="styles-module__input__C9H5I",On="styles-module__disabled__8xB9M",Hn="styles-module__minMax__5jVHq",Zn="styles-module__value__4hZJK",pe={container:Vn,label:An,rangeWrapper:Pn,inputWrapper:qn,input:Fn,disabled:On,minMax:Hn,value:Zn};function Kn({label:s,min:l=0,max:t=100,step:o=1,value:_=50,showValue:n=!1,showMinMax:a=!1,onChange:c,className:i="",disabled:r=!1,...d}){const u=(_-l)/(t-l)*100;return e.jsxs("div",{className:`${pe.container} ${i}`,children:[s&&e.jsx("label",{className:pe.label,children:s}),e.jsxs("div",{className:pe.rangeWrapper,children:[a&&e.jsx("span",{className:pe.minMax,children:l}),e.jsx("div",{className:pe.inputWrapper,children:e.jsx("input",{type:"range",min:l,max:t,step:o,value:_,onChange:c,disabled:r,className:`${pe.input} ${r?pe.disabled:""}`,style:{"--percentage":`${u}%`},...d})}),a&&e.jsx("span",{className:pe.minMax,children:t})]}),n&&e.jsx("span",{className:pe.value,children:_})]})}const Yn="styles-module__richSelect__xtDdz",Un="styles-module__trigger__nkuFi",Jn="styles-module__disabled__aRnNR",Qn="styles-module__selectedContent__1YUDI",e_="styles-module__textContent__sVML5",s_="styles-module__label__DYAVs",l_="styles-module__description__-NG4t",t_="styles-module__placeholder__83U0w",o_="styles-module__icon__v-J2b",n_="styles-module__arrow__m-D1Y",__="styles-module__open__gZef9",a_="styles-module__menu__zMZHy",c_="styles-module__searchWrapper__yPXor",d_="styles-module__searchInput__Vq3C6",r_="styles-module__optionsList__OAhYK",i_="styles-module__option__vTDi0",u_="styles-module__optionDisabled__spphz",m_="styles-module__active__FRlKy",p_="styles-module__noResults__DsPu8",E={richSelect:Yn,trigger:Un,disabled:Jn,selectedContent:Qn,textContent:e_,label:s_,description:l_,placeholder:t_,icon:o_,arrow:n_,open:__,menu:a_,searchWrapper:c_,searchInput:d_,optionsList:r_,option:i_,optionDisabled:u_,active:m_,noResults:p_};function y_({options:s,value:l,onChange:t,placeholder:o="Select an option",disabled:_=!1,searchable:n=!1,className:a=""}){const[c,i]=g.useState(!1),[r,d]=g.useState(""),u=g.useRef(null);g.useEffect(()=>{const m=w=>{u.current&&!u.current.contains(w.target)&&(i(!1),d(""))};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);const x=m=>{_||(t?.(m),i(!1),d(""))},h=s.find(m=>m.value===l),b=n?s.filter(m=>m.label.toLowerCase().includes(r.toLowerCase())):s;return e.jsxs("div",{className:`${E.richSelect} ${a}`,ref:u,children:[e.jsxs("button",{className:`${E.trigger} ${_?E.disabled:""}`,onClick:()=>!_&&i(!c),disabled:_,type:"button",children:[h?e.jsxs("div",{className:E.selectedContent,children:[h.icon&&e.jsx("span",{className:E.icon,children:h.icon}),e.jsxs("div",{className:E.textContent,children:[e.jsx("span",{className:E.label,children:h.label}),h.description&&e.jsx("span",{className:E.description,children:h.description})]})]}):e.jsx("span",{className:E.placeholder,children:o}),e.jsx("span",{className:`${E.arrow} ${c?E.open:""}`,children:"▼"})]}),c&&e.jsxs("div",{className:E.menu,children:[n&&e.jsx("div",{className:E.searchWrapper,children:e.jsx("input",{type:"text",className:E.searchInput,placeholder:"Search...",value:r,onChange:m=>d(m.target.value),autoFocus:!0})}),e.jsxs("div",{className:E.optionsList,children:[b.map(m=>e.jsxs("div",{className:`${E.option} ${m.value===l?E.active:""} ${m.disabled?E.optionDisabled:""}`,onClick:()=>!m.disabled&&x(m.value),children:[m.icon&&e.jsx("span",{className:E.icon,children:m.icon}),e.jsxs("div",{className:E.textContent,children:[e.jsx("span",{className:E.label,children:m.label}),m.description&&e.jsx("span",{className:E.description,children:m.description})]})]},m.value)),b.length===0&&e.jsx("div",{className:E.noResults,children:"No results found"})]})]})]})}const h_="styles-module__overlay__tP-g3",g_="styles-module__fadeIn__MKn3S",f_="styles-module__sidePanel__bfmoW",x_="styles-module__left__X7-S4",b_="styles-module__slideInLeft__nE6Ff",$_="styles-module__right__Fvefe",v_="styles-module__slideInRight__bvjTy",j_="styles-module__sm__CHsFH",N_="styles-module__md__17Q10",w_="styles-module__lg__8XCJd",S_="styles-module__header__-AKr-",C_="styles-module__title__8S4yp",k_="styles-module__closeButton__DQgJe",I_="styles-module__content__XGAif",L_="styles-module__footer__cX66N",ye={overlay:h_,fadeIn:g_,sidePanel:f_,left:x_,slideInLeft:b_,right:$_,slideInRight:v_,sm:j_,md:N_,lg:w_,header:S_,title:C_,closeButton:k_,content:I_,footer:L_};function z_({isOpen:s,onClose:l,title:t,children:o,footer:_,position:n="right",size:a="md",closeOnOverlayClick:c=!0,showCloseButton:i=!0,className:r=""}){return g.useEffect(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),g.useEffect(()=>{const d=u=>{u.key==="Escape"&&s&&l()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[s,l]),s?e.jsx("div",{className:ye.overlay,onClick:c?l:void 0,children:e.jsxs("div",{className:`${ye.sidePanel} ${ye[n]} ${ye[a]} ${r}`,onClick:d=>d.stopPropagation(),children:[(t||i)&&e.jsxs("div",{className:ye.header,children:[t&&e.jsx("h2",{className:ye.title,children:t}),i&&e.jsx("button",{className:ye.closeButton,onClick:l,type:"button",children:"×"})]}),e.jsx("div",{className:ye.content,children:o}),_&&e.jsx("div",{className:ye.footer,children:_})]})}):null}const M_="styles-module__signpost__tLnmc",T_="styles-module__trigger__25KnS",D_="styles-module__content__z4pUG",W_="styles-module__fadeIn__0jB27",B_="styles-module__top__Jn5XX",E_="styles-module__bottom__CGe3J",R_="styles-module__left__zuDmF",X_="styles-module__right__xnSw3",G_="styles-module__inner__7euCB",V_="styles-module__arrow__mGVpk",Te={signpost:M_,trigger:T_,content:D_,fadeIn:W_,top:B_,bottom:E_,left:R_,right:X_,inner:G_,arrow:V_};function A_({trigger:s,children:l,position:t="top",className:o=""}){const[_,n]=g.useState(!1),a=g.useRef(null);return g.useEffect(()=>{const c=i=>{a.current&&!a.current.contains(i.target)&&n(!1)};return _&&document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[_]),e.jsxs("div",{className:`${Te.signpost} ${o}`,ref:a,children:[e.jsx("div",{className:Te.trigger,onClick:()=>n(!_),children:s}),_&&e.jsxs("div",{className:`${Te.content} ${Te[t]}`,children:[e.jsx("div",{className:Te.arrow}),e.jsx("div",{className:Te.inner,children:l})]})]})}const P_="styles-module__spinnerWrapper__ht5E9",q_="styles-module__spinner__D8f-h",F_="styles-module__circle__z537L",O_="styles-module__spin__Gt3A-",H_="styles-module__sm__Ukc8Q",Z_="styles-module__md__Hg7EK",K_="styles-module__lg__ac6jQ",Y_="styles-module__primary__Pah-x",U_="styles-module__secondary__D29qO",J_="styles-module__label__nc2IY",De={spinnerWrapper:P_,spinner:q_,circle:F_,spin:O_,sm:H_,md:Z_,lg:K_,default:"styles-module__default__X7JGx",primary:Y_,secondary:U_,label:J_};function Q_({size:s="md",variant:l="default",className:t="",label:o}){return e.jsxs("div",{className:`${De.spinnerWrapper} ${t}`,children:[e.jsx("div",{className:`${De.spinner} ${De[s]} ${De[l]}`,role:"status","aria-label":o||"Loading",children:e.jsx("div",{className:De.circle})}),o&&e.jsx("span",{className:De.label,children:o})]})}const ea="styles-module__stackView__wGZRw",sa="styles-module__horizontal__MCJ8E",la="styles-module__vertical__INW6v",ta="styles-module__wrap__wvZPS",oa="styles-module__align-start__TeH6Z",na="styles-module__align-center__DWOt-",_a="styles-module__align-end__9Xsx4",aa="styles-module__align-stretch__raPvB",ca="styles-module__justify-start__YVdZp",da="styles-module__justify-center__VKg8-",ra="styles-module__justify-end__kVPBC",ia="styles-module__justify-space-between__z5-wE",ua="styles-module__justify-space-around__FP-0m",ma="styles-module__justify-space-evenly__v5xco",pa="styles-module__spacing-none__M23xt",ya="styles-module__spacing-xs__zdXjS",ha="styles-module__spacing-sm__G-5sR",ga="styles-module__spacing-md__oa-Jw",fa="styles-module__spacing-lg__5zhiQ",xa="styles-module__spacing-xl__qSFPT",We={stackView:ea,horizontal:sa,vertical:la,wrap:ta,"align-start":"styles-module__align-start__TeH6Z",alignStart:oa,"align-center":"styles-module__align-center__DWOt-",alignCenter:na,"align-end":"styles-module__align-end__9Xsx4",alignEnd:_a,"align-stretch":"styles-module__align-stretch__raPvB",alignStretch:aa,"justify-start":"styles-module__justify-start__YVdZp",justifyStart:ca,"justify-center":"styles-module__justify-center__VKg8-",justifyCenter:da,"justify-end":"styles-module__justify-end__kVPBC",justifyEnd:ra,"justify-space-between":"styles-module__justify-space-between__z5-wE",justifySpaceBetween:ia,"justify-space-around":"styles-module__justify-space-around__FP-0m",justifySpaceAround:ua,"justify-space-evenly":"styles-module__justify-space-evenly__v5xco",justifySpaceEvenly:ma,"spacing-none":"styles-module__spacing-none__M23xt",spacingNone:pa,"spacing-xs":"styles-module__spacing-xs__zdXjS",spacingXs:ya,"spacing-sm":"styles-module__spacing-sm__G-5sR",spacingSm:ha,"spacing-md":"styles-module__spacing-md__oa-Jw",spacingMd:ga,"spacing-lg":"styles-module__spacing-lg__5zhiQ",spacingLg:fa,"spacing-xl":"styles-module__spacing-xl__qSFPT",spacingXl:xa};function ba({children:s,direction:l="horizontal",align:t="start",justify:o="start",spacing:_="md",wrap:n=!1,className:a="",style:c}){return e.jsx("div",{className:`${We.stackView} ${We[l]} ${We[`align-${t}`]} ${We[`justify-${o}`]} ${We[`spacing-${_}`]} ${n?We.wrap:""} ${a}`,style:c,children:s})}const $a="styles-module__stepper__NUsL2",va="styles-module__horizontal__wW8by",ja="styles-module__vertical__UqRFo",Na="styles-module__step__lmR8-",wa="styles-module__clickable__-O5QE",Sa="styles-module__stepIndicator__GbO4U",Ca="styles-module__current__LW7L4",ka="styles-module__completed__MC9gq",Ia="styles-module__checkmark__GAoUn",La="styles-module__stepNumber__qLNDJ",za="styles-module__stepContent__pKC94",Ma="styles-module__stepLabel__JK-4j",Ta="styles-module__stepDescription__hlARr",Da="styles-module__connector__76Rsb",Y={stepper:$a,horizontal:va,vertical:ja,step:Na,clickable:wa,stepIndicator:Sa,current:Ca,completed:ka,checkmark:Ia,stepNumber:La,stepContent:za,stepLabel:Ma,stepDescription:Ta,connector:Da};function Wa({steps:s,currentStep:l,orientation:t="horizontal",onStepClick:o,className:_=""}){return e.jsx("div",{className:`${Y.stepper} ${Y[t]} ${_}`,children:s.map((n,a)=>{const c=a<l,i=a===l,r=o&&(c||i);return e.jsxs(g.Fragment,{children:[e.jsxs("div",{className:`${Y.step} ${c?Y.completed:""} ${i?Y.current:""} ${r?Y.clickable:""}`,onClick:()=>r&&o(a),children:[e.jsx("div",{className:Y.stepIndicator,children:c?e.jsx("span",{className:Y.checkmark,children:"✓"}):n.icon?n.icon:e.jsx("span",{className:Y.stepNumber,children:a+1})}),e.jsxs("div",{className:Y.stepContent,children:[e.jsx("div",{className:Y.stepLabel,children:n.label}),n.description&&e.jsx("div",{className:Y.stepDescription,children:n.description})]})]}),a<s.length-1&&e.jsx("div",{className:`${Y.connector} ${c?Y.completed:""}`})]},a)})})}const Ba="styles-module__tableWrapper__7pbjW",Ea="styles-module__table__G-UMw",Ra="styles-module__thead__uTTEj",Xa="styles-module__th__tBFLB",Ga="styles-module__tbody__-OiiP",Va="styles-module__tr__ioLC7",Aa="styles-module__td__mjOQt",Pa="styles-module__striped__iZ3bT",qa="styles-module__hoverable__ewlPb",Fa="styles-module__bordered__IB5cr",Oa="styles-module__compact__JfcIE",Ha="styles-module__clickable__URnJc",Za="styles-module__empty__Xo2NZ",J={tableWrapper:Ba,table:Ea,thead:Ra,th:Xa,tbody:Ga,tr:Va,td:Aa,striped:Pa,hoverable:qa,bordered:Fa,compact:Oa,clickable:Ha,empty:Za};function Ka({columns:s,data:l,striped:t=!1,hoverable:o=!1,bordered:_=!1,compact:n=!1,onRowClick:a,className:c=""}){return e.jsxs("div",{className:`${J.tableWrapper} ${c}`,children:[e.jsxs("table",{className:`${J.table} ${t?J.striped:""} ${o?J.hoverable:""} ${_?J.bordered:""} ${n?J.compact:""}`,children:[e.jsx("thead",{className:J.thead,children:e.jsx("tr",{children:s.map(i=>e.jsx("th",{className:J.th,style:{width:i.width},children:i.header},i.key))})}),e.jsx("tbody",{className:J.tbody,children:l.map((i,r)=>e.jsx("tr",{className:`${J.tr} ${a?J.clickable:""}`,onClick:()=>a?.(i),children:s.map(d=>e.jsx("td",{className:J.td,children:d.render?d.render(i[d.key],i):String(i[d.key]??"")},d.key))},r))})]}),l.length===0&&e.jsx("div",{className:J.empty,children:"No data available"})]})}const Ya="styles-module__tabsContainer__Jv3WS",Ua="styles-module__tabsList__G5a9Z",Ja="styles-module__fullWidth__IiyGO",Qa="styles-module__tab__Veki-",ec="styles-module__disabled__M9qZK",sc="styles-module__active__PVi-W",lc="styles-module__icon__4sTw8",tc="styles-module__pills__VlbD0",oc="styles-module__underline__Jdu1g",nc="styles-module__tabContent__bSDk7",_c="styles-module__fadeIn__sgbzQ",he={tabsContainer:Ya,tabsList:Ua,fullWidth:Ja,tab:Qa,disabled:ec,active:sc,icon:lc,default:"styles-module__default__02SGT",pills:tc,underline:oc,tabContent:nc,fadeIn:_c};function ac({items:s,defaultActiveId:l,variant:t="default",fullWidth:o=!1,onChange:_,className:n=""}){const[a,c]=g.useState(l||s[0]?.id),i=(d,u)=>{u||(c(d),_?.(d))},r=s.find(d=>d.id===a);return e.jsxs("div",{className:`${he.tabsContainer} ${n}`,children:[e.jsx("div",{className:`${he.tabsList} ${he[t]} ${o?he.fullWidth:""}`,role:"tablist",children:s.map(d=>e.jsxs("button",{role:"tab","aria-selected":d.id===a,"aria-disabled":d.disabled,className:`${he.tab} ${d.id===a?he.active:""} ${d.disabled?he.disabled:""}`,onClick:()=>i(d.id,d.disabled),disabled:d.disabled,children:[d.icon&&e.jsx("span",{className:he.icon,children:d.icon}),e.jsx("span",{children:d.label})]},d.id))}),e.jsx("div",{className:he.tabContent,role:"tabpanel",children:r?.content})]})}const cc="styles-module__textareaWrapper__xo-uo",dc="styles-module__fullWidth__y5-Ce",rc="styles-module__label__xONj0",ic="styles-module__textarea__LmnbQ",uc="styles-module__sm__uIQkQ",mc="styles-module__md__qfL-2",pc="styles-module__lg__s6Iey",yc="styles-module__success__ehWww",hc="styles-module__error__h9V4X",gc="styles-module__resize-none__w4h2b",fc="styles-module__resize-vertical__4lTu1",xc="styles-module__resize-horizontal__3Fdb7",bc="styles-module__resize-both__07ghL",$c="styles-module__helperText__Zaq6O",vc="styles-module__errorText__RI-rl",ce={textareaWrapper:cc,fullWidth:dc,label:rc,textarea:ic,sm:uc,md:mc,lg:pc,default:"styles-module__default__jlE7o",success:yc,error:hc,"resize-none":"styles-module__resize-none__w4h2b",resizeNone:gc,"resize-vertical":"styles-module__resize-vertical__4lTu1",resizeVertical:fc,"resize-horizontal":"styles-module__resize-horizontal__3Fdb7",resizeHorizontal:xc,"resize-both":"styles-module__resize-both__07ghL",resizeBoth:bc,helperText:$c,errorText:vc},Je=g.forwardRef(({label:s,helperText:l,error:t,size:o="md",variant:_="default",fullWidth:n=!1,resize:a="vertical",className:c="",disabled:i,...r},d)=>{const u=t?"error":_;return e.jsxs("div",{className:`${ce.textareaWrapper} ${n?ce.fullWidth:""} ${c}`,children:[s&&e.jsx("label",{className:ce.label,children:s}),e.jsx("textarea",{ref:d,className:`${ce.textarea} ${ce[o]} ${ce[u]} ${ce[`resize-${a}`]} ${i?ce.disabled:""}`,disabled:i,...r}),t&&e.jsx("span",{className:ce.errorText,children:t}),!t&&l&&e.jsx("span",{className:ce.helperText,children:l})]})});Je.displayName="Textarea";const jc="styles-module__timeline__khbcN",Nc="styles-module__vertical__EcI8f",wc="styles-module__horizontal__kv46j",Sc="styles-module__timelineItem__j0IQ5",Cc="styles-module__timelineMarker__qk22j",kc="styles-module__dot__gfgUf",Ic="styles-module__icon__hWWJd",Lc="styles-module__primary__t4Cyx",zc="styles-module__success__NWp7i",Mc="styles-module__warning__mfRNM",Tc="styles-module__error__AwsC3",Dc="styles-module__info__QaR5w",Wc="styles-module__timelineConnector__deWEH",Bc="styles-module__timelineContent__Yzy-t",Ec="styles-module__date__OIOdY",Rc="styles-module__title__PZb8L",Xc="styles-module__description__LesWv",H={timeline:jc,vertical:Nc,horizontal:wc,timelineItem:Sc,timelineMarker:Cc,dot:kc,icon:Ic,default:"styles-module__default__QmROp",primary:Lc,success:zc,warning:Mc,error:Tc,info:Dc,timelineConnector:Wc,timelineContent:Bc,date:Ec,title:Rc,description:Xc};function Gc({items:s,orientation:l="vertical",className:t=""}){return e.jsx("div",{className:`${H.timeline} ${H[l]} ${t}`,children:s.map((o,_)=>e.jsxs("div",{className:H.timelineItem,children:[e.jsx("div",{className:`${H.timelineMarker} ${o.color?H[o.color]:H.default}`,children:o.icon?e.jsx("span",{className:H.icon,children:o.icon}):e.jsx("span",{className:H.dot})}),_<s.length-1&&e.jsx("div",{className:`${H.timelineConnector} ${o.color?H[o.color]:H.default}`}),e.jsxs("div",{className:H.timelineContent,children:[o.date&&e.jsx("span",{className:H.date,children:o.date}),e.jsx("h4",{className:H.title,children:o.title}),o.description&&e.jsx("p",{className:H.description,children:o.description})]})]},o.id))})}const Vc="styles-module__toggleSwitch__HDqFP",Ac="styles-module__disabled__tbXNT",Pc="styles-module__input__oBVdg",qc="styles-module__sm__O8zA8",Fc="styles-module__md__2vfHI",Oc="styles-module__lg__S65-b",Hc="styles-module__slider__gYGJ6",Zc="styles-module__checked__-4pJ2",Kc="styles-module__label__xIgTV",Ne={toggleSwitch:Vc,disabled:Ac,input:Pc,switch:"styles-module__switch__4NsVE",sm:qc,md:Fc,lg:Oc,slider:Hc,checked:Zc,label:Kc};function Yc({checked:s,defaultChecked:l=!1,onChange:t,label:o,disabled:_=!1,size:n="md",className:a=""}){const[c,i]=g.useState(l),r=s!==void 0,d=r?s:c,u=()=>{if(_)return;const x=!d;r||i(x),t?.(x)};return e.jsxs("label",{className:`${Ne.toggleSwitch} ${_?Ne.disabled:""} ${a}`,children:[e.jsx("input",{type:"checkbox",checked:d,onChange:u,disabled:_,className:Ne.input}),e.jsx("span",{className:`${Ne.switch} ${Ne[n]} ${d?Ne.checked:""}`,children:e.jsx("span",{className:Ne.slider})}),o&&e.jsx("span",{className:Ne.label,children:o})]})}const Uc="styles-module__tooltipWrapper__jXXEP",Jc="styles-module__tooltip__NP2ZM",Qc="styles-module__fadeIn__5hHms",ed="styles-module__top__kvf2D",sd="styles-module__bottom__vkl92",ld="styles-module__left__q2e3D",td="styles-module__right__FRcXP",od="styles-module__tooltipContent__3R4WL",nd="styles-module__tooltipArrow__11JdT",Ee={tooltipWrapper:Uc,tooltip:Jc,fadeIn:Qc,top:ed,bottom:sd,left:ld,right:td,tooltipContent:od,tooltipArrow:nd};function _d({children:s,content:l,position:t="top",delay:o=200,className:_=""}){const[n,a]=g.useState(!1),c=g.useRef(),i=g.useRef(null),r=()=>{c.current=setTimeout(()=>{a(!0)},o)},d=()=>{c.current&&clearTimeout(c.current),a(!1)};return g.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.jsxs("div",{className:`${Ee.tooltipWrapper} ${_}`,ref:i,onMouseEnter:r,onMouseLeave:d,onFocus:r,onBlur:d,children:[s,n&&e.jsxs("div",{className:`${Ee.tooltip} ${Ee[t]}`,role:"tooltip",children:[e.jsx("div",{className:Ee.tooltipContent,children:l}),e.jsx("div",{className:Ee.tooltipArrow})]})]})}const ad="styles-module__toastContainer__-uOPe",cd="styles-module__topLeft__MCDhr",dd="styles-module__topCenter__loC-J",rd="styles-module__topRight__alKSR",id="styles-module__bottomLeft__sPZ6I",ud="styles-module__bottomCenter__12yLT",md="styles-module__bottomRight__EdLbD",pd="styles-module__toast__q9A3H",yd="styles-module__slideIn__-Mhbw",hd="styles-module__fadeIn__I0huT",gd="styles-module__slideInLeft__Bs5x3",fd="styles-module__slideInDown__OUDGH",xd="styles-module__icon__iRAEt",bd="styles-module__message__id55d",$d="styles-module__closeButton__vnBxf",vd="styles-module__info__RjsXR",jd="styles-module__success__1qQf4",Nd="styles-module__warning__UhEF-",wd="styles-module__error__sOYOC",ee={toastContainer:ad,topLeft:cd,topCenter:dd,topRight:rd,bottomLeft:id,bottomCenter:ud,bottomRight:md,toast:pd,slideIn:yd,fadeIn:hd,slideInLeft:gd,slideInDown:fd,icon:xd,message:bd,closeButton:$d,info:vd,success:jd,warning:Nd,error:wd},Qe=g.createContext(void 0);function Sd({children:s,position:l="top-right",maxToasts:t=5}){const[o,_]=g.useState([]),n=g.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};_(h=>[...h,x].slice(-t)),x.duration&&x.duration>0&&setTimeout(()=>{a(u)},x.duration)},[t]),a=g.useCallback(r=>{_(d=>d.filter(u=>u.id!==r))},[]),c=()=>({"top-left":ee.topLeft,"top-center":ee.topCenter,"top-right":ee.topRight,"bottom-left":ee.bottomLeft,"bottom-center":ee.bottomCenter,"bottom-right":ee.bottomRight})[l],i=r=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕"})[r];return e.jsxs(Qe.Provider,{value:{showToast:n},children:[s,e.jsx("div",{className:`${ee.toastContainer} ${c()}`,children:o.map(r=>e.jsxs("div",{className:`${ee.toast} ${ee[r.variant||"info"]}`,role:"alert","aria-live":"polite",children:[e.jsx("div",{className:ee.icon,children:i(r.variant||"info")}),e.jsx("div",{className:ee.message,children:r.message}),r.dismissible&&e.jsx("button",{className:ee.closeButton,onClick:()=>a(r.id),"aria-label":"Close",children:"✕"})]},r.id))})]})}function Cd(){const s=g.useContext(Qe);if(!s)throw new Error("useToast must be used within a ToastProvider");return s}const kd="styles-module__treeView__qtZfC",Id="styles-module__treeNodeWrapper__6m8CE",Ld="styles-module__treeNode__xhhOE",zd="styles-module__disabled__-brxQ",Md="styles-module__expandIcon__Zp-Yb",Td="styles-module__expanded__A4kyH",Dd="styles-module__spacer__56WdM",Wd="styles-module__icon__AIE-i",Bd="styles-module__label__XDGcT",Ed="styles-module__children__N1c5Z",ue={treeView:kd,treeNodeWrapper:Id,treeNode:Ld,disabled:zd,expandIcon:Md,expanded:Td,spacer:Dd,icon:Wd,label:Bd,children:Ed};function es({node:s,level:l,expandedIds:t,onToggle:o,onNodeClick:_}){const n=s.children&&s.children.length>0,a=t.has(s.id),c=()=>{s.disabled||(n&&o(s.id),_?.(s))};return e.jsxs("div",{className:ue.treeNodeWrapper,children:[e.jsxs("div",{className:`${ue.treeNode} ${s.disabled?ue.disabled:""}`,style:{paddingLeft:`${l*1.5}rem`},onClick:c,children:[n&&e.jsx("span",{className:`${ue.expandIcon} ${a?ue.expanded:""}`,children:"▶"}),!n&&e.jsx("span",{className:ue.spacer}),s.icon&&e.jsx("span",{className:ue.icon,children:s.icon}),e.jsx("span",{className:ue.label,children:s.label})]}),n&&a&&e.jsx("div",{className:ue.children,children:s.children.map(i=>e.jsx(es,{node:i,level:l+1,expandedIds:t,onToggle:o,onNodeClick:_},i.id))})]})}function Rd({data:s,defaultExpandedIds:l=[],onNodeClick:t,className:o=""}){const[_,n]=g.useState(new Set(l)),a=c=>{n(i=>{const r=new Set(i);return r.has(c)?r.delete(c):r.add(c),r})};return e.jsx("div",{className:`${ue.treeView} ${o}`,children:s.map(c=>e.jsx(es,{node:c,level:0,expandedIds:_,onToggle:a,onNodeClick:t},c.id))})}const Xd="styles-module__nav__sMQSv",Gd="styles-module__vertical__6EFeu",Vd="styles-module__collapsed__eIVC7",Ad="styles-module__horizontal__5UU20",Pd="styles-module__navItemWrapper__Sc9wi",qd="styles-module__navItem__7O2YX",Fd="styles-module__disabled__hvWkN",Od="styles-module__nested__oejUs",Hd="styles-module__icon__SLdZe",Zd="styles-module__label__pji80",Kd="styles-module__badge__03qDH",Yd="styles-module__expandIcon__bGlQG",Ud="styles-module__dropdownIcon__uf35v",Jd="styles-module__expanded__2R6-v",Qd="styles-module__children__sfAGb",er="styles-module__slideDown__xKrR1",sr="styles-module__dropdown__LuTLW",lr="styles-module__megaMenu__02Wp7",tr="styles-module__megaMenuWrapper__yLvBH",or="styles-module__megaMenuGrid__4FrxU",nr="styles-module__megaMenuColumn__DI0z2",G={nav:Xd,vertical:Gd,collapsed:Vd,horizontal:Ad,navItemWrapper:Pd,navItem:qd,disabled:Fd,nested:Od,icon:Hd,label:Zd,badge:Kd,expandIcon:Yd,dropdownIcon:Ud,expanded:Jd,children:Qd,slideDown:er,dropdown:sr,megaMenu:lr,megaMenuWrapper:tr,megaMenuGrid:or,megaMenuColumn:nr};function Pe({item:s,level:l,expandedIds:t,onToggle:o,onItemClick:_,orientation:n,collapsed:a}){const c=s.children&&s.children.length>0,i=t.has(s.id),r=s.megaMenu&&c,d=h=>{s.disabled||(c&&n==="vertical"&&(h.preventDefault(),o(s.id)),s.onClick&&s.onClick(),_?.(s))},u=()=>e.jsxs(e.Fragment,{children:[s.icon&&e.jsx("span",{className:G.icon,children:s.icon}),!a&&e.jsx("span",{className:G.label,children:s.label}),!a&&s.badge&&e.jsx("span",{className:G.badge,children:s.badge}),!a&&c&&n==="vertical"&&e.jsx("span",{className:`${G.expandIcon} ${i?G.expanded:""}`,children:"▶"}),!a&&c&&n==="horizontal"&&e.jsx("span",{className:G.dropdownIcon,children:"▼"})]}),x=s.href?e.jsx("a",{href:s.href,className:`${G.navItem} ${s.disabled?G.disabled:""} ${l>0?G.nested:""}`,onClick:d,children:u()}):e.jsx("button",{type:"button",className:`${G.navItem} ${s.disabled?G.disabled:""} ${l>0?G.nested:""}`,onClick:d,children:u()});return e.jsxs("div",{className:`${G.navItemWrapper} ${r?G.megaMenuWrapper:""}`,children:[x,c&&e.jsxs(e.Fragment,{children:[n==="vertical"&&i&&e.jsx("div",{className:G.children,children:s.children.map(h=>e.jsx(Pe,{item:h,level:l+1,expandedIds:t,onToggle:o,onItemClick:_,orientation:n,collapsed:a},h.id))}),n==="horizontal"&&e.jsx("div",{className:`${G.dropdown} ${r?G.megaMenu:""}`,children:r?e.jsx("div",{className:G.megaMenuGrid,children:s.children.map(h=>e.jsx("div",{className:G.megaMenuColumn,children:e.jsx(Pe,{item:h,level:l+1,expandedIds:t,onToggle:o,onItemClick:_,orientation:n,collapsed:a})},h.id))}):s.children.map(h=>e.jsx(Pe,{item:h,level:l+1,expandedIds:t,onToggle:o,onItemClick:_,orientation:n,collapsed:a},h.id))})]})]})}function _r({items:s,orientation:l="vertical",defaultExpandedIds:t=[],onItemClick:o,className:_="",collapsed:n=!1}){const[a,c]=g.useState(new Set(t)),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:`${G.nav} ${G[l]} ${n?G.collapsed:""} ${_}`,children:s.map(r=>e.jsx(Pe,{item:r,level:0,expandedIds:a,onToggle:i,onItemClick:o,orientation:l,collapsed:n},r.id))})}const ar="styles-module__selectContainer__JfMFS",cr="styles-module__fullWidth__XXFCr",dr="styles-module__label__eUUOm",rr="styles-module__wrapper__98xFk",ir="styles-module__select__xJaN9",ur="styles-module__disabled__A1ppA",mr="styles-module__sm__MEAFW",pr="styles-module__lg__sd1Gy",yr="styles-module__error__w1Lsu",hr="styles-module__success__xbtdD",gr="styles-module__arrow__UJXzt",fr="styles-module__helperText__sXAtM",xr="styles-module__errorText__7kPjp",ne={selectContainer:ar,fullWidth:cr,label:dr,wrapper:rr,select:ir,disabled:ur,sm:mr,lg:pr,error:yr,success:hr,arrow:gr,helperText:fr,errorText:xr},ss=g.forwardRef(({label:s,error:l,helperText:t,size:o="md",variant:_="default",fullWidth:n=!1,className:a="",disabled:c=!1,options:i,placeholder:r,...d},u)=>{const x=l?"error":_,h=`${ne.selectContainer} ${n?ne.fullWidth:""} ${a}`,b=`${ne.select} ${ne[o]} ${ne[x]} ${c?ne.disabled:""}`;return e.jsxs("div",{className:h,children:[s&&e.jsx("label",{className:ne.label,children:s}),e.jsxs("div",{className:ne.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:ne.arrow,children:"▼"})]}),(l||t)&&e.jsx("span",{className:`${ne.helperText} ${l?ne.errorText:""}`,children:l||t})]})});ss.displayName="Select";const br="styles-module__grid__-18GG",$r="styles-module__columns-1__v8SEE",vr="styles-module__columns-2__Zq8Ih",jr="styles-module__columns-3__-sPCq",Nr="styles-module__columns-4__jB2X6",wr="styles-module__columns-5__WbWn4",Sr="styles-module__columns-6__B-cvH",Cr="styles-module__columns-7__C29vY",kr="styles-module__columns-8__lFc3E",Ir="styles-module__columns-9__Rhzrn",Lr="styles-module__columns-10__hXu1z",zr="styles-module__columns-11__LYy-7",Mr="styles-module__columns-12__0tALI",Tr="styles-module__columns-sm-1__rGPgC",Dr="styles-module__columns-sm-2__PjfNA",Wr="styles-module__columns-sm-3__-DkQI",Br="styles-module__columns-sm-4__vtgo0",Er="styles-module__columns-sm-5__e91Bf",Rr="styles-module__columns-sm-6__2BPvq",Xr="styles-module__columns-sm-7__7WSj3",Gr="styles-module__columns-sm-8__Y1rAn",Vr="styles-module__columns-sm-9__ipGTO",Ar="styles-module__columns-sm-10__PsNnZ",Pr="styles-module__columns-sm-11__0Xt-s",qr="styles-module__columns-sm-12__uDrsj",Fr="styles-module__columns-md-1__VxJSA",Or="styles-module__columns-md-2__7Jb7M",Hr="styles-module__columns-md-3__NPgJ4",Zr="styles-module__columns-md-4__caSiE",Kr="styles-module__columns-md-5__YV-KD",Yr="styles-module__columns-md-6__eYuBW",Ur="styles-module__columns-md-7__kFwVo",Jr="styles-module__columns-md-8__--8cy",Qr="styles-module__columns-md-9__R5Q9b",ei="styles-module__columns-md-10__-1u9i",si="styles-module__columns-md-11__3fWd5",li="styles-module__columns-md-12__6p-sc",ti="styles-module__columns-lg-1__Us4pj",oi="styles-module__columns-lg-2__42pEt",ni="styles-module__columns-lg-3__-TIpF",_i="styles-module__columns-lg-4__gZKHW",ai="styles-module__columns-lg-5__04nEU",ci="styles-module__columns-lg-6__cdsbL",di="styles-module__columns-lg-7__s2yv9",ri="styles-module__columns-lg-8__B1jK9",ii="styles-module__columns-lg-9__rA-9F",ui="styles-module__columns-lg-10__99khu",mi="styles-module__columns-lg-11__Wfy-H",pi="styles-module__columns-lg-12__mIBrq",yi="styles-module__columns-xl-1__uxEeX",hi="styles-module__columns-xl-2__xerO3",gi="styles-module__columns-xl-3__6GLSS",fi="styles-module__columns-xl-4__XYS09",xi="styles-module__columns-xl-5__4Y5e8",bi="styles-module__columns-xl-6__Qufa4",$i="styles-module__columns-xl-7__jAsJu",vi="styles-module__columns-xl-8__1BctD",ji="styles-module__columns-xl-9__HNe1-",Ni="styles-module__columns-xl-10__dSLX9",wi="styles-module__columns-xl-11__KB6nJ",Si="styles-module__columns-xl-12__UvRYk",Ci="styles-module__gap-none__FSY1O",ki="styles-module__gap-xs__yd0Vu",Ii="styles-module__gap-sm__9o2un",Li="styles-module__gap-md__Yb5VI",zi="styles-module__gap-lg__H0Kke",Mi="styles-module__gap-xl__LDewl",Ti="styles-module__gap-2xl__8nYbr",Di="styles-module__row-gap-none__JAJpj",Wi="styles-module__row-gap-xs__a3tit",Bi="styles-module__row-gap-sm__72-ut",Ei="styles-module__row-gap-md__7aLU-",Ri="styles-module__row-gap-lg__1DeqX",Xi="styles-module__row-gap-xl__KsfMY",Gi="styles-module__row-gap-2xl__obZGl",Vi="styles-module__column-gap-none__KecTY",Ai="styles-module__column-gap-xs__k5jWZ",Pi="styles-module__column-gap-sm__QPdcs",qi="styles-module__column-gap-md__bjSOf",Fi="styles-module__column-gap-lg__EbeJF",Oi="styles-module__column-gap-xl__5A633",Hi="styles-module__column-gap-2xl__vgLSu",Zi="styles-module__align-start__bjdHG",Ki="styles-module__align-center__yx3-m",Yi="styles-module__align-end__a4IA3",Ui="styles-module__align-stretch__NyQwc",Ji="styles-module__align-baseline__XDLXG",Qi="styles-module__justify-items-start__0oBcn",eu="styles-module__justify-items-center__nVsrc",su="styles-module__justify-items-end__-0L3F",lu="styles-module__justify-items-stretch__0Lw7a",tu="styles-module__justify-content-start__AUQmN",ou="styles-module__justify-content-center__DbeoQ",nu="styles-module__justify-content-end__WV6jz",_u="styles-module__justify-content-space-between__8AaIN",au="styles-module__justify-content-space-around__aODdb",cu="styles-module__justify-content-space-evenly__L9gkw",du="styles-module__flow-row__kRZfS",ru="styles-module__flow-column__WwpqM",iu="styles-module__flow-dense__lUpft",uu="styles-module__flow-row-dense__tF-IP",mu="styles-module__flow-column-dense__GEsOK",pu="styles-module__gridItem__DDjWB",yu="styles-module__col-span-1__mH-jY",hu="styles-module__col-span-2__eTM2S",gu="styles-module__col-span-3__HYpEw",fu="styles-module__col-span-4__mg-mS",xu="styles-module__col-span-5__VVpGI",bu="styles-module__col-span-6__SC8e-",$u="styles-module__col-span-7__Jibfe",vu="styles-module__col-span-8__qSQX1",ju="styles-module__col-span-9__95itg",Nu="styles-module__col-span-10__-Ghn-",wu="styles-module__col-span-11__Jk2PJ",Su="styles-module__col-span-12__UG7o2",Cu="styles-module__col-span-full__zFrNk",ku="styles-module__col-span-sm-1__Eyzeo",Iu="styles-module__col-span-sm-2__qw56t",Lu="styles-module__col-span-sm-3__Dwrhj",zu="styles-module__col-span-sm-4__mdKu-",Mu="styles-module__col-span-sm-5__erB04",Tu="styles-module__col-span-sm-6__AN-Eo",Du="styles-module__col-span-sm-7__jDZJk",Wu="styles-module__col-span-sm-8__-c6X9",Bu="styles-module__col-span-sm-9__tqIxC",Eu="styles-module__col-span-sm-10__Z4S4U",Ru="styles-module__col-span-sm-11__5l3EF",Xu="styles-module__col-span-sm-12__ToxhH",Gu="styles-module__col-span-sm-full__5PByZ",Vu="styles-module__col-span-md-1__2iH1s",Au="styles-module__col-span-md-2__metsn",Pu="styles-module__col-span-md-3__ArbKb",qu="styles-module__col-span-md-4__xVXZU",Fu="styles-module__col-span-md-5__ym6rl",Ou="styles-module__col-span-md-6__peA2T",Hu="styles-module__col-span-md-7__AAm1f",Zu="styles-module__col-span-md-8__VLafy",Ku="styles-module__col-span-md-9__PWAAq",Yu="styles-module__col-span-md-10__GRmCe",Uu="styles-module__col-span-md-11__M8B4R",Ju="styles-module__col-span-md-12__HGzlP",Qu="styles-module__col-span-md-full__4y9gL",em="styles-module__col-span-lg-1__FG3dm",sm="styles-module__col-span-lg-2__5dZiG",lm="styles-module__col-span-lg-3__oZmcU",tm="styles-module__col-span-lg-4__itdqY",om="styles-module__col-span-lg-5__ux3GV",nm="styles-module__col-span-lg-6__zf4Bn",_m="styles-module__col-span-lg-7__olG9c",am="styles-module__col-span-lg-8__-QheZ",cm="styles-module__col-span-lg-9__ZXgY2",dm="styles-module__col-span-lg-10__bbXiL",rm="styles-module__col-span-lg-11__AQw76",im="styles-module__col-span-lg-12__cFfHJ",um="styles-module__col-span-lg-full__IBuri",mm="styles-module__col-span-xl-1__hoqul",pm="styles-module__col-span-xl-2__iTlZE",ym="styles-module__col-span-xl-3__pw3Vu",hm="styles-module__col-span-xl-4__NaUdq",gm="styles-module__col-span-xl-5__NZfk2",fm="styles-module__col-span-xl-6__piqQd",xm="styles-module__col-span-xl-7__YGer8",bm="styles-module__col-span-xl-8__Dr6aM",$m="styles-module__col-span-xl-9__zyuUC",vm="styles-module__col-span-xl-10__1tCT-",jm="styles-module__col-span-xl-11__4neTT",Nm="styles-module__col-span-xl-12__yqf3o",wm="styles-module__col-span-xl-full__LIPRp",Sm="styles-module__row-span-1__zy3Hq",Cm="styles-module__row-span-2__Z8RpU",km="styles-module__row-span-3__JkAqM",Im="styles-module__row-span-4__X5Xkb",Lm="styles-module__row-span-5__UGWBp",zm="styles-module__row-span-6__Ok7gd",P={grid:br,"columns-1":"styles-module__columns-1__v8SEE",columns1:$r,"columns-2":"styles-module__columns-2__Zq8Ih",columns2:vr,"columns-3":"styles-module__columns-3__-sPCq",columns3:jr,"columns-4":"styles-module__columns-4__jB2X6",columns4:Nr,"columns-5":"styles-module__columns-5__WbWn4",columns5:wr,"columns-6":"styles-module__columns-6__B-cvH",columns6:Sr,"columns-7":"styles-module__columns-7__C29vY",columns7:Cr,"columns-8":"styles-module__columns-8__lFc3E",columns8:kr,"columns-9":"styles-module__columns-9__Rhzrn",columns9:Ir,"columns-10":"styles-module__columns-10__hXu1z",columns10:Lr,"columns-11":"styles-module__columns-11__LYy-7",columns11:zr,"columns-12":"styles-module__columns-12__0tALI",columns12:Mr,"columns-sm-1":"styles-module__columns-sm-1__rGPgC",columnsSm1:Tr,"columns-sm-2":"styles-module__columns-sm-2__PjfNA",columnsSm2:Dr,"columns-sm-3":"styles-module__columns-sm-3__-DkQI",columnsSm3:Wr,"columns-sm-4":"styles-module__columns-sm-4__vtgo0",columnsSm4:Br,"columns-sm-5":"styles-module__columns-sm-5__e91Bf",columnsSm5:Er,"columns-sm-6":"styles-module__columns-sm-6__2BPvq",columnsSm6:Rr,"columns-sm-7":"styles-module__columns-sm-7__7WSj3",columnsSm7:Xr,"columns-sm-8":"styles-module__columns-sm-8__Y1rAn",columnsSm8:Gr,"columns-sm-9":"styles-module__columns-sm-9__ipGTO",columnsSm9:Vr,"columns-sm-10":"styles-module__columns-sm-10__PsNnZ",columnsSm10:Ar,"columns-sm-11":"styles-module__columns-sm-11__0Xt-s",columnsSm11:Pr,"columns-sm-12":"styles-module__columns-sm-12__uDrsj",columnsSm12:qr,"columns-md-1":"styles-module__columns-md-1__VxJSA",columnsMd1:Fr,"columns-md-2":"styles-module__columns-md-2__7Jb7M",columnsMd2:Or,"columns-md-3":"styles-module__columns-md-3__NPgJ4",columnsMd3:Hr,"columns-md-4":"styles-module__columns-md-4__caSiE",columnsMd4:Zr,"columns-md-5":"styles-module__columns-md-5__YV-KD",columnsMd5:Kr,"columns-md-6":"styles-module__columns-md-6__eYuBW",columnsMd6:Yr,"columns-md-7":"styles-module__columns-md-7__kFwVo",columnsMd7:Ur,"columns-md-8":"styles-module__columns-md-8__--8cy",columnsMd8:Jr,"columns-md-9":"styles-module__columns-md-9__R5Q9b",columnsMd9:Qr,"columns-md-10":"styles-module__columns-md-10__-1u9i",columnsMd10:ei,"columns-md-11":"styles-module__columns-md-11__3fWd5",columnsMd11:si,"columns-md-12":"styles-module__columns-md-12__6p-sc",columnsMd12:li,"columns-lg-1":"styles-module__columns-lg-1__Us4pj",columnsLg1:ti,"columns-lg-2":"styles-module__columns-lg-2__42pEt",columnsLg2:oi,"columns-lg-3":"styles-module__columns-lg-3__-TIpF",columnsLg3:ni,"columns-lg-4":"styles-module__columns-lg-4__gZKHW",columnsLg4:_i,"columns-lg-5":"styles-module__columns-lg-5__04nEU",columnsLg5:ai,"columns-lg-6":"styles-module__columns-lg-6__cdsbL",columnsLg6:ci,"columns-lg-7":"styles-module__columns-lg-7__s2yv9",columnsLg7:di,"columns-lg-8":"styles-module__columns-lg-8__B1jK9",columnsLg8:ri,"columns-lg-9":"styles-module__columns-lg-9__rA-9F",columnsLg9:ii,"columns-lg-10":"styles-module__columns-lg-10__99khu",columnsLg10:ui,"columns-lg-11":"styles-module__columns-lg-11__Wfy-H",columnsLg11:mi,"columns-lg-12":"styles-module__columns-lg-12__mIBrq",columnsLg12:pi,"columns-xl-1":"styles-module__columns-xl-1__uxEeX",columnsXl1:yi,"columns-xl-2":"styles-module__columns-xl-2__xerO3",columnsXl2:hi,"columns-xl-3":"styles-module__columns-xl-3__6GLSS",columnsXl3:gi,"columns-xl-4":"styles-module__columns-xl-4__XYS09",columnsXl4:fi,"columns-xl-5":"styles-module__columns-xl-5__4Y5e8",columnsXl5:xi,"columns-xl-6":"styles-module__columns-xl-6__Qufa4",columnsXl6:bi,"columns-xl-7":"styles-module__columns-xl-7__jAsJu",columnsXl7:$i,"columns-xl-8":"styles-module__columns-xl-8__1BctD",columnsXl8:vi,"columns-xl-9":"styles-module__columns-xl-9__HNe1-",columnsXl9:ji,"columns-xl-10":"styles-module__columns-xl-10__dSLX9",columnsXl10:Ni,"columns-xl-11":"styles-module__columns-xl-11__KB6nJ",columnsXl11:wi,"columns-xl-12":"styles-module__columns-xl-12__UvRYk",columnsXl12:Si,"gap-none":"styles-module__gap-none__FSY1O",gapNone:Ci,"gap-xs":"styles-module__gap-xs__yd0Vu",gapXs:ki,"gap-sm":"styles-module__gap-sm__9o2un",gapSm:Ii,"gap-md":"styles-module__gap-md__Yb5VI",gapMd:Li,"gap-lg":"styles-module__gap-lg__H0Kke",gapLg:zi,"gap-xl":"styles-module__gap-xl__LDewl",gapXl:Mi,"gap-2xl":"styles-module__gap-2xl__8nYbr",gap2Xl:Ti,"row-gap-none":"styles-module__row-gap-none__JAJpj",rowGapNone:Di,"row-gap-xs":"styles-module__row-gap-xs__a3tit",rowGapXs:Wi,"row-gap-sm":"styles-module__row-gap-sm__72-ut",rowGapSm:Bi,"row-gap-md":"styles-module__row-gap-md__7aLU-",rowGapMd:Ei,"row-gap-lg":"styles-module__row-gap-lg__1DeqX",rowGapLg:Ri,"row-gap-xl":"styles-module__row-gap-xl__KsfMY",rowGapXl:Xi,"row-gap-2xl":"styles-module__row-gap-2xl__obZGl",rowGap2Xl:Gi,"column-gap-none":"styles-module__column-gap-none__KecTY",columnGapNone:Vi,"column-gap-xs":"styles-module__column-gap-xs__k5jWZ",columnGapXs:Ai,"column-gap-sm":"styles-module__column-gap-sm__QPdcs",columnGapSm:Pi,"column-gap-md":"styles-module__column-gap-md__bjSOf",columnGapMd:qi,"column-gap-lg":"styles-module__column-gap-lg__EbeJF",columnGapLg:Fi,"column-gap-xl":"styles-module__column-gap-xl__5A633",columnGapXl:Oi,"column-gap-2xl":"styles-module__column-gap-2xl__vgLSu",columnGap2Xl:Hi,"align-start":"styles-module__align-start__bjdHG",alignStart:Zi,"align-center":"styles-module__align-center__yx3-m",alignCenter:Ki,"align-end":"styles-module__align-end__a4IA3",alignEnd:Yi,"align-stretch":"styles-module__align-stretch__NyQwc",alignStretch:Ui,"align-baseline":"styles-module__align-baseline__XDLXG",alignBaseline:Ji,"justify-items-start":"styles-module__justify-items-start__0oBcn",justifyItemsStart:Qi,"justify-items-center":"styles-module__justify-items-center__nVsrc",justifyItemsCenter:eu,"justify-items-end":"styles-module__justify-items-end__-0L3F",justifyItemsEnd:su,"justify-items-stretch":"styles-module__justify-items-stretch__0Lw7a",justifyItemsStretch:lu,"justify-content-start":"styles-module__justify-content-start__AUQmN",justifyContentStart:tu,"justify-content-center":"styles-module__justify-content-center__DbeoQ",justifyContentCenter:ou,"justify-content-end":"styles-module__justify-content-end__WV6jz",justifyContentEnd:nu,"justify-content-space-between":"styles-module__justify-content-space-between__8AaIN",justifyContentSpaceBetween:_u,"justify-content-space-around":"styles-module__justify-content-space-around__aODdb",justifyContentSpaceAround:au,"justify-content-space-evenly":"styles-module__justify-content-space-evenly__L9gkw",justifyContentSpaceEvenly:cu,"flow-row":"styles-module__flow-row__kRZfS",flowRow:du,"flow-column":"styles-module__flow-column__WwpqM",flowColumn:ru,"flow-dense":"styles-module__flow-dense__lUpft",flowDense:iu,"flow-row-dense":"styles-module__flow-row-dense__tF-IP",flowRowDense:uu,"flow-column-dense":"styles-module__flow-column-dense__GEsOK",flowColumnDense:mu,gridItem:pu,"col-span-1":"styles-module__col-span-1__mH-jY",colSpan1:yu,"col-span-2":"styles-module__col-span-2__eTM2S",colSpan2:hu,"col-span-3":"styles-module__col-span-3__HYpEw",colSpan3:gu,"col-span-4":"styles-module__col-span-4__mg-mS",colSpan4:fu,"col-span-5":"styles-module__col-span-5__VVpGI",colSpan5:xu,"col-span-6":"styles-module__col-span-6__SC8e-",colSpan6:bu,"col-span-7":"styles-module__col-span-7__Jibfe",colSpan7:$u,"col-span-8":"styles-module__col-span-8__qSQX1",colSpan8:vu,"col-span-9":"styles-module__col-span-9__95itg",colSpan9:ju,"col-span-10":"styles-module__col-span-10__-Ghn-",colSpan10:Nu,"col-span-11":"styles-module__col-span-11__Jk2PJ",colSpan11:wu,"col-span-12":"styles-module__col-span-12__UG7o2",colSpan12:Su,"col-span-full":"styles-module__col-span-full__zFrNk",colSpanFull:Cu,"col-span-sm-1":"styles-module__col-span-sm-1__Eyzeo",colSpanSm1:ku,"col-span-sm-2":"styles-module__col-span-sm-2__qw56t",colSpanSm2:Iu,"col-span-sm-3":"styles-module__col-span-sm-3__Dwrhj",colSpanSm3:Lu,"col-span-sm-4":"styles-module__col-span-sm-4__mdKu-",colSpanSm4:zu,"col-span-sm-5":"styles-module__col-span-sm-5__erB04",colSpanSm5:Mu,"col-span-sm-6":"styles-module__col-span-sm-6__AN-Eo",colSpanSm6:Tu,"col-span-sm-7":"styles-module__col-span-sm-7__jDZJk",colSpanSm7:Du,"col-span-sm-8":"styles-module__col-span-sm-8__-c6X9",colSpanSm8:Wu,"col-span-sm-9":"styles-module__col-span-sm-9__tqIxC",colSpanSm9:Bu,"col-span-sm-10":"styles-module__col-span-sm-10__Z4S4U",colSpanSm10:Eu,"col-span-sm-11":"styles-module__col-span-sm-11__5l3EF",colSpanSm11:Ru,"col-span-sm-12":"styles-module__col-span-sm-12__ToxhH",colSpanSm12:Xu,"col-span-sm-full":"styles-module__col-span-sm-full__5PByZ",colSpanSmFull:Gu,"col-span-md-1":"styles-module__col-span-md-1__2iH1s",colSpanMd1:Vu,"col-span-md-2":"styles-module__col-span-md-2__metsn",colSpanMd2:Au,"col-span-md-3":"styles-module__col-span-md-3__ArbKb",colSpanMd3:Pu,"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:Fu,"col-span-md-6":"styles-module__col-span-md-6__peA2T",colSpanMd6:Ou,"col-span-md-7":"styles-module__col-span-md-7__AAm1f",colSpanMd7:Hu,"col-span-md-8":"styles-module__col-span-md-8__VLafy",colSpanMd8:Zu,"col-span-md-9":"styles-module__col-span-md-9__PWAAq",colSpanMd9:Ku,"col-span-md-10":"styles-module__col-span-md-10__GRmCe",colSpanMd10:Yu,"col-span-md-11":"styles-module__col-span-md-11__M8B4R",colSpanMd11:Uu,"col-span-md-12":"styles-module__col-span-md-12__HGzlP",colSpanMd12:Ju,"col-span-md-full":"styles-module__col-span-md-full__4y9gL",colSpanMdFull:Qu,"col-span-lg-1":"styles-module__col-span-lg-1__FG3dm",colSpanLg1:em,"col-span-lg-2":"styles-module__col-span-lg-2__5dZiG",colSpanLg2:sm,"col-span-lg-3":"styles-module__col-span-lg-3__oZmcU",colSpanLg3:lm,"col-span-lg-4":"styles-module__col-span-lg-4__itdqY",colSpanLg4:tm,"col-span-lg-5":"styles-module__col-span-lg-5__ux3GV",colSpanLg5:om,"col-span-lg-6":"styles-module__col-span-lg-6__zf4Bn",colSpanLg6:nm,"col-span-lg-7":"styles-module__col-span-lg-7__olG9c",colSpanLg7:_m,"col-span-lg-8":"styles-module__col-span-lg-8__-QheZ",colSpanLg8:am,"col-span-lg-9":"styles-module__col-span-lg-9__ZXgY2",colSpanLg9:cm,"col-span-lg-10":"styles-module__col-span-lg-10__bbXiL",colSpanLg10:dm,"col-span-lg-11":"styles-module__col-span-lg-11__AQw76",colSpanLg11:rm,"col-span-lg-12":"styles-module__col-span-lg-12__cFfHJ",colSpanLg12:im,"col-span-lg-full":"styles-module__col-span-lg-full__IBuri",colSpanLgFull:um,"col-span-xl-1":"styles-module__col-span-xl-1__hoqul",colSpanXl1:mm,"col-span-xl-2":"styles-module__col-span-xl-2__iTlZE",colSpanXl2:pm,"col-span-xl-3":"styles-module__col-span-xl-3__pw3Vu",colSpanXl3:ym,"col-span-xl-4":"styles-module__col-span-xl-4__NaUdq",colSpanXl4:hm,"col-span-xl-5":"styles-module__col-span-xl-5__NZfk2",colSpanXl5:gm,"col-span-xl-6":"styles-module__col-span-xl-6__piqQd",colSpanXl6:fm,"col-span-xl-7":"styles-module__col-span-xl-7__YGer8",colSpanXl7:xm,"col-span-xl-8":"styles-module__col-span-xl-8__Dr6aM",colSpanXl8:bm,"col-span-xl-9":"styles-module__col-span-xl-9__zyuUC",colSpanXl9:$m,"col-span-xl-10":"styles-module__col-span-xl-10__1tCT-",colSpanXl10:vm,"col-span-xl-11":"styles-module__col-span-xl-11__4neTT",colSpanXl11:jm,"col-span-xl-12":"styles-module__col-span-xl-12__yqf3o",colSpanXl12:Nm,"col-span-xl-full":"styles-module__col-span-xl-full__LIPRp",colSpanXlFull:wm,"row-span-1":"styles-module__row-span-1__zy3Hq",rowSpan1:Sm,"row-span-2":"styles-module__row-span-2__Z8RpU",rowSpan2:Cm,"row-span-3":"styles-module__row-span-3__JkAqM",rowSpan3:km,"row-span-4":"styles-module__row-span-4__X5Xkb",rowSpan4:Im,"row-span-5":"styles-module__row-span-5__UGWBp",rowSpan5:Lm,"row-span-6":"styles-module__row-span-6__Ok7gd",rowSpan6:zm};function ls({columns:s=12,columnsSm:l,columnsMd:t,columnsLg:o,columnsXl:_,gap:n="md",rowGap:a,columnGap:c,alignItems:i,justifyItems:r,justifyContent:d,autoFlow:u,className:x="",children:h,...b}){const m=[P.grid,P[`columns-${s}`],l&&P[`columns-sm-${l}`],t&&P[`columns-md-${t}`],o&&P[`columns-lg-${o}`],_&&P[`columns-xl-${_}`],P[`gap-${n}`],a&&P[`row-gap-${a}`],c&&P[`column-gap-${c}`],i&&P[`align-${i}`],r&&P[`justify-items-${r}`],d&&P[`justify-content-${d}`],u&&P[`flow-${u}`],x].filter(Boolean).join(" ");return e.jsx("div",{className:m,...b,children:h})}function ts({colSpan:s,colSpanSm:l,colSpanMd:t,colSpanLg:o,colSpanXl:_,rowSpan:n,colStart:a,colEnd:c,rowStart:i,rowEnd:r,className:d="",children:u,...x}){const h=[P.gridItem,s&&P[`col-span-${s}`],l&&P[`col-span-sm-${l}`],t&&P[`col-span-md-${t}`],o&&P[`col-span-lg-${o}`],_&&P[`col-span-xl-${_}`],n&&P[`row-span-${n}`],d].filter(Boolean).join(" "),b={};return a&&(b.gridColumnStart=a),c&&(b.gridColumnEnd=c),i&&(b.gridRowStart=i),r&&(b.gridRowEnd=r),e.jsx("div",{className:h,style:b,...x,children:u})}ls.Item=ts;const Mm="styles-module__container__VdOF1",Tm="styles-module__centered__VnHGF",Dm="styles-module__size-xs__-MEhp",Wm="styles-module__size-sm__ZuE4A",Bm="styles-module__size-md__piQ0Z",Em="styles-module__size-lg__Grr0V",Rm="styles-module__size-xl__aBZcL",Xm="styles-module__size-2xl__qimqK",Gm="styles-module__size-full__02jid",Vm="styles-module__fluid__yUjnw",Am="styles-module__padding-none__BoJqT",Pm="styles-module__padding-sm__jnwGB",qm="styles-module__padding-md__awpVn",Fm="styles-module__padding-lg__rnErD",Om="styles-module__padding-xl__vpDQ1",Re={container:Mm,centered:Tm,"size-xs":"styles-module__size-xs__-MEhp",sizeXs:Dm,"size-sm":"styles-module__size-sm__ZuE4A",sizeSm:Wm,"size-md":"styles-module__size-md__piQ0Z",sizeMd:Bm,"size-lg":"styles-module__size-lg__Grr0V",sizeLg:Em,"size-xl":"styles-module__size-xl__aBZcL",sizeXl:Rm,"size-2xl":"styles-module__size-2xl__qimqK",size2Xl:Xm,"size-full":"styles-module__size-full__02jid",sizeFull:Gm,fluid:Vm,"padding-none":"styles-module__padding-none__BoJqT",paddingNone:Am,"padding-sm":"styles-module__padding-sm__jnwGB",paddingSm:Pm,"padding-md":"styles-module__padding-md__awpVn",paddingMd:qm,"padding-lg":"styles-module__padding-lg__rnErD",paddingLg:Fm,"padding-xl":"styles-module__padding-xl__vpDQ1",paddingXl:Om};function Hm({size:s="lg",padding:l="md",centered:t=!0,fluid:o=!1,className:_="",children:n,...a}){const c=[Re.container,!o&&Re[`size-${s}`],Re[`padding-${l}`],t&&Re.centered,o&&Re.fluid,_].filter(Boolean).join(" ");return e.jsx("div",{className:c,...a,children:n})}const Zm="styles-module__spacer__qss6j",Km="styles-module__axis-vertical__3Kgfw",Ym="styles-module__size-xs__SaVUa",Um="styles-module__size-sm__UBNV3",Jm="styles-module__size-md__yESLg",Qm="styles-module__size-lg__vQTo6",ep="styles-module__size-xl__xnHrI",sp="styles-module__size-2xl__3-kBv",lp="styles-module__size-3xl__CLpLD",tp="styles-module__size-4xl__JaQzV",op="styles-module__axis-horizontal__zztIj",np="styles-module__axis-both__1qVsg",Ze={spacer:Zm,"axis-vertical":"styles-module__axis-vertical__3Kgfw",axisVertical:Km,"size-xs":"styles-module__size-xs__SaVUa",sizeXs:Ym,"size-sm":"styles-module__size-sm__UBNV3",sizeSm:Um,"size-md":"styles-module__size-md__yESLg",sizeMd:Jm,"size-lg":"styles-module__size-lg__vQTo6",sizeLg:Qm,"size-xl":"styles-module__size-xl__xnHrI",sizeXl:ep,"size-2xl":"styles-module__size-2xl__3-kBv",size2Xl:sp,"size-3xl":"styles-module__size-3xl__CLpLD",size3Xl:lp,"size-4xl":"styles-module__size-4xl__JaQzV",size4Xl:tp,"axis-horizontal":"styles-module__axis-horizontal__zztIj",axisHorizontal:op,"axis-both":"styles-module__axis-both__1qVsg",axisBoth:np};function _p({size:s="md",axis:l="vertical",spacing:t,className:o=""}){const _=[Ze.spacer,Ze[`size-${s}`],Ze[`axis-${l}`],o].filter(Boolean).join(" "),n={};if(t!==void 0){const a=typeof t=="number"?`${t}px`:t;switch(l){case"horizontal":n.width=a,n.height=0;break;case"vertical":n.height=a,n.width=0;break;case"both":n.width=a,n.height=a;break}}return e.jsx("div",{className:_,style:n,"aria-hidden":"true"})}const ap="styles-module__skeleton__IE-Vu",cp="styles-module__animation-pulse__aYSI1",dp="styles-module__pulse__8b7Cb",rp="styles-module__animation-wave__88ZQe",ip="styles-module__wave__5-OJD",up="styles-module__variant-text__QpDWV",mp="styles-module__variant-circular__3X6OU",pp="styles-module__variant-rectangular__bDGYd",yp="styles-module__variant-rounded__5rsz7",hp="styles-module__textGroup__djF5j",Ae={skeleton:ap,"animation-pulse":"styles-module__animation-pulse__aYSI1",animationPulse:cp,pulse:dp,"animation-wave":"styles-module__animation-wave__88ZQe",animationWave:rp,wave:ip,"variant-text":"styles-module__variant-text__QpDWV",variantText:up,"variant-circular":"styles-module__variant-circular__3X6OU",variantCircular:mp,"variant-rectangular":"styles-module__variant-rectangular__bDGYd",variantRectangular:pp,"variant-rounded":"styles-module__variant-rounded__5rsz7",variantRounded:yp,textGroup:hp};function ke({variant:s="text",width:l,height:t,animation:o="pulse",className:_="",lines:n=1,...a}){const c=()=>{const r={};return l!==void 0&&(r.width=typeof l=="number"?`${l}px`:l),t!==void 0&&(r.height=typeof t=="number"?`${t}px`:t),r},i=[Ae.skeleton,Ae[`variant-${s}`],o!=="none"&&Ae[`animation-${o}`],_].filter(Boolean).join(" ");return s==="text"&&n>1?e.jsx("div",{className:Ae.textGroup,...a,children:Array.from({length:n},(r,d)=>e.jsx("div",{className:i,style:{...c(),...d===n-1&&{width:l||"80%"}}},d))}):e.jsx("div",{className:i,style:c(),...a})}function os({lines:s=3,...l}){return e.jsx(ke,{variant:"text",lines:s,...l})}function ns({size:s=40,...l}){return e.jsx(ke,{variant:"circular",width:s,height:s,...l})}function _s({width:s="100%",height:l=200,...t}){return e.jsx(ke,{variant:"rectangular",width:s,height:l,...t})}ke.Text=os;ke.Circle=ns;ke.Rectangle=_s;const gp="styles-module__videoContainer__3jwCO",fp="styles-module__video__i5zru",xp="styles-module__aspect-16-9__1C9zz",bp="styles-module__aspect-4-3__d-QMp",$p="styles-module__aspect-1-1__pNYYM",vp="styles-module__aspect-21-9__h138i",Ke={videoContainer:gp,video:fp,"aspect-16-9":"styles-module__aspect-16-9__1C9zz",aspect169:xp,"aspect-4-3":"styles-module__aspect-4-3__d-QMp",aspect43:bp,"aspect-1-1":"styles-module__aspect-1-1__pNYYM",aspect11:$p,"aspect-21-9":"styles-module__aspect-21-9__h138i",aspect219:vp},as=g.forwardRef(({src:s,sources:l,poster:t,aspectRatio:o="16:9",controls:_=!0,autoPlay:n=!1,loop:a=!1,muted:c=!1,playsInline:i=!0,width:r,height:d,className:u="",loading:x="lazy",onError:h,...b},m)=>{const w={};r&&(w.width=typeof r=="number"?`${r}px`:r),d&&(w.height=typeof d=="number"?`${d}px`:d);const v=[Ke.videoContainer,o!=="auto"&&Ke[`aspect-${o.replace(":","-")}`],u].filter(Boolean).join(" ");return e.jsx("div",{className:v,style:w,children:e.jsxs("video",{ref:m,className:Ke.video,controls:_,autoPlay:n,loop:a,muted:c,playsInline:i,poster:t,onError:h,...b,children:[l&&l.length>0?l.map((y,N)=>e.jsx("source",{src:y.src,type:y.type},N)):e.jsx("source",{src:s}),"Your browser does not support the video tag."]})})});as.displayName="Video";const jp="styles-module__audioContainer__16H-K",Np="styles-module__audio__Mq-EL",wp="styles-module__metadata__avzvt",Sp="styles-module__coverArt__uvMH0",Cp="styles-module__info__yWEjQ",kp="styles-module__title__zSubd",Ip="styles-module__artist__YDHxr",Lp="styles-module__album__15liA",zp="styles-module__variant-minimal__kn0IV",Mp="styles-module__variant-standard__aqKxT",Tp="styles-module__variant-detailed__jUpfp",ge={audioContainer:jp,audio:Np,metadata:wp,coverArt:Sp,info:Cp,title:kp,artist:Ip,album:Lp,"variant-minimal":"styles-module__variant-minimal__kn0IV",variantMinimal:zp,"variant-standard":"styles-module__variant-standard__aqKxT",variantStandard:Mp,"variant-detailed":"styles-module__variant-detailed__jUpfp",variantDetailed:Tp},cs=g.forwardRef(({src:s,sources:l,title:t,artist:o,album:_,coverArt:n,variant:a="standard",controls:c=!0,autoPlay:i=!1,loop:r=!1,muted:d=!1,preload:u="metadata",className:x="",onError:h,onPlay:b,onPause:m,onEnded:w,...v},y)=>{const N=[ge.audioContainer,ge[`variant-${a}`],x].filter(Boolean).join(" "),L=t||o||_||n;return e.jsxs("div",{className:N,children:[L&&a!=="minimal"&&e.jsxs("div",{className:ge.metadata,children:[n&&e.jsx("div",{className:ge.coverArt,children:e.jsx("img",{src:n,alt:t||"Cover art"})}),e.jsxs("div",{className:ge.info,children:[t&&e.jsx("div",{className:ge.title,children:t}),o&&e.jsx("div",{className:ge.artist,children:o}),_&&a==="detailed"&&e.jsx("div",{className:ge.album,children:_})]})]}),e.jsxs("audio",{ref:y,className:ge.audio,controls:c,autoPlay:i,loop:r,muted:d,preload:u,onError:h,onPlay:b,onPause:m,onEnded:w,...v,children:[l&&l.length>0?l.map((S,C)=>e.jsx("source",{src:S.src,type:S.type},C)):e.jsx("source",{src:s}),"Your browser does not support the audio tag."]})]})});cs.displayName="Audio";const Dp="styles-module__tagInputContainer__rG-TN",Wp="styles-module__fullWidth__nfUqH",Bp="styles-module__label__r7qNM",Ep="styles-module__inputWrapper__lb9-U",Rp="styles-module__disabled__DJG6N",Xp="styles-module__sm__f1Ha1",Gp="styles-module__lg__bmnGH",Vp="styles-module__error__Gtr32",Ap="styles-module__success__SgWLH",Pp="styles-module__tagsContainer__9dKnO",qp="styles-module__tag__UTkfA",Fp="styles-module__tagLabel__koIV7",Op="styles-module__removeButton__4LMvA",Hp="styles-module__input__G3wtc",Zp="styles-module__helperText__G6VBC",Kp="styles-module__errorText__LPcTb",U={tagInputContainer:Dp,fullWidth:Wp,label:Bp,inputWrapper:Ep,disabled:Rp,sm:Xp,lg:Gp,error:Vp,success:Ap,tagsContainer:Pp,tag:qp,tagLabel:Fp,removeButton:Op,input:Hp,helperText:Zp,errorText:Kp};function Yp({tags:s=[],onChange:l,onTagAdd:t,onTagRemove:o,placeholder:_="Add tags...",label:n,error:a,helperText:c,size:i="md",variant:r="default",disabled:d=!1,maxTags:u,separators:x=["Enter",","],allowDuplicates:h=!1,validate:b,removable:m=!0,fullWidth:w=!1,className:v=""}){const[y,N]=g.useState(""),L=g.useRef(null),S=a?"error":r,C=p=>{const f=p.trim();if(!f||u&&s.length>=u||!h&&s.some(F=>F.label.toLowerCase()===f.toLowerCase())||b&&!b(f))return;const j={id:`${Date.now()}-${Math.random()}`,label:f},z=[...s,j];l?.(z),t?.(j),N("")},M=p=>{if(!m||d)return;const f=s.filter(j=>j.id!==p.id);l?.(f),o?.(p)},B=p=>{const f=y.trim();if(x.includes(p.key)){p.preventDefault(),C(f);return}p.key==="Backspace"&&!y&&s.length>0&&m&&(p.preventDefault(),M(s[s.length-1]))},V=p=>{const f=p.target.value;if(x.includes(",")&&f.includes(",")){const j=f.split(",");j.slice(0,-1).forEach(z=>C(z)),N(j[j.length-1])}else N(f)},X=()=>{L.current?.focus()},T=[U.tagInputContainer,w&&U.fullWidth,v].filter(Boolean).join(" "),A=[U.inputWrapper,U[i],U[S],d&&U.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:T,children:[n&&e.jsx("label",{className:U.label,children:n}),e.jsx("div",{className:A,onClick:X,children:e.jsxs("div",{className:U.tagsContainer,children:[s.map(p=>e.jsxs("div",{className:U.tag,children:[e.jsx("span",{className:U.tagLabel,children:p.label}),m&&!d&&e.jsx("button",{type:"button",className:U.removeButton,onClick:f=>{f.stopPropagation(),M(p)},"aria-label":`Remove ${p.label}`,children:"×"})]},p.id)),(!u||s.length<u)&&e.jsx("input",{ref:L,type:"text",className:U.input,value:y,onChange:V,onKeyDown:B,onBlur:()=>{y.trim()&&C(y)},placeholder:s.length===0?_:"",disabled:d})]})}),(a||c)&&e.jsx("span",{className:`${U.helperText} ${a?U.errorText:""}`,children:a||c})]})}const Up="styles-module__pinInputContainer__A-JES",Jp="styles-module__label__oTDys",Qp="styles-module__inputsWrapper__kkWw4",ey="styles-module__pinInput__98qy7",sy="styles-module__sm__soj3i",ly="styles-module__lg__i9e56",ty="styles-module__error__n5-a4",oy="styles-module__success__P-ASa",ny="styles-module__masked__DP3X2",_y="styles-module__helperText__1DBEi",ay="styles-module__errorText__Hr-Sq",de={pinInputContainer:Up,label:Jp,inputsWrapper:Qp,pinInput:ey,sm:sy,lg:ly,error:ty,success:oy,masked:ny,helperText:_y,errorText:ay};function cy({length:s=6,type:l="numeric",size:t="md",variant:o="default",mask:_=!1,autoFocus:n=!1,disabled:a=!1,placeholder:c="",label:i,error:r,helperText:d,onChange:u,onComplete:x,value:h,defaultValue:b="",selectOnFocus:m=!0,className:w=""}){const[v,y]=g.useState(h?.split("")||b.split("").slice(0,s)||Array(s).fill("")),N=g.useRef([]),L=r?"error":o;g.useEffect(()=>{if(h!==void 0){const p=h.split("").slice(0,s);for(;p.length<s;)p.push("");y(p)}},[h,s]),g.useEffect(()=>{n&&N.current[0]&&N.current[0].focus()},[n]);const S=p=>{if(!p)return!0;switch(l){case"numeric":return/^\d$/.test(p);case"alphabetic":return/^[a-zA-Z]$/.test(p);case"alphanumeric":return/^[a-zA-Z0-9]$/.test(p);default:return!0}},C=p=>{N.current[p]&&(N.current[p]?.focus(),m&&N.current[p]?.select())},M=(p,f)=>{const j=f.slice(-1);if(f&&!S(j))return;const z=[...v];z[p]=j,y(z);const F=z.join("");u?.(F),j&&p<s-1&&C(p+1),z.every(W=>W!=="")&&x?.(F)},B=(p,f)=>{if(f.key==="Backspace"){f.preventDefault();const j=[...v];v[p]?(j[p]="",y(j),u?.(j.join(""))):p>0&&(j[p-1]="",y(j),u?.(j.join("")),C(p-1))}if(f.key==="Delete"){f.preventDefault();const j=[...v];j[p]="",y(j),u?.(j.join(""))}f.key==="ArrowLeft"&&p>0&&(f.preventDefault(),C(p-1)),f.key==="ArrowRight"&&p<s-1&&(f.preventDefault(),C(p+1)),f.key==="Home"&&(f.preventDefault(),C(0)),f.key==="End"&&(f.preventDefault(),C(s-1))},V=p=>{p.preventDefault();const j=p.clipboardData.getData("text").slice(0,s).split("").filter(S),z=[...v];j.forEach((W,O)=>{O<s&&(z[O]=W)}),y(z),u?.(z.join(""));const F=z.findIndex(W=>!W);C(F===-1?s-1:F),z.every(W=>W!=="")&&x?.(z.join(""))},X=p=>{m&&N.current[p]&&N.current[p]?.select()},T=[de.pinInputContainer,w].filter(Boolean).join(" "),A=[de.pinInput,de[t],de[L],_&&de.masked,a&&de.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:T,children:[i&&e.jsx("label",{className:de.label,children:i}),e.jsx("div",{className:de.inputsWrapper,children:Array.from({length:s}).map((p,f)=>e.jsx("input",{ref:j=>N.current[f]=j,type:_?"password":"text",inputMode:l==="numeric"?"numeric":"text",maxLength:1,value:v[f]||"",onChange:j=>M(f,j.target.value),onKeyDown:j=>B(f,j),onPaste:V,onFocus:()=>X(f),disabled:a,placeholder:c,className:A,"aria-label":`PIN digit ${f+1}`},f))}),(r||d)&&e.jsx("span",{className:`${de.helperText} ${r?de.errorText:""}`,children:r||d})]})}const dy="styles-module__ratingContainer__F0pJb",ry="styles-module__label__P8tLy",iy="styles-module__ratingWrapper__vNfnc",uy="styles-module__rating__NcjYB",my="styles-module__star__1LgQx",py="styles-module__sm__KTEVu",yy="styles-module__md__vRYlw",hy="styles-module__lg__NoGC1",gy="styles-module__readOnly__yNpwH",fy="styles-module__disabled__cME0J",xy="styles-module__valueDisplay__KxK-j",by="styles-module__helperText__-Dh55",re={ratingContainer:dy,label:ry,ratingWrapper:iy,rating:uy,star:my,sm:py,md:yy,lg:hy,readOnly:gy,disabled:fy,valueDisplay:xy,helperText:by};function $y({value:s,defaultValue:l=0,max:t=5,precision:o=1,size:_="md",readOnly:n=!1,disabled:a=!1,label:c,showValue:i=!1,emptyIcon:r,filledIcon:d,halfIcon:u,onChange:x,onHoverChange:h,className:b="",helperText:m}){const[w,v]=g.useState(l),[y,N]=g.useState(null),L=s!==void 0?s:w,S=y!==null?y:L,C=!n&&!a,M=p=>{if(!C)return;const f=L===p?0:p;s===void 0&&v(f),x?.(f)},B=(p,f)=>{if(C)if(o===.5){const{left:j,width:z}=f.currentTarget.getBoundingClientRect(),F=(f.clientX-j)/z,W=p+(F>.5?1:.5);N(W),h?.(W)}else{const j=p+1;N(j),h?.(j)}},V=()=>{C&&(N(null),h?.(0))},X=p=>{const f=p+1,j=S>=f,z=o===.5&&S>=f-.5&&S<f;return j?d||"★":z?u||"⯨":r||"☆"},T=[re.ratingContainer,b].filter(Boolean).join(" "),A=[re.rating,re[_],a&&re.disabled,n&&re.readOnly].filter(Boolean).join(" ");return e.jsxs("div",{className:T,children:[c&&e.jsx("label",{className:re.label,children:c}),e.jsxs("div",{className:re.ratingWrapper,children:[e.jsx("div",{className:A,onMouseLeave:V,children:Array.from({length:t},(p,f)=>e.jsx("button",{type:"button",className:re.star,onClick:()=>M(f+1),onMouseMove:j=>B(f,j),disabled:a,"aria-label":`Rate ${f+1} out of ${t}`,children:X(f)},f))}),i&&e.jsxs("span",{className:re.valueDisplay,children:[S.toFixed(o===.5?1:0)," / ",t]})]}),m&&e.jsx("span",{className:re.helperText,children:m})]})}const vy="styles-module__window__kkIRc",jy="styles-module__maximized__8yMaC",Ny="styles-module__resizable__sHn40",wy="styles-module__size-sm__yjumC",Sy="styles-module__size-md__kavLf",Cy="styles-module__size-lg__IBW3e",ky="styles-module__size-xl__9yXK2",Iy="styles-module__size-full__AEyyM",Ly="styles-module__variant-default__fGFvQ",zy="styles-module__variant-dark__4x4Z6",My="styles-module__variant-light__ruY9H",Ty="styles-module__titleBar__q4Nxs",Dy="styles-module__draggable__AmUbi",Wy="styles-module__titleBarContent__blnTu",By="styles-module__title__muIAe",Ey="styles-module__toolbar__3bLH-",Ry="styles-module__controls__nFGhQ",Xy="styles-module__control__qiMAt",Gy="styles-module__minimize__zGRY6",Vy="styles-module__maximize__SuZ8f",Ay="styles-module__close__PVa1W",Py="styles-module__content__ABsnm",qy="styles-module__footer__g5GSG",q={window:vy,maximized:jy,resizable:Ny,"size-sm":"styles-module__size-sm__yjumC",sizeSm:wy,"size-md":"styles-module__size-md__kavLf",sizeMd:Sy,"size-lg":"styles-module__size-lg__IBW3e",sizeLg:Cy,"size-xl":"styles-module__size-xl__9yXK2",sizeXl:ky,"size-full":"styles-module__size-full__AEyyM",sizeFull:Iy,"variant-default":"styles-module__variant-default__fGFvQ",variantDefault:Ly,"variant-dark":"styles-module__variant-dark__4x4Z6",variantDark:zy,"variant-light":"styles-module__variant-light__ruY9H",variantLight:My,titleBar:Ty,draggable:Dy,titleBarContent:Wy,title:By,toolbar:Ey,controls:Ry,control:Xy,minimize:Gy,maximize:Vy,close:Ay,content:Py,footer:qy};function Fy({title:s="Window",size:l="md",variant:t="default",open:o=!0,closable:_=!0,minimizable:n=!1,maximizable:a=!0,resizable:c=!1,draggable:i=!0,onClose:r,onMinimize:d,onMaximize:u,width:x,height:h,initialX:b=0,initialY:m=0,children:w,className:v="",showControls:y=!0,toolbar:N,footer:L}){const[S,C]=g.useState(!1),[M,B]=g.useState({x:b,y:m}),[V,X]=g.useState(!1),[T,A]=g.useState({x:0,y:0}),p=g.useRef(null);if(!o)return null;const f=$=>{!i||S||(X(!0),A({x:$.clientX-M.x,y:$.clientY-M.y}))},j=$=>{V&&B({x:$.clientX-T.x,y:$.clientY-T.y})},z=()=>{X(!1)};g.useEffect(()=>{if(V)return document.addEventListener("mousemove",j),document.addEventListener("mouseup",z),()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",z)}},[V,T]);const F=()=>{C(!S),u?.()},W={};!S&&i&&(W.transform=`translate(${M.x}px, ${M.y}px)`),x&&(W.width=typeof x=="number"?`${x}px`:x),h&&(W.height=typeof h=="number"?`${h}px`:h);const O=[q.window,q[`size-${l}`],q[`variant-${t}`],S&&q.maximized,c&&q.resizable,v].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:O,style:W,children:[e.jsxs("div",{className:`${q.titleBar} ${i&&!S?q.draggable:""}`,onMouseDown:f,children:[e.jsxs("div",{className:q.titleBarContent,children:[e.jsx("span",{className:q.title,children:s}),N&&e.jsx("div",{className:q.toolbar,children:N})]}),y&&e.jsxs("div",{className:q.controls,children:[n&&e.jsx("button",{type:"button",className:`${q.control} ${q.minimize}`,onClick:d,"aria-label":"Minimize",children:"−"}),a&&e.jsx("button",{type:"button",className:`${q.control} ${q.maximize}`,onClick:F,"aria-label":S?"Restore":"Maximize",children:S?"⧉":"□"}),_&&e.jsx("button",{type:"button",className:`${q.control} ${q.close}`,onClick:r,"aria-label":"Close",children:"×"})]})]}),e.jsx("div",{className:q.content,children:w}),L&&e.jsx("div",{className:q.footer,children:L})]})}const Oy="styles-module__gaugeContainer__BnFBJ",Hy="styles-module__svg__IOyJ8",Zy="styles-module__animatedPath__MmF1n",Ky="styles-module__gaugeAnimation__Hxuof",Yy="styles-module__centerText__-aFc6",Uy="styles-module__value__f21LN",Jy="styles-module__unit__f4531",Qy="styles-module__label__3mWKl",eh="styles-module__minMaxLabels__Zc16l",sh="styles-module__minLabel__gGD9N",lh="styles-module__maxLabel__tNNbn",th="styles-module__sm__5ZJIU",oh="styles-module__md__ZNSR1",nh="styles-module__lg__BS4ab",_h="styles-module__xl__Qeyec",_e={gaugeContainer:Oy,svg:Hy,animatedPath:Zy,gaugeAnimation:Ky,centerText:Yy,value:Uy,unit:Jy,label:Qy,minMaxLabels:eh,minLabel:sh,maxLabel:lh,sm:th,md:oh,lg:nh,xl:_h};function ah({value:s,min:l=0,max:t=100,size:o="md",variant:_="default",thickness:n=12,label:a,showValue:c=!0,valueFormatter:i,showMinMax:r=!1,startAngle:d=-135,endAngle:u=135,animate:x=!0,className:h="",unit:b=""}){const m=Math.max(l,Math.min(t,s)),w=(m-l)/(t-l)*100,v=50-n/2,y=2*Math.PI*v,N=d*Math.PI/180,L=u*Math.PI/180,S=L-N,C=N+S*w/100,M=50+v*Math.sin(N),B=50-v*Math.cos(N),V=50+v*Math.sin(L),X=50-v*Math.cos(L),T=50+v*Math.sin(C),A=50-v*Math.cos(C),p=Math.abs(u-d)>180?1:0,f=w/100*Math.abs(u-d)>180?1:0,j=`M ${M} ${B} A ${v} ${v} 0 ${p} 1 ${V} ${X}`,z=w>0?`M ${M} ${B} A ${v} ${v} 0 ${f} 1 ${T} ${A}`:"",F=i?i(m):m.toFixed(0),W=[_e.gaugeContainer,_e[o],h].filter(Boolean).join(" "),O={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:_e.svg,viewBox:"0 0 100 100",children:[e.jsx("path",{d:j,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:n,strokeLinecap:"round"}),w>0&&e.jsx("path",{d:z,fill:"none",stroke:O[_],strokeWidth:n,strokeLinecap:"round",className:x?_e.animatedPath:"",style:{strokeDasharray:y,strokeDashoffset:y*(1-w/100)}}),e.jsxs("g",{className:_e.centerText,children:[c&&e.jsxs("text",{x:"50",y:a?"45":"52",className:_e.value,children:[F,b&&e.jsx("tspan",{className:_e.unit,children:b})]}),a&&e.jsx("text",{x:"50",y:c?"60":"52",className:_e.label,children:a})]})]}),r&&e.jsxs("div",{className:_e.minMaxLabels,children:[e.jsx("span",{className:_e.minLabel,children:l}),e.jsx("span",{className:_e.maxLabel,children:t})]})]})}const ch="styles-module__colorPickerContainer__GcH66",dh="styles-module__label__t8ugX",rh="styles-module__inputWrapper__DD6E-",ih="styles-module__colorButton__gbskz",uh="styles-module__disabled__f-loV",mh="styles-module__colorPreview__toNQY",ph="styles-module__colorInput__LWEMn",yh="styles-module__popover__x3a-e",hh="styles-module__pickerContent__2W72c",gh="styles-module__nativeColorPicker__rPI-9",fh="styles-module__presets__IuFHV",xh="styles-module__quickColors__YOCtI",bh="styles-module__presetsLabel__2bK2r",$h="styles-module__quickColorsLabel__jiYjL",vh="styles-module__presetsGrid__VDTHM",jh="styles-module__presetButton__5wc-z",Nh="styles-module__active__SqIPE",wh="styles-module__quickColorsGrid__9ZX0W",Sh="styles-module__quickColorButton__2FpSv",Ch="styles-module__helperText__AqKTN",kh="styles-module__errorText__cardI",R={colorPickerContainer:ch,label:dh,inputWrapper:rh,colorButton:ih,disabled:uh,colorPreview:mh,colorInput:ph,popover:yh,pickerContent:hh,nativeColorPicker:gh,presets:fh,quickColors:xh,presetsLabel:bh,quickColorsLabel:$h,presetsGrid:vh,presetButton:jh,active:Nh,quickColorsGrid:wh,quickColorButton:Sh,helperText:Ch,errorText:kh},Ih=s=>{const l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return l?{r:parseInt(l[1],16),g:parseInt(l[2],16),b:parseInt(l[3],16)}:null},Lh=(s,l,t)=>{s/=255,l/=255,t/=255;const o=Math.max(s,l,t),_=Math.min(s,l,t);let n=0,a=0;const c=(o+_)/2;if(o!==_){const i=o-_;switch(a=c>.5?i/(2-o-_):i/(o+_),o){case s:n=((l-t)/i+(l<t?6:0))/6;break;case l:n=((t-s)/i+2)/6;break;case t:n=((s-l)/i+4)/6;break}}return{h:Math.round(n*360),s:Math.round(a*100),l:Math.round(c*100)}};function zh({value:s,defaultValue:l="#6366f1",onChange:t,format:o="hex",label:_,disabled:n=!1,showPresets:a=!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,h]=g.useState(l),[b,m]=g.useState(!1),w=g.useRef(null),v=s!==void 0?s:x;g.useEffect(()=>{const S=C=>{w.current&&!w.current.contains(C.target)&&m(!1)};return b&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[b]);const y=S=>{s===void 0&&h(S),t?.(S)},N=S=>{const C=Ih(S);if(!C)return S;switch(o){case"rgb":return`rgb(${C.r}, ${C.g}, ${C.b})`;case"hsl":const M=Lh(C.r,C.g,C.b);return`hsl(${M.h}, ${M.s}%, ${M.l}%)`;default:return S}},L=[R.colorPickerContainer,r].filter(Boolean).join(" ");return e.jsxs("div",{className:L,children:[_&&e.jsx("label",{className:R.label,children:_}),e.jsxs("div",{className:R.inputWrapper,ref:w,children:[e.jsx("button",{type:"button",className:`${R.colorButton} ${n?R.disabled:""}`,onClick:()=>!n&&m(!b),disabled:n,style:{backgroundColor:v},"aria-label":"Select color",children:e.jsx("span",{className:R.colorPreview,style:{backgroundColor:v}})}),e.jsx("input",{type:"text",className:R.colorInput,value:N(v),onChange:S=>y(S.target.value),disabled:n,placeholder:"#000000"}),b&&!n&&e.jsx("div",{className:R.popover,children:e.jsxs("div",{className:R.pickerContent,children:[e.jsx("input",{type:"color",className:R.nativeColorPicker,value:v,onChange:S=>y(S.target.value)}),a&&e.jsxs("div",{className:R.presets,children:[e.jsx("div",{className:R.presetsLabel,children:"Presets"}),e.jsx("div",{className:R.presetsGrid,children:c.map(S=>e.jsx("button",{type:"button",className:`${R.presetButton} ${S===v?R.active:""}`,style:{backgroundColor:S},onClick:()=>y(S),"aria-label":`Select ${S}`},S))})]}),e.jsxs("div",{className:R.quickColors,children:[e.jsx("div",{className:R.quickColorsLabel,children:"Quick Colors"}),e.jsxs("div",{className:R.quickColorsGrid,children:[e.jsx("button",{type:"button",className:R.quickColorButton,style:{backgroundColor:"#000000"},onClick:()=>y("#000000")}),e.jsx("button",{type:"button",className:R.quickColorButton,style:{backgroundColor:"#ffffff"},onClick:()=>y("#ffffff")}),e.jsx("button",{type:"button",className:R.quickColorButton,style:{backgroundColor:"#808080"},onClick:()=>y("#808080")})]})]})]})})]}),(u||d)&&e.jsx("span",{className:`${R.helperText} ${u?R.errorText:""}`,children:u||d})]})}const Mh="styles-module__contextMenu__GRBVO",Th="styles-module__menuItem__RSaTZ",Dh="styles-module__disabled__bw0t-",Wh="styles-module__danger__KAIXk",Bh="styles-module__menuItemContent__-bnOm",Eh="styles-module__icon__WnkZL",Rh="styles-module__label__HqC1u",Xh="styles-module__menuItemRight__NVcQN",Gh="styles-module__shortcut__4Ry6D",Vh="styles-module__submenuIndicator__glhiH",Ah="styles-module__separator__VcMO9",Ph="styles-module__submenu__HTiQG",se={contextMenu:Mh,menuItem:Th,disabled:Dh,danger:Wh,menuItemContent:Bh,icon:Eh,label:Rh,menuItemRight:Xh,shortcut:Gh,submenuIndicator:Vh,separator:Ah,submenu:Ph};function qh({items:s,children:l,className:t="",disabled:o=!1}){const[_,n]=g.useState(!1),[a,c]=g.useState({x:0,y:0}),[i,r]=g.useState({}),d=g.useRef(null),u=g.useRef(null),x=y=>{if(o)return;y.preventDefault(),y.stopPropagation();const N=y.clientX,L=y.clientY,S=240,C=s.length*40+16,M=window.innerWidth,B=window.innerHeight,V=N+S>M?M-S-10:N,X=L+C>B?B-C-10:L;c({x:V,y:X}),n(!0)},h=y=>{d.current&&!d.current.contains(y.target)&&u.current&&!u.current.contains(y.target)&&(n(!1),r({}))};g.useEffect(()=>{if(_)return document.addEventListener("mousedown",h),document.addEventListener("contextmenu",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("contextmenu",h)}},[_]);const b=y=>{y.disabled||(y.submenu?r(N=>({...N,[y.id]:!N[y.id]})):(y.onClick?.(),n(!1),r({})))},m=y=>{r(N=>({...N,[y]:!0}))},w=y=>{r(N=>({...N,[y]:!1}))},v=(y,N=0)=>{const L=y.submenu&&y.submenu.length>0,S=i[y.id];return e.jsxs(g.Fragment,{children:[e.jsxs("div",{className:`${se.menuItem} ${y.disabled?se.disabled:""} ${y.danger?se.danger:""}`,onClick:()=>b(y),onMouseEnter:()=>L&&m(y.id),onMouseLeave:()=>L&&w(y.id),style:{paddingLeft:`${.75+N*.5}rem`},children:[e.jsxs("div",{className:se.menuItemContent,children:[y.icon&&e.jsx("span",{className:se.icon,children:y.icon}),e.jsx("span",{className:se.label,children:y.label})]}),e.jsxs("div",{className:se.menuItemRight,children:[y.shortcut&&e.jsx("span",{className:se.shortcut,children:y.shortcut}),L&&e.jsx("span",{className:se.submenuIndicator,children:"›"})]}),L&&S&&e.jsx("div",{className:se.submenu,children:y.submenu.map(C=>v(C,N+1))})]}),y.separator&&e.jsx("div",{className:se.separator})]},y.id)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:u,onContextMenu:x,className:t,style:{display:"inline-block"},children:l}),_&&e.jsx("div",{ref:d,className:se.contextMenu,style:{left:`${a.x}px`,top:`${a.y}px`},children:s.map(y=>v(y))})]})}const Fh="styles-module__dataList__0oRGD",Oh="styles-module__item__eOSeD",Hh="styles-module__highlight__DdCec",Zh="styles-module__horizontal__GB4WY",Kh="styles-module__label__75f3b",Yh="styles-module__value__aOT7v",Uh="styles-module__vertical__H42DV",Jh="styles-module__bold__mfZsI",Qh="styles-module__icon__EoISr",eg="styles-module__labelText__ca0Gf",sg="styles-module__helpText__CW7oi",lg="styles-module__valueContent__NlivI",tg="styles-module__copyButton__pQctE",og="styles-module__dividers__uU1uU",ng="styles-module__striped__7ArH9",_g="styles-module__sm__J9JEm",ag="styles-module__md__stc8l",cg="styles-module__lg__iKJsr",Z={dataList:Fh,item:Oh,highlight:Hh,horizontal:Zh,label:Kh,value:Yh,vertical:Uh,bold:Jh,icon:Qh,labelText:eg,helpText:sg,valueContent:lg,copyButton:tg,dividers:og,striped:ng,sm:_g,md:ag,lg:cg};function dg({items:s,orientation:l="horizontal",size:t="md",dividers:o=!0,boldLabels:_=!0,className:n="",labelWidth:a,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:`${Z.dataList} ${Z[l]} ${Z[t]} ${o?Z.dividers:""} ${c?Z.striped:""} ${n}`,style:{"--label-width":a},children:s.map((d,u)=>e.jsxs("div",{className:`${Z.item} ${d.highlight?Z.highlight:""} ${d.className||""}`,children:[e.jsxs("dt",{className:`${Z.label} ${_?Z.bold:""}`,children:[d.icon&&e.jsx("span",{className:Z.icon,children:d.icon}),e.jsxs("span",{className:Z.labelText,children:[d.label,d.helpText&&e.jsx("span",{className:Z.helpText,title:d.helpText,children:"?"})]})]}),e.jsxs("dd",{className:Z.value,children:[e.jsx("span",{className:Z.valueContent,children:d.value}),d.copyable&&e.jsx("button",{type:"button",className:Z.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 rg="styles-module__statCard__oYt00",ig="styles-module__bordered__A56Xz",ug="styles-module__clickable__mMZBY",mg="styles-module__header__IYBwN",pg="styles-module__labelContainer__mSkYw",yg="styles-module__icon__-4Vf1",hg="styles-module__label__xxYm9",gg="styles-module__content__RE4Xm",fg="styles-module__valueContainer__o1jtt",xg="styles-module__value__ZjSG8",bg="styles-module__prefix__jaOdQ",$g="styles-module__suffix__9g-Zt",vg="styles-module__description__DOrYb",jg="styles-module__changeContainer__p4K9m",Ng="styles-module__trendIcon__8hzJD",wg="styles-module__trend-up__EkKSW",Sg="styles-module__trend-down__PAAY-",Cg="styles-module__trend-neutral__1OaEM",kg="styles-module__footer__y26Lt",Ig="styles-module__loading__q9k-W",Lg="styles-module__loadingSkeleton__eMNrK",zg="styles-module__skeletonValue__Pio1n",Mg="styles-module__shimmer__OH-3R",Tg="styles-module__skeletonDescription__Qws61",Dg="styles-module__sm__t0NLs",Wg="styles-module__md__f-ZAw",Bg="styles-module__lg__o7Q4y",Eg="styles-module__primary__Kp-sj",Rg="styles-module__success__Q5jxs",Xg="styles-module__warning__l8Nwy",Gg="styles-module__error__tcxHs",Vg="styles-module__info__cF-x1",D={statCard:rg,bordered:ig,clickable:ug,header:mg,labelContainer:pg,icon:yg,label:hg,content:gg,valueContainer:fg,value:xg,prefix:bg,suffix:$g,description:vg,changeContainer:jg,trendIcon:Ng,"trend-up":"styles-module__trend-up__EkKSW",trendUp:wg,"trend-down":"styles-module__trend-down__PAAY-",trendDown:Sg,"trend-neutral":"styles-module__trend-neutral__1OaEM",trendNeutral:Cg,footer:kg,loading:Ig,loadingSkeleton:Lg,skeletonValue:zg,shimmer:Mg,skeletonDescription:Tg,sm:Dg,md:Wg,lg:Bg,default:"styles-module__default__AaRSX",primary:Eg,success:Rg,warning:Xg,error:Gg,info:Vg};function Ag({value:s,label:l,icon:t,variant:o="default",size:_="md",change:n,trend:a,description:c,footer:i,loading:r=!1,className:d="",onClick:u,bordered:x=!1,prefix:h,suffix:b}){const m=!!u,w=()=>r?e.jsx("div",{className:D.loadingSkeleton,children:e.jsx("div",{className:D.skeletonValue})}):e.jsxs("div",{className:D.valueContainer,children:[h&&e.jsx("span",{className:D.prefix,children:h}),e.jsx("span",{className:D.value,children:s}),b&&e.jsx("span",{className:D.suffix,children:b})]}),v=()=>{if(!n&&!a)return null;const y=a?D[`trend-${a}`]:n?.startsWith("+")||n?.startsWith("↑")?D["trend-up"]:n?.startsWith("-")||n?.startsWith("↓")?D["trend-down"]:D["trend-neutral"];return e.jsxs("div",{className:`${D.changeContainer} ${y}`,children:[a==="up"&&!n?.includes("↑")&&!n?.includes("▲")&&e.jsx("span",{className:D.trendIcon,children:"↑"}),a==="down"&&!n?.includes("↓")&&!n?.includes("▼")&&e.jsx("span",{className:D.trendIcon,children:"↓"}),a==="neutral"&&!n?.includes("→")&&e.jsx("span",{className:D.trendIcon,children:"→"}),n&&e.jsx("span",{className:D.change,children:n})]})};return e.jsxs("div",{className:`${D.statCard} ${D[o]} ${D[_]} ${m?D.clickable:""} ${x?D.bordered:""} ${r?D.loading:""} ${d}`,onClick:u,role:m?"button":void 0,tabIndex:m?0:void 0,onKeyDown:m?y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u?.())}:void 0,children:[e.jsxs("div",{className:D.header,children:[e.jsxs("div",{className:D.labelContainer,children:[t&&e.jsx("span",{className:D.icon,children:t}),e.jsx("span",{className:D.label,children:l})]}),v()]}),e.jsxs("div",{className:D.content,children:[w(),c&&!r&&e.jsx("p",{className:D.description,children:c}),r&&c&&e.jsx("div",{className:D.loadingSkeleton,children:e.jsx("div",{className:D.skeletonDescription})})]}),i&&!r&&e.jsx("div",{className:D.footer,children:i})]})}const Pg="styles-module__split__10amd",qg="styles-module__horizontal__nWMIm",Fg="styles-module__vertical__dHG5L",Og="styles-module__pane__eLr0i",Hg="styles-module__gutter__bzVSj",Zg="styles-module__gutterHandle__laNCM",Kg="styles-module__dragging__GRmLp",Yg="styles-module__disabled__-Lei8",we={split:Pg,horizontal:qg,vertical:Fg,pane:Og,gutter:Hg,gutterHandle:Zg,dragging:Kg,disabled:Yg};function Ug({direction:s="horizontal",initialSize:l=50,minSize:t=100,maxSize:o,children:_,onResize:n,className:a="",disabled:c=!1,snapPositions:i=[],snapThreshold:r=20,gutterSize:d=8}){const[u,x]=g.useState(l),[h,b]=g.useState(!1),m=g.useRef(null),w=g.useRef(0),v=g.useRef(0),y=s==="horizontal",N=T=>{c||(T.preventDefault(),b(!0),w.current=y?T.clientX:T.clientY,v.current=u)},L=g.useCallback(T=>{if(!h||!m.current)return;const p=m.current.getBoundingClientRect(),f=y?p.width:p.height,j=y?T.clientX:T.clientY;y?p.left:p.top;const F=(j-w.current)/f*100;let W=v.current+F;const O=t/f*100;let $=100-O;if(o&&($=Math.min($,o/f*100)),W=Math.max(O,Math.min($,W)),i.length>0)for(const k of i){const Xe=k/100*f,qe=W/100*f;if(Math.abs(qe-Xe)<r){W=k;break}}x(W),n?.(W)},[h,y,t,o,i,r,n]),S=g.useCallback(()=>{h&&b(!1)},[h]);g.useEffect(()=>{if(h)return document.addEventListener("mousemove",L),document.addEventListener("mouseup",S),document.body.style.userSelect="none",document.body.style.cursor=y?"col-resize":"row-resize",()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",S),document.body.style.userSelect="",document.body.style.cursor=""}},[h,L,S,y]);const C=T=>{if(c)return;T.preventDefault(),b(!0);const A=T.touches[0];w.current=y?A.clientX:A.clientY,v.current=u},M=g.useCallback(T=>{if(!h||!m.current)return;const A=T.touches[0],f=m.current.getBoundingClientRect(),j=y?f.width:f.height,W=((y?A.clientX:A.clientY)-w.current)/j*100;let O=v.current+W;const $=t/j*100;let k=100-$;if(o&&(k=Math.min(k,o/j*100)),O=Math.max($,Math.min(k,O)),i.length>0)for(const Xe of i){const qe=Xe/100*j,Ye=O/100*j;if(Math.abs(Ye-qe)<r){O=Xe;break}}x(O),n?.(O)},[h,y,t,o,i,r,n]),B=g.useCallback(()=>{h&&b(!1)},[h]);g.useEffect(()=>{if(h)return document.addEventListener("touchmove",M),document.addEventListener("touchend",B),()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",B)}},[h,M,B]);const[V,X]=_;return e.jsxs("div",{ref:m,className:`${we.split} ${we[s]} ${h?we.dragging:""} ${c?we.disabled:""} ${a}`,children:[e.jsx("div",{className:we.pane,style:{[y?"width":"height"]:`${u}%`},children:V}),e.jsx("div",{className:we.gutter,style:{[y?"width":"height"]:`${d}px`},onMouseDown:N,onTouchStart:C,role:"separator","aria-orientation":s,"aria-valuenow":u,"aria-valuemin":t,"aria-valuemax":o||100,children:e.jsx("div",{className:we.gutterHandle})}),e.jsx("div",{className:we.pane,style:{flex:1},children:X})]})}const Jg="styles-module__imageGallery__1ewHX",Qg="styles-module__carouselContainer__CELQo",ef="styles-module__carouselMain__228vS",sf="styles-module__carouselTrack__KssOC",lf="styles-module__carouselSlide__pjIfk",tf="styles-module__carouselImage__QcK-1",of="styles-module__sm__oyagg",nf="styles-module__md__fP0C0",_f="styles-module__lg__yaqEo",af="styles-module__arrow__fKqP7",cf="styles-module__arrowLeft__KpeXV",df="styles-module__arrowRight__K9tqV",rf="styles-module__indicators__BuRqL",uf="styles-module__indicator__W0UZw",mf="styles-module__active__rCFls",pf="styles-module__thumbnails__rbSf8",yf="styles-module__thumbnail__uw-GG",hf="styles-module__caption__WXDtk",gf="styles-module__grid__Godk8",ff="styles-module__gridItem__R13Ho",xf="styles-module__gridOverlay__2Y-3Z",bf="styles-module__gridTitle__9Q2p3",$f="styles-module__gridCaption__mpcNh",vf="styles-module__masonry__tNDHq",jf="styles-module__masonryItem__22ZfL",Nf="styles-module__masonryOverlay__nQ91c",wf="styles-module__masonryTitle__WhvJr",Sf="styles-module__masonryCaption__HP0Zk",Cf="styles-module__lightbox__DLFIG",kf="styles-module__fadeIn__DWqo2",If="styles-module__lightboxContent__45Wxl",Lf="styles-module__zoomIn__CIB6-",zf="styles-module__lightboxClose__9oi0c",Mf="styles-module__lightboxArrow__f6Qhq",Tf="styles-module__lightboxArrowLeft__qHu5S",Df="styles-module__lightboxArrowRight__4wu-Y",Wf="styles-module__lightboxCaption__gVJhg",Bf="styles-module__lightboxTitle__M-1gH",Ef="styles-module__lightboxCounter__mpIt8",I={imageGallery:Jg,carouselContainer:Qg,carouselMain:ef,carouselTrack:sf,carouselSlide:lf,carouselImage:tf,sm:of,md:nf,lg:_f,arrow:af,arrowLeft:cf,arrowRight:df,indicators:rf,indicator:uf,active:mf,thumbnails:pf,thumbnail:yf,caption:hf,grid:gf,gridItem:ff,gridOverlay:xf,gridTitle:bf,gridCaption:$f,masonry:vf,masonryItem:jf,masonryOverlay:Nf,masonryTitle:wf,masonryCaption:Sf,lightbox:Cf,fadeIn:kf,lightboxContent:If,zoomIn:Lf,lightboxClose:zf,lightboxArrow:Mf,lightboxArrowLeft:Tf,lightboxArrowRight:Df,lightboxCaption:Wf,lightboxTitle:Bf,lightboxCounter:Ef};function Rf({images:s,variant:l="carousel",size:t="md",initialIndex:o=0,showThumbnails:_=!1,showCaptions:n=!0,autoPlay:a=0,columns:c=3,gap:i=16,lightbox:r=!0,className:d="",onImageClick:u,onIndexChange:x,showArrows:h=!0,showIndicators:b=!0,infinite:m=!0}){const[w,v]=g.useState(o),[y,N]=g.useState(!1),[L,S]=g.useState(0),[C,M]=g.useState(!1),B=g.useRef(),V=g.useCallback(()=>{C||(M(!0),v($=>{const k=$===0?m?s.length-1:0:$-1;return x?.(k),k}),setTimeout(()=>M(!1),300))},[s.length,m,x,C]),X=g.useCallback(()=>{C||(M(!0),v($=>{const k=$===s.length-1?m?0:s.length-1:$+1;return x?.(k),k}),setTimeout(()=>M(!1),300))},[s.length,m,x,C]),T=($,k)=>{u?.($,k),r&&(S(k),N(!0))},A=$=>{v($),x?.($)},p=()=>{N(!1)},f=()=>{S($=>$===0?s.length-1:$-1)},j=()=>{S($=>$===s.length-1?0:$+1)};g.useEffect(()=>{if(l==="carousel"&&a>0)return B.current=setInterval(()=>{X()},a),()=>{B.current&&clearInterval(B.current)}},[l,a,X]),g.useEffect(()=>{const $=k=>{y?(k.key==="Escape"&&p(),k.key==="ArrowLeft"&&f(),k.key==="ArrowRight"&&j()):l==="carousel"&&(k.key==="ArrowLeft"&&V(),k.key==="ArrowRight"&&X())};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[y,l,V,X]);const z=()=>e.jsxs("div",{className:I.carouselContainer,children:[e.jsxs("div",{className:I.carouselMain,children:[e.jsx("div",{className:I.carouselTrack,style:{transform:`translateX(-${w*100}%)`},children:s.map(($,k)=>e.jsxs("div",{className:I.carouselSlide,onClick:()=>T($,k),children:[e.jsx("img",{src:$.src,alt:$.alt,className:I.carouselImage}),n&&$.caption&&e.jsx("div",{className:I.caption,children:$.caption})]},$.id))}),h&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${I.arrow} ${I.arrowLeft}`,onClick:V,"aria-label":"Previous image",disabled:!m&&w===0,children:"‹"}),e.jsx("button",{className:`${I.arrow} ${I.arrowRight}`,onClick:X,"aria-label":"Next image",disabled:!m&&w===s.length-1,children:"›"})]})]}),b&&e.jsx("div",{className:I.indicators,children:s.map(($,k)=>e.jsx("button",{className:`${I.indicator} ${k===w?I.active:""}`,onClick:()=>{v(k),x?.(k)},"aria-label":`Go to image ${k+1}`},k))}),_&&e.jsx("div",{className:I.thumbnails,children:s.map(($,k)=>e.jsx("button",{className:`${I.thumbnail} ${k===w?I.active:""}`,onClick:()=>A(k),"aria-label":`Select image ${k+1}`,children:e.jsx("img",{src:$.thumbnail||$.src,alt:$.alt})},$.id))})]}),F=()=>e.jsx("div",{className:I.grid,style:{gridTemplateColumns:`repeat(${c}, 1fr)`,gap:`${i}px`},children:s.map(($,k)=>e.jsxs("div",{className:I.gridItem,onClick:()=>T($,k),children:[e.jsx("img",{src:$.thumbnail||$.src,alt:$.alt}),n&&($.caption||$.title)&&e.jsxs("div",{className:I.gridOverlay,children:[$.title&&e.jsx("div",{className:I.gridTitle,children:$.title}),$.caption&&e.jsx("div",{className:I.gridCaption,children:$.caption})]})]},$.id))}),W=()=>e.jsx("div",{className:I.masonry,style:{columnCount:c,columnGap:`${i}px`},children:s.map(($,k)=>e.jsxs("div",{className:I.masonryItem,style:{marginBottom:`${i}px`},onClick:()=>T($,k),children:[e.jsx("img",{src:$.thumbnail||$.src,alt:$.alt}),n&&($.caption||$.title)&&e.jsxs("div",{className:I.masonryOverlay,children:[$.title&&e.jsx("div",{className:I.masonryTitle,children:$.title}),$.caption&&e.jsx("div",{className:I.masonryCaption,children:$.caption})]})]},$.id))}),O=()=>{if(!y)return null;const $=s[L];return e.jsxs("div",{className:I.lightbox,onClick:p,children:[e.jsx("button",{className:I.lightboxClose,onClick:p,"aria-label":"Close lightbox",children:"×"}),e.jsx("button",{className:`${I.lightboxArrow} ${I.lightboxArrowLeft}`,onClick:k=>{k.stopPropagation(),f()},"aria-label":"Previous image",children:"‹"}),e.jsxs("div",{className:I.lightboxContent,onClick:k=>k.stopPropagation(),children:[e.jsx("img",{src:$.src,alt:$.alt}),($.caption||$.title)&&e.jsxs("div",{className:I.lightboxCaption,children:[$.title&&e.jsx("div",{className:I.lightboxTitle,children:$.title}),$.caption&&e.jsx("div",{children:$.caption})]})]}),e.jsx("button",{className:`${I.lightboxArrow} ${I.lightboxArrowRight}`,onClick:k=>{k.stopPropagation(),j()},"aria-label":"Next image",children:"›"}),e.jsxs("div",{className:I.lightboxCounter,children:[L+1," / ",s.length]})]})};return e.jsxs("div",{className:`${I.imageGallery} ${I[l]} ${I[t]} ${d}`,children:[l==="carousel"&&z(),l==="grid"&&F(),l==="masonry"&&W(),O()]})}exports.Accordion=fs;exports.Alert=Ls;exports.Audio=cs;exports.Avatar=Ps;exports.Badge=el;exports.Breadcrumbs=dl;exports.Button=wl;exports.ButtonGroup=Ll;exports.Card=Al;exports.Checkbox=Kl;exports.ColorPicker=zh;exports.Combobox=at;exports.Container=Hm;exports.ContextMenu=qh;exports.DataList=dg;exports.Datagrid=ft;exports.DatePicker=vt;exports.DateRangePicker=kt;exports.Divider=Et;exports.Dropdown=Kt;exports.FilePicker=mo;exports.Gauge=ah;exports.Grid=ls;exports.GridItem=ts;exports.Header=vo;exports.ImageGallery=Rf;exports.Input=Ue;exports.Label=Po;exports.List=Qo;exports.Modal=pn;exports.Pagination=xn;exports.PinInput=cy;exports.ProgressBar=Dn;exports.RadioButton=Gn;exports.RangeInput=Kn;exports.Rating=$y;exports.RichSelect=y_;exports.Select=ss;exports.SidePanel=z_;exports.Signpost=A_;exports.Skeleton=ke;exports.SkeletonCircle=ns;exports.SkeletonRectangle=_s;exports.SkeletonText=os;exports.Spacer=_p;exports.Spinner=Q_;exports.Split=Ug;exports.StackView=ba;exports.StatCard=Ag;exports.Stepper=Wa;exports.Table=Ka;exports.Tabs=ac;exports.TagInput=Yp;exports.Textarea=Je;exports.Timeline=Gc;exports.ToastProvider=Sd;exports.ToggleSwitch=Yc;exports.Tooltip=_d;exports.TreeView=Rd;exports.VerticalNav=_r;exports.Video=as;exports.Window=Fy;exports.useToast=Cd;
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:""}
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;
24
24
  //# sourceMappingURL=index.js.map