@clarlabs/ui 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@
15
15
  ${r?p2.hoverable:""}
16
16
  ${f?p2.clickable:""}
17
17
  ${h}
18
- `,onClick:n,role:f?"button":void 0,tabIndex:f?0:void 0,children:[s&&e.jsx("div",{className:p2.imageWrapper,children:e.jsx("img",{src:s,alt:a||"",className:p2.image})}),e.jsxs("div",{className:p2.content,children:[(a||i)&&e.jsxs("div",{className:p2.header,children:[a&&e.jsx("h3",{className:p2.title,children:a}),i&&e.jsx("p",{className:p2.subtitle,children:i})]}),e.jsx("div",{className:p2.body,children:t}),l&&e.jsx("div",{className:p2.footer,children:l})]})]})}const wa="styles-module__checkboxWrapper__5ECcg",_a="styles-module__checkbox__AVGTi",qa="styles-module__checkmark__xfDiG",Na="styles-module__label__56KkR",xa="styles-module__checkIcon__B246P",Ca="styles-module__indeterminateIcon__L9Kf-",F2={checkboxWrapper:wa,checkbox:_a,checkmark:qa,label:Na,checkIcon:xa,indeterminateIcon:Ca};function ja({label:t,indeterminate:a=!1,className:i="",...l}){const s=z.useRef(null);return z.useEffect(()=>{s.current&&(s.current.indeterminate=a)},[a]),e.jsxs("label",{className:`${F2.checkboxWrapper} ${i}`,children:[e.jsx("input",{ref:s,type:"checkbox",className:F2.checkbox,...l}),e.jsx("span",{className:F2.checkmark,children:a?e.jsx("span",{className:F2.indeterminateIcon,children:"−"}):e.jsx("span",{className:F2.checkIcon,children:"✓"})}),t&&e.jsx("span",{className:F2.label,children:t})]})}const La="styles-module__combobox__YH03u",Za="styles-module__inputWrapper__UsIYk",Ha="styles-module__input__F-6BL",Va="styles-module__disabled__UR9gQ",$a="styles-module__arrow__LV12a",Sa="styles-module__open__-bJ28",Ba="styles-module__menu__twpPT",Ta="styles-module__option__v6IYz",Ia="styles-module__optionDisabled__vOMRI",Pa="styles-module__highlighted__pxy-X",Aa="styles-module__noResults__-sgTv",k2={combobox:La,inputWrapper:Za,input:Ha,disabled:Va,arrow:$a,open:Sa,menu:Ba,option:Ta,optionDisabled:Ia,highlighted:Pa,noResults:Aa};function Da({options:t,value:a,defaultValue:i="",onChange:l,placeholder:s="Select or type...",disabled:r=!1,className:h="",allowCustomValue:n=!1,filterFunction:f}){const[o,m]=z.useState(i),[c,q]=z.useState(!1),[g,y]=z.useState(-1),p=z.useRef(null),Z=z.useRef(null),w=z.useRef(null),k=a!==void 0,N=k?a:o,d=f||((v,M)=>v.label.toLowerCase().includes(M.toLowerCase())),b=t.filter(v=>d(v,N));z.useEffect(()=>{const v=M=>{w.current&&!w.current.contains(M.target)&&q(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),z.useEffect(()=>{if(c&&g>=0&&Z.current){const v=Z.current.children[g];v&&v.scrollIntoView({block:"nearest"})}},[g,c]);const V=v=>{const M=v.target.value;k||m(M),l?.(M),q(!0),y(-1)},j=v=>{if(v.disabled)return;const M=v.value;k||m(v.label),l?.(M),q(!1),y(-1),p.current?.blur()},T=v=>{if(!r)switch(v.key){case"ArrowDown":v.preventDefault(),q(!0),y(M=>{const x=b.length-1;if(M>=x)return x;let B=M+1;for(;B<=x&&b[B].disabled;)B++;return B<=x?B:M});break;case"ArrowUp":v.preventDefault(),y(M=>{if(M<=0)return-1;let x=M-1;for(;x>=0&&b[x].disabled;)x--;return x>=0?x:-1});break;case"Enter":v.preventDefault(),c&&g>=0?j(b[g]):n&&(l?.(N),q(!1));break;case"Escape":v.preventDefault(),q(!1),y(-1),p.current?.blur();break;case"Tab":q(!1);break}},L=()=>{r||q(!0)},C=t.find(v=>v.value===N),$=C?C.label:N;return e.jsxs("div",{ref:w,className:`${k2.combobox} ${h}`,children:[e.jsxs("div",{className:k2.inputWrapper,children:[e.jsx("input",{ref:p,type:"text",className:`${k2.input} ${r?k2.disabled:""}`,value:$,onChange:V,onKeyDown:T,onFocus:L,placeholder:s,disabled:r,autoComplete:"off",role:"combobox","aria-expanded":c,"aria-autocomplete":"list","aria-controls":"combobox-listbox"}),e.jsx("span",{className:`${k2.arrow} ${c?k2.open:""}`,children:"▼"})]}),c&&b.length>0&&e.jsx("ul",{ref:Z,id:"combobox-listbox",className:k2.menu,role:"listbox",children:b.map((v,M)=>e.jsx("li",{className:`${k2.option} ${g===M?k2.highlighted:""} ${v.disabled?k2.optionDisabled:""}`,onClick:()=>j(v),role:"option","aria-selected":v.value===N,"aria-disabled":v.disabled,children:v.label},v.value))}),c&&b.length===0&&e.jsx("div",{className:k2.noResults,children:n?"Press Enter to use custom value":"No results found"})]})}const Ga="styles-module__calendar__ksu3Z",Ea="styles-module__header__UaHj3",Ra="styles-module__navButton__279oK",Wa="styles-module__monthYear__RKQOf",Fa="styles-module__month__w3ai-",Ua="styles-module__year__VN2vF",Oa="styles-module__weekdays__U3vpO",Xa="styles-module__weekday__g2nb6",Ka="styles-module__days__XPYYB",Ya="styles-module__week__5lMWI",Ja="styles-module__weekNumber__Hgwi-",Qa="styles-module__day__lj7zf",el="styles-module__currentMonth__yCa9a",tl="styles-module__otherMonth__ppTX4",al="styles-module__today__DSndt",ll="styles-module__dayNumber__ifIP9",sl="styles-module__selected__VqCiG",rl="styles-module__highlighted__QBnL-",il="styles-module__disabled__WJUmV",ol="styles-module__eventIndicators__SuOYU",cl="styles-module__eventDot__1QFLK",hl="styles-module__eventPulse__1lkEF",fl="styles-module__footer__rraAV",dl="styles-module__todayButton__661G0",nl="styles-module__minimal__5Zdyf",ml="styles-module__modern__2J5kk",O={calendar:Ga,header:Ea,navButton:Ra,monthYear:Wa,month:Fa,year:Ua,weekdays:Oa,weekday:Xa,days:Ka,week:Ya,weekNumber:Ja,day:Qa,currentMonth:el,otherMonth:tl,today:al,dayNumber:ll,selected:sl,highlighted:rl,disabled:il,eventIndicators:ol,eventDot:cl,eventPulse:hl,footer:fl,todayButton:dl,minimal:nl,modern:ml},ul=["January","February","March","April","May","June","July","August","September","October","November","December"],n0=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function k0({value:t,onChange:a,onClick:i,minDate:l,maxDate:s,events:r=[],highlightedDates:h=[],disabledDates:n=[],showWeekNumbers:f=!1,firstDayOfWeek:o=0,variant:m="default",className:c="",...q}){const[g,y]=z.useState(t||new Date),[p,Z]=z.useState(t||null),[w,k]=z.useState(t||new Date),N=z.useMemo(()=>o===1?[...n0.slice(1),n0[0]]:n0,[o]),_=(u,H)=>u.getDate()===H.getDate()&&u.getMonth()===H.getMonth()&&u.getFullYear()===H.getFullYear(),d=u=>l&&u<l||s&&u>s?!0:n.some(H=>_(u,H)),b=u=>h.some(H=>_(u,H)),V=u=>r.filter(H=>_(H.date,u)),j=(u,H)=>new Date(u,H+1,0).getDate(),T=(u,H)=>{const R=new Date(u,H,1).getDay();return o===1?R===0?6:R-1:R},L=u=>{const H=new Date(u.getFullYear(),0,1),R=(u.getTime()-H.getTime())/864e5;return Math.ceil((R+H.getDay()+1)/7)},C=z.useMemo(()=>{const u=w.getFullYear(),H=w.getMonth(),R=j(u,H),s2=T(u,H),r2=[],R2=j(u,H-1);for(let i2=s2-1;i2>=0;i2--){const h0=H===0?11:H-1,f0=H===0?u-1:u;r2.push(new Date(f0,h0,R2-i2))}for(let i2=1;i2<=R;i2++)r2.push(new Date(u,H,i2));const t0=42-r2.length;for(let i2=1;i2<=t0;i2++){const h0=H===11?0:H+1,f0=H===11?u+1:u;r2.push(new Date(f0,h0,i2))}return r2},[w,o]),$=()=>{const u=new Date(w.getFullYear(),w.getMonth()-1);k(u),a?.(u)},v=()=>{const u=new Date(w.getFullYear(),w.getMonth()+1);k(u),a?.(u)},M=u=>{if(d(u))return;Z(u);const H=V(u);i?.(H)},x=()=>{const u=new Date,H=w.getMonth()!==u.getMonth()||w.getFullYear()!==u.getFullYear();k(u),Z(u),H&&a?.(u);const R=V(u);i?.(R)},B=u=>_(u,new Date),P=u=>p&&_(u,p),D=u=>u.getMonth()===w.getMonth(),S=[];for(let u=0;u<C.length;u+=7)S.push(C.slice(u,u+7));return e.jsxs("div",{className:`${O.calendar} ${O[m]} ${c}`,...q,children:[e.jsxs("div",{className:O.header,children:[e.jsx("button",{type:"button",className:O.navButton,onClick:$,"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:O.monthYear,children:[e.jsx("span",{className:O.month,children:ul[w.getMonth()]}),e.jsx("span",{className:O.year,children:w.getFullYear()})]}),e.jsx("button",{type:"button",className:O.navButton,onClick:v,"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:O.weekdays,children:[f&&e.jsx("div",{className:O.weekNumber,children:"Wk"}),N.map(u=>e.jsx("div",{className:O.weekday,children:u},u))]}),e.jsx("div",{className:O.days,children:S.map((u,H)=>e.jsxs("div",{className:O.week,children:[f&&u[0]&&e.jsx("div",{className:O.weekNumber,children:L(u[0])}),u.map((R,s2)=>{if(!R)return e.jsx("div",{className:O.day},s2);const r2=V(R),R2=b(R),t0=d(R);return e.jsxs("button",{type:"button",className:`${O.day} ${D(R)?O.currentMonth:O.otherMonth} ${B(R)?O.today:""} ${P(R)?O.selected:""} ${R2?O.highlighted:""} ${t0?O.disabled:""}`,onClick:()=>M(R),disabled:t0,"aria-label":R.toDateString(),children:[e.jsx("span",{className:O.dayNumber,children:R.getDate()}),r2.length>0&&e.jsx("div",{className:O.eventIndicators,children:r2.slice(0,3).map(i2=>e.jsx("span",{className:O.eventDot,style:{backgroundColor:i2.color||"#6366f1"},title:i2.title},i2.id))})]},s2)})]},H))}),e.jsx("div",{className:O.footer,children:e.jsx("button",{type:"button",className:O.todayButton,onClick:x,children:"Today"})})]})}const vl="styles-module__datePicker__uLxOg",pl="styles-module__input__0m5L3",kl="styles-module__disabled__T10FG",zl="styles-module__value__6l7A3",gl="styles-module__icons__-b7ea",bl="styles-module__clearIcon__ELMFy",Ml="styles-module__icon__0-EVW",yl="styles-module__popover__ej0Pl",V2={datePicker:vl,input:pl,disabled:kl,value:zl,icons:gl,clearIcon:bl,icon:Ml,popover:yl};function wl({value:t,onChange:a,minDate:i,maxDate:l,placeholder:s="Select a date",disabled:r=!1,variant:h="default",className:n="",...f}){const[o,m]=z.useState(!1),c=z.useRef(null);z.useEffect(()=>{const p=Z=>{c.current&&!c.current.contains(Z.target)&&m(!1)};return o&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[o]);const q=p=>{a?.(p),m(!1)},g=p=>{p.stopPropagation(),a?.(null)},y=p=>p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.jsxs("div",{className:`${V2.datePicker} ${n}`,ref:c,...f,children:[e.jsxs("button",{type:"button",className:`${V2.input} ${r?V2.disabled:""}`,onClick:()=>!r&&m(!o),disabled:r,children:[e.jsx("span",{className:V2.value,children:t?y(t):s}),e.jsxs("span",{className:V2.icons,children:[t&&!r&&e.jsx("span",{className:V2.clearIcon,onClick:g,children:"×"}),e.jsx("span",{className:V2.icon,children:"📅"})]})]}),o&&e.jsx("div",{className:V2.popover,children:e.jsx(k0,{value:t,onChange:q,minDate:i,maxDate:l,variant:h})})]})}const _l="styles-module__dateRangePicker__2-ckk",ql="styles-module__input__yirN1",Nl="styles-module__disabled__88Oht",xl="styles-module__value__rLHDv",Cl="styles-module__icons__Ceazb",jl="styles-module__clearIcon__XoOWV",Ll="styles-module__icon__k-Xdp",Zl="styles-module__popover__PVw7h",Hl="styles-module__rangeInfo__qCqH0",x2={dateRangePicker:_l,input:ql,disabled:Nl,value:xl,icons:Cl,clearIcon:jl,icon:Ll,popover:Zl,rangeInfo:Hl};function Vl({value:t,onChange:a,minDate:i,maxDate:l,className:s="",placeholder:r="Select date range",disabled:h=!1,variant:n="default"}){const[f,o]=z.useState(!1),[m,c]=z.useState({start:null,end:null}),[q,g]=z.useState(!1),y=z.useRef(null);z.useEffect(()=>{const _=d=>{y.current&&!y.current.contains(d.target)&&(o(!1),c({start:null,end:null}),g(!1))};return f&&document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[f]);const p=_=>{if(!q)c({start:_,end:null}),g(!0);else{const d=m.start,b=_;d>b?a?.({start:b,end:d}):a?.({start:d,end:b}),o(!1),c({start:null,end:null}),g(!1)}},Z=_=>{_.stopPropagation(),a?.({start:null,end:null}),c({start:null,end:null}),g(!1)},w=_=>_.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),k=()=>t?.start&&t?.end?`${w(t.start)} → ${w(t.end)}`:t?.start?w(t.start):r,N=()=>{const _=[],d=m.start||t?.start,b=m.end||t?.end;if(d&&b){const V=new Date(d);for(;V<=b;)_.push(new Date(V)),V.setDate(V.getDate()+1)}return _};return e.jsxs("div",{className:`${x2.dateRangePicker} ${s}`,ref:y,children:[e.jsxs("button",{type:"button",className:`${x2.input} ${h?x2.disabled:""}`,onClick:()=>!h&&o(!f),disabled:h,children:[e.jsx("span",{className:x2.value,children:k()}),e.jsxs("span",{className:x2.icons,children:[(t?.start||t?.end)&&!h&&e.jsx("span",{className:x2.clearIcon,onClick:Z,children:"×"}),e.jsx("span",{className:x2.icon,children:"📅"})]})]}),f&&e.jsxs("div",{className:x2.popover,children:[e.jsx("div",{className:x2.rangeInfo,children:q?"Select end date":"Select start date"}),e.jsx(k0,{value:m.start||t?.start||void 0,onChange:p,minDate:i,maxDate:l,highlightedDates:N(),variant:n})]})]})}const $l="styles-module__divider__I6KTc",Sl="styles-module__horizontal__rrjPy",Bl="styles-module__solid__LhHPX",Tl="styles-module__dashed__2ZL2z",Il="styles-module__dotted__N8tLr",Pl="styles-module__line__ff0dO",Al="styles-module__label__izE2E",Dl="styles-module__vertical__RBm03",U2={divider:$l,horizontal:Sl,solid:Bl,dashed:Tl,dotted:Il,line:Pl,label:Al,vertical:Dl};function Gl({orientation:t="horizontal",variant:a="solid",label:i,className:l=""}){const s=`${U2.divider} ${U2[t]} ${U2[a]} ${l}`;return i&&t==="horizontal"?e.jsxs("div",{className:s,children:[e.jsx("span",{className:U2.line}),e.jsx("span",{className:U2.label,children:i}),e.jsx("span",{className:U2.line})]}):e.jsx("div",{className:s})}const El="styles-module__dropdown__uiKSF",Rl="styles-module__trigger__tVV7I",Wl="styles-module__disabled__Xy0oo",Fl="styles-module__selected__RnAL-",Ul="styles-module__placeholder__aePOZ",Ol="styles-module__arrow__QYBcO",Xl="styles-module__open__huthl",Kl="styles-module__menu__Fvg4d",Yl="styles-module__option__OLwBz",Jl="styles-module__optionDisabled__n9Gdm",Ql="styles-module__active__W7XbV",z2={dropdown:El,trigger:Rl,disabled:Wl,selected:Fl,placeholder:Ul,arrow:Ol,open:Xl,menu:Kl,option:Yl,optionDisabled:Jl,active:Ql};function es({options:t,value:a,onChange:i,placeholder:l="Select an option",disabled:s=!1,className:r=""}){const[h,n]=z.useState(!1),[f,o]=z.useState(a||""),m=z.useRef(null);z.useEffect(()=>{const y=p=>{m.current&&!m.current.contains(p.target)&&n(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const c=y=>{s||(o(y),n(!1),i?.(y))},q=t.find(y=>y.value===f),g=q?.label||l;return e.jsxs("div",{className:`${z2.dropdown} ${r}`,ref:m,children:[e.jsxs("button",{className:`${z2.trigger} ${s?z2.disabled:""}`,onClick:()=>!s&&n(!h),disabled:s,type:"button",children:[e.jsx("span",{className:q?z2.selected:z2.placeholder,children:g}),e.jsx("span",{className:`${z2.arrow} ${h?z2.open:""}`,children:"▼"})]}),h&&e.jsx("div",{className:z2.menu,children:t.map(y=>e.jsx("div",{className:`${z2.option} ${y.value===f?z2.active:""} ${y.disabled?z2.optionDisabled:""}`,onClick:()=>!y.disabled&&c(y.value),children:y.label},y.value))})]})}const ts="styles-module__filePicker__mq8yj",as="styles-module__dropzone__DdFZi",ls="styles-module__disabled__PEgD4",ss="styles-module__icon__lgApu",rs="styles-module__text__Djodx",is="styles-module__input__3Edc4",os="styles-module__fileList__mG9O1",cs="styles-module__fileItem__NB3Uq",hs="styles-module__processing__R-ZHY",fs="styles-module__uploaded__gJ1od",ds="styles-module__failed__MlKNj",ns="styles-module__fileIcon__IUNOU",ms="styles-module__fileName__E1M5I",us="styles-module__fileSize__Yiown",vs="styles-module__error__KmdmE",ps="styles-module__remove__JiGmS",h2={filePicker:ts,dropzone:as,disabled:ls,icon:ss,text:rs,input:is,fileList:os,fileItem:cs,processing:hs,uploaded:fs,failed:ds,fileIcon:ns,fileName:ms,fileSize:us,error:vs,remove:ps};function ks({accept:t,multiple:a=!1,maxSize:i,disabled:l=!1,onChange:s,onUpload:r,className:h=""}){const[n,f]=z.useState([]),o=z.useRef(null),m=async p=>{if(!p||l)return;const Z=Array.from(p).map(w=>i&&w.size>i?{file:w,status:"failed",error:"File too large"}:{file:w,status:"idle"});if(f(w=>[...w,...Z]),s?.(Z),r)for(const w of Z)w.status!=="failed"&&await c(w)},c=async p=>{q(p.file.name,"processing");try{await r?.(p.file),q(p.file.name,"uploaded")}catch(Z){q(p.file.name,"failed",Z.message)}},q=(p,Z,w)=>{f(k=>k.map(N=>N.file.name===p?{...N,status:Z,error:w}:N))},g=p=>{f(Z=>Z.filter(w=>w.file.name!==p))},y=p=>{switch(p){case"processing":return"⏳";case"uploaded":return"✓";case"failed":return"✗";default:return"📄"}};return e.jsxs("div",{className:`${h2.filePicker} ${h}`,children:[e.jsxs("div",{className:`${h2.dropzone} ${l?h2.disabled:""}`,onClick:()=>!l&&o.current?.click(),children:[e.jsx("span",{className:h2.icon,children:"📁"}),e.jsx("span",{className:h2.text,children:"Click to select files"})]}),e.jsx("input",{ref:o,type:"file",accept:t,multiple:a,disabled:l,onChange:p=>m(p.target.files),className:h2.input}),n.length>0&&e.jsx("div",{className:h2.fileList,children:n.map((p,Z)=>e.jsxs("div",{className:`${h2.fileItem} ${h2[p.status]}`,children:[e.jsx("span",{className:h2.fileIcon,children:y(p.status)}),e.jsx("span",{className:h2.fileName,children:p.file.name}),e.jsxs("span",{className:h2.fileSize,children:[(p.file.size/1024).toFixed(1)," KB"]}),p.error&&e.jsx("span",{className:h2.error,children:p.error}),e.jsx("button",{className:h2.remove,onClick:()=>g(p.file.name),children:"×"})]},`${p.file.name}-${Z}`))})]})}const zs="styles-module__fileManager__kksK1",gs="styles-module__header__K6B4B",bs="styles-module__topMenu__WA959",Ms="styles-module__menuButton__NZCtL",ys="styles-module__breadcrumbContainer__Yu6a5",ws="styles-module__breadcrumbs__QRPz8",_s="styles-module__breadcrumbLink__tRa-0",qs="styles-module__breadcrumbCurrent__N239O",Ns="styles-module__breadcrumbSeparator__-a-y3",xs="styles-module__content__5te13",Cs="styles-module__fileList__zafmG",js="styles-module__fileItem__jMUUT",Ls="styles-module__folder__ZZu4F",Zs="styles-module__fileIcon__H84rk",Hs="styles-module__file__kRLqb",Vs="styles-module__fileThumbnail__j49mz",$s="styles-module__fileInfo__tOxJn",Ss="styles-module__fileName__CnClX",Bs="styles-module__fileMeta__qjEyj",Ts="styles-module__metaSeparator__xr8Wl",Is="styles-module__emptyState__dvy4f",Q={fileManager:zs,header:gs,topMenu:bs,menuButton:Ms,breadcrumbContainer:ys,breadcrumbs:ws,breadcrumbLink:_s,breadcrumbCurrent:qs,breadcrumbSeparator:Ns,content:xs,fileList:Cs,fileItem:js,folder:Ls,fileIcon:Zs,file:Hs,fileThumbnail:Vs,fileInfo:$s,fileName:Ss,fileMeta:Bs,metaSeparator:Ts,emptyState:Is},Ps="styles-module__contextMenu__GRBVO",As="styles-module__menuItem__RSaTZ",Ds="styles-module__disabled__bw0t-",Gs="styles-module__danger__KAIXk",Es="styles-module__menuItemContent__-bnOm",Rs="styles-module__icon__WnkZL",Ws="styles-module__label__HqC1u",Fs="styles-module__menuItemRight__NVcQN",Us="styles-module__shortcut__4Ry6D",Os="styles-module__submenuIndicator__glhiH",Xs="styles-module__separator__VcMO9",Ks="styles-module__submenu__HTiQG",m2={contextMenu:Ps,menuItem:As,disabled:Ds,danger:Gs,menuItemContent:Es,icon:Rs,label:Ws,menuItemRight:Fs,shortcut:Us,submenuIndicator:Os,separator:Xs,submenu:Ks};function p0({items:t,children:a,className:i="",disabled:l=!1}){const[s,r]=z.useState(!1),[h,n]=z.useState({x:0,y:0}),[f,o]=z.useState({}),m=z.useRef(null),c=z.useRef(null),q=k=>{if(l)return;k.preventDefault(),k.stopPropagation();const N=k.clientX,_=k.clientY,d=240,b=t.length*40+16,V=window.innerWidth,j=window.innerHeight,T=N+d>V?V-d-10:N,L=_+b>j?j-b-10:_;n({x:T,y:L}),r(!0)},g=k=>{m.current&&!m.current.contains(k.target)&&c.current&&!c.current.contains(k.target)&&(r(!1),o({}))};z.useEffect(()=>{if(s)return document.addEventListener("mousedown",g),document.addEventListener("contextmenu",g),()=>{document.removeEventListener("mousedown",g),document.removeEventListener("contextmenu",g)}},[s]);const y=k=>{k.disabled||(k.submenu?o(N=>({...N,[k.id]:!N[k.id]})):(k.onClick?.(),r(!1),o({})))},p=k=>{o(N=>({...N,[k]:!0}))},Z=k=>{o(N=>({...N,[k]:!1}))},w=(k,N=0)=>{const _=k.submenu&&k.submenu.length>0,d=f[k.id];return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:`${m2.menuItem} ${k.disabled?m2.disabled:""} ${k.danger?m2.danger:""}`,onClick:()=>y(k),onMouseEnter:()=>_&&p(k.id),onMouseLeave:()=>_&&Z(k.id),style:{paddingLeft:`${.75+N*.5}rem`},children:[e.jsxs("div",{className:m2.menuItemContent,children:[k.icon&&e.jsx("span",{className:m2.icon,children:k.icon}),e.jsx("span",{className:m2.label,children:k.label})]}),e.jsxs("div",{className:m2.menuItemRight,children:[k.shortcut&&e.jsx("span",{className:m2.shortcut,children:k.shortcut}),_&&e.jsx("span",{className:m2.submenuIndicator,children:"›"})]}),_&&d&&e.jsx("div",{className:m2.submenu,children:k.submenu.map(b=>w(b,N+1))})]}),k.separator&&e.jsx("div",{className:m2.separator})]},k.id)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:c,onContextMenu:q,className:i,style:{display:"inline-block"},children:a}),s&&e.jsx("div",{ref:m,className:m2.contextMenu,style:{left:`${h.x}px`,top:`${h.y}px`},children:t.map(k=>w(k))})]})}function Ys({items:t,topMenuItems:a=[],onItemClick:i,onItemDoubleClick:l,onBreadcrumbClick:s,onBreadcrumbDoubleClick:r,getContextMenuItems:h,className:n=""}){const[f,o]=z.useState([]),m=z.useRef(null),c=()=>{if(f.length===0)return t;let d=t;for(const b of f){const V=d.find(j=>j.id===b||j.name===b);if(V?.type!=="folder"||!V.children?.length)return[];d=V.children}return d},q=(d,b)=>{if(d.type==="folder"){const V=[...b,d.id];o(V)}i?.(d,b)},g=(d,b)=>{if(d.type==="folder"){const V=[...b,d.id];o(V)}l?.(d,b)},y=d=>{const b=f.slice(0,d+1);o(b),s?.(b,d)},p=d=>{const b=f.slice(0,d+1);o(b),r?.(b,d)},w=(()=>{const d=[{label:"Root",pathIndex:-1}];let b=t;for(let V=0;V<f.length;V++){const j=f[V],T=b.find(L=>L.id===j||L.name===j);if(T)if(d.push({label:T.name,pathIndex:V}),T.type==="folder"&&T.children)b=T.children;else break;else break}return d})(),k=(d,b=f)=>[...b,d.id],N=(d,b=f)=>{const V=k(d,b),j=h?h(d,V):[],T=[{id:"open",label:"Open",onClick:()=>q(d,b)},{id:"rename",label:"Rename",onClick:()=>console.log("Rename",d.name)},{id:"delete",label:"Delete",danger:!0,onClick:()=>console.log("Delete",d.name)}],L=j.length>0?j:T,C=x=>x?x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`:"",$=x=>x?x.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",v=()=>d.icon?e.jsx("div",{className:Q.fileIcon,children:d.icon}):d.type==="file"&&d.thumbnail?e.jsx("div",{className:Q.fileThumbnail,children:e.jsx("img",{src:d.thumbnail,alt:d.name})}):e.jsx("div",{className:Q.fileIcon,children:d.type==="folder"?e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}):e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),M=e.jsxs("button",{type:"button",className:`${Q.fileItem} ${d.type==="folder"?Q.folder:Q.file}`,onClick:()=>q(d,b),onDoubleClick:()=>g(d,b),children:[v(),e.jsxs("div",{className:Q.fileInfo,children:[e.jsx("div",{className:Q.fileName,children:d.name}),d.type==="file"&&(d.size||d.modified)&&e.jsxs("div",{className:Q.fileMeta,children:[d.size&&e.jsx("span",{children:C(d.size)}),d.size&&d.modified&&e.jsx("span",{className:Q.metaSeparator,children:"•"}),d.modified&&e.jsx("span",{children:$(d.modified)})]})]})]});return L.length>0?e.jsx(p0,{items:L,children:M},d.id):e.jsx(z.Fragment,{children:M},d.id)},_=c();return e.jsxs("div",{className:`${Q.fileManager} ${n}`,ref:m,children:[e.jsxs("div",{className:Q.header,children:[a.length>0&&e.jsx("div",{className:Q.topMenu,children:e.jsx(p0,{items:a,children:e.jsx("button",{className:Q.menuButton,type:"button","aria-label":"Menu",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})})})}),e.jsx("div",{className:Q.breadcrumbContainer,children:e.jsx("nav",{className:Q.breadcrumbs,"aria-label":"Breadcrumb",children:w.map((d,b)=>{const V=b===w.length-1,j=()=>{d.pathIndex===-1?(o([]),s?.([],-1)):y(d.pathIndex)},T=()=>{d.pathIndex===-1?(o([]),r?.([],-1)):p(d.pathIndex)};return e.jsxs(z.Fragment,{children:[V?e.jsx("span",{className:Q.breadcrumbCurrent,children:d.label}):e.jsx("button",{type:"button",className:Q.breadcrumbLink,onClick:j,onDoubleClick:T,children:d.label}),!V&&e.jsx("span",{className:Q.breadcrumbSeparator,children:"/"})]},`breadcrumb-${d.pathIndex}-${d.label}`)})})})]}),e.jsx("div",{className:Q.content,children:_.length===0?e.jsx("div",{className:Q.emptyState,children:e.jsx("p",{children:"This folder is empty"})}):e.jsx("div",{className:Q.fileList,children:_.map(d=>N(d,f))})})]})}const Js="styles-module__header__9QAJF",Qs="styles-module__sticky__wm-sd",e6="styles-module__content__ZPdW7",t6="styles-module__brand__-0bx7",a6="styles-module__logo__3KpY5",l6="styles-module__title__yDhEG",s6="styles-module__nav__6MmHf",r6="styles-module__actions__yTPsJ",$2={header:Js,sticky:Qs,content:e6,brand:t6,logo:a6,title:l6,nav:s6,actions:r6};function i6({logo:t,title:a,children:i,actions:l,sticky:s=!1,className:r=""}){return e.jsx("header",{className:`${$2.header} ${s?$2.sticky:""} ${r}`,children:e.jsxs("div",{className:$2.content,children:[(t||a)&&e.jsxs("div",{className:$2.brand,children:[t&&e.jsx("div",{className:$2.logo,children:t}),a&&e.jsx("h1",{className:$2.title,children:a})]}),i&&e.jsx("div",{className:$2.nav,children:i}),l&&e.jsx("div",{className:$2.actions,children:l})]})})}const o6="styles-module__inputContainer__KSDK-",c6="styles-module__fullWidth__rLaUj",h6="styles-module__label__-uPCz",f6="styles-module__wrapper__JTZMt",d6="styles-module__input__KRJnF",n6="styles-module__withIcon__mikvP",m6="styles-module__disabled__NjJFs",u6="styles-module__sm__cr6Ko",v6="styles-module__lg__geHP2",p6="styles-module__error__UCrFp",k6="styles-module__success__fKUT8",z6="styles-module__icon__qopq-",g6="styles-module__helperText__9ULK8",b6="styles-module__errorText__JTsOi",u2={inputContainer:o6,fullWidth:c6,label:h6,wrapper:f6,input:d6,withIcon:n6,disabled:m6,sm:u6,lg:v6,error:p6,success:k6,icon:z6,helperText:g6,errorText:b6},M0=z.forwardRef(({label:t,error:a,helperText:i,size:l="md",variant:s="default",icon:r,fullWidth:h=!1,className:n="",disabled:f=!1,...o},m)=>{const c=a?"error":s,q=`${u2.inputContainer} ${h?u2.fullWidth:""} ${n}`,g=`${u2.input} ${u2[l]} ${u2[c]} ${r?u2.withIcon:""} ${f?u2.disabled:""}`;return e.jsxs("div",{className:q,children:[t&&e.jsx("label",{className:u2.label,children:t}),e.jsxs("div",{className:u2.wrapper,children:[r&&e.jsx("span",{className:u2.icon,children:r}),e.jsx("input",{ref:m,className:g,disabled:f,...o})]}),(a||i)&&e.jsx("span",{className:`${u2.helperText} ${a?u2.errorText:""}`,children:a||i})]})});M0.displayName="Input";const M6="styles-module__label__QjEAd",y6="styles-module__disabled__yJ4NK",w6="styles-module__sm__KnRgV",_6="styles-module__md__z8a54",q6="styles-module__lg__KOzy-",N6="styles-module__required__ZBqbG",l0={label:M6,disabled:y6,sm:w6,md:_6,lg:q6,required:N6};function x6({size:t="md",required:a=!1,disabled:i=!1,className:l="",children:s,...r}){return e.jsxs("label",{className:`${l0.label} ${l0[t]} ${i?l0.disabled:""} ${l}`,...r,children:[s,a&&e.jsx("span",{className:l0.required,children:"*"})]})}const C6="styles-module__list__i-PH3",j6="styles-module__dividers__klcR-",L6="styles-module__item__hLR7A",Z6="styles-module__hoverable__6FbJF",H6="styles-module__clickable__ahnDb",V6="styles-module__disabled__W5Z3Y",$6="styles-module__icon__fSr06",S6="styles-module__content__ujdaE",B6="styles-module__title__0nMBZ",T6="styles-module__subtitle__dLJYu",I6="styles-module__badge__dwlRk",g2={list:C6,dividers:j6,item:L6,hoverable:Z6,clickable:H6,disabled:V6,icon:$6,content:S6,title:B6,subtitle:T6,badge:I6};function P6({items:t,hoverable:a=!1,dividers:i=!1,className:l=""}){return e.jsx("ul",{className:`${g2.list} ${i?g2.dividers:""} ${l}`,children:t.map(s=>e.jsxs("li",{className:`${g2.item} ${a&&!s.disabled?g2.hoverable:""} ${s.disabled?g2.disabled:""} ${s.onClick&&!s.disabled?g2.clickable:""}`,onClick:s.disabled?void 0:s.onClick,children:[s.icon&&e.jsx("span",{className:g2.icon,children:s.icon}),e.jsxs("div",{className:g2.content,children:[e.jsx("span",{className:g2.title,children:s.title}),s.subtitle&&e.jsx("span",{className:g2.subtitle,children:s.subtitle})]}),s.badge&&e.jsx("span",{className:g2.badge,children:e.jsx(o0,{variant:s.badgeVariant||"default",size:"sm",children:s.badge})})]},s.id))})}const A6="styles-module__overlay__Ty-He",D6="styles-module__fadeIn__vywQ8",G6="styles-module__modal__bC015",E6="styles-module__slideUp__i-uri",R6="styles-module__sm__HasCZ",W6="styles-module__md__y-51k",F6="styles-module__lg__bXotd",U6="styles-module__xl__wKYbR",O6="styles-module__header__agEZy",X6="styles-module__title__91HGo",K6="styles-module__closeButton__u-naO",Y6="styles-module__content__1xlis",J6="styles-module__footer__m3SbZ",S2={overlay:A6,fadeIn:D6,modal:G6,slideUp:E6,sm:R6,md:W6,lg:F6,xl:U6,header:O6,title:X6,closeButton:K6,content:Y6,footer:J6};function Q6({isOpen:t,onClose:a,title:i,children:l,footer:s,size:r="md",closeOnOverlayClick:h=!0,showCloseButton:n=!0,className:f=""}){return z.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),z.useEffect(()=>{const o=m=>{m.key==="Escape"&&t&&a()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[t,a]),t?e.jsx("div",{className:S2.overlay,onClick:h?a:void 0,children:e.jsxs("div",{className:`${S2.modal} ${S2[r]} ${f}`,onClick:o=>o.stopPropagation(),children:[(i||n)&&e.jsxs("div",{className:S2.header,children:[i&&e.jsx("h2",{className:S2.title,children:i}),n&&e.jsx("button",{className:S2.closeButton,onClick:a,type:"button",children:"×"})]}),e.jsx("div",{className:S2.content,children:l}),s&&e.jsx("div",{className:S2.footer,children:s})]})}):null}const er="styles-module__pagination__P-TuL",tr="styles-module__pageButton__saWQq",ar="styles-module__active__6G9dp",lr="styles-module__dots__HNsj1",B2={pagination:er,pageButton:tr,active:ar,dots:lr};function sr({currentPage:t,totalPages:a,onPageChange:i,showFirstLast:l=!0,siblingCount:s=1,className:r=""}){const h=(c,q)=>Array.from({length:q-c+1},(g,y)=>c+y),f=(()=>{const c=s+5;if(a<=c)return h(1,a);const q=Math.max(t-s,1),g=Math.min(t+s,a),y=q>2,p=g<a-1;return!y&&p?[...h(1,3+2*s),"...",a]:y&&!p?[1,"...",...h(a-(2+2*s),a)]:[1,"...",...h(q,g),"...",a]})(),o=()=>{t>1&&i(t-1)},m=()=>{t<a&&i(t+1)};return e.jsxs("nav",{className:`${B2.pagination} ${r}`,children:[l&&e.jsx("button",{className:B2.pageButton,onClick:()=>i(1),disabled:t===1,children:"«"}),e.jsx("button",{className:B2.pageButton,onClick:o,disabled:t===1,children:"‹"}),f.map((c,q)=>c==="..."?e.jsx("span",{className:B2.dots,children:"..."},`dots-${q}`):e.jsx("button",{className:`${B2.pageButton} ${c===t?B2.active:""}`,onClick:()=>i(c),children:c},c)),e.jsx("button",{className:B2.pageButton,onClick:m,disabled:t===a,children:"›"}),l&&e.jsx("button",{className:B2.pageButton,onClick:()=>i(a),disabled:t===a,children:"»"})]})}const rr="styles-module__container__u4q5n",ir="styles-module__progressBar__wAUjD",or="styles-module__sm__ZBiyl",cr="styles-module__md__oXZzu",hr="styles-module__lg__JmNO0",fr="styles-module__fill__bDflZ",dr="styles-module__success__drT36",nr="styles-module__warning__p-mHQ",mr="styles-module__error__ecpJB",ur="styles-module__info__vfjga",vr="styles-module__striped__El9o5",pr="styles-module__animated__9FN7u",kr="styles-module__progress-stripes__etVVj",zr="styles-module__label__TpB8Q",T2={container:rr,progressBar:ir,sm:or,md:cr,lg:hr,fill:fr,default:"styles-module__default__7qIAE",success:dr,warning:nr,error:mr,info:ur,striped:vr,animated:pr,"progress-stripes":"styles-module__progress-stripes__etVVj",progressStripes:kr,label:zr};function gr({value:t,max:a=100,variant:i="default",size:l="md",showLabel:s=!1,label:r,animated:h=!1,striped:n=!1,className:f=""}){const o=Math.min(Math.max(t/a*100,0),100),m=r||`${Math.round(o)}%`;return e.jsx("div",{className:`${T2.container} ${f}`,children:e.jsx("div",{className:`${T2.progressBar} ${T2[l]}`,children:e.jsx("div",{className:`${T2.fill} ${T2[i]} ${n?T2.striped:""} ${h?T2.animated:""}`,style:{width:`${o}%`},children:s&&e.jsx("span",{className:T2.label,children:m})})})})}const br="styles-module__radioButton__30HVZ",Mr="styles-module__disabled__TuSU6",yr="styles-module__input__-NkgJ",wr="styles-module__radio__dKOL5",_r="styles-module__label__M94so",J2={radioButton:br,disabled:Mr,input:yr,radio:wr,label:_r};function qr({label:t,value:a,name:i,checked:l=!1,disabled:s=!1,onChange:r,className:h="",...n}){return e.jsxs("label",{className:`${J2.radioButton} ${s?J2.disabled:""} ${h}`,children:[e.jsx("input",{type:"radio",name:i,value:a,checked:l,disabled:s,onChange:r,className:J2.input,...n}),e.jsx("span",{className:J2.radio}),t&&e.jsx("span",{className:J2.label,children:t})]})}const Nr="styles-module__container__KhKB7",xr="styles-module__label__nGyr8",Cr="styles-module__rangeWrapper__dnhOv",jr="styles-module__inputWrapper__vVIhy",Lr="styles-module__input__C9H5I",Zr="styles-module__disabled__8xB9M",Hr="styles-module__minMax__5jVHq",Vr="styles-module__value__4hZJK",C2={container:Nr,label:xr,rangeWrapper:Cr,inputWrapper:jr,input:Lr,disabled:Zr,minMax:Hr,value:Vr};function $r({label:t,min:a=0,max:i=100,step:l=1,value:s=50,showValue:r=!1,showMinMax:h=!1,onChange:n,className:f="",disabled:o=!1,...m}){const c=(s-a)/(i-a)*100;return e.jsxs("div",{className:`${C2.container} ${f}`,children:[t&&e.jsx("label",{className:C2.label,children:t}),e.jsxs("div",{className:C2.rangeWrapper,children:[h&&e.jsx("span",{className:C2.minMax,children:a}),e.jsx("div",{className:C2.inputWrapper,children:e.jsx("input",{type:"range",min:a,max:i,step:l,value:s,onChange:n,disabled:o,className:`${C2.input} ${o?C2.disabled:""}`,style:{"--percentage":`${c}%`},...m})}),h&&e.jsx("span",{className:C2.minMax,children:i})]}),r&&e.jsx("span",{className:C2.value,children:s})]})}const Sr="styles-module__richSelect__xtDdz",Br="styles-module__trigger__nkuFi",Tr="styles-module__disabled__aRnNR",Ir="styles-module__selectedContent__1YUDI",Pr="styles-module__textContent__sVML5",Ar="styles-module__label__DYAVs",Dr="styles-module__description__-NG4t",Gr="styles-module__placeholder__83U0w",Er="styles-module__icon__v-J2b",Rr="styles-module__arrow__m-D1Y",Wr="styles-module__open__gZef9",Fr="styles-module__menu__zMZHy",Ur="styles-module__searchWrapper__yPXor",Or="styles-module__searchInput__Vq3C6",Xr="styles-module__optionsList__OAhYK",Kr="styles-module__option__vTDi0",Yr="styles-module__optionDisabled__spphz",Jr="styles-module__active__FRlKy",Qr="styles-module__noResults__DsPu8",Y={richSelect:Sr,trigger:Br,disabled:Tr,selectedContent:Ir,textContent:Pr,label:Ar,description:Dr,placeholder:Gr,icon:Er,arrow:Rr,open:Wr,menu:Fr,searchWrapper:Ur,searchInput:Or,optionsList:Xr,option:Kr,optionDisabled:Yr,active:Jr,noResults:Qr};function e7({options:t,value:a,onChange:i,placeholder:l="Select an option",disabled:s=!1,searchable:r=!1,className:h=""}){const[n,f]=z.useState(!1),[o,m]=z.useState(""),c=z.useRef(null);z.useEffect(()=>{const p=Z=>{c.current&&!c.current.contains(Z.target)&&(f(!1),m(""))};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const q=p=>{s||(i?.(p),f(!1),m(""))},g=t.find(p=>p.value===a),y=r?t.filter(p=>p.label.toLowerCase().includes(o.toLowerCase())):t;return e.jsxs("div",{className:`${Y.richSelect} ${h}`,ref:c,children:[e.jsxs("button",{className:`${Y.trigger} ${s?Y.disabled:""}`,onClick:()=>!s&&f(!n),disabled:s,type:"button",children:[g?e.jsxs("div",{className:Y.selectedContent,children:[g.icon&&e.jsx("span",{className:Y.icon,children:g.icon}),e.jsxs("div",{className:Y.textContent,children:[e.jsx("span",{className:Y.label,children:g.label}),g.description&&e.jsx("span",{className:Y.description,children:g.description})]})]}):e.jsx("span",{className:Y.placeholder,children:l}),e.jsx("span",{className:`${Y.arrow} ${n?Y.open:""}`,children:"▼"})]}),n&&e.jsxs("div",{className:Y.menu,children:[r&&e.jsx("div",{className:Y.searchWrapper,children:e.jsx("input",{type:"text",className:Y.searchInput,placeholder:"Search...",value:o,onChange:p=>m(p.target.value),autoFocus:!0})}),e.jsxs("div",{className:Y.optionsList,children:[y.map(p=>e.jsxs("div",{className:`${Y.option} ${p.value===a?Y.active:""} ${p.disabled?Y.optionDisabled:""}`,onClick:()=>!p.disabled&&q(p.value),children:[p.icon&&e.jsx("span",{className:Y.icon,children:p.icon}),e.jsxs("div",{className:Y.textContent,children:[e.jsx("span",{className:Y.label,children:p.label}),p.description&&e.jsx("span",{className:Y.description,children:p.description})]})]},p.value)),y.length===0&&e.jsx("div",{className:Y.noResults,children:"No results found"})]})]})]})}const t7="styles-module__overlay__tP-g3",a7="styles-module__fadeIn__MKn3S",l7="styles-module__sidePanel__bfmoW",s7="styles-module__left__X7-S4",r7="styles-module__slideInLeft__nE6Ff",i7="styles-module__right__Fvefe",o7="styles-module__slideInRight__bvjTy",c7="styles-module__sm__CHsFH",h7="styles-module__md__17Q10",f7="styles-module__lg__8XCJd",d7="styles-module__header__-AKr-",n7="styles-module__title__8S4yp",m7="styles-module__closeButton__DQgJe",u7="styles-module__content__XGAif",v7="styles-module__footer__cX66N",j2={overlay:t7,fadeIn:a7,sidePanel:l7,left:s7,slideInLeft:r7,right:i7,slideInRight:o7,sm:c7,md:h7,lg:f7,header:d7,title:n7,closeButton:m7,content:u7,footer:v7};function p7({isOpen:t,onClose:a,title:i,children:l,footer:s,position:r="right",size:h="md",closeOnOverlayClick:n=!0,showCloseButton:f=!0,className:o=""}){return z.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),z.useEffect(()=>{const m=c=>{c.key==="Escape"&&t&&a()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,a]),t?e.jsx("div",{className:j2.overlay,onClick:n?a:void 0,children:e.jsxs("div",{className:`${j2.sidePanel} ${j2[r]} ${j2[h]} ${o}`,onClick:m=>m.stopPropagation(),children:[(i||f)&&e.jsxs("div",{className:j2.header,children:[i&&e.jsx("h2",{className:j2.title,children:i}),f&&e.jsx("button",{className:j2.closeButton,onClick:a,type:"button",children:"×"})]}),e.jsx("div",{className:j2.content,children:l}),s&&e.jsx("div",{className:j2.footer,children:s})]})}):null}const k7="styles-module__signpost__tLnmc",z7="styles-module__trigger__25KnS",g7="styles-module__content__z4pUG",b7="styles-module__fadeIn__0jB27",M7="styles-module__top__Jn5XX",y7="styles-module__bottom__CGe3J",w7="styles-module__left__zuDmF",_7="styles-module__right__xnSw3",q7="styles-module__inner__7euCB",N7="styles-module__arrow__mGVpk",O2={signpost:k7,trigger:z7,content:g7,fadeIn:b7,top:M7,bottom:y7,left:w7,right:_7,inner:q7,arrow:N7};function x7({trigger:t,children:a,position:i="top",className:l=""}){const[s,r]=z.useState(!1),h=z.useRef(null);return z.useEffect(()=>{const n=f=>{h.current&&!h.current.contains(f.target)&&r(!1)};return s&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[s]),e.jsxs("div",{className:`${O2.signpost} ${l}`,ref:h,children:[e.jsx("div",{className:O2.trigger,onClick:()=>r(!s),children:t}),s&&e.jsxs("div",{className:`${O2.content} ${O2[i]}`,children:[e.jsx("div",{className:O2.arrow}),e.jsx("div",{className:O2.inner,children:a})]})]})}const C7="styles-module__spinnerWrapper__ht5E9",j7="styles-module__spinner__D8f-h",L7="styles-module__circle__z537L",Z7="styles-module__spin__Gt3A-",H7="styles-module__sm__Ukc8Q",V7="styles-module__md__Hg7EK",$7="styles-module__lg__ac6jQ",S7="styles-module__primary__Pah-x",B7="styles-module__secondary__D29qO",T7="styles-module__label__nc2IY",X2={spinnerWrapper:C7,spinner:j7,circle:L7,spin:Z7,sm:H7,md:V7,lg:$7,default:"styles-module__default__X7JGx",primary:S7,secondary:B7,label:T7};function I7({size:t="md",variant:a="default",className:i="",label:l}){return e.jsxs("div",{className:`${X2.spinnerWrapper} ${i}`,children:[e.jsx("div",{className:`${X2.spinner} ${X2[t]} ${X2[a]}`,role:"status","aria-label":l||"Loading",children:e.jsx("div",{className:X2.circle})}),l&&e.jsx("span",{className:X2.label,children:l})]})}const P7="styles-module__stackView__wGZRw",A7="styles-module__horizontal__MCJ8E",D7="styles-module__vertical__INW6v",G7="styles-module__wrap__wvZPS",E7="styles-module__align-start__TeH6Z",R7="styles-module__align-center__DWOt-",W7="styles-module__align-end__9Xsx4",F7="styles-module__align-stretch__raPvB",U7="styles-module__justify-start__YVdZp",O7="styles-module__justify-center__VKg8-",X7="styles-module__justify-end__kVPBC",K7="styles-module__justify-space-between__z5-wE",Y7="styles-module__justify-space-around__FP-0m",J7="styles-module__justify-space-evenly__v5xco",Q7="styles-module__spacing-none__M23xt",e8="styles-module__spacing-xs__zdXjS",t8="styles-module__spacing-sm__G-5sR",a8="styles-module__spacing-md__oa-Jw",l8="styles-module__spacing-lg__5zhiQ",s8="styles-module__spacing-xl__qSFPT",K2={stackView:P7,horizontal:A7,vertical:D7,wrap:G7,"align-start":"styles-module__align-start__TeH6Z",alignStart:E7,"align-center":"styles-module__align-center__DWOt-",alignCenter:R7,"align-end":"styles-module__align-end__9Xsx4",alignEnd:W7,"align-stretch":"styles-module__align-stretch__raPvB",alignStretch:F7,"justify-start":"styles-module__justify-start__YVdZp",justifyStart:U7,"justify-center":"styles-module__justify-center__VKg8-",justifyCenter:O7,"justify-end":"styles-module__justify-end__kVPBC",justifyEnd:X7,"justify-space-between":"styles-module__justify-space-between__z5-wE",justifySpaceBetween:K7,"justify-space-around":"styles-module__justify-space-around__FP-0m",justifySpaceAround:Y7,"justify-space-evenly":"styles-module__justify-space-evenly__v5xco",justifySpaceEvenly:J7,"spacing-none":"styles-module__spacing-none__M23xt",spacingNone:Q7,"spacing-xs":"styles-module__spacing-xs__zdXjS",spacingXs:e8,"spacing-sm":"styles-module__spacing-sm__G-5sR",spacingSm:t8,"spacing-md":"styles-module__spacing-md__oa-Jw",spacingMd:a8,"spacing-lg":"styles-module__spacing-lg__5zhiQ",spacingLg:l8,"spacing-xl":"styles-module__spacing-xl__qSFPT",spacingXl:s8};function r8({children:t,direction:a="horizontal",align:i="start",justify:l="start",spacing:s="md",wrap:r=!1,className:h="",style:n}){return e.jsx("div",{className:`${K2.stackView} ${K2[a]} ${K2[`align-${i}`]} ${K2[`justify-${l}`]} ${K2[`spacing-${s}`]} ${r?K2.wrap:""} ${h}`,style:n,children:t})}const i8="styles-module__stepper__NUsL2",o8="styles-module__horizontal__wW8by",c8="styles-module__vertical__UqRFo",h8="styles-module__step__lmR8-",f8="styles-module__clickable__-O5QE",d8="styles-module__stepIndicator__GbO4U",n8="styles-module__current__LW7L4",m8="styles-module__completed__MC9gq",u8="styles-module__checkmark__GAoUn",v8="styles-module__stepNumber__qLNDJ",p8="styles-module__stepContent__pKC94",k8="styles-module__stepLabel__JK-4j",z8="styles-module__stepDescription__hlARr",g8="styles-module__connector__76Rsb",f2={stepper:i8,horizontal:o8,vertical:c8,step:h8,clickable:f8,stepIndicator:d8,current:n8,completed:m8,checkmark:u8,stepNumber:v8,stepContent:p8,stepLabel:k8,stepDescription:z8,connector:g8};function b8({steps:t,currentStep:a,orientation:i="horizontal",onStepClick:l,className:s=""}){return e.jsx("div",{className:`${f2.stepper} ${f2[i]} ${s}`,children:t.map((r,h)=>{const n=h<a,f=h===a,o=l&&(n||f);return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:`${f2.step} ${n?f2.completed:""} ${f?f2.current:""} ${o?f2.clickable:""}`,onClick:()=>o&&l(h),children:[e.jsx("div",{className:f2.stepIndicator,children:n?e.jsx("span",{className:f2.checkmark,children:"✓"}):r.icon?r.icon:e.jsx("span",{className:f2.stepNumber,children:h+1})}),e.jsxs("div",{className:f2.stepContent,children:[e.jsx("div",{className:f2.stepLabel,children:r.label}),r.description&&e.jsx("div",{className:f2.stepDescription,children:r.description})]})]}),h<t.length-1&&e.jsx("div",{className:`${f2.connector} ${n?f2.completed:""}`})]},h)})})}const M8="styles-module__tableWrapper__7pbjW",y8="styles-module__table__G-UMw",w8="styles-module__thead__uTTEj",_8="styles-module__th__tBFLB",q8="styles-module__tbody__-OiiP",N8="styles-module__tr__ioLC7",x8="styles-module__td__mjOQt",C8="styles-module__striped__iZ3bT",j8="styles-module__hoverable__ewlPb",L8="styles-module__bordered__IB5cr",Z8="styles-module__compact__JfcIE",H8="styles-module__clickable__URnJc",V8="styles-module__empty__Xo2NZ",n2={tableWrapper:M8,table:y8,thead:w8,th:_8,tbody:q8,tr:N8,td:x8,striped:C8,hoverable:j8,bordered:L8,compact:Z8,clickable:H8,empty:V8};function $8({columns:t,data:a,striped:i=!1,hoverable:l=!1,bordered:s=!1,compact:r=!1,onRowClick:h,className:n=""}){return e.jsxs("div",{className:`${n2.tableWrapper} ${n}`,children:[e.jsxs("table",{className:`${n2.table} ${i?n2.striped:""} ${l?n2.hoverable:""} ${s?n2.bordered:""} ${r?n2.compact:""}`,children:[e.jsx("thead",{className:n2.thead,children:e.jsx("tr",{children:t.map(f=>e.jsx("th",{className:n2.th,style:{width:f.width},children:f.header},f.key))})}),e.jsx("tbody",{className:n2.tbody,children:a.map((f,o)=>e.jsx("tr",{className:`${n2.tr} ${h?n2.clickable:""}`,onClick:()=>h?.(f),children:t.map(m=>e.jsx("td",{className:n2.td,children:m.render?m.render(f[m.key],f):String(f[m.key]??"")},m.key))},o))})]}),a.length===0&&e.jsx("div",{className:n2.empty,children:"No data available"})]})}const S8="styles-module__tabsContainer__Jv3WS",B8="styles-module__tabsList__G5a9Z",T8="styles-module__fullWidth__IiyGO",I8="styles-module__tab__Veki-",P8="styles-module__disabled__M9qZK",A8="styles-module__active__PVi-W",D8="styles-module__icon__4sTw8",G8="styles-module__pills__VlbD0",E8="styles-module__underline__Jdu1g",R8="styles-module__tabContent__bSDk7",W8="styles-module__fadeIn__sgbzQ",L2={tabsContainer:S8,tabsList:B8,fullWidth:T8,tab:I8,disabled:P8,active:A8,icon:D8,default:"styles-module__default__02SGT",pills:G8,underline:E8,tabContent:R8,fadeIn:W8};function F8({items:t,defaultActiveId:a,variant:i="default",fullWidth:l=!1,onChange:s,className:r=""}){const[h,n]=z.useState(a||t[0]?.id),f=(m,c)=>{c||(n(m),s?.(m))},o=t.find(m=>m.id===h);return e.jsxs("div",{className:`${L2.tabsContainer} ${r}`,children:[e.jsx("div",{className:`${L2.tabsList} ${L2[i]} ${l?L2.fullWidth:""}`,role:"tablist",children:t.map(m=>e.jsxs("button",{role:"tab","aria-selected":m.id===h,"aria-disabled":m.disabled,className:`${L2.tab} ${m.id===h?L2.active:""} ${m.disabled?L2.disabled:""}`,onClick:()=>f(m.id,m.disabled),disabled:m.disabled,children:[m.icon&&e.jsx("span",{className:L2.icon,children:m.icon}),e.jsx("span",{children:m.label})]},m.id))}),e.jsx("div",{className:L2.tabContent,role:"tabpanel",children:o?.content})]})}const U8="styles-module__textareaWrapper__xo-uo",O8="styles-module__fullWidth__y5-Ce",X8="styles-module__label__xONj0",K8="styles-module__textarea__LmnbQ",Y8="styles-module__sm__uIQkQ",J8="styles-module__md__qfL-2",Q8="styles-module__lg__s6Iey",ei="styles-module__success__ehWww",ti="styles-module__error__h9V4X",ai="styles-module__resize-none__w4h2b",li="styles-module__resize-vertical__4lTu1",si="styles-module__resize-horizontal__3Fdb7",ri="styles-module__resize-both__07ghL",ii="styles-module__helperText__Zaq6O",oi="styles-module__errorText__RI-rl",y2={textareaWrapper:U8,fullWidth:O8,label:X8,textarea:K8,sm:Y8,md:J8,lg:Q8,default:"styles-module__default__jlE7o",success:ei,error:ti,"resize-none":"styles-module__resize-none__w4h2b",resizeNone:ai,"resize-vertical":"styles-module__resize-vertical__4lTu1",resizeVertical:li,"resize-horizontal":"styles-module__resize-horizontal__3Fdb7",resizeHorizontal:si,"resize-both":"styles-module__resize-both__07ghL",resizeBoth:ri,helperText:ii,errorText:oi},y0=z.forwardRef(({label:t,helperText:a,error:i,size:l="md",variant:s="default",fullWidth:r=!1,resize:h="vertical",className:n="",disabled:f,...o},m)=>{const c=i?"error":s;return e.jsxs("div",{className:`${y2.textareaWrapper} ${r?y2.fullWidth:""} ${n}`,children:[t&&e.jsx("label",{className:y2.label,children:t}),e.jsx("textarea",{ref:m,className:`${y2.textarea} ${y2[l]} ${y2[c]} ${y2[`resize-${h}`]} ${f?y2.disabled:""}`,disabled:f,...o}),i&&e.jsx("span",{className:y2.errorText,children:i}),!i&&a&&e.jsx("span",{className:y2.helperText,children:a})]})});y0.displayName="Textarea";const ci="styles-module__timeline__khbcN",hi="styles-module__vertical__EcI8f",fi="styles-module__horizontal__kv46j",di="styles-module__timelineItem__j0IQ5",ni="styles-module__timelineMarker__qk22j",mi="styles-module__dot__gfgUf",ui="styles-module__icon__hWWJd",vi="styles-module__primary__t4Cyx",pi="styles-module__success__NWp7i",ki="styles-module__warning__mfRNM",zi="styles-module__error__AwsC3",gi="styles-module__info__QaR5w",bi="styles-module__timelineConnector__deWEH",Mi="styles-module__timelineContent__Yzy-t",yi="styles-module__date__OIOdY",wi="styles-module__title__PZb8L",_i="styles-module__description__LesWv",o2={timeline:ci,vertical:hi,horizontal:fi,timelineItem:di,timelineMarker:ni,dot:mi,icon:ui,default:"styles-module__default__QmROp",primary:vi,success:pi,warning:ki,error:zi,info:gi,timelineConnector:bi,timelineContent:Mi,date:yi,title:wi,description:_i};function qi({items:t,orientation:a="vertical",className:i=""}){return e.jsx("div",{className:`${o2.timeline} ${o2[a]} ${i}`,children:t.map((l,s)=>e.jsxs("div",{className:o2.timelineItem,children:[e.jsx("div",{className:`${o2.timelineMarker} ${l.color?o2[l.color]:o2.default}`,children:l.icon?e.jsx("span",{className:o2.icon,children:l.icon}):e.jsx("span",{className:o2.dot})}),s<t.length-1&&e.jsx("div",{className:`${o2.timelineConnector} ${l.color?o2[l.color]:o2.default}`}),e.jsxs("div",{className:o2.timelineContent,children:[l.date&&e.jsx("span",{className:o2.date,children:l.date}),e.jsx("h4",{className:o2.title,children:l.title}),l.description&&e.jsx("p",{className:o2.description,children:l.description})]})]},l.id))})}const Ni="styles-module__toggleSwitch__HDqFP",xi="styles-module__disabled__tbXNT",Ci="styles-module__input__oBVdg",ji="styles-module__sm__O8zA8",Li="styles-module__md__2vfHI",Zi="styles-module__lg__S65-b",Hi="styles-module__slider__gYGJ6",Vi="styles-module__checked__-4pJ2",$i="styles-module__label__xIgTV",I2={toggleSwitch:Ni,disabled:xi,input:Ci,switch:"styles-module__switch__4NsVE",sm:ji,md:Li,lg:Zi,slider:Hi,checked:Vi,label:$i};function Si({checked:t,defaultChecked:a=!1,onChange:i,label:l,disabled:s=!1,size:r="md",className:h=""}){const[n,f]=z.useState(a),o=t!==void 0,m=o?t:n,c=()=>{if(s)return;const q=!m;o||f(q),i?.(q)};return e.jsxs("label",{className:`${I2.toggleSwitch} ${s?I2.disabled:""} ${h}`,children:[e.jsx("input",{type:"checkbox",checked:m,onChange:c,disabled:s,className:I2.input}),e.jsx("span",{className:`${I2.switch} ${I2[r]} ${m?I2.checked:""}`,children:e.jsx("span",{className:I2.slider})}),l&&e.jsx("span",{className:I2.label,children:l})]})}const Bi="styles-module__tooltipWrapper__jXXEP",Ti="styles-module__tooltip__NP2ZM",Ii="styles-module__fadeIn__5hHms",Pi="styles-module__top__kvf2D",Ai="styles-module__bottom__vkl92",Di="styles-module__left__q2e3D",Gi="styles-module__right__FRcXP",Ei="styles-module__tooltipContent__3R4WL",Ri="styles-module__tooltipArrow__11JdT",Q2={tooltipWrapper:Bi,tooltip:Ti,fadeIn:Ii,top:Pi,bottom:Ai,left:Di,right:Gi,tooltipContent:Ei,tooltipArrow:Ri};function Wi({children:t,content:a,position:i="top",delay:l=200,className:s=""}){const[r,h]=z.useState(!1),n=z.useRef(),f=z.useRef(null),o=()=>{n.current=setTimeout(()=>{h(!0)},l)},m=()=>{n.current&&clearTimeout(n.current),h(!1)};return z.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),e.jsxs("div",{className:`${Q2.tooltipWrapper} ${s}`,ref:f,onMouseEnter:o,onMouseLeave:m,onFocus:o,onBlur:m,children:[t,r&&e.jsxs("div",{className:`${Q2.tooltip} ${Q2[i]}`,role:"tooltip",children:[e.jsx("div",{className:Q2.tooltipContent,children:a}),e.jsx("div",{className:Q2.tooltipArrow})]})]})}const Fi="styles-module__toastContainer__-uOPe",Ui="styles-module__topLeft__MCDhr",Oi="styles-module__topCenter__loC-J",Xi="styles-module__topRight__alKSR",Ki="styles-module__bottomLeft__sPZ6I",Yi="styles-module__bottomCenter__12yLT",Ji="styles-module__bottomRight__EdLbD",Qi="styles-module__toast__q9A3H",eo="styles-module__slideIn__-Mhbw",to="styles-module__fadeIn__I0huT",ao="styles-module__slideInLeft__Bs5x3",lo="styles-module__slideInDown__OUDGH",so="styles-module__icon__iRAEt",ro="styles-module__message__id55d",io="styles-module__closeButton__vnBxf",oo="styles-module__info__RjsXR",co="styles-module__success__1qQf4",ho="styles-module__warning__UhEF-",fo="styles-module__error__sOYOC",v2={toastContainer:Fi,topLeft:Ui,topCenter:Oi,topRight:Xi,bottomLeft:Ki,bottomCenter:Yi,bottomRight:Ji,toast:Qi,slideIn:eo,fadeIn:to,slideInLeft:ao,slideInDown:lo,icon:so,message:ro,closeButton:io,info:oo,success:co,warning:ho,error:fo},w0=z.createContext(void 0);function no({children:t,position:a="top-right",maxToasts:i=5}){const[l,s]=z.useState([]),r=z.useCallback((o,m={})=>{const c=Math.random().toString(36).substring(2,9),q={id:c,message:o,variant:m.variant||"info",duration:m.duration??5e3,dismissible:m.dismissible??!0};s(g=>[...g,q].slice(-i)),q.duration&&q.duration>0&&setTimeout(()=>{h(c)},q.duration)},[i]),h=z.useCallback(o=>{s(m=>m.filter(c=>c.id!==o))},[]),n=()=>({"top-left":v2.topLeft,"top-center":v2.topCenter,"top-right":v2.topRight,"bottom-left":v2.bottomLeft,"bottom-center":v2.bottomCenter,"bottom-right":v2.bottomRight})[a],f=o=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕"})[o];return e.jsxs(w0.Provider,{value:{showToast:r},children:[t,e.jsx("div",{className:`${v2.toastContainer} ${n()}`,children:l.map(o=>e.jsxs("div",{className:`${v2.toast} ${v2[o.variant||"info"]}`,role:"alert","aria-live":"polite",children:[e.jsx("div",{className:v2.icon,children:f(o.variant||"info")}),e.jsx("div",{className:v2.message,children:o.message}),o.dismissible&&e.jsx("button",{className:v2.closeButton,onClick:()=>h(o.id),"aria-label":"Close",children:"✕"})]},o.id))})]})}function mo(){const t=z.useContext(w0);if(!t)throw new Error("useToast must be used within a ToastProvider");return t}const uo="styles-module__treeView__qtZfC",vo="styles-module__treeNodeWrapper__6m8CE",po="styles-module__treeNode__xhhOE",ko="styles-module__disabled__-brxQ",zo="styles-module__expandIcon__Zp-Yb",go="styles-module__expanded__A4kyH",bo="styles-module__spacer__56WdM",Mo="styles-module__icon__AIE-i",yo="styles-module__label__XDGcT",wo="styles-module__children__N1c5Z",N2={treeView:uo,treeNodeWrapper:vo,treeNode:po,disabled:ko,expandIcon:zo,expanded:go,spacer:bo,icon:Mo,label:yo,children:wo};function _0({node:t,level:a,expandedIds:i,onToggle:l,onNodeClick:s}){const r=t.children&&t.children.length>0,h=i.has(t.id),n=()=>{t.disabled||(r&&l(t.id),s?.(t))};return e.jsxs("div",{className:N2.treeNodeWrapper,children:[e.jsxs("div",{className:`${N2.treeNode} ${t.disabled?N2.disabled:""}`,style:{paddingLeft:`${a*1.5}rem`},onClick:n,children:[r&&e.jsx("span",{className:`${N2.expandIcon} ${h?N2.expanded:""}`,children:"▶"}),!r&&e.jsx("span",{className:N2.spacer}),t.icon&&e.jsx("span",{className:N2.icon,children:t.icon}),e.jsx("span",{className:N2.label,children:t.label})]}),r&&h&&e.jsx("div",{className:N2.children,children:t.children.map(f=>e.jsx(_0,{node:f,level:a+1,expandedIds:i,onToggle:l,onNodeClick:s},f.id))})]})}function _o({data:t,defaultExpandedIds:a=[],onNodeClick:i,className:l=""}){const[s,r]=z.useState(new Set(a)),h=n=>{r(f=>{const o=new Set(f);return o.has(n)?o.delete(n):o.add(n),o})};return e.jsx("div",{className:`${N2.treeView} ${l}`,children:t.map(n=>e.jsx(_0,{node:n,level:0,expandedIds:s,onToggle:h,onNodeClick:i},n.id))})}const qo="styles-module__nav__sMQSv",No="styles-module__vertical__6EFeu",xo="styles-module__collapsed__eIVC7",Co="styles-module__horizontal__5UU20",jo="styles-module__navItemWrapper__Sc9wi",Lo="styles-module__navItem__7O2YX",Zo="styles-module__disabled__hvWkN",Ho="styles-module__nested__oejUs",Vo="styles-module__icon__SLdZe",$o="styles-module__label__pji80",So="styles-module__badge__03qDH",Bo="styles-module__expandIcon__bGlQG",To="styles-module__dropdownIcon__uf35v",Io="styles-module__expanded__2R6-v",Po="styles-module__children__sfAGb",Ao="styles-module__slideDown__xKrR1",Do="styles-module__dropdown__LuTLW",Go="styles-module__megaMenu__02Wp7",Eo="styles-module__megaMenuWrapper__yLvBH",Ro="styles-module__megaMenuGrid__4FrxU",Wo="styles-module__megaMenuColumn__DI0z2",e2={nav:qo,vertical:No,collapsed:xo,horizontal:Co,navItemWrapper:jo,navItem:Lo,disabled:Zo,nested:Ho,icon:Vo,label:$o,badge:So,expandIcon:Bo,dropdownIcon:To,expanded:Io,children:Po,slideDown:Ao,dropdown:Do,megaMenu:Go,megaMenuWrapper:Eo,megaMenuGrid:Ro,megaMenuColumn:Wo};function i0({item:t,level:a,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h}){const n=t.children&&t.children.length>0,f=i.has(t.id),o=t.megaMenu&&n,m=g=>{t.disabled||(n&&r==="vertical"&&(g.preventDefault(),l(t.id)),t.onClick&&t.onClick(),s?.(t))},c=()=>e.jsxs(e.Fragment,{children:[t.icon&&e.jsx("span",{className:e2.icon,children:t.icon}),!h&&e.jsx("span",{className:e2.label,children:t.label}),!h&&t.badge&&e.jsx("span",{className:e2.badge,children:t.badge}),!h&&n&&r==="vertical"&&e.jsx("span",{className:`${e2.expandIcon} ${f?e2.expanded:""}`,children:"▶"}),!h&&n&&r==="horizontal"&&e.jsx("span",{className:e2.dropdownIcon,children:"▼"})]}),q=t.href?e.jsx("a",{href:t.href,className:`${e2.navItem} ${t.disabled?e2.disabled:""} ${a>0?e2.nested:""}`,onClick:m,children:c()}):e.jsx("button",{type:"button",className:`${e2.navItem} ${t.disabled?e2.disabled:""} ${a>0?e2.nested:""}`,onClick:m,children:c()});return e.jsxs("div",{className:`${e2.navItemWrapper} ${o?e2.megaMenuWrapper:""}`,children:[q,n&&e.jsxs(e.Fragment,{children:[r==="vertical"&&f&&e.jsx("div",{className:e2.children,children:t.children.map(g=>e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h},g.id))}),r==="horizontal"&&e.jsx("div",{className:`${e2.dropdown} ${o?e2.megaMenu:""}`,children:o?e.jsx("div",{className:e2.megaMenuGrid,children:t.children.map(g=>e.jsx("div",{className:e2.megaMenuColumn,children:e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h})},g.id))}):t.children.map(g=>e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h},g.id))})]})]})}function Fo({items:t,orientation:a="vertical",defaultExpandedIds:i=[],onItemClick:l,className:s="",collapsed:r=!1}){const[h,n]=z.useState(new Set(i)),f=o=>{n(m=>{const c=new Set(m);return c.has(o)?c.delete(o):c.add(o),c})};return e.jsx("nav",{className:`${e2.nav} ${e2[a]} ${r?e2.collapsed:""} ${s}`,children:t.map(o=>e.jsx(i0,{item:o,level:0,expandedIds:h,onToggle:f,onItemClick:l,orientation:a,collapsed:r},o.id))})}const Uo="styles-module__selectContainer__JfMFS",Oo="styles-module__fullWidth__XXFCr",Xo="styles-module__label__eUUOm",Ko="styles-module__wrapper__98xFk",Yo="styles-module__select__xJaN9",Jo="styles-module__disabled__A1ppA",Qo="styles-module__sm__MEAFW",ec="styles-module__lg__sd1Gy",tc="styles-module__error__w1Lsu",ac="styles-module__success__xbtdD",lc="styles-module__arrow__UJXzt",sc="styles-module__helperText__sXAtM",rc="styles-module__errorText__7kPjp",b2={selectContainer:Uo,fullWidth:Oo,label:Xo,wrapper:Ko,select:Yo,disabled:Jo,sm:Qo,lg:ec,error:tc,success:ac,arrow:lc,helperText:sc,errorText:rc},q0=z.forwardRef(({label:t,error:a,helperText:i,size:l="md",variant:s="default",fullWidth:r=!1,className:h="",disabled:n=!1,options:f,placeholder:o,...m},c)=>{const q=a?"error":s,g=`${b2.selectContainer} ${r?b2.fullWidth:""} ${h}`,y=`${b2.select} ${b2[l]} ${b2[q]} ${n?b2.disabled:""}`;return e.jsxs("div",{className:g,children:[t&&e.jsx("label",{className:b2.label,children:t}),e.jsxs("div",{className:b2.wrapper,children:[e.jsxs("select",{ref:c,className:y,disabled:n,...m,children:[o&&e.jsx("option",{value:"",disabled:!0,children:o}),f.map(p=>e.jsx("option",{value:p.value,disabled:p.disabled,children:p.label},p.value))]}),e.jsx("span",{className:b2.arrow,children:"▼"})]}),(a||i)&&e.jsx("span",{className:`${b2.helperText} ${a?b2.errorText:""}`,children:a||i})]})});q0.displayName="Select";const ic="styles-module__grid__-18GG",oc="styles-module__columns-1__v8SEE",cc="styles-module__columns-2__Zq8Ih",hc="styles-module__columns-3__-sPCq",fc="styles-module__columns-4__jB2X6",dc="styles-module__columns-5__WbWn4",nc="styles-module__columns-6__B-cvH",mc="styles-module__columns-7__C29vY",uc="styles-module__columns-8__lFc3E",vc="styles-module__columns-9__Rhzrn",pc="styles-module__columns-10__hXu1z",kc="styles-module__columns-11__LYy-7",zc="styles-module__columns-12__0tALI",gc="styles-module__columns-sm-1__rGPgC",bc="styles-module__columns-sm-2__PjfNA",Mc="styles-module__columns-sm-3__-DkQI",yc="styles-module__columns-sm-4__vtgo0",wc="styles-module__columns-sm-5__e91Bf",_c="styles-module__columns-sm-6__2BPvq",qc="styles-module__columns-sm-7__7WSj3",Nc="styles-module__columns-sm-8__Y1rAn",xc="styles-module__columns-sm-9__ipGTO",Cc="styles-module__columns-sm-10__PsNnZ",jc="styles-module__columns-sm-11__0Xt-s",Lc="styles-module__columns-sm-12__uDrsj",Zc="styles-module__columns-md-1__VxJSA",Hc="styles-module__columns-md-2__7Jb7M",Vc="styles-module__columns-md-3__NPgJ4",$c="styles-module__columns-md-4__caSiE",Sc="styles-module__columns-md-5__YV-KD",Bc="styles-module__columns-md-6__eYuBW",Tc="styles-module__columns-md-7__kFwVo",Ic="styles-module__columns-md-8__--8cy",Pc="styles-module__columns-md-9__R5Q9b",Ac="styles-module__columns-md-10__-1u9i",Dc="styles-module__columns-md-11__3fWd5",Gc="styles-module__columns-md-12__6p-sc",Ec="styles-module__columns-lg-1__Us4pj",Rc="styles-module__columns-lg-2__42pEt",Wc="styles-module__columns-lg-3__-TIpF",Fc="styles-module__columns-lg-4__gZKHW",Uc="styles-module__columns-lg-5__04nEU",Oc="styles-module__columns-lg-6__cdsbL",Xc="styles-module__columns-lg-7__s2yv9",Kc="styles-module__columns-lg-8__B1jK9",Yc="styles-module__columns-lg-9__rA-9F",Jc="styles-module__columns-lg-10__99khu",Qc="styles-module__columns-lg-11__Wfy-H",eh="styles-module__columns-lg-12__mIBrq",th="styles-module__columns-xl-1__uxEeX",ah="styles-module__columns-xl-2__xerO3",lh="styles-module__columns-xl-3__6GLSS",sh="styles-module__columns-xl-4__XYS09",rh="styles-module__columns-xl-5__4Y5e8",ih="styles-module__columns-xl-6__Qufa4",oh="styles-module__columns-xl-7__jAsJu",ch="styles-module__columns-xl-8__1BctD",hh="styles-module__columns-xl-9__HNe1-",fh="styles-module__columns-xl-10__dSLX9",dh="styles-module__columns-xl-11__KB6nJ",nh="styles-module__columns-xl-12__UvRYk",mh="styles-module__gap-none__FSY1O",uh="styles-module__gap-xs__yd0Vu",vh="styles-module__gap-sm__9o2un",ph="styles-module__gap-md__Yb5VI",kh="styles-module__gap-lg__H0Kke",zh="styles-module__gap-xl__LDewl",gh="styles-module__gap-2xl__8nYbr",bh="styles-module__row-gap-none__JAJpj",Mh="styles-module__row-gap-xs__a3tit",yh="styles-module__row-gap-sm__72-ut",wh="styles-module__row-gap-md__7aLU-",_h="styles-module__row-gap-lg__1DeqX",qh="styles-module__row-gap-xl__KsfMY",Nh="styles-module__row-gap-2xl__obZGl",xh="styles-module__column-gap-none__KecTY",Ch="styles-module__column-gap-xs__k5jWZ",jh="styles-module__column-gap-sm__QPdcs",Lh="styles-module__column-gap-md__bjSOf",Zh="styles-module__column-gap-lg__EbeJF",Hh="styles-module__column-gap-xl__5A633",Vh="styles-module__column-gap-2xl__vgLSu",$h="styles-module__align-start__bjdHG",Sh="styles-module__align-center__yx3-m",Bh="styles-module__align-end__a4IA3",Th="styles-module__align-stretch__NyQwc",Ih="styles-module__align-baseline__XDLXG",Ph="styles-module__justify-items-start__0oBcn",Ah="styles-module__justify-items-center__nVsrc",Dh="styles-module__justify-items-end__-0L3F",Gh="styles-module__justify-items-stretch__0Lw7a",Eh="styles-module__justify-content-start__AUQmN",Rh="styles-module__justify-content-center__DbeoQ",Wh="styles-module__justify-content-end__WV6jz",Fh="styles-module__justify-content-space-between__8AaIN",Uh="styles-module__justify-content-space-around__aODdb",Oh="styles-module__justify-content-space-evenly__L9gkw",Xh="styles-module__flow-row__kRZfS",Kh="styles-module__flow-column__WwpqM",Yh="styles-module__flow-dense__lUpft",Jh="styles-module__flow-row-dense__tF-IP",Qh="styles-module__flow-column-dense__GEsOK",ef="styles-module__gridItem__DDjWB",tf="styles-module__col-span-1__mH-jY",af="styles-module__col-span-2__eTM2S",lf="styles-module__col-span-3__HYpEw",sf="styles-module__col-span-4__mg-mS",rf="styles-module__col-span-5__VVpGI",of="styles-module__col-span-6__SC8e-",cf="styles-module__col-span-7__Jibfe",hf="styles-module__col-span-8__qSQX1",ff="styles-module__col-span-9__95itg",df="styles-module__col-span-10__-Ghn-",nf="styles-module__col-span-11__Jk2PJ",mf="styles-module__col-span-12__UG7o2",uf="styles-module__col-span-full__zFrNk",vf="styles-module__col-span-sm-1__Eyzeo",pf="styles-module__col-span-sm-2__qw56t",kf="styles-module__col-span-sm-3__Dwrhj",zf="styles-module__col-span-sm-4__mdKu-",gf="styles-module__col-span-sm-5__erB04",bf="styles-module__col-span-sm-6__AN-Eo",Mf="styles-module__col-span-sm-7__jDZJk",yf="styles-module__col-span-sm-8__-c6X9",wf="styles-module__col-span-sm-9__tqIxC",_f="styles-module__col-span-sm-10__Z4S4U",qf="styles-module__col-span-sm-11__5l3EF",Nf="styles-module__col-span-sm-12__ToxhH",xf="styles-module__col-span-sm-full__5PByZ",Cf="styles-module__col-span-md-1__2iH1s",jf="styles-module__col-span-md-2__metsn",Lf="styles-module__col-span-md-3__ArbKb",Zf="styles-module__col-span-md-4__xVXZU",Hf="styles-module__col-span-md-5__ym6rl",Vf="styles-module__col-span-md-6__peA2T",$f="styles-module__col-span-md-7__AAm1f",Sf="styles-module__col-span-md-8__VLafy",Bf="styles-module__col-span-md-9__PWAAq",Tf="styles-module__col-span-md-10__GRmCe",If="styles-module__col-span-md-11__M8B4R",Pf="styles-module__col-span-md-12__HGzlP",Af="styles-module__col-span-md-full__4y9gL",Df="styles-module__col-span-lg-1__FG3dm",Gf="styles-module__col-span-lg-2__5dZiG",Ef="styles-module__col-span-lg-3__oZmcU",Rf="styles-module__col-span-lg-4__itdqY",Wf="styles-module__col-span-lg-5__ux3GV",Ff="styles-module__col-span-lg-6__zf4Bn",Uf="styles-module__col-span-lg-7__olG9c",Of="styles-module__col-span-lg-8__-QheZ",Xf="styles-module__col-span-lg-9__ZXgY2",Kf="styles-module__col-span-lg-10__bbXiL",Yf="styles-module__col-span-lg-11__AQw76",Jf="styles-module__col-span-lg-12__cFfHJ",Qf="styles-module__col-span-lg-full__IBuri",ed="styles-module__col-span-xl-1__hoqul",td="styles-module__col-span-xl-2__iTlZE",ad="styles-module__col-span-xl-3__pw3Vu",ld="styles-module__col-span-xl-4__NaUdq",sd="styles-module__col-span-xl-5__NZfk2",rd="styles-module__col-span-xl-6__piqQd",id="styles-module__col-span-xl-7__YGer8",od="styles-module__col-span-xl-8__Dr6aM",cd="styles-module__col-span-xl-9__zyuUC",hd="styles-module__col-span-xl-10__1tCT-",fd="styles-module__col-span-xl-11__4neTT",dd="styles-module__col-span-xl-12__yqf3o",nd="styles-module__col-span-xl-full__LIPRp",md="styles-module__row-span-1__zy3Hq",ud="styles-module__row-span-2__Z8RpU",vd="styles-module__row-span-3__JkAqM",pd="styles-module__row-span-4__X5Xkb",kd="styles-module__row-span-5__UGWBp",zd="styles-module__row-span-6__Ok7gd",a2={grid:ic,"columns-1":"styles-module__columns-1__v8SEE",columns1:oc,"columns-2":"styles-module__columns-2__Zq8Ih",columns2:cc,"columns-3":"styles-module__columns-3__-sPCq",columns3:hc,"columns-4":"styles-module__columns-4__jB2X6",columns4:fc,"columns-5":"styles-module__columns-5__WbWn4",columns5:dc,"columns-6":"styles-module__columns-6__B-cvH",columns6:nc,"columns-7":"styles-module__columns-7__C29vY",columns7:mc,"columns-8":"styles-module__columns-8__lFc3E",columns8:uc,"columns-9":"styles-module__columns-9__Rhzrn",columns9:vc,"columns-10":"styles-module__columns-10__hXu1z",columns10:pc,"columns-11":"styles-module__columns-11__LYy-7",columns11:kc,"columns-12":"styles-module__columns-12__0tALI",columns12:zc,"columns-sm-1":"styles-module__columns-sm-1__rGPgC",columnsSm1:gc,"columns-sm-2":"styles-module__columns-sm-2__PjfNA",columnsSm2:bc,"columns-sm-3":"styles-module__columns-sm-3__-DkQI",columnsSm3:Mc,"columns-sm-4":"styles-module__columns-sm-4__vtgo0",columnsSm4:yc,"columns-sm-5":"styles-module__columns-sm-5__e91Bf",columnsSm5:wc,"columns-sm-6":"styles-module__columns-sm-6__2BPvq",columnsSm6:_c,"columns-sm-7":"styles-module__columns-sm-7__7WSj3",columnsSm7:qc,"columns-sm-8":"styles-module__columns-sm-8__Y1rAn",columnsSm8:Nc,"columns-sm-9":"styles-module__columns-sm-9__ipGTO",columnsSm9:xc,"columns-sm-10":"styles-module__columns-sm-10__PsNnZ",columnsSm10:Cc,"columns-sm-11":"styles-module__columns-sm-11__0Xt-s",columnsSm11:jc,"columns-sm-12":"styles-module__columns-sm-12__uDrsj",columnsSm12:Lc,"columns-md-1":"styles-module__columns-md-1__VxJSA",columnsMd1:Zc,"columns-md-2":"styles-module__columns-md-2__7Jb7M",columnsMd2:Hc,"columns-md-3":"styles-module__columns-md-3__NPgJ4",columnsMd3:Vc,"columns-md-4":"styles-module__columns-md-4__caSiE",columnsMd4:$c,"columns-md-5":"styles-module__columns-md-5__YV-KD",columnsMd5:Sc,"columns-md-6":"styles-module__columns-md-6__eYuBW",columnsMd6:Bc,"columns-md-7":"styles-module__columns-md-7__kFwVo",columnsMd7:Tc,"columns-md-8":"styles-module__columns-md-8__--8cy",columnsMd8:Ic,"columns-md-9":"styles-module__columns-md-9__R5Q9b",columnsMd9:Pc,"columns-md-10":"styles-module__columns-md-10__-1u9i",columnsMd10:Ac,"columns-md-11":"styles-module__columns-md-11__3fWd5",columnsMd11:Dc,"columns-md-12":"styles-module__columns-md-12__6p-sc",columnsMd12:Gc,"columns-lg-1":"styles-module__columns-lg-1__Us4pj",columnsLg1:Ec,"columns-lg-2":"styles-module__columns-lg-2__42pEt",columnsLg2:Rc,"columns-lg-3":"styles-module__columns-lg-3__-TIpF",columnsLg3:Wc,"columns-lg-4":"styles-module__columns-lg-4__gZKHW",columnsLg4:Fc,"columns-lg-5":"styles-module__columns-lg-5__04nEU",columnsLg5:Uc,"columns-lg-6":"styles-module__columns-lg-6__cdsbL",columnsLg6:Oc,"columns-lg-7":"styles-module__columns-lg-7__s2yv9",columnsLg7:Xc,"columns-lg-8":"styles-module__columns-lg-8__B1jK9",columnsLg8:Kc,"columns-lg-9":"styles-module__columns-lg-9__rA-9F",columnsLg9:Yc,"columns-lg-10":"styles-module__columns-lg-10__99khu",columnsLg10:Jc,"columns-lg-11":"styles-module__columns-lg-11__Wfy-H",columnsLg11:Qc,"columns-lg-12":"styles-module__columns-lg-12__mIBrq",columnsLg12:eh,"columns-xl-1":"styles-module__columns-xl-1__uxEeX",columnsXl1:th,"columns-xl-2":"styles-module__columns-xl-2__xerO3",columnsXl2:ah,"columns-xl-3":"styles-module__columns-xl-3__6GLSS",columnsXl3:lh,"columns-xl-4":"styles-module__columns-xl-4__XYS09",columnsXl4:sh,"columns-xl-5":"styles-module__columns-xl-5__4Y5e8",columnsXl5:rh,"columns-xl-6":"styles-module__columns-xl-6__Qufa4",columnsXl6:ih,"columns-xl-7":"styles-module__columns-xl-7__jAsJu",columnsXl7:oh,"columns-xl-8":"styles-module__columns-xl-8__1BctD",columnsXl8:ch,"columns-xl-9":"styles-module__columns-xl-9__HNe1-",columnsXl9:hh,"columns-xl-10":"styles-module__columns-xl-10__dSLX9",columnsXl10:fh,"columns-xl-11":"styles-module__columns-xl-11__KB6nJ",columnsXl11:dh,"columns-xl-12":"styles-module__columns-xl-12__UvRYk",columnsXl12:nh,"gap-none":"styles-module__gap-none__FSY1O",gapNone:mh,"gap-xs":"styles-module__gap-xs__yd0Vu",gapXs:uh,"gap-sm":"styles-module__gap-sm__9o2un",gapSm:vh,"gap-md":"styles-module__gap-md__Yb5VI",gapMd:ph,"gap-lg":"styles-module__gap-lg__H0Kke",gapLg:kh,"gap-xl":"styles-module__gap-xl__LDewl",gapXl:zh,"gap-2xl":"styles-module__gap-2xl__8nYbr",gap2Xl:gh,"row-gap-none":"styles-module__row-gap-none__JAJpj",rowGapNone:bh,"row-gap-xs":"styles-module__row-gap-xs__a3tit",rowGapXs:Mh,"row-gap-sm":"styles-module__row-gap-sm__72-ut",rowGapSm:yh,"row-gap-md":"styles-module__row-gap-md__7aLU-",rowGapMd:wh,"row-gap-lg":"styles-module__row-gap-lg__1DeqX",rowGapLg:_h,"row-gap-xl":"styles-module__row-gap-xl__KsfMY",rowGapXl:qh,"row-gap-2xl":"styles-module__row-gap-2xl__obZGl",rowGap2Xl:Nh,"column-gap-none":"styles-module__column-gap-none__KecTY",columnGapNone:xh,"column-gap-xs":"styles-module__column-gap-xs__k5jWZ",columnGapXs:Ch,"column-gap-sm":"styles-module__column-gap-sm__QPdcs",columnGapSm:jh,"column-gap-md":"styles-module__column-gap-md__bjSOf",columnGapMd:Lh,"column-gap-lg":"styles-module__column-gap-lg__EbeJF",columnGapLg:Zh,"column-gap-xl":"styles-module__column-gap-xl__5A633",columnGapXl:Hh,"column-gap-2xl":"styles-module__column-gap-2xl__vgLSu",columnGap2Xl:Vh,"align-start":"styles-module__align-start__bjdHG",alignStart:$h,"align-center":"styles-module__align-center__yx3-m",alignCenter:Sh,"align-end":"styles-module__align-end__a4IA3",alignEnd:Bh,"align-stretch":"styles-module__align-stretch__NyQwc",alignStretch:Th,"align-baseline":"styles-module__align-baseline__XDLXG",alignBaseline:Ih,"justify-items-start":"styles-module__justify-items-start__0oBcn",justifyItemsStart:Ph,"justify-items-center":"styles-module__justify-items-center__nVsrc",justifyItemsCenter:Ah,"justify-items-end":"styles-module__justify-items-end__-0L3F",justifyItemsEnd:Dh,"justify-items-stretch":"styles-module__justify-items-stretch__0Lw7a",justifyItemsStretch:Gh,"justify-content-start":"styles-module__justify-content-start__AUQmN",justifyContentStart:Eh,"justify-content-center":"styles-module__justify-content-center__DbeoQ",justifyContentCenter:Rh,"justify-content-end":"styles-module__justify-content-end__WV6jz",justifyContentEnd:Wh,"justify-content-space-between":"styles-module__justify-content-space-between__8AaIN",justifyContentSpaceBetween:Fh,"justify-content-space-around":"styles-module__justify-content-space-around__aODdb",justifyContentSpaceAround:Uh,"justify-content-space-evenly":"styles-module__justify-content-space-evenly__L9gkw",justifyContentSpaceEvenly:Oh,"flow-row":"styles-module__flow-row__kRZfS",flowRow:Xh,"flow-column":"styles-module__flow-column__WwpqM",flowColumn:Kh,"flow-dense":"styles-module__flow-dense__lUpft",flowDense:Yh,"flow-row-dense":"styles-module__flow-row-dense__tF-IP",flowRowDense:Jh,"flow-column-dense":"styles-module__flow-column-dense__GEsOK",flowColumnDense:Qh,gridItem:ef,"col-span-1":"styles-module__col-span-1__mH-jY",colSpan1:tf,"col-span-2":"styles-module__col-span-2__eTM2S",colSpan2:af,"col-span-3":"styles-module__col-span-3__HYpEw",colSpan3:lf,"col-span-4":"styles-module__col-span-4__mg-mS",colSpan4:sf,"col-span-5":"styles-module__col-span-5__VVpGI",colSpan5:rf,"col-span-6":"styles-module__col-span-6__SC8e-",colSpan6:of,"col-span-7":"styles-module__col-span-7__Jibfe",colSpan7:cf,"col-span-8":"styles-module__col-span-8__qSQX1",colSpan8:hf,"col-span-9":"styles-module__col-span-9__95itg",colSpan9:ff,"col-span-10":"styles-module__col-span-10__-Ghn-",colSpan10:df,"col-span-11":"styles-module__col-span-11__Jk2PJ",colSpan11:nf,"col-span-12":"styles-module__col-span-12__UG7o2",colSpan12:mf,"col-span-full":"styles-module__col-span-full__zFrNk",colSpanFull:uf,"col-span-sm-1":"styles-module__col-span-sm-1__Eyzeo",colSpanSm1:vf,"col-span-sm-2":"styles-module__col-span-sm-2__qw56t",colSpanSm2:pf,"col-span-sm-3":"styles-module__col-span-sm-3__Dwrhj",colSpanSm3:kf,"col-span-sm-4":"styles-module__col-span-sm-4__mdKu-",colSpanSm4:zf,"col-span-sm-5":"styles-module__col-span-sm-5__erB04",colSpanSm5:gf,"col-span-sm-6":"styles-module__col-span-sm-6__AN-Eo",colSpanSm6:bf,"col-span-sm-7":"styles-module__col-span-sm-7__jDZJk",colSpanSm7:Mf,"col-span-sm-8":"styles-module__col-span-sm-8__-c6X9",colSpanSm8:yf,"col-span-sm-9":"styles-module__col-span-sm-9__tqIxC",colSpanSm9:wf,"col-span-sm-10":"styles-module__col-span-sm-10__Z4S4U",colSpanSm10:_f,"col-span-sm-11":"styles-module__col-span-sm-11__5l3EF",colSpanSm11:qf,"col-span-sm-12":"styles-module__col-span-sm-12__ToxhH",colSpanSm12:Nf,"col-span-sm-full":"styles-module__col-span-sm-full__5PByZ",colSpanSmFull:xf,"col-span-md-1":"styles-module__col-span-md-1__2iH1s",colSpanMd1:Cf,"col-span-md-2":"styles-module__col-span-md-2__metsn",colSpanMd2:jf,"col-span-md-3":"styles-module__col-span-md-3__ArbKb",colSpanMd3:Lf,"col-span-md-4":"styles-module__col-span-md-4__xVXZU",colSpanMd4:Zf,"col-span-md-5":"styles-module__col-span-md-5__ym6rl",colSpanMd5:Hf,"col-span-md-6":"styles-module__col-span-md-6__peA2T",colSpanMd6:Vf,"col-span-md-7":"styles-module__col-span-md-7__AAm1f",colSpanMd7:$f,"col-span-md-8":"styles-module__col-span-md-8__VLafy",colSpanMd8:Sf,"col-span-md-9":"styles-module__col-span-md-9__PWAAq",colSpanMd9:Bf,"col-span-md-10":"styles-module__col-span-md-10__GRmCe",colSpanMd10:Tf,"col-span-md-11":"styles-module__col-span-md-11__M8B4R",colSpanMd11:If,"col-span-md-12":"styles-module__col-span-md-12__HGzlP",colSpanMd12:Pf,"col-span-md-full":"styles-module__col-span-md-full__4y9gL",colSpanMdFull:Af,"col-span-lg-1":"styles-module__col-span-lg-1__FG3dm",colSpanLg1:Df,"col-span-lg-2":"styles-module__col-span-lg-2__5dZiG",colSpanLg2:Gf,"col-span-lg-3":"styles-module__col-span-lg-3__oZmcU",colSpanLg3:Ef,"col-span-lg-4":"styles-module__col-span-lg-4__itdqY",colSpanLg4:Rf,"col-span-lg-5":"styles-module__col-span-lg-5__ux3GV",colSpanLg5:Wf,"col-span-lg-6":"styles-module__col-span-lg-6__zf4Bn",colSpanLg6:Ff,"col-span-lg-7":"styles-module__col-span-lg-7__olG9c",colSpanLg7:Uf,"col-span-lg-8":"styles-module__col-span-lg-8__-QheZ",colSpanLg8:Of,"col-span-lg-9":"styles-module__col-span-lg-9__ZXgY2",colSpanLg9:Xf,"col-span-lg-10":"styles-module__col-span-lg-10__bbXiL",colSpanLg10:Kf,"col-span-lg-11":"styles-module__col-span-lg-11__AQw76",colSpanLg11:Yf,"col-span-lg-12":"styles-module__col-span-lg-12__cFfHJ",colSpanLg12:Jf,"col-span-lg-full":"styles-module__col-span-lg-full__IBuri",colSpanLgFull:Qf,"col-span-xl-1":"styles-module__col-span-xl-1__hoqul",colSpanXl1:ed,"col-span-xl-2":"styles-module__col-span-xl-2__iTlZE",colSpanXl2:td,"col-span-xl-3":"styles-module__col-span-xl-3__pw3Vu",colSpanXl3:ad,"col-span-xl-4":"styles-module__col-span-xl-4__NaUdq",colSpanXl4:ld,"col-span-xl-5":"styles-module__col-span-xl-5__NZfk2",colSpanXl5:sd,"col-span-xl-6":"styles-module__col-span-xl-6__piqQd",colSpanXl6:rd,"col-span-xl-7":"styles-module__col-span-xl-7__YGer8",colSpanXl7:id,"col-span-xl-8":"styles-module__col-span-xl-8__Dr6aM",colSpanXl8:od,"col-span-xl-9":"styles-module__col-span-xl-9__zyuUC",colSpanXl9:cd,"col-span-xl-10":"styles-module__col-span-xl-10__1tCT-",colSpanXl10:hd,"col-span-xl-11":"styles-module__col-span-xl-11__4neTT",colSpanXl11:fd,"col-span-xl-12":"styles-module__col-span-xl-12__yqf3o",colSpanXl12:dd,"col-span-xl-full":"styles-module__col-span-xl-full__LIPRp",colSpanXlFull:nd,"row-span-1":"styles-module__row-span-1__zy3Hq",rowSpan1:md,"row-span-2":"styles-module__row-span-2__Z8RpU",rowSpan2:ud,"row-span-3":"styles-module__row-span-3__JkAqM",rowSpan3:vd,"row-span-4":"styles-module__row-span-4__X5Xkb",rowSpan4:pd,"row-span-5":"styles-module__row-span-5__UGWBp",rowSpan5:kd,"row-span-6":"styles-module__row-span-6__Ok7gd",rowSpan6:zd};function N0({columns:t=12,columnsSm:a,columnsMd:i,columnsLg:l,columnsXl:s,gap:r="md",rowGap:h,columnGap:n,alignItems:f,justifyItems:o,justifyContent:m,autoFlow:c,className:q="",children:g,...y}){const p=[a2.grid,a2[`columns-${t}`],a&&a2[`columns-sm-${a}`],i&&a2[`columns-md-${i}`],l&&a2[`columns-lg-${l}`],s&&a2[`columns-xl-${s}`],a2[`gap-${r}`],h&&a2[`row-gap-${h}`],n&&a2[`column-gap-${n}`],f&&a2[`align-${f}`],o&&a2[`justify-items-${o}`],m&&a2[`justify-content-${m}`],c&&a2[`flow-${c}`],q].filter(Boolean).join(" ");return e.jsx("div",{className:p,...y,children:g})}function x0({colSpan:t,colSpanSm:a,colSpanMd:i,colSpanLg:l,colSpanXl:s,rowSpan:r,colStart:h,colEnd:n,rowStart:f,rowEnd:o,className:m="",children:c,...q}){const g=[a2.gridItem,t&&a2[`col-span-${t}`],a&&a2[`col-span-sm-${a}`],i&&a2[`col-span-md-${i}`],l&&a2[`col-span-lg-${l}`],s&&a2[`col-span-xl-${s}`],r&&a2[`row-span-${r}`],m].filter(Boolean).join(" "),y={};return h&&(y.gridColumnStart=h),n&&(y.gridColumnEnd=n),f&&(y.gridRowStart=f),o&&(y.gridRowEnd=o),e.jsx("div",{className:g,style:y,...q,children:c})}N0.Item=x0;const gd="styles-module__container__VdOF1",bd="styles-module__centered__VnHGF",Md="styles-module__size-xs__-MEhp",yd="styles-module__size-sm__ZuE4A",wd="styles-module__size-md__piQ0Z",_d="styles-module__size-lg__Grr0V",qd="styles-module__size-xl__aBZcL",Nd="styles-module__size-2xl__qimqK",xd="styles-module__size-full__02jid",Cd="styles-module__fluid__yUjnw",jd="styles-module__padding-none__BoJqT",Ld="styles-module__padding-sm__jnwGB",Zd="styles-module__padding-md__awpVn",Hd="styles-module__padding-lg__rnErD",Vd="styles-module__padding-xl__vpDQ1",e0={container:gd,centered:bd,"size-xs":"styles-module__size-xs__-MEhp",sizeXs:Md,"size-sm":"styles-module__size-sm__ZuE4A",sizeSm:yd,"size-md":"styles-module__size-md__piQ0Z",sizeMd:wd,"size-lg":"styles-module__size-lg__Grr0V",sizeLg:_d,"size-xl":"styles-module__size-xl__aBZcL",sizeXl:qd,"size-2xl":"styles-module__size-2xl__qimqK",size2Xl:Nd,"size-full":"styles-module__size-full__02jid",sizeFull:xd,fluid:Cd,"padding-none":"styles-module__padding-none__BoJqT",paddingNone:jd,"padding-sm":"styles-module__padding-sm__jnwGB",paddingSm:Ld,"padding-md":"styles-module__padding-md__awpVn",paddingMd:Zd,"padding-lg":"styles-module__padding-lg__rnErD",paddingLg:Hd,"padding-xl":"styles-module__padding-xl__vpDQ1",paddingXl:Vd};function $d({size:t="lg",padding:a="md",centered:i=!0,fluid:l=!1,className:s="",children:r,...h}){const n=[e0.container,!l&&e0[`size-${t}`],e0[`padding-${a}`],i&&e0.centered,l&&e0.fluid,s].filter(Boolean).join(" ");return e.jsx("div",{className:n,...h,children:r})}const Sd="styles-module__spacer__qss6j",Bd="styles-module__axis-vertical__3Kgfw",Td="styles-module__size-xs__SaVUa",Id="styles-module__size-sm__UBNV3",Pd="styles-module__size-md__yESLg",Ad="styles-module__size-lg__vQTo6",Dd="styles-module__size-xl__xnHrI",Gd="styles-module__size-2xl__3-kBv",Ed="styles-module__size-3xl__CLpLD",Rd="styles-module__size-4xl__JaQzV",Wd="styles-module__axis-horizontal__zztIj",Fd="styles-module__axis-both__1qVsg",m0={spacer:Sd,"axis-vertical":"styles-module__axis-vertical__3Kgfw",axisVertical:Bd,"size-xs":"styles-module__size-xs__SaVUa",sizeXs:Td,"size-sm":"styles-module__size-sm__UBNV3",sizeSm:Id,"size-md":"styles-module__size-md__yESLg",sizeMd:Pd,"size-lg":"styles-module__size-lg__vQTo6",sizeLg:Ad,"size-xl":"styles-module__size-xl__xnHrI",sizeXl:Dd,"size-2xl":"styles-module__size-2xl__3-kBv",size2Xl:Gd,"size-3xl":"styles-module__size-3xl__CLpLD",size3Xl:Ed,"size-4xl":"styles-module__size-4xl__JaQzV",size4Xl:Rd,"axis-horizontal":"styles-module__axis-horizontal__zztIj",axisHorizontal:Wd,"axis-both":"styles-module__axis-both__1qVsg",axisBoth:Fd};function Ud({size:t="md",axis:a="vertical",spacing:i,className:l=""}){const s=[m0.spacer,m0[`size-${t}`],m0[`axis-${a}`],l].filter(Boolean).join(" "),r={};if(i!==void 0){const h=typeof i=="number"?`${i}px`:i;switch(a){case"horizontal":r.width=h,r.height=0;break;case"vertical":r.height=h,r.width=0;break;case"both":r.width=h,r.height=h;break}}return e.jsx("div",{className:s,style:r,"aria-hidden":"true"})}const Od="styles-module__skeleton__IE-Vu",Xd="styles-module__animation-pulse__aYSI1",Kd="styles-module__pulse__8b7Cb",Yd="styles-module__animation-wave__88ZQe",Jd="styles-module__wave__5-OJD",Qd="styles-module__variant-text__QpDWV",e9="styles-module__variant-circular__3X6OU",t9="styles-module__variant-rectangular__bDGYd",a9="styles-module__variant-rounded__5rsz7",l9="styles-module__textGroup__djF5j",s0={skeleton:Od,"animation-pulse":"styles-module__animation-pulse__aYSI1",animationPulse:Xd,pulse:Kd,"animation-wave":"styles-module__animation-wave__88ZQe",animationWave:Yd,wave:Jd,"variant-text":"styles-module__variant-text__QpDWV",variantText:Qd,"variant-circular":"styles-module__variant-circular__3X6OU",variantCircular:e9,"variant-rectangular":"styles-module__variant-rectangular__bDGYd",variantRectangular:t9,"variant-rounded":"styles-module__variant-rounded__5rsz7",variantRounded:a9,textGroup:l9};function E2({variant:t="text",width:a,height:i,animation:l="pulse",className:s="",lines:r=1,...h}){const n=()=>{const o={};return a!==void 0&&(o.width=typeof a=="number"?`${a}px`:a),i!==void 0&&(o.height=typeof i=="number"?`${i}px`:i),o},f=[s0.skeleton,s0[`variant-${t}`],l!=="none"&&s0[`animation-${l}`],s].filter(Boolean).join(" ");return t==="text"&&r>1?e.jsx("div",{className:s0.textGroup,...h,children:Array.from({length:r},(o,m)=>e.jsx("div",{className:f,style:{...n(),...m===r-1&&{width:a||"80%"}}},m))}):e.jsx("div",{className:f,style:n(),...h})}function C0({lines:t=3,...a}){return e.jsx(E2,{variant:"text",lines:t,...a})}function j0({size:t=40,...a}){return e.jsx(E2,{variant:"circular",width:t,height:t,...a})}function L0({width:t="100%",height:a=200,...i}){return e.jsx(E2,{variant:"rectangular",width:t,height:a,...i})}E2.Text=C0;E2.Circle=j0;E2.Rectangle=L0;const s9="styles-module__videoContainer__3jwCO",r9="styles-module__video__i5zru",i9="styles-module__aspect-16-9__1C9zz",o9="styles-module__aspect-4-3__d-QMp",c9="styles-module__aspect-1-1__pNYYM",h9="styles-module__aspect-21-9__h138i",u0={videoContainer:s9,video:r9,"aspect-16-9":"styles-module__aspect-16-9__1C9zz",aspect169:i9,"aspect-4-3":"styles-module__aspect-4-3__d-QMp",aspect43:o9,"aspect-1-1":"styles-module__aspect-1-1__pNYYM",aspect11:c9,"aspect-21-9":"styles-module__aspect-21-9__h138i",aspect219:h9},Z0=z.forwardRef(({src:t,sources:a,poster:i,aspectRatio:l="16:9",controls:s=!0,autoPlay:r=!1,loop:h=!1,muted:n=!1,playsInline:f=!0,width:o,height:m,className:c="",loading:q="lazy",onError:g,...y},p)=>{const Z={};o&&(Z.width=typeof o=="number"?`${o}px`:o),m&&(Z.height=typeof m=="number"?`${m}px`:m);const w=[u0.videoContainer,l!=="auto"&&u0[`aspect-${l.replace(":","-")}`],c].filter(Boolean).join(" ");return e.jsx("div",{className:w,style:Z,children:e.jsxs("video",{ref:p,className:u0.video,controls:s,autoPlay:r,loop:h,muted:n,playsInline:f,poster:i,onError:g,...y,children:[a&&a.length>0?a.map((k,N)=>e.jsx("source",{src:k.src,type:k.type},N)):e.jsx("source",{src:t}),"Your browser does not support the video tag."]})})});Z0.displayName="Video";const f9="styles-module__audioContainer__16H-K",d9="styles-module__audio__Mq-EL",n9="styles-module__metadata__avzvt",m9="styles-module__coverArt__uvMH0",u9="styles-module__info__yWEjQ",v9="styles-module__title__zSubd",p9="styles-module__artist__YDHxr",k9="styles-module__album__15liA",z9="styles-module__variant-minimal__kn0IV",g9="styles-module__variant-standard__aqKxT",b9="styles-module__variant-detailed__jUpfp",Z2={audioContainer:f9,audio:d9,metadata:n9,coverArt:m9,info:u9,title:v9,artist:p9,album:k9,"variant-minimal":"styles-module__variant-minimal__kn0IV",variantMinimal:z9,"variant-standard":"styles-module__variant-standard__aqKxT",variantStandard:g9,"variant-detailed":"styles-module__variant-detailed__jUpfp",variantDetailed:b9},H0=z.forwardRef(({src:t,sources:a,title:i,artist:l,album:s,coverArt:r,variant:h="standard",controls:n=!0,autoPlay:f=!1,loop:o=!1,muted:m=!1,preload:c="metadata",className:q="",onError:g,onPlay:y,onPause:p,onEnded:Z,...w},k)=>{const N=[Z2.audioContainer,Z2[`variant-${h}`],q].filter(Boolean).join(" "),_=i||l||s||r;return e.jsxs("div",{className:N,children:[_&&h!=="minimal"&&e.jsxs("div",{className:Z2.metadata,children:[r&&e.jsx("div",{className:Z2.coverArt,children:e.jsx("img",{src:r,alt:i||"Cover art"})}),e.jsxs("div",{className:Z2.info,children:[i&&e.jsx("div",{className:Z2.title,children:i}),l&&e.jsx("div",{className:Z2.artist,children:l}),s&&h==="detailed"&&e.jsx("div",{className:Z2.album,children:s})]})]}),e.jsxs("audio",{ref:k,className:Z2.audio,controls:n,autoPlay:f,loop:o,muted:m,preload:c,onError:g,onPlay:y,onPause:p,onEnded:Z,...w,children:[a&&a.length>0?a.map((d,b)=>e.jsx("source",{src:d.src,type:d.type},b)):e.jsx("source",{src:t}),"Your browser does not support the audio tag."]})]})});H0.displayName="Audio";const M9="styles-module__tagInputContainer__rG-TN",y9="styles-module__fullWidth__nfUqH",w9="styles-module__label__r7qNM",_9="styles-module__inputWrapper__lb9-U",q9="styles-module__disabled__DJG6N",N9="styles-module__sm__f1Ha1",x9="styles-module__lg__bmnGH",C9="styles-module__error__Gtr32",j9="styles-module__success__SgWLH",L9="styles-module__tagsContainer__9dKnO",Z9="styles-module__tag__UTkfA",H9="styles-module__tagLabel__koIV7",V9="styles-module__removeButton__4LMvA",$9="styles-module__input__G3wtc",S9="styles-module__helperText__G6VBC",B9="styles-module__errorText__LPcTb",d2={tagInputContainer:M9,fullWidth:y9,label:w9,inputWrapper:_9,disabled:q9,sm:N9,lg:x9,error:C9,success:j9,tagsContainer:L9,tag:Z9,tagLabel:H9,removeButton:V9,input:$9,helperText:S9,errorText:B9};function T9({tags:t=[],onChange:a,onTagAdd:i,onTagRemove:l,placeholder:s="Add tags...",label:r,error:h,helperText:n,size:f="md",variant:o="default",disabled:m=!1,maxTags:c,separators:q=["Enter",","],allowDuplicates:g=!1,validate:y,removable:p=!0,fullWidth:Z=!1,className:w=""}){const[k,N]=z.useState(""),_=z.useRef(null),d=h?"error":o,b=v=>{const M=v.trim();if(!M||c&&t.length>=c||!g&&t.some(P=>P.label.toLowerCase()===M.toLowerCase())||y&&!y(M))return;const x={id:`${Date.now()}-${Math.random()}`,label:M},B=[...t,x];a?.(B),i?.(x),N("")},V=v=>{if(!p||m)return;const M=t.filter(x=>x.id!==v.id);a?.(M),l?.(v)},j=v=>{const M=k.trim();if(q.includes(v.key)){v.preventDefault(),b(M);return}v.key==="Backspace"&&!k&&t.length>0&&p&&(v.preventDefault(),V(t[t.length-1]))},T=v=>{const M=v.target.value;if(q.includes(",")&&M.includes(",")){const x=M.split(",");x.slice(0,-1).forEach(B=>b(B)),N(x[x.length-1])}else N(M)},L=()=>{_.current?.focus()},C=[d2.tagInputContainer,Z&&d2.fullWidth,w].filter(Boolean).join(" "),$=[d2.inputWrapper,d2[f],d2[d],m&&d2.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[r&&e.jsx("label",{className:d2.label,children:r}),e.jsx("div",{className:$,onClick:L,children:e.jsxs("div",{className:d2.tagsContainer,children:[t.map(v=>e.jsxs("div",{className:d2.tag,children:[e.jsx("span",{className:d2.tagLabel,children:v.label}),p&&!m&&e.jsx("button",{type:"button",className:d2.removeButton,onClick:M=>{M.stopPropagation(),V(v)},"aria-label":`Remove ${v.label}`,children:"×"})]},v.id)),(!c||t.length<c)&&e.jsx("input",{ref:_,type:"text",className:d2.input,value:k,onChange:T,onKeyDown:j,onBlur:()=>{k.trim()&&b(k)},placeholder:t.length===0?s:"",disabled:m})]})}),(h||n)&&e.jsx("span",{className:`${d2.helperText} ${h?d2.errorText:""}`,children:h||n})]})}const I9="styles-module__pinInputContainer__A-JES",P9="styles-module__label__oTDys",A9="styles-module__inputsWrapper__kkWw4",D9="styles-module__pinInput__98qy7",G9="styles-module__sm__soj3i",E9="styles-module__lg__i9e56",R9="styles-module__error__n5-a4",W9="styles-module__success__P-ASa",F9="styles-module__masked__DP3X2",U9="styles-module__helperText__1DBEi",O9="styles-module__errorText__Hr-Sq",w2={pinInputContainer:I9,label:P9,inputsWrapper:A9,pinInput:D9,sm:G9,lg:E9,error:R9,success:W9,masked:F9,helperText:U9,errorText:O9};function X9({length:t=6,type:a="numeric",size:i="md",variant:l="default",mask:s=!1,autoFocus:r=!1,disabled:h=!1,placeholder:n="",label:f,error:o,helperText:m,onChange:c,onComplete:q,value:g,defaultValue:y="",selectOnFocus:p=!0,className:Z=""}){const[w,k]=z.useState(g?.split("")||y.split("").slice(0,t)||Array(t).fill("")),N=z.useRef([]),_=o?"error":l;z.useEffect(()=>{if(g!==void 0){const v=g.split("").slice(0,t);for(;v.length<t;)v.push("");k(v)}},[g,t]),z.useEffect(()=>{r&&N.current[0]&&N.current[0].focus()},[r]);const d=v=>{if(!v)return!0;switch(a){case"numeric":return/^\d$/.test(v);case"alphabetic":return/^[a-zA-Z]$/.test(v);case"alphanumeric":return/^[a-zA-Z0-9]$/.test(v);default:return!0}},b=v=>{N.current[v]&&(N.current[v]?.focus(),p&&N.current[v]?.select())},V=(v,M)=>{const x=M.slice(-1);if(M&&!d(x))return;const B=[...w];B[v]=x,k(B);const P=B.join("");c?.(P),x&&v<t-1&&b(v+1),B.every(D=>D!=="")&&q?.(P)},j=(v,M)=>{if(M.key==="Backspace"){M.preventDefault();const x=[...w];w[v]?(x[v]="",k(x),c?.(x.join(""))):v>0&&(x[v-1]="",k(x),c?.(x.join("")),b(v-1))}if(M.key==="Delete"){M.preventDefault();const x=[...w];x[v]="",k(x),c?.(x.join(""))}M.key==="ArrowLeft"&&v>0&&(M.preventDefault(),b(v-1)),M.key==="ArrowRight"&&v<t-1&&(M.preventDefault(),b(v+1)),M.key==="Home"&&(M.preventDefault(),b(0)),M.key==="End"&&(M.preventDefault(),b(t-1))},T=v=>{v.preventDefault();const x=v.clipboardData.getData("text").slice(0,t).split("").filter(d),B=[...w];x.forEach((D,S)=>{S<t&&(B[S]=D)}),k(B),c?.(B.join(""));const P=B.findIndex(D=>!D);b(P===-1?t-1:P),B.every(D=>D!=="")&&q?.(B.join(""))},L=v=>{p&&N.current[v]&&N.current[v]?.select()},C=[w2.pinInputContainer,Z].filter(Boolean).join(" "),$=[w2.pinInput,w2[i],w2[_],s&&w2.masked,h&&w2.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[f&&e.jsx("label",{className:w2.label,children:f}),e.jsx("div",{className:w2.inputsWrapper,children:Array.from({length:t}).map((v,M)=>e.jsx("input",{ref:x=>N.current[M]=x,type:s?"password":"text",inputMode:a==="numeric"?"numeric":"text",maxLength:1,value:w[M]||"",onChange:x=>V(M,x.target.value),onKeyDown:x=>j(M,x),onPaste:T,onFocus:()=>L(M),disabled:h,placeholder:n,className:$,"aria-label":`PIN digit ${M+1}`},M))}),(o||m)&&e.jsx("span",{className:`${w2.helperText} ${o?w2.errorText:""}`,children:o||m})]})}const K9="styles-module__ratingContainer__F0pJb",Y9="styles-module__label__P8tLy",J9="styles-module__ratingWrapper__vNfnc",Q9="styles-module__rating__NcjYB",en="styles-module__star__1LgQx",tn="styles-module__sm__KTEVu",an="styles-module__md__vRYlw",ln="styles-module__lg__NoGC1",sn="styles-module__readOnly__yNpwH",rn="styles-module__disabled__cME0J",on="styles-module__valueDisplay__KxK-j",cn="styles-module__helperText__-Dh55",_2={ratingContainer:K9,label:Y9,ratingWrapper:J9,rating:Q9,star:en,sm:tn,md:an,lg:ln,readOnly:sn,disabled:rn,valueDisplay:on,helperText:cn};function hn({value:t,defaultValue:a=0,max:i=5,precision:l=1,size:s="md",readOnly:r=!1,disabled:h=!1,label:n,showValue:f=!1,emptyIcon:o,filledIcon:m,halfIcon:c,onChange:q,onHoverChange:g,className:y="",helperText:p}){const[Z,w]=z.useState(a),[k,N]=z.useState(null),_=t!==void 0?t:Z,d=k!==null?k:_,b=!r&&!h,V=v=>{if(!b)return;const M=_===v?0:v;t===void 0&&w(M),q?.(M)},j=(v,M)=>{if(b)if(l===.5){const{left:x,width:B}=M.currentTarget.getBoundingClientRect(),P=(M.clientX-x)/B,D=v+(P>.5?1:.5);N(D),g?.(D)}else{const x=v+1;N(x),g?.(x)}},T=()=>{b&&(N(null),g?.(0))},L=v=>{const M=v+1,x=d>=M,B=l===.5&&d>=M-.5&&d<M;return x?m||"★":B?c||"⯨":o||"☆"},C=[_2.ratingContainer,y].filter(Boolean).join(" "),$=[_2.rating,_2[s],h&&_2.disabled,r&&_2.readOnly].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[n&&e.jsx("label",{className:_2.label,children:n}),e.jsxs("div",{className:_2.ratingWrapper,children:[e.jsx("div",{className:$,onMouseLeave:T,children:Array.from({length:i},(v,M)=>e.jsx("button",{type:"button",className:_2.star,onClick:()=>V(M+1),onMouseMove:x=>j(M,x),disabled:h,"aria-label":`Rate ${M+1} out of ${i}`,children:L(M)},M))}),f&&e.jsxs("span",{className:_2.valueDisplay,children:[d.toFixed(l===.5?1:0)," / ",i]})]}),p&&e.jsx("span",{className:_2.helperText,children:p})]})}const fn="styles-module__window__kkIRc",dn="styles-module__maximized__8yMaC",nn="styles-module__resizable__sHn40",mn="styles-module__size-sm__yjumC",un="styles-module__size-md__kavLf",vn="styles-module__size-lg__IBW3e",pn="styles-module__size-xl__9yXK2",kn="styles-module__size-full__AEyyM",zn="styles-module__variant-default__fGFvQ",gn="styles-module__variant-dark__4x4Z6",bn="styles-module__variant-light__ruY9H",Mn="styles-module__titleBar__q4Nxs",yn="styles-module__draggable__AmUbi",wn="styles-module__titleBarContent__blnTu",_n="styles-module__title__muIAe",qn="styles-module__toolbar__3bLH-",Nn="styles-module__controls__nFGhQ",xn="styles-module__control__qiMAt",Cn="styles-module__minimize__zGRY6",jn="styles-module__maximize__SuZ8f",Ln="styles-module__close__PVa1W",Zn="styles-module__content__ABsnm",Hn="styles-module__footer__g5GSG",l2={window:fn,maximized:dn,resizable:nn,"size-sm":"styles-module__size-sm__yjumC",sizeSm:mn,"size-md":"styles-module__size-md__kavLf",sizeMd:un,"size-lg":"styles-module__size-lg__IBW3e",sizeLg:vn,"size-xl":"styles-module__size-xl__9yXK2",sizeXl:pn,"size-full":"styles-module__size-full__AEyyM",sizeFull:kn,"variant-default":"styles-module__variant-default__fGFvQ",variantDefault:zn,"variant-dark":"styles-module__variant-dark__4x4Z6",variantDark:gn,"variant-light":"styles-module__variant-light__ruY9H",variantLight:bn,titleBar:Mn,draggable:yn,titleBarContent:wn,title:_n,toolbar:qn,controls:Nn,control:xn,minimize:Cn,maximize:jn,close:Ln,content:Zn,footer:Hn};function Vn({title:t="Window",size:a="md",variant:i="default",open:l=!0,closable:s=!0,minimizable:r=!1,maximizable:h=!0,resizable:n=!1,draggable:f=!0,onClose:o,onMinimize:m,onMaximize:c,width:q,height:g,initialX:y=0,initialY:p=0,children:Z,className:w="",showControls:k=!0,toolbar:N,footer:_}){const[d,b]=z.useState(!1),[V,j]=z.useState({x:y,y:p}),[T,L]=z.useState(!1),[C,$]=z.useState({x:0,y:0}),v=z.useRef(null);if(!l)return null;const M=u=>{!f||d||(L(!0),$({x:u.clientX-V.x,y:u.clientY-V.y}))},x=u=>{T&&j({x:u.clientX-C.x,y:u.clientY-C.y})},B=()=>{L(!1)};z.useEffect(()=>{if(T)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",B),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",B)}},[T,C]);const P=()=>{b(!d),c?.()},D={};!d&&f&&(D.transform=`translate(${V.x}px, ${V.y}px)`),q&&(D.width=typeof q=="number"?`${q}px`:q),g&&(D.height=typeof g=="number"?`${g}px`:g);const S=[l2.window,l2[`size-${a}`],l2[`variant-${i}`],d&&l2.maximized,n&&l2.resizable,w].filter(Boolean).join(" ");return e.jsxs("div",{ref:v,className:S,style:D,children:[e.jsxs("div",{className:`${l2.titleBar} ${f&&!d?l2.draggable:""}`,onMouseDown:M,children:[e.jsxs("div",{className:l2.titleBarContent,children:[e.jsx("span",{className:l2.title,children:t}),N&&e.jsx("div",{className:l2.toolbar,children:N})]}),k&&e.jsxs("div",{className:l2.controls,children:[r&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.minimize}`,onClick:m,"aria-label":"Minimize",children:"−"}),h&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.maximize}`,onClick:P,"aria-label":d?"Restore":"Maximize",children:d?"⧉":"□"}),s&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.close}`,onClick:o,"aria-label":"Close",children:"×"})]})]}),e.jsx("div",{className:l2.content,children:Z}),_&&e.jsx("div",{className:l2.footer,children:_})]})}const $n="styles-module__gaugeContainer__BnFBJ",Sn="styles-module__svg__IOyJ8",Bn="styles-module__animatedPath__MmF1n",Tn="styles-module__gaugeAnimation__Hxuof",In="styles-module__centerText__-aFc6",Pn="styles-module__value__f21LN",An="styles-module__unit__f4531",Dn="styles-module__label__3mWKl",Gn="styles-module__minMaxLabels__Zc16l",En="styles-module__minLabel__gGD9N",Rn="styles-module__maxLabel__tNNbn",Wn="styles-module__sm__5ZJIU",Fn="styles-module__md__ZNSR1",Un="styles-module__lg__BS4ab",On="styles-module__xl__Qeyec",M2={gaugeContainer:$n,svg:Sn,animatedPath:Bn,gaugeAnimation:Tn,centerText:In,value:Pn,unit:An,label:Dn,minMaxLabels:Gn,minLabel:En,maxLabel:Rn,sm:Wn,md:Fn,lg:Un,xl:On};function Xn({value:t,min:a=0,max:i=100,size:l="md",variant:s="default",thickness:r=12,label:h,showValue:n=!0,valueFormatter:f,showMinMax:o=!1,startAngle:m=-135,endAngle:c=135,animate:q=!0,className:g="",unit:y=""}){const p=Math.max(a,Math.min(i,t)),Z=(p-a)/(i-a)*100,w=50-r/2,k=2*Math.PI*w,N=m*Math.PI/180,_=c*Math.PI/180,d=_-N,b=N+d*Z/100,V=50+w*Math.sin(N),j=50-w*Math.cos(N),T=50+w*Math.sin(_),L=50-w*Math.cos(_),C=50+w*Math.sin(b),$=50-w*Math.cos(b),v=Math.abs(c-m)>180?1:0,M=Z/100*Math.abs(c-m)>180?1:0,x=`M ${V} ${j} A ${w} ${w} 0 ${v} 1 ${T} ${L}`,B=Z>0?`M ${V} ${j} A ${w} ${w} 0 ${M} 1 ${C} ${$}`:"",P=f?f(p):p.toFixed(0),D=[M2.gaugeContainer,M2[l],g].filter(Boolean).join(" "),S={default:"rgba(99, 102, 241, 0.8)",success:"rgba(34, 197, 94, 0.8)",warning:"rgba(251, 191, 36, 0.8)",error:"rgba(239, 68, 68, 0.8)",info:"rgba(59, 130, 246, 0.8)"};return e.jsxs("div",{className:D,children:[e.jsxs("svg",{className:M2.svg,viewBox:"0 0 100 100",children:[e.jsx("path",{d:x,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:r,strokeLinecap:"round"}),Z>0&&e.jsx("path",{d:B,fill:"none",stroke:S[s],strokeWidth:r,strokeLinecap:"round",className:q?M2.animatedPath:"",style:{strokeDasharray:k,strokeDashoffset:k*(1-Z/100)}}),e.jsxs("g",{className:M2.centerText,children:[n&&e.jsxs("text",{x:"50",y:h?"45":"52",className:M2.value,children:[P,y&&e.jsx("tspan",{className:M2.unit,children:y})]}),h&&e.jsx("text",{x:"50",y:n?"60":"52",className:M2.label,children:h})]})]}),o&&e.jsxs("div",{className:M2.minMaxLabels,children:[e.jsx("span",{className:M2.minLabel,children:a}),e.jsx("span",{className:M2.maxLabel,children:i})]})]})}const Kn="styles-module__colorPickerContainer__GcH66",Yn="styles-module__label__t8ugX",Jn="styles-module__inputWrapper__DD6E-",Qn="styles-module__colorButton__gbskz",em="styles-module__disabled__f-loV",tm="styles-module__colorPreview__toNQY",am="styles-module__colorInput__LWEMn",lm="styles-module__popover__x3a-e",sm="styles-module__pickerContent__2W72c",rm="styles-module__nativeColorPicker__rPI-9",im="styles-module__presets__IuFHV",om="styles-module__quickColors__YOCtI",cm="styles-module__presetsLabel__2bK2r",hm="styles-module__quickColorsLabel__jiYjL",fm="styles-module__presetsGrid__VDTHM",dm="styles-module__presetButton__5wc-z",nm="styles-module__active__SqIPE",mm="styles-module__quickColorsGrid__9ZX0W",um="styles-module__quickColorButton__2FpSv",vm="styles-module__helperText__AqKTN",pm="styles-module__errorText__cardI",J={colorPickerContainer:Kn,label:Yn,inputWrapper:Jn,colorButton:Qn,disabled:em,colorPreview:tm,colorInput:am,popover:lm,pickerContent:sm,nativeColorPicker:rm,presets:im,quickColors:om,presetsLabel:cm,quickColorsLabel:hm,presetsGrid:fm,presetButton:dm,active:nm,quickColorsGrid:mm,quickColorButton:um,helperText:vm,errorText:pm},km=t=>{const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null},zm=(t,a,i)=>{t/=255,a/=255,i/=255;const l=Math.max(t,a,i),s=Math.min(t,a,i);let r=0,h=0;const n=(l+s)/2;if(l!==s){const f=l-s;switch(h=n>.5?f/(2-l-s):f/(l+s),l){case t:r=((a-i)/f+(a<i?6:0))/6;break;case a:r=((i-t)/f+2)/6;break;case i:r=((t-a)/f+4)/6;break}}return{h:Math.round(r*360),s:Math.round(h*100),l:Math.round(n*100)}};function gm({value:t,defaultValue:a="#6366f1",onChange:i,format:l="hex",label:s,disabled:r=!1,showPresets:h=!0,presets:n=["#ef4444","#f97316","#f59e0b","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#ec4899"],showAlpha:f=!1,className:o="",helperText:m,error:c}){const[q,g]=z.useState(a),[y,p]=z.useState(!1),Z=z.useRef(null),w=t!==void 0?t:q;z.useEffect(()=>{const d=b=>{Z.current&&!Z.current.contains(b.target)&&p(!1)};return y&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[y]);const k=d=>{t===void 0&&g(d),i?.(d)},N=d=>{const b=km(d);if(!b)return d;switch(l){case"rgb":return`rgb(${b.r}, ${b.g}, ${b.b})`;case"hsl":const V=zm(b.r,b.g,b.b);return`hsl(${V.h}, ${V.s}%, ${V.l}%)`;default:return d}},_=[J.colorPickerContainer,o].filter(Boolean).join(" ");return e.jsxs("div",{className:_,children:[s&&e.jsx("label",{className:J.label,children:s}),e.jsxs("div",{className:J.inputWrapper,ref:Z,children:[e.jsx("button",{type:"button",className:`${J.colorButton} ${r?J.disabled:""}`,onClick:()=>!r&&p(!y),disabled:r,style:{backgroundColor:w},"aria-label":"Select color",children:e.jsx("span",{className:J.colorPreview,style:{backgroundColor:w}})}),e.jsx("input",{type:"text",className:J.colorInput,value:N(w),onChange:d=>k(d.target.value),disabled:r,placeholder:"#000000"}),y&&!r&&e.jsx("div",{className:J.popover,children:e.jsxs("div",{className:J.pickerContent,children:[e.jsx("input",{type:"color",className:J.nativeColorPicker,value:w,onChange:d=>k(d.target.value)}),h&&e.jsxs("div",{className:J.presets,children:[e.jsx("div",{className:J.presetsLabel,children:"Presets"}),e.jsx("div",{className:J.presetsGrid,children:n.map(d=>e.jsx("button",{type:"button",className:`${J.presetButton} ${d===w?J.active:""}`,style:{backgroundColor:d},onClick:()=>k(d),"aria-label":`Select ${d}`},d))})]}),e.jsxs("div",{className:J.quickColors,children:[e.jsx("div",{className:J.quickColorsLabel,children:"Quick Colors"}),e.jsxs("div",{className:J.quickColorsGrid,children:[e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#000000"},onClick:()=>k("#000000")}),e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#ffffff"},onClick:()=>k("#ffffff")}),e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#808080"},onClick:()=>k("#808080")})]})]})]})})]}),(c||m)&&e.jsx("span",{className:`${J.helperText} ${c?J.errorText:""}`,children:c||m})]})}const bm="styles-module__dataList__0oRGD",Mm="styles-module__item__eOSeD",ym="styles-module__highlight__DdCec",wm="styles-module__horizontal__GB4WY",_m="styles-module__label__75f3b",qm="styles-module__value__aOT7v",Nm="styles-module__vertical__H42DV",xm="styles-module__bold__mfZsI",Cm="styles-module__icon__EoISr",jm="styles-module__labelText__ca0Gf",Lm="styles-module__helpText__CW7oi",Zm="styles-module__valueContent__NlivI",Hm="styles-module__copyButton__pQctE",Vm="styles-module__dividers__uU1uU",$m="styles-module__striped__7ArH9",Sm="styles-module__sm__J9JEm",Bm="styles-module__md__stc8l",Tm="styles-module__lg__iKJsr",c2={dataList:bm,item:Mm,highlight:ym,horizontal:wm,label:_m,value:qm,vertical:Nm,bold:xm,icon:Cm,labelText:jm,helpText:Lm,valueContent:Zm,copyButton:Hm,dividers:Vm,striped:$m,sm:Sm,md:Bm,lg:Tm};function Im({items:t,orientation:a="horizontal",size:i="md",dividers:l=!0,boldLabels:s=!0,className:r="",labelWidth:h,striped:n=!1,onCopy:f}){const o=async m=>{if(!(!m.copyable||typeof m.value!="string"))try{await navigator.clipboard.writeText(m.value),f?.(m)}catch(c){console.error("Failed to copy:",c)}};return e.jsx("dl",{className:`${c2.dataList} ${c2[a]} ${c2[i]} ${l?c2.dividers:""} ${n?c2.striped:""} ${r}`,style:{"--label-width":h},children:t.map((m,c)=>e.jsxs("div",{className:`${c2.item} ${m.highlight?c2.highlight:""} ${m.className||""}`,children:[e.jsxs("dt",{className:`${c2.label} ${s?c2.bold:""}`,children:[m.icon&&e.jsx("span",{className:c2.icon,children:m.icon}),e.jsxs("span",{className:c2.labelText,children:[m.label,m.helpText&&e.jsx("span",{className:c2.helpText,title:m.helpText,children:"?"})]})]}),e.jsxs("dd",{className:c2.value,children:[e.jsx("span",{className:c2.valueContent,children:m.value}),m.copyable&&e.jsx("button",{type:"button",className:c2.copyButton,onClick:()=>o(m),"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"})})})]})]},m.id))})}const Pm="styles-module__statCard__oYt00",Am="styles-module__bordered__A56Xz",Dm="styles-module__clickable__mMZBY",Gm="styles-module__header__IYBwN",Em="styles-module__labelContainer__mSkYw",Rm="styles-module__icon__-4Vf1",Wm="styles-module__label__xxYm9",Fm="styles-module__content__RE4Xm",Um="styles-module__valueContainer__o1jtt",Om="styles-module__value__ZjSG8",Xm="styles-module__prefix__jaOdQ",Km="styles-module__suffix__9g-Zt",Ym="styles-module__description__DOrYb",Jm="styles-module__changeContainer__p4K9m",Qm="styles-module__trendIcon__8hzJD",eu="styles-module__trend-up__EkKSW",tu="styles-module__trend-down__PAAY-",au="styles-module__trend-neutral__1OaEM",lu="styles-module__footer__y26Lt",su="styles-module__loading__q9k-W",ru="styles-module__loadingSkeleton__eMNrK",iu="styles-module__skeletonValue__Pio1n",ou="styles-module__shimmer__OH-3R",cu="styles-module__skeletonDescription__Qws61",hu="styles-module__sm__t0NLs",fu="styles-module__md__f-ZAw",du="styles-module__lg__o7Q4y",nu="styles-module__primary__Kp-sj",mu="styles-module__success__Q5jxs",uu="styles-module__warning__l8Nwy",vu="styles-module__error__tcxHs",pu="styles-module__info__cF-x1",W={statCard:Pm,bordered:Am,clickable:Dm,header:Gm,labelContainer:Em,icon:Rm,label:Wm,content:Fm,valueContainer:Um,value:Om,prefix:Xm,suffix:Km,description:Ym,changeContainer:Jm,trendIcon:Qm,"trend-up":"styles-module__trend-up__EkKSW",trendUp:eu,"trend-down":"styles-module__trend-down__PAAY-",trendDown:tu,"trend-neutral":"styles-module__trend-neutral__1OaEM",trendNeutral:au,footer:lu,loading:su,loadingSkeleton:ru,skeletonValue:iu,shimmer:ou,skeletonDescription:cu,sm:hu,md:fu,lg:du,default:"styles-module__default__AaRSX",primary:nu,success:mu,warning:uu,error:vu,info:pu};function ku({value:t,label:a,icon:i,variant:l="default",size:s="md",change:r,trend:h,description:n,footer:f,loading:o=!1,className:m="",onClick:c,bordered:q=!1,prefix:g,suffix:y}){const p=!!c,Z=()=>o?e.jsx("div",{className:W.loadingSkeleton,children:e.jsx("div",{className:W.skeletonValue})}):e.jsxs("div",{className:W.valueContainer,children:[g&&e.jsx("span",{className:W.prefix,children:g}),e.jsx("span",{className:W.value,children:t}),y&&e.jsx("span",{className:W.suffix,children:y})]}),w=()=>{if(!r&&!h)return null;const k=h?W[`trend-${h}`]:r?.startsWith("+")||r?.startsWith("↑")?W["trend-up"]:r?.startsWith("-")||r?.startsWith("↓")?W["trend-down"]:W["trend-neutral"];return e.jsxs("div",{className:`${W.changeContainer} ${k}`,children:[h==="up"&&!r?.includes("↑")&&!r?.includes("▲")&&e.jsx("span",{className:W.trendIcon,children:"↑"}),h==="down"&&!r?.includes("↓")&&!r?.includes("▼")&&e.jsx("span",{className:W.trendIcon,children:"↓"}),h==="neutral"&&!r?.includes("→")&&e.jsx("span",{className:W.trendIcon,children:"→"}),r&&e.jsx("span",{className:W.change,children:r})]})};return e.jsxs("div",{className:`${W.statCard} ${W[l]} ${W[s]} ${p?W.clickable:""} ${q?W.bordered:""} ${o?W.loading:""} ${m}`,onClick:c,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:p?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c?.())}:void 0,children:[e.jsxs("div",{className:W.header,children:[e.jsxs("div",{className:W.labelContainer,children:[i&&e.jsx("span",{className:W.icon,children:i}),e.jsx("span",{className:W.label,children:a})]}),w()]}),e.jsxs("div",{className:W.content,children:[Z(),n&&!o&&e.jsx("p",{className:W.description,children:n}),o&&n&&e.jsx("div",{className:W.loadingSkeleton,children:e.jsx("div",{className:W.skeletonDescription})})]}),f&&!o&&e.jsx("div",{className:W.footer,children:f})]})}const zu="styles-module__split__10amd",gu="styles-module__horizontal__nWMIm",bu="styles-module__vertical__dHG5L",Mu="styles-module__pane__eLr0i",yu="styles-module__gutter__bzVSj",wu="styles-module__gutterHandle__laNCM",_u="styles-module__dragging__GRmLp",qu="styles-module__disabled__-Lei8",P2={split:zu,horizontal:gu,vertical:bu,pane:Mu,gutter:yu,gutterHandle:wu,dragging:_u,disabled:qu};function Nu({direction:t="horizontal",initialSize:a=50,minSize:i=100,maxSize:l,children:s,onResize:r,className:h="",disabled:n=!1,snapPositions:f=[],snapThreshold:o=20,gutterSize:m=8}){const[c,q]=z.useState(a),[g,y]=z.useState(!1),p=z.useRef(null),Z=z.useRef(0),w=z.useRef(0),k=t==="horizontal",N=C=>{n||(C.preventDefault(),y(!0),Z.current=k?C.clientX:C.clientY,w.current=c)},_=z.useCallback(C=>{if(!g||!p.current)return;const v=p.current.getBoundingClientRect(),M=k?v.width:v.height,x=k?C.clientX:C.clientY;k?v.left:v.top;const P=(x-Z.current)/M*100;let D=w.current+P;const S=i/M*100;let u=100-S;if(l&&(u=Math.min(u,l/M*100)),D=Math.max(S,Math.min(u,D)),f.length>0)for(const H of f){const R=H/100*M,s2=D/100*M;if(Math.abs(s2-R)<o){D=H;break}}q(D),r?.(D)},[g,k,i,l,f,o,r]),d=z.useCallback(()=>{g&&y(!1)},[g]);z.useEffect(()=>{if(g)return document.addEventListener("mousemove",_),document.addEventListener("mouseup",d),document.body.style.userSelect="none",document.body.style.cursor=k?"col-resize":"row-resize",()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",d),document.body.style.userSelect="",document.body.style.cursor=""}},[g,_,d,k]);const b=C=>{if(n)return;C.preventDefault(),y(!0);const $=C.touches[0];Z.current=k?$.clientX:$.clientY,w.current=c},V=z.useCallback(C=>{if(!g||!p.current)return;const $=C.touches[0],M=p.current.getBoundingClientRect(),x=k?M.width:M.height,D=((k?$.clientX:$.clientY)-Z.current)/x*100;let S=w.current+D;const u=i/x*100;let H=100-u;if(l&&(H=Math.min(H,l/x*100)),S=Math.max(u,Math.min(H,S)),f.length>0)for(const R of f){const s2=R/100*x,r2=S/100*x;if(Math.abs(r2-s2)<o){S=R;break}}q(S),r?.(S)},[g,k,i,l,f,o,r]),j=z.useCallback(()=>{g&&y(!1)},[g]);z.useEffect(()=>{if(g)return document.addEventListener("touchmove",V),document.addEventListener("touchend",j),()=>{document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)}},[g,V,j]);const[T,L]=s;return e.jsxs("div",{ref:p,className:`${P2.split} ${P2[t]} ${g?P2.dragging:""} ${n?P2.disabled:""} ${h}`,children:[e.jsx("div",{className:P2.pane,style:{[k?"width":"height"]:`${c}%`},children:T}),e.jsx("div",{className:P2.gutter,style:{[k?"width":"height"]:`${m}px`},onMouseDown:N,onTouchStart:b,role:"separator","aria-orientation":t,"aria-valuenow":c,"aria-valuemin":i,"aria-valuemax":l||100,children:e.jsx("div",{className:P2.gutterHandle})}),e.jsx("div",{className:P2.pane,style:{flex:1},children:L})]})}const xu="styles-module__imageGallery__1ewHX",Cu="styles-module__carouselContainer__CELQo",ju="styles-module__carouselMain__228vS",Lu="styles-module__carouselTrack__KssOC",Zu="styles-module__carouselSlide__pjIfk",Hu="styles-module__carouselImage__QcK-1",Vu="styles-module__sm__oyagg",$u="styles-module__md__fP0C0",Su="styles-module__lg__yaqEo",Bu="styles-module__arrow__fKqP7",Tu="styles-module__arrowLeft__KpeXV",Iu="styles-module__arrowRight__K9tqV",Pu="styles-module__indicators__BuRqL",Au="styles-module__indicator__W0UZw",Du="styles-module__active__rCFls",Gu="styles-module__thumbnails__rbSf8",Eu="styles-module__thumbnail__uw-GG",Ru="styles-module__caption__WXDtk",Wu="styles-module__grid__Godk8",Fu="styles-module__gridItem__R13Ho",Uu="styles-module__gridOverlay__2Y-3Z",Ou="styles-module__gridTitle__9Q2p3",Xu="styles-module__gridCaption__mpcNh",Ku="styles-module__masonry__tNDHq",Yu="styles-module__masonryItem__22ZfL",Ju="styles-module__masonryOverlay__nQ91c",Qu="styles-module__masonryTitle__WhvJr",ev="styles-module__masonryCaption__HP0Zk",tv="styles-module__lightbox__DLFIG",av="styles-module__fadeIn__DWqo2",lv="styles-module__lightboxContent__45Wxl",sv="styles-module__zoomIn__CIB6-",rv="styles-module__lightboxClose__9oi0c",iv="styles-module__lightboxArrow__f6Qhq",ov="styles-module__lightboxArrowLeft__qHu5S",cv="styles-module__lightboxArrowRight__4wu-Y",hv="styles-module__lightboxCaption__gVJhg",fv="styles-module__lightboxTitle__M-1gH",dv="styles-module__lightboxCounter__mpIt8",E={imageGallery:xu,carouselContainer:Cu,carouselMain:ju,carouselTrack:Lu,carouselSlide:Zu,carouselImage:Hu,sm:Vu,md:$u,lg:Su,arrow:Bu,arrowLeft:Tu,arrowRight:Iu,indicators:Pu,indicator:Au,active:Du,thumbnails:Gu,thumbnail:Eu,caption:Ru,grid:Wu,gridItem:Fu,gridOverlay:Uu,gridTitle:Ou,gridCaption:Xu,masonry:Ku,masonryItem:Yu,masonryOverlay:Ju,masonryTitle:Qu,masonryCaption:ev,lightbox:tv,fadeIn:av,lightboxContent:lv,zoomIn:sv,lightboxClose:rv,lightboxArrow:iv,lightboxArrowLeft:ov,lightboxArrowRight:cv,lightboxCaption:hv,lightboxTitle:fv,lightboxCounter:dv};function nv({images:t,variant:a="carousel",size:i="md",initialIndex:l=0,showThumbnails:s=!1,showCaptions:r=!0,autoPlay:h=0,columns:n=3,gap:f=16,lightbox:o=!0,className:m="",onImageClick:c,onIndexChange:q,showArrows:g=!0,showIndicators:y=!0,infinite:p=!0}){const[Z,w]=z.useState(l),[k,N]=z.useState(!1),[_,d]=z.useState(0),[b,V]=z.useState(!1),j=z.useRef(),T=z.useCallback(()=>{b||(V(!0),w(u=>{const H=u===0?p?t.length-1:0:u-1;return q?.(H),H}),setTimeout(()=>V(!1),300))},[t.length,p,q,b]),L=z.useCallback(()=>{b||(V(!0),w(u=>{const H=u===t.length-1?p?0:t.length-1:u+1;return q?.(H),H}),setTimeout(()=>V(!1),300))},[t.length,p,q,b]),C=(u,H)=>{c?.(u,H),o&&(d(H),N(!0))},$=u=>{w(u),q?.(u)},v=()=>{N(!1)},M=()=>{d(u=>u===0?t.length-1:u-1)},x=()=>{d(u=>u===t.length-1?0:u+1)};z.useEffect(()=>{if(a==="carousel"&&h>0)return j.current=setInterval(()=>{L()},h),()=>{j.current&&clearInterval(j.current)}},[a,h,L]),z.useEffect(()=>{const u=H=>{k?(H.key==="Escape"&&v(),H.key==="ArrowLeft"&&M(),H.key==="ArrowRight"&&x()):a==="carousel"&&(H.key==="ArrowLeft"&&T(),H.key==="ArrowRight"&&L())};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[k,a,T,L]);const B=()=>e.jsxs("div",{className:E.carouselContainer,children:[e.jsxs("div",{className:E.carouselMain,children:[e.jsx("div",{className:E.carouselTrack,style:{transform:`translateX(-${Z*100}%)`},children:t.map((u,H)=>e.jsxs("div",{className:E.carouselSlide,onClick:()=>C(u,H),children:[e.jsx("img",{src:u.src,alt:u.alt,className:E.carouselImage}),r&&u.caption&&e.jsx("div",{className:E.caption,children:u.caption})]},u.id))}),g&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${E.arrow} ${E.arrowLeft}`,onClick:T,"aria-label":"Previous image",disabled:!p&&Z===0,children:"‹"}),e.jsx("button",{className:`${E.arrow} ${E.arrowRight}`,onClick:L,"aria-label":"Next image",disabled:!p&&Z===t.length-1,children:"›"})]})]}),y&&e.jsx("div",{className:E.indicators,children:t.map((u,H)=>e.jsx("button",{className:`${E.indicator} ${H===Z?E.active:""}`,onClick:()=>{w(H),q?.(H)},"aria-label":`Go to image ${H+1}`},H))}),s&&e.jsx("div",{className:E.thumbnails,children:t.map((u,H)=>e.jsx("button",{className:`${E.thumbnail} ${H===Z?E.active:""}`,onClick:()=>$(H),"aria-label":`Select image ${H+1}`,children:e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt})},u.id))})]}),P=()=>e.jsx("div",{className:E.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`,gap:`${f}px`},children:t.map((u,H)=>e.jsxs("div",{className:E.gridItem,onClick:()=>C(u,H),children:[e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt}),r&&(u.caption||u.title)&&e.jsxs("div",{className:E.gridOverlay,children:[u.title&&e.jsx("div",{className:E.gridTitle,children:u.title}),u.caption&&e.jsx("div",{className:E.gridCaption,children:u.caption})]})]},u.id))}),D=()=>e.jsx("div",{className:E.masonry,style:{columnCount:n,columnGap:`${f}px`},children:t.map((u,H)=>e.jsxs("div",{className:E.masonryItem,style:{marginBottom:`${f}px`},onClick:()=>C(u,H),children:[e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt}),r&&(u.caption||u.title)&&e.jsxs("div",{className:E.masonryOverlay,children:[u.title&&e.jsx("div",{className:E.masonryTitle,children:u.title}),u.caption&&e.jsx("div",{className:E.masonryCaption,children:u.caption})]})]},u.id))}),S=()=>{if(!k)return null;const u=t[_];return e.jsxs("div",{className:E.lightbox,onClick:v,children:[e.jsx("button",{className:E.lightboxClose,onClick:v,"aria-label":"Close lightbox",children:"×"}),e.jsx("button",{className:`${E.lightboxArrow} ${E.lightboxArrowLeft}`,onClick:H=>{H.stopPropagation(),M()},"aria-label":"Previous image",children:"‹"}),e.jsxs("div",{className:E.lightboxContent,onClick:H=>H.stopPropagation(),children:[e.jsx("img",{src:u.src,alt:u.alt}),(u.caption||u.title)&&e.jsxs("div",{className:E.lightboxCaption,children:[u.title&&e.jsx("div",{className:E.lightboxTitle,children:u.title}),u.caption&&e.jsx("div",{children:u.caption})]})]}),e.jsx("button",{className:`${E.lightboxArrow} ${E.lightboxArrowRight}`,onClick:H=>{H.stopPropagation(),x()},"aria-label":"Next image",children:"›"}),e.jsxs("div",{className:E.lightboxCounter,children:[_+1," / ",t.length]})]})};return e.jsxs("div",{className:`${E.imageGallery} ${E[a]} ${E[i]} ${m}`,children:[a==="carousel"&&B(),a==="grid"&&P(),a==="masonry"&&D(),S()]})}const mv="styles-module__themeToggle__6zyVl",uv="styles-module__iconContainer__-mq02",vv="styles-module__icon__yzZOS",pv="styles-module__sun__wk-Eu",kv="styles-module__moon__OtQ8C",zv="styles-module__light__WvEIx",gv="styles-module__dark__zXrhJ",A2={themeToggle:mv,iconContainer:uv,icon:vv,sun:pv,moon:kv,light:zv,dark:gv};function bv({defaultTheme:t="dark",onThemeChange:a,className:i="",...l}){const[s,r]=z.useState(()=>typeof window>"u"?t:localStorage.getItem("theme")||t);z.useEffect(()=>{s==="light"?document.body.classList.add("light-mode"):document.body.classList.remove("light-mode"),localStorage.setItem("theme",s),a?.(s)},[s,a]);const h=()=>{r(n=>n==="light"?"dark":"light")};return e.jsx("button",{type:"button",className:`${A2.themeToggle} ${i}`,onClick:h,"aria-label":"Toggle theme",...l,children:e.jsxs("div",{className:`${A2.iconContainer} ${s==="light"?A2.light:A2.dark}`,children:[e.jsxs("svg",{className:`${A2.icon} ${A2.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:`${A2.icon} ${A2.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 Mv="styles-module__languageSelectContainer__Xulku",yv="styles-module__label__5r4RN",wv="styles-module__languageSelect__gSAkW",_v="styles-module__disabled__-9pxf",qv="styles-module__trigger__Icsh6",Nv="styles-module__flag__n4YbG",xv="styles-module__open__c-08x",Cv="styles-module__chevron__1XEr0",jv="styles-module__selectedText__tGBSV",Lv="styles-module__languageName__EnqxF",Zv="styles-module__nativeName__Qvg9C",Hv="styles-module__dropdown__m7E55",Vv="styles-module__searchContainer__n15Bi",$v="styles-module__searchIcon__EKL9D",Sv="styles-module__searchInput__mnR-j",Bv="styles-module__list__KJT7D",Tv="styles-module__option__zxNEH",Iv="styles-module__highlighted__wHxl6",Pv="styles-module__optionFlag__FbLUG",Av="styles-module__selected__s0-8V",Dv="styles-module__optionName__NIJdm",Gv="styles-module__optionText__3cC-4",Ev="styles-module__optionNative__4Poud",Rv="styles-module__checkIcon__dOQGx",Wv="styles-module__noResults__uck5W",X={languageSelectContainer:Mv,label:yv,languageSelect:wv,disabled:_v,trigger:qv,flag:Nv,open:xv,chevron:Cv,selectedText:jv,languageName:Lv,nativeName:Zv,dropdown:Hv,searchContainer:Vv,searchIcon:$v,searchInput:Sv,list:Bv,option:Tv,highlighted:Iv,optionFlag:Pv,selected:Av,optionName:Dv,optionText:Gv,optionNative:Ev,checkIcon:Rv,noResults:Wv},Fv=[{code:"en",name:"English",nativeName:"English",flag:"us"},{code:"zh",name:"Chinese (Simplified)",nativeName:"简体中文",flag:"cn"},{code:"zh-TW",name:"Chinese (Traditional)",nativeName:"繁體中文",flag:"tw"},{code:"es",name:"Spanish",nativeName:"Español",flag:"es"},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"in"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"sa"},{code:"bn",name:"Bengali",nativeName:"বাংলা",flag:"bd"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"pt"},{code:"pt-BR",name:"Portuguese (Brazil)",nativeName:"Português (Brasil)",flag:"br"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"ru"},{code:"ja",name:"Japanese",nativeName:"日本語",flag:"jp"},{code:"pa",name:"Punjabi",nativeName:"ਪੰਜਾਬੀ",flag:"in"},{code:"de",name:"German",nativeName:"Deutsch",flag:"de"},{code:"jv",name:"Javanese",nativeName:"Basa Jawa",flag:"id"},{code:"ko",name:"Korean",nativeName:"한국어",flag:"kr"},{code:"fr",name:"French",nativeName:"Français",flag:"fr"},{code:"te",name:"Telugu",nativeName:"తెలుగు",flag:"in"},{code:"mr",name:"Marathi",nativeName:"मराठी",flag:"in"},{code:"tr",name:"Turkish",nativeName:"Türkçe",flag:"tr"},{code:"ta",name:"Tamil",nativeName:"தமிழ்",flag:"in"},{code:"vi",name:"Vietnamese",nativeName:"Tiếng Việt",flag:"vn"},{code:"ur",name:"Urdu",nativeName:"اردو",flag:"pk"},{code:"it",name:"Italian",nativeName:"Italiano",flag:"it"},{code:"th",name:"Thai",nativeName:"ไทย",flag:"th"},{code:"gu",name:"Gujarati",nativeName:"ગુજરાતી",flag:"in"},{code:"pl",name:"Polish",nativeName:"Polski",flag:"pl"},{code:"uk",name:"Ukrainian",nativeName:"Українська",flag:"ua"},{code:"ml",name:"Malayalam",nativeName:"മലയാളം",flag:"in"},{code:"kn",name:"Kannada",nativeName:"ಕನ್ನಡ",flag:"in"},{code:"or",name:"Odia",nativeName:"ଓଡ଼ିଆ",flag:"in"},{code:"my",name:"Burmese",nativeName:"မြန်မာဘာသာ",flag:"mm"},{code:"fa",name:"Persian",nativeName:"فارسی",flag:"ir"},{code:"nl",name:"Dutch",nativeName:"Nederlands",flag:"nl"},{code:"ro",name:"Romanian",nativeName:"Română",flag:"ro"},{code:"sv",name:"Swedish",nativeName:"Svenska",flag:"se"},{code:"hu",name:"Hungarian",nativeName:"Magyar",flag:"hu"},{code:"cs",name:"Czech",nativeName:"Čeština",flag:"cz"},{code:"el",name:"Greek",nativeName:"Ελληνικά",flag:"gr"},{code:"he",name:"Hebrew",nativeName:"עברית",flag:"il"},{code:"fi",name:"Finnish",nativeName:"Suomi",flag:"fi"},{code:"da",name:"Danish",nativeName:"Dansk",flag:"dk"},{code:"no",name:"Norwegian",nativeName:"Norsk",flag:"no"},{code:"sk",name:"Slovak",nativeName:"Slovenčina",flag:"sk"},{code:"bg",name:"Bulgarian",nativeName:"Български",flag:"bg"},{code:"hr",name:"Croatian",nativeName:"Hrvatski",flag:"hr"},{code:"sr",name:"Serbian",nativeName:"Српски",flag:"rs"},{code:"lt",name:"Lithuanian",nativeName:"Lietuvių",flag:"lt"},{code:"lv",name:"Latvian",nativeName:"Latviešu",flag:"lv"},{code:"et",name:"Estonian",nativeName:"Eesti",flag:"ee"},{code:"sl",name:"Slovenian",nativeName:"Slovenščina",flag:"si"},{code:"ms",name:"Malay",nativeName:"Bahasa Melayu",flag:"my"},{code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",flag:"id"},{code:"tl",name:"Tagalog",nativeName:"Tagalog",flag:"ph"},{code:"sw",name:"Swahili",nativeName:"Kiswahili",flag:"ke"},{code:"af",name:"Afrikaans",nativeName:"Afrikaans",flag:"za"},{code:"ca",name:"Catalan",nativeName:"Català",flag:"es-ct"},{code:"eu",name:"Basque",nativeName:"Euskara",flag:"es-pv"},{code:"gl",name:"Galician",nativeName:"Galego",flag:"es-ga"},{code:"is",name:"Icelandic",nativeName:"Íslenska",flag:"is"},{code:"ga",name:"Irish",nativeName:"Gaeilge",flag:"ie"},{code:"cy",name:"Welsh",nativeName:"Cymraeg",flag:"gb-wls"},{code:"gd",name:"Scottish Gaelic",nativeName:"Gàidhlig",flag:"gb-sct"},{code:"sq",name:"Albanian",nativeName:"Shqip",flag:"al"},{code:"mk",name:"Macedonian",nativeName:"Македонски",flag:"mk"},{code:"bs",name:"Bosnian",nativeName:"Bosanski",flag:"ba"},{code:"ka",name:"Georgian",nativeName:"ქართული",flag:"ge"},{code:"hy",name:"Armenian",nativeName:"Հայերեն",flag:"am"},{code:"az",name:"Azerbaijani",nativeName:"Azərbaycan",flag:"az"},{code:"kk",name:"Kazakh",nativeName:"Қазақ тілі",flag:"kz"},{code:"uz",name:"Uzbek",nativeName:"Oʻzbek",flag:"uz"},{code:"mn",name:"Mongolian",nativeName:"Монгол",flag:"mn"},{code:"km",name:"Khmer",nativeName:"ភាសាខ្មែរ",flag:"kh"},{code:"lo",name:"Lao",nativeName:"ລາວ",flag:"la"},{code:"ne",name:"Nepali",nativeName:"नेपाली",flag:"np"},{code:"si",name:"Sinhala",nativeName:"සිංහල",flag:"lk"},{code:"am",name:"Amharic",nativeName:"አማርኛ",flag:"et"},{code:"zu",name:"Zulu",nativeName:"isiZulu",flag:"za"},{code:"xh",name:"Xhosa",nativeName:"isiXhosa",flag:"za"},{code:"yo",name:"Yoruba",nativeName:"Yorùbá",flag:"ng"},{code:"ig",name:"Igbo",nativeName:"Igbo",flag:"ng"},{code:"ha",name:"Hausa",nativeName:"Hausa",flag:"ng"},{code:"so",name:"Somali",nativeName:"Soomaali",flag:"so"},{code:"mg",name:"Malagasy",nativeName:"Malagasy",flag:"mg"}];function Uv({languages:t=Fv,defaultLanguage:a="en",onChange:i,disabled:l=!1,showSearch:s=!1,label:r,className:h="",...n}){const[f,o]=z.useState(!1),[m,c]=z.useState(()=>t.find(d=>d.code===a)||t[0]),[q,g]=z.useState(""),[y,p]=z.useState(0),Z=z.useRef(null),w=z.useRef(null),k=t.filter(d=>d.name.toLowerCase().includes(q.toLowerCase())||d.nativeName.toLowerCase().includes(q.toLowerCase())||d.code.toLowerCase().includes(q.toLowerCase()));z.useEffect(()=>{const d=b=>{Z.current&&!Z.current.contains(b.target)&&(o(!1),g(""))};return f&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[f]),z.useEffect(()=>{f&&s&&w.current&&w.current.focus()},[f,s]);const N=d=>{c(d),o(!1),g(""),i?.(d)},_=d=>{if(!l)switch(d.key){case"Enter":case" ":f?k[y]&&(d.preventDefault(),N(k[y])):(d.preventDefault(),o(!0));break;case"Escape":o(!1),g("");break;case"ArrowDown":d.preventDefault(),f?p(b=>b<k.length-1?b+1:0):o(!0);break;case"ArrowUp":d.preventDefault(),f&&p(b=>b>0?b-1:k.length-1);break}};return e.jsxs("div",{className:`${X.languageSelectContainer} ${h}`,ref:Z,...n,children:[r&&e.jsx("label",{className:X.label,children:r}),e.jsxs("div",{className:`${X.languageSelect} ${l?X.disabled:""}`,children:[e.jsxs("button",{type:"button",className:`${X.trigger} ${f?X.open:""}`,onClick:()=>!l&&o(!f),onKeyDown:_,disabled:l,"aria-haspopup":"listbox","aria-expanded":f,children:[e.jsx("span",{className:X.flag,children:e.jsx(v0,{flag:m.flag,width:32,height:32,rounded:!0})}),e.jsxs("span",{className:X.selectedText,children:[e.jsx("span",{className:X.languageName,children:m.name}),e.jsx("span",{className:X.nativeName,children:m.nativeName})]}),e.jsx("svg",{className:X.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"})})]}),f&&e.jsxs("div",{className:X.dropdown,children:[s&&e.jsxs("div",{className:X.searchContainer,children:[e.jsx("svg",{className:X.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:w,type:"text",className:X.searchInput,placeholder:"Search languages...",value:q,onChange:d=>{g(d.target.value),p(0)},onKeyDown:_})]}),e.jsx("ul",{className:X.list,role:"listbox",children:k.length>0?k.map((d,b)=>e.jsxs("li",{className:`${X.option} ${m.code===d.code?X.selected:""} ${b===y?X.highlighted:""}`,onClick:()=>N(d),onMouseEnter:()=>p(b),role:"option","aria-selected":m.code===d.code,children:[e.jsx("span",{className:X.optionFlag,children:e.jsx(v0,{flag:d.flag,width:28,height:28,rounded:!0})}),e.jsxs("span",{className:X.optionText,children:[e.jsx("span",{className:X.optionName,children:d.name}),e.jsx("span",{className:X.optionNative,children:d.nativeName})]}),m.code===d.code&&e.jsx("svg",{className:X.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"})})]},d.code)):e.jsx("li",{className:X.noResults,children:"No languages found"})})]})]})]})}const Ov="styles-module__chatContainer__ny1TV",Xv="styles-module__messagesWrapper__RZiB3",Kv="styles-module__emptyState__hzFZj",Yv="styles-module__emptyIcon__x39wy",Jv="styles-module__emptyText__lrl1o",Qv="styles-module__emptySubtext__SqnCZ",ep="styles-module__messagesList__d-S-F",tp="styles-module__messageGroup__tMBkW",ap="styles-module__userMessage__9MGMu",lp="styles-module__messageContent__dFgZ4",sp="styles-module__messageBubble__9fJI4",rp="styles-module__timestamp__a4uAo",ip="styles-module__systemMessage__j8BLk",op="styles-module__avatarWrapper__u9sbM",cp="styles-module__avatar__UI0YW",hp="styles-module__avatarPlaceholder__NVOuf",fp="styles-module__userAvatar__5XxxX",dp="styles-module__botAvatar__a-W8a",np="styles-module__senderName__vOvEB",mp="styles-module__typing__FSien",up="styles-module__messageText__w-MlW",vp="styles-module__typingIndicator__VL6DD",pp="styles-module__dot__cJEkH",kp="styles-module__inputForm__l-juI",zp="styles-module__inputWrapper__HSXpx",gp="styles-module__focused__GIWaK",bp="styles-module__input__AmkBF",Mp="styles-module__sendButton__xy1bf",yp="styles-module__sendIcon__XEMIa",wp="styles-module__active__HG7ga",I={chatContainer:Ov,messagesWrapper:Xv,emptyState:Kv,emptyIcon:Yv,emptyText:Jv,emptySubtext:Qv,messagesList:ep,messageGroup:tp,userMessage:ap,messageContent:lp,messageBubble:sp,timestamp:rp,systemMessage:ip,avatarWrapper:op,avatar:cp,avatarPlaceholder:hp,userAvatar:fp,botAvatar:dp,senderName:np,typing:mp,messageText:up,typingIndicator:vp,dot:pp,inputForm:kp,inputWrapper:zp,focused:gp,input:bp,sendButton:Mp,sendIcon:yp,active:wp};function _p({messages:t,onSendMessage:a,placeholder:i="Type a message...",disabled:l=!1,showTimestamps:s=!1,showAvatars:r=!0,maxHeight:h="600px",typingIndicator:n=!1,userName:f="You",botName:o="Assistant",className:m="",...c}){const[q,g]=z.useState(""),[y,p]=z.useState(!1),Z=z.useRef(null),w=z.useRef(null),k=()=>{Z.current?.scrollIntoView({behavior:"smooth"})};z.useEffect(()=>{k()},[t]);const N=j=>{j.preventDefault(),q.trim()&&a&&!l&&(a(q.trim()),g(""),w.current&&(w.current.style.height="auto"))},_=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),N(j))},d=j=>{g(j.target.value),j.target.style.height="auto",j.target.style.height=`${Math.min(j.target.scrollHeight,120)}px`},b=j=>j.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),V=j=>j.split(" ").map(T=>T[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{className:`${I.chatContainer} ${m}`,...c,children:[e.jsx("div",{className:I.messagesWrapper,style:{maxHeight:h},children:t.length===0?e.jsxs("div",{className:I.emptyState,children:[e.jsx("div",{className:I.emptyIcon,children:"💬"}),e.jsx("p",{className:I.emptyText,children:"No messages yet"}),e.jsx("p",{className:I.emptySubtext,children:"Start a conversation!"})]}):e.jsxs("div",{className:I.messagesList,children:[t.map((j,T)=>{const L=j.sender==="user",C=j.sender==="system",$=r&&!C,v=L?f:j.senderName||o;return e.jsxs("div",{className:`${I.messageGroup} ${L?I.userMessage:""} ${C?I.systemMessage:""}`,children:[$&&e.jsx("div",{className:I.avatarWrapper,children:j.avatar?e.jsx("img",{src:j.avatar,alt:v,className:I.avatar}):e.jsx("div",{className:`${I.avatarPlaceholder} ${L?I.userAvatar:I.botAvatar}`,children:V(v)})}),e.jsxs("div",{className:I.messageContent,children:[!C&&!L&&e.jsx("div",{className:I.senderName,children:v}),e.jsx("div",{className:`${I.messageBubble} ${j.isTyping?I.typing:""}`,children:j.isTyping?e.jsxs("div",{className:I.typingIndicator,children:[e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot})]}):e.jsx("p",{className:I.messageText,children:j.content})}),s&&!j.isTyping&&e.jsx("div",{className:I.timestamp,children:b(j.timestamp)})]})]},j.id)}),n&&e.jsxs("div",{className:`${I.messageGroup}`,children:[r&&e.jsx("div",{className:I.avatarWrapper,children:e.jsx("div",{className:`${I.avatarPlaceholder} ${I.botAvatar}`,children:V(o)})}),e.jsxs("div",{className:I.messageContent,children:[e.jsx("div",{className:I.senderName,children:o}),e.jsx("div",{className:`${I.messageBubble} ${I.typing}`,children:e.jsxs("div",{className:I.typingIndicator,children:[e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot})]})})]})]}),e.jsx("div",{ref:Z})]})}),e.jsx("form",{onSubmit:N,className:I.inputForm,children:e.jsxs("div",{className:`${I.inputWrapper} ${y?I.focused:""}`,children:[e.jsx("textarea",{ref:w,className:I.input,value:q,onChange:d,onKeyDown:_,onFocus:()=>p(!0),onBlur:()=>p(!1),placeholder:i,disabled:l,rows:1}),e.jsx("button",{type:"submit",className:`${I.sendButton} ${q.trim()?I.active:""}`,disabled:!q.trim()||l,children:e.jsx("svg",{className:I.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 qp="styles-module__hero__1sEBl",Np="styles-module__container__xfiKE",xp="styles-module__content__ueveF",Cp="styles-module__title__CIbf7",jp="styles-module__subtitle__6yYjh",Lp="styles-module__actions__tCll9",Zp="styles-module__button__7B3nI",Hp="styles-module__primary__83hkW",Vp="styles-module__secondary__D63-G",$p="styles-module__children__2oopi",Sp="styles-module__backgroundVideo__J1Jv5",Bp="styles-module__overlay__VHoNo",Tp="styles-module__small__ZoLmv",Ip="styles-module__medium__ZrBOD",Pp="styles-module__large__U8d7Z",Ap="styles-module__fullscreen__tMfK4",Dp="styles-module__left__-vZ-2",Gp="styles-module__center__fOtY0",Ep="styles-module__right__D623c",Rp="styles-module__gradient__vlsu4",Wp="styles-module__image__8xem5",Fp="styles-module__video__igUU3",Up="styles-module__minimal__cwTwh",Op="styles-module__centered__bcej3",Xp="styles-module__split__3uKlG",Kp="styles-module__splitContent__XlL2y",Yp="styles-module__splitImage__-QSEV",Jp="styles-module__imageLeft__ldioA",Qp="styles-module__imageRight__BEUMS",U={hero:qp,container:Np,content:xp,title:Cp,subtitle:jp,actions:Lp,button:Zp,primary:Hp,secondary:Vp,children:$p,backgroundVideo:Sp,overlay:Bp,small:Tp,medium:Ip,large:Pp,fullscreen:Ap,left:Dp,center:Gp,right:Ep,default:"styles-module__default__IeguZ",gradient:Rp,image:Wp,video:Fp,minimal:Up,centered:Op,split:Xp,splitContent:Kp,splitImage:Yp,imageLeft:Jp,imageRight:Qp};function ek({variant:t="default",size:a="large",alignment:i="center",title:l,subtitle:s,backgroundImage:r,backgroundVideo:h,overlayOpacity:n=.5,primaryAction:f,secondaryAction:o,children:m,image:c,imageAlt:q="Hero image",imagePosition:g="right",className:y="",style:p,...Z}){const w={...p};r&&t==="image"&&(w.backgroundImage=`url(${r})`);const k=()=>!f&&!o?null:e.jsxs("div",{className:U.actions,children:[f&&(f.href?e.jsx("a",{href:f.href,className:`${U.button} ${U.primary}`,children:f.label}):e.jsx("button",{type:"button",onClick:f.onClick,className:`${U.button} ${U.primary}`,children:f.label})),o&&(o.href?e.jsx("a",{href:o.href,className:`${U.button} ${U.secondary}`,children:o.label}):e.jsx("button",{type:"button",onClick:o.onClick,className:`${U.button} ${U.secondary}`,children:o.label}))]}),N=()=>e.jsxs("div",{className:U.content,children:[l&&e.jsx("h1",{className:U.title,children:l}),s&&e.jsx("p",{className:U.subtitle,children:s}),k(),m&&e.jsx("div",{className:U.children,children:m})]}),_=()=>!h||t!=="video"?null:e.jsx("video",{className:U.backgroundVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:e.jsx("source",{src:h,type:"video/mp4"})}),d=()=>(t==="image"||t==="video")&&n>0?e.jsx("div",{className:U.overlay,style:{opacity:n}}):null;return t==="split"&&c?e.jsx("section",{className:`${U.hero} ${U[t]} ${U[a]} ${U[i]} ${g==="left"?U.imageLeft:U.imageRight} ${y}`,style:w,...Z,children:e.jsxs("div",{className:U.container,children:[e.jsx("div",{className:U.splitContent,children:N()}),e.jsx("div",{className:U.splitImage,children:e.jsx("img",{src:c,alt:q})})]})}):e.jsxs("section",{className:`${U.hero} ${U[t]} ${U[a]} ${U[i]} ${y}`,style:w,...Z,children:[_(),d(),e.jsx("div",{className:U.container,children:N()})]})}const tk="styles-module__footer__KUFHl",ak="styles-module__container__KDDfW",lk="styles-module__brand__hbfVw",sk="styles-module__brandHeader__w1Akd",rk="styles-module__brandLogo__14u6t",ik="styles-module__brandName__akAUX",ok="styles-module__brandDescription__44VOp",ck="styles-module__sections__CvDoA",hk="styles-module__section__gFsHi",fk="styles-module__sectionTitle__egnB1",dk="styles-module__linkList__vR8l8",nk="styles-module__link__uIT9J",mk="styles-module__externalIcon__ogw1v",uk="styles-module__social__czSa6",vk="styles-module__socialTitle__I8z4q",pk="styles-module__socialLinks__lVO4V",kk="styles-module__socialLink__EtXDt",zk="styles-module__bottom__QEkk-",gk="styles-module__copyright__8ihY2",bk="styles-module__bottomLinks__9EsKU",Mk="styles-module__bottomLink__BUg0l",yk="styles-module__separator__PGnP3",wk="styles-module__children__zbz5a",_k="styles-module__main__zO3Pb",qk="styles-module__sidebar__CwLFk",Nk="styles-module__minimal__Xdk1a",xk="styles-module__centered__nIVxr",Ck="styles-module__centeredContent__YyOcX",jk="styles-module__centeredSections__Jpw1a",Lk="styles-module__stacked__2rn4u",F={footer:tk,container:ak,brand:lk,brandHeader:sk,brandLogo:rk,brandName:ik,brandDescription:ok,sections:ck,section:hk,sectionTitle:fk,linkList:dk,link:nk,externalIcon:mk,social:uk,socialTitle:vk,socialLinks:pk,socialLink:kk,bottom:zk,copyright:gk,bottomLinks:bk,bottomLink:Mk,separator:yk,children:wk,default:"styles-module__default__ekUYi",main:_k,sidebar:qk,minimal:Nk,centered:xk,centeredContent:Ck,centeredSections:jk,stacked:Lk};function Zk({variant:t="default",brandName:a,brandLogo:i,brandDescription:l,sections:s=[],socialLinks:r=[],copyright:h,showYear:n=!0,bottomLinks:f=[],children:o,className:m="",...c}){const q=new Date().getFullYear(),g=()=>!a&&!i&&!l?null:e.jsxs("div",{className:F.brand,children:[(i||a)&&e.jsxs("div",{className:F.brandHeader,children:[i&&e.jsx("div",{className:F.brandLogo,children:i}),a&&e.jsx("div",{className:F.brandName,children:a})]}),l&&e.jsx("p",{className:F.brandDescription,children:l})]}),y=()=>s.length===0?null:e.jsx("div",{className:F.sections,children:s.map((w,k)=>e.jsxs("div",{className:F.section,children:[e.jsx("h3",{className:F.sectionTitle,children:w.title}),e.jsx("ul",{className:F.linkList,children:w.links.map((N,_)=>e.jsx("li",{children:e.jsxs("a",{href:N.href,className:F.link,target:N.external?"_blank":void 0,rel:N.external?"noopener noreferrer":void 0,children:[N.label,N.external&&e.jsx("span",{className:F.externalIcon,"aria-label":"Opens in new tab",children:"↗"})]})},_))})]},k))}),p=()=>r.length===0?null:e.jsxs("div",{className:F.social,children:[e.jsx("div",{className:F.socialTitle,children:"Follow Us"}),e.jsx("div",{className:F.socialLinks,children:r.map((w,k)=>e.jsx("a",{href:w.href,className:F.socialLink,target:"_blank",rel:"noopener noreferrer","aria-label":w.platform,children:w.icon||w.platform},k))})]}),Z=()=>{const w=h||(a?`© ${a}`:"© All rights reserved"),k=n?`${w} ${q}`:w;return e.jsxs("div",{className:F.bottom,children:[e.jsx("div",{className:F.copyright,children:k}),f.length>0&&e.jsx("div",{className:F.bottomLinks,children:f.map((N,_)=>e.jsxs(z.Fragment,{children:[e.jsx("a",{href:N.href,className:F.bottomLink,target:N.external?"_blank":void 0,rel:N.external?"noopener noreferrer":void 0,children:N.label}),_<f.length-1&&e.jsx("span",{className:F.separator,children:"•"})]},_))})]})};return e.jsx("footer",{className:`${F.footer} ${F[t]} ${m}`,...c,children:e.jsx("div",{className:F.container,children:t==="centered"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:F.centeredContent,children:[g(),p()]}),s.length>0&&e.jsx("div",{className:F.centeredSections,children:y()}),o&&e.jsx("div",{className:F.children,children:o}),Z()]}):t==="stacked"?e.jsxs(e.Fragment,{children:[g(),y(),p(),o&&e.jsx("div",{className:F.children,children:o}),Z()]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:F.main,children:[g(),y()]}),(r.length>0||o)&&e.jsxs("div",{className:F.sidebar,children:[p(),o&&e.jsx("div",{className:F.children,children:o})]}),Z()]})})})}const Hk="styles-module__titleWrapper__QHBgn",Vk="styles-module__left__-fEso",$k="styles-module__center__Cg-4r",Sk="styles-module__right__VS60p",Bk="styles-module__title__i-t97",Tk="styles-module__subtitle__hBF7W",r0={titleWrapper:Hk,left:Vk,center:$k,right:Sk,title:Bk,subtitle:Tk};function Ik({children:t,subtitle:a,level:i=1,align:l="left",className:s=""}){const r=`h${i}`;return e.jsxs("div",{className:`${r0.titleWrapper} ${r0[l]} ${s}`,children:[e.jsx(r,{className:r0.title,children:t}),a&&e.jsx("p",{className:r0.subtitle,children:a})]})}const Pk="styles-module__toolbar__AYuVS",Ak="styles-module__menuSection__Txgmf",Dk="styles-module__menuItemContainer__yR-XS",Gk="styles-module__menuItem__QPG2e",Ek="styles-module__disabled__vuvrO",Rk="styles-module__active__sICJh",Wk="styles-module__icon__kRbRs",Fk="styles-module__label__p-2a-",Uk="styles-module__badge__x8CyH",Ok="styles-module__dropdownArrow__b-ssi",Xk="styles-module__open__mIo30",Kk="styles-module__dropdown__YDMYV",Yk="styles-module__dropdownItem__p1I16",Jk="styles-module__separator__bh2CS",Qk="styles-module__dropdownSeparator__kRAOp",ez="styles-module__contentSection__xkN46",tz="styles-module__statusSection__dFT6c",az="styles-module__statusItem__MiT8g",lz="styles-module__statusIcon__2mJMY",sz="styles-module__statusText__TaWCZ",K={toolbar:Pk,menuSection:Ak,menuItemContainer:Dk,menuItem:Gk,disabled:Ek,active:Rk,icon:Wk,label:Fk,badge:Uk,dropdownArrow:Ok,open:Xk,dropdown:Kk,dropdownItem:Yk,separator:Jk,dropdownSeparator:Qk,contentSection:ez,statusSection:tz,statusItem:az,statusIcon:lz,statusText:sz};function rz({menuItems:t=[],statusItems:a=[],children:i,className:l=""}){const[s,r]=z.useState(new Set),h=z.useRef({});z.useEffect(()=>{const c=q=>{const g=q.target;for(const[y,p]of Object.entries(h.current))p&&!p.contains(g)&&r(Z=>{const w=new Set(Z);return w.delete(y),w})};if(s.size>0)return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[s]);const n=c=>{r(q=>{const g=new Set(q);return g.has(c)?g.delete(c):(g.clear(),g.add(c)),g})},f=c=>{c.disabled||(c.submenu&&c.submenu.length>0?n(c.id):c.onClick?.())},o=c=>{if(!c.label&&c.separator)return e.jsx("div",{className:K.separator},c.id);const q=c.submenu&&c.submenu.length>0,g=s.has(c.id);return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:K.menuItemContainer,children:[e.jsxs("button",{type:"button",className:`${K.menuItem} ${c.disabled?K.disabled:""} ${g?K.active:""}`,onClick:()=>f(c),disabled:c.disabled,children:[c.icon&&e.jsx("span",{className:K.icon,children:c.icon}),e.jsx("span",{className:K.label,children:c.label}),c.badge!==void 0&&e.jsx("span",{className:K.badge,children:c.badge}),q&&e.jsx("span",{className:`${K.dropdownArrow} ${g?K.open:""}`,children:"▼"})]}),q&&g&&e.jsx("div",{ref:y=>h.current[c.id]=y,className:K.dropdown,children:c.submenu.map(y=>!y.label&&y.separator?e.jsx("div",{className:K.dropdownSeparator},y.id):e.jsxs("button",{type:"button",className:`${K.dropdownItem} ${y.disabled?K.disabled:""}`,onClick:()=>{y.disabled||(y.onClick?.(),r(new Set))},disabled:y.disabled,children:[y.icon&&e.jsx("span",{className:K.icon,children:y.icon}),e.jsx("span",{className:K.label,children:y.label}),y.badge!==void 0&&e.jsx("span",{className:K.badge,children:y.badge})]},y.id))})]}),c.separator&&e.jsx("div",{className:K.separator})]},c.id)},m=(c,q)=>e.jsxs("div",{className:K.statusItem,title:c.tooltip,children:[c.icon&&e.jsx("span",{className:K.statusIcon,children:c.icon}),e.jsx("span",{className:K.statusText,children:c.text})]},q);return e.jsxs("div",{className:`${K.toolbar} ${l}`,children:[t.length>0&&e.jsx("div",{className:K.menuSection,children:t.map(c=>o(c))}),i&&e.jsx("div",{className:K.contentSection,children:i}),a.length>0&&e.jsx("div",{className:K.statusSection,children:a.map((c,q)=>m(c,q))})]})}const iz="styles-module__dataTableWrapper__ByL1g",oz="styles-module__toolbar__jrmV5",cz="styles-module__addButton__-VFRx",hz="styles-module__tableContainer__e70tO",fz="styles-module__table__Fr8Yt",dz="styles-module__thead__OKDfq",nz="styles-module__th__U8uyM",mz="styles-module__actionColumn__D4sRI",uz="styles-module__tbody__9wv1U",vz="styles-module__tr__Lo9O2",pz="styles-module__td__F-E2D",kz="styles-module__actionCell__P7lld",zz="styles-module__striped__jltUf",gz="styles-module__hoverable__KO4bx",bz="styles-module__bordered__1A-p6",Mz="styles-module__compact__HFppT",yz="styles-module__clickable__NbL9f",wz="styles-module__cellInput__s5ZbH",_z="styles-module__actionButtons__pB8K6",qz="styles-module__actionButton__QL2Cj",Nz="styles-module__edit__4sxAR",xz="styles-module__save__8SdHD",Cz="styles-module__cancel__CJRPv",jz="styles-module__empty__O5hhW",G={dataTableWrapper:iz,toolbar:oz,addButton:cz,tableContainer:hz,table:fz,thead:dz,th:nz,actionColumn:mz,tbody:uz,tr:vz,td:pz,actionCell:kz,striped:zz,hoverable:gz,bordered:bz,compact:Mz,clickable:yz,cellInput:wz,actionButtons:_z,actionButton:qz,edit:Nz,delete:"styles-module__delete__CGHLc",save:xz,cancel:Cz,empty:jz};function Lz({columns:t,data:a,striped:i=!1,hoverable:l=!1,bordered:s=!1,compact:r=!1,editable:h=!1,deletable:n=!1,addable:f=!1,onRowClick:o,onRowEdit:m,onRowDelete:c,onRowAdd:q,rowIdKey:g="id",className:y=""}){const[p,Z]=z.useState(a),[w,k]=z.useState(null),[N,_]=z.useState(null),[d,b]=z.useState(!1),[V,j]=z.useState({}),T=(S,u)=>{k(u),_({...S})},L=S=>{const u=[...p];u[S]=N,Z(u),m?.(N,S),k(null),_(null)},C=()=>{k(null),_(null)},$=(S,u)=>{const H=p.filter((R,s2)=>s2!==u);Z(H),c?.(S,u)},v=()=>{b(!0);const S={};t.forEach(u=>{S[u.key]=""}),j(S)},M=()=>{const S=[...p,V];Z(S),q?.(V),b(!1),j({})},x=()=>{b(!1),j({})},B=(S,u,H=!1)=>{H?j({...V,[S]:u}):_({...N,[S]:u})},P=(S,u,H,R=!1)=>{const s2=R?!0:w===H,r2=R?V[S.key]:s2?N?.[S.key]:u[S.key];return S.render&&!s2?S.render(r2,u,s2):s2&&S.editable!==!1?e.jsx("input",{type:S.type||"text",value:r2||"",onChange:R2=>B(S.key,R2.target.value,R),className:G.cellInput}):String(r2??"")},D=(S,u)=>w===u?e.jsxs("div",{className:G.actionButtons,children:[e.jsx("button",{onClick:()=>L(u),className:`${G.actionButton} ${G.save}`,title:"Save",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M13.5 4L6 11.5L2.5 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("button",{onClick:C,className:`${G.actionButton} ${G.cancel}`,title:"Cancel",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):e.jsxs("div",{className:G.actionButtons,children:[h&&e.jsx("button",{onClick:()=>T(S,u),className:`${G.actionButton} ${G.edit}`,title:"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.333 2A1.886 1.886 0 0 1 14 4.667l-9 9-3.667 1 1-3.667 9-9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),n&&e.jsx("button",{onClick:()=>$(S,u),className:`${G.actionButton} ${G.delete}`,title:"Delete",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4m2 0v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.334 1.334 0 0 1-1.334-1.334V4h9.334Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]});return e.jsxs("div",{className:`${G.dataTableWrapper} ${y}`,children:[f&&e.jsx("div",{className:G.toolbar,children:e.jsxs("button",{onClick:v,disabled:d,className:G.addButton,children:[e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 3.333v9.334M3.333 8h9.334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Row"]})}),e.jsxs("div",{className:G.tableContainer,children:[e.jsxs("table",{className:`${G.table} ${i?G.striped:""} ${l?G.hoverable:""} ${s?G.bordered:""} ${r?G.compact:""}`,children:[e.jsx("thead",{className:G.thead,children:e.jsxs("tr",{children:[t.map(S=>e.jsx("th",{className:G.th,style:{width:S.width},children:S.header},S.key)),(h||n)&&e.jsx("th",{className:`${G.th} ${G.actionColumn}`,children:"Actions"})]})}),e.jsxs("tbody",{className:G.tbody,children:[p.map((S,u)=>e.jsxs("tr",{className:`${G.tr} ${o&&!h?G.clickable:""}`,onClick:()=>w===null&&o?.(S),children:[t.map(H=>e.jsx("td",{className:G.td,children:P(H,S,u)},H.key)),(h||n)&&e.jsx("td",{className:`${G.td} ${G.actionCell}`,children:D(S,u)})]},S[g]||u)),d&&e.jsxs("tr",{className:G.tr,children:[t.map(S=>e.jsx("td",{className:G.td,children:P(S,{},-1,!0)},S.key)),(h||n)&&e.jsx("td",{className:`${G.td} ${G.actionCell}`,children:e.jsxs("div",{className:G.actionButtons,children:[e.jsx("button",{onClick:M,className:`${G.actionButton} ${G.save}`,title:"Save",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M13.5 4L6 11.5L2.5 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("button",{onClick:x,className:`${G.actionButton} ${G.cancel}`,title:"Cancel",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})]})]}),p.length===0&&!d&&e.jsx("div",{className:G.empty,children:"No data available"})]})]})}const Zz="styles-module__kanban__vpx-A",Hz="styles-module__columnsContainer__4Dtnw",Vz="styles-module__column__pwo-D",$z="styles-module__dragOver__YPmud",Sz="styles-module__columnHeader__7NsWb",Bz="styles-module__columnTitle__0BZTf",Tz="styles-module__columnHeaderActions__1iEzA",Iz="styles-module__removeColumnButton__jVQ79",Pz="styles-module__columnContent__oxRMX",Az="styles-module__emptyColumn__Z4pNL",Dz="styles-module__item__Nkciq",Gz="styles-module__itemHeader__CZThU",Ez="styles-module__itemTitle__xLf6d",Rz="styles-module__itemDescription__UeR4h",Wz="styles-module__addColumnContainer__1p-JP",Fz="styles-module__addColumnButton__LL9O9",Uz="styles-module__addColumnForm__enALu",Oz="styles-module__addColumnInput__MCSZU",Xz="styles-module__addColumnActions__cndwb",Kz="styles-module__addColumnSaveButton__An3-R",Yz="styles-module__addColumnCancelButton__ma1Mk",t2={kanban:Zz,columnsContainer:Hz,column:Vz,dragOver:$z,columnHeader:Sz,columnTitle:Bz,columnHeaderActions:Tz,removeColumnButton:Iz,columnContent:Pz,emptyColumn:Az,item:Dz,itemHeader:Gz,itemTitle:Ez,itemDescription:Rz,addColumnContainer:Wz,addColumnButton:Fz,addColumnForm:Uz,addColumnInput:Oz,addColumnActions:Xz,addColumnSaveButton:Kz,addColumnCancelButton:Yz};function Jz({columns:t,onItemMove:a,onItemClick:i,onColumnAdd:l,onColumnRemove:s,allowAddColumns:r=!1,allowRemoveColumns:h=!1,className:n=""}){const[f,o]=z.useState(t),[m,c]=z.useState(null),[q,g]=z.useState(null),[y,p]=z.useState(""),[Z,w]=z.useState(!1),k=(L,C,$)=>{c({item:C,columnId:$}),L.dataTransfer.effectAllowed="move",L.currentTarget.style.opacity="0.5"},N=L=>{L.currentTarget.style.opacity="1",c(null),g(null)},_=(L,C)=>{L.preventDefault(),L.dataTransfer.dropEffect="move",g(C)},d=L=>{L.preventDefault(),g(null)},b=(L,C)=>{if(L.preventDefault(),g(null),!m)return;const{item:$,columnId:v}=m;if(v===C){c(null);return}const M=f.find(B=>B.id===C);if(M?.maxItems&&M.items.length>=M.maxItems){c(null);return}const x=f.map(B=>B.id===v?{...B,items:B.items.filter(P=>P.id!==$.id)}:B.id===C?{...B,items:[...B.items,$]}:B);o(x),a?.($,v,C),c(null)},V=()=>{if(!y.trim())return;const L={id:`column-${Date.now()}`,title:y,items:[]};o([...f,L]),l?.(L.id,L.title),p(""),w(!1)},j=L=>{o(f.filter(C=>C.id!==L)),s?.(L)},T=(L,C)=>{i?.(L,C)};return e.jsx("div",{className:`${t2.kanban} ${n}`,children:e.jsxs("div",{className:t2.columnsContainer,children:[f.map(L=>e.jsxs("div",{className:`${t2.column} ${q===L.id?t2.dragOver:""}`,onDragOver:C=>_(C,L.id),onDragLeave:d,onDrop:C=>b(C,L.id),children:[e.jsxs("div",{className:t2.columnHeader,style:{borderLeftColor:L.color},children:[e.jsx("h3",{className:t2.columnTitle,children:L.title}),e.jsxs("div",{className:t2.columnHeaderActions,children:[e.jsxs(o0,{variant:"default",size:"sm",children:[L.items.length,L.maxItems?`/${L.maxItems}`:""]}),h&&e.jsx("button",{onClick:()=>j(L.id),className:t2.removeColumnButton,title:"Remove column","aria-label":"Remove column",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),e.jsx("div",{className:t2.columnContent,children:L.items.length===0?e.jsx("div",{className:t2.emptyColumn,children:"Drop items here"}):L.items.map(C=>e.jsxs("div",{className:t2.item,draggable:!0,onDragStart:$=>k($,C,L.id),onDragEnd:N,onClick:()=>T(C,L.id),role:"button",tabIndex:0,children:[e.jsxs("div",{className:t2.itemHeader,children:[e.jsx("h4",{className:t2.itemTitle,children:C.title}),C.badge&&e.jsx(o0,{variant:C.badgeVariant||"default",size:"sm",children:C.badge})]}),C.description&&e.jsx("p",{className:t2.itemDescription,children:C.description})]},C.id))})]},L.id)),r&&e.jsx("div",{className:t2.addColumnContainer,children:Z?e.jsxs("div",{className:t2.addColumnForm,children:[e.jsx("input",{type:"text",value:y,onChange:L=>p(L.target.value),placeholder:"Column title",className:t2.addColumnInput,autoFocus:!0,onKeyDown:L=>{L.key==="Enter"&&V(),L.key==="Escape"&&(w(!1),p(""))}}),e.jsxs("div",{className:t2.addColumnActions,children:[e.jsx("button",{onClick:V,className:t2.addColumnSaveButton,disabled:!y.trim(),children:"Add"}),e.jsx("button",{onClick:()=>{w(!1),p("")},className:t2.addColumnCancelButton,children:"Cancel"})]})]}):e.jsxs("button",{onClick:()=>w(!0),className:t2.addColumnButton,children:[e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10 4.167v11.666M4.167 10h11.666",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Column"]})})]})})}const Qz="styles-module__chartContainer__2xlGx",eg="styles-module__title__3nMEJ",tg="styles-module__chartWrapper__vZft-",ag="styles-module__svg__nYzFF",lg="styles-module__grid__MIGx1",sg="styles-module__gridLine__ZLt1Q",rg="styles-module__xAxis__aLZwk",ig="styles-module__yAxis__S9BmI",og="styles-module__axisLabel__VAmVT",cg="styles-module__animatedLine__J4GMW",hg="styles-module__animatedArea__uCMoc",fg="styles-module__animatedBar__-EA7h",dg="styles-module__animatedPie__oBICc",ng="styles-module__dataPoint__EfM8f",mg="styles-module__valueLabel__KuXHI",ug="styles-module__pieSlice__IzHt4",vg="styles-module__pieLabel__T62HZ",pg="styles-module__legend__PbzNU",kg="styles-module__legendItem__qyy6C",zg="styles-module__legendColor__jy5vR",gg="styles-module__legendLabel__GhokZ",A={chartContainer:Qz,title:eg,chartWrapper:tg,svg:ag,grid:lg,gridLine:sg,xAxis:rg,yAxis:ig,axisLabel:og,animatedLine:cg,animatedArea:hg,animatedBar:fg,animatedPie:dg,dataPoint:ng,valueLabel:mg,pieSlice:ug,pieLabel:vg,legend:pg,legendItem:kg,legendColor:zg,legendLabel:gg},z0={light:["rgba(99, 102, 241, 0.8)","rgba(34, 197, 94, 0.8)","rgba(251, 191, 36, 0.8)","rgba(239, 68, 68, 0.8)","rgba(59, 130, 246, 0.8)","rgba(168, 85, 247, 0.8)","rgba(236, 72, 153, 0.8)","rgba(20, 184, 166, 0.8)"],dark:["rgba(129, 140, 248, 0.9)","rgba(74, 222, 128, 0.9)","rgba(253, 224, 71, 0.9)","rgba(248, 113, 113, 0.9)","rgba(96, 165, 250, 0.9)","rgba(196, 181, 253, 0.9)","rgba(244, 114, 182, 0.9)","rgba(45, 212, 191, 0.9)"]};function Y2(t,a,i,l){if(a)return a;const s=l?z0.dark:z0.light;return s[t%s.length]}function g0(t,a){if(t.length===0)return"";if(t.length===1)return`M ${t[0].x} ${t[0].y}`;if(!a)return t.reduce((l,s,r)=>r===0?`M ${s.x} ${s.y}`:`${l} L ${s.x} ${s.y}`,"");let i=`M ${t[0].x} ${t[0].y}`;for(let l=0;l<t.length-1;l++){const s=t[l],r=t[l+1],h=(s.x+r.x)/2;i+=` Q ${h} ${s.y}, ${h} ${(s.y+r.y)/2}`,i+=` Q ${h} ${r.y}, ${r.x} ${r.y}`}return i}function bg({type:t,datasets:a=[],data:i=[],labels:l=[],title:s,showLegend:r=!0,showGrid:h=!0,showValues:n=!1,height:f=300,className:o="",animate:m=!0,smooth:c=!0}){const q=z.useMemo(()=>{if(t==="pie"||t==="doughnut"){const k=i.reduce((_,d)=>_+d.value,0);let N=-90;return i.map((_,d)=>{const b=_.value/k*100,V=b/100*360,j=N,T=N+V;return N=T,{..._,percentage:b,startAngle:j,endAngle:T}})}return null},[t,i]),g=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap(C=>C.data)),j=Math.min(...a.flatMap(C=>C.data),0),T=b/(V-j),L=d/(l.length-1);return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map(C=>{const $=_.top+b/4*C;return e.jsx("line",{x1:_.left,y1:$,x2:800-_.right,y2:$,className:A.gridLine},`grid-${C}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map(C=>{const $=V-(V-j)/4*C,v=_.top+b/4*C;return e.jsx("text",{x:_.left-10,y:v+5,className:A.axisLabel,children:$.toFixed(0)},`y-${C}`)})}),e.jsx("g",{className:A.xAxis,children:l.map((C,$)=>{const v=_.left+L*$;return e.jsx("text",{x:v,y:N-10,className:A.axisLabel,children:C},`x-${$}`)})}),a.map((C,$)=>{const v=C.data.map((B,P)=>({x:_.left+L*P,y:_.top+b-(B-j)*T})),M=g0(v,c),x=Y2($,C.lightColor,C.darkColor);return e.jsxs("g",{children:[e.jsx("path",{d:M,fill:"none",stroke:x,strokeWidth:"3",className:m?A.animatedLine:""}),v.map((B,P)=>e.jsx("circle",{cx:B.x,cy:B.y,r:"4",fill:x,className:A.dataPoint},`point-${$}-${P}`)),n&&v.map((B,P)=>e.jsx("text",{x:B.x,y:B.y-10,className:A.valueLabel,children:C.data[P]},`value-${$}-${P}`))]},$)})]})},y=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap($=>$.data)),j=Math.min(...a.flatMap($=>$.data),0),T=b/(V-j),L=d/(l.length-1),C=_.top+b-(0-j)*T;return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map($=>{const v=_.top+b/4*$;return e.jsx("line",{x1:_.left,y1:v,x2:800-_.right,y2:v,className:A.gridLine},`grid-${$}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map($=>{const v=V-(V-j)/4*$,M=_.top+b/4*$;return e.jsx("text",{x:_.left-10,y:M+5,className:A.axisLabel,children:v.toFixed(0)},`y-${$}`)})}),e.jsx("g",{className:A.xAxis,children:l.map(($,v)=>e.jsx("text",{x:_.left+L*v,y:N-10,className:A.axisLabel,children:$},`x-${v}`))}),a.map(($,v)=>{const M=$.data.map((D,S)=>({x:_.left+L*S,y:_.top+b-(D-j)*T})),x=g0(M,c),B=`${x} L ${M[M.length-1].x} ${C} L ${M[0].x} ${C} Z`,P=Y2(v,$.lightColor,$.darkColor);return e.jsxs("g",{children:[e.jsx("path",{d:B,fill:P.replace("0.8","0.3").replace("0.9","0.3"),className:m?A.animatedArea:""}),e.jsx("path",{d:x,fill:"none",stroke:P,strokeWidth:"2"})]},v)})]})},p=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap(v=>v.data)),j=Math.min(...a.flatMap(v=>v.data),0),T=b/(V-j),L=d/l.length,C=L/a.length*.8,$=_.top+b-(0-j)*T;return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map(v=>{const M=_.top+b/4*v;return e.jsx("line",{x1:_.left,y1:M,x2:800-_.right,y2:M,className:A.gridLine},`grid-${v}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map(v=>{const M=V-(V-j)/4*v,x=_.top+b/4*v;return e.jsx("text",{x:_.left-10,y:x+5,className:A.axisLabel,children:M.toFixed(0)},`y-${v}`)})}),e.jsx("g",{className:A.xAxis,children:l.map((v,M)=>{const x=_.left+L*M+L/2;return e.jsx("text",{x,y:N-10,className:A.axisLabel,children:v},`x-${M}`)})}),a.map((v,M)=>{const x=Y2(M,v.lightColor,v.darkColor);return e.jsx("g",{children:v.data.map((B,P)=>{const D=_.left+L*P+C*M+(L-C*a.length)/2,S=Math.abs(B)*T,u=B>=0?$-S:$;return e.jsxs("g",{children:[e.jsx("rect",{x:D,y:u,width:C,height:S,fill:x,className:m?A.animatedBar:""}),n&&e.jsx("text",{x:D+C/2,y:u-5,className:A.valueLabel,children:B})]},`bar-${M}-${P}`)})},M)})]})},Z=()=>{const d=t==="doughnut"?78:0;return e.jsx("svg",{width:"100%",height:f-60,viewBox:"0 0 300 300",className:A.svg,children:q?.map((b,V)=>{const j=b.startAngle*Math.PI/180,T=b.endAngle*Math.PI/180,L=150+130*Math.cos(j),C=150+130*Math.sin(j),$=150+130*Math.cos(T),v=150+130*Math.sin(T),M=b.endAngle-b.startAngle>180?1:0;let x;if(t==="doughnut"){const H=150+d*Math.cos(j),R=150+d*Math.sin(j),s2=150+d*Math.cos(T),r2=150+d*Math.sin(T);x=`
18
+ `,onClick:n,role:f?"button":void 0,tabIndex:f?0:void 0,children:[s&&e.jsx("div",{className:p2.imageWrapper,children:e.jsx("img",{src:s,alt:a||"",className:p2.image})}),e.jsxs("div",{className:p2.content,children:[(a||i)&&e.jsxs("div",{className:p2.header,children:[a&&e.jsx("h3",{className:p2.title,children:a}),i&&e.jsx("p",{className:p2.subtitle,children:i})]}),e.jsx("div",{className:p2.body,children:t}),l&&e.jsx("div",{className:p2.footer,children:l})]})]})}const wa="styles-module__checkboxWrapper__5ECcg",_a="styles-module__checkbox__AVGTi",qa="styles-module__checkmark__xfDiG",Na="styles-module__label__56KkR",xa="styles-module__checkIcon__B246P",Ca="styles-module__indeterminateIcon__L9Kf-",F2={checkboxWrapper:wa,checkbox:_a,checkmark:qa,label:Na,checkIcon:xa,indeterminateIcon:Ca};function ja({label:t,indeterminate:a=!1,className:i="",...l}){const s=z.useRef(null);return z.useEffect(()=>{s.current&&(s.current.indeterminate=a)},[a]),e.jsxs("label",{className:`${F2.checkboxWrapper} ${i}`,children:[e.jsx("input",{ref:s,type:"checkbox",className:F2.checkbox,...l}),e.jsx("span",{className:F2.checkmark,children:a?e.jsx("span",{className:F2.indeterminateIcon,children:"−"}):e.jsx("span",{className:F2.checkIcon,children:"✓"})}),t&&e.jsx("span",{className:F2.label,children:t})]})}const La="styles-module__combobox__YH03u",Za="styles-module__inputWrapper__UsIYk",Ha="styles-module__input__F-6BL",Va="styles-module__disabled__UR9gQ",$a="styles-module__arrow__LV12a",Sa="styles-module__open__-bJ28",Ba="styles-module__menu__twpPT",Ta="styles-module__option__v6IYz",Ia="styles-module__optionDisabled__vOMRI",Pa="styles-module__highlighted__pxy-X",Aa="styles-module__noResults__-sgTv",k2={combobox:La,inputWrapper:Za,input:Ha,disabled:Va,arrow:$a,open:Sa,menu:Ba,option:Ta,optionDisabled:Ia,highlighted:Pa,noResults:Aa};function Da({options:t,value:a,defaultValue:i="",onChange:l,placeholder:s="Select or type...",disabled:r=!1,className:h="",allowCustomValue:n=!1,filterFunction:f}){const[o,m]=z.useState(i),[c,q]=z.useState(!1),[g,y]=z.useState(-1),p=z.useRef(null),Z=z.useRef(null),w=z.useRef(null),k=a!==void 0,N=k?a:o,d=f||((v,M)=>v.label.toLowerCase().includes(M.toLowerCase())),b=t.filter(v=>d(v,N));z.useEffect(()=>{const v=M=>{w.current&&!w.current.contains(M.target)&&q(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),z.useEffect(()=>{if(c&&g>=0&&Z.current){const v=Z.current.children[g];v&&v.scrollIntoView({block:"nearest"})}},[g,c]);const V=v=>{const M=v.target.value;k||m(M),l?.(M),q(!0),y(-1)},j=v=>{if(v.disabled)return;const M=v.value;k||m(v.label),l?.(M),q(!1),y(-1),p.current?.blur()},T=v=>{if(!r)switch(v.key){case"ArrowDown":v.preventDefault(),q(!0),y(M=>{const x=b.length-1;if(M>=x)return x;let B=M+1;for(;B<=x&&b[B].disabled;)B++;return B<=x?B:M});break;case"ArrowUp":v.preventDefault(),y(M=>{if(M<=0)return-1;let x=M-1;for(;x>=0&&b[x].disabled;)x--;return x>=0?x:-1});break;case"Enter":v.preventDefault(),c&&g>=0?j(b[g]):n&&(l?.(N),q(!1));break;case"Escape":v.preventDefault(),q(!1),y(-1),p.current?.blur();break;case"Tab":q(!1);break}},L=()=>{r||q(!0)},C=t.find(v=>v.value===N),$=C?C.label:N;return e.jsxs("div",{ref:w,className:`${k2.combobox} ${h}`,children:[e.jsxs("div",{className:k2.inputWrapper,children:[e.jsx("input",{ref:p,type:"text",className:`${k2.input} ${r?k2.disabled:""}`,value:$,onChange:V,onKeyDown:T,onFocus:L,placeholder:s,disabled:r,autoComplete:"off",role:"combobox","aria-expanded":c,"aria-autocomplete":"list","aria-controls":"combobox-listbox"}),e.jsx("span",{className:`${k2.arrow} ${c?k2.open:""}`,children:"▼"})]}),c&&b.length>0&&e.jsx("ul",{ref:Z,id:"combobox-listbox",className:k2.menu,role:"listbox",children:b.map((v,M)=>e.jsx("li",{className:`${k2.option} ${g===M?k2.highlighted:""} ${v.disabled?k2.optionDisabled:""}`,onClick:()=>j(v),role:"option","aria-selected":v.value===N,"aria-disabled":v.disabled,children:v.label},v.value))}),c&&b.length===0&&e.jsx("div",{className:k2.noResults,children:n?"Press Enter to use custom value":"No results found"})]})}const Ga="styles-module__calendar__ksu3Z",Ea="styles-module__header__UaHj3",Ra="styles-module__navButton__279oK",Wa="styles-module__monthYear__RKQOf",Fa="styles-module__month__w3ai-",Ua="styles-module__year__VN2vF",Oa="styles-module__weekdays__U3vpO",Xa="styles-module__weekday__g2nb6",Ka="styles-module__days__XPYYB",Ya="styles-module__week__5lMWI",Ja="styles-module__weekNumber__Hgwi-",Qa="styles-module__day__lj7zf",el="styles-module__currentMonth__yCa9a",tl="styles-module__otherMonth__ppTX4",al="styles-module__today__DSndt",ll="styles-module__dayNumber__ifIP9",sl="styles-module__selected__VqCiG",rl="styles-module__highlighted__QBnL-",il="styles-module__disabled__WJUmV",ol="styles-module__eventIndicators__SuOYU",cl="styles-module__eventDot__1QFLK",hl="styles-module__eventPulse__1lkEF",fl="styles-module__footer__rraAV",dl="styles-module__todayButton__661G0",nl="styles-module__minimal__5Zdyf",ml="styles-module__modern__2J5kk",O={calendar:Ga,header:Ea,navButton:Ra,monthYear:Wa,month:Fa,year:Ua,weekdays:Oa,weekday:Xa,days:Ka,week:Ya,weekNumber:Ja,day:Qa,currentMonth:el,otherMonth:tl,today:al,dayNumber:ll,selected:sl,highlighted:rl,disabled:il,eventIndicators:ol,eventDot:cl,eventPulse:hl,footer:fl,todayButton:dl,minimal:nl,modern:ml},ul=["January","February","March","April","May","June","July","August","September","October","November","December"],n0=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function k0({value:t,onChange:a,onClick:i,minDate:l,maxDate:s,events:r=[],highlightedDates:h=[],disabledDates:n=[],showWeekNumbers:f=!1,firstDayOfWeek:o=0,variant:m="default",className:c="",...q}){const[g,y]=z.useState(t||new Date),[p,Z]=z.useState(t||null),[w,k]=z.useState(t||new Date),N=z.useMemo(()=>o===1?[...n0.slice(1),n0[0]]:n0,[o]),_=(u,H)=>u.getDate()===H.getDate()&&u.getMonth()===H.getMonth()&&u.getFullYear()===H.getFullYear(),d=u=>l&&u<l||s&&u>s?!0:n.some(H=>_(u,H)),b=u=>h.some(H=>_(u,H)),V=u=>r.filter(H=>_(H.date,u)),j=(u,H)=>new Date(u,H+1,0).getDate(),T=(u,H)=>{const R=new Date(u,H,1).getDay();return o===1?R===0?6:R-1:R},L=u=>{const H=new Date(u.getFullYear(),0,1),R=(u.getTime()-H.getTime())/864e5;return Math.ceil((R+H.getDay()+1)/7)},C=z.useMemo(()=>{const u=w.getFullYear(),H=w.getMonth(),R=j(u,H),s2=T(u,H),r2=[],R2=j(u,H-1);for(let i2=s2-1;i2>=0;i2--){const h0=H===0?11:H-1,f0=H===0?u-1:u;r2.push(new Date(f0,h0,R2-i2))}for(let i2=1;i2<=R;i2++)r2.push(new Date(u,H,i2));const t0=42-r2.length;for(let i2=1;i2<=t0;i2++){const h0=H===11?0:H+1,f0=H===11?u+1:u;r2.push(new Date(f0,h0,i2))}return r2},[w,o]),$=()=>{const u=new Date(w.getFullYear(),w.getMonth()-1);k(u),a?.(u)},v=()=>{const u=new Date(w.getFullYear(),w.getMonth()+1);k(u),a?.(u)},M=u=>{if(d(u))return;Z(u);const H=V(u);i?.(H)},x=()=>{const u=new Date,H=w.getMonth()!==u.getMonth()||w.getFullYear()!==u.getFullYear();k(u),Z(u),H&&a?.(u);const R=V(u);i?.(R)},B=u=>_(u,new Date),P=u=>p&&_(u,p),D=u=>u.getMonth()===w.getMonth(),S=[];for(let u=0;u<C.length;u+=7)S.push(C.slice(u,u+7));return e.jsxs("div",{className:`${O.calendar} ${O[m]} ${c}`,...q,children:[e.jsxs("div",{className:O.header,children:[e.jsx("button",{type:"button",className:O.navButton,onClick:$,"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:O.monthYear,children:[e.jsx("span",{className:O.month,children:ul[w.getMonth()]}),e.jsx("span",{className:O.year,children:w.getFullYear()})]}),e.jsx("button",{type:"button",className:O.navButton,onClick:v,"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:O.weekdays,children:[f&&e.jsx("div",{className:O.weekNumber,children:"Wk"}),N.map(u=>e.jsx("div",{className:O.weekday,children:u},u))]}),e.jsx("div",{className:O.days,children:S.map((u,H)=>e.jsxs("div",{className:O.week,children:[f&&u[0]&&e.jsx("div",{className:O.weekNumber,children:L(u[0])}),u.map((R,s2)=>{if(!R)return e.jsx("div",{className:O.day},s2);const r2=V(R),R2=b(R),t0=d(R);return e.jsxs("button",{type:"button",className:`${O.day} ${D(R)?O.currentMonth:O.otherMonth} ${B(R)?O.today:""} ${P(R)?O.selected:""} ${R2?O.highlighted:""} ${t0?O.disabled:""}`,onClick:()=>M(R),disabled:t0,"aria-label":R.toDateString(),children:[e.jsx("span",{className:O.dayNumber,children:R.getDate()}),r2.length>0&&e.jsx("div",{className:O.eventIndicators,children:r2.slice(0,3).map(i2=>e.jsx("span",{className:O.eventDot,style:{backgroundColor:i2.color||"#6366f1"},title:i2.title},i2.id))})]},s2)})]},H))}),e.jsx("div",{className:O.footer,children:e.jsx("button",{type:"button",className:O.todayButton,onClick:x,children:"Today"})})]})}const vl="styles-module__datePicker__uLxOg",pl="styles-module__input__0m5L3",kl="styles-module__disabled__T10FG",zl="styles-module__value__6l7A3",gl="styles-module__icons__-b7ea",bl="styles-module__clearIcon__ELMFy",Ml="styles-module__icon__0-EVW",yl="styles-module__popover__ej0Pl",V2={datePicker:vl,input:pl,disabled:kl,value:zl,icons:gl,clearIcon:bl,icon:Ml,popover:yl};function wl({value:t,onChange:a,minDate:i,maxDate:l,placeholder:s="Select a date",disabled:r=!1,variant:h="default",className:n="",...f}){const[o,m]=z.useState(!1),c=z.useRef(null);z.useEffect(()=>{const p=Z=>{c.current&&!c.current.contains(Z.target)&&m(!1)};return o&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[o]);const q=p=>{a?.(p),m(!1)},g=p=>{p.stopPropagation(),a?.(null)},y=p=>p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.jsxs("div",{className:`${V2.datePicker} ${n}`,ref:c,...f,children:[e.jsxs("button",{type:"button",className:`${V2.input} ${r?V2.disabled:""}`,onClick:()=>!r&&m(!o),disabled:r,children:[e.jsx("span",{className:V2.value,children:t?y(t):s}),e.jsxs("span",{className:V2.icons,children:[t&&!r&&e.jsx("span",{className:V2.clearIcon,onClick:g,children:"×"}),e.jsx("span",{className:V2.icon,children:"📅"})]})]}),o&&e.jsx("div",{className:V2.popover,children:e.jsx(k0,{value:t,onChange:q,minDate:i,maxDate:l,variant:h})})]})}const _l="styles-module__dateRangePicker__2-ckk",ql="styles-module__input__yirN1",Nl="styles-module__disabled__88Oht",xl="styles-module__value__rLHDv",Cl="styles-module__icons__Ceazb",jl="styles-module__clearIcon__XoOWV",Ll="styles-module__icon__k-Xdp",Zl="styles-module__popover__PVw7h",Hl="styles-module__rangeInfo__qCqH0",x2={dateRangePicker:_l,input:ql,disabled:Nl,value:xl,icons:Cl,clearIcon:jl,icon:Ll,popover:Zl,rangeInfo:Hl};function Vl({value:t,onChange:a,minDate:i,maxDate:l,className:s="",placeholder:r="Select date range",disabled:h=!1,variant:n="default"}){const[f,o]=z.useState(!1),[m,c]=z.useState({start:null,end:null}),[q,g]=z.useState(!1),y=z.useRef(null);z.useEffect(()=>{const _=d=>{y.current&&!y.current.contains(d.target)&&(o(!1),c({start:null,end:null}),g(!1))};return f&&document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[f]);const p=_=>{if(!q)c({start:_,end:null}),g(!0);else{const d=m.start,b=_;d>b?a?.({start:b,end:d}):a?.({start:d,end:b}),o(!1),c({start:null,end:null}),g(!1)}},Z=_=>{_.stopPropagation(),a?.({start:null,end:null}),c({start:null,end:null}),g(!1)},w=_=>_.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),k=()=>t?.start&&t?.end?`${w(t.start)} → ${w(t.end)}`:t?.start?w(t.start):r,N=()=>{const _=[],d=m.start||t?.start,b=m.end||t?.end;if(d&&b){const V=new Date(d);for(;V<=b;)_.push(new Date(V)),V.setDate(V.getDate()+1)}return _};return e.jsxs("div",{className:`${x2.dateRangePicker} ${s}`,ref:y,children:[e.jsxs("button",{type:"button",className:`${x2.input} ${h?x2.disabled:""}`,onClick:()=>!h&&o(!f),disabled:h,children:[e.jsx("span",{className:x2.value,children:k()}),e.jsxs("span",{className:x2.icons,children:[(t?.start||t?.end)&&!h&&e.jsx("span",{className:x2.clearIcon,onClick:Z,children:"×"}),e.jsx("span",{className:x2.icon,children:"📅"})]})]}),f&&e.jsxs("div",{className:x2.popover,children:[e.jsx("div",{className:x2.rangeInfo,children:q?"Select end date":"Select start date"}),e.jsx(k0,{value:m.start||t?.start||void 0,onChange:p,minDate:i,maxDate:l,highlightedDates:N(),variant:n})]})]})}const $l="styles-module__divider__I6KTc",Sl="styles-module__horizontal__rrjPy",Bl="styles-module__solid__LhHPX",Tl="styles-module__dashed__2ZL2z",Il="styles-module__dotted__N8tLr",Pl="styles-module__line__ff0dO",Al="styles-module__label__izE2E",Dl="styles-module__vertical__RBm03",U2={divider:$l,horizontal:Sl,solid:Bl,dashed:Tl,dotted:Il,line:Pl,label:Al,vertical:Dl};function Gl({orientation:t="horizontal",variant:a="solid",label:i,className:l=""}){const s=`${U2.divider} ${U2[t]} ${U2[a]} ${l}`;return i&&t==="horizontal"?e.jsxs("div",{className:s,children:[e.jsx("span",{className:U2.line}),e.jsx("span",{className:U2.label,children:i}),e.jsx("span",{className:U2.line})]}):e.jsx("div",{className:s})}const El="styles-module__dropdown__uiKSF",Rl="styles-module__trigger__tVV7I",Wl="styles-module__disabled__Xy0oo",Fl="styles-module__selected__RnAL-",Ul="styles-module__placeholder__aePOZ",Ol="styles-module__arrow__QYBcO",Xl="styles-module__open__huthl",Kl="styles-module__menu__Fvg4d",Yl="styles-module__option__OLwBz",Jl="styles-module__optionDisabled__n9Gdm",Ql="styles-module__active__W7XbV",z2={dropdown:El,trigger:Rl,disabled:Wl,selected:Fl,placeholder:Ul,arrow:Ol,open:Xl,menu:Kl,option:Yl,optionDisabled:Jl,active:Ql};function es({options:t,value:a,onChange:i,placeholder:l="Select an option",disabled:s=!1,className:r=""}){const[h,n]=z.useState(!1),[f,o]=z.useState(a||""),m=z.useRef(null);z.useEffect(()=>{const y=p=>{m.current&&!m.current.contains(p.target)&&n(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const c=y=>{s||(o(y),n(!1),i?.(y))},q=t.find(y=>y.value===f),g=q?.label||l;return e.jsxs("div",{className:`${z2.dropdown} ${r}`,ref:m,children:[e.jsxs("button",{className:`${z2.trigger} ${s?z2.disabled:""}`,onClick:()=>!s&&n(!h),disabled:s,type:"button",children:[e.jsx("span",{className:q?z2.selected:z2.placeholder,children:g}),e.jsx("span",{className:`${z2.arrow} ${h?z2.open:""}`,children:"▼"})]}),h&&e.jsx("div",{className:z2.menu,children:t.map(y=>e.jsx("div",{className:`${z2.option} ${y.value===f?z2.active:""} ${y.disabled?z2.optionDisabled:""}`,onClick:()=>!y.disabled&&c(y.value),children:y.label},y.value))})]})}const ts="styles-module__filePicker__mq8yj",as="styles-module__dropzone__DdFZi",ls="styles-module__disabled__PEgD4",ss="styles-module__icon__lgApu",rs="styles-module__text__Djodx",is="styles-module__input__3Edc4",os="styles-module__fileList__mG9O1",cs="styles-module__fileItem__NB3Uq",hs="styles-module__processing__R-ZHY",fs="styles-module__uploaded__gJ1od",ds="styles-module__failed__MlKNj",ns="styles-module__fileIcon__IUNOU",ms="styles-module__fileName__E1M5I",us="styles-module__fileSize__Yiown",vs="styles-module__error__KmdmE",ps="styles-module__remove__JiGmS",h2={filePicker:ts,dropzone:as,disabled:ls,icon:ss,text:rs,input:is,fileList:os,fileItem:cs,processing:hs,uploaded:fs,failed:ds,fileIcon:ns,fileName:ms,fileSize:us,error:vs,remove:ps};function ks({accept:t,multiple:a=!1,maxSize:i,disabled:l=!1,onChange:s,onUpload:r,className:h=""}){const[n,f]=z.useState([]),o=z.useRef(null),m=async p=>{if(!p||l)return;const Z=Array.from(p).map(w=>i&&w.size>i?{file:w,status:"failed",error:"File too large"}:{file:w,status:"idle"});if(f(w=>[...w,...Z]),s?.(Z),r)for(const w of Z)w.status!=="failed"&&await c(w)},c=async p=>{q(p.file.name,"processing");try{await r?.(p.file),q(p.file.name,"uploaded")}catch(Z){q(p.file.name,"failed",Z.message)}},q=(p,Z,w)=>{f(k=>k.map(N=>N.file.name===p?{...N,status:Z,error:w}:N))},g=p=>{f(Z=>Z.filter(w=>w.file.name!==p))},y=p=>{switch(p){case"processing":return"⏳";case"uploaded":return"✓";case"failed":return"✗";default:return"📄"}};return e.jsxs("div",{className:`${h2.filePicker} ${h}`,children:[e.jsxs("div",{className:`${h2.dropzone} ${l?h2.disabled:""}`,onClick:()=>!l&&o.current?.click(),children:[e.jsx("span",{className:h2.icon,children:"📁"}),e.jsx("span",{className:h2.text,children:"Click to select files"})]}),e.jsx("input",{ref:o,type:"file",accept:t,multiple:a,disabled:l,onChange:p=>m(p.target.files),className:h2.input}),n.length>0&&e.jsx("div",{className:h2.fileList,children:n.map((p,Z)=>e.jsxs("div",{className:`${h2.fileItem} ${h2[p.status]}`,children:[e.jsx("span",{className:h2.fileIcon,children:y(p.status)}),e.jsx("span",{className:h2.fileName,children:p.file.name}),e.jsxs("span",{className:h2.fileSize,children:[(p.file.size/1024).toFixed(1)," KB"]}),p.error&&e.jsx("span",{className:h2.error,children:p.error}),e.jsx("button",{className:h2.remove,onClick:()=>g(p.file.name),children:"×"})]},`${p.file.name}-${Z}`))})]})}const zs="styles-module__fileManager__kksK1",gs="styles-module__header__K6B4B",bs="styles-module__topMenu__WA959",Ms="styles-module__menuButton__NZCtL",ys="styles-module__breadcrumbContainer__Yu6a5",ws="styles-module__breadcrumbs__QRPz8",_s="styles-module__breadcrumbLink__tRa-0",qs="styles-module__breadcrumbCurrent__N239O",Ns="styles-module__breadcrumbSeparator__-a-y3",xs="styles-module__content__5te13",Cs="styles-module__fileList__zafmG",js="styles-module__fileItem__jMUUT",Ls="styles-module__folder__ZZu4F",Zs="styles-module__fileIcon__H84rk",Hs="styles-module__file__kRLqb",Vs="styles-module__fileThumbnail__j49mz",$s="styles-module__fileInfo__tOxJn",Ss="styles-module__fileName__CnClX",Bs="styles-module__fileMeta__qjEyj",Ts="styles-module__metaSeparator__xr8Wl",Is="styles-module__emptyState__dvy4f",Q={fileManager:zs,header:gs,topMenu:bs,menuButton:Ms,breadcrumbContainer:ys,breadcrumbs:ws,breadcrumbLink:_s,breadcrumbCurrent:qs,breadcrumbSeparator:Ns,content:xs,fileList:Cs,fileItem:js,folder:Ls,fileIcon:Zs,file:Hs,fileThumbnail:Vs,fileInfo:$s,fileName:Ss,fileMeta:Bs,metaSeparator:Ts,emptyState:Is},Ps="styles-module__contextMenu__GRBVO",As="styles-module__menuItem__RSaTZ",Ds="styles-module__disabled__bw0t-",Gs="styles-module__danger__KAIXk",Es="styles-module__menuItemContent__-bnOm",Rs="styles-module__icon__WnkZL",Ws="styles-module__label__HqC1u",Fs="styles-module__menuItemRight__NVcQN",Us="styles-module__shortcut__4Ry6D",Os="styles-module__submenuIndicator__glhiH",Xs="styles-module__separator__VcMO9",Ks="styles-module__submenu__HTiQG",m2={contextMenu:Ps,menuItem:As,disabled:Ds,danger:Gs,menuItemContent:Es,icon:Rs,label:Ws,menuItemRight:Fs,shortcut:Us,submenuIndicator:Os,separator:Xs,submenu:Ks};function p0({items:t,children:a,className:i="",disabled:l=!1}){const[s,r]=z.useState(!1),[h,n]=z.useState({x:0,y:0}),[f,o]=z.useState({}),m=z.useRef(null),c=z.useRef(null),q=k=>{if(l)return;k.preventDefault(),k.stopPropagation();const N=k.clientX,_=k.clientY,d=240,b=t.length*40+16,V=window.innerWidth,j=window.innerHeight,T=N+d>V?V-d-10:N,L=_+b>j?j-b-10:_;n({x:T,y:L}),r(!0)},g=k=>{m.current&&!m.current.contains(k.target)&&c.current&&!c.current.contains(k.target)&&(r(!1),o({}))};z.useEffect(()=>{if(s)return document.addEventListener("mousedown",g),document.addEventListener("contextmenu",g),()=>{document.removeEventListener("mousedown",g),document.removeEventListener("contextmenu",g)}},[s]);const y=k=>{k.disabled||(k.submenu?o(N=>({...N,[k.id]:!N[k.id]})):(k.onClick?.(),r(!1),o({})))},p=k=>{o(N=>({...N,[k]:!0}))},Z=k=>{o(N=>({...N,[k]:!1}))},w=(k,N=0)=>{const _=k.submenu&&k.submenu.length>0,d=f[k.id];return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:`${m2.menuItem} ${k.disabled?m2.disabled:""} ${k.danger?m2.danger:""}`,onClick:()=>y(k),onMouseEnter:()=>_&&p(k.id),onMouseLeave:()=>_&&Z(k.id),style:{paddingLeft:`${.75+N*.5}rem`},children:[e.jsxs("div",{className:m2.menuItemContent,children:[k.icon&&e.jsx("span",{className:m2.icon,children:k.icon}),e.jsx("span",{className:m2.label,children:k.label})]}),e.jsxs("div",{className:m2.menuItemRight,children:[k.shortcut&&e.jsx("span",{className:m2.shortcut,children:k.shortcut}),_&&e.jsx("span",{className:m2.submenuIndicator,children:"›"})]}),_&&d&&e.jsx("div",{className:m2.submenu,children:k.submenu.map(b=>w(b,N+1))})]}),k.separator&&e.jsx("div",{className:m2.separator})]},k.id)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:c,onContextMenu:q,className:i,style:{display:"inline-block"},children:a}),s&&e.jsx("div",{ref:m,className:m2.contextMenu,style:{left:`${h.x}px`,top:`${h.y}px`},children:t.map(k=>w(k))})]})}function Ys({items:t,topMenuItems:a=[],onItemClick:i,onItemDoubleClick:l,onBreadcrumbClick:s,onBreadcrumbDoubleClick:r,getContextMenuItems:h,className:n=""}){const[f,o]=z.useState([]),m=z.useRef(null),c=()=>{if(f.length===0)return t;let d=t;for(const b of f){const V=d.find(j=>j.id===b||j.name===b);if(V?.type!=="folder"||!V.children?.length)return[];d=V.children}return d},q=(d,b)=>{if(d.type==="folder"){const V=[...b,d.id];o(V)}i?.(d,b)},g=(d,b)=>{if(d.type==="folder"){const V=[...b,d.id];o(V)}l?.(d,b)},y=d=>{const b=f.slice(0,d+1);o(b),s?.(b,d)},p=d=>{const b=f.slice(0,d+1);o(b),r?.(b,d)},w=(()=>{const d=[{label:"Root",pathIndex:-1}];let b=t;for(let V=0;V<f.length;V++){const j=f[V],T=b.find(L=>L.id===j||L.name===j);if(T)if(d.push({label:T.name,pathIndex:V}),T.type==="folder"&&T.children)b=T.children;else break;else break}return d})(),k=(d,b=f)=>[...b,d.id],N=(d,b=f)=>{const V=k(d,b),j=h?h(d,V):[],T=[{id:"open",label:"Open",onClick:()=>q(d,b)},{id:"rename",label:"Rename",onClick:()=>console.log("Rename",d.name)},{id:"delete",label:"Delete",danger:!0,onClick:()=>console.log("Delete",d.name)}],L=j.length>0?j:T,C=x=>x?x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`:"",$=x=>x?x.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",v=()=>d.icon?e.jsx("div",{className:Q.fileIcon,children:d.icon}):d.type==="file"&&d.thumbnail?e.jsx("div",{className:Q.fileThumbnail,children:e.jsx("img",{src:d.thumbnail,alt:d.name})}):e.jsx("div",{className:Q.fileIcon,children:d.type==="folder"?e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}):e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),M=e.jsxs("button",{type:"button",className:`${Q.fileItem} ${d.type==="folder"?Q.folder:Q.file}`,onClick:()=>q(d,b),onDoubleClick:()=>g(d,b),children:[v(),e.jsxs("div",{className:Q.fileInfo,children:[e.jsx("div",{className:Q.fileName,children:d.name}),d.type==="file"&&(d.size||d.modified)&&e.jsxs("div",{className:Q.fileMeta,children:[d.size&&e.jsx("span",{children:C(d.size)}),d.size&&d.modified&&e.jsx("span",{className:Q.metaSeparator,children:"•"}),d.modified&&e.jsx("span",{children:$(d.modified)})]})]})]});return L.length>0?e.jsx(p0,{items:L,children:M},d.id):e.jsx(z.Fragment,{children:M},d.id)},_=c();return e.jsxs("div",{className:`${Q.fileManager} ${n}`,ref:m,children:[e.jsxs("div",{className:Q.header,children:[a.length>0&&e.jsx("div",{className:Q.topMenu,children:e.jsx(p0,{items:a,children:e.jsx("button",{className:Q.menuButton,type:"button","aria-label":"Menu",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})})})}),e.jsx("div",{className:Q.breadcrumbContainer,children:e.jsx("nav",{className:Q.breadcrumbs,"aria-label":"Breadcrumb",children:w.map((d,b)=>{const V=b===w.length-1,j=()=>{d.pathIndex===-1?(o([]),s?.([],-1)):y(d.pathIndex)},T=()=>{d.pathIndex===-1?(o([]),r?.([],-1)):p(d.pathIndex)};return e.jsxs(z.Fragment,{children:[V?e.jsx("span",{className:Q.breadcrumbCurrent,children:d.label}):e.jsx("button",{type:"button",className:Q.breadcrumbLink,onClick:j,onDoubleClick:T,children:d.label}),!V&&e.jsx("span",{className:Q.breadcrumbSeparator,children:"/"})]},`breadcrumb-${d.pathIndex}-${d.label}`)})})})]}),e.jsx("div",{className:Q.content,children:_.length===0?e.jsx("div",{className:Q.emptyState,children:e.jsx("p",{children:"This folder is empty"})}):e.jsx("div",{className:Q.fileList,children:_.map(d=>N(d,f))})})]})}const Js="styles-module__header__9QAJF",Qs="styles-module__sticky__wm-sd",e6="styles-module__content__ZPdW7",t6="styles-module__brand__-0bx7",a6="styles-module__logo__3KpY5",l6="styles-module__title__yDhEG",s6="styles-module__nav__6MmHf",r6="styles-module__actions__yTPsJ",$2={header:Js,sticky:Qs,content:e6,brand:t6,logo:a6,title:l6,nav:s6,actions:r6};function i6({logo:t,title:a,children:i,actions:l,sticky:s=!1,className:r=""}){return e.jsx("header",{className:`${$2.header} ${s?$2.sticky:""} ${r}`,children:e.jsxs("div",{className:$2.content,children:[(t||a)&&e.jsxs("div",{className:$2.brand,children:[t&&e.jsx("div",{className:$2.logo,children:t}),a&&e.jsx("h1",{className:$2.title,children:a})]}),i&&e.jsx("div",{className:$2.nav,children:i}),l&&e.jsx("div",{className:$2.actions,children:l})]})})}const o6="styles-module__inputContainer__KSDK-",c6="styles-module__fullWidth__rLaUj",h6="styles-module__label__-uPCz",f6="styles-module__wrapper__JTZMt",d6="styles-module__input__KRJnF",n6="styles-module__withIcon__mikvP",m6="styles-module__disabled__NjJFs",u6="styles-module__sm__cr6Ko",v6="styles-module__lg__geHP2",p6="styles-module__error__UCrFp",k6="styles-module__success__fKUT8",z6="styles-module__icon__qopq-",g6="styles-module__helperText__9ULK8",b6="styles-module__errorText__JTsOi",u2={inputContainer:o6,fullWidth:c6,label:h6,wrapper:f6,input:d6,withIcon:n6,disabled:m6,sm:u6,lg:v6,error:p6,success:k6,icon:z6,helperText:g6,errorText:b6},M0=z.forwardRef(({label:t,error:a,helperText:i,size:l="md",variant:s="default",icon:r,fullWidth:h=!1,className:n="",disabled:f=!1,...o},m)=>{const c=a?"error":s,q=`${u2.inputContainer} ${h?u2.fullWidth:""} ${n}`,g=`${u2.input} ${u2[l]} ${u2[c]} ${r?u2.withIcon:""} ${f?u2.disabled:""}`;return e.jsxs("div",{className:q,children:[t&&e.jsx("label",{className:u2.label,children:t}),e.jsxs("div",{className:u2.wrapper,children:[r&&e.jsx("span",{className:u2.icon,children:r}),e.jsx("input",{ref:m,className:g,disabled:f,...o})]}),(a||i)&&e.jsx("span",{className:`${u2.helperText} ${a?u2.errorText:""}`,children:a||i})]})});M0.displayName="Input";const M6="styles-module__label__QjEAd",y6="styles-module__disabled__yJ4NK",w6="styles-module__sm__KnRgV",_6="styles-module__md__z8a54",q6="styles-module__lg__KOzy-",N6="styles-module__required__ZBqbG",l0={label:M6,disabled:y6,sm:w6,md:_6,lg:q6,required:N6};function x6({size:t="md",required:a=!1,disabled:i=!1,className:l="",children:s,...r}){return e.jsxs("label",{className:`${l0.label} ${l0[t]} ${i?l0.disabled:""} ${l}`,...r,children:[s,a&&e.jsx("span",{className:l0.required,children:"*"})]})}const C6="styles-module__list__i-PH3",j6="styles-module__dividers__klcR-",L6="styles-module__item__hLR7A",Z6="styles-module__hoverable__6FbJF",H6="styles-module__clickable__ahnDb",V6="styles-module__disabled__W5Z3Y",$6="styles-module__icon__fSr06",S6="styles-module__content__ujdaE",B6="styles-module__title__0nMBZ",T6="styles-module__subtitle__dLJYu",I6="styles-module__badge__dwlRk",g2={list:C6,dividers:j6,item:L6,hoverable:Z6,clickable:H6,disabled:V6,icon:$6,content:S6,title:B6,subtitle:T6,badge:I6};function P6({items:t,hoverable:a=!1,dividers:i=!1,className:l=""}){return e.jsx("ul",{className:`${g2.list} ${i?g2.dividers:""} ${l}`,children:t.map(s=>e.jsxs("li",{className:`${g2.item} ${a&&!s.disabled?g2.hoverable:""} ${s.disabled?g2.disabled:""} ${s.onClick&&!s.disabled?g2.clickable:""}`,onClick:s.disabled?void 0:s.onClick,children:[s.icon&&e.jsx("span",{className:g2.icon,children:s.icon}),e.jsxs("div",{className:g2.content,children:[e.jsx("span",{className:g2.title,children:s.title}),s.subtitle&&e.jsx("span",{className:g2.subtitle,children:s.subtitle})]}),s.badge&&e.jsx("span",{className:g2.badge,children:e.jsx(o0,{variant:s.badgeVariant||"default",size:"sm",children:s.badge})})]},s.id))})}const A6="styles-module__overlay__Ty-He",D6="styles-module__fadeIn__vywQ8",G6="styles-module__modal__bC015",E6="styles-module__slideUp__i-uri",R6="styles-module__sm__HasCZ",W6="styles-module__md__y-51k",F6="styles-module__lg__bXotd",U6="styles-module__xl__wKYbR",O6="styles-module__header__agEZy",X6="styles-module__title__91HGo",K6="styles-module__closeButton__u-naO",Y6="styles-module__content__1xlis",J6="styles-module__footer__m3SbZ",S2={overlay:A6,fadeIn:D6,modal:G6,slideUp:E6,sm:R6,md:W6,lg:F6,xl:U6,header:O6,title:X6,closeButton:K6,content:Y6,footer:J6};function Q6({isOpen:t,onClose:a,title:i,children:l,footer:s,size:r="md",closeOnOverlayClick:h=!0,showCloseButton:n=!0,className:f=""}){return z.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),z.useEffect(()=>{const o=m=>{m.key==="Escape"&&t&&a()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[t,a]),t?e.jsx("div",{className:S2.overlay,onClick:h?a:void 0,children:e.jsxs("div",{className:`${S2.modal} ${S2[r]} ${f}`,onClick:o=>o.stopPropagation(),children:[(i||n)&&e.jsxs("div",{className:S2.header,children:[i&&e.jsx("h2",{className:S2.title,children:i}),n&&e.jsx("button",{className:S2.closeButton,onClick:a,type:"button",children:"×"})]}),e.jsx("div",{className:S2.content,children:l}),s&&e.jsx("div",{className:S2.footer,children:s})]})}):null}const er="styles-module__pagination__P-TuL",tr="styles-module__pageButton__saWQq",ar="styles-module__active__6G9dp",lr="styles-module__dots__HNsj1",B2={pagination:er,pageButton:tr,active:ar,dots:lr};function sr({currentPage:t,totalPages:a,onPageChange:i,showFirstLast:l=!0,siblingCount:s=1,className:r=""}){const h=(c,q)=>Array.from({length:q-c+1},(g,y)=>c+y),f=(()=>{const c=s+5;if(a<=c)return h(1,a);const q=Math.max(t-s,1),g=Math.min(t+s,a),y=q>2,p=g<a-1;return!y&&p?[...h(1,3+2*s),"...",a]:y&&!p?[1,"...",...h(a-(2+2*s),a)]:[1,"...",...h(q,g),"...",a]})(),o=()=>{t>1&&i(t-1)},m=()=>{t<a&&i(t+1)};return e.jsxs("nav",{className:`${B2.pagination} ${r}`,children:[l&&e.jsx("button",{className:B2.pageButton,onClick:()=>i(1),disabled:t===1,children:"«"}),e.jsx("button",{className:B2.pageButton,onClick:o,disabled:t===1,children:"‹"}),f.map((c,q)=>c==="..."?e.jsx("span",{className:B2.dots,children:"..."},`dots-${q}`):e.jsx("button",{className:`${B2.pageButton} ${c===t?B2.active:""}`,onClick:()=>i(c),children:c},c)),e.jsx("button",{className:B2.pageButton,onClick:m,disabled:t===a,children:"›"}),l&&e.jsx("button",{className:B2.pageButton,onClick:()=>i(a),disabled:t===a,children:"»"})]})}const rr="styles-module__container__u4q5n",ir="styles-module__progressBar__wAUjD",or="styles-module__sm__ZBiyl",cr="styles-module__md__oXZzu",hr="styles-module__lg__JmNO0",fr="styles-module__fill__bDflZ",dr="styles-module__success__drT36",nr="styles-module__warning__p-mHQ",mr="styles-module__error__ecpJB",ur="styles-module__info__vfjga",vr="styles-module__striped__El9o5",pr="styles-module__animated__9FN7u",kr="styles-module__progress-stripes__etVVj",zr="styles-module__label__TpB8Q",T2={container:rr,progressBar:ir,sm:or,md:cr,lg:hr,fill:fr,default:"styles-module__default__7qIAE",success:dr,warning:nr,error:mr,info:ur,striped:vr,animated:pr,"progress-stripes":"styles-module__progress-stripes__etVVj",progressStripes:kr,label:zr};function gr({value:t,max:a=100,variant:i="default",size:l="md",showLabel:s=!1,label:r,animated:h=!1,striped:n=!1,className:f=""}){const o=Math.min(Math.max(t/a*100,0),100),m=r||`${Math.round(o)}%`;return e.jsx("div",{className:`${T2.container} ${f}`,children:e.jsx("div",{className:`${T2.progressBar} ${T2[l]}`,children:e.jsx("div",{className:`${T2.fill} ${T2[i]} ${n?T2.striped:""} ${h?T2.animated:""}`,style:{width:`${o}%`},children:s&&e.jsx("span",{className:T2.label,children:m})})})})}const br="styles-module__radioButton__30HVZ",Mr="styles-module__disabled__TuSU6",yr="styles-module__input__-NkgJ",wr="styles-module__radio__dKOL5",_r="styles-module__label__M94so",J2={radioButton:br,disabled:Mr,input:yr,radio:wr,label:_r};function qr({label:t,value:a,name:i,checked:l=!1,disabled:s=!1,onChange:r,className:h="",...n}){return e.jsxs("label",{className:`${J2.radioButton} ${s?J2.disabled:""} ${h}`,children:[e.jsx("input",{type:"radio",name:i,value:a,checked:l,disabled:s,onChange:r,className:J2.input,...n}),e.jsx("span",{className:J2.radio}),t&&e.jsx("span",{className:J2.label,children:t})]})}const Nr="styles-module__container__KhKB7",xr="styles-module__label__nGyr8",Cr="styles-module__rangeWrapper__dnhOv",jr="styles-module__inputWrapper__vVIhy",Lr="styles-module__input__C9H5I",Zr="styles-module__disabled__8xB9M",Hr="styles-module__minMax__5jVHq",Vr="styles-module__value__4hZJK",C2={container:Nr,label:xr,rangeWrapper:Cr,inputWrapper:jr,input:Lr,disabled:Zr,minMax:Hr,value:Vr};function $r({label:t,min:a=0,max:i=100,step:l=1,value:s=50,showValue:r=!1,showMinMax:h=!1,onChange:n,className:f="",disabled:o=!1,...m}){const c=(s-a)/(i-a)*100;return e.jsxs("div",{className:`${C2.container} ${f}`,children:[t&&e.jsx("label",{className:C2.label,children:t}),e.jsxs("div",{className:C2.rangeWrapper,children:[h&&e.jsx("span",{className:C2.minMax,children:a}),e.jsx("div",{className:C2.inputWrapper,children:e.jsx("input",{type:"range",min:a,max:i,step:l,value:s,onChange:n,disabled:o,className:`${C2.input} ${o?C2.disabled:""}`,style:{"--percentage":`${c}%`},...m})}),h&&e.jsx("span",{className:C2.minMax,children:i})]}),r&&e.jsx("span",{className:C2.value,children:s})]})}const Sr="styles-module__richSelect__xtDdz",Br="styles-module__trigger__nkuFi",Tr="styles-module__disabled__aRnNR",Ir="styles-module__selectedContent__1YUDI",Pr="styles-module__textContent__sVML5",Ar="styles-module__label__DYAVs",Dr="styles-module__description__-NG4t",Gr="styles-module__placeholder__83U0w",Er="styles-module__icon__v-J2b",Rr="styles-module__arrow__m-D1Y",Wr="styles-module__open__gZef9",Fr="styles-module__menu__zMZHy",Ur="styles-module__searchWrapper__yPXor",Or="styles-module__searchInput__Vq3C6",Xr="styles-module__optionsList__OAhYK",Kr="styles-module__option__vTDi0",Yr="styles-module__optionDisabled__spphz",Jr="styles-module__active__FRlKy",Qr="styles-module__noResults__DsPu8",Y={richSelect:Sr,trigger:Br,disabled:Tr,selectedContent:Ir,textContent:Pr,label:Ar,description:Dr,placeholder:Gr,icon:Er,arrow:Rr,open:Wr,menu:Fr,searchWrapper:Ur,searchInput:Or,optionsList:Xr,option:Kr,optionDisabled:Yr,active:Jr,noResults:Qr};function e7({options:t,value:a,onChange:i,placeholder:l="Select an option",disabled:s=!1,searchable:r=!1,className:h=""}){const[n,f]=z.useState(!1),[o,m]=z.useState(""),c=z.useRef(null);z.useEffect(()=>{const p=Z=>{c.current&&!c.current.contains(Z.target)&&(f(!1),m(""))};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const q=p=>{s||(i?.(p),f(!1),m(""))},g=t.find(p=>p.value===a),y=r?t.filter(p=>p.label.toLowerCase().includes(o.toLowerCase())):t;return e.jsxs("div",{className:`${Y.richSelect} ${h}`,ref:c,children:[e.jsxs("button",{className:`${Y.trigger} ${s?Y.disabled:""}`,onClick:()=>!s&&f(!n),disabled:s,type:"button",children:[g?e.jsxs("div",{className:Y.selectedContent,children:[g.icon&&e.jsx("span",{className:Y.icon,children:g.icon}),e.jsxs("div",{className:Y.textContent,children:[e.jsx("span",{className:Y.label,children:g.label}),g.description&&e.jsx("span",{className:Y.description,children:g.description})]})]}):e.jsx("span",{className:Y.placeholder,children:l}),e.jsx("span",{className:`${Y.arrow} ${n?Y.open:""}`,children:"▼"})]}),n&&e.jsxs("div",{className:Y.menu,children:[r&&e.jsx("div",{className:Y.searchWrapper,children:e.jsx("input",{type:"text",className:Y.searchInput,placeholder:"Search...",value:o,onChange:p=>m(p.target.value),autoFocus:!0})}),e.jsxs("div",{className:Y.optionsList,children:[y.map(p=>e.jsxs("div",{className:`${Y.option} ${p.value===a?Y.active:""} ${p.disabled?Y.optionDisabled:""}`,onClick:()=>!p.disabled&&q(p.value),children:[p.icon&&e.jsx("span",{className:Y.icon,children:p.icon}),e.jsxs("div",{className:Y.textContent,children:[e.jsx("span",{className:Y.label,children:p.label}),p.description&&e.jsx("span",{className:Y.description,children:p.description})]})]},p.value)),y.length===0&&e.jsx("div",{className:Y.noResults,children:"No results found"})]})]})]})}const t7="styles-module__overlay__tP-g3",a7="styles-module__fadeIn__MKn3S",l7="styles-module__sidePanel__bfmoW",s7="styles-module__left__X7-S4",r7="styles-module__slideInLeft__nE6Ff",i7="styles-module__right__Fvefe",o7="styles-module__slideInRight__bvjTy",c7="styles-module__sm__CHsFH",h7="styles-module__md__17Q10",f7="styles-module__lg__8XCJd",d7="styles-module__header__-AKr-",n7="styles-module__title__8S4yp",m7="styles-module__closeButton__DQgJe",u7="styles-module__content__XGAif",v7="styles-module__footer__cX66N",j2={overlay:t7,fadeIn:a7,sidePanel:l7,left:s7,slideInLeft:r7,right:i7,slideInRight:o7,sm:c7,md:h7,lg:f7,header:d7,title:n7,closeButton:m7,content:u7,footer:v7};function p7({isOpen:t,onClose:a,title:i,children:l,footer:s,position:r="right",size:h="md",closeOnOverlayClick:n=!0,showCloseButton:f=!0,className:o=""}){return z.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),z.useEffect(()=>{const m=c=>{c.key==="Escape"&&t&&a()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,a]),t?e.jsx("div",{className:j2.overlay,onClick:n?a:void 0,children:e.jsxs("div",{className:`${j2.sidePanel} ${j2[r]} ${j2[h]} ${o}`,onClick:m=>m.stopPropagation(),children:[(i||f)&&e.jsxs("div",{className:j2.header,children:[i&&e.jsx("h2",{className:j2.title,children:i}),f&&e.jsx("button",{className:j2.closeButton,onClick:a,type:"button",children:"×"})]}),e.jsx("div",{className:j2.content,children:l}),s&&e.jsx("div",{className:j2.footer,children:s})]})}):null}const k7="styles-module__signpost__tLnmc",z7="styles-module__trigger__25KnS",g7="styles-module__content__z4pUG",b7="styles-module__fadeIn__0jB27",M7="styles-module__top__Jn5XX",y7="styles-module__bottom__CGe3J",w7="styles-module__left__zuDmF",_7="styles-module__right__xnSw3",q7="styles-module__inner__7euCB",N7="styles-module__arrow__mGVpk",O2={signpost:k7,trigger:z7,content:g7,fadeIn:b7,top:M7,bottom:y7,left:w7,right:_7,inner:q7,arrow:N7};function x7({trigger:t,children:a,position:i="top",className:l=""}){const[s,r]=z.useState(!1),h=z.useRef(null);return z.useEffect(()=>{const n=f=>{h.current&&!h.current.contains(f.target)&&r(!1)};return s&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[s]),e.jsxs("div",{className:`${O2.signpost} ${l}`,ref:h,children:[e.jsx("div",{className:O2.trigger,onClick:()=>r(!s),children:t}),s&&e.jsxs("div",{className:`${O2.content} ${O2[i]}`,children:[e.jsx("div",{className:O2.arrow}),e.jsx("div",{className:O2.inner,children:a})]})]})}const C7="styles-module__spinnerWrapper__ht5E9",j7="styles-module__spinner__D8f-h",L7="styles-module__circle__z537L",Z7="styles-module__spin__Gt3A-",H7="styles-module__sm__Ukc8Q",V7="styles-module__md__Hg7EK",$7="styles-module__lg__ac6jQ",S7="styles-module__primary__Pah-x",B7="styles-module__secondary__D29qO",T7="styles-module__label__nc2IY",X2={spinnerWrapper:C7,spinner:j7,circle:L7,spin:Z7,sm:H7,md:V7,lg:$7,default:"styles-module__default__X7JGx",primary:S7,secondary:B7,label:T7};function I7({size:t="md",variant:a="default",className:i="",label:l}){return e.jsxs("div",{className:`${X2.spinnerWrapper} ${i}`,children:[e.jsx("div",{className:`${X2.spinner} ${X2[t]} ${X2[a]}`,role:"status","aria-label":l||"Loading",children:e.jsx("div",{className:X2.circle})}),l&&e.jsx("span",{className:X2.label,children:l})]})}const P7="styles-module__stackView__wGZRw",A7="styles-module__horizontal__MCJ8E",D7="styles-module__vertical__INW6v",G7="styles-module__wrap__wvZPS",E7="styles-module__align-start__TeH6Z",R7="styles-module__align-center__DWOt-",W7="styles-module__align-end__9Xsx4",F7="styles-module__align-stretch__raPvB",U7="styles-module__justify-start__YVdZp",O7="styles-module__justify-center__VKg8-",X7="styles-module__justify-end__kVPBC",K7="styles-module__justify-space-between__z5-wE",Y7="styles-module__justify-space-around__FP-0m",J7="styles-module__justify-space-evenly__v5xco",Q7="styles-module__spacing-none__M23xt",e8="styles-module__spacing-xs__zdXjS",t8="styles-module__spacing-sm__G-5sR",a8="styles-module__spacing-md__oa-Jw",l8="styles-module__spacing-lg__5zhiQ",s8="styles-module__spacing-xl__qSFPT",K2={stackView:P7,horizontal:A7,vertical:D7,wrap:G7,"align-start":"styles-module__align-start__TeH6Z",alignStart:E7,"align-center":"styles-module__align-center__DWOt-",alignCenter:R7,"align-end":"styles-module__align-end__9Xsx4",alignEnd:W7,"align-stretch":"styles-module__align-stretch__raPvB",alignStretch:F7,"justify-start":"styles-module__justify-start__YVdZp",justifyStart:U7,"justify-center":"styles-module__justify-center__VKg8-",justifyCenter:O7,"justify-end":"styles-module__justify-end__kVPBC",justifyEnd:X7,"justify-space-between":"styles-module__justify-space-between__z5-wE",justifySpaceBetween:K7,"justify-space-around":"styles-module__justify-space-around__FP-0m",justifySpaceAround:Y7,"justify-space-evenly":"styles-module__justify-space-evenly__v5xco",justifySpaceEvenly:J7,"spacing-none":"styles-module__spacing-none__M23xt",spacingNone:Q7,"spacing-xs":"styles-module__spacing-xs__zdXjS",spacingXs:e8,"spacing-sm":"styles-module__spacing-sm__G-5sR",spacingSm:t8,"spacing-md":"styles-module__spacing-md__oa-Jw",spacingMd:a8,"spacing-lg":"styles-module__spacing-lg__5zhiQ",spacingLg:l8,"spacing-xl":"styles-module__spacing-xl__qSFPT",spacingXl:s8};function r8({children:t,direction:a="horizontal",align:i="start",justify:l="start",spacing:s="md",wrap:r=!1,className:h="",style:n}){return e.jsx("div",{className:`${K2.stackView} ${K2[a]} ${K2[`align-${i}`]} ${K2[`justify-${l}`]} ${K2[`spacing-${s}`]} ${r?K2.wrap:""} ${h}`,style:n,children:t})}const i8="styles-module__stepper__NUsL2",o8="styles-module__horizontal__wW8by",c8="styles-module__vertical__UqRFo",h8="styles-module__step__lmR8-",f8="styles-module__clickable__-O5QE",d8="styles-module__stepIndicator__GbO4U",n8="styles-module__current__LW7L4",m8="styles-module__completed__MC9gq",u8="styles-module__checkmark__GAoUn",v8="styles-module__stepNumber__qLNDJ",p8="styles-module__stepContent__pKC94",k8="styles-module__stepLabel__JK-4j",z8="styles-module__stepDescription__hlARr",g8="styles-module__connector__76Rsb",f2={stepper:i8,horizontal:o8,vertical:c8,step:h8,clickable:f8,stepIndicator:d8,current:n8,completed:m8,checkmark:u8,stepNumber:v8,stepContent:p8,stepLabel:k8,stepDescription:z8,connector:g8};function b8({steps:t,currentStep:a,orientation:i="horizontal",onStepClick:l,className:s=""}){return e.jsx("div",{className:`${f2.stepper} ${f2[i]} ${s}`,children:t.map((r,h)=>{const n=h<a,f=h===a,o=l&&(n||f);return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:`${f2.step} ${n?f2.completed:""} ${f?f2.current:""} ${o?f2.clickable:""}`,onClick:()=>o&&l(h),children:[e.jsx("div",{className:f2.stepIndicator,children:n?e.jsx("span",{className:f2.checkmark,children:"✓"}):r.icon?r.icon:e.jsx("span",{className:f2.stepNumber,children:h+1})}),e.jsxs("div",{className:f2.stepContent,children:[e.jsx("div",{className:f2.stepLabel,children:r.label}),r.description&&e.jsx("div",{className:f2.stepDescription,children:r.description})]})]}),h<t.length-1&&e.jsx("div",{className:`${f2.connector} ${n?f2.completed:""}`})]},h)})})}const M8="styles-module__tableWrapper__7pbjW",y8="styles-module__table__G-UMw",w8="styles-module__thead__uTTEj",_8="styles-module__th__tBFLB",q8="styles-module__tbody__-OiiP",N8="styles-module__tr__ioLC7",x8="styles-module__td__mjOQt",C8="styles-module__striped__iZ3bT",j8="styles-module__hoverable__ewlPb",L8="styles-module__bordered__IB5cr",Z8="styles-module__compact__JfcIE",H8="styles-module__clickable__URnJc",V8="styles-module__empty__Xo2NZ",n2={tableWrapper:M8,table:y8,thead:w8,th:_8,tbody:q8,tr:N8,td:x8,striped:C8,hoverable:j8,bordered:L8,compact:Z8,clickable:H8,empty:V8};function $8({columns:t,data:a,striped:i=!1,hoverable:l=!1,bordered:s=!1,compact:r=!1,onRowClick:h,className:n=""}){return e.jsxs("div",{className:`${n2.tableWrapper} ${n}`,children:[e.jsxs("table",{className:`${n2.table} ${i?n2.striped:""} ${l?n2.hoverable:""} ${s?n2.bordered:""} ${r?n2.compact:""}`,children:[e.jsx("thead",{className:n2.thead,children:e.jsx("tr",{children:t.map(f=>e.jsx("th",{className:n2.th,style:{width:f.width},children:f.header},f.key))})}),e.jsx("tbody",{className:n2.tbody,children:a.map((f,o)=>e.jsx("tr",{className:`${n2.tr} ${h?n2.clickable:""}`,onClick:()=>h?.(f),children:t.map(m=>e.jsx("td",{className:n2.td,children:m.render?m.render(f[m.key],f):String(f[m.key]??"")},m.key))},o))})]}),a.length===0&&e.jsx("div",{className:n2.empty,children:"No data available"})]})}const S8="styles-module__tabsContainer__Jv3WS",B8="styles-module__tabsList__G5a9Z",T8="styles-module__fullWidth__IiyGO",I8="styles-module__tab__Veki-",P8="styles-module__disabled__M9qZK",A8="styles-module__active__PVi-W",D8="styles-module__icon__4sTw8",G8="styles-module__pills__VlbD0",E8="styles-module__underline__Jdu1g",R8="styles-module__tabContent__bSDk7",W8="styles-module__fadeIn__sgbzQ",L2={tabsContainer:S8,tabsList:B8,fullWidth:T8,tab:I8,disabled:P8,active:A8,icon:D8,default:"styles-module__default__02SGT",pills:G8,underline:E8,tabContent:R8,fadeIn:W8};function F8({items:t,defaultActiveId:a,variant:i="default",fullWidth:l=!1,onChange:s,className:r=""}){const[h,n]=z.useState(a||t[0]?.id),f=(m,c)=>{c||(n(m),s?.(m))},o=t.find(m=>m.id===h);return e.jsxs("div",{className:`${L2.tabsContainer} ${r}`,children:[e.jsx("div",{className:`${L2.tabsList} ${L2[i]} ${l?L2.fullWidth:""}`,role:"tablist",children:t.map(m=>e.jsxs("button",{role:"tab","aria-selected":m.id===h,"aria-disabled":m.disabled,className:`${L2.tab} ${m.id===h?L2.active:""} ${m.disabled?L2.disabled:""}`,onClick:()=>f(m.id,m.disabled),disabled:m.disabled,children:[m.icon&&e.jsx("span",{className:L2.icon,children:m.icon}),e.jsx("span",{children:m.label})]},m.id))}),e.jsx("div",{className:L2.tabContent,role:"tabpanel",children:o?.content})]})}const U8="styles-module__textareaWrapper__xo-uo",O8="styles-module__fullWidth__y5-Ce",X8="styles-module__label__xONj0",K8="styles-module__textarea__LmnbQ",Y8="styles-module__sm__uIQkQ",J8="styles-module__md__qfL-2",Q8="styles-module__lg__s6Iey",ei="styles-module__success__ehWww",ti="styles-module__error__h9V4X",ai="styles-module__resize-none__w4h2b",li="styles-module__resize-vertical__4lTu1",si="styles-module__resize-horizontal__3Fdb7",ri="styles-module__resize-both__07ghL",ii="styles-module__helperText__Zaq6O",oi="styles-module__errorText__RI-rl",y2={textareaWrapper:U8,fullWidth:O8,label:X8,textarea:K8,sm:Y8,md:J8,lg:Q8,default:"styles-module__default__jlE7o",success:ei,error:ti,"resize-none":"styles-module__resize-none__w4h2b",resizeNone:ai,"resize-vertical":"styles-module__resize-vertical__4lTu1",resizeVertical:li,"resize-horizontal":"styles-module__resize-horizontal__3Fdb7",resizeHorizontal:si,"resize-both":"styles-module__resize-both__07ghL",resizeBoth:ri,helperText:ii,errorText:oi},y0=z.forwardRef(({label:t,helperText:a,error:i,size:l="md",variant:s="default",fullWidth:r=!1,resize:h="vertical",className:n="",disabled:f,...o},m)=>{const c=i?"error":s;return e.jsxs("div",{className:`${y2.textareaWrapper} ${r?y2.fullWidth:""} ${n}`,children:[t&&e.jsx("label",{className:y2.label,children:t}),e.jsx("textarea",{ref:m,className:`${y2.textarea} ${y2[l]} ${y2[c]} ${y2[`resize-${h}`]} ${f?y2.disabled:""}`,disabled:f,...o}),i&&e.jsx("span",{className:y2.errorText,children:i}),!i&&a&&e.jsx("span",{className:y2.helperText,children:a})]})});y0.displayName="Textarea";const ci="styles-module__timeline__khbcN",hi="styles-module__vertical__EcI8f",fi="styles-module__horizontal__kv46j",di="styles-module__timelineItem__j0IQ5",ni="styles-module__timelineMarker__qk22j",mi="styles-module__dot__gfgUf",ui="styles-module__icon__hWWJd",vi="styles-module__primary__t4Cyx",pi="styles-module__success__NWp7i",ki="styles-module__warning__mfRNM",zi="styles-module__error__AwsC3",gi="styles-module__info__QaR5w",bi="styles-module__timelineConnector__deWEH",Mi="styles-module__timelineContent__Yzy-t",yi="styles-module__date__OIOdY",wi="styles-module__title__PZb8L",_i="styles-module__description__LesWv",o2={timeline:ci,vertical:hi,horizontal:fi,timelineItem:di,timelineMarker:ni,dot:mi,icon:ui,default:"styles-module__default__QmROp",primary:vi,success:pi,warning:ki,error:zi,info:gi,timelineConnector:bi,timelineContent:Mi,date:yi,title:wi,description:_i};function qi({items:t,orientation:a="vertical",className:i=""}){return e.jsx("div",{className:`${o2.timeline} ${o2[a]} ${i}`,children:t.map((l,s)=>e.jsxs("div",{className:o2.timelineItem,children:[e.jsx("div",{className:`${o2.timelineMarker} ${l.color?o2[l.color]:o2.default}`,children:l.icon?e.jsx("span",{className:o2.icon,children:l.icon}):e.jsx("span",{className:o2.dot})}),s<t.length-1&&e.jsx("div",{className:`${o2.timelineConnector} ${l.color?o2[l.color]:o2.default}`}),e.jsxs("div",{className:o2.timelineContent,children:[l.date&&e.jsx("span",{className:o2.date,children:l.date}),e.jsx("h4",{className:o2.title,children:l.title}),l.description&&e.jsx("p",{className:o2.description,children:l.description})]})]},l.id))})}const Ni="styles-module__toggleSwitch__HDqFP",xi="styles-module__disabled__tbXNT",Ci="styles-module__input__oBVdg",ji="styles-module__sm__O8zA8",Li="styles-module__md__2vfHI",Zi="styles-module__lg__S65-b",Hi="styles-module__slider__gYGJ6",Vi="styles-module__checked__-4pJ2",$i="styles-module__label__xIgTV",I2={toggleSwitch:Ni,disabled:xi,input:Ci,switch:"styles-module__switch__4NsVE",sm:ji,md:Li,lg:Zi,slider:Hi,checked:Vi,label:$i};function Si({checked:t,defaultChecked:a=!1,onChange:i,label:l,disabled:s=!1,size:r="md",className:h=""}){const[n,f]=z.useState(a),o=t!==void 0,m=o?t:n,c=()=>{if(s)return;const q=!m;o||f(q),i?.(q)};return e.jsxs("label",{className:`${I2.toggleSwitch} ${s?I2.disabled:""} ${h}`,children:[e.jsx("input",{type:"checkbox",checked:m,onChange:c,disabled:s,className:I2.input}),e.jsx("span",{className:`${I2.switch} ${I2[r]} ${m?I2.checked:""}`,children:e.jsx("span",{className:I2.slider})}),l&&e.jsx("span",{className:I2.label,children:l})]})}const Bi="styles-module__tooltipWrapper__jXXEP",Ti="styles-module__tooltip__NP2ZM",Ii="styles-module__fadeIn__5hHms",Pi="styles-module__top__kvf2D",Ai="styles-module__bottom__vkl92",Di="styles-module__left__q2e3D",Gi="styles-module__right__FRcXP",Ei="styles-module__tooltipContent__3R4WL",Ri="styles-module__tooltipArrow__11JdT",Q2={tooltipWrapper:Bi,tooltip:Ti,fadeIn:Ii,top:Pi,bottom:Ai,left:Di,right:Gi,tooltipContent:Ei,tooltipArrow:Ri};function Wi({children:t,content:a,position:i="top",delay:l=200,className:s=""}){const[r,h]=z.useState(!1),n=z.useRef(),f=z.useRef(null),o=()=>{n.current=setTimeout(()=>{h(!0)},l)},m=()=>{n.current&&clearTimeout(n.current),h(!1)};return z.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),e.jsxs("div",{className:`${Q2.tooltipWrapper} ${s}`,ref:f,onMouseEnter:o,onMouseLeave:m,onFocus:o,onBlur:m,children:[t,r&&e.jsxs("div",{className:`${Q2.tooltip} ${Q2[i]}`,role:"tooltip",children:[e.jsx("div",{className:Q2.tooltipContent,children:a}),e.jsx("div",{className:Q2.tooltipArrow})]})]})}const Fi="styles-module__toastContainer__-uOPe",Ui="styles-module__topLeft__MCDhr",Oi="styles-module__topCenter__loC-J",Xi="styles-module__topRight__alKSR",Ki="styles-module__bottomLeft__sPZ6I",Yi="styles-module__bottomCenter__12yLT",Ji="styles-module__bottomRight__EdLbD",Qi="styles-module__toast__q9A3H",eo="styles-module__slideIn__-Mhbw",to="styles-module__fadeIn__I0huT",ao="styles-module__slideInLeft__Bs5x3",lo="styles-module__slideInDown__OUDGH",so="styles-module__icon__iRAEt",ro="styles-module__message__id55d",io="styles-module__closeButton__vnBxf",oo="styles-module__info__RjsXR",co="styles-module__success__1qQf4",ho="styles-module__warning__UhEF-",fo="styles-module__error__sOYOC",v2={toastContainer:Fi,topLeft:Ui,topCenter:Oi,topRight:Xi,bottomLeft:Ki,bottomCenter:Yi,bottomRight:Ji,toast:Qi,slideIn:eo,fadeIn:to,slideInLeft:ao,slideInDown:lo,icon:so,message:ro,closeButton:io,info:oo,success:co,warning:ho,error:fo},w0=z.createContext(void 0);function no({children:t,position:a="top-right",maxToasts:i=5}){const[l,s]=z.useState([]),r=z.useCallback((o,m={})=>{const c=Math.random().toString(36).substring(2,9),q={id:c,message:o,variant:m.variant||"info",duration:m.duration??5e3,dismissible:m.dismissible??!0};s(g=>[...g,q].slice(-i)),q.duration&&q.duration>0&&setTimeout(()=>{h(c)},q.duration)},[i]),h=z.useCallback(o=>{s(m=>m.filter(c=>c.id!==o))},[]),n=()=>({"top-left":v2.topLeft,"top-center":v2.topCenter,"top-right":v2.topRight,"bottom-left":v2.bottomLeft,"bottom-center":v2.bottomCenter,"bottom-right":v2.bottomRight})[a],f=o=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕"})[o];return e.jsxs(w0.Provider,{value:{showToast:r},children:[t,e.jsx("div",{className:`${v2.toastContainer} ${n()}`,children:l.map(o=>e.jsxs("div",{className:`${v2.toast} ${v2[o.variant||"info"]}`,role:"alert","aria-live":"polite",children:[e.jsx("div",{className:v2.icon,children:f(o.variant||"info")}),e.jsx("div",{className:v2.message,children:o.message}),o.dismissible&&e.jsx("button",{className:v2.closeButton,onClick:()=>h(o.id),"aria-label":"Close",children:"✕"})]},o.id))})]})}function mo(){const t=z.useContext(w0);if(!t)throw new Error("useToast must be used within a ToastProvider");return t}const uo="styles-module__treeView__qtZfC",vo="styles-module__treeNodeWrapper__6m8CE",po="styles-module__treeNode__xhhOE",ko="styles-module__disabled__-brxQ",zo="styles-module__expandIcon__Zp-Yb",go="styles-module__expanded__A4kyH",bo="styles-module__spacer__56WdM",Mo="styles-module__icon__AIE-i",yo="styles-module__label__XDGcT",wo="styles-module__children__N1c5Z",N2={treeView:uo,treeNodeWrapper:vo,treeNode:po,disabled:ko,expandIcon:zo,expanded:go,spacer:bo,icon:Mo,label:yo,children:wo};function _0({node:t,level:a,expandedIds:i,onToggle:l,onNodeClick:s}){const r=t.children&&t.children.length>0,h=i.has(t.id),n=()=>{t.disabled||(r&&l(t.id),s?.(t))};return e.jsxs("div",{className:N2.treeNodeWrapper,children:[e.jsxs("div",{className:`${N2.treeNode} ${t.disabled?N2.disabled:""}`,style:{paddingLeft:`${a*1.5}rem`},onClick:n,children:[r&&e.jsx("span",{className:`${N2.expandIcon} ${h?N2.expanded:""}`,children:"▶"}),!r&&e.jsx("span",{className:N2.spacer}),t.icon&&e.jsx("span",{className:N2.icon,children:t.icon}),e.jsx("span",{className:N2.label,children:t.label})]}),r&&h&&e.jsx("div",{className:N2.children,children:t.children.map(f=>e.jsx(_0,{node:f,level:a+1,expandedIds:i,onToggle:l,onNodeClick:s},f.id))})]})}function _o({data:t,defaultExpandedIds:a=[],onNodeClick:i,className:l=""}){const[s,r]=z.useState(new Set(a)),h=n=>{r(f=>{const o=new Set(f);return o.has(n)?o.delete(n):o.add(n),o})};return e.jsx("div",{className:`${N2.treeView} ${l}`,children:t.map(n=>e.jsx(_0,{node:n,level:0,expandedIds:s,onToggle:h,onNodeClick:i},n.id))})}const qo="styles-module__nav__sMQSv",No="styles-module__vertical__6EFeu",xo="styles-module__collapsed__eIVC7",Co="styles-module__horizontal__5UU20",jo="styles-module__navItemWrapper__Sc9wi",Lo="styles-module__navItem__7O2YX",Zo="styles-module__disabled__hvWkN",Ho="styles-module__nested__oejUs",Vo="styles-module__icon__SLdZe",$o="styles-module__label__pji80",So="styles-module__badge__03qDH",Bo="styles-module__expandIcon__bGlQG",To="styles-module__dropdownIcon__uf35v",Io="styles-module__expanded__2R6-v",Po="styles-module__children__sfAGb",Ao="styles-module__slideDown__xKrR1",Do="styles-module__dropdown__LuTLW",Go="styles-module__megaMenu__02Wp7",Eo="styles-module__megaMenuWrapper__yLvBH",Ro="styles-module__megaMenuGrid__4FrxU",Wo="styles-module__megaMenuColumn__DI0z2",e2={nav:qo,vertical:No,collapsed:xo,horizontal:Co,navItemWrapper:jo,navItem:Lo,disabled:Zo,nested:Ho,icon:Vo,label:$o,badge:So,expandIcon:Bo,dropdownIcon:To,expanded:Io,children:Po,slideDown:Ao,dropdown:Do,megaMenu:Go,megaMenuWrapper:Eo,megaMenuGrid:Ro,megaMenuColumn:Wo};function i0({item:t,level:a,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h}){const n=t.children&&t.children.length>0,f=i.has(t.id),o=t.megaMenu&&n,m=g=>{t.disabled||(n&&r==="vertical"&&(g.preventDefault(),l(t.id)),t.onClick&&t.onClick(),s?.(t))},c=()=>e.jsxs(e.Fragment,{children:[t.icon&&e.jsx("span",{className:e2.icon,children:t.icon}),!h&&e.jsx("span",{className:e2.label,children:t.label}),!h&&t.badge&&e.jsx("span",{className:e2.badge,children:t.badge}),!h&&n&&r==="vertical"&&e.jsx("span",{className:`${e2.expandIcon} ${f?e2.expanded:""}`,children:"▶"}),!h&&n&&r==="horizontal"&&e.jsx("span",{className:e2.dropdownIcon,children:"▼"})]}),q=t.href?e.jsx("a",{href:t.href,className:`${e2.navItem} ${t.disabled?e2.disabled:""} ${a>0?e2.nested:""}`,onClick:m,children:c()}):e.jsx("button",{type:"button",className:`${e2.navItem} ${t.disabled?e2.disabled:""} ${a>0?e2.nested:""}`,onClick:m,children:c()});return e.jsxs("div",{className:`${e2.navItemWrapper} ${o?e2.megaMenuWrapper:""}`,children:[q,n&&e.jsxs(e.Fragment,{children:[r==="vertical"&&f&&e.jsx("div",{className:e2.children,children:t.children.map(g=>e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h},g.id))}),r==="horizontal"&&e.jsx("div",{className:`${e2.dropdown} ${o?e2.megaMenu:""}`,children:o?e.jsx("div",{className:e2.megaMenuGrid,children:t.children.map(g=>e.jsx("div",{className:e2.megaMenuColumn,children:e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h})},g.id))}):t.children.map(g=>e.jsx(i0,{item:g,level:a+1,expandedIds:i,onToggle:l,onItemClick:s,orientation:r,collapsed:h},g.id))})]})]})}function Fo({items:t,orientation:a="vertical",defaultExpandedIds:i=[],onItemClick:l,className:s="",collapsed:r=!1}){const[h,n]=z.useState(new Set(i)),f=o=>{n(m=>{const c=new Set(m);return c.has(o)?c.delete(o):c.add(o),c})};return e.jsx("nav",{className:`${e2.nav} ${e2[a]} ${r?e2.collapsed:""} ${s}`,children:t.map(o=>e.jsx(i0,{item:o,level:0,expandedIds:h,onToggle:f,onItemClick:l,orientation:a,collapsed:r},o.id))})}const Uo="styles-module__selectContainer__JfMFS",Oo="styles-module__fullWidth__XXFCr",Xo="styles-module__label__eUUOm",Ko="styles-module__wrapper__98xFk",Yo="styles-module__select__xJaN9",Jo="styles-module__disabled__A1ppA",Qo="styles-module__sm__MEAFW",ec="styles-module__lg__sd1Gy",tc="styles-module__error__w1Lsu",ac="styles-module__success__xbtdD",lc="styles-module__arrow__UJXzt",sc="styles-module__helperText__sXAtM",rc="styles-module__errorText__7kPjp",b2={selectContainer:Uo,fullWidth:Oo,label:Xo,wrapper:Ko,select:Yo,disabled:Jo,sm:Qo,lg:ec,error:tc,success:ac,arrow:lc,helperText:sc,errorText:rc},q0=z.forwardRef(({label:t,error:a,helperText:i,size:l="md",variant:s="default",fullWidth:r=!1,className:h="",disabled:n=!1,options:f,placeholder:o,...m},c)=>{const q=a?"error":s,g=`${b2.selectContainer} ${r?b2.fullWidth:""} ${h}`,y=`${b2.select} ${b2[l]} ${b2[q]} ${n?b2.disabled:""}`;return e.jsxs("div",{className:g,children:[t&&e.jsx("label",{className:b2.label,children:t}),e.jsxs("div",{className:b2.wrapper,children:[e.jsxs("select",{ref:c,className:y,disabled:n,...m,children:[o&&e.jsx("option",{value:"",disabled:!0,children:o}),f.map(p=>e.jsx("option",{value:p.value,disabled:p.disabled,children:p.label},p.value))]}),e.jsx("span",{className:b2.arrow,children:"▼"})]}),(a||i)&&e.jsx("span",{className:`${b2.helperText} ${a?b2.errorText:""}`,children:a||i})]})});q0.displayName="Select";const ic="styles-module__grid__-18GG",oc="styles-module__columns-1__v8SEE",cc="styles-module__columns-2__Zq8Ih",hc="styles-module__columns-3__-sPCq",fc="styles-module__columns-4__jB2X6",dc="styles-module__columns-5__WbWn4",nc="styles-module__columns-6__B-cvH",mc="styles-module__columns-7__C29vY",uc="styles-module__columns-8__lFc3E",vc="styles-module__columns-9__Rhzrn",pc="styles-module__columns-10__hXu1z",kc="styles-module__columns-11__LYy-7",zc="styles-module__columns-12__0tALI",gc="styles-module__columns-sm-1__rGPgC",bc="styles-module__columns-sm-2__PjfNA",Mc="styles-module__columns-sm-3__-DkQI",yc="styles-module__columns-sm-4__vtgo0",wc="styles-module__columns-sm-5__e91Bf",_c="styles-module__columns-sm-6__2BPvq",qc="styles-module__columns-sm-7__7WSj3",Nc="styles-module__columns-sm-8__Y1rAn",xc="styles-module__columns-sm-9__ipGTO",Cc="styles-module__columns-sm-10__PsNnZ",jc="styles-module__columns-sm-11__0Xt-s",Lc="styles-module__columns-sm-12__uDrsj",Zc="styles-module__columns-md-1__VxJSA",Hc="styles-module__columns-md-2__7Jb7M",Vc="styles-module__columns-md-3__NPgJ4",$c="styles-module__columns-md-4__caSiE",Sc="styles-module__columns-md-5__YV-KD",Bc="styles-module__columns-md-6__eYuBW",Tc="styles-module__columns-md-7__kFwVo",Ic="styles-module__columns-md-8__--8cy",Pc="styles-module__columns-md-9__R5Q9b",Ac="styles-module__columns-md-10__-1u9i",Dc="styles-module__columns-md-11__3fWd5",Gc="styles-module__columns-md-12__6p-sc",Ec="styles-module__columns-lg-1__Us4pj",Rc="styles-module__columns-lg-2__42pEt",Wc="styles-module__columns-lg-3__-TIpF",Fc="styles-module__columns-lg-4__gZKHW",Uc="styles-module__columns-lg-5__04nEU",Oc="styles-module__columns-lg-6__cdsbL",Xc="styles-module__columns-lg-7__s2yv9",Kc="styles-module__columns-lg-8__B1jK9",Yc="styles-module__columns-lg-9__rA-9F",Jc="styles-module__columns-lg-10__99khu",Qc="styles-module__columns-lg-11__Wfy-H",eh="styles-module__columns-lg-12__mIBrq",th="styles-module__columns-xl-1__uxEeX",ah="styles-module__columns-xl-2__xerO3",lh="styles-module__columns-xl-3__6GLSS",sh="styles-module__columns-xl-4__XYS09",rh="styles-module__columns-xl-5__4Y5e8",ih="styles-module__columns-xl-6__Qufa4",oh="styles-module__columns-xl-7__jAsJu",ch="styles-module__columns-xl-8__1BctD",hh="styles-module__columns-xl-9__HNe1-",fh="styles-module__columns-xl-10__dSLX9",dh="styles-module__columns-xl-11__KB6nJ",nh="styles-module__columns-xl-12__UvRYk",mh="styles-module__gap-none__FSY1O",uh="styles-module__gap-xs__yd0Vu",vh="styles-module__gap-sm__9o2un",ph="styles-module__gap-md__Yb5VI",kh="styles-module__gap-lg__H0Kke",zh="styles-module__gap-xl__LDewl",gh="styles-module__gap-2xl__8nYbr",bh="styles-module__row-gap-none__JAJpj",Mh="styles-module__row-gap-xs__a3tit",yh="styles-module__row-gap-sm__72-ut",wh="styles-module__row-gap-md__7aLU-",_h="styles-module__row-gap-lg__1DeqX",qh="styles-module__row-gap-xl__KsfMY",Nh="styles-module__row-gap-2xl__obZGl",xh="styles-module__column-gap-none__KecTY",Ch="styles-module__column-gap-xs__k5jWZ",jh="styles-module__column-gap-sm__QPdcs",Lh="styles-module__column-gap-md__bjSOf",Zh="styles-module__column-gap-lg__EbeJF",Hh="styles-module__column-gap-xl__5A633",Vh="styles-module__column-gap-2xl__vgLSu",$h="styles-module__align-start__bjdHG",Sh="styles-module__align-center__yx3-m",Bh="styles-module__align-end__a4IA3",Th="styles-module__align-stretch__NyQwc",Ih="styles-module__align-baseline__XDLXG",Ph="styles-module__justify-items-start__0oBcn",Ah="styles-module__justify-items-center__nVsrc",Dh="styles-module__justify-items-end__-0L3F",Gh="styles-module__justify-items-stretch__0Lw7a",Eh="styles-module__justify-content-start__AUQmN",Rh="styles-module__justify-content-center__DbeoQ",Wh="styles-module__justify-content-end__WV6jz",Fh="styles-module__justify-content-space-between__8AaIN",Uh="styles-module__justify-content-space-around__aODdb",Oh="styles-module__justify-content-space-evenly__L9gkw",Xh="styles-module__flow-row__kRZfS",Kh="styles-module__flow-column__WwpqM",Yh="styles-module__flow-dense__lUpft",Jh="styles-module__flow-row-dense__tF-IP",Qh="styles-module__flow-column-dense__GEsOK",ef="styles-module__gridItem__DDjWB",tf="styles-module__col-span-1__mH-jY",af="styles-module__col-span-2__eTM2S",lf="styles-module__col-span-3__HYpEw",sf="styles-module__col-span-4__mg-mS",rf="styles-module__col-span-5__VVpGI",of="styles-module__col-span-6__SC8e-",cf="styles-module__col-span-7__Jibfe",hf="styles-module__col-span-8__qSQX1",ff="styles-module__col-span-9__95itg",df="styles-module__col-span-10__-Ghn-",nf="styles-module__col-span-11__Jk2PJ",mf="styles-module__col-span-12__UG7o2",uf="styles-module__col-span-full__zFrNk",vf="styles-module__col-span-sm-1__Eyzeo",pf="styles-module__col-span-sm-2__qw56t",kf="styles-module__col-span-sm-3__Dwrhj",zf="styles-module__col-span-sm-4__mdKu-",gf="styles-module__col-span-sm-5__erB04",bf="styles-module__col-span-sm-6__AN-Eo",Mf="styles-module__col-span-sm-7__jDZJk",yf="styles-module__col-span-sm-8__-c6X9",wf="styles-module__col-span-sm-9__tqIxC",_f="styles-module__col-span-sm-10__Z4S4U",qf="styles-module__col-span-sm-11__5l3EF",Nf="styles-module__col-span-sm-12__ToxhH",xf="styles-module__col-span-sm-full__5PByZ",Cf="styles-module__col-span-md-1__2iH1s",jf="styles-module__col-span-md-2__metsn",Lf="styles-module__col-span-md-3__ArbKb",Zf="styles-module__col-span-md-4__xVXZU",Hf="styles-module__col-span-md-5__ym6rl",Vf="styles-module__col-span-md-6__peA2T",$f="styles-module__col-span-md-7__AAm1f",Sf="styles-module__col-span-md-8__VLafy",Bf="styles-module__col-span-md-9__PWAAq",Tf="styles-module__col-span-md-10__GRmCe",If="styles-module__col-span-md-11__M8B4R",Pf="styles-module__col-span-md-12__HGzlP",Af="styles-module__col-span-md-full__4y9gL",Df="styles-module__col-span-lg-1__FG3dm",Gf="styles-module__col-span-lg-2__5dZiG",Ef="styles-module__col-span-lg-3__oZmcU",Rf="styles-module__col-span-lg-4__itdqY",Wf="styles-module__col-span-lg-5__ux3GV",Ff="styles-module__col-span-lg-6__zf4Bn",Uf="styles-module__col-span-lg-7__olG9c",Of="styles-module__col-span-lg-8__-QheZ",Xf="styles-module__col-span-lg-9__ZXgY2",Kf="styles-module__col-span-lg-10__bbXiL",Yf="styles-module__col-span-lg-11__AQw76",Jf="styles-module__col-span-lg-12__cFfHJ",Qf="styles-module__col-span-lg-full__IBuri",ed="styles-module__col-span-xl-1__hoqul",td="styles-module__col-span-xl-2__iTlZE",ad="styles-module__col-span-xl-3__pw3Vu",ld="styles-module__col-span-xl-4__NaUdq",sd="styles-module__col-span-xl-5__NZfk2",rd="styles-module__col-span-xl-6__piqQd",id="styles-module__col-span-xl-7__YGer8",od="styles-module__col-span-xl-8__Dr6aM",cd="styles-module__col-span-xl-9__zyuUC",hd="styles-module__col-span-xl-10__1tCT-",fd="styles-module__col-span-xl-11__4neTT",dd="styles-module__col-span-xl-12__yqf3o",nd="styles-module__col-span-xl-full__LIPRp",md="styles-module__row-span-1__zy3Hq",ud="styles-module__row-span-2__Z8RpU",vd="styles-module__row-span-3__JkAqM",pd="styles-module__row-span-4__X5Xkb",kd="styles-module__row-span-5__UGWBp",zd="styles-module__row-span-6__Ok7gd",a2={grid:ic,"columns-1":"styles-module__columns-1__v8SEE",columns1:oc,"columns-2":"styles-module__columns-2__Zq8Ih",columns2:cc,"columns-3":"styles-module__columns-3__-sPCq",columns3:hc,"columns-4":"styles-module__columns-4__jB2X6",columns4:fc,"columns-5":"styles-module__columns-5__WbWn4",columns5:dc,"columns-6":"styles-module__columns-6__B-cvH",columns6:nc,"columns-7":"styles-module__columns-7__C29vY",columns7:mc,"columns-8":"styles-module__columns-8__lFc3E",columns8:uc,"columns-9":"styles-module__columns-9__Rhzrn",columns9:vc,"columns-10":"styles-module__columns-10__hXu1z",columns10:pc,"columns-11":"styles-module__columns-11__LYy-7",columns11:kc,"columns-12":"styles-module__columns-12__0tALI",columns12:zc,"columns-sm-1":"styles-module__columns-sm-1__rGPgC",columnsSm1:gc,"columns-sm-2":"styles-module__columns-sm-2__PjfNA",columnsSm2:bc,"columns-sm-3":"styles-module__columns-sm-3__-DkQI",columnsSm3:Mc,"columns-sm-4":"styles-module__columns-sm-4__vtgo0",columnsSm4:yc,"columns-sm-5":"styles-module__columns-sm-5__e91Bf",columnsSm5:wc,"columns-sm-6":"styles-module__columns-sm-6__2BPvq",columnsSm6:_c,"columns-sm-7":"styles-module__columns-sm-7__7WSj3",columnsSm7:qc,"columns-sm-8":"styles-module__columns-sm-8__Y1rAn",columnsSm8:Nc,"columns-sm-9":"styles-module__columns-sm-9__ipGTO",columnsSm9:xc,"columns-sm-10":"styles-module__columns-sm-10__PsNnZ",columnsSm10:Cc,"columns-sm-11":"styles-module__columns-sm-11__0Xt-s",columnsSm11:jc,"columns-sm-12":"styles-module__columns-sm-12__uDrsj",columnsSm12:Lc,"columns-md-1":"styles-module__columns-md-1__VxJSA",columnsMd1:Zc,"columns-md-2":"styles-module__columns-md-2__7Jb7M",columnsMd2:Hc,"columns-md-3":"styles-module__columns-md-3__NPgJ4",columnsMd3:Vc,"columns-md-4":"styles-module__columns-md-4__caSiE",columnsMd4:$c,"columns-md-5":"styles-module__columns-md-5__YV-KD",columnsMd5:Sc,"columns-md-6":"styles-module__columns-md-6__eYuBW",columnsMd6:Bc,"columns-md-7":"styles-module__columns-md-7__kFwVo",columnsMd7:Tc,"columns-md-8":"styles-module__columns-md-8__--8cy",columnsMd8:Ic,"columns-md-9":"styles-module__columns-md-9__R5Q9b",columnsMd9:Pc,"columns-md-10":"styles-module__columns-md-10__-1u9i",columnsMd10:Ac,"columns-md-11":"styles-module__columns-md-11__3fWd5",columnsMd11:Dc,"columns-md-12":"styles-module__columns-md-12__6p-sc",columnsMd12:Gc,"columns-lg-1":"styles-module__columns-lg-1__Us4pj",columnsLg1:Ec,"columns-lg-2":"styles-module__columns-lg-2__42pEt",columnsLg2:Rc,"columns-lg-3":"styles-module__columns-lg-3__-TIpF",columnsLg3:Wc,"columns-lg-4":"styles-module__columns-lg-4__gZKHW",columnsLg4:Fc,"columns-lg-5":"styles-module__columns-lg-5__04nEU",columnsLg5:Uc,"columns-lg-6":"styles-module__columns-lg-6__cdsbL",columnsLg6:Oc,"columns-lg-7":"styles-module__columns-lg-7__s2yv9",columnsLg7:Xc,"columns-lg-8":"styles-module__columns-lg-8__B1jK9",columnsLg8:Kc,"columns-lg-9":"styles-module__columns-lg-9__rA-9F",columnsLg9:Yc,"columns-lg-10":"styles-module__columns-lg-10__99khu",columnsLg10:Jc,"columns-lg-11":"styles-module__columns-lg-11__Wfy-H",columnsLg11:Qc,"columns-lg-12":"styles-module__columns-lg-12__mIBrq",columnsLg12:eh,"columns-xl-1":"styles-module__columns-xl-1__uxEeX",columnsXl1:th,"columns-xl-2":"styles-module__columns-xl-2__xerO3",columnsXl2:ah,"columns-xl-3":"styles-module__columns-xl-3__6GLSS",columnsXl3:lh,"columns-xl-4":"styles-module__columns-xl-4__XYS09",columnsXl4:sh,"columns-xl-5":"styles-module__columns-xl-5__4Y5e8",columnsXl5:rh,"columns-xl-6":"styles-module__columns-xl-6__Qufa4",columnsXl6:ih,"columns-xl-7":"styles-module__columns-xl-7__jAsJu",columnsXl7:oh,"columns-xl-8":"styles-module__columns-xl-8__1BctD",columnsXl8:ch,"columns-xl-9":"styles-module__columns-xl-9__HNe1-",columnsXl9:hh,"columns-xl-10":"styles-module__columns-xl-10__dSLX9",columnsXl10:fh,"columns-xl-11":"styles-module__columns-xl-11__KB6nJ",columnsXl11:dh,"columns-xl-12":"styles-module__columns-xl-12__UvRYk",columnsXl12:nh,"gap-none":"styles-module__gap-none__FSY1O",gapNone:mh,"gap-xs":"styles-module__gap-xs__yd0Vu",gapXs:uh,"gap-sm":"styles-module__gap-sm__9o2un",gapSm:vh,"gap-md":"styles-module__gap-md__Yb5VI",gapMd:ph,"gap-lg":"styles-module__gap-lg__H0Kke",gapLg:kh,"gap-xl":"styles-module__gap-xl__LDewl",gapXl:zh,"gap-2xl":"styles-module__gap-2xl__8nYbr",gap2Xl:gh,"row-gap-none":"styles-module__row-gap-none__JAJpj",rowGapNone:bh,"row-gap-xs":"styles-module__row-gap-xs__a3tit",rowGapXs:Mh,"row-gap-sm":"styles-module__row-gap-sm__72-ut",rowGapSm:yh,"row-gap-md":"styles-module__row-gap-md__7aLU-",rowGapMd:wh,"row-gap-lg":"styles-module__row-gap-lg__1DeqX",rowGapLg:_h,"row-gap-xl":"styles-module__row-gap-xl__KsfMY",rowGapXl:qh,"row-gap-2xl":"styles-module__row-gap-2xl__obZGl",rowGap2Xl:Nh,"column-gap-none":"styles-module__column-gap-none__KecTY",columnGapNone:xh,"column-gap-xs":"styles-module__column-gap-xs__k5jWZ",columnGapXs:Ch,"column-gap-sm":"styles-module__column-gap-sm__QPdcs",columnGapSm:jh,"column-gap-md":"styles-module__column-gap-md__bjSOf",columnGapMd:Lh,"column-gap-lg":"styles-module__column-gap-lg__EbeJF",columnGapLg:Zh,"column-gap-xl":"styles-module__column-gap-xl__5A633",columnGapXl:Hh,"column-gap-2xl":"styles-module__column-gap-2xl__vgLSu",columnGap2Xl:Vh,"align-start":"styles-module__align-start__bjdHG",alignStart:$h,"align-center":"styles-module__align-center__yx3-m",alignCenter:Sh,"align-end":"styles-module__align-end__a4IA3",alignEnd:Bh,"align-stretch":"styles-module__align-stretch__NyQwc",alignStretch:Th,"align-baseline":"styles-module__align-baseline__XDLXG",alignBaseline:Ih,"justify-items-start":"styles-module__justify-items-start__0oBcn",justifyItemsStart:Ph,"justify-items-center":"styles-module__justify-items-center__nVsrc",justifyItemsCenter:Ah,"justify-items-end":"styles-module__justify-items-end__-0L3F",justifyItemsEnd:Dh,"justify-items-stretch":"styles-module__justify-items-stretch__0Lw7a",justifyItemsStretch:Gh,"justify-content-start":"styles-module__justify-content-start__AUQmN",justifyContentStart:Eh,"justify-content-center":"styles-module__justify-content-center__DbeoQ",justifyContentCenter:Rh,"justify-content-end":"styles-module__justify-content-end__WV6jz",justifyContentEnd:Wh,"justify-content-space-between":"styles-module__justify-content-space-between__8AaIN",justifyContentSpaceBetween:Fh,"justify-content-space-around":"styles-module__justify-content-space-around__aODdb",justifyContentSpaceAround:Uh,"justify-content-space-evenly":"styles-module__justify-content-space-evenly__L9gkw",justifyContentSpaceEvenly:Oh,"flow-row":"styles-module__flow-row__kRZfS",flowRow:Xh,"flow-column":"styles-module__flow-column__WwpqM",flowColumn:Kh,"flow-dense":"styles-module__flow-dense__lUpft",flowDense:Yh,"flow-row-dense":"styles-module__flow-row-dense__tF-IP",flowRowDense:Jh,"flow-column-dense":"styles-module__flow-column-dense__GEsOK",flowColumnDense:Qh,gridItem:ef,"col-span-1":"styles-module__col-span-1__mH-jY",colSpan1:tf,"col-span-2":"styles-module__col-span-2__eTM2S",colSpan2:af,"col-span-3":"styles-module__col-span-3__HYpEw",colSpan3:lf,"col-span-4":"styles-module__col-span-4__mg-mS",colSpan4:sf,"col-span-5":"styles-module__col-span-5__VVpGI",colSpan5:rf,"col-span-6":"styles-module__col-span-6__SC8e-",colSpan6:of,"col-span-7":"styles-module__col-span-7__Jibfe",colSpan7:cf,"col-span-8":"styles-module__col-span-8__qSQX1",colSpan8:hf,"col-span-9":"styles-module__col-span-9__95itg",colSpan9:ff,"col-span-10":"styles-module__col-span-10__-Ghn-",colSpan10:df,"col-span-11":"styles-module__col-span-11__Jk2PJ",colSpan11:nf,"col-span-12":"styles-module__col-span-12__UG7o2",colSpan12:mf,"col-span-full":"styles-module__col-span-full__zFrNk",colSpanFull:uf,"col-span-sm-1":"styles-module__col-span-sm-1__Eyzeo",colSpanSm1:vf,"col-span-sm-2":"styles-module__col-span-sm-2__qw56t",colSpanSm2:pf,"col-span-sm-3":"styles-module__col-span-sm-3__Dwrhj",colSpanSm3:kf,"col-span-sm-4":"styles-module__col-span-sm-4__mdKu-",colSpanSm4:zf,"col-span-sm-5":"styles-module__col-span-sm-5__erB04",colSpanSm5:gf,"col-span-sm-6":"styles-module__col-span-sm-6__AN-Eo",colSpanSm6:bf,"col-span-sm-7":"styles-module__col-span-sm-7__jDZJk",colSpanSm7:Mf,"col-span-sm-8":"styles-module__col-span-sm-8__-c6X9",colSpanSm8:yf,"col-span-sm-9":"styles-module__col-span-sm-9__tqIxC",colSpanSm9:wf,"col-span-sm-10":"styles-module__col-span-sm-10__Z4S4U",colSpanSm10:_f,"col-span-sm-11":"styles-module__col-span-sm-11__5l3EF",colSpanSm11:qf,"col-span-sm-12":"styles-module__col-span-sm-12__ToxhH",colSpanSm12:Nf,"col-span-sm-full":"styles-module__col-span-sm-full__5PByZ",colSpanSmFull:xf,"col-span-md-1":"styles-module__col-span-md-1__2iH1s",colSpanMd1:Cf,"col-span-md-2":"styles-module__col-span-md-2__metsn",colSpanMd2:jf,"col-span-md-3":"styles-module__col-span-md-3__ArbKb",colSpanMd3:Lf,"col-span-md-4":"styles-module__col-span-md-4__xVXZU",colSpanMd4:Zf,"col-span-md-5":"styles-module__col-span-md-5__ym6rl",colSpanMd5:Hf,"col-span-md-6":"styles-module__col-span-md-6__peA2T",colSpanMd6:Vf,"col-span-md-7":"styles-module__col-span-md-7__AAm1f",colSpanMd7:$f,"col-span-md-8":"styles-module__col-span-md-8__VLafy",colSpanMd8:Sf,"col-span-md-9":"styles-module__col-span-md-9__PWAAq",colSpanMd9:Bf,"col-span-md-10":"styles-module__col-span-md-10__GRmCe",colSpanMd10:Tf,"col-span-md-11":"styles-module__col-span-md-11__M8B4R",colSpanMd11:If,"col-span-md-12":"styles-module__col-span-md-12__HGzlP",colSpanMd12:Pf,"col-span-md-full":"styles-module__col-span-md-full__4y9gL",colSpanMdFull:Af,"col-span-lg-1":"styles-module__col-span-lg-1__FG3dm",colSpanLg1:Df,"col-span-lg-2":"styles-module__col-span-lg-2__5dZiG",colSpanLg2:Gf,"col-span-lg-3":"styles-module__col-span-lg-3__oZmcU",colSpanLg3:Ef,"col-span-lg-4":"styles-module__col-span-lg-4__itdqY",colSpanLg4:Rf,"col-span-lg-5":"styles-module__col-span-lg-5__ux3GV",colSpanLg5:Wf,"col-span-lg-6":"styles-module__col-span-lg-6__zf4Bn",colSpanLg6:Ff,"col-span-lg-7":"styles-module__col-span-lg-7__olG9c",colSpanLg7:Uf,"col-span-lg-8":"styles-module__col-span-lg-8__-QheZ",colSpanLg8:Of,"col-span-lg-9":"styles-module__col-span-lg-9__ZXgY2",colSpanLg9:Xf,"col-span-lg-10":"styles-module__col-span-lg-10__bbXiL",colSpanLg10:Kf,"col-span-lg-11":"styles-module__col-span-lg-11__AQw76",colSpanLg11:Yf,"col-span-lg-12":"styles-module__col-span-lg-12__cFfHJ",colSpanLg12:Jf,"col-span-lg-full":"styles-module__col-span-lg-full__IBuri",colSpanLgFull:Qf,"col-span-xl-1":"styles-module__col-span-xl-1__hoqul",colSpanXl1:ed,"col-span-xl-2":"styles-module__col-span-xl-2__iTlZE",colSpanXl2:td,"col-span-xl-3":"styles-module__col-span-xl-3__pw3Vu",colSpanXl3:ad,"col-span-xl-4":"styles-module__col-span-xl-4__NaUdq",colSpanXl4:ld,"col-span-xl-5":"styles-module__col-span-xl-5__NZfk2",colSpanXl5:sd,"col-span-xl-6":"styles-module__col-span-xl-6__piqQd",colSpanXl6:rd,"col-span-xl-7":"styles-module__col-span-xl-7__YGer8",colSpanXl7:id,"col-span-xl-8":"styles-module__col-span-xl-8__Dr6aM",colSpanXl8:od,"col-span-xl-9":"styles-module__col-span-xl-9__zyuUC",colSpanXl9:cd,"col-span-xl-10":"styles-module__col-span-xl-10__1tCT-",colSpanXl10:hd,"col-span-xl-11":"styles-module__col-span-xl-11__4neTT",colSpanXl11:fd,"col-span-xl-12":"styles-module__col-span-xl-12__yqf3o",colSpanXl12:dd,"col-span-xl-full":"styles-module__col-span-xl-full__LIPRp",colSpanXlFull:nd,"row-span-1":"styles-module__row-span-1__zy3Hq",rowSpan1:md,"row-span-2":"styles-module__row-span-2__Z8RpU",rowSpan2:ud,"row-span-3":"styles-module__row-span-3__JkAqM",rowSpan3:vd,"row-span-4":"styles-module__row-span-4__X5Xkb",rowSpan4:pd,"row-span-5":"styles-module__row-span-5__UGWBp",rowSpan5:kd,"row-span-6":"styles-module__row-span-6__Ok7gd",rowSpan6:zd};function N0({columns:t=12,columnsSm:a,columnsMd:i,columnsLg:l,columnsXl:s,gap:r="md",rowGap:h,columnGap:n,alignItems:f,justifyItems:o,justifyContent:m,autoFlow:c,className:q="",children:g,...y}){const p=[a2.grid,a2[`columns-${t}`],a&&a2[`columns-sm-${a}`],i&&a2[`columns-md-${i}`],l&&a2[`columns-lg-${l}`],s&&a2[`columns-xl-${s}`],a2[`gap-${r}`],h&&a2[`row-gap-${h}`],n&&a2[`column-gap-${n}`],f&&a2[`align-${f}`],o&&a2[`justify-items-${o}`],m&&a2[`justify-content-${m}`],c&&a2[`flow-${c}`],q].filter(Boolean).join(" ");return e.jsx("div",{className:p,...y,children:g})}function x0({colSpan:t,colSpanSm:a,colSpanMd:i,colSpanLg:l,colSpanXl:s,rowSpan:r,colStart:h,colEnd:n,rowStart:f,rowEnd:o,className:m="",children:c,...q}){const g=[a2.gridItem,t&&a2[`col-span-${t}`],a&&a2[`col-span-sm-${a}`],i&&a2[`col-span-md-${i}`],l&&a2[`col-span-lg-${l}`],s&&a2[`col-span-xl-${s}`],r&&a2[`row-span-${r}`],m].filter(Boolean).join(" "),y={};return h&&(y.gridColumnStart=h),n&&(y.gridColumnEnd=n),f&&(y.gridRowStart=f),o&&(y.gridRowEnd=o),e.jsx("div",{className:g,style:y,...q,children:c})}N0.Item=x0;const gd="styles-module__container__VdOF1",bd="styles-module__centered__VnHGF",Md="styles-module__size-xs__-MEhp",yd="styles-module__size-sm__ZuE4A",wd="styles-module__size-md__piQ0Z",_d="styles-module__size-lg__Grr0V",qd="styles-module__size-xl__aBZcL",Nd="styles-module__size-2xl__qimqK",xd="styles-module__size-full__02jid",Cd="styles-module__fluid__yUjnw",jd="styles-module__padding-none__BoJqT",Ld="styles-module__padding-sm__jnwGB",Zd="styles-module__padding-md__awpVn",Hd="styles-module__padding-lg__rnErD",Vd="styles-module__padding-xl__vpDQ1",e0={container:gd,centered:bd,"size-xs":"styles-module__size-xs__-MEhp",sizeXs:Md,"size-sm":"styles-module__size-sm__ZuE4A",sizeSm:yd,"size-md":"styles-module__size-md__piQ0Z",sizeMd:wd,"size-lg":"styles-module__size-lg__Grr0V",sizeLg:_d,"size-xl":"styles-module__size-xl__aBZcL",sizeXl:qd,"size-2xl":"styles-module__size-2xl__qimqK",size2Xl:Nd,"size-full":"styles-module__size-full__02jid",sizeFull:xd,fluid:Cd,"padding-none":"styles-module__padding-none__BoJqT",paddingNone:jd,"padding-sm":"styles-module__padding-sm__jnwGB",paddingSm:Ld,"padding-md":"styles-module__padding-md__awpVn",paddingMd:Zd,"padding-lg":"styles-module__padding-lg__rnErD",paddingLg:Hd,"padding-xl":"styles-module__padding-xl__vpDQ1",paddingXl:Vd};function $d({size:t="lg",padding:a="md",centered:i=!0,fluid:l=!1,className:s="",children:r,...h}){const n=[e0.container,!l&&e0[`size-${t}`],e0[`padding-${a}`],i&&e0.centered,l&&e0.fluid,s].filter(Boolean).join(" ");return e.jsx("div",{className:n,...h,children:r})}const Sd="styles-module__spacer__qss6j",Bd="styles-module__axis-vertical__3Kgfw",Td="styles-module__size-xs__SaVUa",Id="styles-module__size-sm__UBNV3",Pd="styles-module__size-md__yESLg",Ad="styles-module__size-lg__vQTo6",Dd="styles-module__size-xl__xnHrI",Gd="styles-module__size-2xl__3-kBv",Ed="styles-module__size-3xl__CLpLD",Rd="styles-module__size-4xl__JaQzV",Wd="styles-module__axis-horizontal__zztIj",Fd="styles-module__axis-both__1qVsg",m0={spacer:Sd,"axis-vertical":"styles-module__axis-vertical__3Kgfw",axisVertical:Bd,"size-xs":"styles-module__size-xs__SaVUa",sizeXs:Td,"size-sm":"styles-module__size-sm__UBNV3",sizeSm:Id,"size-md":"styles-module__size-md__yESLg",sizeMd:Pd,"size-lg":"styles-module__size-lg__vQTo6",sizeLg:Ad,"size-xl":"styles-module__size-xl__xnHrI",sizeXl:Dd,"size-2xl":"styles-module__size-2xl__3-kBv",size2Xl:Gd,"size-3xl":"styles-module__size-3xl__CLpLD",size3Xl:Ed,"size-4xl":"styles-module__size-4xl__JaQzV",size4Xl:Rd,"axis-horizontal":"styles-module__axis-horizontal__zztIj",axisHorizontal:Wd,"axis-both":"styles-module__axis-both__1qVsg",axisBoth:Fd};function Ud({size:t="md",axis:a="vertical",spacing:i,className:l=""}){const s=[m0.spacer,m0[`size-${t}`],m0[`axis-${a}`],l].filter(Boolean).join(" "),r={};if(i!==void 0){const h=typeof i=="number"?`${i}px`:i;switch(a){case"horizontal":r.width=h,r.height=0;break;case"vertical":r.height=h,r.width=0;break;case"both":r.width=h,r.height=h;break}}return e.jsx("div",{className:s,style:r,"aria-hidden":"true"})}const Od="styles-module__skeleton__IE-Vu",Xd="styles-module__animation-pulse__aYSI1",Kd="styles-module__pulse__8b7Cb",Yd="styles-module__animation-wave__88ZQe",Jd="styles-module__wave__5-OJD",Qd="styles-module__variant-text__QpDWV",e9="styles-module__variant-circular__3X6OU",t9="styles-module__variant-rectangular__bDGYd",a9="styles-module__variant-rounded__5rsz7",l9="styles-module__textGroup__djF5j",s0={skeleton:Od,"animation-pulse":"styles-module__animation-pulse__aYSI1",animationPulse:Xd,pulse:Kd,"animation-wave":"styles-module__animation-wave__88ZQe",animationWave:Yd,wave:Jd,"variant-text":"styles-module__variant-text__QpDWV",variantText:Qd,"variant-circular":"styles-module__variant-circular__3X6OU",variantCircular:e9,"variant-rectangular":"styles-module__variant-rectangular__bDGYd",variantRectangular:t9,"variant-rounded":"styles-module__variant-rounded__5rsz7",variantRounded:a9,textGroup:l9};function E2({variant:t="text",width:a,height:i,animation:l="pulse",className:s="",lines:r=1,...h}){const n=()=>{const o={};return a!==void 0&&(o.width=typeof a=="number"?`${a}px`:a),i!==void 0&&(o.height=typeof i=="number"?`${i}px`:i),o},f=[s0.skeleton,s0[`variant-${t}`],l!=="none"&&s0[`animation-${l}`],s].filter(Boolean).join(" ");return t==="text"&&r>1?e.jsx("div",{className:s0.textGroup,...h,children:Array.from({length:r},(o,m)=>e.jsx("div",{className:f,style:{...n(),...m===r-1&&{width:a||"80%"}}},m))}):e.jsx("div",{className:f,style:n(),...h})}function C0({lines:t=3,...a}){return e.jsx(E2,{variant:"text",lines:t,...a})}function j0({size:t=40,...a}){return e.jsx(E2,{variant:"circular",width:t,height:t,...a})}function L0({width:t="100%",height:a=200,...i}){return e.jsx(E2,{variant:"rectangular",width:t,height:a,...i})}E2.Text=C0;E2.Circle=j0;E2.Rectangle=L0;const s9="styles-module__videoContainer__3jwCO",r9="styles-module__video__i5zru",i9="styles-module__aspect-16-9__1C9zz",o9="styles-module__aspect-4-3__d-QMp",c9="styles-module__aspect-1-1__pNYYM",h9="styles-module__aspect-21-9__h138i",u0={videoContainer:s9,video:r9,"aspect-16-9":"styles-module__aspect-16-9__1C9zz",aspect169:i9,"aspect-4-3":"styles-module__aspect-4-3__d-QMp",aspect43:o9,"aspect-1-1":"styles-module__aspect-1-1__pNYYM",aspect11:c9,"aspect-21-9":"styles-module__aspect-21-9__h138i",aspect219:h9},Z0=z.forwardRef(({src:t,sources:a,poster:i,aspectRatio:l="16:9",controls:s=!0,autoPlay:r=!1,loop:h=!1,muted:n=!1,playsInline:f=!0,width:o,height:m,className:c="",loading:q="lazy",onError:g,...y},p)=>{const Z={};o&&(Z.width=typeof o=="number"?`${o}px`:o),m&&(Z.height=typeof m=="number"?`${m}px`:m);const w=[u0.videoContainer,l!=="auto"&&u0[`aspect-${l.replace(":","-")}`],c].filter(Boolean).join(" ");return e.jsx("div",{className:w,style:Z,children:e.jsxs("video",{ref:p,className:u0.video,controls:s,autoPlay:r,loop:h,muted:n,playsInline:f,poster:i,onError:g,...y,children:[a&&a.length>0?a.map((k,N)=>e.jsx("source",{src:k.src,type:k.type},N)):e.jsx("source",{src:t}),"Your browser does not support the video tag."]})})});Z0.displayName="Video";const f9="styles-module__audioContainer__16H-K",d9="styles-module__audio__Mq-EL",n9="styles-module__metadata__avzvt",m9="styles-module__coverArt__uvMH0",u9="styles-module__info__yWEjQ",v9="styles-module__title__zSubd",p9="styles-module__artist__YDHxr",k9="styles-module__album__15liA",z9="styles-module__variant-minimal__kn0IV",g9="styles-module__variant-standard__aqKxT",b9="styles-module__variant-detailed__jUpfp",Z2={audioContainer:f9,audio:d9,metadata:n9,coverArt:m9,info:u9,title:v9,artist:p9,album:k9,"variant-minimal":"styles-module__variant-minimal__kn0IV",variantMinimal:z9,"variant-standard":"styles-module__variant-standard__aqKxT",variantStandard:g9,"variant-detailed":"styles-module__variant-detailed__jUpfp",variantDetailed:b9},H0=z.forwardRef(({src:t,sources:a,title:i,artist:l,album:s,coverArt:r,variant:h="standard",controls:n=!0,autoPlay:f=!1,loop:o=!1,muted:m=!1,preload:c="metadata",className:q="",onError:g,onPlay:y,onPause:p,onEnded:Z,...w},k)=>{const N=[Z2.audioContainer,Z2[`variant-${h}`],q].filter(Boolean).join(" "),_=i||l||s||r;return e.jsxs("div",{className:N,children:[_&&h!=="minimal"&&e.jsxs("div",{className:Z2.metadata,children:[r&&e.jsx("div",{className:Z2.coverArt,children:e.jsx("img",{src:r,alt:i||"Cover art"})}),e.jsxs("div",{className:Z2.info,children:[i&&e.jsx("div",{className:Z2.title,children:i}),l&&e.jsx("div",{className:Z2.artist,children:l}),s&&h==="detailed"&&e.jsx("div",{className:Z2.album,children:s})]})]}),e.jsxs("audio",{ref:k,className:Z2.audio,controls:n,autoPlay:f,loop:o,muted:m,preload:c,onError:g,onPlay:y,onPause:p,onEnded:Z,...w,children:[a&&a.length>0?a.map((d,b)=>e.jsx("source",{src:d.src,type:d.type},b)):e.jsx("source",{src:t}),"Your browser does not support the audio tag."]})]})});H0.displayName="Audio";const M9="styles-module__tagInputContainer__rG-TN",y9="styles-module__fullWidth__nfUqH",w9="styles-module__label__r7qNM",_9="styles-module__inputWrapper__lb9-U",q9="styles-module__disabled__DJG6N",N9="styles-module__sm__f1Ha1",x9="styles-module__lg__bmnGH",C9="styles-module__error__Gtr32",j9="styles-module__success__SgWLH",L9="styles-module__tagsContainer__9dKnO",Z9="styles-module__tag__UTkfA",H9="styles-module__tagLabel__koIV7",V9="styles-module__removeButton__4LMvA",$9="styles-module__input__G3wtc",S9="styles-module__helperText__G6VBC",B9="styles-module__errorText__LPcTb",d2={tagInputContainer:M9,fullWidth:y9,label:w9,inputWrapper:_9,disabled:q9,sm:N9,lg:x9,error:C9,success:j9,tagsContainer:L9,tag:Z9,tagLabel:H9,removeButton:V9,input:$9,helperText:S9,errorText:B9};function T9({tags:t=[],onChange:a,onTagAdd:i,onTagRemove:l,placeholder:s="Add tags...",label:r,error:h,helperText:n,size:f="md",variant:o="default",disabled:m=!1,maxTags:c,separators:q=["Enter",","],allowDuplicates:g=!1,validate:y,removable:p=!0,fullWidth:Z=!1,className:w=""}){const[k,N]=z.useState(""),_=z.useRef(null),d=h?"error":o,b=v=>{const M=v.trim();if(!M||c&&t.length>=c||!g&&t.some(P=>P.label.toLowerCase()===M.toLowerCase())||y&&!y(M))return;const x={id:`${Date.now()}-${Math.random()}`,label:M},B=[...t,x];a?.(B),i?.(x),N("")},V=v=>{if(!p||m)return;const M=t.filter(x=>x.id!==v.id);a?.(M),l?.(v)},j=v=>{const M=k.trim();if(q.includes(v.key)){v.preventDefault(),b(M);return}v.key==="Backspace"&&!k&&t.length>0&&p&&(v.preventDefault(),V(t[t.length-1]))},T=v=>{const M=v.target.value;if(q.includes(",")&&M.includes(",")){const x=M.split(",");x.slice(0,-1).forEach(B=>b(B)),N(x[x.length-1])}else N(M)},L=()=>{_.current?.focus()},C=[d2.tagInputContainer,Z&&d2.fullWidth,w].filter(Boolean).join(" "),$=[d2.inputWrapper,d2[f],d2[d],m&&d2.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[r&&e.jsx("label",{className:d2.label,children:r}),e.jsx("div",{className:$,onClick:L,children:e.jsxs("div",{className:d2.tagsContainer,children:[t.map(v=>e.jsxs("div",{className:d2.tag,children:[e.jsx("span",{className:d2.tagLabel,children:v.label}),p&&!m&&e.jsx("button",{type:"button",className:d2.removeButton,onClick:M=>{M.stopPropagation(),V(v)},"aria-label":`Remove ${v.label}`,children:"×"})]},v.id)),(!c||t.length<c)&&e.jsx("input",{ref:_,type:"text",className:d2.input,value:k,onChange:T,onKeyDown:j,onBlur:()=>{k.trim()&&b(k)},placeholder:t.length===0?s:"",disabled:m})]})}),(h||n)&&e.jsx("span",{className:`${d2.helperText} ${h?d2.errorText:""}`,children:h||n})]})}const I9="styles-module__pinInputContainer__A-JES",P9="styles-module__label__oTDys",A9="styles-module__inputsWrapper__kkWw4",D9="styles-module__pinInput__98qy7",G9="styles-module__sm__soj3i",E9="styles-module__lg__i9e56",R9="styles-module__error__n5-a4",W9="styles-module__success__P-ASa",F9="styles-module__masked__DP3X2",U9="styles-module__helperText__1DBEi",O9="styles-module__errorText__Hr-Sq",w2={pinInputContainer:I9,label:P9,inputsWrapper:A9,pinInput:D9,sm:G9,lg:E9,error:R9,success:W9,masked:F9,helperText:U9,errorText:O9};function X9({length:t=6,type:a="numeric",size:i="md",variant:l="default",mask:s=!1,autoFocus:r=!1,disabled:h=!1,placeholder:n="",label:f,error:o,helperText:m,onChange:c,onComplete:q,value:g,defaultValue:y="",selectOnFocus:p=!0,className:Z=""}){const[w,k]=z.useState(g?.split("")||y.split("").slice(0,t)||Array(t).fill("")),N=z.useRef([]),_=o?"error":l;z.useEffect(()=>{if(g!==void 0){const v=g.split("").slice(0,t);for(;v.length<t;)v.push("");k(v)}},[g,t]),z.useEffect(()=>{r&&N.current[0]&&N.current[0].focus()},[r]);const d=v=>{if(!v)return!0;switch(a){case"numeric":return/^\d$/.test(v);case"alphabetic":return/^[a-zA-Z]$/.test(v);case"alphanumeric":return/^[a-zA-Z0-9]$/.test(v);default:return!0}},b=v=>{N.current[v]&&(N.current[v]?.focus(),p&&N.current[v]?.select())},V=(v,M)=>{const x=M.slice(-1);if(M&&!d(x))return;const B=[...w];B[v]=x,k(B);const P=B.join("");c?.(P),x&&v<t-1&&b(v+1),B.every(D=>D!=="")&&q?.(P)},j=(v,M)=>{if(M.key==="Backspace"){M.preventDefault();const x=[...w];w[v]?(x[v]="",k(x),c?.(x.join(""))):v>0&&(x[v-1]="",k(x),c?.(x.join("")),b(v-1))}if(M.key==="Delete"){M.preventDefault();const x=[...w];x[v]="",k(x),c?.(x.join(""))}M.key==="ArrowLeft"&&v>0&&(M.preventDefault(),b(v-1)),M.key==="ArrowRight"&&v<t-1&&(M.preventDefault(),b(v+1)),M.key==="Home"&&(M.preventDefault(),b(0)),M.key==="End"&&(M.preventDefault(),b(t-1))},T=v=>{v.preventDefault();const x=v.clipboardData.getData("text").slice(0,t).split("").filter(d),B=[...w];x.forEach((D,S)=>{S<t&&(B[S]=D)}),k(B),c?.(B.join(""));const P=B.findIndex(D=>!D);b(P===-1?t-1:P),B.every(D=>D!=="")&&q?.(B.join(""))},L=v=>{p&&N.current[v]&&N.current[v]?.select()},C=[w2.pinInputContainer,Z].filter(Boolean).join(" "),$=[w2.pinInput,w2[i],w2[_],s&&w2.masked,h&&w2.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[f&&e.jsx("label",{className:w2.label,children:f}),e.jsx("div",{className:w2.inputsWrapper,children:Array.from({length:t}).map((v,M)=>e.jsx("input",{ref:x=>N.current[M]=x,type:s?"password":"text",inputMode:a==="numeric"?"numeric":"text",maxLength:1,value:w[M]||"",onChange:x=>V(M,x.target.value),onKeyDown:x=>j(M,x),onPaste:T,onFocus:()=>L(M),disabled:h,placeholder:n,className:$,"aria-label":`PIN digit ${M+1}`},M))}),(o||m)&&e.jsx("span",{className:`${w2.helperText} ${o?w2.errorText:""}`,children:o||m})]})}const K9="styles-module__ratingContainer__F0pJb",Y9="styles-module__label__P8tLy",J9="styles-module__ratingWrapper__vNfnc",Q9="styles-module__rating__NcjYB",en="styles-module__star__1LgQx",tn="styles-module__sm__KTEVu",an="styles-module__md__vRYlw",ln="styles-module__lg__NoGC1",sn="styles-module__readOnly__yNpwH",rn="styles-module__disabled__cME0J",on="styles-module__valueDisplay__KxK-j",cn="styles-module__helperText__-Dh55",_2={ratingContainer:K9,label:Y9,ratingWrapper:J9,rating:Q9,star:en,sm:tn,md:an,lg:ln,readOnly:sn,disabled:rn,valueDisplay:on,helperText:cn};function hn({value:t,defaultValue:a=0,max:i=5,precision:l=1,size:s="md",readOnly:r=!1,disabled:h=!1,label:n,showValue:f=!1,emptyIcon:o,filledIcon:m,halfIcon:c,onChange:q,onHoverChange:g,className:y="",helperText:p}){const[Z,w]=z.useState(a),[k,N]=z.useState(null),_=t!==void 0?t:Z,d=k!==null?k:_,b=!r&&!h,V=v=>{if(!b)return;const M=_===v?0:v;t===void 0&&w(M),q?.(M)},j=(v,M)=>{if(b)if(l===.5){const{left:x,width:B}=M.currentTarget.getBoundingClientRect(),P=(M.clientX-x)/B,D=v+(P>.5?1:.5);N(D),g?.(D)}else{const x=v+1;N(x),g?.(x)}},T=()=>{b&&(N(null),g?.(0))},L=v=>{const M=v+1,x=d>=M,B=l===.5&&d>=M-.5&&d<M;return x?m||"★":B?c||"⯨":o||"☆"},C=[_2.ratingContainer,y].filter(Boolean).join(" "),$=[_2.rating,_2[s],h&&_2.disabled,r&&_2.readOnly].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[n&&e.jsx("label",{className:_2.label,children:n}),e.jsxs("div",{className:_2.ratingWrapper,children:[e.jsx("div",{className:$,onMouseLeave:T,children:Array.from({length:i},(v,M)=>e.jsx("button",{type:"button",className:_2.star,onClick:()=>V(M+1),onMouseMove:x=>j(M,x),disabled:h,"aria-label":`Rate ${M+1} out of ${i}`,children:L(M)},M))}),f&&e.jsxs("span",{className:_2.valueDisplay,children:[d.toFixed(l===.5?1:0)," / ",i]})]}),p&&e.jsx("span",{className:_2.helperText,children:p})]})}const fn="styles-module__window__kkIRc",dn="styles-module__maximized__8yMaC",nn="styles-module__resizable__sHn40",mn="styles-module__size-sm__yjumC",un="styles-module__size-md__kavLf",vn="styles-module__size-lg__IBW3e",pn="styles-module__size-xl__9yXK2",kn="styles-module__size-full__AEyyM",zn="styles-module__variant-default__fGFvQ",gn="styles-module__variant-dark__4x4Z6",bn="styles-module__variant-light__ruY9H",Mn="styles-module__titleBar__q4Nxs",yn="styles-module__draggable__AmUbi",wn="styles-module__titleBarContent__blnTu",_n="styles-module__title__muIAe",qn="styles-module__toolbar__3bLH-",Nn="styles-module__controls__nFGhQ",xn="styles-module__control__qiMAt",Cn="styles-module__minimize__zGRY6",jn="styles-module__maximize__SuZ8f",Ln="styles-module__close__PVa1W",Zn="styles-module__content__ABsnm",Hn="styles-module__footer__g5GSG",l2={window:fn,maximized:dn,resizable:nn,"size-sm":"styles-module__size-sm__yjumC",sizeSm:mn,"size-md":"styles-module__size-md__kavLf",sizeMd:un,"size-lg":"styles-module__size-lg__IBW3e",sizeLg:vn,"size-xl":"styles-module__size-xl__9yXK2",sizeXl:pn,"size-full":"styles-module__size-full__AEyyM",sizeFull:kn,"variant-default":"styles-module__variant-default__fGFvQ",variantDefault:zn,"variant-dark":"styles-module__variant-dark__4x4Z6",variantDark:gn,"variant-light":"styles-module__variant-light__ruY9H",variantLight:bn,titleBar:Mn,draggable:yn,titleBarContent:wn,title:_n,toolbar:qn,controls:Nn,control:xn,minimize:Cn,maximize:jn,close:Ln,content:Zn,footer:Hn};function Vn({title:t="Window",size:a="md",variant:i="default",open:l=!0,closable:s=!0,minimizable:r=!1,maximizable:h=!0,resizable:n=!1,draggable:f=!0,onClose:o,onMinimize:m,onMaximize:c,width:q,height:g,initialX:y=0,initialY:p=0,children:Z,className:w="",showControls:k=!0,toolbar:N,footer:_}){const[d,b]=z.useState(!1),[V,j]=z.useState({x:y,y:p}),[T,L]=z.useState(!1),[C,$]=z.useState({x:0,y:0}),v=z.useRef(null);if(!l)return null;const M=u=>{!f||d||(L(!0),$({x:u.clientX-V.x,y:u.clientY-V.y}))},x=u=>{T&&j({x:u.clientX-C.x,y:u.clientY-C.y})},B=()=>{L(!1)};z.useEffect(()=>{if(T)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",B),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",B)}},[T,C]);const P=()=>{b(!d),c?.()},D={};!d&&f&&(D.transform=`translate(${V.x}px, ${V.y}px)`),q&&(D.width=typeof q=="number"?`${q}px`:q),g&&(D.height=typeof g=="number"?`${g}px`:g);const S=[l2.window,l2[`size-${a}`],l2[`variant-${i}`],d&&l2.maximized,n&&l2.resizable,w].filter(Boolean).join(" ");return e.jsxs("div",{ref:v,className:S,style:D,children:[e.jsxs("div",{className:`${l2.titleBar} ${f&&!d?l2.draggable:""}`,onMouseDown:M,children:[e.jsxs("div",{className:l2.titleBarContent,children:[e.jsx("span",{className:l2.title,children:t}),N&&e.jsx("div",{className:l2.toolbar,children:N})]}),k&&e.jsxs("div",{className:l2.controls,children:[r&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.minimize}`,onClick:m,"aria-label":"Minimize",children:"−"}),h&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.maximize}`,onClick:P,"aria-label":d?"Restore":"Maximize",children:d?"⧉":"□"}),s&&e.jsx("button",{type:"button",className:`${l2.control} ${l2.close}`,onClick:o,"aria-label":"Close",children:"×"})]})]}),e.jsx("div",{className:l2.content,children:Z}),_&&e.jsx("div",{className:l2.footer,children:_})]})}const $n="styles-module__gaugeContainer__BnFBJ",Sn="styles-module__svg__IOyJ8",Bn="styles-module__animatedPath__MmF1n",Tn="styles-module__gaugeAnimation__Hxuof",In="styles-module__centerText__-aFc6",Pn="styles-module__value__f21LN",An="styles-module__unit__f4531",Dn="styles-module__label__3mWKl",Gn="styles-module__minMaxLabels__Zc16l",En="styles-module__minLabel__gGD9N",Rn="styles-module__maxLabel__tNNbn",Wn="styles-module__sm__5ZJIU",Fn="styles-module__md__ZNSR1",Un="styles-module__lg__BS4ab",On="styles-module__xl__Qeyec",M2={gaugeContainer:$n,svg:Sn,animatedPath:Bn,gaugeAnimation:Tn,centerText:In,value:Pn,unit:An,label:Dn,minMaxLabels:Gn,minLabel:En,maxLabel:Rn,sm:Wn,md:Fn,lg:Un,xl:On};function Xn({value:t,min:a=0,max:i=100,size:l="md",variant:s="default",thickness:r=12,label:h,showValue:n=!0,valueFormatter:f,showMinMax:o=!1,startAngle:m=-135,endAngle:c=135,animate:q=!0,className:g="",unit:y=""}){const p=Math.max(a,Math.min(i,t)),Z=(p-a)/(i-a)*100,w=50-r/2,k=2*Math.PI*w,N=m*Math.PI/180,_=c*Math.PI/180,d=_-N,b=N+d*Z/100,V=50+w*Math.sin(N),j=50-w*Math.cos(N),T=50+w*Math.sin(_),L=50-w*Math.cos(_),C=50+w*Math.sin(b),$=50-w*Math.cos(b),v=Math.abs(c-m)>180?1:0,M=Z/100*Math.abs(c-m)>180?1:0,x=`M ${V} ${j} A ${w} ${w} 0 ${v} 1 ${T} ${L}`,B=Z>0?`M ${V} ${j} A ${w} ${w} 0 ${M} 1 ${C} ${$}`:"",P=f?f(p):p.toFixed(0),D=[M2.gaugeContainer,M2[l],g].filter(Boolean).join(" "),S={default:"rgba(99, 102, 241, 0.8)",success:"rgba(34, 197, 94, 0.8)",warning:"rgba(251, 191, 36, 0.8)",error:"rgba(239, 68, 68, 0.8)",info:"rgba(59, 130, 246, 0.8)"};return e.jsxs("div",{className:D,children:[e.jsxs("svg",{className:M2.svg,viewBox:"0 0 100 100",children:[e.jsx("path",{d:x,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:r,strokeLinecap:"round"}),Z>0&&e.jsx("path",{d:B,fill:"none",stroke:S[s],strokeWidth:r,strokeLinecap:"round",className:q?M2.animatedPath:"",style:{strokeDasharray:k,strokeDashoffset:k*(1-Z/100)}}),e.jsxs("g",{className:M2.centerText,children:[n&&e.jsxs("text",{x:"50",y:h?"45":"52",className:M2.value,children:[P,y&&e.jsx("tspan",{className:M2.unit,children:y})]}),h&&e.jsx("text",{x:"50",y:n?"60":"52",className:M2.label,children:h})]})]}),o&&e.jsxs("div",{className:M2.minMaxLabels,children:[e.jsx("span",{className:M2.minLabel,children:a}),e.jsx("span",{className:M2.maxLabel,children:i})]})]})}const Kn="styles-module__colorPickerContainer__GcH66",Yn="styles-module__label__t8ugX",Jn="styles-module__inputWrapper__DD6E-",Qn="styles-module__colorButton__gbskz",em="styles-module__disabled__f-loV",tm="styles-module__colorPreview__toNQY",am="styles-module__colorInput__LWEMn",lm="styles-module__popover__x3a-e",sm="styles-module__pickerContent__2W72c",rm="styles-module__nativeColorPicker__rPI-9",im="styles-module__presets__IuFHV",om="styles-module__quickColors__YOCtI",cm="styles-module__presetsLabel__2bK2r",hm="styles-module__quickColorsLabel__jiYjL",fm="styles-module__presetsGrid__VDTHM",dm="styles-module__presetButton__5wc-z",nm="styles-module__active__SqIPE",mm="styles-module__quickColorsGrid__9ZX0W",um="styles-module__quickColorButton__2FpSv",vm="styles-module__helperText__AqKTN",pm="styles-module__errorText__cardI",J={colorPickerContainer:Kn,label:Yn,inputWrapper:Jn,colorButton:Qn,disabled:em,colorPreview:tm,colorInput:am,popover:lm,pickerContent:sm,nativeColorPicker:rm,presets:im,quickColors:om,presetsLabel:cm,quickColorsLabel:hm,presetsGrid:fm,presetButton:dm,active:nm,quickColorsGrid:mm,quickColorButton:um,helperText:vm,errorText:pm},km=t=>{const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null},zm=(t,a,i)=>{t/=255,a/=255,i/=255;const l=Math.max(t,a,i),s=Math.min(t,a,i);let r=0,h=0;const n=(l+s)/2;if(l!==s){const f=l-s;switch(h=n>.5?f/(2-l-s):f/(l+s),l){case t:r=((a-i)/f+(a<i?6:0))/6;break;case a:r=((i-t)/f+2)/6;break;case i:r=((t-a)/f+4)/6;break}}return{h:Math.round(r*360),s:Math.round(h*100),l:Math.round(n*100)}};function gm({value:t,defaultValue:a="#6366f1",onChange:i,format:l="hex",label:s,disabled:r=!1,showPresets:h=!0,presets:n=["#ef4444","#f97316","#f59e0b","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#ec4899"],showAlpha:f=!1,className:o="",helperText:m,error:c}){const[q,g]=z.useState(a),[y,p]=z.useState(!1),Z=z.useRef(null),w=t!==void 0?t:q;z.useEffect(()=>{const d=b=>{Z.current&&!Z.current.contains(b.target)&&p(!1)};return y&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[y]);const k=d=>{t===void 0&&g(d),i?.(d)},N=d=>{const b=km(d);if(!b)return d;switch(l){case"rgb":return`rgb(${b.r}, ${b.g}, ${b.b})`;case"hsl":const V=zm(b.r,b.g,b.b);return`hsl(${V.h}, ${V.s}%, ${V.l}%)`;default:return d}},_=[J.colorPickerContainer,o].filter(Boolean).join(" ");return e.jsxs("div",{className:_,children:[s&&e.jsx("label",{className:J.label,children:s}),e.jsxs("div",{className:J.inputWrapper,ref:Z,children:[e.jsx("button",{type:"button",className:`${J.colorButton} ${r?J.disabled:""}`,onClick:()=>!r&&p(!y),disabled:r,style:{backgroundColor:w},"aria-label":"Select color",children:e.jsx("span",{className:J.colorPreview,style:{backgroundColor:w}})}),e.jsx("input",{type:"text",className:J.colorInput,value:N(w),onChange:d=>k(d.target.value),disabled:r,placeholder:"#000000"}),y&&!r&&e.jsx("div",{className:J.popover,children:e.jsxs("div",{className:J.pickerContent,children:[e.jsx("input",{type:"color",className:J.nativeColorPicker,value:w,onChange:d=>k(d.target.value)}),h&&e.jsxs("div",{className:J.presets,children:[e.jsx("div",{className:J.presetsLabel,children:"Presets"}),e.jsx("div",{className:J.presetsGrid,children:n.map(d=>e.jsx("button",{type:"button",className:`${J.presetButton} ${d===w?J.active:""}`,style:{backgroundColor:d},onClick:()=>k(d),"aria-label":`Select ${d}`},d))})]}),e.jsxs("div",{className:J.quickColors,children:[e.jsx("div",{className:J.quickColorsLabel,children:"Quick Colors"}),e.jsxs("div",{className:J.quickColorsGrid,children:[e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#000000"},onClick:()=>k("#000000")}),e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#ffffff"},onClick:()=>k("#ffffff")}),e.jsx("button",{type:"button",className:J.quickColorButton,style:{backgroundColor:"#808080"},onClick:()=>k("#808080")})]})]})]})})]}),(c||m)&&e.jsx("span",{className:`${J.helperText} ${c?J.errorText:""}`,children:c||m})]})}const bm="styles-module__dataList__0oRGD",Mm="styles-module__item__eOSeD",ym="styles-module__highlight__DdCec",wm="styles-module__horizontal__GB4WY",_m="styles-module__label__75f3b",qm="styles-module__value__aOT7v",Nm="styles-module__vertical__H42DV",xm="styles-module__bold__mfZsI",Cm="styles-module__icon__EoISr",jm="styles-module__labelText__ca0Gf",Lm="styles-module__helpText__CW7oi",Zm="styles-module__valueContent__NlivI",Hm="styles-module__copyButton__pQctE",Vm="styles-module__dividers__uU1uU",$m="styles-module__striped__7ArH9",Sm="styles-module__sm__J9JEm",Bm="styles-module__md__stc8l",Tm="styles-module__lg__iKJsr",c2={dataList:bm,item:Mm,highlight:ym,horizontal:wm,label:_m,value:qm,vertical:Nm,bold:xm,icon:Cm,labelText:jm,helpText:Lm,valueContent:Zm,copyButton:Hm,dividers:Vm,striped:$m,sm:Sm,md:Bm,lg:Tm};function Im({items:t,orientation:a="horizontal",size:i="md",dividers:l=!0,boldLabels:s=!0,className:r="",labelWidth:h,striped:n=!1,onCopy:f}){const o=async m=>{if(!(!m.copyable||typeof m.value!="string"))try{await navigator.clipboard.writeText(m.value),f?.(m)}catch(c){console.error("Failed to copy:",c)}};return e.jsx("dl",{className:`${c2.dataList} ${c2[a]} ${c2[i]} ${l?c2.dividers:""} ${n?c2.striped:""} ${r}`,style:{"--label-width":h},children:t.map((m,c)=>e.jsxs("div",{className:`${c2.item} ${m.highlight?c2.highlight:""} ${m.className||""}`,children:[e.jsxs("dt",{className:`${c2.label} ${s?c2.bold:""}`,children:[m.icon&&e.jsx("span",{className:c2.icon,children:m.icon}),e.jsxs("span",{className:c2.labelText,children:[m.label,m.helpText&&e.jsx("span",{className:c2.helpText,title:m.helpText,children:"?"})]})]}),e.jsxs("dd",{className:c2.value,children:[e.jsx("span",{className:c2.valueContent,children:m.value}),m.copyable&&e.jsx("button",{type:"button",className:c2.copyButton,onClick:()=>o(m),"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"})})})]})]},m.id))})}const Pm="styles-module__statCard__oYt00",Am="styles-module__bordered__A56Xz",Dm="styles-module__clickable__mMZBY",Gm="styles-module__header__IYBwN",Em="styles-module__labelContainer__mSkYw",Rm="styles-module__icon__-4Vf1",Wm="styles-module__label__xxYm9",Fm="styles-module__content__RE4Xm",Um="styles-module__valueContainer__o1jtt",Om="styles-module__value__ZjSG8",Xm="styles-module__prefix__jaOdQ",Km="styles-module__suffix__9g-Zt",Ym="styles-module__description__DOrYb",Jm="styles-module__changeContainer__p4K9m",Qm="styles-module__trendIcon__8hzJD",eu="styles-module__trend-up__EkKSW",tu="styles-module__trend-down__PAAY-",au="styles-module__trend-neutral__1OaEM",lu="styles-module__footer__y26Lt",su="styles-module__loading__q9k-W",ru="styles-module__loadingSkeleton__eMNrK",iu="styles-module__skeletonValue__Pio1n",ou="styles-module__shimmer__OH-3R",cu="styles-module__skeletonDescription__Qws61",hu="styles-module__sm__t0NLs",fu="styles-module__md__f-ZAw",du="styles-module__lg__o7Q4y",nu="styles-module__primary__Kp-sj",mu="styles-module__success__Q5jxs",uu="styles-module__warning__l8Nwy",vu="styles-module__error__tcxHs",pu="styles-module__info__cF-x1",W={statCard:Pm,bordered:Am,clickable:Dm,header:Gm,labelContainer:Em,icon:Rm,label:Wm,content:Fm,valueContainer:Um,value:Om,prefix:Xm,suffix:Km,description:Ym,changeContainer:Jm,trendIcon:Qm,"trend-up":"styles-module__trend-up__EkKSW",trendUp:eu,"trend-down":"styles-module__trend-down__PAAY-",trendDown:tu,"trend-neutral":"styles-module__trend-neutral__1OaEM",trendNeutral:au,footer:lu,loading:su,loadingSkeleton:ru,skeletonValue:iu,shimmer:ou,skeletonDescription:cu,sm:hu,md:fu,lg:du,default:"styles-module__default__AaRSX",primary:nu,success:mu,warning:uu,error:vu,info:pu};function ku({value:t,label:a,icon:i,variant:l="default",size:s="md",change:r,trend:h,description:n,footer:f,loading:o=!1,className:m="",onClick:c,bordered:q=!1,prefix:g,suffix:y}){const p=!!c,Z=()=>o?e.jsx("div",{className:W.loadingSkeleton,children:e.jsx("div",{className:W.skeletonValue})}):e.jsxs("div",{className:W.valueContainer,children:[g&&e.jsx("span",{className:W.prefix,children:g}),e.jsx("span",{className:W.value,children:t}),y&&e.jsx("span",{className:W.suffix,children:y})]}),w=()=>{if(!r&&!h)return null;const k=h?W[`trend-${h}`]:r?.startsWith("+")||r?.startsWith("↑")?W["trend-up"]:r?.startsWith("-")||r?.startsWith("↓")?W["trend-down"]:W["trend-neutral"];return e.jsxs("div",{className:`${W.changeContainer} ${k}`,children:[h==="up"&&!r?.includes("↑")&&!r?.includes("▲")&&e.jsx("span",{className:W.trendIcon,children:"↑"}),h==="down"&&!r?.includes("↓")&&!r?.includes("▼")&&e.jsx("span",{className:W.trendIcon,children:"↓"}),h==="neutral"&&!r?.includes("→")&&e.jsx("span",{className:W.trendIcon,children:"→"}),r&&e.jsx("span",{className:W.change,children:r})]})};return e.jsxs("div",{className:`${W.statCard} ${W[l]} ${W[s]} ${p?W.clickable:""} ${q?W.bordered:""} ${o?W.loading:""} ${m}`,onClick:c,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:p?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c?.())}:void 0,children:[e.jsxs("div",{className:W.header,children:[e.jsxs("div",{className:W.labelContainer,children:[i&&e.jsx("span",{className:W.icon,children:i}),e.jsx("span",{className:W.label,children:a})]}),w()]}),e.jsxs("div",{className:W.content,children:[Z(),n&&!o&&e.jsx("p",{className:W.description,children:n}),o&&n&&e.jsx("div",{className:W.loadingSkeleton,children:e.jsx("div",{className:W.skeletonDescription})})]}),f&&!o&&e.jsx("div",{className:W.footer,children:f})]})}const zu="styles-module__split__10amd",gu="styles-module__horizontal__nWMIm",bu="styles-module__vertical__dHG5L",Mu="styles-module__pane__eLr0i",yu="styles-module__gutter__bzVSj",wu="styles-module__gutterHandle__laNCM",_u="styles-module__dragging__GRmLp",qu="styles-module__disabled__-Lei8",P2={split:zu,horizontal:gu,vertical:bu,pane:Mu,gutter:yu,gutterHandle:wu,dragging:_u,disabled:qu};function Nu({direction:t="horizontal",initialSize:a=50,minSize:i=100,maxSize:l,children:s,onResize:r,className:h="",disabled:n=!1,snapPositions:f=[],snapThreshold:o=20,gutterSize:m=8}){const[c,q]=z.useState(a),[g,y]=z.useState(!1),p=z.useRef(null),Z=z.useRef(0),w=z.useRef(0),k=t==="horizontal",N=C=>{n||(C.preventDefault(),y(!0),Z.current=k?C.clientX:C.clientY,w.current=c)},_=z.useCallback(C=>{if(!g||!p.current)return;const v=p.current.getBoundingClientRect(),M=k?v.width:v.height,x=k?C.clientX:C.clientY;k?v.left:v.top;const P=(x-Z.current)/M*100;let D=w.current+P;const S=i/M*100;let u=100-S;if(l&&(u=Math.min(u,l/M*100)),D=Math.max(S,Math.min(u,D)),f.length>0)for(const H of f){const R=H/100*M,s2=D/100*M;if(Math.abs(s2-R)<o){D=H;break}}q(D),r?.(D)},[g,k,i,l,f,o,r]),d=z.useCallback(()=>{g&&y(!1)},[g]);z.useEffect(()=>{if(g)return document.addEventListener("mousemove",_),document.addEventListener("mouseup",d),document.body.style.userSelect="none",document.body.style.cursor=k?"col-resize":"row-resize",()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",d),document.body.style.userSelect="",document.body.style.cursor=""}},[g,_,d,k]);const b=C=>{if(n)return;C.preventDefault(),y(!0);const $=C.touches[0];Z.current=k?$.clientX:$.clientY,w.current=c},V=z.useCallback(C=>{if(!g||!p.current)return;const $=C.touches[0],M=p.current.getBoundingClientRect(),x=k?M.width:M.height,D=((k?$.clientX:$.clientY)-Z.current)/x*100;let S=w.current+D;const u=i/x*100;let H=100-u;if(l&&(H=Math.min(H,l/x*100)),S=Math.max(u,Math.min(H,S)),f.length>0)for(const R of f){const s2=R/100*x,r2=S/100*x;if(Math.abs(r2-s2)<o){S=R;break}}q(S),r?.(S)},[g,k,i,l,f,o,r]),j=z.useCallback(()=>{g&&y(!1)},[g]);z.useEffect(()=>{if(g)return document.addEventListener("touchmove",V),document.addEventListener("touchend",j),()=>{document.removeEventListener("touchmove",V),document.removeEventListener("touchend",j)}},[g,V,j]);const[T,L]=s;return e.jsxs("div",{ref:p,className:`${P2.split} ${P2[t]} ${g?P2.dragging:""} ${n?P2.disabled:""} ${h}`,children:[e.jsx("div",{className:P2.pane,style:{[k?"width":"height"]:`${c}%`},children:T}),e.jsx("div",{className:P2.gutter,style:{[k?"width":"height"]:`${m}px`},onMouseDown:N,onTouchStart:b,role:"separator","aria-orientation":t,"aria-valuenow":c,"aria-valuemin":i,"aria-valuemax":l||100,children:e.jsx("div",{className:P2.gutterHandle})}),e.jsx("div",{className:P2.pane,style:{flex:1},children:L})]})}const xu="styles-module__imageGallery__1ewHX",Cu="styles-module__carouselContainer__CELQo",ju="styles-module__carouselMain__228vS",Lu="styles-module__carouselTrack__KssOC",Zu="styles-module__carouselSlide__pjIfk",Hu="styles-module__carouselImage__QcK-1",Vu="styles-module__sm__oyagg",$u="styles-module__md__fP0C0",Su="styles-module__lg__yaqEo",Bu="styles-module__arrow__fKqP7",Tu="styles-module__arrowLeft__KpeXV",Iu="styles-module__arrowRight__K9tqV",Pu="styles-module__indicators__BuRqL",Au="styles-module__indicator__W0UZw",Du="styles-module__active__rCFls",Gu="styles-module__thumbnails__rbSf8",Eu="styles-module__thumbnail__uw-GG",Ru="styles-module__caption__WXDtk",Wu="styles-module__grid__Godk8",Fu="styles-module__gridItem__R13Ho",Uu="styles-module__gridOverlay__2Y-3Z",Ou="styles-module__gridTitle__9Q2p3",Xu="styles-module__gridCaption__mpcNh",Ku="styles-module__masonry__tNDHq",Yu="styles-module__masonryItem__22ZfL",Ju="styles-module__masonryOverlay__nQ91c",Qu="styles-module__masonryTitle__WhvJr",ev="styles-module__masonryCaption__HP0Zk",tv="styles-module__lightbox__DLFIG",av="styles-module__fadeIn__DWqo2",lv="styles-module__lightboxContent__45Wxl",sv="styles-module__zoomIn__CIB6-",rv="styles-module__lightboxClose__9oi0c",iv="styles-module__lightboxArrow__f6Qhq",ov="styles-module__lightboxArrowLeft__qHu5S",cv="styles-module__lightboxArrowRight__4wu-Y",hv="styles-module__lightboxCaption__gVJhg",fv="styles-module__lightboxTitle__M-1gH",dv="styles-module__lightboxCounter__mpIt8",E={imageGallery:xu,carouselContainer:Cu,carouselMain:ju,carouselTrack:Lu,carouselSlide:Zu,carouselImage:Hu,sm:Vu,md:$u,lg:Su,arrow:Bu,arrowLeft:Tu,arrowRight:Iu,indicators:Pu,indicator:Au,active:Du,thumbnails:Gu,thumbnail:Eu,caption:Ru,grid:Wu,gridItem:Fu,gridOverlay:Uu,gridTitle:Ou,gridCaption:Xu,masonry:Ku,masonryItem:Yu,masonryOverlay:Ju,masonryTitle:Qu,masonryCaption:ev,lightbox:tv,fadeIn:av,lightboxContent:lv,zoomIn:sv,lightboxClose:rv,lightboxArrow:iv,lightboxArrowLeft:ov,lightboxArrowRight:cv,lightboxCaption:hv,lightboxTitle:fv,lightboxCounter:dv};function nv({images:t,variant:a="carousel",size:i="md",initialIndex:l=0,showThumbnails:s=!1,showCaptions:r=!0,autoPlay:h=0,columns:n=3,gap:f=16,lightbox:o=!0,className:m="",onImageClick:c,onIndexChange:q,showArrows:g=!0,showIndicators:y=!0,infinite:p=!0}){const[Z,w]=z.useState(l),[k,N]=z.useState(!1),[_,d]=z.useState(0),[b,V]=z.useState(!1),j=z.useRef(),T=z.useCallback(()=>{b||(V(!0),w(u=>{const H=u===0?p?t.length-1:0:u-1;return q?.(H),H}),setTimeout(()=>V(!1),300))},[t.length,p,q,b]),L=z.useCallback(()=>{b||(V(!0),w(u=>{const H=u===t.length-1?p?0:t.length-1:u+1;return q?.(H),H}),setTimeout(()=>V(!1),300))},[t.length,p,q,b]),C=(u,H)=>{c?.(u,H),o&&(d(H),N(!0))},$=u=>{w(u),q?.(u)},v=()=>{N(!1)},M=()=>{d(u=>u===0?t.length-1:u-1)},x=()=>{d(u=>u===t.length-1?0:u+1)};z.useEffect(()=>{if(a==="carousel"&&h>0)return j.current=setInterval(()=>{L()},h),()=>{j.current&&clearInterval(j.current)}},[a,h,L]),z.useEffect(()=>{const u=H=>{k?(H.key==="Escape"&&v(),H.key==="ArrowLeft"&&M(),H.key==="ArrowRight"&&x()):a==="carousel"&&(H.key==="ArrowLeft"&&T(),H.key==="ArrowRight"&&L())};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[k,a,T,L]);const B=()=>e.jsxs("div",{className:E.carouselContainer,children:[e.jsxs("div",{className:E.carouselMain,children:[e.jsx("div",{className:E.carouselTrack,style:{transform:`translateX(-${Z*100}%)`},children:t.map((u,H)=>e.jsxs("div",{className:E.carouselSlide,onClick:()=>C(u,H),children:[e.jsx("img",{src:u.src,alt:u.alt,className:E.carouselImage}),r&&u.caption&&e.jsx("div",{className:E.caption,children:u.caption})]},u.id))}),g&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${E.arrow} ${E.arrowLeft}`,onClick:T,"aria-label":"Previous image",disabled:!p&&Z===0,children:"‹"}),e.jsx("button",{className:`${E.arrow} ${E.arrowRight}`,onClick:L,"aria-label":"Next image",disabled:!p&&Z===t.length-1,children:"›"})]})]}),y&&e.jsx("div",{className:E.indicators,children:t.map((u,H)=>e.jsx("button",{className:`${E.indicator} ${H===Z?E.active:""}`,onClick:()=>{w(H),q?.(H)},"aria-label":`Go to image ${H+1}`},H))}),s&&e.jsx("div",{className:E.thumbnails,children:t.map((u,H)=>e.jsx("button",{className:`${E.thumbnail} ${H===Z?E.active:""}`,onClick:()=>$(H),"aria-label":`Select image ${H+1}`,children:e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt})},u.id))})]}),P=()=>e.jsx("div",{className:E.grid,style:{gridTemplateColumns:`repeat(${n}, 1fr)`,gap:`${f}px`},children:t.map((u,H)=>e.jsxs("div",{className:E.gridItem,onClick:()=>C(u,H),children:[e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt}),r&&(u.caption||u.title)&&e.jsxs("div",{className:E.gridOverlay,children:[u.title&&e.jsx("div",{className:E.gridTitle,children:u.title}),u.caption&&e.jsx("div",{className:E.gridCaption,children:u.caption})]})]},u.id))}),D=()=>e.jsx("div",{className:E.masonry,style:{columnCount:n,columnGap:`${f}px`},children:t.map((u,H)=>e.jsxs("div",{className:E.masonryItem,style:{marginBottom:`${f}px`},onClick:()=>C(u,H),children:[e.jsx("img",{src:u.thumbnail||u.src,alt:u.alt}),r&&(u.caption||u.title)&&e.jsxs("div",{className:E.masonryOverlay,children:[u.title&&e.jsx("div",{className:E.masonryTitle,children:u.title}),u.caption&&e.jsx("div",{className:E.masonryCaption,children:u.caption})]})]},u.id))}),S=()=>{if(!k)return null;const u=t[_];return e.jsxs("div",{className:E.lightbox,onClick:v,children:[e.jsx("button",{className:E.lightboxClose,onClick:v,"aria-label":"Close lightbox",children:"×"}),e.jsx("button",{className:`${E.lightboxArrow} ${E.lightboxArrowLeft}`,onClick:H=>{H.stopPropagation(),M()},"aria-label":"Previous image",children:"‹"}),e.jsxs("div",{className:E.lightboxContent,onClick:H=>H.stopPropagation(),children:[e.jsx("img",{src:u.src,alt:u.alt}),(u.caption||u.title)&&e.jsxs("div",{className:E.lightboxCaption,children:[u.title&&e.jsx("div",{className:E.lightboxTitle,children:u.title}),u.caption&&e.jsx("div",{children:u.caption})]})]}),e.jsx("button",{className:`${E.lightboxArrow} ${E.lightboxArrowRight}`,onClick:H=>{H.stopPropagation(),x()},"aria-label":"Next image",children:"›"}),e.jsxs("div",{className:E.lightboxCounter,children:[_+1," / ",t.length]})]})};return e.jsxs("div",{className:`${E.imageGallery} ${E[a]} ${E[i]} ${m}`,children:[a==="carousel"&&B(),a==="grid"&&P(),a==="masonry"&&D(),S()]})}const mv="styles-module__themeToggle__6zyVl",uv="styles-module__iconContainer__-mq02",vv="styles-module__icon__yzZOS",pv="styles-module__sun__wk-Eu",kv="styles-module__moon__OtQ8C",zv="styles-module__light__WvEIx",gv="styles-module__dark__zXrhJ",A2={themeToggle:mv,iconContainer:uv,icon:vv,sun:pv,moon:kv,light:zv,dark:gv};function bv({defaultTheme:t="dark",onThemeChange:a,className:i="",...l}){const[s,r]=z.useState(()=>typeof window>"u"?t:localStorage.getItem("theme")||t);z.useEffect(()=>{s==="light"?document.body.classList.add("light-mode"):document.body.classList.remove("light-mode"),localStorage.setItem("theme",s),a?.(s)},[s,a]);const h=()=>{r(n=>n==="light"?"dark":"light")};return e.jsx("button",{type:"button",className:`${A2.themeToggle} ${i}`,onClick:h,"aria-label":"Toggle theme",...l,children:e.jsxs("div",{className:`${A2.iconContainer} ${s==="light"?A2.light:A2.dark}`,children:[e.jsxs("svg",{className:`${A2.icon} ${A2.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:`${A2.icon} ${A2.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 Mv="styles-module__languageSelectContainer__Xulku",yv="styles-module__label__5r4RN",wv="styles-module__languageSelect__gSAkW",_v="styles-module__disabled__-9pxf",qv="styles-module__trigger__Icsh6",Nv="styles-module__flag__n4YbG",xv="styles-module__open__c-08x",Cv="styles-module__chevron__1XEr0",jv="styles-module__selectedText__tGBSV",Lv="styles-module__languageName__EnqxF",Zv="styles-module__nativeName__Qvg9C",Hv="styles-module__dropdown__m7E55",Vv="styles-module__searchContainer__n15Bi",$v="styles-module__searchIcon__EKL9D",Sv="styles-module__searchInput__mnR-j",Bv="styles-module__list__KJT7D",Tv="styles-module__option__zxNEH",Iv="styles-module__highlighted__wHxl6",Pv="styles-module__optionFlag__FbLUG",Av="styles-module__selected__s0-8V",Dv="styles-module__optionName__NIJdm",Gv="styles-module__optionText__3cC-4",Ev="styles-module__optionNative__4Poud",Rv="styles-module__checkIcon__dOQGx",Wv="styles-module__noResults__uck5W",X={languageSelectContainer:Mv,label:yv,languageSelect:wv,disabled:_v,trigger:qv,flag:Nv,open:xv,chevron:Cv,selectedText:jv,languageName:Lv,nativeName:Zv,dropdown:Hv,searchContainer:Vv,searchIcon:$v,searchInput:Sv,list:Bv,option:Tv,highlighted:Iv,optionFlag:Pv,selected:Av,optionName:Dv,optionText:Gv,optionNative:Ev,checkIcon:Rv,noResults:Wv},Fv=[{code:"en",name:"English",nativeName:"English",flag:"us"},{code:"zh",name:"Chinese (Simplified)",nativeName:"简体中文",flag:"cn"},{code:"zh-TW",name:"Chinese (Traditional)",nativeName:"繁體中文",flag:"tw"},{code:"es",name:"Spanish",nativeName:"Español",flag:"es"},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"in"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"sa"},{code:"bn",name:"Bengali",nativeName:"বাংলা",flag:"bd"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"pt"},{code:"pt-BR",name:"Portuguese (Brazil)",nativeName:"Português (Brasil)",flag:"br"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"ru"},{code:"ja",name:"Japanese",nativeName:"日本語",flag:"jp"},{code:"pa",name:"Punjabi",nativeName:"ਪੰਜਾਬੀ",flag:"in"},{code:"de",name:"German",nativeName:"Deutsch",flag:"de"},{code:"jv",name:"Javanese",nativeName:"Basa Jawa",flag:"id"},{code:"ko",name:"Korean",nativeName:"한국어",flag:"kr"},{code:"fr",name:"French",nativeName:"Français",flag:"fr"},{code:"te",name:"Telugu",nativeName:"తెలుగు",flag:"in"},{code:"mr",name:"Marathi",nativeName:"मराठी",flag:"in"},{code:"tr",name:"Turkish",nativeName:"Türkçe",flag:"tr"},{code:"ta",name:"Tamil",nativeName:"தமிழ்",flag:"in"},{code:"vi",name:"Vietnamese",nativeName:"Tiếng Việt",flag:"vn"},{code:"ur",name:"Urdu",nativeName:"اردو",flag:"pk"},{code:"it",name:"Italian",nativeName:"Italiano",flag:"it"},{code:"th",name:"Thai",nativeName:"ไทย",flag:"th"},{code:"gu",name:"Gujarati",nativeName:"ગુજરાતી",flag:"in"},{code:"pl",name:"Polish",nativeName:"Polski",flag:"pl"},{code:"uk",name:"Ukrainian",nativeName:"Українська",flag:"ua"},{code:"ml",name:"Malayalam",nativeName:"മലയാളം",flag:"in"},{code:"kn",name:"Kannada",nativeName:"ಕನ್ನಡ",flag:"in"},{code:"or",name:"Odia",nativeName:"ଓଡ଼ିଆ",flag:"in"},{code:"my",name:"Burmese",nativeName:"မြန်မာဘာသာ",flag:"mm"},{code:"fa",name:"Persian",nativeName:"فارسی",flag:"ir"},{code:"nl",name:"Dutch",nativeName:"Nederlands",flag:"nl"},{code:"ro",name:"Romanian",nativeName:"Română",flag:"ro"},{code:"sv",name:"Swedish",nativeName:"Svenska",flag:"se"},{code:"hu",name:"Hungarian",nativeName:"Magyar",flag:"hu"},{code:"cs",name:"Czech",nativeName:"Čeština",flag:"cz"},{code:"el",name:"Greek",nativeName:"Ελληνικά",flag:"gr"},{code:"he",name:"Hebrew",nativeName:"עברית",flag:"il"},{code:"fi",name:"Finnish",nativeName:"Suomi",flag:"fi"},{code:"da",name:"Danish",nativeName:"Dansk",flag:"dk"},{code:"no",name:"Norwegian",nativeName:"Norsk",flag:"no"},{code:"sk",name:"Slovak",nativeName:"Slovenčina",flag:"sk"},{code:"bg",name:"Bulgarian",nativeName:"Български",flag:"bg"},{code:"hr",name:"Croatian",nativeName:"Hrvatski",flag:"hr"},{code:"sr",name:"Serbian",nativeName:"Српски",flag:"rs"},{code:"lt",name:"Lithuanian",nativeName:"Lietuvių",flag:"lt"},{code:"lv",name:"Latvian",nativeName:"Latviešu",flag:"lv"},{code:"et",name:"Estonian",nativeName:"Eesti",flag:"ee"},{code:"sl",name:"Slovenian",nativeName:"Slovenščina",flag:"si"},{code:"ms",name:"Malay",nativeName:"Bahasa Melayu",flag:"my"},{code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",flag:"id"},{code:"tl",name:"Tagalog",nativeName:"Tagalog",flag:"ph"},{code:"sw",name:"Swahili",nativeName:"Kiswahili",flag:"ke"},{code:"af",name:"Afrikaans",nativeName:"Afrikaans",flag:"za"},{code:"ca",name:"Catalan",nativeName:"Català",flag:"es-ct"},{code:"eu",name:"Basque",nativeName:"Euskara",flag:"es-pv"},{code:"gl",name:"Galician",nativeName:"Galego",flag:"es-ga"},{code:"is",name:"Icelandic",nativeName:"Íslenska",flag:"is"},{code:"ga",name:"Irish",nativeName:"Gaeilge",flag:"ie"},{code:"cy",name:"Welsh",nativeName:"Cymraeg",flag:"gb-wls"},{code:"gd",name:"Scottish Gaelic",nativeName:"Gàidhlig",flag:"gb-sct"},{code:"sq",name:"Albanian",nativeName:"Shqip",flag:"al"},{code:"mk",name:"Macedonian",nativeName:"Македонски",flag:"mk"},{code:"bs",name:"Bosnian",nativeName:"Bosanski",flag:"ba"},{code:"ka",name:"Georgian",nativeName:"ქართული",flag:"ge"},{code:"hy",name:"Armenian",nativeName:"Հայերեն",flag:"am"},{code:"az",name:"Azerbaijani",nativeName:"Azərbaycan",flag:"az"},{code:"kk",name:"Kazakh",nativeName:"Қазақ тілі",flag:"kz"},{code:"uz",name:"Uzbek",nativeName:"Oʻzbek",flag:"uz"},{code:"mn",name:"Mongolian",nativeName:"Монгол",flag:"mn"},{code:"km",name:"Khmer",nativeName:"ភាសាខ្មែរ",flag:"kh"},{code:"lo",name:"Lao",nativeName:"ລາວ",flag:"la"},{code:"ne",name:"Nepali",nativeName:"नेपाली",flag:"np"},{code:"si",name:"Sinhala",nativeName:"සිංහල",flag:"lk"},{code:"am",name:"Amharic",nativeName:"አማርኛ",flag:"et"},{code:"zu",name:"Zulu",nativeName:"isiZulu",flag:"za"},{code:"xh",name:"Xhosa",nativeName:"isiXhosa",flag:"za"},{code:"yo",name:"Yoruba",nativeName:"Yorùbá",flag:"ng"},{code:"ig",name:"Igbo",nativeName:"Igbo",flag:"ng"},{code:"ha",name:"Hausa",nativeName:"Hausa",flag:"ng"},{code:"so",name:"Somali",nativeName:"Soomaali",flag:"so"},{code:"mg",name:"Malagasy",nativeName:"Malagasy",flag:"mg"}];function Uv({languages:t=Fv,defaultLanguage:a="en",onChange:i,disabled:l=!1,showSearch:s=!1,label:r,className:h="",...n}){const[f,o]=z.useState(!1),[m,c]=z.useState(()=>t.find(d=>d.code===a)||t[0]),[q,g]=z.useState(""),[y,p]=z.useState(0),Z=z.useRef(null),w=z.useRef(null),k=t.filter(d=>d.name.toLowerCase().includes(q.toLowerCase())||d.nativeName.toLowerCase().includes(q.toLowerCase())||d.code.toLowerCase().includes(q.toLowerCase()));z.useEffect(()=>{const d=b=>{Z.current&&!Z.current.contains(b.target)&&(o(!1),g(""))};return f&&document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[f]),z.useEffect(()=>{f&&s&&w.current&&w.current.focus()},[f,s]);const N=d=>{c(d),o(!1),g(""),i?.(d)},_=d=>{if(!l)switch(d.key){case"Enter":case" ":f?k[y]&&(d.preventDefault(),N(k[y])):(d.preventDefault(),o(!0));break;case"Escape":o(!1),g("");break;case"ArrowDown":d.preventDefault(),f?p(b=>b<k.length-1?b+1:0):o(!0);break;case"ArrowUp":d.preventDefault(),f&&p(b=>b>0?b-1:k.length-1);break}};return e.jsxs("div",{className:`${X.languageSelectContainer} ${h}`,ref:Z,...n,children:[r&&e.jsx("label",{className:X.label,children:r}),e.jsxs("div",{className:`${X.languageSelect} ${l?X.disabled:""}`,children:[e.jsxs("button",{type:"button",className:`${X.trigger} ${f?X.open:""}`,onClick:()=>!l&&o(!f),onKeyDown:_,disabled:l,"aria-haspopup":"listbox","aria-expanded":f,children:[e.jsx("span",{className:X.flag,children:e.jsx(v0,{flag:m.flag,width:32,height:32,rounded:!0})}),e.jsxs("span",{className:X.selectedText,children:[e.jsx("span",{className:X.languageName,children:m.name}),e.jsx("span",{className:X.nativeName,children:m.nativeName})]}),e.jsx("svg",{className:X.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"})})]}),f&&e.jsxs("div",{className:X.dropdown,children:[s&&e.jsxs("div",{className:X.searchContainer,children:[e.jsx("svg",{className:X.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:w,type:"text",className:X.searchInput,placeholder:"Search languages...",value:q,onChange:d=>{g(d.target.value),p(0)},onKeyDown:_})]}),e.jsx("ul",{className:X.list,role:"listbox",children:k.length>0?k.map((d,b)=>e.jsxs("li",{className:`${X.option} ${m.code===d.code?X.selected:""} ${b===y?X.highlighted:""}`,onClick:()=>N(d),onMouseEnter:()=>p(b),role:"option","aria-selected":m.code===d.code,children:[e.jsx("span",{className:X.optionFlag,children:e.jsx(v0,{flag:d.flag,width:28,height:28,rounded:!0})}),e.jsxs("span",{className:X.optionText,children:[e.jsx("span",{className:X.optionName,children:d.name}),e.jsx("span",{className:X.optionNative,children:d.nativeName})]}),m.code===d.code&&e.jsx("svg",{className:X.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"})})]},d.code)):e.jsx("li",{className:X.noResults,children:"No languages found"})})]})]})]})}const Ov="styles-module__chatContainer__ny1TV",Xv="styles-module__messagesWrapper__RZiB3",Kv="styles-module__emptyState__hzFZj",Yv="styles-module__emptyIcon__x39wy",Jv="styles-module__emptyText__lrl1o",Qv="styles-module__emptySubtext__SqnCZ",ep="styles-module__messagesList__d-S-F",tp="styles-module__messageGroup__tMBkW",ap="styles-module__userMessage__9MGMu",lp="styles-module__messageContent__dFgZ4",sp="styles-module__messageBubble__9fJI4",rp="styles-module__timestamp__a4uAo",ip="styles-module__systemMessage__j8BLk",op="styles-module__avatarWrapper__u9sbM",cp="styles-module__avatar__UI0YW",hp="styles-module__avatarPlaceholder__NVOuf",fp="styles-module__userAvatar__5XxxX",dp="styles-module__botAvatar__a-W8a",np="styles-module__senderName__vOvEB",mp="styles-module__typing__FSien",up="styles-module__messageText__w-MlW",vp="styles-module__typingIndicator__VL6DD",pp="styles-module__dot__cJEkH",kp="styles-module__inputForm__l-juI",zp="styles-module__inputWrapper__HSXpx",gp="styles-module__focused__GIWaK",bp="styles-module__input__AmkBF",Mp="styles-module__sendButton__xy1bf",yp="styles-module__sendIcon__XEMIa",wp="styles-module__active__HG7ga",I={chatContainer:Ov,messagesWrapper:Xv,emptyState:Kv,emptyIcon:Yv,emptyText:Jv,emptySubtext:Qv,messagesList:ep,messageGroup:tp,userMessage:ap,messageContent:lp,messageBubble:sp,timestamp:rp,systemMessage:ip,avatarWrapper:op,avatar:cp,avatarPlaceholder:hp,userAvatar:fp,botAvatar:dp,senderName:np,typing:mp,messageText:up,typingIndicator:vp,dot:pp,inputForm:kp,inputWrapper:zp,focused:gp,input:bp,sendButton:Mp,sendIcon:yp,active:wp};function _p({messages:t,onSendMessage:a,placeholder:i="Type a message...",disabled:l=!1,showTimestamps:s=!1,showAvatars:r=!0,maxHeight:h="600px",typingIndicator:n=!1,userName:f="You",botName:o="Assistant",className:m="",...c}){const[q,g]=z.useState(""),[y,p]=z.useState(!1),Z=z.useRef(null),w=z.useRef(null),k=()=>{Z.current?.scrollIntoView({behavior:"smooth"})};z.useEffect(()=>{k()},[t]);const N=j=>{j.preventDefault(),q.trim()&&a&&!l&&(a(q.trim()),g(""),w.current&&(w.current.style.height="auto"))},_=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),N(j))},d=j=>{g(j.target.value),j.target.style.height="auto",j.target.style.height=`${Math.min(j.target.scrollHeight,120)}px`},b=j=>j.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),V=j=>j.split(" ").map(T=>T[0]).join("").toUpperCase().slice(0,2);return e.jsxs("div",{className:`${I.chatContainer} ${m}`,...c,children:[e.jsx("div",{className:I.messagesWrapper,style:{maxHeight:h},children:t.length===0?e.jsxs("div",{className:I.emptyState,children:[e.jsx("div",{className:I.emptyIcon,children:"💬"}),e.jsx("p",{className:I.emptyText,children:"No messages yet"}),e.jsx("p",{className:I.emptySubtext,children:"Start a conversation!"})]}):e.jsxs("div",{className:I.messagesList,children:[t.map((j,T)=>{const L=j.sender==="user",C=j.sender==="system",$=r&&!C,v=L?f:j.senderName||o;return e.jsxs("div",{className:`${I.messageGroup} ${L?I.userMessage:""} ${C?I.systemMessage:""}`,children:[$&&e.jsx("div",{className:I.avatarWrapper,children:j.avatar?e.jsx("img",{src:j.avatar,alt:v,className:I.avatar}):e.jsx("div",{className:`${I.avatarPlaceholder} ${L?I.userAvatar:I.botAvatar}`,children:V(v)})}),e.jsxs("div",{className:I.messageContent,children:[!C&&!L&&e.jsx("div",{className:I.senderName,children:v}),e.jsx("div",{className:`${I.messageBubble} ${j.isTyping?I.typing:""}`,children:j.isTyping?e.jsxs("div",{className:I.typingIndicator,children:[e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot})]}):e.jsx("p",{className:I.messageText,children:j.content})}),s&&!j.isTyping&&e.jsx("div",{className:I.timestamp,children:b(j.timestamp)})]})]},j.id)}),n&&e.jsxs("div",{className:`${I.messageGroup}`,children:[r&&e.jsx("div",{className:I.avatarWrapper,children:e.jsx("div",{className:`${I.avatarPlaceholder} ${I.botAvatar}`,children:V(o)})}),e.jsxs("div",{className:I.messageContent,children:[e.jsx("div",{className:I.senderName,children:o}),e.jsx("div",{className:`${I.messageBubble} ${I.typing}`,children:e.jsxs("div",{className:I.typingIndicator,children:[e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot}),e.jsx("span",{className:I.dot})]})})]})]}),e.jsx("div",{ref:Z})]})}),e.jsx("form",{onSubmit:N,className:I.inputForm,children:e.jsxs("div",{className:`${I.inputWrapper} ${y?I.focused:""}`,children:[e.jsx("textarea",{ref:w,className:I.input,value:q,onChange:d,onKeyDown:_,onFocus:()=>p(!0),onBlur:()=>p(!1),placeholder:i,disabled:l,rows:1}),e.jsx("button",{type:"submit",className:`${I.sendButton} ${q.trim()?I.active:""}`,disabled:!q.trim()||l,children:e.jsx("svg",{className:I.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 qp="styles-module__hero__1sEBl",Np="styles-module__container__xfiKE",xp="styles-module__content__ueveF",Cp="styles-module__title__CIbf7",jp="styles-module__subtitle__6yYjh",Lp="styles-module__actions__tCll9",Zp="styles-module__button__7B3nI",Hp="styles-module__primary__83hkW",Vp="styles-module__secondary__D63-G",$p="styles-module__children__2oopi",Sp="styles-module__backgroundVideo__J1Jv5",Bp="styles-module__overlay__VHoNo",Tp="styles-module__small__ZoLmv",Ip="styles-module__medium__ZrBOD",Pp="styles-module__large__U8d7Z",Ap="styles-module__fullscreen__tMfK4",Dp="styles-module__left__-vZ-2",Gp="styles-module__center__fOtY0",Ep="styles-module__right__D623c",Rp="styles-module__gradient__vlsu4",Wp="styles-module__image__8xem5",Fp="styles-module__video__igUU3",Up="styles-module__minimal__cwTwh",Op="styles-module__centered__bcej3",Xp="styles-module__split__3uKlG",Kp="styles-module__splitContent__XlL2y",Yp="styles-module__splitImage__-QSEV",Jp="styles-module__imageLeft__ldioA",Qp="styles-module__imageRight__BEUMS",U={hero:qp,container:Np,content:xp,title:Cp,subtitle:jp,actions:Lp,button:Zp,primary:Hp,secondary:Vp,children:$p,backgroundVideo:Sp,overlay:Bp,small:Tp,medium:Ip,large:Pp,fullscreen:Ap,left:Dp,center:Gp,right:Ep,default:"styles-module__default__IeguZ",gradient:Rp,image:Wp,video:Fp,minimal:Up,centered:Op,split:Xp,splitContent:Kp,splitImage:Yp,imageLeft:Jp,imageRight:Qp};function ek({variant:t="default",size:a="large",alignment:i="center",title:l,subtitle:s,backgroundImage:r,backgroundVideo:h,overlayOpacity:n=.5,primaryAction:f,secondaryAction:o,children:m,image:c,imageAlt:q="Hero image",imagePosition:g="right",className:y="",style:p,...Z}){const w={...p};r&&t==="image"&&(w.backgroundImage=`url(${r})`);const k=()=>!f&&!o?null:e.jsxs("div",{className:U.actions,children:[f&&(f.href?e.jsx("a",{href:f.href,className:`${U.button} ${U.primary}`,children:f.label}):e.jsx("button",{type:"button",onClick:f.onClick,className:`${U.button} ${U.primary}`,children:f.label})),o&&(o.href?e.jsx("a",{href:o.href,className:`${U.button} ${U.secondary}`,children:o.label}):e.jsx("button",{type:"button",onClick:o.onClick,className:`${U.button} ${U.secondary}`,children:o.label}))]}),N=()=>e.jsxs("div",{className:U.content,children:[l&&e.jsx("h1",{className:U.title,children:l}),s&&e.jsx("p",{className:U.subtitle,children:s}),k(),m&&e.jsx("div",{className:U.children,children:m})]}),_=()=>!h||t!=="video"?null:e.jsx("video",{className:U.backgroundVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:e.jsx("source",{src:h,type:"video/mp4"})}),d=()=>(t==="image"||t==="video")&&n>0?e.jsx("div",{className:U.overlay,style:{opacity:n}}):null;return t==="split"&&c?e.jsx("section",{className:`${U.hero} ${U[t]} ${U[a]} ${U[i]} ${g==="left"?U.imageLeft:U.imageRight} ${y}`,style:w,...Z,children:e.jsxs("div",{className:U.container,children:[e.jsx("div",{className:U.splitContent,children:N()}),e.jsx("div",{className:U.splitImage,children:e.jsx("img",{src:c,alt:q})})]})}):e.jsxs("section",{className:`${U.hero} ${U[t]} ${U[a]} ${U[i]} ${y}`,style:w,...Z,children:[_(),d(),e.jsx("div",{className:U.container,children:N()})]})}const tk="styles-module__footer__KUFHl",ak="styles-module__container__KDDfW",lk="styles-module__brand__hbfVw",sk="styles-module__brandHeader__w1Akd",rk="styles-module__brandLogo__14u6t",ik="styles-module__brandName__akAUX",ok="styles-module__brandDescription__44VOp",ck="styles-module__sections__CvDoA",hk="styles-module__section__gFsHi",fk="styles-module__sectionTitle__egnB1",dk="styles-module__linkList__vR8l8",nk="styles-module__link__uIT9J",mk="styles-module__externalIcon__ogw1v",uk="styles-module__social__czSa6",vk="styles-module__socialTitle__I8z4q",pk="styles-module__socialLinks__lVO4V",kk="styles-module__socialLink__EtXDt",zk="styles-module__bottom__QEkk-",gk="styles-module__copyright__8ihY2",bk="styles-module__bottomLinks__9EsKU",Mk="styles-module__bottomLink__BUg0l",yk="styles-module__separator__PGnP3",wk="styles-module__children__zbz5a",_k="styles-module__main__zO3Pb",qk="styles-module__sidebar__CwLFk",Nk="styles-module__minimal__Xdk1a",xk="styles-module__centered__nIVxr",Ck="styles-module__centeredContent__YyOcX",jk="styles-module__centeredSections__Jpw1a",Lk="styles-module__stacked__2rn4u",F={footer:tk,container:ak,brand:lk,brandHeader:sk,brandLogo:rk,brandName:ik,brandDescription:ok,sections:ck,section:hk,sectionTitle:fk,linkList:dk,link:nk,externalIcon:mk,social:uk,socialTitle:vk,socialLinks:pk,socialLink:kk,bottom:zk,copyright:gk,bottomLinks:bk,bottomLink:Mk,separator:yk,children:wk,default:"styles-module__default__ekUYi",main:_k,sidebar:qk,minimal:Nk,centered:xk,centeredContent:Ck,centeredSections:jk,stacked:Lk};function Zk({variant:t="default",brandName:a,brandLogo:i,brandDescription:l,sections:s=[],socialLinks:r=[],copyright:h,showYear:n=!0,bottomLinks:f=[],children:o,className:m="",...c}){const q=new Date().getFullYear(),g=()=>!a&&!i&&!l?null:e.jsxs("div",{className:F.brand,children:[(i||a)&&e.jsxs("div",{className:F.brandHeader,children:[i&&e.jsx("div",{className:F.brandLogo,children:i}),a&&e.jsx("div",{className:F.brandName,children:a})]}),l&&e.jsx("p",{className:F.brandDescription,children:l})]}),y=()=>s.length===0?null:e.jsx("div",{className:F.sections,children:s.map((w,k)=>e.jsxs("div",{className:F.section,children:[e.jsx("h3",{className:F.sectionTitle,children:w.title}),e.jsx("ul",{className:F.linkList,children:w.links.map((N,_)=>e.jsx("li",{children:e.jsxs("a",{href:N.href,className:F.link,target:N.external?"_blank":void 0,rel:N.external?"noopener noreferrer":void 0,children:[N.label,N.external&&e.jsx("span",{className:F.externalIcon,"aria-label":"Opens in new tab",children:"↗"})]})},_))})]},k))}),p=()=>r.length===0?null:e.jsxs("div",{className:F.social,children:[e.jsx("div",{className:F.socialTitle,children:"Follow Us"}),e.jsx("div",{className:F.socialLinks,children:r.map((w,k)=>e.jsx("a",{href:w.href,className:F.socialLink,target:"_blank",rel:"noopener noreferrer","aria-label":w.platform,children:w.icon||w.platform},k))})]}),Z=()=>{const w=h||(a?`© ${a}`:"© All rights reserved"),k=n?`${w} ${q}`:w;return e.jsxs("div",{className:F.bottom,children:[e.jsx("div",{className:F.copyright,children:k}),f.length>0&&e.jsx("div",{className:F.bottomLinks,children:f.map((N,_)=>e.jsxs(z.Fragment,{children:[e.jsx("a",{href:N.href,className:F.bottomLink,target:N.external?"_blank":void 0,rel:N.external?"noopener noreferrer":void 0,children:N.label}),_<f.length-1&&e.jsx("span",{className:F.separator,children:"•"})]},_))})]})};return e.jsx("footer",{className:`${F.footer} ${F[t]} ${m}`,...c,children:e.jsx("div",{className:F.container,children:t==="centered"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:F.centeredContent,children:[g(),p()]}),s.length>0&&e.jsx("div",{className:F.centeredSections,children:y()}),o&&e.jsx("div",{className:F.children,children:o}),Z()]}):t==="stacked"?e.jsxs(e.Fragment,{children:[g(),y(),p(),o&&e.jsx("div",{className:F.children,children:o}),Z()]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:F.main,children:[g(),y()]}),(r.length>0||o)&&e.jsxs("div",{className:F.sidebar,children:[p(),o&&e.jsx("div",{className:F.children,children:o})]}),Z()]})})})}const Hk="styles-module__titleWrapper__QHBgn",Vk="styles-module__left__-fEso",$k="styles-module__center__Cg-4r",Sk="styles-module__right__VS60p",Bk="styles-module__title__i-t97",Tk="styles-module__subtitle__hBF7W",r0={titleWrapper:Hk,left:Vk,center:$k,right:Sk,title:Bk,subtitle:Tk};function Ik({children:t,subtitle:a,level:i=1,align:l="left",className:s=""}){const r=`h${i}`;return e.jsxs("div",{className:`${r0.titleWrapper} ${r0[l]} ${s}`,children:[e.jsx(r,{className:r0.title,children:t}),a&&e.jsx("p",{className:r0.subtitle,children:a})]})}const Pk="styles-module__toolbar__AYuVS",Ak="styles-module__menuSection__Txgmf",Dk="styles-module__menuItemContainer__yR-XS",Gk="styles-module__menuItem__QPG2e",Ek="styles-module__disabled__vuvrO",Rk="styles-module__active__sICJh",Wk="styles-module__icon__kRbRs",Fk="styles-module__label__p-2a-",Uk="styles-module__badge__x8CyH",Ok="styles-module__dropdownArrow__b-ssi",Xk="styles-module__open__mIo30",Kk="styles-module__dropdown__YDMYV",Yk="styles-module__dropdownItem__p1I16",Jk="styles-module__separator__bh2CS",Qk="styles-module__dropdownSeparator__kRAOp",ez="styles-module__contentSection__xkN46",tz="styles-module__statusSection__dFT6c",az="styles-module__statusItem__MiT8g",lz="styles-module__statusIcon__2mJMY",sz="styles-module__statusText__TaWCZ",K={toolbar:Pk,menuSection:Ak,menuItemContainer:Dk,menuItem:Gk,disabled:Ek,active:Rk,icon:Wk,label:Fk,badge:Uk,dropdownArrow:Ok,open:Xk,dropdown:Kk,dropdownItem:Yk,separator:Jk,dropdownSeparator:Qk,contentSection:ez,statusSection:tz,statusItem:az,statusIcon:lz,statusText:sz};function rz({menuItems:t=[],statusItems:a=[],children:i,className:l=""}){const[s,r]=z.useState(new Set),h=z.useRef({});z.useEffect(()=>{const c=q=>{const g=q.target;for(const[y,p]of Object.entries(h.current))p&&!p.contains(g)&&r(Z=>{const w=new Set(Z);return w.delete(y),w})};if(s.size>0)return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[s]);const n=c=>{r(q=>{const g=new Set(q);return g.has(c)?g.delete(c):(g.clear(),g.add(c)),g})},f=c=>{c.disabled||(c.submenu&&c.submenu.length>0?n(c.id):c.onClick?.())},o=c=>{if(!c.label&&c.separator)return e.jsx("div",{className:K.separator},c.id);const q=c.submenu&&c.submenu.length>0,g=s.has(c.id);return e.jsxs(z.Fragment,{children:[e.jsxs("div",{className:K.menuItemContainer,children:[e.jsxs("button",{type:"button",className:`${K.menuItem} ${c.disabled?K.disabled:""} ${g?K.active:""}`,onClick:()=>f(c),disabled:c.disabled,children:[c.icon&&e.jsx("span",{className:K.icon,children:c.icon}),e.jsx("span",{className:K.label,children:c.label}),c.badge!==void 0&&e.jsx("span",{className:K.badge,children:c.badge}),q&&e.jsx("span",{className:`${K.dropdownArrow} ${g?K.open:""}`,children:"▼"})]}),q&&g&&e.jsx("div",{ref:y=>h.current[c.id]=y,className:K.dropdown,children:c.submenu.map(y=>!y.label&&y.separator?e.jsx("div",{className:K.dropdownSeparator},y.id):e.jsxs("button",{type:"button",className:`${K.dropdownItem} ${y.disabled?K.disabled:""}`,onClick:()=>{y.disabled||(y.onClick?.(),r(new Set))},disabled:y.disabled,children:[y.icon&&e.jsx("span",{className:K.icon,children:y.icon}),e.jsx("span",{className:K.label,children:y.label}),y.badge!==void 0&&e.jsx("span",{className:K.badge,children:y.badge})]},y.id))})]}),c.separator&&e.jsx("div",{className:K.separator})]},c.id)},m=(c,q)=>e.jsxs("div",{className:K.statusItem,title:c.tooltip,children:[c.icon&&e.jsx("span",{className:K.statusIcon,children:c.icon}),e.jsx("span",{className:K.statusText,children:c.text})]},q);return e.jsxs("div",{className:`${K.toolbar} ${l}`,children:[t.length>0&&e.jsx("div",{className:K.menuSection,children:t.map(c=>o(c))}),i&&e.jsx("div",{className:K.contentSection,children:i}),a.length>0&&e.jsx("div",{className:K.statusSection,children:a.map((c,q)=>m(c,q))})]})}const iz="styles-module__dataTableWrapper__ByL1g",oz="styles-module__toolbar__jrmV5",cz="styles-module__addButton__-VFRx",hz="styles-module__tableContainer__e70tO",fz="styles-module__table__Fr8Yt",dz="styles-module__thead__OKDfq",nz="styles-module__th__U8uyM",mz="styles-module__actionColumn__D4sRI",uz="styles-module__tbody__9wv1U",vz="styles-module__tr__Lo9O2",pz="styles-module__td__F-E2D",kz="styles-module__actionCell__P7lld",zz="styles-module__striped__jltUf",gz="styles-module__hoverable__KO4bx",bz="styles-module__bordered__1A-p6",Mz="styles-module__compact__HFppT",yz="styles-module__clickable__NbL9f",wz="styles-module__cellInput__s5ZbH",_z="styles-module__actionButtons__pB8K6",qz="styles-module__actionButton__QL2Cj",Nz="styles-module__edit__4sxAR",xz="styles-module__save__8SdHD",Cz="styles-module__cancel__CJRPv",jz="styles-module__empty__O5hhW",G={dataTableWrapper:iz,toolbar:oz,addButton:cz,tableContainer:hz,table:fz,thead:dz,th:nz,actionColumn:mz,tbody:uz,tr:vz,td:pz,actionCell:kz,striped:zz,hoverable:gz,bordered:bz,compact:Mz,clickable:yz,cellInput:wz,actionButtons:_z,actionButton:qz,edit:Nz,delete:"styles-module__delete__CGHLc",save:xz,cancel:Cz,empty:jz};function Lz({columns:t,data:a,striped:i=!1,hoverable:l=!1,bordered:s=!1,compact:r=!1,editable:h=!1,deletable:n=!1,addable:f=!1,onRowClick:o,onRowEdit:m,onRowDelete:c,onRowAdd:q,rowIdKey:g="id",className:y=""}){const[p,Z]=z.useState(a),[w,k]=z.useState(null),[N,_]=z.useState(null),[d,b]=z.useState(!1),[V,j]=z.useState({});z.useEffect(()=>{Z(a)},[a]);const T=(S,u)=>{k(u),_({...S})},L=S=>{const u=[...p];u[S]=N,Z(u),m?.(N,S),k(null),_(null)},C=()=>{k(null),_(null)},$=(S,u)=>{const H=p.filter((R,s2)=>s2!==u);Z(H),c?.(S,u)},v=()=>{b(!0);const S={};t.forEach(u=>{S[u.key]=""}),j(S)},M=()=>{const S=[...p,V];Z(S),q?.(V),b(!1),j({})},x=()=>{b(!1),j({})},B=(S,u,H=!1)=>{H?j({...V,[S]:u}):_({...N,[S]:u})},P=(S,u,H,R=!1)=>{const s2=R?!0:w===H,r2=R?V[S.key]:s2?N?.[S.key]:u[S.key];return S.render&&!s2?S.render(r2,u,s2):s2&&S.editable!==!1?e.jsx("input",{type:S.type||"text",value:r2||"",onChange:R2=>B(S.key,R2.target.value,R),className:G.cellInput}):String(r2??"")},D=(S,u)=>w===u?e.jsxs("div",{className:G.actionButtons,children:[e.jsx("button",{onClick:()=>L(u),className:`${G.actionButton} ${G.save}`,title:"Save",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M13.5 4L6 11.5L2.5 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("button",{onClick:C,className:`${G.actionButton} ${G.cancel}`,title:"Cancel",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):e.jsxs("div",{className:G.actionButtons,children:[h&&e.jsx("button",{onClick:()=>T(S,u),className:`${G.actionButton} ${G.edit}`,title:"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.333 2A1.886 1.886 0 0 1 14 4.667l-9 9-3.667 1 1-3.667 9-9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),n&&e.jsx("button",{onClick:()=>$(S,u),className:`${G.actionButton} ${G.delete}`,title:"Delete",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4m2 0v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.334 1.334 0 0 1-1.334-1.334V4h9.334Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]});return e.jsxs("div",{className:`${G.dataTableWrapper} ${y}`,children:[f&&e.jsx("div",{className:G.toolbar,children:e.jsxs("button",{onClick:v,disabled:d,className:G.addButton,children:[e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 3.333v9.334M3.333 8h9.334",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Row"]})}),e.jsxs("div",{className:G.tableContainer,children:[e.jsxs("table",{className:`${G.table} ${i?G.striped:""} ${l?G.hoverable:""} ${s?G.bordered:""} ${r?G.compact:""}`,children:[e.jsx("thead",{className:G.thead,children:e.jsxs("tr",{children:[t.map(S=>e.jsx("th",{className:G.th,style:{width:S.width},children:S.header},S.key)),(h||n)&&e.jsx("th",{className:`${G.th} ${G.actionColumn}`,children:"Actions"})]})}),e.jsxs("tbody",{className:G.tbody,children:[p.map((S,u)=>e.jsxs("tr",{className:`${G.tr} ${o&&!h?G.clickable:""}`,onClick:()=>w===null&&o?.(S),children:[t.map(H=>e.jsx("td",{className:G.td,children:P(H,S,u)},H.key)),(h||n)&&e.jsx("td",{className:`${G.td} ${G.actionCell}`,children:D(S,u)})]},S[g]||u)),d&&e.jsxs("tr",{className:G.tr,children:[t.map(S=>e.jsx("td",{className:G.td,children:P(S,{},-1,!0)},S.key)),(h||n)&&e.jsx("td",{className:`${G.td} ${G.actionCell}`,children:e.jsxs("div",{className:G.actionButtons,children:[e.jsx("button",{onClick:M,className:`${G.actionButton} ${G.save}`,title:"Save",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M13.5 4L6 11.5L2.5 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("button",{onClick:x,className:`${G.actionButton} ${G.cancel}`,title:"Cancel",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})]})]})]}),p.length===0&&!d&&e.jsx("div",{className:G.empty,children:"No data available"})]})]})}const Zz="styles-module__kanban__vpx-A",Hz="styles-module__columnsContainer__4Dtnw",Vz="styles-module__column__pwo-D",$z="styles-module__dragOver__YPmud",Sz="styles-module__columnHeader__7NsWb",Bz="styles-module__columnTitle__0BZTf",Tz="styles-module__columnHeaderActions__1iEzA",Iz="styles-module__removeColumnButton__jVQ79",Pz="styles-module__columnContent__oxRMX",Az="styles-module__emptyColumn__Z4pNL",Dz="styles-module__item__Nkciq",Gz="styles-module__itemHeader__CZThU",Ez="styles-module__itemTitle__xLf6d",Rz="styles-module__itemDescription__UeR4h",Wz="styles-module__addColumnContainer__1p-JP",Fz="styles-module__addColumnButton__LL9O9",Uz="styles-module__addColumnForm__enALu",Oz="styles-module__addColumnInput__MCSZU",Xz="styles-module__addColumnActions__cndwb",Kz="styles-module__addColumnSaveButton__An3-R",Yz="styles-module__addColumnCancelButton__ma1Mk",t2={kanban:Zz,columnsContainer:Hz,column:Vz,dragOver:$z,columnHeader:Sz,columnTitle:Bz,columnHeaderActions:Tz,removeColumnButton:Iz,columnContent:Pz,emptyColumn:Az,item:Dz,itemHeader:Gz,itemTitle:Ez,itemDescription:Rz,addColumnContainer:Wz,addColumnButton:Fz,addColumnForm:Uz,addColumnInput:Oz,addColumnActions:Xz,addColumnSaveButton:Kz,addColumnCancelButton:Yz};function Jz({columns:t,onItemMove:a,onItemClick:i,onColumnAdd:l,onColumnRemove:s,allowAddColumns:r=!1,allowRemoveColumns:h=!1,className:n=""}){const[f,o]=z.useState(t),[m,c]=z.useState(null),[q,g]=z.useState(null),[y,p]=z.useState(""),[Z,w]=z.useState(!1),k=(L,C,$)=>{c({item:C,columnId:$}),L.dataTransfer.effectAllowed="move",L.currentTarget.style.opacity="0.5"},N=L=>{L.currentTarget.style.opacity="1",c(null),g(null)},_=(L,C)=>{L.preventDefault(),L.dataTransfer.dropEffect="move",g(C)},d=L=>{L.preventDefault(),g(null)},b=(L,C)=>{if(L.preventDefault(),g(null),!m)return;const{item:$,columnId:v}=m;if(v===C){c(null);return}const M=f.find(B=>B.id===C);if(M?.maxItems&&M.items.length>=M.maxItems){c(null);return}const x=f.map(B=>B.id===v?{...B,items:B.items.filter(P=>P.id!==$.id)}:B.id===C?{...B,items:[...B.items,$]}:B);o(x),a?.($,v,C),c(null)},V=()=>{if(!y.trim())return;const L={id:`column-${Date.now()}`,title:y,items:[]};o([...f,L]),l?.(L.id,L.title),p(""),w(!1)},j=L=>{o(f.filter(C=>C.id!==L)),s?.(L)},T=(L,C)=>{i?.(L,C)};return e.jsx("div",{className:`${t2.kanban} ${n}`,children:e.jsxs("div",{className:t2.columnsContainer,children:[f.map(L=>e.jsxs("div",{className:`${t2.column} ${q===L.id?t2.dragOver:""}`,onDragOver:C=>_(C,L.id),onDragLeave:d,onDrop:C=>b(C,L.id),children:[e.jsxs("div",{className:t2.columnHeader,style:{borderLeftColor:L.color},children:[e.jsx("h3",{className:t2.columnTitle,children:L.title}),e.jsxs("div",{className:t2.columnHeaderActions,children:[e.jsxs(o0,{variant:"default",size:"sm",children:[L.items.length,L.maxItems?`/${L.maxItems}`:""]}),h&&e.jsx("button",{onClick:()=>j(L.id),className:t2.removeColumnButton,title:"Remove column","aria-label":"Remove column",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),e.jsx("div",{className:t2.columnContent,children:L.items.length===0?e.jsx("div",{className:t2.emptyColumn,children:"Drop items here"}):L.items.map(C=>e.jsxs("div",{className:t2.item,draggable:!0,onDragStart:$=>k($,C,L.id),onDragEnd:N,onClick:()=>T(C,L.id),role:"button",tabIndex:0,children:[e.jsxs("div",{className:t2.itemHeader,children:[e.jsx("h4",{className:t2.itemTitle,children:C.title}),C.badge&&e.jsx(o0,{variant:C.badgeVariant||"default",size:"sm",children:C.badge})]}),C.description&&e.jsx("p",{className:t2.itemDescription,children:C.description})]},C.id))})]},L.id)),r&&e.jsx("div",{className:t2.addColumnContainer,children:Z?e.jsxs("div",{className:t2.addColumnForm,children:[e.jsx("input",{type:"text",value:y,onChange:L=>p(L.target.value),placeholder:"Column title",className:t2.addColumnInput,autoFocus:!0,onKeyDown:L=>{L.key==="Enter"&&V(),L.key==="Escape"&&(w(!1),p(""))}}),e.jsxs("div",{className:t2.addColumnActions,children:[e.jsx("button",{onClick:V,className:t2.addColumnSaveButton,disabled:!y.trim(),children:"Add"}),e.jsx("button",{onClick:()=>{w(!1),p("")},className:t2.addColumnCancelButton,children:"Cancel"})]})]}):e.jsxs("button",{onClick:()=>w(!0),className:t2.addColumnButton,children:[e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10 4.167v11.666M4.167 10h11.666",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Column"]})})]})})}const Qz="styles-module__chartContainer__2xlGx",eg="styles-module__title__3nMEJ",tg="styles-module__chartWrapper__vZft-",ag="styles-module__svg__nYzFF",lg="styles-module__grid__MIGx1",sg="styles-module__gridLine__ZLt1Q",rg="styles-module__xAxis__aLZwk",ig="styles-module__yAxis__S9BmI",og="styles-module__axisLabel__VAmVT",cg="styles-module__animatedLine__J4GMW",hg="styles-module__animatedArea__uCMoc",fg="styles-module__animatedBar__-EA7h",dg="styles-module__animatedPie__oBICc",ng="styles-module__dataPoint__EfM8f",mg="styles-module__valueLabel__KuXHI",ug="styles-module__pieSlice__IzHt4",vg="styles-module__pieLabel__T62HZ",pg="styles-module__legend__PbzNU",kg="styles-module__legendItem__qyy6C",zg="styles-module__legendColor__jy5vR",gg="styles-module__legendLabel__GhokZ",A={chartContainer:Qz,title:eg,chartWrapper:tg,svg:ag,grid:lg,gridLine:sg,xAxis:rg,yAxis:ig,axisLabel:og,animatedLine:cg,animatedArea:hg,animatedBar:fg,animatedPie:dg,dataPoint:ng,valueLabel:mg,pieSlice:ug,pieLabel:vg,legend:pg,legendItem:kg,legendColor:zg,legendLabel:gg},z0={light:["rgba(99, 102, 241, 0.8)","rgba(34, 197, 94, 0.8)","rgba(251, 191, 36, 0.8)","rgba(239, 68, 68, 0.8)","rgba(59, 130, 246, 0.8)","rgba(168, 85, 247, 0.8)","rgba(236, 72, 153, 0.8)","rgba(20, 184, 166, 0.8)"],dark:["rgba(129, 140, 248, 0.9)","rgba(74, 222, 128, 0.9)","rgba(253, 224, 71, 0.9)","rgba(248, 113, 113, 0.9)","rgba(96, 165, 250, 0.9)","rgba(196, 181, 253, 0.9)","rgba(244, 114, 182, 0.9)","rgba(45, 212, 191, 0.9)"]};function Y2(t,a,i,l){if(a)return a;const s=l?z0.dark:z0.light;return s[t%s.length]}function g0(t,a){if(t.length===0)return"";if(t.length===1)return`M ${t[0].x} ${t[0].y}`;if(!a)return t.reduce((l,s,r)=>r===0?`M ${s.x} ${s.y}`:`${l} L ${s.x} ${s.y}`,"");let i=`M ${t[0].x} ${t[0].y}`;for(let l=0;l<t.length-1;l++){const s=t[l],r=t[l+1],h=(s.x+r.x)/2;i+=` Q ${h} ${s.y}, ${h} ${(s.y+r.y)/2}`,i+=` Q ${h} ${r.y}, ${r.x} ${r.y}`}return i}function bg({type:t,datasets:a=[],data:i=[],labels:l=[],title:s,showLegend:r=!0,showGrid:h=!0,showValues:n=!1,height:f=300,className:o="",animate:m=!0,smooth:c=!0}){const q=z.useMemo(()=>{if(t==="pie"||t==="doughnut"){const k=i.reduce((_,d)=>_+d.value,0);let N=-90;return i.map((_,d)=>{const b=_.value/k*100,V=b/100*360,j=N,T=N+V;return N=T,{..._,percentage:b,startAngle:j,endAngle:T}})}return null},[t,i]),g=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap(C=>C.data)),j=Math.min(...a.flatMap(C=>C.data),0),T=b/(V-j),L=d/(l.length-1);return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map(C=>{const $=_.top+b/4*C;return e.jsx("line",{x1:_.left,y1:$,x2:800-_.right,y2:$,className:A.gridLine},`grid-${C}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map(C=>{const $=V-(V-j)/4*C,v=_.top+b/4*C;return e.jsx("text",{x:_.left-10,y:v+5,className:A.axisLabel,children:$.toFixed(0)},`y-${C}`)})}),e.jsx("g",{className:A.xAxis,children:l.map((C,$)=>{const v=_.left+L*$;return e.jsx("text",{x:v,y:N-10,className:A.axisLabel,children:C},`x-${$}`)})}),a.map((C,$)=>{const v=C.data.map((B,P)=>({x:_.left+L*P,y:_.top+b-(B-j)*T})),M=g0(v,c),x=Y2($,C.lightColor,C.darkColor);return e.jsxs("g",{children:[e.jsx("path",{d:M,fill:"none",stroke:x,strokeWidth:"3",className:m?A.animatedLine:""}),v.map((B,P)=>e.jsx("circle",{cx:B.x,cy:B.y,r:"4",fill:x,className:A.dataPoint},`point-${$}-${P}`)),n&&v.map((B,P)=>e.jsx("text",{x:B.x,y:B.y-10,className:A.valueLabel,children:C.data[P]},`value-${$}-${P}`))]},$)})]})},y=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap($=>$.data)),j=Math.min(...a.flatMap($=>$.data),0),T=b/(V-j),L=d/(l.length-1),C=_.top+b-(0-j)*T;return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map($=>{const v=_.top+b/4*$;return e.jsx("line",{x1:_.left,y1:v,x2:800-_.right,y2:v,className:A.gridLine},`grid-${$}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map($=>{const v=V-(V-j)/4*$,M=_.top+b/4*$;return e.jsx("text",{x:_.left-10,y:M+5,className:A.axisLabel,children:v.toFixed(0)},`y-${$}`)})}),e.jsx("g",{className:A.xAxis,children:l.map(($,v)=>e.jsx("text",{x:_.left+L*v,y:N-10,className:A.axisLabel,children:$},`x-${v}`))}),a.map(($,v)=>{const M=$.data.map((D,S)=>({x:_.left+L*S,y:_.top+b-(D-j)*T})),x=g0(M,c),B=`${x} L ${M[M.length-1].x} ${C} L ${M[0].x} ${C} Z`,P=Y2(v,$.lightColor,$.darkColor);return e.jsxs("g",{children:[e.jsx("path",{d:B,fill:P.replace("0.8","0.3").replace("0.9","0.3"),className:m?A.animatedArea:""}),e.jsx("path",{d:x,fill:"none",stroke:P,strokeWidth:"2"})]},v)})]})},p=()=>{const N=f-60,_={top:20,right:20,bottom:40,left:50},d=800-_.left-_.right,b=N-_.top-_.bottom,V=Math.max(...a.flatMap(v=>v.data)),j=Math.min(...a.flatMap(v=>v.data),0),T=b/(V-j),L=d/l.length,C=L/a.length*.8,$=_.top+b-(0-j)*T;return e.jsxs("svg",{width:"100%",height:N,viewBox:`0 0 800 ${N}`,className:A.svg,children:[h&&e.jsx("g",{className:A.grid,children:[0,1,2,3,4].map(v=>{const M=_.top+b/4*v;return e.jsx("line",{x1:_.left,y1:M,x2:800-_.right,y2:M,className:A.gridLine},`grid-${v}`)})}),e.jsx("g",{className:A.yAxis,children:[0,1,2,3,4].map(v=>{const M=V-(V-j)/4*v,x=_.top+b/4*v;return e.jsx("text",{x:_.left-10,y:x+5,className:A.axisLabel,children:M.toFixed(0)},`y-${v}`)})}),e.jsx("g",{className:A.xAxis,children:l.map((v,M)=>{const x=_.left+L*M+L/2;return e.jsx("text",{x,y:N-10,className:A.axisLabel,children:v},`x-${M}`)})}),a.map((v,M)=>{const x=Y2(M,v.lightColor,v.darkColor);return e.jsx("g",{children:v.data.map((B,P)=>{const D=_.left+L*P+C*M+(L-C*a.length)/2,S=Math.abs(B)*T,u=B>=0?$-S:$;return e.jsxs("g",{children:[e.jsx("rect",{x:D,y:u,width:C,height:S,fill:x,className:m?A.animatedBar:""}),n&&e.jsx("text",{x:D+C/2,y:u-5,className:A.valueLabel,children:B})]},`bar-${M}-${P}`)})},M)})]})},Z=()=>{const d=t==="doughnut"?78:0;return e.jsx("svg",{width:"100%",height:f-60,viewBox:"0 0 300 300",className:A.svg,children:q?.map((b,V)=>{const j=b.startAngle*Math.PI/180,T=b.endAngle*Math.PI/180,L=150+130*Math.cos(j),C=150+130*Math.sin(j),$=150+130*Math.cos(T),v=150+130*Math.sin(T),M=b.endAngle-b.startAngle>180?1:0;let x;if(t==="doughnut"){const H=150+d*Math.cos(j),R=150+d*Math.sin(j),s2=150+d*Math.cos(T),r2=150+d*Math.sin(T);x=`
19
19
  M ${L} ${C}
20
20
  A 130 130 0 ${M} 1 ${$} ${v}
21
21
  L ${s2} ${r2}