@fabio.caffarello/react-design-system 1.10.5 → 1.11.0

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.
@@ -1,690 +0,0 @@
1
- "use strict";var na=Object.defineProperty,aa=Object.defineProperties;var oa=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var ur=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var dr=(e,s,t)=>s in e?na(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,D=(e,s)=>{for(var t in s||(s={}))ur.call(s,t)&&dr(e,t,s[t]);if(xt)for(var t of xt(s))fr.call(s,t)&&dr(e,t,s[t]);return e},L=(e,s)=>aa(e,oa(s));var B=(e,s)=>{var t={};for(var n in e)ur.call(e,n)&&s.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&xt)for(var n of xt(e))s.indexOf(n)<0&&fr.call(e,n)&&(t[n]=e[n]);return t};var bt=(e,s,t)=>new Promise((n,a)=>{var o=l=>{try{u(t.next(l))}catch(c){a(c)}},i=l=>{try{u(t.throw(l))}catch(c){a(c)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,i);u((t=t.apply(e,s)).next())});const m=require("./tokens-Dul82Bn_.cjs"),O=require("./primitives/index.cjs"),d=require("react"),$e=require("react-dom");function Tr(e){var s,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(s=0;s<a;s++)e[s]&&(t=Tr(e[s]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ar(){for(var e,s,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(s=Tr(e))&&(n&&(n+=" "),n+=s);return n}const ia=(e,s)=>{const t=new Array(e.length+s.length);for(let n=0;n<e.length;n++)t[n]=e[n];for(let n=0;n<s.length;n++)t[e.length+n]=s[n];return t},la=(e,s)=>({classGroupId:e,validator:s}),Rr=(e=new Map,s=null,t)=>({nextPart:e,validators:s,classGroupId:t}),kt="-",mr=[],ca="arbitrary..",da=e=>{const s=fa(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ua(i);const u=i.split(kt),l=u[0]===""&&u.length>1?1:0;return Dr(u,l,s)},getConflictingClassGroupIds:(i,u)=>{if(u){const l=n[i],c=t[i];return l?c?ia(c,l):l:c||mr}return t[i]||mr}}},Dr=(e,s,t)=>{if(e.length-s===0)return t.classGroupId;const a=e[s],o=t.nextPart.get(a);if(o){const c=Dr(e,s+1,o);if(c)return c}const i=t.validators;if(i===null)return;const u=s===0?e.join(kt):e.slice(s).join(kt),l=i.length;for(let c=0;c<l;c++){const f=i[c];if(f.validator(u))return f.classGroupId}},ua=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=e.slice(1,-1),t=s.indexOf(":"),n=s.slice(0,t);return n?ca+n:void 0})(),fa=e=>{const{theme:s,classGroups:t}=e;return ma(t,s)},ma=(e,s)=>{const t=Rr();for(const n in e){const a=e[n];hs(a,t,n,s)}return t},hs=(e,s,t,n)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];ga(i,s,t,n)}},ga=(e,s,t,n)=>{if(typeof e=="string"){pa(e,s,t);return}if(typeof e=="function"){ha(e,s,t,n);return}xa(e,s,t,n)},pa=(e,s,t)=>{const n=e===""?s:Ir(s,e);n.classGroupId=t},ha=(e,s,t,n)=>{if(ba(e)){hs(e(n),s,t,n);return}s.validators===null&&(s.validators=[]),s.validators.push(la(t,e))},xa=(e,s,t,n)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[u,l]=a[i];hs(l,Ir(s,u),t,n)}},Ir=(e,s)=>{let t=e;const n=s.split(kt),a=n.length;for(let o=0;o<a;o++){const i=n[o];let u=t.nextPart.get(i);u||(u=Rr(),t.nextPart.set(i,u)),t=u}return t},ba=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,va=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,t=Object.create(null),n=Object.create(null);const a=(o,i)=>{t[o]=i,s++,s>e&&(s=0,n=t,t=Object.create(null))};return{get(o){let i=t[o];if(i!==void 0)return i;if((i=n[o])!==void 0)return a(o,i),i},set(o,i){o in t?t[o]=i:a(o,i)}}},cs="!",gr=":",ya=[],pr=(e,s,t,n,a)=>({modifiers:e,hasImportantModifier:s,baseClassName:t,maybePostfixModifierPosition:n,isExternal:a}),wa=e=>{const{prefix:s,experimentalParseClassName:t}=e;let n=a=>{const o=[];let i=0,u=0,l=0,c;const f=a.length;for(let y=0;y<f;y++){const C=a[y];if(i===0&&u===0){if(C===gr){o.push(a.slice(l,y)),l=y+1;continue}if(C==="/"){c=y;continue}}C==="["?i++:C==="]"?i--:C==="("?u++:C===")"&&u--}const p=o.length===0?a:a.slice(l);let g=p,b=!1;p.endsWith(cs)?(g=p.slice(0,-1),b=!0):p.startsWith(cs)&&(g=p.slice(1),b=!0);const v=c&&c>l?c-l:void 0;return pr(o,b,g,v)};if(s){const a=s+gr,o=n;n=i=>i.startsWith(a)?o(i.slice(a.length)):pr(ya,!1,i,void 0,!0)}if(t){const a=n;n=o=>t({className:o,parseClassName:a})}return n},Ca=e=>{const s=new Map;return e.orderSensitiveModifiers.forEach((t,n)=>{s.set(t,1e6+n)}),t=>{const n=[];let a=[];for(let o=0;o<t.length;o++){const i=t[o],u=i[0]==="[",l=s.has(i);u||l?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(i)):a.push(i)}return a.length>0&&(a.sort(),n.push(...a)),n}},ja=e=>D({cache:va(e.cacheSize),parseClassName:wa(e),sortModifiers:Ca(e)},da(e)),ka=/\s+/,Sa=(e,s)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=s,i=[],u=e.trim().split(ka);let l="";for(let c=u.length-1;c>=0;c-=1){const f=u[c],{isExternal:p,modifiers:g,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:y}=t(f);if(p){l=f+(l.length>0?" "+l:l);continue}let C=!!y,x=n(C?v.substring(0,y):v);if(!x){if(!C){l=f+(l.length>0?" "+l:l);continue}if(x=n(v),!x){l=f+(l.length>0?" "+l:l);continue}C=!1}const w=g.length===0?"":g.length===1?g[0]:o(g).join(":"),N=b?w+cs:w,h=N+x;if(i.indexOf(h)>-1)continue;i.push(h);const k=a(x,C);for(let S=0;S<k.length;++S){const R=k[S];i.push(N+R)}l=f+(l.length>0?" "+l:l)}return l},Na=(...e)=>{let s=0,t,n,a="";for(;s<e.length;)(t=e[s++])&&(n=Mr(t))&&(a&&(a+=" "),a+=n);return a},Mr=e=>{if(typeof e=="string")return e;let s,t="";for(let n=0;n<e.length;n++)e[n]&&(s=Mr(e[n]))&&(t&&(t+=" "),t+=s);return t},$a=(e,...s)=>{let t,n,a,o;const i=l=>{const c=s.reduce((f,p)=>p(f),e());return t=ja(c),n=t.cache.get,a=t.cache.set,o=u,u(l)},u=l=>{const c=n(l);if(c)return c;const f=Sa(l,t);return a(l,f),f};return o=i,(...l)=>o(Na(...l))},Ea=[],ae=e=>{const s=t=>t[e]||Ea;return s.isThemeGetter=!0,s},Fr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_r=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ta=/^\d+\/\d+$/,Aa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ra=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Da=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ia=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Ta.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),Qt=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Aa.test(e),Fa=()=>!0,_a=e=>Ra.test(e)&&!Da.test(e),zr=()=>!1,za=e=>Ia.test(e),La=e=>Ma.test(e),Pa=e=>!H(e)&&!U(e),Oa=e=>Ze(e,Or,zr),H=e=>Fr.test(e),ze=e=>Ze(e,Wr,_a),es=e=>Ze(e,Ua,J),hr=e=>Ze(e,Lr,zr),Wa=e=>Ze(e,Pr,La),vt=e=>Ze(e,Vr,za),U=e=>_r.test(e),rt=e=>Je(e,Wr),Va=e=>Je(e,qa),xr=e=>Je(e,Lr),Ba=e=>Je(e,Or),Ha=e=>Je(e,Pr),yt=e=>Je(e,Vr,!0),Ze=(e,s,t)=>{const n=Fr.exec(e);return n?n[1]?s(n[1]):t(n[2]):!1},Je=(e,s,t=!1)=>{const n=_r.exec(e);return n?n[1]?s(n[1]):t:!1},Lr=e=>e==="position"||e==="percentage",Pr=e=>e==="image"||e==="url",Or=e=>e==="length"||e==="size"||e==="bg-size",Wr=e=>e==="length",Ua=e=>e==="number",qa=e=>e==="family-name",Vr=e=>e==="shadow",Ga=()=>{const e=ae("color"),s=ae("font"),t=ae("text"),n=ae("font-weight"),a=ae("tracking"),o=ae("leading"),i=ae("breakpoint"),u=ae("container"),l=ae("spacing"),c=ae("radius"),f=ae("shadow"),p=ae("inset-shadow"),g=ae("text-shadow"),b=ae("drop-shadow"),v=ae("blur"),y=ae("perspective"),C=ae("aspect"),x=ae("ease"),w=ae("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...h(),U,H],S=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],j=()=>[U,H,l],$=()=>[He,"full","auto",...j()],E=()=>[Te,"none","subgrid",U,H],T=()=>["auto",{span:["full",Te,U,H]},Te,U,H],I=()=>[Te,"auto",U,H],_=()=>["auto","min","max","fr",U,H],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...j()],q=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],W=()=>[e,U,H],ne=()=>[...h(),xr,hr,{position:[U,H]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",Ba,Oa,{size:[U,H]}],V=()=>[Qt,rt,ze],Y=()=>["","none","full",c,U,H],Z=()=>["",J,rt,ze],ie=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[J,Qt,xr,hr],G=()=>["","none",v,U,H],Q=()=>["none",J,U,H],le=()=>["none",J,U,H],ue=()=>[J,U,H],Ce=()=>[He,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[Fa],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[Pa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,H,U,C]}],container:["container"],columns:[{columns:[J,H,U,u]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",U,H]}],basis:[{basis:[He,"full","auto",u,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,He,"auto","initial","none",H]}],grow:[{grow:["",J,U,H]}],shrink:[{shrink:["",J,U,H]}],order:[{order:[Te,"first","last","none",U,H]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",t,rt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,U,es]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qt,H]}],"font-family":[{font:[Va,H,s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,U,H]}],"line-clamp":[{"line-clamp":[J,"none",U,es]}],leading:[{leading:[o,...j()]}],"list-image":[{"list-image":["none",U,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",U,ze]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[J,"auto",U,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,U,H],radial:["",U,H],conic:[Te,U,H]},Ha,Wa]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,U,H]}],"outline-w":[{outline:["",J,rt,ze]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",f,yt,vt]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",p,yt,vt]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",g,yt,vt]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[J,U,H]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[U,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":h()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,H]}],filter:[{filter:["","none",U,H]}],blur:[{blur:G()}],brightness:[{brightness:[J,U,H]}],contrast:[{contrast:[J,U,H]}],"drop-shadow":[{"drop-shadow":["","none",b,yt,vt]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",J,U,H]}],"hue-rotate":[{"hue-rotate":[J,U,H]}],invert:[{invert:["",J,U,H]}],saturate:[{saturate:[J,U,H]}],sepia:[{sepia:["",J,U,H]}],"backdrop-filter":[{"backdrop-filter":["","none",U,H]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[J,U,H]}],"backdrop-contrast":[{"backdrop-contrast":[J,U,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,U,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,U,H]}],"backdrop-invert":[{"backdrop-invert":["",J,U,H]}],"backdrop-opacity":[{"backdrop-opacity":[J,U,H]}],"backdrop-saturate":[{"backdrop-saturate":[J,U,H]}],"backdrop-sepia":[{"backdrop-sepia":["",J,U,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",U,H]}],ease:[{ease:["linear","initial",x,U,H]}],delay:[{delay:[J,U,H]}],animate:[{animate:["none",w,U,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,U,H]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[U,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U,H]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[J,rt,ze,es]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ka=$a(Ga);function M(...e){return Ka(Ar(e))}const br=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vr=Ar,Ya=(e,s)=>t=>{var n;if((s==null?void 0:s.variants)==null)return vr(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:a,defaultVariants:o}=s,i=Object.keys(a).map(c=>{const f=t==null?void 0:t[c],p=o==null?void 0:o[c];if(f===null)return null;const g=br(f)||br(p);return a[c][g]}),u=t&&Object.entries(t).reduce((c,f)=>{let[p,g]=f;return g===void 0||(c[p]=g),c},{}),l=s==null||(n=s.compoundVariants)===null||n===void 0?void 0:n.reduce((c,f)=>{let v=f,{class:p,className:g}=v,b=B(v,["class","className"]);return Object.entries(b).every(y=>{let[C,x]=y;return Array.isArray(x)?x.includes(D(D({},o),u)[C]):D(D({},o),u)[C]===x})?[...c,p,g]:c},[]);return vr(e,i,l,t==null?void 0:t.class,t==null?void 0:t.className)},lt=(e,s)=>{const t=Ya(e,s);return(n=>{const a=t(n);return M(a)})};var wt={exports:{}},nt={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var yr;function Xa(){if(yr)return nt;yr=1;var e=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function t(n,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var u in a)u!=="key"&&(o[u]=a[u])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:i,ref:a!==void 0?a:null,props:o}}return nt.Fragment=s,nt.jsx=t,nt.jsxs=t,nt}var at={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var wr;function Za(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&(function(){function e(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===T?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case C:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case S:return"Suspense";case R:return"SuspenseList";case E:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case y:return"Portal";case h:return A.displayName||"Context";case N:return(A._context.displayName||"Context")+".Consumer";case k:var V=A.render;return A=A.displayName,A||(A=V.displayName||V.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case j:return V=A.displayName||null,V!==null?V:e(A.type)||"Memo";case $:V=A._payload,A=A._init;try{return e(A(V))}catch(Y){}}return null}function s(A){return""+A}function t(A){try{var V=!1}catch(ie){V=!0}if(V){V=console;var Y=V.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return Y.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),s(A)}}function n(A){if(A===C)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===$)return"<...>";try{var V=e(A);return V?"<"+V+">":"<...>"}catch(Y){return"<...>"}}function a(){var A=I.A;return A===null?null:A.getOwner()}function o(){return Error("react-stack-top-frame")}function i(A){if(_.call(A,"key")){var V=Object.getOwnPropertyDescriptor(A,"key").get;if(V&&V.isReactWarning)return!1}return A.key!==void 0}function u(A,V){function Y(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}Y.isReactWarning=!0,Object.defineProperty(A,"key",{get:Y,configurable:!0})}function l(){var A=e(this.type);return q[A]||(q[A]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),A=this.props.ref,A!==void 0?A:null}function c(A,V,Y,Z,ie,ee){var z=Y.ref;return A={$$typeof:v,type:A,key:V,props:Y,_owner:Z},(z!==void 0?z:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:l}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function f(A,V,Y,Z,ie,ee){var z=V.children;if(z!==void 0)if(Z)if(F(z)){for(Z=0;Z<z.length;Z++)p(z[Z]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(z);if(_.call(V,"key")){z=e(A);var G=Object.keys(V).filter(function(le){return le!=="key"});Z=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",se[z+Z]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,Z,z,G,z),se[z+Z]=!0)}if(z=null,Y!==void 0&&(t(Y),z=""+Y),i(V)&&(t(V.key),z=""+V.key),"key"in V){Y={};for(var Q in V)Q!=="key"&&(Y[Q]=V[Q])}else Y=V;return z&&u(Y,typeof A=="function"?A.displayName||A.name||"Unknown":A),c(A,z,Y,a(),ie,ee)}function p(A){g(A)?A._store&&(A._store.validated=1):typeof A=="object"&&A!==null&&A.$$typeof===$&&(A._payload.status==="fulfilled"?g(A._payload.value)&&A._payload.value._store&&(A._payload.value._store.validated=1):A._store&&(A._store.validated=1))}function g(A){return typeof A=="object"&&A!==null&&A.$$typeof===v}var b=d,v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),h=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),T=Symbol.for("react.client.reference"),I=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,F=Array.isArray,P=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(A){return A()}};var K,q={},W=b.react_stack_bottom_frame.bind(b,o)(),ne=P(n(o)),se={};at.Fragment=C,at.jsx=function(A,V,Y){var Z=1e4>I.recentlyCreatedOwnerStacks++;return f(A,V,Y,!1,Z?Error("react-stack-top-frame"):W,Z?P(n(A)):ne)},at.jsxs=function(A,V,Y){var Z=1e4>I.recentlyCreatedOwnerStacks++;return f(A,V,Y,!0,Z?Error("react-stack-top-frame"):W,Z?P(n(A)):ne)}})()),at}var Cr;function Ja(){return Cr||(Cr=1,process.env.NODE_ENV==="production"?wt.exports=Xa():wt.exports=Za()),wt.exports}var r=Ja();const xs=d.createContext(void 0);function bs(){const e=d.useContext(xs);if(!e)throw new Error("Toast components must be used within a ToastProvider");return e}function Qa(){return d.useContext(xs)}const Dt=d.createContext(void 0);function Qe(){const e=d.useContext(Dt);if(!e)throw new Error("Dialog components must be used within a Dialog component");return e}function eo(){return d.useContext(Dt)}function Br({children:e,open:s,defaultOpen:t=!1,onOpenChange:n,titleId:a,descriptionId:o}){const[i,u]=d.useState(t),l=d.useRef(null),c=s!==void 0?s:i,f=g=>{s===void 0&&u(g),n==null||n(g)};d.useEffect(()=>{if(c)l.current=document.activeElement;else{const g=setTimeout(()=>{var b;(b=l.current)==null||b.focus()},0);return()=>clearTimeout(g)}},[c]),d.useEffect(()=>(c?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c]);const p={isOpen:c,onOpenChange:f,onClose:()=>f(!1),titleId:a,descriptionId:o};return r.jsx(Dt.Provider,{value:p,children:e})}/**
23
- * @license lucide-react v0.552.0 - ISC
24
- *
25
- * This source code is licensed under the ISC license.
26
- * See the LICENSE file in the root directory of this source tree.
27
- */const to=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),so=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,t,n)=>n?n.toUpperCase():t.toLowerCase()),jr=e=>{const s=so(e);return s.charAt(0).toUpperCase()+s.slice(1)},Hr=(...e)=>e.filter((s,t,n)=>!!s&&s.trim()!==""&&n.indexOf(s)===t).join(" ").trim(),ro=e=>{for(const s in e)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
28
- * @license lucide-react v0.552.0 - ISC
29
- *
30
- * This source code is licensed under the ISC license.
31
- * See the LICENSE file in the root directory of this source tree.
32
- */var no={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
- * @license lucide-react v0.552.0 - ISC
34
- *
35
- * This source code is licensed under the ISC license.
36
- * See the LICENSE file in the root directory of this source tree.
37
- */const ao=d.forwardRef((c,l)=>{var f=c,{color:e="currentColor",size:s=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:i}=f,u=B(f,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return d.createElement("svg",D(D(L(D({ref:l},no),{width:s,height:s,stroke:e,strokeWidth:n?Number(t)*24/Number(s):t,className:Hr("lucide",a)}),!o&&!ro(u)&&{"aria-hidden":"true"}),u),[...i.map(([p,g])=>d.createElement(p,g)),...Array.isArray(o)?o:[o]])});/**
38
- * @license lucide-react v0.552.0 - ISC
39
- *
40
- * This source code is licensed under the ISC license.
41
- * See the LICENSE file in the root directory of this source tree.
42
- */const te=(e,s)=>{const t=d.forwardRef((i,o)=>{var u=i,{className:n}=u,a=B(u,["className"]);return d.createElement(ao,D({ref:o,iconNode:s,className:Hr(`lucide-${to(jr(e))}`,`lucide-${e}`,n)},a))});return t.displayName=jr(e),t};/**
43
- * @license lucide-react v0.552.0 - ISC
44
- *
45
- * This source code is licensed under the ISC license.
46
- * See the LICENSE file in the root directory of this source tree.
47
- */const oo=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],io=te("arrow-up-down",oo);/**
48
- * @license lucide-react v0.552.0 - ISC
49
- *
50
- * This source code is licensed under the ISC license.
51
- * See the LICENSE file in the root directory of this source tree.
52
- */const lo=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],co=te("calendar",lo);/**
53
- * @license lucide-react v0.552.0 - ISC
54
- *
55
- * This source code is licensed under the ISC license.
56
- * See the LICENSE file in the root directory of this source tree.
57
- */const uo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ds=te("check",uo);/**
58
- * @license lucide-react v0.552.0 - ISC
59
- *
60
- * This source code is licensed under the ISC license.
61
- * See the LICENSE file in the root directory of this source tree.
62
- */const fo=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vs=te("chevron-down",fo);/**
63
- * @license lucide-react v0.552.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */const mo=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],it=te("chevron-left",mo);/**
68
- * @license lucide-react v0.552.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const go=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Pe=te("chevron-right",go);/**
73
- * @license lucide-react v0.552.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const po=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ys=te("circle-alert",po);/**
78
- * @license lucide-react v0.552.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */const ho=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],St=te("circle-check",ho);/**
83
- * @license lucide-react v0.552.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const xo=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bo=te("clock",xo);/**
88
- * @license lucide-react v0.552.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const vo=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],yo=te("command",vo);/**
93
- * @license lucide-react v0.552.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const wo=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Co=te("download",wo);/**
98
- * @license lucide-react v0.552.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const jo=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],ko=te("ellipsis-vertical",jo);/**
103
- * @license lucide-react v0.552.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const So=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],No=te("eye-off",So);/**
108
- * @license lucide-react v0.552.0 - ISC
109
- *
110
- * This source code is licensed under the ISC license.
111
- * See the LICENSE file in the root directory of this source tree.
112
- */const $o=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Eo=te("eye",$o);/**
113
- * @license lucide-react v0.552.0 - ISC
114
- *
115
- * This source code is licensed under the ISC license.
116
- * See the LICENSE file in the root directory of this source tree.
117
- */const To=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Ao=te("file",To);/**
118
- * @license lucide-react v0.552.0 - ISC
119
- *
120
- * This source code is licensed under the ISC license.
121
- * See the LICENSE file in the root directory of this source tree.
122
- */const Ro=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Do=te("funnel",Ro);/**
123
- * @license lucide-react v0.552.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const Io=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Mo=te("grip-vertical",Io);/**
128
- * @license lucide-react v0.552.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const Fo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],_o=te("info",Fo);/**
133
- * @license lucide-react v0.552.0 - ISC
134
- *
135
- * This source code is licensed under the ISC license.
136
- * See the LICENSE file in the root directory of this source tree.
137
- */const zo=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ur=te("loader-circle",zo);/**
138
- * @license lucide-react v0.552.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const Lo=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Po=te("menu",Lo);/**
143
- * @license lucide-react v0.552.0 - ISC
144
- *
145
- * This source code is licensed under the ISC license.
146
- * See the LICENSE file in the root directory of this source tree.
147
- */const Oo=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Wo=te("panel-left-close",Oo);/**
148
- * @license lucide-react v0.552.0 - ISC
149
- *
150
- * This source code is licensed under the ISC license.
151
- * See the LICENSE file in the root directory of this source tree.
152
- */const Vo=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Bo=te("panel-left-open",Vo);/**
153
- * @license lucide-react v0.552.0 - ISC
154
- *
155
- * This source code is licensed under the ISC license.
156
- * See the LICENSE file in the root directory of this source tree.
157
- */const Ho=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],us=te("search",Ho);/**
158
- * @license lucide-react v0.552.0 - ISC
159
- *
160
- * This source code is licensed under the ISC license.
161
- * See the LICENSE file in the root directory of this source tree.
162
- */const Uo=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Ue=te("star",Uo);/**
163
- * @license lucide-react v0.552.0 - ISC
164
- *
165
- * This source code is licensed under the ISC license.
166
- * See the LICENSE file in the root directory of this source tree.
167
- */const qo=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Go=te("triangle-alert",qo);/**
168
- * @license lucide-react v0.552.0 - ISC
169
- *
170
- * This source code is licensed under the ISC license.
171
- * See the LICENSE file in the root directory of this source tree.
172
- */const Ko=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Yo=te("upload",Ko);/**
173
- * @license lucide-react v0.552.0 - ISC
174
- *
175
- * This source code is licensed under the ISC license.
176
- * See the LICENSE file in the root directory of this source tree.
177
- */const Xo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fe=te("x",Xo),Nt=d.memo(function(c){var f=c,{variant:s="default",padding:t="medium",className:n="",onClick:a,"aria-label":o,"aria-labelledby":i,children:u}=f,l=B(f,["variant","padding","className","onClick","aria-label","aria-labelledby","children"]);const p=lt(M("bg-white",m.getRadiusClass("lg"),"border",m.getColorClass("neutral","DEFAULT","border"),"shadow-sm"),{variants:{variant:{default:"",hover:M("hover:shadow-md","transition-shadow","cursor-pointer"),selected:M("border-line-brand","shadow-md")},padding:{none:"",small:m.getSpacingClass("xs","p"),medium:m.getSpacingClass("base","p"),large:m.getSpacingClass("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),g=d.useMemo(()=>a!==void 0||s==="hover",[a,s]),b=g?"button":void 0,v=g?0:void 0,y=M(p({variant:s,padding:t}),n),C=d.useCallback(x=>{g&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),a==null||a())},[g,a]);return r.jsx("div",L(D({className:y,role:b,tabIndex:v,onClick:a,onKeyDown:C,"aria-label":o,"aria-labelledby":i},l),{children:u}))});Nt.displayName="Card";const It=d.createContext(void 0);function ws(){const e=d.useContext(It);if(e===void 0)throw new Error("useFormContext must be used within a Form component with react-hook-form integration");return e}function Zo(){return d.useContext(It)}function qr({form:e,loading:s=!1,children:t}){const n={form:e,loading:s};return r.jsx(It.Provider,{value:n,children:t})}function Jo(u){var l=u,{children:e,onSubmit:s,loading:t=!1,error:n=null,success:a=null,className:o=""}=l,i=B(l,["children","onSubmit","loading","error","success","className"]);const c=M(m.getSpacingClass("lg","gap"),"flex","flex-col",o);if("form"in i&&i.form!==void 0){const y=i,{form:x,onSubmit:w,onSubmitError:N}=y,h=B(y,["form","onSubmit","onSubmitError"]),k=x.handleSubmit(S=>bt(null,null,function*(){try{yield w(S)}catch(R){N==null||N(R)}}),S=>{N==null||N(S)});return r.jsx(qr,{form:x,loading:t,children:r.jsxs("form",L(D({className:c,onSubmit:k,noValidate:!0},h),{children:[e,n&&r.jsx("div",{role:"alert",className:M(m.getSpacingClass("md","p"),m.getTypographySizeFromFontSize("sm"),"text-error-dark","bg-error-bg","border","border-error",m.getRadiusClass("md")),children:n}),a&&r.jsx("div",{role:"alert",className:M(m.getSpacingClass("md","p"),m.getTypographySizeFromFontSize("sm"),"text-success-dark","bg-success-bg","border","border-success",m.getRadiusClass("md")),children:a})]}))})}const p=i.onSubmit||s,C=i,{onSubmit:g}=C,b=B(C,["onSubmit"]),v=x=>{x.preventDefault(),p&&!t&&p(x)};return r.jsxs("form",L(D({className:c,onSubmit:v,noValidate:!0},b),{children:[e,n&&r.jsx("div",{role:"alert",className:M(m.getSpacingClass("md","p"),m.getTypographySizeFromFontSize("sm"),"text-error-dark","bg-error-bg","border","border-error",m.getRadiusClass("md")),children:n}),a&&r.jsx("div",{role:"alert",className:M(m.getSpacingClass("md","p"),m.getTypographySizeFromFontSize("sm"),"text-success-dark","bg-success-bg","border","border-success",m.getRadiusClass("md")),children:a})]}))}function Qo({name:e,label:s,children:t,rules:n,className:a=""}){var g;const{form:o}=ws();if(!o)throw new Error("FormField must be used within a Form component with react-hook-form integration");const{register:i,formState:{errors:u},watch:l}=o,c=i(e,n),f=(g=u[e])==null?void 0:g.message,p=l(e);return r.jsxs("div",{className:M("flex","flex-col",m.getSpacingClass("sm","gap"),a),children:[s&&r.jsx(O.Label,{htmlFor:e,className:M("block",m.getTypographySizeFromFontSize("sm"),m.getTypographyWeightFromFontWeight("medium"),m.getColorClass("neutral","dark","text")),children:s}),t({name:e,register:b=>i(b,n),error:f,value:p,onChange:c.onChange,onBlur:c.onBlur}),f&&r.jsx(O.ErrorMessage,{message:f})]})}var ei=e=>e.type==="checkbox",ti=e=>e instanceof Date,Ne=e=>e==null;const si=e=>typeof e=="object";var Ee=e=>!Ne(e)&&!Array.isArray(e)&&si(e)&&!ti(e),ri=e=>{const s=e.constructor&&e.constructor.prototype;return Ee(s)&&s.hasOwnProperty("isPrototypeOf")},Gr=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Le(e){if(e instanceof Date)return new Date(e);const s=typeof FileList!="undefined"&&e instanceof FileList;if(Gr&&(e instanceof Blob||s))return e;const t=Array.isArray(e);if(!t&&!(Ee(e)&&ri(e)))return e;const n=t?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=Le(e[a]));return n}var Cs=e=>/^\w*$/.test(e),ye=e=>e===void 0,Kr=e=>Array.isArray(e)?e.filter(Boolean):[],js=e=>Kr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),be=(e,s,t)=>{if(!s||!Ee(e))return t;const n=(Cs(s)?[s]:js(s)).reduce((a,o)=>Ne(a)?a:a[o],e);return ye(n)||n===e?ye(e[s])?t:e[s]:n},Yr=e=>typeof e=="boolean",ni=e=>typeof e=="function",$t=(e,s,t)=>{let n=-1;const a=Cs(s)?[s]:js(s),o=a.length,i=o-1;for(;++n<o;){const u=a[n];let l=t;if(n!==i){const c=e[u];l=Ee(c)||Array.isArray(c)?c:isNaN(+a[n+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}};const Ge={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Se={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Xr=d.createContext(null);Xr.displayName="HookFormControlContext";const ai=()=>d.useContext(Xr),oi=typeof window!="undefined"?d.useLayoutEffect:d.useEffect;var Re=e=>typeof e=="string";const ii=d.createContext(null);ii.displayName="HookFormContext";var li=(e,s,t,n,a)=>s?L(D({},t[e]),{types:L(D({},t[e]&&t[e].types?t[e].types:{}),{[n]:a||!0})}):{},ve=e=>Array.isArray(e)?e:[e],Et=e=>Ee(e)&&!Object.keys(e).length,ci=e=>e.type==="file",di=e=>{if(!Gr)return!1;const s=e?e.ownerDocument:0;return e instanceof(s&&s.defaultView?s.defaultView.HTMLElement:HTMLElement)},ui=e=>e.type==="radio";function fi(e,s){const t=s.slice(0,-1).length;let n=0;for(;n<t;)e=ye(e)?n++:e[s[n++]];return e}function mi(e){for(const s in e)if(e.hasOwnProperty(s)&&!ye(e[s]))return!1;return!0}function Zr(e,s){const t=Array.isArray(s)?s:Cs(s)?[s]:js(s),n=t.length===1?e:fi(e,t),a=t.length-1,o=t[a];return n&&delete n[o],a!==0&&(Ee(n)&&Et(n)||Array.isArray(n)&&mi(n))&&Zr(e,t.slice(0,-1)),e}var Jr=e=>e instanceof RegExp,Ct=e=>({isOnSubmit:!e||e===Ge.onSubmit,isOnBlur:e===Ge.onBlur,isOnChange:e===Ge.onChange,isOnAll:e===Ge.all,isOnTouch:e===Ge.onTouched}),gi=(e,s,t)=>s.watchAll||s.watch.has(e)||[...s.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)));const fs=(e,s,t,n)=>{for(const o of Object.keys(e)){const i=be(e,o);if(i){const a=i,{_f:u}=a,l=B(a,["_f"]);if(u){if(u.refs&&u.refs[0]&&s(u.refs[0],o))return!0;if(u.ref&&s(u.ref,u.name))return!0;if(fs(l,s))break}else if(Ee(l)&&fs(l,s))break}}};var pi=(e,s,t)=>{const n=ve(be(e,t));return $t(n,"root",s[t]),$t(e,t,n),e};function kr(e,s,t="validate"){if(Re(e)||Array.isArray(e)&&e.every(Re)||Yr(e)&&!e)return{type:t,message:Re(e)?e:"",ref:s}}var qe=e=>Ee(e)&&!Jr(e)?e:{value:e,message:""},hi=(e,s,t,n,a,o)=>bt(null,null,function*(){const{ref:i,refs:u,required:l,maxLength:c,minLength:f,min:p,max:g,pattern:b,validate:v,name:y,valueAsNumber:C,mount:x}=e._f,w=be(t,y);if(!x||s.has(y))return{};const N=u?u[0]:i,h=$=>{a&&N.reportValidity&&(N.setCustomValidity(Yr($)?"":$||""),N.reportValidity())},k={};ui(i),ei(i);const S=(C||ci(i))&&ye(i.value)&&ye(w)||di(i)&&i.value===""||w===""||Array.isArray(w)&&!w.length,R=li.bind(null,y,n,k),j=($,E,T,I=Se.maxLength,_=Se.minLength)=>{const F=$?E:T;k[y]=D({type:$?I:_,message:F,ref:i},R($?I:_,F))};if(!Array.isArray(w)||!w.length){const{value:$,message:E}=Re(l)?{value:!!l,message:l}:qe(l);if($&&(k[y]=D({type:Se.required,message:E,ref:N},R(Se.required,E)),!n))return h(E),k}if(!S&&(!Ne(p)||!Ne(g))){let $,E;const T=qe(g),I=qe(p);if(!Ne(w)&&!isNaN(w)){const _=i.valueAsNumber||w&&+w;Ne(T.value)||($=_>T.value),Ne(I.value)||(E=_<I.value)}else{const _=i.valueAsDate||new Date(w),F=q=>new Date(new Date().toDateString()+" "+q),P=i.type=="time",K=i.type=="week";Re(T.value)&&w&&($=P?F(w)>F(T.value):K?w>T.value:_>new Date(T.value)),Re(I.value)&&w&&(E=P?F(w)<F(I.value):K?w<I.value:_<new Date(I.value))}if(($||E)&&(j(!!$,T.message,I.message,Se.max,Se.min),!n))return h(k[y].message),k}if((c||f)&&!S&&(Re(w)||Array.isArray(w))){const $=qe(c),E=qe(f),T=!Ne($.value)&&w.length>+$.value,I=!Ne(E.value)&&w.length<+E.value;if((T||I)&&(j(T,$.message,E.message),!n))return h(k[y].message),k}if(b&&!S&&Re(w)){const{value:$,message:E}=qe(b);if(Jr($)&&!w.match($)&&(k[y]=D({type:Se.pattern,message:E,ref:i},R(Se.pattern,E)),!n))return h(E),k}if(v){if(ni(v)){const $=yield v(w,t),E=kr($,N);if(E&&(k[y]=D(D({},E),R(Se.validate,E.message)),!n))return h(E.message),k}else if(Ee(v)){let $={};for(const E in v){if(!Et($)&&!n)break;const T=kr(yield v[E](w,t),N,E);T&&($=D(D({},T),R(E,T.message)),h(T.message),n&&(k[y]=$))}if(!Et($)&&(k[y]=D({ref:N},$),!n))return k}}return h(!0),k}),Ae=()=>{if(typeof crypto!="undefined"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance=="undefined"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{const t=(Math.random()*16+e)%16|0;return(s=="x"?t:t&3|8).toString(16)})},ts=(e,s,t={})=>t.shouldFocus||ye(t.shouldFocus)?t.focusName||`${e}.${ye(t.focusIndex)?s:t.focusIndex}.`:"",ss=(e,s)=>[...e,...ve(s)],rs=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ns(e,s,t){return[...e.slice(0,s),...ve(t),...e.slice(s)]}var as=(e,s,t)=>Array.isArray(e)?(ye(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(s,1)[0]),e):[],os=(e,s)=>[...ve(s),...ve(e)];function xi(e,s){let t=0;const n=[...e];for(const a of s)n.splice(a-t,1),t++;return Kr(n).length?n:[]}var is=(e,s)=>ye(s)?[]:xi(e,ve(s).sort((t,n)=>t-n)),ls=(e,s,t)=>{[e[s],e[t]]=[e[t],e[s]]},Sr=(e,s,t)=>(e[s]=t,e);function bi(e){const s=ai(),{control:t=s,name:n,keyName:a="id",shouldUnregister:o,rules:i}=e,[u,l]=d.useState(t._getFieldArray(n)),c=d.useRef(t._getFieldArray(n).map(Ae)),f=d.useRef(!1);t._names.array.add(n),d.useMemo(()=>i&&u.length>=0&&t.register(n,i),[t,n,u.length,i]),oi(()=>t._subjects.array.subscribe({next:({values:h,name:k})=>{if(k===n||!k){const S=be(h,n);Array.isArray(S)&&(l(S),c.current=S.map(Ae))}}}).unsubscribe,[t,n]);const p=d.useCallback(h=>{f.current=!0,t._setFieldArray(n,h)},[t,n]),g=(h,k)=>{const S=ve(Le(h)),R=ss(t._getFieldArray(n),S);t._names.focus=ts(n,R.length-1,k),c.current=ss(c.current,S.map(Ae)),p(R),l(R),t._setFieldArray(n,R,ss,{argA:rs(h)})},b=(h,k)=>{const S=ve(Le(h)),R=os(t._getFieldArray(n),S);t._names.focus=ts(n,0,k),c.current=os(c.current,S.map(Ae)),p(R),l(R),t._setFieldArray(n,R,os,{argA:rs(h)})},v=h=>{const k=is(t._getFieldArray(n),h);c.current=is(c.current,h),p(k),l(k),!Array.isArray(be(t._fields,n))&&$t(t._fields,n,void 0),t._setFieldArray(n,k,is,{argA:h})},y=(h,k,S)=>{const R=ve(Le(k)),j=ns(t._getFieldArray(n),h,R);t._names.focus=ts(n,h,S),c.current=ns(c.current,h,R.map(Ae)),p(j),l(j),t._setFieldArray(n,j,ns,{argA:h,argB:rs(k)})},C=(h,k)=>{const S=t._getFieldArray(n);ls(S,h,k),ls(c.current,h,k),p(S),l(S),t._setFieldArray(n,S,ls,{argA:h,argB:k},!1)},x=(h,k)=>{const S=t._getFieldArray(n);as(S,h,k),as(c.current,h,k),p(S),l(S),t._setFieldArray(n,S,as,{argA:h,argB:k},!1)},w=(h,k)=>{const S=Le(k),R=Sr(t._getFieldArray(n),h,S);c.current=[...R].map((j,$)=>!j||$===h?Ae():c.current[$]),p(R),l([...R]),t._setFieldArray(n,R,Sr,{argA:h,argB:S},!0,!1)},N=h=>{const k=ve(Le(h));c.current=k.map(Ae),p([...k]),l([...k]),t._setFieldArray(n,[...k],S=>S,{},!0,!1)};return d.useEffect(()=>{if(t._state.action=!1,gi(n,t._names)&&t._subjects.state.next(D({},t._formState)),f.current&&(!Ct(t._options.mode).isOnSubmit||t._formState.isSubmitted)&&!Ct(t._options.reValidateMode).isOnSubmit)if(t._options.resolver)t._runSchema([n]).then(h=>{t._updateIsValidating([n]);const k=be(h.errors,n),S=be(t._formState.errors,n);(S?!k&&S.type||k&&(S.type!==k.type||S.message!==k.message):k&&k.type)&&(k?$t(t._formState.errors,n,k):Zr(t._formState.errors,n),t._subjects.state.next({errors:t._formState.errors}))});else{const h=be(t._fields,n);h&&h._f&&!(Ct(t._options.reValidateMode).isOnSubmit&&Ct(t._options.mode).isOnSubmit)&&hi(h,t._names.disabled,t._formValues,t._options.criteriaMode===Ge.all,t._options.shouldUseNativeValidation).then(k=>!Et(k)&&t._subjects.state.next({errors:pi(t._formState.errors,k,n)}))}t._subjects.state.next({name:n,values:Le(t._formValues)}),t._names.focus&&fs(t._fields,(h,k)=>{if(t._names.focus&&k.startsWith(t._names.focus)&&h.focus)return h.focus(),1}),t._names.focus="",t._setValid(),f.current=!1},[u,n,t]),d.useEffect(()=>(!be(t._formValues,n)&&t._setFieldArray(n),()=>{const h=(k,S)=>{const R=be(t._fields,k);R&&R._f&&(R._f.mount=S)};t._options.shouldUnregister||o?t.unregister(n):h(n,!1)}),[n,t,a,o]),{swap:d.useCallback(C,[p,n,t]),move:d.useCallback(x,[p,n,t]),prepend:d.useCallback(b,[p,n,t]),append:d.useCallback(g,[p,n,t]),remove:d.useCallback(v,[p,n,t]),insert:d.useCallback(y,[p,n,t]),update:d.useCallback(w,[p,n,t]),replace:d.useCallback(N,[p,n,t]),fields:d.useMemo(()=>u.map((h,k)=>L(D({},h),{[a]:c.current[k]||Ae()})),[u,a])}}function vi(e){const{form:s}=ws();if(!s)throw new Error("useFormFieldArray must be used within a Form component with react-hook-form integration");return bi(L(D({},e),{control:s.control}))}function Qr(a){var o=a,{items:e,separator:s="/",className:t=""}=o,n=B(o,["items","separator","className"]);const i=["flex","items-center",m.getSpacingClass("sm","space-x"),m.getTypographySize("bodySmall")],u=M(...i,t);return r.jsx("nav",L(D({"aria-label":"Breadcrumb",className:u},n),{children:r.jsx("ol",{className:M("flex","items-center",m.getSpacingClass("sm","space-x")),children:e.map((l,c)=>{const f=c===e.length-1;return r.jsxs("li",{className:"flex items-center",children:[c>0&&r.jsx("span",{className:M(m.getSpacingClass("sm","mx"),m.getColorClass("neutral","DEFAULT","text")),"aria-hidden":"true",children:s}),f?r.jsx("span",{className:M(m.getColorClass("neutral","dark","text"),m.getTypographyWeight("label")),"aria-current":"page",children:l.label}):l.href?r.jsx("a",{href:l.href,className:M("inline-flex","items-center",m.getSpacingClass("xs","px"),m.getSpacingClass("xs","pt"),"border-b-2","border-transparent",m.getTypographySize("bodySmall"),m.getTypographyWeight("label"),"transition-colors",m.getColorClass("neutral","DEFAULT","text"),m.getHoverColorClass("neutral","DEFAULT","border"),m.getHoverColorClass("neutral","dark","text")),children:l.label}):r.jsx("span",{className:m.getColorClass("neutral","DEFAULT","text"),children:l.label})]},c)})})}))}function en(l){var c=l,{currentPage:e,totalPages:s,onPageChange:t,totalItems:n,itemsPerPage:a,showPageInfo:o=!0,className:i=""}=c,u=B(c,["currentPage","totalPages","onPageChange","totalItems","itemsPerPage","showPageInfo","className"]);const f=()=>{e>1&&t(e-1)},p=()=>{e<s&&t(e+1)},g=x=>{x>=1&&x<=s&&x!==e&&t(x)},b=()=>{const x=[];if(s<=5)for(let N=1;N<=s;N++)x.push(N);else if(e<=3){for(let N=1;N<=4;N++)x.push(N);x.push("ellipsis"),x.push(s)}else if(e>=s-2){x.push(1),x.push("ellipsis");for(let N=s-3;N<=s;N++)x.push(N)}else{x.push(1),x.push("ellipsis");for(let N=e-1;N<=e+1;N++)x.push(N);x.push("ellipsis"),x.push(s)}return x},v=n&&a?(e-1)*a+1:void 0,y=n&&a?Math.min(e*a,n):void 0,C=M("flex","items-center","justify-between",m.getSpacingClass("base","px"),m.getSpacingClass("md","py"),i);return r.jsxs("nav",L(D({className:C,"aria-label":"Pagination"},u),{children:[r.jsxs("div",{className:M("flex","items-center",m.getSpacingClass("sm","gap")),children:[r.jsx(O.Button,{variant:"secondary",onClick:f,disabled:e===1,size:"sm",children:"Previous"}),r.jsx("div",{className:M("flex","items-center",m.getSpacingClass("xs","gap")),children:b().map((x,w)=>{if(x==="ellipsis")return r.jsx("span",{className:M(m.getSpacingClass("sm","px"),m.getColorClass("neutral","DEFAULT","text")),children:"..."},`ellipsis-${w}`);const N=x,h=N===e;return r.jsx(O.Button,{variant:h?"primary":"ghost",onClick:()=>g(N),size:"sm","aria-current":h?"page":void 0,"aria-label":`Go to page ${N}`,children:N},N)})}),r.jsx(O.Button,{variant:"secondary",onClick:p,disabled:e===s,size:"sm",children:"Next"})]}),o&&n&&a&&r.jsxs("div",{className:M(m.getTypographySizeFromFontSize("sm"),m.getColorClass("neutral","dark","text")),children:["Showing ",v," to ",y," of ",n," results"]})]}))}function tn(l){var c=l,{title:e,message:s,actionLabel:t,onAction:n,illustration:a,variant:o="default",className:i=""}=c,u=B(c,["title","message","actionLabel","onAction","illustration","variant","className"]);const f=M("flex","flex-col","items-center","justify-center","text-center",m.getSpacingClass("xl","py"),m.getSpacingClass("base","px"),i),p=o==="withAction"||t&&n,g=o==="withIllustration"||a;return r.jsxs("div",L(D({className:f,role:"status","aria-live":"polite","aria-label":`${e}. ${s}`},u),{children:[g&&a&&r.jsx("div",{className:M(m.getSpacingClass("base","mb")),"aria-hidden":"true",children:a}),r.jsx(O.Text,{as:"h3",className:M(m.getTypographySize("h4"),m.getTypographyWeightFromFontWeight("semibold"),m.getColorClass("neutral","dark","text"),m.getSpacingClass("sm","mb")),children:e}),r.jsx(O.Text,{as:"p",className:M(m.getTypographySize("bodySmall"),m.getColorClass("neutral","DEFAULT","text"),m.getSpacingClass("md","mb"),"max-w-sm"),children:s}),p&&t&&n&&r.jsx(O.Button,{variant:"primary",onClick:n,children:t})]}))}function sn(u){var l=u,{trigger:e,items:s,align:t="right",variant:n="default",className:a="","aria-label":o}=l,i=B(l,["trigger","items","align","variant","className","aria-label"]);const[c,f]=d.useState(!1),[p,g]=d.useState(-1),b=d.useRef(null),v=d.useRef(null),y=d.useRef(null),C=d.useRef([]),x=`dropdown-menu-${Math.random().toString(36).substr(2,9)}`,w=`dropdown-trigger-${Math.random().toString(36).substr(2,9)}`;d.useEffect(()=>{const j=$=>{b.current&&!b.current.contains($.target)&&(f(!1),g(-1))};return c&&(document.addEventListener("mousedown",j),setTimeout(()=>{var E;const $=s.findIndex(T=>!T.disabled);$>=0&&(g($),(E=C.current[$])==null||E.focus())},0)),()=>{document.removeEventListener("mousedown",j)}},[c,s]),d.useEffect(()=>{if(!c)return;const j=E=>{var _,F,P,K;const T=s.map((q,W)=>({item:q,index:W})).filter(({item:q})=>!q.disabled),I=T.findIndex(({index:q})=>q===p);switch(E.key){case"ArrowDown":{E.preventDefault();const q=I<T.length-1?T[I+1].index:T[0].index;g(q),(_=C.current[q])==null||_.focus();break}case"ArrowUp":{E.preventDefault();const q=I>0?T[I-1].index:T[T.length-1].index;g(q),(F=C.current[q])==null||F.focus();break}case"Home":{E.preventDefault();const q=T[0].index;g(q),(P=C.current[q])==null||P.focus();break}case"End":{E.preventDefault();const q=T[T.length-1].index;g(q),(K=C.current[q])==null||K.focus();break}case"Enter":case" ":E.preventDefault(),p>=0&&!s[p].disabled&&N(s[p]);break;case"Escape":E.preventDefault(),f(!1),g(-1),setTimeout(()=>{var q;(q=v.current)==null||q.focus()},0);break}},$=y.current;if($){const E=j;return $.addEventListener("keydown",E),()=>{$.removeEventListener("keydown",E)}}},[c,p,s]);const N=j=>{j.disabled||(j.onClick(),f(!1),g(-1),setTimeout(()=>{var $;($=v.current)==null||$.focus()},0))},h=()=>{f(!c),g(-1)},k=j=>{(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),f(!0))},S=t==="right"?"right-0":"left-0",R=d.isValidElement(e)?d.cloneElement(e,{onClick:j=>{h(),e.props.onClick&&e.props.onClick(j)},onKeyDown:j=>{k(j),e.props.onKeyDown&&e.props.onKeyDown(j)},"aria-haspopup":"menu","aria-expanded":c,"aria-controls":x,"aria-label":o||e.props["aria-label"]||"Open menu",id:w,ref:j=>{v.current=j,typeof e.ref=="function"?e.ref(j):e.ref&&(e.ref.current=j)}}):r.jsx("div",{ref:v,onClick:h,onKeyDown:k,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":x,"aria-label":o||"Open menu",id:w,children:e});return r.jsxs("div",L(D({className:M("relative","inline-block",a),ref:b},i),{children:[R,c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:M("fixed","inset-0","z-10"),onClick:()=>{f(!1),g(-1)},"aria-hidden":"true"}),r.jsx("div",{ref:y,id:x,className:M("absolute","z-20",m.getSpacingClass("sm","mt"),"w-48",m.getRadiusClass("md"),m.getShadowClass("lg"),m.getColorClass("neutral","light","bg"),"ring-1",m.getColorClass("neutral","dark","border"),"ring-opacity-5",S),role:"menu","aria-orientation":"vertical","aria-labelledby":w,"aria-activedescendant":p>=0?`${x}-item-${p}`:void 0,children:r.jsx("div",{className:M(m.getSpacingClass("xs","py")),role:"none",children:s.map((j,$)=>{const E=M("block",m.getSpacingClass("base","px"),m.getSpacingClass("xs","py"),m.getTypographySize("bodySmall"),"w-full","text-left","focus:outline-none",j.disabled?M(m.getColorClass("neutral","DEFAULT","text"),"cursor-not-allowed","opacity-50"):j.variant==="danger"?M("text-error-dark","hover:bg-error-bg-emphasis","focus:bg-error-bg-emphasis"):M(m.getColorClass("neutral","dark","text"),m.getHoverColorClass("neutral","light","bg"),m.getFocusColorClass("neutral","light","bg").replace("focus:border-","focus:bg-")));return r.jsx("button",{id:`${x}-item-${$}`,ref:T=>{C.current[$]=T},type:"button",className:E,onClick:()=>N(j),disabled:j.disabled,role:"menuitem","aria-disabled":j.disabled,tabIndex:j.disabled?-1:p===$?0:-1,children:j.label},$)})})})]})]}))}const rn=d.createContext(void 0);function nn(){const e=d.useContext(rn);if(!e)throw new Error("DatePicker components must be used within a DatePicker component");return e}function ms({children:e,mode:s="single",value:t,defaultValue:n,onValueChange:a,minDate:o,maxDate:i,disabledDates:u,locale:l}){const c=()=>{if(t!==void 0)return null;if(n){if(s==="single"&&n instanceof Date)return n;if(s==="range"&&typeof n=="object"&&"start"in n)return null}return null},f=()=>t!==void 0?null:n&&s==="range"&&typeof n=="object"&&"start"in n?n:{start:null,end:null},[p,g]=d.useState(c()),[b,v]=d.useState(f()),y=s==="single"?t instanceof Date?t:p:null,C=s==="range"?t&&typeof t=="object"&&"start"in t?t:b:null,N={selectedDate:y,selectedRange:C,mode:s,onDateChange:h=>{s==="single"&&(t===void 0&&g(h),a==null||a(h))},onRangeChange:h=>{s==="range"&&(t===void 0&&v(h),a==null||a(h))},minDate:o,maxDate:i,disabledDates:u,locale:l};return r.jsx(rn.Provider,{value:N,children:e})}function ot(e,s="yyyy-MM-dd"){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return s.replace("yyyy",String(t)).replace("MM",n).replace("dd",a).replace("MM/dd/yyyy",`${n}/${a}/${t}`).replace("dd/MM/yyyy",`${a}/${n}/${t}`)}function Nr(e){if(!e)return null;const s=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(s){const[,a,o,i]=s,u=new Date(parseInt(a),parseInt(o)-1,parseInt(i));if(!isNaN(u.getTime()))return u}const t=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(t){const[,a,o,i]=t,u=new Date(parseInt(i),parseInt(a)-1,parseInt(o));if(!isNaN(u.getTime()))return u}const n=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(n){const[,a,o,i]=n,u=new Date(parseInt(i),parseInt(o)-1,parseInt(a));if(!isNaN(u.getTime()))return u}return null}function ks(u){var l=u,{placeholder:e="Select date",format:s="yyyy-MM-dd",showCalendarButton:t=!0,"aria-label":n,onFocus:a,className:o=""}=l,i=B(l,["placeholder","format","showCalendarButton","aria-label","onFocus","className"]);const{selectedDate:c,selectedRange:f,mode:p,onDateChange:g}=nn(),[b,v]=d.useState(""),[y,C]=d.useState(!1),x=d.useRef(null);d.useEffect(()=>{p==="single"&&c?v(ot(c,s)):p==="range"&&f?f.start&&f.end?v(`${ot(f.start,s)} - ${ot(f.end,s)}`):f.start?v(ot(f.start,s)):v(""):v("")},[c,f,p,s]);const w=k=>{const S=k.target.value;if(v(S),p==="single"){const R=Nr(S);g(R)}},N=()=>{if(C(!1),b&&p==="single"){const k=Nr(b);k&&v(ot(k,s))}},h=()=>{var k;(k=x.current)==null||k.focus()};return r.jsx("div",L(D({className:`relative ${o}`},i),{children:r.jsx(O.Input,{ref:x,type:"text",value:b,onChange:w,onFocus:()=>{C(!0),a==null||a()},onBlur:N,placeholder:e,"aria-label":n||e,rightIcon:t?r.jsx(O.Button,{variant:"iconOnly",size:"sm",onClick:h,"aria-label":"Open calendar",type:"button",children:r.jsx(co,{className:"h-4 w-4"})}):void 0})}))}function yi(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function wi(e){return new Date(e.getFullYear(),e.getMonth(),1).getDay()}function Ke(e,s){return!e||!s?!1:e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth()&&e.getDate()===s.getDate()}function Ci(e,s){return e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth()}function ji(e,s,t){if(!s||!t)return!1;const n=e.getTime();return n>=s.getTime()&&n<=t.getTime()}function $r(e,s,t,n){return!!(s&&e<s||t&&e>t||n!=null&&n.some(a=>Ke(e,a)))}const ki=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Si=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ss(a){var o=a,{month:e,onMonthChange:s,className:t=""}=o,n=B(o,["month","onMonthChange","className"]);const{selectedDate:i,selectedRange:u,mode:l,onDateChange:c,onRangeChange:f,minDate:p,maxDate:g,disabledDates:b}=nn(),[v,y]=d.useState(e||i||(u==null?void 0:u.start)||new Date),C=d.useRef(null),[x,w]=d.useState(null);d.useEffect(()=>{e&&y(e)},[e]);const N=yi(v),h=wi(v),k=[];for(let E=0;E<h;E++)k.push(null);for(let E=1;E<=N;E++)k.push(new Date(v.getFullYear(),v.getMonth(),E));const S=E=>{if(!$r(E,p,g,b)){if(l==="single")c(E);else if(l==="range"){const T=u||{start:null,end:null};!T.start||T.start&&T.end?f({start:E,end:null}):T.start&&!T.end&&(E<T.start?f({start:E,end:T.start}):f({start:T.start,end:E}))}}},R=()=>{const E=new Date(v.getFullYear(),v.getMonth()-1,1);y(E),s==null||s(E)},j=()=>{const E=new Date(v.getFullYear(),v.getMonth()+1,1);y(E),s==null||s(E)},$=(E,T)=>{let I=null;switch(E.key){case"ArrowLeft":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth(),T.getDate()-1);break;case"ArrowRight":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth(),T.getDate()+1);break;case"ArrowUp":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth(),T.getDate()-7);break;case"ArrowDown":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth(),T.getDate()+7);break;case"Home":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth(),1);break;case"End":E.preventDefault(),I=new Date(T.getFullYear(),T.getMonth()+1,0);break;case"Enter":case" ":E.preventDefault(),S(T);return}I&&(Ci(I,v)||y(new Date(I.getFullYear(),I.getMonth(),1)),w(I))};return r.jsxs("div",L(D({ref:C,className:`p-4 ${t}`,role:"grid","aria-label":"Calendar"},n),{children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx(O.Button,{variant:"iconOnly",size:"sm",onClick:R,"aria-label":"Previous month",children:r.jsx(it,{className:"h-4 w-4"})}),r.jsxs("div",{className:"text-sm font-semibold",children:[Si[v.getMonth()]," ",v.getFullYear()]}),r.jsx(O.Button,{variant:"iconOnly",size:"sm",onClick:j,"aria-label":"Next month",children:r.jsx(Pe,{className:"h-4 w-4"})})]}),r.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:ki.map(E=>r.jsx("div",{className:"text-center text-xs font-medium text-gray-500 py-1",children:E},E))}),r.jsx("div",{className:"grid grid-cols-7 gap-1",children:k.map((E,T)=>{if(!E)return r.jsx("div",{className:"aspect-square"},`empty-${T}`);const I=l==="single"?Ke(E,i):Ke(E,(u==null?void 0:u.start)||null)||Ke(E,(u==null?void 0:u.end)||null),_=l==="range"&&u?ji(E,u.start,u.end):!1,F=$r(E,p,g,b),P=Ke(E,new Date),K=x&&Ke(E,x);return r.jsx("button",{type:"button",onClick:()=>S(E),onKeyDown:q=>$(q,E),disabled:F,className:`
178
- aspect-square
179
- text-sm
180
- ${m.getRadiusClass("md")}
181
- transition-colors
182
- focus:outline-none
183
- focus:ring-2
184
- focus:ring-offset-1
185
- ${F?"text-gray-300 cursor-not-allowed":I?"bg-surface-brand text-white font-semibold":_?"bg-indigo-400 text-fg-brand":P?"border-2 border-indigo-500 font-semibold":K?"bg-indigo-400":"hover:bg-gray-100"}
186
- `,"aria-label":E.toDateString(),"aria-selected":I,"aria-disabled":F,children:E.getDate()},E.toISOString())})})]}))}function Mt({children:e,mode:s="single",value:t,defaultValue:n,onValueChange:a,minDate:o,maxDate:i,disabledDates:u,placeholder:l,format:c,showCalendarButton:f=!0,"aria-label":p,className:g=""}){const[b,v]=d.useState(!1),y=d.useRef(null),C=d.useRef(null);return d.useEffect(()=>{if(!b)return;const x=w=>{var S,R,j,$;const N=w.target,h=(R=(S=y.current)==null?void 0:S.contains(N))!=null?R:!1,k=($=(j=C.current)==null?void 0:j.contains(N))!=null?$:!1;!h&&!k&&v(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[b]),d.useEffect(()=>{if(!b)return;const x=w=>{w.key==="Escape"&&v(!1)};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[b]),e?r.jsx(ms,{mode:s,value:t,defaultValue:n,onValueChange:a,minDate:o,maxDate:i,disabledDates:u,children:e}):r.jsx("div",{ref:y,className:`relative ${g}`,children:r.jsxs(ms,{mode:s,value:t,defaultValue:n,onValueChange:a,minDate:o,maxDate:i,disabledDates:u,children:[r.jsx(ks,{placeholder:l,format:c,showCalendarButton:f,"aria-label":p,onFocus:()=>v(!0)}),b&&r.jsx(an,{containerRef:y,popupRef:C,children:r.jsx(Ss,{})})]})})}function an({children:e,containerRef:s,popupRef:t}){const n=d.useRef(null),a=t||n,[o,i]=d.useState(null);if(d.useEffect(()=>{if(s!=null&&s.current){const l=s.current.getBoundingClientRect();i({top:l.bottom+window.scrollY+8,left:l.left+window.scrollX})}},[s]),!o)return null;const u=r.jsx("div",{ref:a,className:`
187
- fixed ${m.getZIndexClass("popover")}
188
- bg-white
189
- ${m.getRadiusClass("lg")}
190
- ${m.getShadowClass("xl")}
191
- border border-gray-200
192
- `,role:"dialog","aria-modal":"false","aria-label":"Date picker calendar",style:{top:`${o.top}px`,left:`${o.left}px`},children:e});return typeof window!="undefined"?$e.createPortal(u,document.body):u}Mt.Input=ks;Mt.Calendar=Ss;Mt.Popup=an;const Ni=Mt,Ft=d.createContext(void 0);function _t(){const e=d.useContext(Ft);if(e===void 0)throw new Error("useTabsContext must be used within a Tabs component");return e}function $i(){return d.useContext(Ft)}function on({defaultValue:e,value:s,onValueChange:t,orientation:n="horizontal",activationMode:a="automatic",children:o}){const[i,u]=d.useState(e||""),l=s!==void 0,c=l?s:i,f=d.useCallback(g=>{l||u(g),t==null||t(g)},[l,t]),p={value:c,onValueChange:f,orientation:n,activationMode:a};return r.jsx(Ft.Provider,{value:p,children:o})}function ln(a){var o=a,{children:e,className:s="",variant:t="default"}=o,n=B(o,["children","className","variant"]);const{orientation:i}=_t(),u=d.useRef(null);d.useEffect(()=>{const f=u.current;if(!f)return;const p=g=>{var C;const b=Array.from(f.querySelectorAll('[role="tab"]:not([disabled])')),v=b.findIndex(x=>x===document.activeElement);if(v===-1)return;let y=v;i==="horizontal"?g.key==="ArrowRight"?(g.preventDefault(),y=(v+1)%b.length):g.key==="ArrowLeft"&&(g.preventDefault(),y=(v-1+b.length)%b.length):g.key==="ArrowDown"?(g.preventDefault(),y=(v+1)%b.length):g.key==="ArrowUp"&&(g.preventDefault(),y=(v-1+b.length)%b.length),g.key==="Home"?(g.preventDefault(),y=0):g.key==="End"&&(g.preventDefault(),y=b.length-1),y!==v&&((C=b[y])==null||C.focus())};return f.addEventListener("keydown",p),()=>f.removeEventListener("keydown",p)},[i]);const l=t==="compact"&&i==="vertical"?"flex":"inline-flex",c=M(i==="vertical"?"flex-col":"flex-row",m.getSpacingClass("xs","gap"));return r.jsx("div",L(D({ref:u,role:"tablist","aria-orientation":i,className:M(l,c,m.getSpacingClass("xs","p"),m.getColorClass("neutral","light","bg"),m.getRadiusClass("md"),s)},n),{children:e}))}function cn(u){var l=u,{value:e,children:s,disabled:t=!1,className:n="",onClick:a,onKeyDown:o}=l,i=B(l,["value","children","disabled","className","onClick","onKeyDown"]);const{value:c,onValueChange:f,orientation:p,activationMode:g}=_t(),b=c===e,v=x=>{t||((g==="automatic"||b)&&f(e),a==null||a(x))},y=x=>{var w;g==="automatic"&&!t&&!b&&f(e),(w=i.onFocus)==null||w.call(i,x)},C=x=>{if(!t&&!(x.key==="ArrowRight"||x.key==="ArrowLeft"||x.key==="ArrowDown"||x.key==="ArrowUp"||x.key==="Home"||x.key==="End")){if(g==="manual"&&(x.key==="Enter"||x.key===" ")){x.preventDefault(),f(e);return}o==null||o(x)}};return r.jsx("button",L(D({type:"button",role:"tab","aria-selected":b,"aria-controls":`tabpanel-${e}`,id:`tab-${e}`,tabIndex:t?-1:b?0:-1,disabled:t,onClick:v,onFocus:y,onKeyDown:C,className:M("inline-flex","items-center","justify-center",m.getSpacingClass("sm","px"),m.getSpacingClass("xs","py"),m.getTypographySize("bodySmall"),m.getTypographyWeight("label"),"transition-colors","focus:outline-none","focus:ring-2","focus:border-line-focus".replace("focus:border-","focus:ring-"),"focus:ring-offset-2",m.getRadiusClass("sm"),b?M("bg-surface-brand","text-fg-inverse"):M(m.getColorClass("neutral","light","text"),m.getHoverColorClass("neutral","DEFAULT","bg")),t?"opacity-50 cursor-not-allowed":"cursor-pointer",n)},i),{children:s}))}function dn(o){var i=o,{value:e,children:s,forceMount:t=!1,className:n=""}=i,a=B(i,["value","children","forceMount","className"]);const{value:u}=_t(),l=u===e;return!l&&!t?null:r.jsx("div",L(D({role:"tabpanel",id:`tabpanel-${e}`,"aria-labelledby":`tab-${e}`,hidden:!l,className:`
193
- mt-2
194
- focus:outline-none
195
- ${n}
196
- `},a),{children:s}))}function zt(t){var n=t,{children:e}=n,s=B(n,["children"]);return r.jsx(on,L(D({},s),{children:e}))}zt.List=ln;zt.Trigger=cn;zt.Content=dn;const Ei=zt,Lt=d.forwardRef(function(g,p){var b=g,{onSearch:s,onClear:t,loading:n=!1,showClearButton:a=!0,debounceMs:o=300,value:i,defaultValue:u,onChange:l,className:c=""}=b,f=B(b,["onSearch","onClear","loading","showClearButton","debounceMs","value","defaultValue","onChange","className"]);const[v,y]=d.useState(typeof u=="string"?u:""),[C,x]=d.useState(null),w=i!==void 0,N=w?i:v,h=N!=null&&String(N).length>0,k=j=>{const $=j.target.value;w||y($),l==null||l(j),C&&clearTimeout(C);const E=setTimeout(()=>{s==null||s($)},o);x(E)},S=()=>{w||y("");const j={target:{value:""},currentTarget:{value:""}};l==null||l(j),t==null||t(),s==null||s("")},R=j=>{var $;j.key==="Enter"&&s&&s(String(N||"")),($=f.onKeyDown)==null||$.call(f,j)};return r.jsx("div",{className:M("relative",c),children:r.jsx(O.Input,L(D({ref:p},f),{type:"search",value:N,onChange:k,onKeyDown:R,leftIcon:n?r.jsx("div",{className:"animate-spin",children:r.jsx(us,{className:"h-4 w-4"})}):r.jsx(us,{className:"h-4 w-4"}),rightIcon:a&&h&&!n?r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:S,className:"h-auto p-1","aria-label":"Clear search",children:r.jsx(fe,{className:"h-4 w-4"})}):void 0,className:M(m.getSpacingClass("lg","pr"))}))})});Lt.displayName="SearchInput";const Ns=d.forwardRef(function({option:s,isHighlighted:t,onSelect:n},a){const o=()=>{s.disabled||n(s)};return r.jsxs("div",{ref:a,role:"option","aria-selected":t,"aria-disabled":s.disabled,onClick:o,className:`
197
- flex
198
- items-center
199
- gap-2
200
- ${m.getSpacingClass("sm","px")}
201
- ${m.getSpacingClass("sm","py")}
202
- text-sm
203
- cursor-pointer
204
- transition-colors
205
- ${t?"bg-gray-100":""}
206
- ${s.disabled?"opacity-50 cursor-not-allowed":"hover:bg-gray-50"}
207
- `,children:[s.icon&&r.jsx("span",{className:"flex-shrink-0",children:s.icon}),r.jsx("span",{className:"flex-1",children:s.label})]})});Ns.displayName="AutocompleteOption";const Pt=d.forwardRef(function({options:s,highlightedIndex:t,onSelect:n,loading:a=!1,emptyMessage:o="No options found",containerRef:i,showSelectAll:u=!1,allSelected:l=!1,onSelectAll:c,onDeselectAll:f},p){const[g,b]=d.useState({top:0,left:0,width:0});d.useEffect(()=>{if(i.current){const y=i.current.getBoundingClientRect();b({top:y.bottom+window.scrollY+4,left:y.left+window.scrollX,width:y.width})}},[i]);const v=r.jsx("div",{ref:p,role:"listbox",className:`
208
- absolute
209
- ${m.getZIndexClass("popover")}
210
- bg-white
211
- ${m.getRadiusClass("md")}
212
- ${m.getShadowClass("lg")}
213
- border
214
- border-gray-200
215
- max-h-60
216
- overflow-y-auto
217
- ${m.getSpacingClass("xs","py")}
218
- `,style:{top:`${g.top}px`,left:`${g.left}px`,width:`${g.width}px`},children:a?r.jsx("div",{className:`
219
- ${m.getSpacingClass("md","p")}
220
- text-sm
221
- text-gray-500
222
- text-center
223
- `,children:"Loading..."}):s.length===0?r.jsx("div",{className:`
224
- ${m.getSpacingClass("md","p")}
225
- text-sm
226
- text-gray-500
227
- text-center
228
- `,children:o}):r.jsxs(r.Fragment,{children:[u&&r.jsx("div",{className:`
229
- ${m.getSpacingClass("sm","px")}
230
- ${m.getSpacingClass("sm","py")}
231
- text-sm
232
- font-medium
233
- cursor-pointer
234
- hover:bg-gray-50
235
- border-b
236
- border-gray-200
237
- `,onClick:l?f:c,children:l?"Deselect All":"Select All"}),s.map((y,C)=>r.jsx(Ns,{option:y,isHighlighted:C===t,onSelect:n},y.value))]})});return typeof window!="undefined"?$e.createPortal(v,document.body):null});Pt.displayName="AutocompleteList";const un=d.forwardRef(function({options:s,value:t,defaultValue:n,onChange:a,onSelect:o,placeholder:i="Type to search...",loading:u=!1,disabled:l=!1,emptyMessage:c="No options found",debounceMs:f=300,filterOptions:p,className:g="",inputClassName:b="",size:v="md"},y){const[C,x]=d.useState(typeof n=="string"?n:""),[w,N]=d.useState(!1),[h,k]=d.useState(-1),[S,R]=d.useState(""),j=d.useRef(null),$=d.useRef(null),E=d.useRef(null),T=d.useRef(null),I=t!==void 0,_=I?t:C,P=S.trim()?p?p(s,S):s.filter(A=>A.label.toLowerCase().includes(S.toLowerCase())):s,K=P.length>0,q=A=>{const V=A.target.value;R(V),I||x(V),a==null||a(V),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{N(!0),k(-1)},f)},W=A=>{var V;A.disabled||(I||x(A.value),R(A.label),N(!1),k(-1),a==null||a(A.value),o==null||o(A),(V=$.current)==null||V.focus())},ne=A=>{if(!w||P.length===0){(A.key==="ArrowDown"||A.key==="Enter")&&N(!0);return}switch(A.key){case"ArrowDown":A.preventDefault(),k(V=>V<P.length-1?V+1:0);break;case"ArrowUp":A.preventDefault(),k(V=>V>0?V-1:P.length-1);break;case"Enter":A.preventDefault(),h>=0&&h<P.length&&W(P[h]);break;case"Escape":A.preventDefault(),N(!1),k(-1);break}};d.useEffect(()=>{if(!w)return;const A=V=>{j.current&&!j.current.contains(V.target)&&(N(!1),k(-1))};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[w]),d.useEffect(()=>{if(h>=0&&E.current){const A=E.current.querySelectorAll('[role="option"]');A[h]&&typeof A[h].scrollIntoView=="function"&&A[h].scrollIntoView({block:"nearest",behavior:"smooth"})}},[h]),d.useEffect(()=>{if(_){const A=s.find(V=>V.value===_);R(A?A.label:_)}else R("")},[_,s]);const se=w&&(K||u||c);return r.jsxs("div",{ref:j,className:`relative ${g}`,children:[r.jsx(O.Input,{ref:$||y,value:S,onChange:q,onKeyDown:ne,onFocus:()=>N(!0),placeholder:i,disabled:l,size:v,rightIcon:u?r.jsx(Ur,{className:"h-4 w-4 animate-spin"}):r.jsx(vs,{className:`h-4 w-4 transition-transform ${w?"rotate-180":""}`}),className:b}),se&&r.jsx(Pt,{ref:E,options:P,highlightedIndex:h,onSelect:W,loading:u,emptyMessage:c,containerRef:j})]})});un.displayName="Autocomplete";const fn=d.forwardRef(function({options:s,value:t,defaultValue:n=[],onChange:a,onSelect:o,placeholder:i="Select options...",loading:u=!1,disabled:l=!1,emptyMessage:c="No options found",maxSelected:f,showSelectAll:p=!1,className:g="",inputClassName:b="",size:v="md"},y){const[C,x]=d.useState(n),[w,N]=d.useState(!1),[h,k]=d.useState(-1),[S,R]=d.useState(""),j=d.useRef(null),$=d.useRef(null),E=d.useRef(null),T=t!==void 0,I=T?t:C,_=s.filter(z=>I.includes(z.value)),P=(()=>{let z=s;return S.trim()&&(z=s.filter(G=>G.label.toLowerCase().includes(S.toLowerCase()))),z})(),K=P.length>0,q=z=>{const G=z.target.value;R(G),N(!0),k(-1)},W=z=>{if(z.disabled||f&&I.length>=f&&!I.includes(z.value))return;const G=I.includes(z.value)?I.filter(Q=>Q!==z.value):[...I,z.value];T||x(G),a==null||a(G),o==null||o(s.filter(Q=>G.includes(Q.value))),R("")},ne=()=>{const z=P.filter(Q=>!Q.disabled).map(Q=>Q.value),G=[...new Set([...I,...z])];T||x(G),a==null||a(G),o==null||o(s.filter(Q=>G.includes(Q.value)))},se=()=>{const z=P.map(Q=>Q.value),G=I.filter(Q=>!z.includes(Q));T||x(G),a==null||a(G),o==null||o(s.filter(Q=>G.includes(Q.value)))},A=z=>{const G=I.filter(Q=>Q!==z);T||x(G),a==null||a(G),o==null||o(s.filter(Q=>G.includes(Q.value)))},V=z=>{if(!w||P.length===0){(z.key==="ArrowDown"||z.key==="Enter")&&N(!0),z.key==="Backspace"&&S===""&&I.length>0&&A(I[I.length-1]);return}switch(z.key){case"ArrowDown":z.preventDefault(),k(G=>G<P.length-1?G+1:0);break;case"ArrowUp":z.preventDefault(),k(G=>G>0?G-1:P.length-1);break;case"Enter":z.preventDefault(),h>=0&&h<P.length&&W(P[h]);break;case"Escape":z.preventDefault(),N(!1),k(-1);break}};d.useEffect(()=>{if(!w)return;const z=G=>{j.current&&!j.current.contains(G.target)&&(N(!1),k(-1),R(""))};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[w]);const Y=P.filter(z=>!z.disabled).every(z=>I.includes(z.value)),Z=w&&(K||u||c),ie="border-line-brand",ee=m.getColorClass("primary","DEFAULT","border").replace("border-","ring-");return r.jsxs("div",{ref:j,className:M("relative",g),children:[r.jsxs("div",{className:M("flex","flex-wrap",m.getSpacingClass("sm","gap"),m.getSpacingClass("sm","p"),"border",m.getColorClass("neutral","DEFAULT","border"),m.getRadiusClass("md"),"min-h-10","focus-within:outline-none","focus-within:ring-2","focus-within:ring-offset-2",`focus-within:${ie}`,`focus-within:${ee}`),children:[_.map(z=>r.jsx(O.Chip,{onRemove:()=>A(z.value),size:v==="sm"?"sm":v==="lg"?"lg":"md",children:z.label},z.value)),r.jsx("input",{ref:z=>{typeof y=="function"?y(z):y&&(y.current=z),$.current=z},type:"text",value:S,onChange:q,onKeyDown:V,onFocus:()=>N(!0),placeholder:I.length===0?i:"",disabled:l,className:M("flex-1","min-w-32","outline-none","bg-transparent",b)})]}),Z&&r.jsx(Pt,{ref:E,options:P.map(z=>L(D({},z),{icon:I.includes(z.value)?r.jsx(ds,{className:M("h-4","w-4","text-fg-brand")}):z.icon})),highlightedIndex:h,onSelect:W,loading:u,emptyMessage:c,containerRef:j,showSelectAll:p&&P.length>0,allSelected:Y,onSelectAll:ne,onDeselectAll:se})]})});fn.displayName="MultiSelect";function Ti({value:e,defaultValue:s=0,max:t=5,size:n="md",variant:a="filled",readOnly:o=!1,allowHalf:i=!1,showValue:u=!1,onChange:l,onHover:c,className:f="",icon:p,emptyIcon:g}){const[b,v]=d.useState(s),[y,C]=d.useState(null),x=e!==void 0,w=y!=null?y:x?e:b,N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},h=j=>{o||(x||v(j),l==null||l(j))},k=j=>{o||(C(j),c==null||c(j))},S=()=>{o||C(null)},R=j=>{const $=j+1,E=i&&w>=$-.5&&w<$,T=w>=$,I=M(N[n],m.getAnimationClass("base"),!o&&"cursor-pointer",T||E?"text-fg-warning":m.getColorClass("neutral","light","text")),_=p||r.jsx(Ue,{className:I,fill:T?"currentColor":"none"}),F=g||r.jsx(Ue,{className:I,fill:"none"});return r.jsx("span",{className:"relative inline-block",onClick:()=>h($),onMouseEnter:()=>k($),onMouseLeave:S,role:o?void 0:"button",tabIndex:o?void 0:0,"aria-label":`Rate ${$} out of ${t}`,onKeyDown:P=>{!o&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),h($))},children:E?r.jsxs("span",{className:"relative inline-block",children:[r.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:"50%"},children:a==="filled"?r.jsx(Ue,{className:I,fill:"currentColor"}):_}),a==="filled"?r.jsx(Ue,{className:I,fill:"none"}):F]}):T?a==="filled"?r.jsx(Ue,{className:I,fill:"currentColor"}):_:a==="filled"?r.jsx(Ue,{className:I,fill:"none"}):F},j)};return r.jsxs("div",{className:M("inline-flex","items-center",m.getSpacingClass("xs","gap"),f),children:[r.jsx("div",{className:M("flex","items-center"),role:o?"img":void 0,"aria-label":o?`Rating: ${w} out of ${t}`:void 0,children:Array.from({length:t},(j,$)=>R($))}),u&&r.jsxs("span",{className:M(m.getSpacingClass("sm","ml"),m.getTypographySizeFromFontSize("sm"),m.getColorClass("neutral","DEFAULT","text")),children:[w.toFixed(i?1:0),"/",t]})]})}function Ai({accept:e,multiple:s=!1,maxSize:t,maxFiles:n,onFilesChange:a,onFileRemove:o,showPreview:i=!0,showProgress:u=!1,disabled:l=!1,className:c="",label:f,description:p}){const[g,b]=d.useState([]),[v,y]=d.useState(!1),C=d.useRef(null),x=T=>{if(T===0)return"0 Bytes";const I=1024,_=["Bytes","KB","MB","GB"],F=Math.floor(Math.log(T)/Math.log(I));return Math.round(T/Math.pow(I,F)*100)/100+" "+_[F]},w=T=>t&&T.size>t?`File size exceeds ${x(t)}`:null,N=T=>{const I=Array.from(T),_=[];return I.forEach(F=>{const P=w(F),K=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,q={file:F,id:K,error:P,progress:u?0:void 0};if(i&&F.type.startsWith("image/")){const W=new FileReader;W.onload=ne=>{b(se=>se.map(A=>{var V;return A.id===K?L(D({},A),{preview:(V=ne.target)==null?void 0:V.result}):A}))},W.readAsDataURL(F)}_.push(q)}),_},h=T=>{const I=s?[...g,...T]:T,_=n?I.slice(0,n):I;b(_),a==null||a(_)},k=T=>{if(T.preventDefault(),y(!1),l)return;const I=T.dataTransfer.files;if(I.length>0){const _=N(I);h(_)}},S=T=>{T.preventDefault(),l||y(!0)},R=T=>{T.preventDefault(),y(!1)},j=T=>{if(T.target.files&&T.target.files.length>0){const I=N(T.target.files);h(I)}C.current&&(C.current.value="")},$=T=>{const I=g.filter(_=>_.id!==T);b(I),a==null||a(I),o==null||o(T)},E=()=>{var T;l||(T=C.current)==null||T.click()};return r.jsxs("div",{className:M(m.getSpacingClass("lg","gap"),"flex","flex-col",c),children:[(f||p)&&r.jsxs("div",{children:[f&&r.jsx("label",{className:M("block",m.getTypographySizeFromFontSize("sm"),m.getTypographyWeightFromFontWeight("medium"),m.getColorClass("neutral","dark","text"),m.getSpacingClass("xs","mb")),children:f}),p&&r.jsx("p",{className:M(m.getTypographySizeFromFontSize("sm"),m.getColorClass("neutral","DEFAULT","text")),children:p})]}),r.jsxs("div",{onDrop:k,onDragOver:S,onDragLeave:R,onClick:E,className:M("relative","border-2","border-dashed",v?"border-line-brand":m.getColorClass("neutral","DEFAULT","border"),m.getRadiusClass("lg"),m.getSpacingClass("lg","p"),"text-center","cursor-pointer",m.getAnimationClass("base"),"focus:border-line-focus",l?"opacity-50 cursor-not-allowed":M(m.getHoverColorClass("neutral","dark","border"),"focus:outline-none","focus:ring-2","focus:ring-offset-2")),role:"button",tabIndex:l?-1:0,"aria-label":"Upload files","aria-disabled":l,children:[r.jsx("input",{ref:C,type:"file",accept:e,multiple:s,onChange:j,disabled:l,className:"hidden"}),r.jsxs("div",{className:M("flex","flex-col","items-center",m.getSpacingClass("sm","gap")),children:[r.jsx(Yo,{className:M("h-8","w-8",v?"text-fg-brand":m.getColorClass("neutral","DEFAULT","text"))}),r.jsxs("div",{children:[r.jsx("span",{className:M(m.getTypographySizeFromFontSize("sm"),m.getTypographyWeightFromFontWeight("medium"),m.getColorClass("neutral","dark","text")),children:v?"Drop files here":"Click to upload or drag and drop"}),e&&r.jsxs("p",{className:M(m.getTypographySizeFromFontSize("xs"),m.getColorClass("neutral","DEFAULT","text"),m.getSpacingClass("xs","mt")),children:["Accepted: ",e]}),t&&r.jsxs("p",{className:M(m.getTypographySizeFromFontSize("xs"),m.getColorClass("neutral","DEFAULT","text")),children:["Max size: ",x(t)]})]})]})]}),g.length>0&&r.jsx("div",{className:M("flex","flex-col",m.getSpacingClass("sm","gap")),children:g.map(T=>r.jsxs("div",{className:M("flex","items-center",m.getSpacingClass("md","gap"),m.getSpacingClass("base","p"),"border",m.getColorClass("neutral","DEFAULT","border"),m.getRadiusClass("md"),T.error?"bg-error-bg":m.getColorClass("neutral","light","bg")),children:[i&&T.preview?r.jsx("img",{src:T.preview,alt:T.file.name,className:M("w-12","h-12","object-cover",m.getRadiusClass("md"))}):r.jsx(Ao,{className:M("h-8","w-8",m.getColorClass("neutral","DEFAULT","text"))}),r.jsxs("div",{className:M("flex-1","min-w-0"),children:[r.jsx("p",{className:M(m.getTypographySizeFromFontSize("sm"),m.getTypographyWeightFromFontWeight("medium"),m.getColorClass("neutral","dark","text"),"truncate"),children:T.file.name}),r.jsx("p",{className:M(m.getTypographySizeFromFontSize("xs"),m.getColorClass("neutral","DEFAULT","text")),children:x(T.file.size)}),T.error&&r.jsxs("div",{className:M("flex","items-center",m.getSpacingClass("xs","gap"),m.getSpacingClass("xs","mt")),children:[r.jsx(ys,{className:M("h-3","w-3","text-fg-error")}),r.jsx("span",{className:M(m.getTypographySizeFromFontSize("xs"),"text-fg-error"),children:T.error})]}),u&&T.progress!==void 0&&r.jsx("div",{className:M(m.getSpacingClass("sm","mt")),children:r.jsx(O.Progress,{value:T.progress,size:"sm"})})]}),!T.error&&!u&&r.jsx(St,{className:M("h-5","w-5","text-fg-success")}),r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:I=>{I.stopPropagation(),$(T.id)},className:"h-auto p-1","aria-label":`Remove ${T.file.name}`,children:r.jsx(fe,{className:"h-4 w-4"})})]},T.id))})]})}function $s({trigger:e,children:s,open:t,defaultOpen:n=!1,onOpenChange:a,placement:o="bottom",showCloseButton:i=!1,title:u,closeOnClickOutside:l=!0,closeOnEscape:c=!0,className:f="",triggerClassName:p="",contentClassName:g=""}){const[b,v]=d.useState(n),y=d.useRef(null),C=d.useRef(null),[x,w]=d.useState({top:0,left:0}),N=t!==void 0,h=N?t:b,k=d.useCallback(()=>{if(!y.current||!C.current)return;const $=y.current.getBoundingClientRect(),E=C.current.getBoundingClientRect(),T=window.scrollY,I=window.scrollX;let _=0,F=0;o.startsWith("top")?(_=$.top+T-E.height-8,o==="top-start"?F=$.left+I:o==="top-end"?F=$.right+I-E.width:F=$.left+I+($.width-E.width)/2):o.startsWith("bottom")?(_=$.bottom+T+8,o==="bottom-start"?F=$.left+I:o==="bottom-end"?F=$.right+I-E.width:F=$.left+I+($.width-E.width)/2):o.startsWith("left")?(F=$.left+I-E.width-8,o==="left-start"?_=$.top+T:o==="left-end"?_=$.bottom+T-E.height:_=$.top+T+($.height-E.height)/2):o.startsWith("right")&&(F=$.right+I+8,o==="right-start"?_=$.top+T:o==="right-end"?_=$.bottom+T-E.height:_=$.top+T+($.height-E.height)/2);const P=8;_=Math.max(P,Math.min(_,window.innerHeight+T-E.height-P)),F=Math.max(P,Math.min(F,window.innerWidth+I-E.width-P)),w({top:_,left:F})},[o]);d.useEffect(()=>{if(h){k();const $=()=>k(),E=()=>k();return window.addEventListener("resize",$),window.addEventListener("scroll",E,!0),()=>{window.removeEventListener("resize",$),window.removeEventListener("scroll",E,!0)}}},[h,o,k]),d.useEffect(()=>{h&&C.current&&setTimeout(k,0)},[h,k]);const S=d.useCallback($=>{N||v($),a==null||a($)},[N,a]),R=d.useCallback(()=>{S(!1)},[S]);d.useEffect(()=>{if(h&&c){const $=E=>{E.key==="Escape"&&R()};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)}},[h,c,R]),d.useEffect(()=>{if(h&&l){const $=E=>{C.current&&y.current&&!C.current.contains(E.target)&&!y.current.contains(E.target)&&R()};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)}},[h,l,R]);const j=h?r.jsxs("div",{ref:C,className:`
238
- absolute
239
- ${m.getZIndexClass("popover")}
240
- bg-white
241
- ${m.getRadiusClass("lg")}
242
- ${m.getShadowClass("lg")}
243
- border
244
- ${m.getColorClass("neutral","DEFAULT","border")}
245
- min-w-48
246
- max-w-96
247
- ${m.getAnimationClass("base")}
248
- ${g}
249
- `,style:{top:`${x.top}px`,left:`${x.left}px`},role:"dialog","aria-modal":"false",children:[(u||i)&&r.jsxs("div",{className:`
250
- flex
251
- items-center
252
- justify-between
253
- ${m.getSpacingClass("base","px")}
254
- ${m.getSpacingClass("md","py")}
255
- border-b
256
- ${m.getColorClass("neutral","DEFAULT","border")}
257
- `,children:[u&&r.jsx("h3",{className:`${m.getTypographySize("bodySmall")} ${m.getTypographyWeight("h5")} ${m.getColorClass("neutral","dark","text")}`,children:u}),i&&r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:R,className:"h-auto p-1","aria-label":"Close popover",children:r.jsx(fe,{className:"h-4 w-4"})})]}),r.jsx("div",{className:`
258
- ${m.getSpacingClass("base","p")}
259
- ${u||i?"":m.getSpacingClass("md","p")}
260
- `,children:s})]}):null;return r.jsxs("div",{className:`inline-block ${f}`,children:[r.jsx("div",{ref:y,className:p,onClick:()=>S(!h),children:e}),typeof window!="undefined"&&$e.createPortal(j,document.body)]})}function Ri({value:e,defaultValue:s,format:t="24h",onChange:n,disabled:a=!1,label:o,error:i=!1,helperText:u,className:l=""}){const[c,f]=d.useState(s||""),[p,g]=d.useState(12),[b,v]=d.useState(0),[y,C]=d.useState("AM"),x=e!==void 0,w=x?e:c,N=d.useCallback(_=>{if(!_)return{hours:12,minutes:0,amPm:"AM"};if(t==="24h"){const[F,P]=_.split(":").map(Number);return{hours:F||12,minutes:P||0,amPm:"AM"}}else{const F=_.match(/(\d+):(\d+)\s*(AM|PM)/i);return F?{hours:parseInt(F[1]),minutes:parseInt(F[2]),amPm:F[3].toUpperCase()}:{hours:12,minutes:0,amPm:"AM"}}},[t]),h=(_,F,P)=>{if(t==="24h")return`${String(_).padStart(2,"0")}:${String(F).padStart(2,"0")}`;{const K=P==="PM"&&_!==12?_+12:P==="AM"&&_===12?0:_;return`${String(K===0?12:K>12?K-12:K).padStart(2,"0")}:${String(F).padStart(2,"0")} ${P||"AM"}`}};d.useEffect(()=>{if(w){const _=N(w);g(_.hours),v(_.minutes),C(_.amPm)}},[w,N]);const k=_=>{const F=t==="24h"?Math.max(0,Math.min(23,_)):Math.max(1,Math.min(12,_));g(F);const P=h(F,b,t==="12h"?y:void 0);x||f(P),n==null||n(P)},S=_=>{const F=Math.max(0,Math.min(59,_));v(F);const P=h(p,F,t==="12h"?y:void 0);x||f(P),n==null||n(P)},R=()=>{const _=y==="AM"?"PM":"AM";C(_);const F=h(p,b,_);x||f(F),n==null||n(F)},j=()=>{if(t==="24h")k((p+1)%24);else{const _=p===12?1:p+1;k(_)}},$=()=>{if(t==="24h")k(p===0?23:p-1);else{const _=p===1?12:p-1;k(_)}},E=()=>{S((b+1)%60)},T=()=>{S(b===0?59:b-1)},I=r.jsx("div",{className:`${m.getSpacingClass("base","p")} min-w-48`,children:r.jsxs("div",{className:"flex items-center justify-center gap-4",children:[r.jsxs("div",{className:"flex flex-col items-center gap-2",children:[r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:j,disabled:a,"aria-label":"Increment hours",children:"↑"}),r.jsx("div",{className:"text-2xl font-mono font-semibold w-12 text-center",children:String(p).padStart(2,"0")}),r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:$,disabled:a,"aria-label":"Decrement hours",children:"↓"})]}),r.jsx("div",{className:"text-2xl font-semibold",children:":"}),r.jsxs("div",{className:"flex flex-col items-center gap-2",children:[r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:E,disabled:a,"aria-label":"Increment minutes",children:"↑"}),r.jsx("div",{className:"text-2xl font-mono font-semibold w-12 text-center",children:String(b).padStart(2,"0")}),r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:T,disabled:a,"aria-label":"Decrement minutes",children:"↓"})]}),t==="12h"&&r.jsxs("div",{className:"flex flex-col gap-2 ml-2",children:[r.jsx(O.Button,{variant:y==="AM"?"primary":"outline",size:"sm",onClick:()=>R(),disabled:a,children:"AM"}),r.jsx(O.Button,{variant:y==="PM"?"primary":"outline",size:"sm",onClick:()=>R(),disabled:a,children:"PM"})]})]})});return r.jsx("div",{className:l,children:r.jsx($s,{trigger:r.jsx(O.Input,{label:o,value:w||h(p,b,t==="12h"?y:void 0),readOnly:!0,disabled:a,error:i,helperText:u,leftIcon:r.jsx(bo,{className:"h-4 w-4"}),className:"cursor-pointer"}),placement:"bottom-start",showCloseButton:!0,title:"Select Time",children:I})})}function Di({value:e,defaultValue:s="#000000",format:t="hex",onChange:n,presets:a,showInput:o=!0,disabled:i=!1,label:u,className:l=""}){const[c,f]=d.useState(s),[p,g]=d.useState({r:0,g:0,b:0}),b=e!==void 0,v=b?e:c,y=S=>{const R=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(S);return R?{r:parseInt(R[1],16),g:parseInt(R[2],16),b:parseInt(R[3],16)}:{r:0,g:0,b:0}},C=(S,R,j)=>"#"+[S,R,j].map($=>{const E=$.toString(16);return E.length===1?"0"+E:E}).join("");d.useEffect(()=>{if(v){const S=y(v);g(S)}},[v]);const x=S=>{const R=S.target.value;(/^#[0-9A-F]{6}$/i.test(R)||R==="")&&(b||f(R),n==null||n(R),R&&g(y(R)))},w=(S,R)=>{const j=L(D({},p),{[S]:Math.max(0,Math.min(255,R))});g(j);const $=C(j.r,j.g,j.b);b||f($),n==null||n($)},h=a||["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#808080","#ffa500"],k=r.jsxs("div",{className:`${m.getSpacingClass("base","p")} min-w-[280px]`,children:[r.jsx("div",{className:`
261
- w-full
262
- h-32
263
- ${m.getRadiusClass("md")}
264
- ${m.getShadowClass("sm")}
265
- mb-4
266
- border
267
- border-gray-200
268
- `,style:{backgroundColor:v}}),r.jsxs("div",{className:"space-y-3 mb-4",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:["Red: ",p.r]}),r.jsx("input",{type:"range",min:"0",max:"255",value:p.r,onChange:S=>w("r",parseInt(S.target.value)),disabled:i,className:"w-full"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:["Green: ",p.g]}),r.jsx("input",{type:"range",min:"0",max:"255",value:p.g,onChange:S=>w("g",parseInt(S.target.value)),disabled:i,className:"w-full"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:["Blue: ",p.b]}),r.jsx("input",{type:"range",min:"0",max:"255",value:p.b,onChange:S=>w("b",parseInt(S.target.value)),disabled:i,className:"w-full"})]})]}),o&&r.jsx("div",{className:"mb-4",children:r.jsx(O.Input,{label:"Hex",value:v,onChange:x,disabled:i,placeholder:"#000000",className:"font-mono"})}),h.length>0&&r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs font-medium text-gray-700 mb-2",children:"Presets"}),r.jsx("div",{className:"grid grid-cols-10 gap-1",children:h.map((S,R)=>r.jsx("button",{type:"button",onClick:()=>{i||(b||f(S),n==null||n(S),g(y(S)))},disabled:i,className:`
269
- w-6
270
- h-6
271
- ${m.getRadiusClass("sm")}
272
- border
273
- border-gray-300
274
- hover:scale-110
275
- ${m.getShadowClass("sm")}
276
- ${v.toLowerCase()===S.toLowerCase()?"ring-2 ring-offset-1 ring-indigo-500":""}
277
- `,style:{backgroundColor:S},"aria-label":`Select color ${S}`},R))})]})]});return r.jsx("div",{className:l,children:r.jsx($s,{trigger:r.jsxs("div",{className:"flex items-center gap-2",children:[u&&r.jsx("label",{className:"text-sm font-medium text-gray-700",children:u}),r.jsx("div",{className:`
278
- w-10
279
- h-10
280
- ${m.getRadiusClass("md")}
281
- border
282
- border-gray-300
283
- ${m.getShadowClass("sm")}
284
- cursor-pointer
285
- ${i?"opacity-50 cursor-not-allowed":""}
286
- `,style:{backgroundColor:v}}),o&&r.jsx(O.Input,{value:v,onChange:x,disabled:i,placeholder:"#000000",className:"w-24 font-mono"})]}),placement:"bottom-start",showCloseButton:!0,title:"Pick a Color",children:k})})}const mn=d.createContext(void 0);function Ii({children:e,value:s}){return r.jsx(mn.Provider,{value:s,children:e})}function Mi(){const e=d.useContext(mn);if(!e)throw new Error("Drawer components must be used within Drawer");return e}function Es({children:e,className:s="",showCloseButton:t=!1}){const{isOpen:n,closeDrawer:a,position:o,size:i,closeOnOverlayClick:u,closeOnEscape:l}=Mi();if(d.useEffect(()=>{if(n&&l){const g=b=>{b.key==="Escape"&&a()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)}},[n,l,a]),d.useEffect(()=>{if(n)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[n]),!n)return null;const c={sm:o==="left"||o==="right"?"w-64":"h-64",md:o==="left"||o==="right"?"w-96":"h-96",lg:o==="left"||o==="right"?"w-[32rem]":"h-[32rem]",xl:o==="left"||o==="right"?"w-[42rem]":"h-[42rem]",full:o==="left"||o==="right"?"w-full":"h-full"},f={left:"left-0 top-0 bottom-0",right:"right-0 top-0 bottom-0",top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"},p=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`
287
- fixed
288
- inset-0
289
- bg-black/50
290
- ${m.getZIndexClass("modal")}
291
- ${m.getAnimationClass("base")}
292
- ${n?"opacity-100":"opacity-0"}
293
- `,onClick:u?a:void 0,"aria-hidden":"true"}),r.jsxs("div",{className:`
294
- fixed
295
- ${f[o]}
296
- ${c[i]}
297
- ${o==="left"||o==="right"?"max-w-[90vw]":"max-h-[90vh]"}
298
- bg-white
299
- ${m.getShadowClass("xl")}
300
- ${m.getZIndexClass("modal")}
301
- ${m.getAnimationClass("base")}
302
- flex
303
- flex-col
304
- ${s}
305
- `,role:"dialog","aria-modal":"true",onClick:g=>g.stopPropagation(),children:[t&&r.jsx("div",{className:`
306
- flex
307
- justify-end
308
- ${m.getSpacingClass("sm","p")}
309
- border-b
310
- ${m.getColorClass("neutral","DEFAULT","border")}
311
- `,children:r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:a,className:"h-auto p-1","aria-label":"Close drawer",children:r.jsx(fe,{className:"h-4 w-4"})})}),e]})]});return typeof window!="undefined"?$e.createPortal(p,document.body):null}function gn(n){var a=n,{children:e,className:s=""}=a,t=B(a,["children","className"]);return r.jsx("div",L(D({className:`
312
- ${m.getSpacingClass("lg","p")}
313
- border-b
314
- ${m.getColorClass("neutral","DEFAULT","border")}
315
- ${s}
316
- `},t),{children:e}))}function pn(n){var a=n,{children:e,className:s=""}=a,t=B(a,["children","className"]);return r.jsx("div",L(D({className:`
317
- ${m.getSpacingClass("lg","p")}
318
- border-t
319
- ${m.getColorClass("neutral","DEFAULT","border")}
320
- flex
321
- justify-end
322
- ${m.getSpacingClass("sm","gap")}
323
- ${s}
324
- `},t),{children:e}))}function ct({children:e,open:s,defaultOpen:t=!1,onOpenChange:n,position:a="right",size:o="md",closeOnOverlayClick:i=!0,closeOnEscape:u=!0}){const[l,c]=d.useState(t),f=s!==void 0,p=f?s:l,g=v=>{f||c(v),n==null||n(v)},b=()=>{g(!1)};return r.jsx(Ii,{value:{isOpen:p,closeDrawer:b,position:a,size:o,closeOnOverlayClick:i,closeOnEscape:u},children:e})}ct.Content=Es;ct.Header=gn;ct.Footer=pn;const hn=d.createContext(void 0);function Fi({children:e,value:s}){return r.jsx(hn.Provider,{value:s,children:e})}function Ts(){const e=d.useContext(hn);if(!e)throw new Error("Menu components must be used within Menu");return e}const As=d.forwardRef(function(i,o){var u=i,{children:s,asChild:t=!1,onClick:n}=u,a=B(u,["children","asChild","onClick"]);const{isOpen:l,setIsOpen:c}=Ts(),f=p=>{n==null||n(p),t||c(!l)};return r.jsx("div",L(D({ref:o,onClick:f,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":l},a),{children:s}))});As.displayName="MenuTrigger";function xn({children:e,className:s="",align:t="start"}){const{isOpen:n,closeMenu:a,placement:o}=Ts(),i=d.useRef(null),u=d.useRef(null),[l,c]=d.useState({top:0,left:0});if(d.useEffect(()=>{if(n){const p=document.querySelector('[aria-haspopup="menu"]');u.current=p}},[n]),d.useEffect(()=>{if(n&&i.current&&u.current){const p=()=>{const v=u.current.getBoundingClientRect(),y=i.current.getBoundingClientRect(),C=window.scrollY,x=window.scrollX;let w=0,N=0;o==="bottom"?(w=v.bottom+C+4,t==="start"?N=v.left+x:t==="end"?N=v.right+x-y.width:N=v.left+x+(v.width-y.width)/2):o==="top"?(w=v.top+C-y.height-4,t==="start"?N=v.left+x:t==="end"?N=v.right+x-y.width:N=v.left+x+(v.width-y.width)/2):o==="right"?(N=v.right+x+4,t==="start"?w=v.top+C:t==="end"?w=v.bottom+C-y.height:w=v.top+C+(v.height-y.height)/2):o==="left"&&(N=v.left+x-y.width-4,t==="start"?w=v.top+C:t==="end"?w=v.bottom+C-y.height:w=v.top+C+(v.height-y.height)/2);const h=8;w=Math.max(h,Math.min(w,window.innerHeight+C-y.height-h)),N=Math.max(h,Math.min(N,window.innerWidth+x-y.width-h)),c({top:w,left:N})};p();const g=()=>p(),b=()=>p();return window.addEventListener("resize",g),window.addEventListener("scroll",b,!0),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",b,!0)}}},[n,o,t]),d.useEffect(()=>{if(n){const p=g=>{g.key==="Escape"&&a()};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)}},[n,a]),d.useEffect(()=>{if(n){const p=g=>{i.current&&u.current&&!i.current.contains(g.target)&&!u.current.contains(g.target)&&a()};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)}},[n,a]),!n)return null;const f=r.jsx("div",{ref:i,role:"menu",className:`
325
- absolute
326
- ${m.getZIndexClass("popover")}
327
- bg-white
328
- ${m.getRadiusClass("md")}
329
- ${m.getShadowClass("lg")}
330
- border
331
- ${m.getColorClass("neutral","DEFAULT","border")}
332
- min-w-40
333
- ${m.getSpacingClass("xs","py")}
334
- ${s}
335
- `,style:{top:`${l.top}px`,left:`${l.left}px`},children:e});return typeof window!="undefined"?$e.createPortal(f,document.body):null}const Rs=d.forwardRef(function(p,f){var g=p,{children:s,icon:t,rightIcon:n,disabled:a=!1,onClick:o,onSelect:i,hasSubmenu:u=!1,className:l=""}=g,c=B(g,["children","icon","rightIcon","disabled","onClick","onSelect","hasSubmenu","className"]);const{closeMenu:b}=Ts(),v=C=>{a||(o==null||o(C),i==null||i(C),!u&&!C.defaultPrevented&&b())},y=C=>{a||(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),v(C))};return r.jsxs("div",L(D({ref:f,role:"menuitem",tabIndex:a?-1:0,"aria-disabled":a,onClick:v,onKeyDown:y,className:`
336
- flex
337
- items-center
338
- gap-2
339
- ${m.getSpacingClass("sm","px")}
340
- ${m.getSpacingClass("sm","py")}
341
- ${m.getTypographySize("bodySmall")}
342
- ${m.getColorClass("neutral","dark","text")}
343
- cursor-pointer
344
- transition-colors
345
- ${m.getHoverColorClass("neutral","light","bg")}
346
- ${m.getFocusColorClass("neutral","light","bg")}
347
- focus:outline-none
348
- ${a?"opacity-50 cursor-not-allowed":""}
349
- ${l}
350
- `},c),{children:[t&&r.jsx("span",{className:"shrink-0",children:t}),r.jsx("span",{className:"flex-1",children:s}),u&&r.jsx(Pe,{className:`h-4 w-4 ${m.getColorClass("neutral","DEFAULT","text")} shrink-0`}),n&&!u&&r.jsx("span",{className:"shrink-0",children:n})]}))});Rs.displayName="MenuItem";function bn(t){var n=t,{className:e=""}=n,s=B(n,["className"]);return r.jsx("div",D({role:"separator",className:`
351
- h-px
352
- ${m.getColorClass("neutral","light","bg")}
353
- ${m.getSpacingClass("sm","my")}
354
- ${e}
355
- `},s))}function dt({children:e,open:s,defaultOpen:t=!1,onOpenChange:n,placement:a="bottom"}){const[o,i]=d.useState(t),u=s!==void 0,l=u?s:o,c=p=>{u||i(p),n==null||n(p)},f=()=>{c(!1)};return r.jsx(Fi,{value:{isOpen:l,setIsOpen:c,closeMenu:f,placement:a},children:e})}dt.Trigger=As;dt.Content=xn;dt.Item=Rs;dt.Separator=bn;function _i({items:e,type:s="single",defaultOpen:t,onValueChange:n,className:a=""}){const o=()=>t===void 0?[]:Array.isArray(t)?t:[t],[i,u]=d.useState(o),l=c=>{var p;if((p=e.find(g=>g.id===c))!=null&&p.disabled)return;let f;s==="single"?f=i.includes(c)?[]:[c]:f=i.includes(c)?i.filter(g=>g!==c):[...i,c],u(f),n==null||n(s==="single"?f[0]||"":f)};return r.jsx("div",{className:`${m.getSpacingClass("xs","space-y")} ${a}`,children:e.map(c=>{const f=i.includes(c.id),p=c.disabled;return r.jsxs("div",{className:`border ${m.getColorClass("neutral","DEFAULT","border")} ${m.getRadiusClass("md")} overflow-hidden`,children:[r.jsxs("button",{type:"button",onClick:()=>l(c.id),disabled:p,className:`
356
- w-full
357
- flex
358
- items-center
359
- justify-between
360
- ${m.getSpacingClass("base","px")}
361
- ${m.getSpacingClass("md","py")}
362
- ${m.getTypographyClasses("label")}
363
- text-left
364
- ${m.getColorClass("neutral","dark","text")}
365
- bg-white
366
- ${m.getHoverColorClass("neutral","light","bg")}
367
- focus:outline-none
368
- focus:ring-2
369
- focus:ring-offset-2
370
- ${(()=>{const b="bg-surface-brand".split("-");return b.length>=3?`focus:ring-${b[1]}-${b[2]}`:"focus:ring-indigo-500"})()}
371
- ${m.getAnimationClass("base")}
372
- ${p?"opacity-50 cursor-not-allowed":"cursor-pointer"}
373
- `,"aria-expanded":f,"aria-controls":`accordion-content-${c.id}`,"aria-disabled":p,children:[r.jsx("span",{children:c.title}),r.jsx(vs,{className:`
374
- ${m.getSpacingClass("sm","ml")}
375
- ${m.getAnimationClass("base")}
376
- ${f?"transform rotate-180":""}
377
- ${p?"opacity-50":""}
378
- `,"aria-hidden":"true"})]}),r.jsx("div",{id:`accordion-content-${c.id}`,className:`
379
- overflow-hidden
380
- ${m.getAnimationClass("base")}
381
- ${f?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}
382
- `,"aria-hidden":!f,children:r.jsx("div",{className:`
383
- ${m.getSpacingClass("base","px")}
384
- ${m.getSpacingClass("md","py")}
385
- ${m.getColorClass("neutral","DEFAULT","text")}
386
- `,children:c.content})})]},c.id)})})}const vn=d.createContext(void 0);function gs({children:e,mobileMenuOpen:s,onMobileMenuChange:t,defaultMobileMenuOpen:n=!1}){const[a,o]=d.useState(n),i=s!==void 0,u=i?s:a,l=d.useCallback(g=>{i||o(g),t==null||t(g)},[i,t]),c=d.useCallback(()=>{l(!u)},[u,l]),f=d.useCallback(()=>{l(!0)},[l]),p=d.useCallback(()=>{l(!1)},[l]);return r.jsx(vn.Provider,{value:{isMobileMenuOpen:u,toggleMobileMenu:c,setMobileMenuOpen:l,openMobileMenu:f,closeMobileMenu:p},children:e})}function Ds(){const e=d.useContext(vn);if(!e)throw new Error("useHeaderContext must be used within HeaderProvider");return e}function yn(n){var a=n,{children:e,className:s}=a,t=B(a,["children","className"]);return r.jsx("div",{className:"flex-shrink-0",children:r.jsx(O.NavLink,L(D({href:t.href||"/",variant:"default",className:M("flex items-center font-semibold text-lg",s)},t),{children:e}))})}function wn({children:e,className:s}){return r.jsx("nav",{className:M("flex-1 flex items-center justify-center gap-4","hidden md:flex",s),"aria-label":"Main navigation",children:e})}function Cn({children:e,className:s}){return r.jsx("div",{className:M("flex-shrink-0 flex items-center gap-2",s),children:e})}function jn({className:e,icon:s,closeIcon:t,variant:n="ghost",size:a="md"}){const{isMobileMenuOpen:o,toggleMobileMenu:i}=Ds(),u=s||r.jsx(Po,{className:"h-5 w-5"}),l=t||r.jsx(fe,{className:"h-5 w-5"});return r.jsx(O.Button,{variant:n,size:a,onClick:i,className:M("md:hidden",e),"aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:o?l:u})}function kn({children:e,className:s}){const{isMobileMenuOpen:t,closeMobileMenu:n}=Ds();return r.jsx(ct,{open:t,onOpenChange:a=>{a||n()},position:"left",size:"sm",closeOnOverlayClick:!0,closeOnEscape:!0,children:r.jsx(Es,{className:M("p-4",s),children:r.jsx("nav",{className:"flex flex-col gap-2","aria-label":"Mobile navigation",children:e})})})}const zi={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},De=d.forwardRef((l,u)=>{var c=l,{className:e,maxWidth:s="lg",paddingX:t="base",paddingY:n="base",center:a=!0,children:o}=c,i=B(c,["className","maxWidth","paddingX","paddingY","center","children"]);return r.jsx("div",L(D({ref:u,className:M("w-full",zi[s],m.getSpacingClass(t,"px"),m.getSpacingClass(n,"py"),a&&"mx-auto",e)},i),{children:o}))});De.displayName="Container";const Xe=d.forwardRef((l,u)=>{var c=l,{className:e,spacing:s="base",align:t="stretch",justify:n="start",direction:a="column",children:o}=c,i=B(c,["className","spacing","align","justify","direction","children"]);const f=a==="column"?m.getSpacingClass(s,"gap-y"):m.getSpacingClass(s,"gap-x"),p={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},g={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return r.jsx("div",L(D({ref:u,className:M("flex",a==="column"?"flex-col":"flex-row",f,p[t],g[n],e)},i),{children:o}))});Xe.displayName="Stack";const Li=lt(M("w-full","bg-white","transition-shadow","transition-colors"),{variants:{variant:{default:"",elevated:"shadow-sm",bordered:M("border-b",m.getColorClass("neutral","light","border"))}},defaultVariants:{variant:"default"}});function et(u){var l=u,{children:e,variant:s="default",sticky:t=!1,maxWidth:n="full",bare:a=!1,className:o}=l,i=B(l,["children","variant","sticky","maxWidth","bare","className"]);const c=r.jsx("div",{className:"flex items-center justify-between gap-4",children:e});return a?r.jsx(gs,{children:r.jsx("div",L(D({className:M(o)},i),{children:c}))}):r.jsx(gs,{children:r.jsx("header",L(D({className:M(Li({variant:s}),t&&`sticky top-0 ${m.getZIndexClass("sticky")}`,t&&"backdrop-blur-sm bg-white/95",o)},i),{children:r.jsx(De,{maxWidth:n,paddingX:"base",paddingY:"sm",children:c})}))})}et.Logo=yn;et.Navigation=wn;et.Actions=Cn;et.Hamburger=jn;et.MobileMenu=kn;const Er=lt(M("flex","items-center","gap-2"),{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},variant:{default:"",pills:"",tabs:""}},defaultVariants:{orientation:"horizontal",variant:"default"},compoundVariants:[{orientation:"vertical",variant:"default",class:"items-stretch"},{orientation:"vertical",variant:"pills",class:"items-stretch"},{orientation:"vertical",variant:"tabs",class:"items-stretch"}]});function Pi(l){var c=l,{items:e,orientation:s="horizontal",variant:t="default",className:n,"aria-label":a="Main navigation",bare:o=!1,pathname:i}=c,u=B(c,["items","orientation","variant","className","aria-label","bare","pathname"]);let f=i;if(!f)try{const b=typeof require!="undefined"?require("next/navigation"):null;if(b!=null&&b.usePathname){const v=b.usePathname;f=v()}}catch(b){f=void 0}const p=d.useMemo(()=>e.map(b=>{if(b.active!==void 0)return b;if(f){const v=f===b.href||b.href!=="/"&&f.startsWith(`${b.href}/`);return L(D({},b),{active:v})}return L(D({},b),{active:!1})}),[e,f]),g=r.jsx(r.Fragment,{children:p.map((b,v)=>{const y=t==="pills"?"background":t==="tabs"?"underline":"default";return r.jsxs(O.NavLink,{href:b.href,active:b.active,disabled:b.disabled,variant:y,className:M("flex items-center gap-2",s==="vertical"&&"w-full justify-start",b.className),children:[b.icon&&r.jsx("span",{className:"flex-shrink-0","aria-hidden":"true",children:b.icon}),r.jsx("span",{children:b.label}),b.badge&&r.jsx("span",{className:"ml-auto",children:b.badge})]},b.href||v)})});return o?r.jsx("div",L(D({className:M(Er({orientation:s,variant:t}),n)},u),{children:g})):r.jsx("nav",L(D({className:M(Er({orientation:s,variant:t}),n),"aria-label":a},u),{children:g}))}function Oi(e){return r.jsx(Pi,L(D({},e),{pathname:e.pathname}))}const Wi=lt(M("w-full","flex","flex-col","gap-2"),{variants:{variant:{default:M(m.getSpacingClass("base","mb")),compact:M(m.getSpacingClass("sm","mb"))}},defaultVariants:{variant:"default"}});function Vi(u){var l=u,{title:e,description:s,breadcrumb:t,actions:n,variant:a="default",className:o}=l,i=B(l,["title","description","breadcrumb","actions","variant","className"]);return r.jsxs("div",L(D({className:M(Wi({variant:a}),o)},i),{children:[t&&t.length>0&&r.jsx(Qr,{items:t}),r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx(O.Text,{variant:"heading",as:"h1",className:"mb-2 text-2xl font-bold",children:e}),s&&r.jsx(O.Text,{variant:"body",className:"text-gray-600",children:s})]}),n&&r.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:n})]})]}))}function Bi(n){var a=n,{onForgotPasswordClick:e,className:s}=a,t=B(a,["onForgotPasswordClick","className"]);return r.jsx("div",{className:M(m.getSpacingClass("base","p"),m.getColorClass("neutral","light","bg"),m.getRadiusClass("md"),s),children:r.jsxs("form",L(D({},t),{onSubmit:o=>{o.preventDefault(),t.onSubmit&&t.onSubmit(o)},className:M("space-y-4",t.className),children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(O.Label,{htmlFor:"login-email",variant:"required",children:"Your email"}),r.jsx(O.Input,{id:"login-email",placeholder:"myname@email.com",type:"email"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(O.Label,{htmlFor:"login-password",variant:"required",children:"Your password"}),r.jsx(O.Input,{id:"login-password",placeholder:"••••••••",type:"password"})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx(O.Button,{variant:"secondary",type:"button",onClick:e,children:"Forgot password?"}),r.jsx(O.Button,{variant:"regular",type:"submit",children:"Sign in"})]})]}))})}function Hi(c){var f=c,{isOpen:e,onClose:s,title:t,children:n,variant:a="default",showCloseButton:o=!0,footer:i,className:u=""}=f,l=B(f,["isOpen","onClose","title","children","variant","showCloseButton","footer","className"]);const p=d.useRef(null),g=d.useRef(null);if(d.useEffect(()=>{if(!e)return;g.current=document.activeElement;const w=setTimeout(()=>{var h;(h=p.current)==null||h.focus()},0),N=h=>{h.key==="Escape"&&s()};return document.addEventListener("keydown",N),()=>{var h;clearTimeout(w),document.removeEventListener("keydown",N),(h=g.current)==null||h.focus()}},[e,s]),d.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const b=["fixed","inset-0",m.getZIndexClass("modal"),"overflow-y-auto"],v=["fixed","inset-0","bg-black","bg-opacity-50","transition-opacity"],C=["relative","bg-white","rounded-lg","shadow-xl","my-8","mx-auto",{default:"max-w-md",large:"max-w-2xl",fullscreen:"max-w-full h-full"}[a],"p-6",u].filter(Boolean).join(" "),x=r.jsxs("div",{className:b.join(" "),role:"dialog","aria-modal":"true","aria-labelledby":t?"modal-title":void 0,onClick:w=>{w.target===w.currentTarget&&s()},children:[r.jsx("div",{className:v.join(" "),"aria-hidden":"true"}),r.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:r.jsxs("div",L(D({ref:p,tabIndex:-1,className:C,onClick:w=>w.stopPropagation()},l),{children:[t&&r.jsxs("div",{className:"flex justify-between items-center mb-4",children:[r.jsx("h2",{id:"modal-title",className:"text-xl font-semibold text-gray-900",children:t}),o&&r.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 focus:outline-none","aria-label":"Close modal",children:r.jsx(fe,{className:"h-6 w-6"})})]}),!t&&o&&r.jsx("div",{className:"flex justify-end mb-4",children:r.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 focus:outline-none","aria-label":"Close modal",children:r.jsx(fe,{className:"h-6 w-6"})})}),r.jsx("div",{className:"mb-4",children:n}),i&&r.jsx("div",{className:"flex justify-end gap-2 mt-4",children:i})]}))})]});return typeof window!="undefined"?$e.createPortal(x,document.body):x}const Ot=d.createContext(void 0);function we(){const e=d.useContext(Ot);if(e===void 0)throw new Error("useTableContext must be used within a Table component");return e}function Ui(){const e=d.useContext(Ot);return e||void 0}function ps({columns:e,data:s,loading:t=!1,paginationMode:n,page:a,pageSize:o,total:i,onPageChange:u,onPageSizeChange:l,defaultPageSize:c=10,pageSizeOptions:f,sortColumn:p,sortDirection:g,onSort:b,defaultSortColumn:v,defaultSortDirection:y="asc",filters:C,filterValues:x,onFilter:w,initialFilterValues:N={},selectable:h=!1,selectedRows:k,onSelectionChange:S,rowId:R,actions:j,emptyMessage:$="No data available",emptyStateTitle:E,emptyStateMessage:T,emptyStateIllustration:I,emptyStateAction:_,onRowClick:F,resizable:P=!1,columnWidths:K,onColumnResize:q,virtualScrolling:W,virtualScrollingOptions:ne,children:se}){const A=d.useMemo(()=>n||(i!==void 0&&u?"server":"client"),[n,i,u]),V=a!==void 0,[Y,Z]=d.useState(1),[ie,ee]=d.useState(c),z=V?a:Y,G=o!=null?o:ie,Q=d.useMemo(()=>A==="server"?i!=null?i:0:s.length,[A,i,s.length]),le=d.useMemo(()=>Math.ceil(Q/G),[Q,G]),ue=p!==void 0,[Ce,tt]=d.useState(v||""),[he,st]=d.useState(y),ge=ue?p:Ce,ft=ue?g||"asc":he,Yt=x!==void 0,[Xn,Zn]=d.useState(N),mt=Yt?x:Xn,Xt=k!==void 0,[Jn,Qn]=d.useState([]),xe=Xt?k:Jn,gt=d.useMemo(()=>!C||C.length===0?s:s.filter(X=>C.every(re=>{const oe=mt[re.key];if(!oe||oe==="")return!0;const ht=X[re.key];return re.type==="text"?String(ht||"").toLowerCase().includes(String(oe).toLowerCase()):String(ht)===String(oe)})),[s,C,mt]),Zt=d.useMemo(()=>{if(ue&&b||!ge)return gt;const X=[...gt];return X.sort((re,oe)=>{const ht=re[ge],ra=oe[ge],cr=String(ht||"").localeCompare(String(ra||""));return ft==="asc"?cr:-cr}),X},[gt,ge,ft,b,ue]),je=d.useMemo(()=>{if(A==="server")return Zt;const X=(z-1)*G,re=X+G;return Zt.slice(X,re)},[Zt,A,z,G]),Ve=d.useCallback((X,re)=>{var oe;return R?R(X):((oe=X==null?void 0:X.id)==null?void 0:oe.toString())||re.toString()},[R]),pt=d.useMemo(()=>!h||je.length===0?!1:je.every((X,re)=>{const oe=Ve(X,re);return xe.includes(oe)}),[h,je,xe,Ve]),tr=d.useMemo(()=>{if(!h)return!1;const X=xe.length;return X>0&&X<je.length},[h,xe.length,je.length]),Be=d.useCallback(X=>{V?u==null||u(X):Z(X)},[V,u]),sr=d.useCallback(X=>{l?l(X):ee(X),Be(1)},[l,Be]),rr=d.useCallback((X,re)=>{ue?b==null||b(X,re):(tt(X),st(re))},[ue,b]),nr=d.useCallback(X=>{Yt?w==null||w(X):Zn(X),Be(1)},[Yt,w,Be]),_e=d.useCallback(X=>{Xt?S==null||S(X):Qn(X)},[Xt,S]),ar=d.useCallback(X=>{const re=xe.includes(X)?xe.filter(oe=>oe!==X):[...xe,X];_e(re)},[xe,_e]),or=d.useCallback(()=>{if(pt)_e([]);else{const X=je.map((re,oe)=>Ve(re,oe));_e(X)}},[pt,je,Ve,_e]),[ea,ta]=d.useState({}),Jt=K!==void 0,ir=Jt?K:ea,lr=d.useCallback((X,re)=>{Jt?q==null||q(X,re):ta(oe=>L(D({},oe),{[X]:re}))},[Jt,q]),sa=d.useMemo(()=>({columns:e,data:s,paginatedData:je,loading:t,paginationState:{page:z,pageSize:G,total:Q,totalPages:le},sortState:{column:ge,direction:ft},filterState:{values:mt,config:C||[]},selectionState:{selectedRows:xe,isAllSelected:pt,isIndeterminate:tr},paginationMode:A,selectable:h,rowId:R,actions:j,resizable:P,columnWidths:ir,virtualScrolling:W,emptyMessage:$,emptyStateTitle:E,emptyStateMessage:T,emptyStateIllustration:I,emptyStateAction:_,setPage:Be,setPageSize:sr,setSorting:rr,setFilters:nr,setSelection:_e,toggleRowSelection:ar,toggleSelectAll:or,getRowId:Ve,setColumnWidth:lr,onPageChange:u,onPageSizeChange:l,onSort:b,onFilter:w,onSelectionChange:S,onRowClick:F,onColumnResize:q}),[e,s,je,t,z,G,Q,le,ge,ft,mt,C,xe,pt,tr,A,h,R,j,$,E,T,I,_,Be,sr,rr,nr,_e,ar,or,Ve,lr,u,l,b,w,S,F,q,P,ir,W]);return r.jsx(Ot.Provider,{value:sa,children:se})}function Is(l){var c=l,{column:e,resizable:s=!1,width:t,onResize:n,minWidth:a=50,maxWidth:o,className:i=""}=c,u=B(c,["column","resizable","width","onResize","minWidth","maxWidth","className"]);const{sortState:f,setSorting:p,onSort:g}=we(),b=d.useRef(null),v=d.useRef(null),y=d.useRef(null),C=()=>{if(!e.sortable||!g&&!p)return;const S=f.column===e.key&&f.direction==="asc"?"desc":"asc";g?g(e.key,S):p(e.key,S)},x=S=>{h&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),C())},w=S=>{if(S.preventDefault(),S.stopPropagation(),!v.current||!n)return;const R=t||v.current.offsetWidth;y.current={x:S.clientX,width:R};const j=E=>{if(!y.current)return;const T=E.clientX-y.current.x,I=y.current.width+T,_=Math.max(a,o?Math.min(I,o):I);n(e.key,_)},$=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",$),y.current=null};document.addEventListener("mousemove",j),document.addEventListener("mouseup",$)},N=f.column===e.key,h=e.sortable&&(g||p),k=N?f.direction:void 0;return r.jsx("th",L(D({ref:v,scope:"col",role:"columnheader","aria-sort":N?k==="asc"?"ascending":"descending":h?"none":void 0,className:`px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider ${h?"cursor-pointer hover:bg-gray-100 focus:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 select-none":""} ${e.hiddenOnMobile?"hidden md:table-cell":""} ${i}`,onClick:h?C:void 0,onKeyDown:h?x:void 0,tabIndex:h?0:void 0,style:t?{width:`${t}px`,minWidth:`${t}px`}:void 0},u),{children:r.jsxs("div",{className:"flex items-center gap-2 relative",children:[r.jsx("span",{children:e.label}),N&&r.jsx("span",{className:"text-gray-400","aria-hidden":"true",children:f.direction==="asc"?"↑":"↓"}),s&&n&&r.jsx("div",{ref:b,className:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-indigo-500 transition-colors",onMouseDown:w,role:"separator","aria-orientation":"vertical","aria-label":`Resize ${e.label} column`,style:{touchAction:"none"}})]})}))}function Ms(t){var n=t,{className:e=""}=n,s=B(n,["className"]);const{columns:a,selectable:o,selectionState:i,toggleSelectAll:u,actions:l,resizable:c,columnWidths:f,setColumnWidth:p}=we();return r.jsxs("tr",L(D({role:"row",className:e},s),{children:[o&&r.jsx("th",{scope:"col",role:"columnheader",className:"px-6 py-3 w-12","aria-label":"Select all",children:r.jsx(O.Checkbox,{checked:i.isAllSelected,onChange:u,"aria-label":"Select all rows",className:"my-0",indeterminate:i.isIndeterminate})}),a.map(g=>r.jsx(Is,{column:g,resizable:c,width:f==null?void 0:f[g.key],onResize:p},g.key)),l&&r.jsx("th",{scope:"col",role:"columnheader",className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider w-12","aria-label":"Actions",children:r.jsx("span",{className:"sr-only",children:"Actions"})})]}))}function Fs(t){var n=t,{className:e=""}=n,s=B(n,["className"]);return we(),r.jsx("thead",L(D({className:`bg-gray-50 sticky top-0 ${m.getZIndexClass("sticky")} ${e}`},s),{children:r.jsx(Ms,{})}))}function _s(a){var o=a,{column:e,row:s,className:t=""}=o,n=B(o,["column","row","className"]);const i=e.key in s?s[e.key]:void 0;return r.jsx("td",L(D({className:`px-6 py-4 whitespace-nowrap text-sm text-gray-900 ${e.hiddenOnMobile?"hidden md:table-cell":""} ${t}`},n),{children:e.render?e.render(i,s):String(i!=null?i:"")}))}function qi(o){var i=o,{actions:e,row:s,align:t="right",className:n=""}=i,a=B(i,["actions","row","align","className"]);const u=e.map(l=>({label:l.label,onClick:()=>l.onClick(s),variant:l.variant,disabled:l.disabled}));return r.jsx("div",L(D({className:`inline-flex ${n}`},a),{children:r.jsx(sn,{trigger:r.jsx(O.Button,{variant:"ghost",size:"sm","aria-label":"Row actions",className:"h-8 w-8 p-0",children:r.jsx(ko,{className:"h-4 w-4"})}),items:u,align:t})}))}function zs(a){var o=a,{row:e,align:s="right",className:t=""}=o,n=B(o,["row","align","className"]);const{actions:i}=we();if(!i)return null;const u=i(e);return u.length===0?null:r.jsx(qi,D({row:e,actions:u,align:s,className:t},n))}function Tt(i){var u=i,{row:e,rowIndex:s,className:t="",onClick:n,style:a}=u,o=B(u,["row","rowIndex","className","onClick","style"]);const{columns:l,selectable:c,selectionState:f,toggleRowSelection:p,getRowId:g,actions:b,onRowClick:v}=we(),y=g(e,s),C=f.selectedRows.includes(y),x=w=>{n&&n(w),v&&v(e)};return r.jsxs("tr",L(D({role:"row","aria-selected":c?C:void 0,"aria-rowindex":s+1,className:`hover:bg-gray-50 ${C?"bg-indigo-50":""} ${t}`,onClick:x,style:a},o),{children:[c&&r.jsx("td",{className:"px-6 py-4",children:r.jsx(O.Checkbox,{checked:C,onChange:()=>p(y),"aria-label":`Select row ${y}`,className:"my-0"})}),l.map(w=>r.jsx(_s,{column:w,row:e},String(w.key))),b&&r.jsx("td",{className:"px-6 py-4 text-right",children:r.jsx(zs,{row:e})})]}))}function Ls(t){var n=t,{className:e=""}=n,s=B(n,["className"]);const{emptyMessage:a,emptyStateTitle:o,emptyStateMessage:i,emptyStateIllustration:u,emptyStateAction:l}=we();return o||i||u?r.jsxs("div",L(D({className:e},s),{children:[r.jsx(tn,{title:o||"No data available",message:i||a||"No data available",variant:u?"withIllustration":"default",illustration:u}),l&&r.jsx("div",{className:"mt-4 flex justify-center",children:l})]})):r.jsx("div",L(D({className:`text-center text-gray-500 ${e}`},s),{children:a||"No data available"}))}function Sn(e,s){const{itemHeight:t,containerHeight:n,overscan:a=5,enabled:o=!0}=s,[i,u]=d.useState(0),l=d.useRef(null),c=d.useMemo(()=>{if(!o||e.length===0)return e.map((y,C)=>({index:C,start:C*t,end:(C+1)*t,size:t}));const g=Math.max(0,Math.floor(i/t)-a),b=n?Math.min(e.length,Math.ceil((i+n)/t)+a):e.length,v=[];for(let y=g;y<b;y++)v.push({index:y,start:y*t,end:(y+1)*t,size:t});return v},[e,t,i,n,a,o]),f=e.length*t;return d.useEffect(()=>{if(!o||!l.current)return;const g=l.current,b=()=>{u(g.scrollTop)};return g.addEventListener("scroll",b,{passive:!0}),()=>g.removeEventListener("scroll",b)},[o]),{virtualItems:c,totalHeight:f,scrollOffset:i,setScrollOffset:u,scrollToIndex:g=>{if(!l.current)return;const b=g*t;l.current.scrollTop=b,u(b)},containerRef:l}}function Ps(n){var a=n,{children:e,className:s=""}=a,t=B(a,["children","className"]);var y,C;const{paginatedData:o,loading:i,columns:u,selectable:l,actions:c,virtualScrolling:f,virtualScrollingOptions:p}=we(),g=u.length+(l?1:0)+(c?1:0),b=Sn(o,{itemHeight:(p==null?void 0:p.itemHeight)||50,containerHeight:p==null?void 0:p.containerHeight,overscan:(p==null?void 0:p.overscan)||5,enabled:f||!1}),v=d.useMemo(()=>f&&b.virtualItems.length>0?b.virtualItems.map(x=>({row:o[x.index],index:x.index})).filter(x=>x.row!==void 0):o.map((x,w)=>({row:x,index:w})),[f,b.virtualItems,o]);return i?r.jsx("tbody",L(D({className:`bg-white divide-y divide-gray-200 ${s}`},t),{children:Array.from({length:5}).map((x,w)=>r.jsx("tr",{children:Array.from({length:g}).map((N,h)=>r.jsx("td",{className:"px-6 py-4",children:r.jsx(O.Skeleton,{className:"h-4 w-full"})},h))},w))})):o.length===0?r.jsx("tbody",L(D({className:`bg-white divide-y divide-gray-200 ${s}`},t),{children:r.jsx("tr",{children:r.jsx("td",{colSpan:g,className:"px-6 py-12",children:r.jsx(Ls,{})})})})):typeof e=="function"?r.jsx("tbody",L(D({className:`bg-white divide-y divide-gray-200 ${s}`},t),{children:o.map((x,w)=>e(x,w))})):r.jsx("tbody",L(D({className:`bg-white divide-y divide-gray-200 ${s}`,role:"rowgroup"},t),{children:f&&b.virtualItems.length>0&&v.length>0?r.jsxs(r.Fragment,{children:[((y=b.virtualItems[0])==null?void 0:y.start)>0&&r.jsx("tr",{style:{height:b.virtualItems[0].start},"aria-hidden":"true",children:r.jsx("td",{colSpan:g})}),v.map(({row:x,index:w})=>r.jsx(Tt,{row:x,rowIndex:w},w)),b.virtualItems.length>0&&r.jsx("tr",{style:{height:Math.max(0,b.totalHeight-(((C=b.virtualItems[b.virtualItems.length-1])==null?void 0:C.end)||0))},"aria-hidden":"true",children:r.jsx("td",{colSpan:g})})]}):v.map(({row:x,index:w})=>r.jsx(Tt,{row:x,rowIndex:w},w))}))}function Gi(i){var u=i,{filters:e,onFilter:s,initialValues:t={},showClearAll:n=!0,className:a=""}=u,o=B(u,["filters","onFilter","initialValues","showClearAll","className"]);const[l,c]=d.useState(t),[f,p]=d.useState(!1),g=Object.values(l).some(x=>x!==""&&x!==null&&x!==void 0),b=(x,w)=>{const N=L(D({},l),{[x]:w});c(N),s(N)},v=()=>{const x={};e.forEach(w=>{x[w.key]=""}),c(x),s(x)},y=x=>{const w=L(D({},l),{[x]:""});c(w),s(w)},C=Object.values(l).filter(x=>x!==""&&x!==null&&x!==void 0).length;return r.jsx("div",L(D({className:`bg-white border-b border-gray-200 ${a}`},o),{children:r.jsxs("div",{className:"px-4 py-3 sm:px-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("button",{type:"button",onClick:()=>p(!f),className:"flex items-center gap-2 text-sm font-medium text-gray-700 hover:text-gray-900",children:[r.jsx(Do,{className:"h-4 w-4"}),r.jsx("span",{children:"Filters"}),C>0&&r.jsx("span",{className:`inline-flex items-center ${m.getSpacingClass("sm","px")} ${m.getSpacingClass("0.5","py")} rounded text-xs font-medium bg-indigo-100 text-indigo-800`,children:C})]}),g&&n&&r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:v,className:"text-sm",children:"Clear all"})]}),f&&r.jsx("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e.map(x=>{const w=l[x.key]||"";return r.jsxs("div",{className:"space-y-1",children:[r.jsx(O.Label,{htmlFor:`filter-${x.key}`,variant:"optional",children:x.label}),r.jsxs("div",{className:"relative",children:[x.type==="text"&&r.jsx(O.Input,{id:`filter-${x.key}`,type:"text",value:w,onChange:N=>b(x.key,N.target.value),placeholder:x.placeholder||`Filter by ${x.label.toLowerCase()}`,size:"sm",variant:"outlined"}),x.type==="select"&&r.jsxs("div",{className:"relative",children:[r.jsx(O.Select,{id:`filter-${x.key}`,options:[{value:"",label:`All ${x.label}`},...x.options||[]],value:w,onChange:N=>b(x.key,N.target.value)}),w&&r.jsx("button",{type:"button",onClick:()=>y(x.key),className:"absolute right-8 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600","aria-label":`Clear ${x.label} filter`,children:r.jsx(fe,{className:"h-4 w-4"})})]}),x.type==="date"&&r.jsx(O.Input,{id:`filter-${x.key}`,type:"date",value:w,onChange:N=>b(x.key,N.target.value),size:"sm",variant:"outlined"}),w&&x.type!=="select"&&r.jsx("button",{type:"button",onClick:()=>y(x.key),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600","aria-label":`Clear ${x.label} filter`,children:r.jsx(fe,{className:"h-4 w-4"})})]})]},x.key)})})]})}))}function Os(n){var a=n,{showClearAll:e=!0,className:s=""}=a,t=B(a,["showClearAll","className"]);const{filterState:o,setFilters:i}=we();return o.config.length===0?null:r.jsx(Gi,D({filters:o.config,onFilter:i,initialValues:o.values,showClearAll:e,className:s},t))}function Ki(f){var p=f,{page:e,pageSize:s,total:t,onPageChange:n,onPageSizeChange:a,pageSizeOptions:o=[10,25,50,100],showPageSizeSelector:i=!0,showPageInfo:u=!0,className:l=""}=p,c=B(p,["page","pageSize","total","onPageChange","onPageSizeChange","pageSizeOptions","showPageSizeSelector","showPageInfo","className"]);const g=Math.ceil(t/s),b=t===0?0:(e-1)*s+1,v=Math.min(e*s,t),y=()=>{e>1&&n(e-1)},C=()=>{e<g&&n(e+1)},x=()=>{e>1&&n(1)},w=()=>{e<g&&n(g)};return r.jsxs("div",L(D({className:`flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200 sm:px-6 ${l}`},c),{children:[r.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[r.jsx(O.Button,{variant:"outline",size:"sm",onClick:y,disabled:e===1,children:"Previous"}),r.jsx(O.Button,{variant:"outline",size:"sm",onClick:C,disabled:e>=g,children:"Next"})]}),r.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[u&&r.jsx("div",{children:r.jsxs(O.Text,{as:"p",className:"text-sm text-gray-700",children:["Showing ",r.jsx("span",{className:"font-medium",children:b})," to"," ",r.jsx("span",{className:"font-medium",children:v})," of"," ",r.jsx("span",{className:"font-medium",children:t})," results"]})}),r.jsxs("div",{className:"flex items-center gap-4",children:[i&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(O.Text,{as:"span",className:"text-sm text-gray-700",children:"Show:"}),r.jsx(O.Select,{options:o.map(N=>({value:N.toString(),label:N.toString()})),value:s.toString(),onChange:N=>{const h=parseInt(N.target.value);a(h),n(1)},className:"w-20"})]}),r.jsxs("nav",{className:"flex items-center gap-1","aria-label":"Pagination",children:[r.jsxs(O.Button,{variant:"ghost",size:"sm",onClick:x,disabled:e===1,"aria-label":"First page",children:[r.jsx(it,{className:"h-4 w-4"}),r.jsx(it,{className:"h-4 w-4 -ml-2"})]}),r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:y,disabled:e===1,"aria-label":"Previous page",children:r.jsx(it,{className:"h-4 w-4"})}),r.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,g)},(N,h)=>{let k;return g<=5||e<=3?k=h+1:e>=g-2?k=g-4+h:k=e-2+h,r.jsx(O.Button,{variant:e===k?"primary":"ghost",size:"sm",onClick:()=>n(k),className:"min-w-10","aria-label":`Page ${k}`,"aria-current":e===k?"page":void 0,children:k},k)})}),r.jsx(O.Button,{variant:"ghost",size:"sm",onClick:C,disabled:e>=g,"aria-label":"Next page",children:r.jsx(Pe,{className:"h-4 w-4"})}),r.jsxs(O.Button,{variant:"ghost",size:"sm",onClick:w,disabled:e>=g,"aria-label":"Last page",children:[r.jsx(Pe,{className:"h-4 w-4"}),r.jsx(Pe,{className:"h-4 w-4 -ml-2"})]})]})]})]})]}))}function Ws(o){var i=o,{showPageSizeSelector:e=!0,showPageInfo:s=!0,pageSizeOptions:t,className:n=""}=i,a=B(i,["showPageSizeSelector","showPageInfo","pageSizeOptions","className"]);const{paginationState:u,setPage:l,setPageSize:c,paginationMode:f}=we();return f==="client"&&u.totalPages<=1?null:r.jsx(Ki,D({page:u.page,pageSize:u.pageSize,total:u.total,onPageChange:l,onPageSizeChange:c,pageSizeOptions:t,showPageSizeSelector:e,showPageInfo:s,className:n},a))}function de(e){const o=e,{className:s=""}=o,t=B(o,["className"]),n="children"in e&&e.children!==void 0,a=n?t:Yi(t);return n?r.jsx("div",{className:`bg-white shadow rounded-lg overflow-hidden ${s}`,children:r.jsx(ps,L(D({},a),{children:e.children}))}):r.jsx("div",{className:`bg-white shadow rounded-lg overflow-hidden ${s}`,children:r.jsxs(ps,L(D({},a),{children:[a.filters&&a.filters.length>0&&r.jsx(Os,{}),r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"min-w-full divide-y divide-gray-200",role:"table","aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-rowcount":a.total||a.data.length,"aria-colcount":a.columns.length+(a.selectable?1:0)+(a.actions?1:0),children:[r.jsx(Fs,{}),r.jsx(Ps,{})]})}),r.jsx(Ws,{})]}))})}function Yi(e){const{columns:s,data:t,loading:n,onSort:a,sortColumn:o,sortDirection:i,emptyMessage:u,emptyStateTitle:l,emptyStateMessage:c,emptyStateIllustration:f,emptyStateAction:p,pagination:g,filters:b,selectable:v,selectedRows:y,onSelectionChange:C,rowId:x,actions:w,onRowClick:N,paginationMode:h,defaultPageSize:k,resizable:S,columnWidths:R,onColumnResize:j,virtualScrolling:$,virtualScrollingOptions:E}=e;let T=h||"auto";return T==="auto"&&(T=g&&g.total!==void 0&&g.onPageChange?"server":"client"),{columns:s,data:t,loading:n,paginationMode:T,page:g==null?void 0:g.page,pageSize:g==null?void 0:g.pageSize,total:g==null?void 0:g.total,onPageChange:g==null?void 0:g.onPageChange,onPageSizeChange:g==null?void 0:g.onPageSizeChange,defaultPageSize:k||(g==null?void 0:g.pageSize)||10,pageSizeOptions:g==null?void 0:g.pageSizeOptions,sortColumn:o,sortDirection:i,onSort:a,filters:b==null?void 0:b.config,filterValues:b==null?void 0:b.initialValues,onFilter:b==null?void 0:b.onFilter,initialFilterValues:b==null?void 0:b.initialValues,selectable:v,selectedRows:y,onSelectionChange:C,rowId:x,actions:w,onRowClick:N,emptyMessage:u,emptyStateTitle:l,emptyStateMessage:c,emptyStateIllustration:f,emptyStateAction:p,resizable:S,columnWidths:R,onColumnResize:j,virtualScrolling:$,virtualScrollingOptions:E,children:r.jsx(r.Fragment,{})}}de.Header=Fs;de.HeaderRow=Ms;de.HeaderCell=Is;de.Body=Ps;de.Row=Tt;de.Cell=_s;de.Filters=Os;de.Pagination=Ws;de.EmptyState=Ls;de.Actions=zs;function Xi(e={}){const{defaultWidths:s={},minWidth:t=50,maxWidth:n,resizable:a=!0}=e,[o,i]=d.useState(s),[u,l]=d.useState(!1),[c,f]=d.useState(null),p=d.useRef(null),g=d.useCallback((N,h)=>{const k=Math.max(t,n?Math.min(h,n):h);i(S=>L(D({},S),{[N]:k}))},[t,n]),b=d.useCallback(()=>{i(s)},[s]),v=d.useCallback((N,h,k)=>{a&&(l(!0),f(N),p.current={startX:h,startWidth:k})},[a]),y=d.useCallback(N=>{if(!u||!c||!p.current)return;const h=N-p.current.startX,k=p.current.startWidth+h;g(c,k)},[u,c,g]),C=d.useCallback(()=>{l(!1),f(null),p.current=null},[]),x=d.useRef(void 0),w=d.useRef(void 0);return typeof window!="undefined"&&(x.current=N=>{u&&y(N.clientX)},w.current=()=>{u&&C()},u?(document.addEventListener("mousemove",x.current),document.addEventListener("mouseup",w.current)):(x.current&&document.removeEventListener("mousemove",x.current),w.current&&document.removeEventListener("mouseup",w.current))),{columnWidths:o,setColumnWidth:g,resetColumnWidths:b,isResizing:u,resizingColumn:c,startResize:v,handleResize:y,endResize:C}}const Wt=d.createContext(null);function Zi(){return d.useContext(Wt)}function Ie(){const e=d.useContext(Wt);if(!e)throw new Error("useSideNavbarThemeRequired must be used within SideNavbarThemeProvider");return e}const Ye={variant:"default",navigationWidth:"56px",contentWidth:"320px",animationDuration:300,animationEasing:"ease-in-out"};function Vs({children:e,variant:s=Ye.variant,navigationWidth:t=Ye.navigationWidth,contentWidth:n=Ye.contentWidth,animationDuration:a=Ye.animationDuration,animationEasing:o=Ye.animationEasing}){const i=d.useMemo(()=>({variant:s,navigationWidth:t,contentWidth:n,animationDuration:a,animationEasing:o}),[s,t,n,a,o]);return r.jsx(Wt.Provider,{value:i,children:e})}const Vt=d.createContext(null);function Ji(){return d.useContext(Vt)}function Oe(){const e=d.useContext(Vt);if(!e)throw new Error("useSideNavbarConfigRequired must be used within SideNavbarConfigProvider");return e}const ce={mode:"full",resizable:!1,minWidth:void 0,maxWidth:void 0,snapPoints:void 0,responsive:!1,mobileBreakpoint:768,mobileVariant:"collapse",overlayBackdrop:!0,persistState:!0,persistWidth:!1,storageKey:void 0,keyboardShortcut:"Ctrl+B",enableKeyboardShortcut:!0};function Bs({children:e,mode:s=ce.mode,resizable:t=ce.resizable,minWidth:n=ce.minWidth,maxWidth:a=ce.maxWidth,snapPoints:o=ce.snapPoints,responsive:i=ce.responsive,mobileBreakpoint:u=ce.mobileBreakpoint,mobileVariant:l=ce.mobileVariant,overlayBackdrop:c=ce.overlayBackdrop,persistState:f=ce.persistState,persistWidth:p=ce.persistWidth,storageKey:g=ce.storageKey,keyboardShortcut:b=ce.keyboardShortcut,enableKeyboardShortcut:v=ce.enableKeyboardShortcut}){const y=d.useMemo(()=>({mode:s,resizable:t,minWidth:n,maxWidth:a,snapPoints:o,responsive:i,mobileBreakpoint:u,mobileVariant:l,overlayBackdrop:c,persistState:f,persistWidth:p,storageKey:g,keyboardShortcut:b,enableKeyboardShortcut:v}),[s,t,n,a,o,i,u,l,c,f,p,g,b,v]);return r.jsx(Vt.Provider,{value:y,children:e})}const Bt=d.createContext(null);function Qi(){return d.useContext(Bt)}function Me(){const e=d.useContext(Bt);if(!e)throw new Error("useSideNavbarStateRequired must be used within SideNavbarStateProvider");return e}function At(e){if(typeof e=="number")return e;const s=parseFloat(e);return isNaN(s)?0:e.endsWith("rem")||e.endsWith("em")?s*16:(e.endsWith("px"),s)}function Nn(e,s){return e===void 0||s===void 0?!0:e<s}function jt(e,s,t){let n=e;return s!==void 0&&(n=Math.max(n,s)),t!==void 0&&(n=Math.min(n,t)),n}const el=["ctrl","cmd","control","shift","alt","meta","option"];function $n(e){const s={key:"",ctrl:!1,shift:!1,alt:!1,meta:!1,isValid:!1};if(!e||typeof e!="string")return s;const t=e.trim();if(!t)return s;const n=t.split("+").map(l=>l.trim().toLowerCase()).filter(l=>l.length>0);if(n.length===0)return s;const a=new Set;let o="";for(let l=0;l<n.length;l++){const c=n[l];if(el.includes(c))a.add(c);else if(l===n.length-1)o=c;else return s}if(!o)return s;const i=a.has("ctrl")||a.has("cmd")||a.has("control"),u=a.has("alt")||a.has("option");return{key:o,ctrl:i,shift:a.has("shift"),alt:u,meta:a.has("meta"),isValid:!0}}function tl(e,s="windows"){if(!e.isValid)return"";const t=[];return s==="mac"?(e.ctrl&&t.push("⌘"),e.shift&&t.push("⇧"),e.alt&&t.push("⌥"),e.meta&&t.push("⌃"),t.push(e.key.toUpperCase()),t.join("")):(e.ctrl&&t.push("Ctrl"),e.shift&&t.push("Shift"),e.alt&&t.push("Alt"),e.meta&&t.push("Meta"),t.push(e.key.toUpperCase()),t.join("+"))}function En({initialWidth:e,minWidth:s,maxWidth:t,snapPoints:n,snapThreshold:a=20,onWidthChange:o,enabled:i=!0}){process.env.NODE_ENV==="development"&&(Nn(s,t)||console.warn("[useResize] Invalid bounds: minWidth must be less than maxWidth",{minWidth:s,maxWidth:t}));const u=jt(e,s,t),[l,c]=d.useState(u),[f,p]=d.useState(!1),g=d.useRef(0),b=d.useRef(u),v=d.useCallback(w=>{let N=jt(w,s,t);if(n&&n.length>0){const h=n.reduce((k,S)=>{const R=Math.abs(N-S),j=Math.abs(N-k);return R<j?S:k},n[0]);Math.abs(N-h)<=a&&(N=h)}c(N),o==null||o(N)},[s,t,n,a,o]),y=d.useCallback(w=>{if(!i||!f)return;const N=w.clientX-g.current,h=b.current+N;v(h)},[i,f,v]),C=d.useCallback(()=>{i&&(p(!1),g.current=0,b.current=l)},[i,l]),x=d.useCallback(w=>{i&&(w.preventDefault(),w.stopPropagation(),p(!0),g.current=w.clientX,b.current=l)},[i,l]);return d.useEffect(()=>{if(f)return document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),document.body.style.userSelect="",document.body.style.cursor=""}},[f,y,C]),d.useEffect(()=>{f||c(jt(e,s,t))},[e,s,t,f]),{width:l,isResizing:f,startResize:x,setWidth:v}}function Tn({mobileBreakpoint:e=768,onMobileChange:s,enabled:t=!0}={}){const[n,a]=d.useState(typeof window!="undefined"?window.innerWidth:1024),[o,i]=d.useState(typeof window!="undefined"?window.innerWidth<e:!1),u=d.useCallback(()=>{if(!t||typeof window=="undefined")return;const l=window.innerWidth,c=l<e;a(l),c!==o&&(i(c),s==null||s(c))},[t,e,o,s]);return d.useEffect(()=>{if(!t||typeof window=="undefined")return;const l=window.innerWidth,c=l<e;a(l),i(c),window.addEventListener("resize",u);let f=null;return window.ResizeObserver&&(f=new ResizeObserver(()=>{u()}),f.observe(document.body)),()=>{window.removeEventListener("resize",u),f==null||f.disconnect()}},[t,e,u]),{isMobile:o,viewportWidth:n}}function An({isActive:e,containerRef:s,restoreFocus:t=!0,initialFocusRef:n}){const a=d.useRef(null);d.useEffect(()=>{if(e){if(a.current=document.activeElement,n!=null&&n.current)n.current.focus();else if(s.current){const i=s.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}}else t&&a.current&&(a.current.focus(),a.current=null)},[e,s,n,t]);const o=d.useCallback(i=>{if(!(!e||!s.current)&&i.key==="Tab"){const u=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),l=u[0],c=u[u.length-1];i.shiftKey?document.activeElement===l&&(i.preventDefault(),c==null||c.focus()):document.activeElement===c&&(i.preventDefault(),l==null||l.focus())}},[e,s]);d.useEffect(()=>{if(e)return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e,o])}function Rn({key:e,ctrl:s=!1,shift:t=!1,alt:n=!1,meta:a=!1,onTrigger:o,enabled:i=!0,preventDefault:u=!0}){const l=d.useCallback(c=>{if(!i)return;const f=c.target;if((f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.isContentEditable)&&!s&&!a)return;const g=e.length===1?c.key.toLowerCase()===e.toLowerCase():c.key===e,b=s?c.ctrlKey||c.metaKey:!c.ctrlKey&&!c.metaKey,v=t?c.shiftKey:!c.shiftKey,y=n?c.altKey:!c.altKey,C=a?c.metaKey:!c.metaKey,x=s?(c.ctrlKey||c.metaKey)&&!a:b&&C;g&&x&&v&&y&&(u&&(c.preventDefault(),c.stopPropagation()),o())},[i,e,s,t,n,a,o,u]);d.useEffect(()=>{if(i)return window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}},[i,l])}function Hs({children:e,defaultCollapsed:s=!1,collapsed:t,onCollapseChange:n,onWidthChange:a,onMobileChange:o,exclusiveGroups:i=!1}){const u=Ie(),l=Oe(),c=d.useRef(null),f=t!==void 0,p=()=>{if(f)return t;if(l.storageKey&&l.persistState&&typeof window!="undefined"){const F=localStorage.getItem(`${l.storageKey}-collapsed`);if(F!==null)return F==="true"}return s},g=()=>{if(l.storageKey&&l.persistWidth&&typeof window!="undefined"){const F=localStorage.getItem(`${l.storageKey}-width`);if(F!==null){const P=parseInt(F,10);if(!isNaN(P))return P}}return At(u.contentWidth)},[b,v]=d.useState(p),[y,C]=d.useState({}),{isMobile:x}=Tn({mobileBreakpoint:l.mobileBreakpoint,onMobileChange:F=>{o==null||o(F),F&&l.mobileVariant==="collapse"&&!f&&v(!0)},enabled:l.responsive}),{width:w,isResizing:N,startResize:h,setWidth:k}=En({initialWidth:g(),minWidth:l.minWidth,maxWidth:l.maxWidth,snapPoints:l.snapPoints,onWidthChange:F=>{a==null||a(F),l.storageKey&&l.persistWidth&&typeof window!="undefined"&&localStorage.setItem(`${l.storageKey}-width`,String(F))},enabled:l.resizable&&!x});An({isActive:x&&l.mobileVariant==="overlay"&&!b,containerRef:c,restoreFocus:!0});const S=f?t:b,R=d.useCallback(F=>{f||v(F),n==null||n(F)},[f,n]),j=d.useCallback(()=>{R(!S)},[S,R]),$=$n(l.keyboardShortcut);Rn({key:$.key,ctrl:$.ctrl,shift:$.shift,alt:$.alt,meta:$.meta,onTrigger:j,enabled:l.enableKeyboardShortcut});const E=d.useCallback(F=>{k(F)},[k]),T=d.useCallback(F=>{C(i?P=>{const q=P[F]===!1,W={},ne=new Set([...Object.keys(P),F]);return q?ne.forEach(se=>{W[se]=!0}):ne.forEach(se=>{W[se]=se!==F}),W}:P=>L(D({},P),{[F]:!P[F]}))},[i]),I=d.useCallback((F,P)=>{C(K=>L(D({},K),{[F]:P}))},[]);d.useEffect(()=>{f&&t!==b&&v(t)},[f,t,b]),d.useEffect(()=>{l.storageKey&&l.persistState&&typeof window!="undefined"&&!f&&localStorage.setItem(`${l.storageKey}-collapsed`,String(b))},[l.storageKey,l.persistState,b,f]);const _=d.useMemo(()=>({collapsed:S,toggle:j,setCollapsed:R,currentWidth:w,setWidth:E,isMobile:x,isResizing:N,startResize:h,groupStates:y,toggleGroup:T,setGroupCollapsed:I,sidebarRef:c}),[S,j,R,w,E,x,N,h,y,T,I]);return r.jsx(Bt.Provider,{value:_,children:e})}function Us({children:e,variant:s,navigationWidth:t,contentWidth:n,animationDuration:a,animationEasing:o,mode:i,resizable:u,minWidth:l,maxWidth:c,snapPoints:f,responsive:p,mobileBreakpoint:g,mobileVariant:b,overlayBackdrop:v,persistState:y,persistWidth:C,storageKey:x,keyboardShortcut:w,enableKeyboardShortcut:N,defaultCollapsed:h,collapsed:k,onCollapseChange:S,onWidthChange:R,onMobileChange:j,exclusiveGroups:$}){return r.jsx(Vs,{variant:s,navigationWidth:t,contentWidth:n,animationDuration:a,animationEasing:o,children:r.jsx(Bs,{mode:i,resizable:u,minWidth:l,maxWidth:c,snapPoints:f,responsive:p,mobileBreakpoint:g,mobileVariant:b,overlayBackdrop:v,persistState:y,persistWidth:C,storageKey:x,keyboardShortcut:w,enableKeyboardShortcut:N,children:r.jsx(Hs,{defaultCollapsed:h,collapsed:k,onCollapseChange:S,onWidthChange:R,onMobileChange:j,exclusiveGroups:$,children:e})})})}const Ht=d.createContext(null);function qs(){return d.useContext(Ht)}function Gs(){const e=d.useContext(Ht);if(!e)throw new Error("useSidebarSlotRequired must be used within SidebarSlotProvider");return e}function Dn({children:e,defaultSlot:s=null}){const[t,n]=d.useState(s),a=d.useRef(new Map),o=d.useCallback((l,c)=>{a.current.set(l,c)},[]),i=d.useCallback(l=>{a.current.delete(l)},[]),u=d.useMemo(()=>({activeSlot:t,setActiveSlot:n,slots:a.current,registerSlot:o,unregisterSlot:i}),[t,o,i]);return r.jsx(Ht.Provider,{value:u,children:e})}const Ut=d.createContext(null);function sl(){return d.useContext(Ut)}function Ks(){const e=d.useContext(Ut);return e||{showMainToggle:!0,mainTogglePosition:"floating"}}function Ys(t){var n=t,{className:e=""}=n,s=B(n,["className"]);const{currentWidth:a,setWidth:o,isResizing:i,startResize:u}=Me(),{resizable:l}=Oe();return l?r.jsxs("div",L(D({className:`
387
- group
388
- absolute
389
- top-0
390
- right-0
391
- w-1
392
- h-full
393
- cursor-col-resize
394
- hover:bg-indigo-500/50
395
- active:bg-indigo-600
396
- transition-colors
397
- duration-150
398
- z-10
399
- flex
400
- items-center
401
- justify-center
402
- ${i?"bg-indigo-600":""}
403
- ${e}
404
- `,onMouseDown:u,role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar","aria-valuenow":a,tabIndex:0,onKeyDown:c=>{if(c.key==="ArrowLeft"||c.key==="ArrowRight"){c.preventDefault();const f=c.key==="ArrowLeft"?-10:10;o(a+f)}}},s),{children:[r.jsx("div",{className:`
405
- w-0.5
406
- h-8
407
- bg-gray-400
408
- rounded-full
409
- opacity-0
410
- group-hover:opacity-100
411
- transition-opacity
412
- ${i?"opacity-100":""}
413
- `}),r.jsx(Mo,{className:`
414
- h-4
415
- w-4
416
- text-gray-400
417
- opacity-0
418
- group-hover:opacity-100
419
- transition-opacity
420
- absolute
421
- ${i?"opacity-100":""}
422
- `,"aria-hidden":"true"})]})):null}function Xs(o){var i=o,{visible:e,onBackdropClick:s,className:t="",style:n}=i,a=B(i,["visible","onBackdropClick","className","style"]);const{collapsed:u,setCollapsed:l,isMobile:c}=Me(),{animationDuration:f}=Ie(),{mobileVariant:p,overlayBackdrop:g}=Oe(),b=c&&p==="overlay",v=e!=null?e:b&&g&&!u,y=()=>{s?s():l(!0)};return v?r.jsx("div",D({className:`
423
- fixed inset-0
424
- bg-black/50
425
- ${m.getZIndexClass("modal-backdrop")}
426
- ${t}
427
- `,style:D({animation:`fadeIn ${f}ms ease-in-out`},n),onClick:y,"aria-hidden":"true","data-testid":"side-navbar-backdrop"},a)):null}const rl={xs:"w-5 h-5",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},nl={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},al={floating:`absolute ${m.getZIndexClass("fixed")}`,top:"absolute top-2 right-2 z-10",bottom:"absolute bottom-2 right-2 z-10",inside:"relative z-10","navigation-top":"relative mt-2 mx-auto z-10","navigation-bottom":"relative mt-auto mb-2 mx-auto z-10"},ol={default:"bg-[var(--color-card)] border border-[var(--color-border)] shadow-sm hover:bg-[var(--color-accent)] hover:shadow",ghost:"bg-transparent hover:bg-[var(--color-accent)] border-0",outline:"bg-transparent border border-[var(--color-border)] hover:bg-[var(--color-accent)]"},il={floating:"right",top:"bottom",bottom:"top",inside:"right","navigation-top":"right","navigation-bottom":"right"};function Zs(y){var C=y,{position:e="floating",offset:s,icon:t,expandIcon:n,collapseIcon:a,size:o="sm",variant:i="default",showTooltip:u=!0,tooltipPosition:l,keyboardShortcut:c,enableKeyboardShortcut:f,className:p="",style:g,"aria-label":b}=C,v=B(C,["position","offset","icon","expandIcon","collapseIcon","size","variant","showTooltip","tooltipPosition","keyboardShortcut","enableKeyboardShortcut","className","style","aria-label"]);var W,ne;const{collapsed:x,toggle:w}=Me(),{animationDuration:N,animationEasing:h,navigationWidth:k,contentWidth:S,minWidth:R}=Ie(),j=Oe(),$=c!=null?c:j.keyboardShortcut,E=f!=null?f:j.enableKeyboardShortcut,T=()=>{if(typeof t=="function")return t(x);if(t)return t;if(x&&n)return n;if(!x&&a)return a;const se=x?Bo:Wo;return r.jsx(se,{className:nl[o],style:{transition:"none",transform:"none",willChange:"auto"}})},I=x?"Expand sidebar":"Collapse sidebar",_=l!=null?l:il[e],F=u?`${x?"Expand":"Collapse"} sidebar${E?` (${$})`:""}`:void 0,P=s?{transform:`translate(${(W=s.x)!=null?W:0}px, ${(ne=s.y)!=null?ne:0}px)`}:{},K=e==="floating"?D({right:"-12px",top:"1rem",transform:"translateY(-50%)",transition:`right ${N}ms ${h}`},P):P,q=r.jsx("button",L(D({type:"button",onClick:w,className:`
428
- ${rl[o]}
429
- ${ol[i]}
430
- rounded-full
431
- flex items-center justify-center
432
- text-[var(--color-neutral-600)] hover:text-[var(--color-neutral-800)]
433
- focus:outline-none focus:ring-2 focus:ring-[var(--color-primary-500)] focus:ring-offset-1
434
- ${e==="floating"?"":al[e]}
435
- ${p}
436
- `,style:D(D(D(D({},e==="floating"?{position:"absolute",right:"-11px",left:"auto"}:{}),e!=="floating"?K:{}),e==="floating"?{zIndex:m.Z_INDEX_TOKENS.fixed.value}:{}),g),"aria-label":b||I,"aria-expanded":!x,"aria-controls":"side-navbar-sidebar","data-position":e},v),{children:T()}));if(e==="floating"){const se=u&&F?r.jsx(O.Tooltip,{content:F,position:_,preservePositioning:!0,children:q}):q;return r.jsx("div",{style:{position:"absolute",right:"0",top:"1rem",transform:"translateY(-50%)",zIndex:m.Z_INDEX_TOKENS.fixed.value},children:se})}return u&&F?r.jsx(O.Tooltip,{content:F,position:_,children:q}):q}const ll={default:"",compact:"text-sm",elevated:"shadow-lg",minimal:"border-0",bordered:"border-2"};function In(o){var i=o,{children:e,className:s="",style:t,"aria-label":n}=i,a=B(i,["children","className","style","aria-label"]);const u=Me(),l=Ie(),c=Oe(),f=Ks(),{collapsed:p,setCollapsed:g,currentWidth:b,isResizing:v,sidebarRef:y,isMobile:C}=u,{variant:x,navigationWidth:w,contentWidth:N,animationDuration:h,animationEasing:k}=l,{mode:S,resizable:R,mobileVariant:j,overlayBackdrop:$}=c,E=typeof w=="number"?`${w}px`:w,T=typeof N=="number"?`${N}px`:N,_=S==="navigation"||p?E:R?`${b}px`:T,[F,P]=d.useState(!1);d.useEffect(()=>{P(!0)},[]);const K=C&&j==="overlay",q=F&&K,W=q?`fixed left-0 top-0 ${m.getZIndexClass("fixed")}`:"relative";return r.jsxs(r.Fragment,{children:[F&&K&&$&&!p&&r.jsx(Xs,{}),r.jsxs("aside",L(D({ref:y,className:M(W,"flex","h-full","overflow-visible",ll[x],q&&p?"-translate-x-full":"translate-x-0",s),style:D({position:q?"fixed":"relative",backgroundColor:"var(--color-muted)",borderRight:"1px solid var(--color-border)",width:_,minWidth:_,transitionProperty:v?"none":"width, min-width, transform",transitionDuration:`${h}ms`,transitionTimingFunction:k},t),role:"complementary","aria-label":n||"Sidebar navigation","aria-expanded":S!=="navigation"?!p:void 0,"data-mode":S,"data-collapsed":p},a),{children:[R&&S!=="navigation"&&!p&&r.jsx(Ys,{}),f.showMainToggle&&S!=="navigation"&&r.jsx(Zs,{position:f.mainTogglePosition}),r.jsx("div",{className:"flex h-full w-full overflow-visible",children:e})]}))]})}const qt=d.createContext(null);function cl(){return d.useContext(qt)}function Gt(){const e=d.useContext(qt);if(!e)throw new Error("useNavbarRequired must be used within a SideNavbar.Navbar component");return e}function Rt(o){var i=o,{icon:e,size:s="sm",variant:t="ghost",className:n=""}=i,a=B(i,["icon","size","variant","className"]);const{collapsed:u,toggle:l}=Gt(),c=()=>{if(e)return typeof e=="function"?e(u):e;const b=u?Pe:it;return r.jsx(b,{className:p[s],style:{transition:"none",transform:"none",willChange:"auto"}})},f={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10"},p={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5"},g={default:"bg-white border border-gray-200 shadow-sm hover:bg-gray-50",ghost:"hover:bg-gray-100",outline:"border border-gray-300 hover:bg-gray-50"};return r.jsx(O.Tooltip,{content:u?"Expand sidebar":"Collapse sidebar",position:"right",children:r.jsx("button",L(D({type:"button",onClick:l,className:`
437
- flex
438
- items-center
439
- justify-center
440
- rounded-md
441
- text-gray-600
442
- hover:text-gray-900
443
- focus:outline-none
444
- focus:ring-2
445
- focus:ring-indigo-500
446
- focus:ring-offset-1
447
- ${f[s]}
448
- ${g[t]}
449
- [&:hover]:!transform-none
450
- ${n}
451
- `,style:{willChange:"auto",transform:"none",transition:"none"},"aria-label":u?"Expand sidebar":"Collapse sidebar","aria-expanded":!u},a),{children:c()}))})}const dl={sm:{container:"w-8 h-8",icon:"w-4 h-4",badge:"min-w-3.5 h-3.5 text-2xs"},md:{container:"w-10 h-10",icon:"w-5 h-5",badge:"min-w-5 h-5 text-xs"},lg:{container:"w-12 h-12",icon:"w-6 h-6",badge:"min-w-5 h-5 text-xs"}},ul={default:"bg-red-500",success:"bg-green-500",warning:"bg-amber-500",danger:"bg-red-600"},fl={tooltip:"",inline:`flex-row ${m.getSpacingClass("sm","gap")} w-full ${m.getSpacingClass("md","px")}`,below:`flex-col ${m.getSpacingClass("1.5","gap")}`};function Mn(x){var w=x,{id:e,icon:s,label:t,labelMode:n,showLabel:a=!0,active:o=!1,showTooltip:i=!0,badge:u,badgeVariant:l="default",variant:c="default",size:f="md",href:p,target:g,onClick:b,disabled:v=!1,className:y=""}=w,C=B(w,["id","icon","label","labelMode","showLabel","active","showTooltip","badge","badgeVariant","variant","size","href","target","onClick","disabled","className"]);var K;const{activeItem:N,setActiveItem:h,labelMode:k}=Gt(),S=(K=n!=null?n:k)!=null?K:"tooltip",R=o||e&&N===e,j=dl[f],$=q=>{if(v){q.preventDefault();return}e&&h(e),b==null||b()},E=S!=="tooltip"&&a&&t&&r.jsx("span",{className:M("text-xs","flex-shrink-0","relative z-10",S==="below"&&"text-center",S==="inline"&&"truncate"),style:{willChange:"auto",transform:"none",zIndex:10},children:t}),T=M("relative","flex","items-center",S==="inline"?"justify-start":"justify-center",S==="below"&&"flex-col","rounded-lg","box-border","focus:outline-none","focus:ring-2","focus:ring-[var(--color-primary-500)]","focus:ring-offset-1","w-full","flex-shrink-0","min-w-0","[&>*]:!transition-none","[&>*]:!transform-none",S==="tooltip"?j.container:M(m.getSpacingClass("sm","px"),m.getSpacingClass("1.5","py")),S!=="tooltip"&&fl[S],v?"opacity-50 cursor-not-allowed":"cursor-pointer",y),I={default:R?"bg-[var(--color-primary-100)] text-[var(--color-primary-600)]":v?"text-[var(--color-neutral-400)]":"text-[var(--color-neutral-600)] hover:bg-[var(--color-neutral-100)] hover:text-[var(--color-neutral-900)] [&:hover]:!transform-none",ghost:R?"text-[var(--color-primary-600)]":v?"text-[var(--color-neutral-400)]":"text-[var(--color-neutral-600)] hover:text-[var(--color-neutral-900)] [&:hover]:!transform-none",subtle:R?"bg-[var(--color-neutral-100)] text-[var(--color-neutral-900)]":v?"text-[var(--color-neutral-400)]":"text-[var(--color-neutral-500)] hover:bg-[var(--color-neutral-50)] hover:text-[var(--color-neutral-700)] [&:hover]:!transform-none"},_=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:M("flex-shrink-0",j.icon,"[&>svg]:transition-none","[&>svg]:!transform-none","[&>svg]:!will-change-auto","box-border","flex items-center justify-center",`relative ${m.getZIndexClass("base")}`),style:{minWidth:j.icon==="w-4 h-4"?"1rem":j.icon==="w-5 h-5"?"1.25rem":"1.5rem",minHeight:j.icon==="w-4 h-4"?"1rem":j.icon==="w-5 h-5"?"1.25rem":"1.5rem",willChange:"auto",transform:"none",transition:"none",zIndex:S!=="tooltip"?0:"auto"},children:s}),E,u!=null&&r.jsx("span",{className:M("absolute","-top-1","-right-1","flex","items-center","justify-center","px-1","font-medium","text-white","rounded-full",j.badge,ul[l]),children:u})]}),F={willChange:"auto",transform:"none",transition:"none"},P=p?r.jsx("a",{href:p,target:g,rel:g==="_blank"?"noopener noreferrer":void 0,onClick:$,className:M(T,I[c]),style:F,"aria-label":t,"aria-current":R?"page":void 0,"aria-disabled":v,children:_}):r.jsx("button",L(D({type:"button",onClick:$,disabled:v,className:M(T,I[c]),style:F,"aria-label":t,"aria-current":R?"page":void 0},C),{children:_}));return S==="tooltip"&&i&&t&&!v?r.jsx(O.Tooltip,{content:t,position:"right",children:P}):P}function Fn(n){var a=n,{orientation:e="horizontal",className:s=""}=a,t=B(a,["orientation","className"]);return e==="vertical"?r.jsx("div",D({className:M("w-px","h-6","bg-[var(--color-border)]","mx-auto",s),role:"separator","aria-orientation":"vertical"},t)):r.jsx("div",D({className:M("w-full","h-px","bg-[var(--color-border)]","my-2","flex-shrink-0",s),role:"separator","aria-orientation":"horizontal",style:{willChange:"auto",transform:"none"}},t))}function _n(u){var l=u,{id:e,label:s,collapsible:t=!1,defaultCollapsed:n=!1,children:a,className:o}=l,i=B(l,["id","label","collapsible","defaultCollapsed","children","className"]);const[c,f]=d.useState(n);return r.jsxs("div",L(D({id:e,className:M("flex flex-col",o)},i),{children:[s&&r.jsx("div",{className:M(m.getSpacingClass("sm","px"),m.getSpacingClass("1.5","py"),"text-xs text-gray-500 uppercase tracking-wider",t&&"cursor-pointer hover:text-gray-700"),onClick:t?()=>f(!c):void 0,children:r.jsxs("div",{className:M("flex items-center",m.getSpacingClass("1.5","gap")),children:[" ",t&&r.jsx("span",{className:"shrink-0",children:c?r.jsx(Pe,{className:"w-3 h-3",style:{transition:"none",transform:"none"}}):r.jsx(vs,{className:"w-3 h-3",style:{transition:"none",transform:"none"}})}),r.jsx("span",{children:s})]})}),!c&&r.jsxs("div",{className:"flex flex-col gap-2",children:[" ",a]})]}))}function We(f){var p=f,{children:e,showMainToggle:s,mainTogglePosition:t,showToggle:n=!1,togglePosition:a="bottom",labelMode:o="tooltip",expandedWidth:i=200,className:u="",style:l}=p,c=B(p,["children","showMainToggle","mainTogglePosition","showToggle","togglePosition","labelMode","expandedWidth","className","style"]);const g=Me(),b=Ie(),v=Oe(),y=Ks(),C=d.useRef(null),[x,w]=d.useState(null),[N,h]=d.useState(!1),k=s!=null?s:y.showMainToggle;t!=null||y.mainTogglePosition;const S=o==="inline"&&!g.collapsed,R=S?typeof i=="number"?`${i}px`:i:b.navigationWidth,j=d.useMemo(()=>({collapsed:g.collapsed,toggle:g.toggle,navbarRef:C,activeItem:x,setActiveItem:w,isHovered:N,showInternalToggle:n,togglePosition:a,labelMode:o}),[g.collapsed,g.toggle,x,N,n,a,o]);return k&&v.mode,r.jsx(qt.Provider,{value:j,children:r.jsxs("nav",L(D({ref:C,className:M("relative","flex-shrink-0","flex","flex-col","h-full",S?"items-stretch":"items-center",u),style:D({position:"relative",backgroundColor:"var(--color-card)",borderRight:"1px solid var(--color-border)",width:R,transitionProperty:"width",transitionDuration:`${b.animationDuration}ms`,transitionTimingFunction:b.animationEasing},l),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),"aria-label":"Side navigation"},c),{children:[n&&a==="top"&&r.jsx("div",{className:"flex-shrink-0 p-2",style:{borderBottom:"1px solid var(--color-border)"},children:r.jsx(Rt,{})}),r.jsx("div",{className:M("relative","flex-1","flex","flex-col","overflow-y-auto","overflow-x-hidden","p-2","gap-2","w-full","min-w-0",S?"items-stretch":"items-center","justify-start"),style:{zIndex:1},children:e}),n&&a==="bottom"&&r.jsx("div",{className:"flex-shrink-0 p-2",style:{borderTop:"1px solid var(--color-border)"},children:r.jsx(Rt,{})})]}))})}We.Toggle=Rt;We.Item=Mn;We.Separator=Fn;We.Group=_n;We.displayName="Navbar";const Kt=d.createContext(null);function zn(){return d.useContext(Kt)}function ut(){const e=d.useContext(Kt);if(!e)throw new Error("useSidebarRequired must be used within a SideNavbar.Sidebar component");return e}function Ln(u){var l=u,{title:e,subtitle:s,showBorder:t=!0,children:n,className:a="",style:o}=l,i=B(l,["title","subtitle","showBorder","children","className","style"]);const{collapsed:c,registerHeader:f,unregisterHeader:p}=ut();return d.useEffect(()=>(f(),()=>p()),[f,p]),c?null:r.jsx("div",L(D({className:`
452
- flex-shrink-0
453
- ${m.getSpacingClass("md","px")}
454
- ${m.getSpacingClass("sm","py")}
455
- ${t?`border-b ${m.getColorClass("neutral","DEFAULT","border")}`:""}
456
- bg-gray-50
457
- ${a}
458
- `,style:o},i),{children:n||r.jsxs(r.Fragment,{children:[e&&r.jsx("h2",{className:`
459
- ${m.getTypographyClasses("h4")}
460
- ${m.getColorClass("neutral","dark","text")}
461
- m-0
462
- font-semibold
463
- `,children:e}),s&&r.jsx("p",{className:`
464
- ${m.getTypographyClasses("bodySmall")}
465
- ${m.getColorClass("neutral","DEFAULT","text")}
466
- m-0
467
- mt-1
468
- `,children:s})]})}))}function Pn(i){var u=i,{scrollable:e=!0,padding:s="md",children:t,className:n="",style:a}=u,o=B(u,["scrollable","padding","children","className","style"]);const{collapsed:l,setScrollPosition:c}=ut();if(l)return null;const f=s!=="none"?m.getSpacingClass(s,"p"):"",p=e?"overflow-y-auto overflow-x-hidden":"overflow-hidden",g=e?{scrollbarWidth:m.SIDEBAR_TOKENS.content.scrollbar.width,scrollbarColor:`${m.SIDEBAR_TOKENS.content.scrollbar.color.thumb} ${m.SIDEBAR_TOKENS.content.scrollbar.color.track}`}:{},b=v=>{e&&c(v.currentTarget.scrollTop)};return r.jsx("div",L(D({className:`
469
- flex-1
470
- min-h-0
471
- ${p}
472
- ${f}
473
- ${n}
474
- `,style:D(D({},g),a),onScroll:b},o),{children:t}))}function On(i){var u=i,{padding:e="md",showBorder:s=!0,children:t,className:n="",style:a}=u,o=B(u,["padding","showBorder","children","className","style"]);const{collapsed:l,registerFooter:c,unregisterFooter:f}=ut();if(d.useEffect(()=>(c(),()=>f()),[c,f]),l)return null;const p=e!=="none"?m.getSpacingClass(e,"p"):"";return r.jsx("div",L(D({className:`
475
- flex-shrink-0
476
- ${p}
477
- ${s?`border-t ${m.getColorClass("neutral","DEFAULT","border")}`:""}
478
- bg-gray-50
479
- ${n}
480
- `,style:a},o),{children:t}))}function Wn(c){var f=c,{id:e,title:s,icon:t,actions:n,collapsible:a=!0,defaultCollapsed:o=!1,children:i,className:u=""}=f,l=B(f,["id","title","icon","actions","collapsible","defaultCollapsed","children","className"]);var S;const{collapsed:p,activeGroup:g,setActiveGroup:b}=ut(),{groupStates:v,toggleGroup:y,setGroupCollapsed:C}=Me(),{animationDuration:x}=Ie(),w=d.useRef(!1);if(d.useEffect(()=>{!w.current&&v[e]===void 0&&(w.current=!0,C(e,o))},[e,o,v,C]),p)return null;const N=(S=v[e])!=null?S:o,h=g===e,k=()=>{b(e),a&&y(e)};return r.jsxs("div",L(D({className:`
481
- border-b
482
- border-gray-200
483
- last:border-b-0
484
- ${u}
485
- `},l),{children:[s&&r.jsxs("button",{type:"button",onClick:k,className:`
486
- flex
487
- items-center
488
- justify-between
489
- w-full
490
- ${m.getSpacingClass("md","px")}
491
- ${m.getSpacingClass("2.5","py")}
492
- text-left
493
- transition-colors
494
- duration-150
495
- ${h?"bg-gray-100":"hover:bg-gray-100"}
496
- ${a?"cursor-pointer":"cursor-default"}
497
- `,"aria-expanded":a?!N:void 0,"aria-controls":a?`sidebar-group-${e}`:void 0,children:[r.jsxs("div",{className:"flex items-center gap-2",children:[t&&r.jsx("span",{className:"w-4 h-4 text-gray-500",children:t}),r.jsx("span",{className:"text-sm font-medium text-gray-700",children:s})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[n,a&&r.jsx(ChevronDown,{className:`
498
- w-4
499
- h-4
500
- text-gray-400
501
- transition-transform
502
- ${N?"-rotate-90":"rotate-0"}
503
- `,style:{transitionDuration:`${x}ms`},"aria-hidden":"true"})]})]}),a?r.jsx(O.Collapsible,{open:!N,duration:x,children:r.jsx("div",{id:`sidebar-group-${e}`,className:"px-3 py-2",children:i})}):r.jsx("div",{className:"px-3 py-2",children:i})]}))}function Vn({id:e,children:s}){const{activeSlot:t,registerSlot:n,unregisterSlot:a}=Gs();return d.useEffect(()=>(n(e,s),()=>a(e)),[e,s,n,a]),t!==e?null:r.jsx(r.Fragment,{children:s})}function Bn({fallback:e=null}){const{activeSlot:s,slots:t}=Gs();return!s||!t.has(s)?r.jsx(r.Fragment,{children:e}):r.jsx(r.Fragment,{children:t.get(s)})}function Fe(a){var o=a,{children:e,className:s="",style:t}=o,n=B(o,["children","className","style"]);const i=Me(),u=Ie(),l=d.useRef(null),[c,f]=d.useState(0),[p,g]=d.useState(!1),[b,v]=d.useState(!1),[y,C]=d.useState(null),x=d.useCallback(()=>g(!0),[]),w=d.useCallback(()=>g(!1),[]),N=d.useCallback(()=>v(!0),[]),h=d.useCallback(()=>v(!1),[]),k=d.useMemo(()=>({collapsed:i.collapsed,currentWidth:i.currentWidth,isMobile:i.isMobile,sidebarRef:l,scrollPosition:c,setScrollPosition:f,hasHeader:p,hasFooter:b,registerHeader:x,unregisterHeader:w,registerFooter:N,unregisterFooter:h,activeGroup:y,setActiveGroup:C}),[i.collapsed,i.currentWidth,i.isMobile,c,p,b,x,w,N,h,y]),S=At(u.contentWidth),R=At(u.navigationWidth),j=S-R;return r.jsx(Kt.Provider,{value:k,children:r.jsx("aside",L(D({ref:l,id:"side-navbar-sidebar",className:M("flex","flex-col","h-full","bg-[var(--color-muted)]","border-r","border-[var(--color-border)]","overflow-hidden",s),style:D({width:i.collapsed?0:j,opacity:i.collapsed?0:1,visibility:i.collapsed?"hidden":"visible",transitionProperty:"width, opacity, visibility",transitionDuration:`${u.animationDuration}ms`,transitionTimingFunction:u.animationEasing},t),"aria-hidden":i.collapsed},n),{children:e}))})}Fe.Header=Ln;Fe.Content=Pn;Fe.Footer=On;Fe.Group=Wn;Fe.Slot=Vn;Fe.SlotContent=Bn;function me($){var E=$,{mode:e="full",variant:s="default",navigationWidth:t="56px",width:n="320px",animationDuration:a=300,resizable:o=!1,minWidth:i,maxWidth:u,snapPoints:l,responsive:c=!1,mobileBreakpoint:f=768,mobileVariant:p="collapse",overlayBackdrop:g=!0,storageKey:b,persistWidth:v=!1,defaultCollapsed:y=!1,collapsed:C,onCollapseChange:x,onWidthChange:w,onMobileChange:N,exclusiveGroups:h=!1,showToggle:k=!0,togglePosition:S="floating",children:R}=E,j=B(E,["mode","variant","navigationWidth","width","animationDuration","resizable","minWidth","maxWidth","snapPoints","responsive","mobileBreakpoint","mobileVariant","overlayBackdrop","storageKey","persistWidth","defaultCollapsed","collapsed","onCollapseChange","onWidthChange","onMobileChange","exclusiveGroups","showToggle","togglePosition","children"]);const T=d.useMemo(()=>({showMainToggle:k,mainTogglePosition:S}),[k,S]);return r.jsx(Ut.Provider,{value:T,children:r.jsx(Us,{variant:s,navigationWidth:t,contentWidth:n,animationDuration:a,mode:e,resizable:o,minWidth:i,maxWidth:u,snapPoints:l,responsive:c,mobileBreakpoint:f,mobileVariant:p,overlayBackdrop:g,storageKey:b,persistWidth:v,defaultCollapsed:y,collapsed:C,onCollapseChange:x,onWidthChange:w,onMobileChange:N,exclusiveGroups:h,children:r.jsx(In,L(D({},j),{children:R}))})})}me.Navbar=We;me.Sidebar=Fe;me.Toggle=Zs;me.ResizeHandle=Ys;me.Backdrop=Xs;me.Provider=Us;me.ThemeProvider=Vs;me.ConfigProvider=Bs;me.StateProvider=Hs;me.SlotProvider=Dn;function ml({defaultStates:e={},persist:s=!1,storageKey:t}={}){const n=()=>{if(s&&t&&typeof window!="undefined"){const c=localStorage.getItem(`${t}-groups`);if(c)try{const f=JSON.parse(c);return D(D({},e),f)}catch(f){}}return e},[a,o]=d.useState(n);d.useEffect(()=>{s&&t&&typeof window!="undefined"&&localStorage.setItem(`${t}-groups`,JSON.stringify(a))},[s,t,a]);const i=d.useCallback(c=>{o(f=>L(D({},f),{[c]:!f[c]}))},[]),u=d.useCallback((c,f)=>{o(p=>L(D({},p),{[c]:f}))},[]),l=d.useCallback(()=>{o(e)},[e]);return{groupStates:a,toggleGroup:i,setGroupCollapsed:u,resetGroups:l}}function gl(){const{activeItem:e,setActiveItem:s}=Gt(),t=qs(),n=d.useCallback((a,o)=>{s(a),o&&(t!=null&&t.setActiveSlot)&&t.setActiveSlot(o)},[s,t]);return{activeItem:e,setActiveItem:s,navigate:n}}function pl(){var t,n,a,o;const e=qs(),s=zn();return{activeSlot:(t=e==null?void 0:e.activeSlot)!=null?t:null,setActiveSlot:(n=e==null?void 0:e.setActiveSlot)!=null?n:(()=>{}),scrollPosition:(a=s==null?void 0:s.scrollPosition)!=null?a:0,setScrollPosition:(o=s==null?void 0:s.setScrollPosition)!=null?o:(()=>{})}}function hl(){const e=useSideNavbarThemeRequired(),s=useSideNavbarConfigRequired(),t=useSideNavbarStateRequired();return{theme:e,config:s,state:t}}function Hn({children:e,asChild:s=!1}){const{onOpenChange:t}=Qe();return s&&d.isValidElement(e)?d.cloneElement(e,{onClick:n=>{t(!0),e.props.onClick&&e.props.onClick(n)}}):r.jsx("button",{type:"button",onClick:()=>t(!0),"aria-haspopup":"dialog",children:e})}function Js(i){var u=i,{children:e,size:s="md",closeOnOverlayClick:t=!0,closeOnEscape:n=!0,className:a=""}=u,o=B(u,["children","size","closeOnOverlayClick","closeOnEscape","className"]);const{isOpen:l,onClose:c,titleId:f,descriptionId:p}=Qe(),g=d.useRef(null),b=d.useRef(null);if(d.useEffect(()=>{if(!l)return;const x=setTimeout(()=>{var S;const h=(S=g.current)==null?void 0:S.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),k=h==null?void 0:h[0];k==null||k.focus()},0),w=h=>{n&&h.key==="Escape"&&c()},N=h=>{if(h.key!=="Tab"||!g.current)return;const k=Array.from(g.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(j=>!j.disabled&&j.offsetParent!==null);if(k.length===0){h.preventDefault();return}const S=k[0],R=k[k.length-1];h.shiftKey?document.activeElement===S&&(h.preventDefault(),R.focus()):document.activeElement===R&&(h.preventDefault(),S.focus())};return document.addEventListener("keydown",w),document.addEventListener("keydown",N),()=>{clearTimeout(x),document.removeEventListener("keydown",w),document.removeEventListener("keydown",N)}},[l,c,n]),!l)return null;const v={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-2xl",fullscreen:"max-w-full h-full m-0 rounded-none"},y=x=>{t&&x.target===b.current&&c()},C=r.jsxs("div",{className:`fixed inset-0 ${m.getZIndexClass("modal")} overflow-y-auto`,onClick:y,children:[r.jsx("div",{ref:b,className:"fixed inset-0 bg-black bg-opacity-50 transition-opacity","aria-hidden":"true"}),r.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:r.jsx("div",L(D({ref:g,role:"dialog","aria-modal":"true","aria-labelledby":f,"aria-describedby":p,className:`
504
- relative ${m.getZIndexClass("modal")} w-full
505
- ${v[s]}
506
- bg-white
507
- ${m.getRadiusClass("lg")}
508
- ${m.getShadowClass("xl")}
509
- ${a}
510
- `,tabIndex:-1},o),{children:e}))})]});return typeof window!="undefined"?$e.createPortal(C,document.body):C}function Qs(n){var a=n,{children:e,className:s=""}=a,t=B(a,["children","className"]);return r.jsx("div",L(D({className:`flex flex-col space-y-1.5 p-6 pb-4 ${s}`},t),{children:e}))}function Un(o){var i=o,{as:e="h2",children:s,className:t="",id:n}=i,a=B(i,["as","children","className","id"]);const u=Qe(),l=d.useId(),c=n||u.titleId||l;return r.jsx(e,L(D({id:c,className:`${m.getTypographyClasses("h3")} font-semibold leading-none tracking-tight ${t}`},a),{children:s}))}function qn(a){var o=a,{children:e,className:s="",id:t}=o,n=B(o,["children","className","id"]);const i=Qe(),u=d.useId(),l=t||i.descriptionId||u;return r.jsx("p",L(D({id:l,className:`${m.getTypographyClasses("bodySmall")} text-gray-500 ${s}`},n),{children:e}))}function er(n){var a=n,{children:e,className:s=""}=a,t=B(a,["children","className"]);return r.jsx("div",L(D({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 p-6 pt-4 ${s}`},t),{children:e}))}function Gn({"aria-label":e="Close dialog",className:s="",asChild:t=!1,children:n}){const{onClose:a}=Qe();return t&&d.isValidElement(n)?d.cloneElement(n,{onClick:o=>{a(),n.props.onClick&&n.props.onClick(o)}}):r.jsx(O.Button,{variant:"iconOnly",size:"sm",onClick:a,className:`absolute right-4 top-4 ${s}`,"aria-label":e,children:r.jsx(fe,{className:"h-4 w-4"})})}function pe({children:e,open:s,defaultOpen:t,onOpenChange:n}){const a=d.useId(),o=d.useId();return r.jsx(Br,{open:s,defaultOpen:t,onOpenChange:n,titleId:a,descriptionId:o,children:e})}pe.Trigger=Hn;pe.Content=Js;pe.Header=Qs;pe.Title=Un;pe.Description=qn;pe.Footer=er;pe.Close=Gn;function xl({open:e,defaultOpen:s,onOpenChange:t,title:n,description:a,confirmLabel:o="Confirm",cancelLabel:i="Cancel",variant:u="default",onConfirm:l,onCancel:c,children:f}){const p=()=>{l==null||l(),t==null||t(!1)},g=()=>{c==null||c(),t==null||t(!1)};return r.jsx(pe,{open:e,defaultOpen:s,onOpenChange:t,children:r.jsx(Js,{size:"sm",closeOnOverlayClick:!1,children:f||r.jsxs(r.Fragment,{children:[r.jsxs(Qs,{children:[r.jsx(pe.Title,{children:n}),a&&r.jsx(pe.Description,{children:a})]}),r.jsxs(er,{children:[r.jsx(O.Button,{variant:"outline",onClick:g,children:i}),r.jsx(O.Button,{variant:u==="destructive"?"error":"primary",onClick:p,children:o})]})]})})})}const bl={success:St,error:ys,warning:Go,info:_o},vl={success:"border-success",error:"border-error",warning:"border-warning",info:"border-info"},yl={success:"text-fg-success",error:"text-fg-error",warning:"text-fg-warning",info:"text-fg-info"};function Kn(i){var u=i,{toast:e,onDismiss:s,position:t="top-right",className:n="",style:a}=u,o=B(u,["toast","onDismiss","position","className","style"]);const[l,c]=d.useState(!1),[f,p]=d.useState(!1),g=bl[e.variant];d.useEffect(()=>{if(e.duration===void 0)return;c(!0);const y=setTimeout(()=>{p(!0),setTimeout(()=>{s(e.id)},300)},e.duration);return()=>clearTimeout(y)},[e.duration,e.id,s]),d.useEffect(()=>{const y=setTimeout(()=>c(!0),10);return()=>clearTimeout(y)},[]);const b={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},v=()=>{p(!0),setTimeout(()=>{s(e.id)},300)};return r.jsx("div",L(D({className:`
511
- fixed ${b[t]} ${m.getZIndexClass("toast")}
512
- w-full max-w-sm
513
- transition-all duration-300 ease-in-out
514
- ${l&&!f?"opacity-100 translate-y-0":"opacity-0 -translate-y-2"}
515
- ${f?"opacity-0 translate-y-2":""}
516
- ${n}
517
- `,style:a,role:"alert","aria-live":e.variant==="error"?"assertive":"polite","aria-atomic":"true"},o),{children:r.jsxs("div",{className:`
518
- flex items-start gap-3
519
- p-4
520
- bg-white
521
- ${m.getRadiusClass("lg")}
522
- ${m.getShadowClass("lg")}
523
- border
524
- ${vl[e.variant]}
525
- `,children:[r.jsx("div",{className:`flex-shrink-0 ${yl[e.variant]}`,children:r.jsx(g,{className:"h-5 w-5","aria-hidden":"true"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:`font-medium ${m.getColorClass("neutral","dark","text")}`,children:e.title}),e.description&&r.jsx("div",{className:`mt-1 text-sm ${m.getColorClass("neutral","DEFAULT","text")}`,children:e.description}),e.action&&r.jsx("div",{className:"mt-3",children:r.jsx(O.Button,{variant:"outline",size:"sm",onClick:()=>{var y;(y=e.action)==null||y.onClick(),v()},children:e.action.label})})]}),r.jsx(O.Button,{variant:"iconOnly",size:"sm",onClick:v,className:"flex-shrink-0","aria-label":"Dismiss notification",children:r.jsx(fe,{className:"h-4 w-4"})})]})}))}function wl({position:e="top-right",maxToasts:s}){const{toasts:t,removeToast:n}=bs(),a=s?t.slice(0,s):t;if(a.length===0)return null;const o=r.jsx("div",{className:`fixed inset-0 pointer-events-none ${m.getZIndexClass("toast")}`,"aria-live":"polite","aria-label":"Notifications",children:a.map((i,u)=>{const l=e.includes("top"),c=1+u*5;return r.jsx(Kn,{toast:i,onDismiss:n,position:e,style:{[l?"top":"bottom"]:`${c}rem`}},i.id)})});return typeof window!="undefined"?$e.createPortal(o,document.body):o}function Cl(){const{addToast:e,removeToast:s,clearAll:t}=bs(),n=d.useCallback(c=>e({title:c.title,description:c.description,variant:c.variant||"info",duration:c.duration,action:c.action}),[e]),a=d.useCallback((c,f,p)=>n(D({title:c,description:f,variant:"success"},p)),[n]),o=d.useCallback((c,f,p)=>n(D({title:c,description:f,variant:"error"},p)),[n]),i=d.useCallback((c,f,p)=>n(D({title:c,description:f,variant:"warning"},p)),[n]),u=d.useCallback((c,f,p)=>n(D({title:c,description:f,variant:"info"},p)),[n]),l=d.useCallback((c,f,p,g="info",b)=>n({title:c,description:f,variant:g,duration:b,action:{label:"Undo",onClick:p}}),[n]);return{show:n,success:a,error:o,warning:i,info:u,withUndo:l,dismiss:s,clearAll:t}}function Yn({steps:e,currentStep:s,defaultCurrentStep:t=0,onStepChange:n,onComplete:a,allowNavigation:o=!0,showStepNumbers:i=!0,orientation:u="horizontal",className:l=""}){const[c,f]=d.useState(t),p=s!==void 0,g=p?s:c,b=h=>h<g?"completed":h===g?"active":"pending",v=()=>{if(g<e.length-1){const h=g+1;p||f(h),n==null||n(h)}else a==null||a()},y=()=>{if(g>0){const h=g-1;p||f(h),n==null||n(h)}},C=h=>{o&&(e[h].disabled||(p||f(h),n==null||n(h)))},x=e[g],w=g===0,N=g===e.length-1;return u==="vertical"?r.jsxs("div",{className:`flex gap-4 ${l}`,children:[r.jsx("div",{className:"flex flex-col",children:e.map((h,k)=>{const S=h.status||b(k),R=k===g;return r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("button",{type:"button",onClick:()=>C(k),disabled:!o||h.disabled,className:`
526
- flex
527
- items-center
528
- justify-center
529
- w-10
530
- h-10
531
- ${m.getRadiusClass("full")}
532
- border-2
533
- ${m.getAnimationClass("base")}
534
- ${S==="completed"?"bg-success border-success text-white":S==="active"?"bg-surface-brand border-line-brand text-white":S==="error"?"bg-error border-error text-white":"bg-white border-gray-300 text-gray-400"}
535
- ${!o||h.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
536
- `,children:S==="completed"?r.jsx(ds,{className:"h-5 w-5"}):i?k+1:null}),k<e.length-1&&r.jsx("div",{className:`
537
- w-0.5
538
- h-12
539
- mt-2
540
- ${S==="completed"?"bg-success":"bg-gray-300"}
541
- `})]}),r.jsxs("div",{className:"flex-1 pb-8",children:[r.jsx("button",{type:"button",onClick:()=>C(k),disabled:!o||h.disabled,className:`
542
- text-left
543
- ${R?"font-semibold":"font-medium"}
544
- ${S==="active"?"text-fg-brand":"text-gray-700"}
545
- ${!o||h.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
546
- `,children:h.title}),h.description&&r.jsx("p",{className:"text-sm text-gray-500 mt-1",children:h.description})]})]},h.id)})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("div",{className:`
547
- ${m.getSpacingClass("lg","p")}
548
- border
549
- border-gray-200
550
- ${m.getRadiusClass("lg")}
551
- bg-white
552
- `,children:x.content}),r.jsxs("div",{className:`flex justify-between mt-4 ${m.getSpacingClass("base","gap")}`,children:[r.jsx(O.Button,{variant:"outline",onClick:y,disabled:w,children:"Previous"}),r.jsx(O.Button,{variant:"primary",onClick:v,children:N?"Complete":"Next"})]})]})]}):r.jsxs("div",{className:`space-y-6 ${l}`,children:[r.jsx("div",{className:"flex items-center",children:e.map((h,k)=>{const S=h.status||b(k),R=k===g;return r.jsxs("div",{className:"flex items-center flex-1",children:[r.jsxs("div",{className:"flex flex-col items-center flex-1",children:[r.jsx("button",{type:"button",onClick:()=>C(k),disabled:!o||h.disabled,className:`
553
- flex
554
- items-center
555
- justify-center
556
- w-10
557
- h-10
558
- ${m.getRadiusClass("full")}
559
- border-2
560
- ${m.getAnimationClass("base")}
561
- ${S==="completed"?"bg-success border-success text-white":S==="active"?"bg-surface-brand border-line-brand text-white":S==="error"?"bg-error border-error text-white":"bg-white border-gray-300 text-gray-400"}
562
- ${!o||h.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
563
- `,children:S==="completed"?r.jsx(ds,{className:"h-5 w-5"}):i?k+1:null}),r.jsxs("div",{className:`mt-2 text-center ${m.getSpacingClass("sm","px")}`,children:[r.jsx("p",{className:`
564
- text-sm
565
- font-medium
566
- ${R?"text-fg-brand":"text-gray-600"}
567
- `,children:h.title}),h.description&&r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:h.description})]})]}),k<e.length-1&&r.jsx("div",{className:`flex-1 mx-2 ${m.getSpacingClass("base","mx")}`,children:r.jsx(O.Separator,{className:`
568
- ${S==="completed"?"border-success":"border-gray-300"}
569
- `})})]},h.id)})}),r.jsx("div",{className:`
570
- ${m.getSpacingClass("lg","p")}
571
- border
572
- border-gray-200
573
- ${m.getRadiusClass("lg")}
574
- bg-white
575
- `,children:x.content}),r.jsxs("div",{className:`flex justify-between ${m.getSpacingClass("base","gap")}`,children:[r.jsx(O.Button,{variant:"outline",onClick:y,disabled:w,children:"Previous"}),r.jsx(O.Button,{variant:"primary",onClick:v,children:N?"Complete":"Next"})]})]})}function jl({items:e,orientation:s="vertical",className:t=""}){return s==="horizontal"?r.jsx("div",{className:`flex items-start ${t}`,children:e.map((n,a)=>{const o=n.status||(a===0?"active":a<e.findIndex(u=>u.status==="active")?"completed":"default"),i=a===e.length-1;return r.jsx("div",{className:"flex items-start flex-1",children:r.jsxs("div",{className:"flex flex-col items-center flex-1",children:[r.jsx("div",{className:`
576
- flex
577
- items-center
578
- justify-center
579
- w-10
580
- h-10
581
- ${m.getRadiusClass("full")}
582
- border-2
583
- ${o==="completed"?"bg-success border-success text-white":o==="active"?"bg-surface-brand border-line-brand text-white":o==="error"?"bg-error border-error text-white":"bg-white border-gray-300 text-gray-400"}
584
- `,children:n.icon||(o==="completed"?r.jsx(St,{className:"h-4 w-4"}):a+1)}),!i&&r.jsx("div",{className:`
585
- w-full
586
- h-0.5
587
- mt-2
588
- ${o==="completed"?"bg-success":"bg-gray-300"}
589
- `}),r.jsxs("div",{className:`mt-4 text-center ${m.getSpacingClass("base","px")}`,children:[n.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 mb-1",children:n.timestamp}),r.jsx("h3",{className:"text-sm font-semibold text-gray-900",children:n.title}),n.description&&r.jsx("p",{className:"text-xs text-gray-600 mt-1",children:n.description}),n.content&&r.jsx("div",{className:"mt-2",children:n.content})]})]})},n.id)})}):r.jsx("div",{className:`space-y-0 ${t}`,children:e.map((n,a)=>{const o=n.status||(a===0?"active":a<e.findIndex(u=>u.status==="active")?"completed":"default"),i=a===e.length-1;return r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("div",{className:`
590
- flex
591
- items-center
592
- justify-center
593
- w-10
594
- h-10
595
- ${m.getRadiusClass("full")}
596
- border-2
597
- ${o==="completed"?"bg-success border-success text-white":o==="active"?"bg-surface-brand border-line-brand text-white":o==="error"?"bg-error border-error text-white":"bg-white border-gray-300 text-gray-400"}
598
- `,children:n.icon||(o==="completed"?r.jsx(St,{className:"h-4 w-4"}):a+1)}),!i&&r.jsx("div",{className:`
599
- w-0.5
600
- flex-1
601
- min-h-16
602
- mt-2
603
- ${o==="completed"?"bg-success":"bg-gray-300"}
604
- `})]}),r.jsxs("div",{className:"flex-1 pb-8",children:[n.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 mb-1",children:n.timestamp}),r.jsx("h3",{className:`
605
- text-base
606
- font-semibold
607
- ${o==="active"?"text-fg-brand":"text-gray-900"}
608
- `,children:n.title}),n.description&&r.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n.description}),n.content&&r.jsx("div",{className:"mt-3",children:n.content})]})]},n.id)})})}function kl({items:e,open:s,defaultOpen:t=!1,onOpenChange:n,trigger:a,placeholder:o="Type a command or search...",emptyMessage:i="No commands found",className:u=""}){const[l,c]=d.useState(t),[f,p]=d.useState(""),[g,b]=d.useState(0),v=d.useRef(null),y=d.useRef(null),C=s!==void 0,x=C?s:l,w=e.filter(j=>{var _,F;if(!f)return!0;const $=f.toLowerCase(),E=j.label.toLowerCase().includes($),T=(_=j.description)==null?void 0:_.toLowerCase().includes($),I=(F=j.keywords)==null?void 0:F.some(P=>P.toLowerCase().includes($));return E||T||I}),N=w.reduce((j,$)=>{const E=$.group||"Other";return j[E]||(j[E]=[]),j[E].push($),j},{}),h=d.useCallback(j=>{C||c(j),n==null||n(j),j&&(p(""),b(0),setTimeout(()=>{var $;return($=v.current)==null?void 0:$.focus()},0))},[C,n]),k=j=>{j.action(),h(!1)},S=j=>{if(j.key==="Escape"){h(!1);return}if(j.key==="ArrowDown"){j.preventDefault(),b($=>Math.min($+1,w.length-1));return}if(j.key==="ArrowUp"){j.preventDefault(),b($=>Math.max($-1,0));return}if(j.key==="Enter"){j.preventDefault(),w[g]&&k(w[g]);return}};d.useEffect(()=>{if(y.current&&g>=0){const j=y.current.querySelector(`[data-index="${g}"]`);j&&typeof j.scrollIntoView=="function"&&j.scrollIntoView({block:"nearest",behavior:"smooth"})}},[g]),d.useEffect(()=>{b(0)},[f]),d.useEffect(()=>{const j=$=>{($.metaKey||$.ctrlKey)&&$.key==="k"&&($.preventDefault(),h(!x))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[x,h]);const R=x?r.jsx("div",{className:`
609
- fixed
610
- inset-0
611
- ${m.getZIndexClass("modal-backdrop")}
612
- bg-black
613
- bg-opacity-50
614
- flex
615
- items-start
616
- justify-center
617
- pt-[20vh]
618
- ${m.getAnimationClass("base")}
619
- `,onClick:()=>h(!1),children:r.jsxs("div",{className:`
620
- w-full
621
- max-w-2xl
622
- ${m.getSpacingClass("base","mx")}
623
- bg-white
624
- ${m.getRadiusClass("lg")}
625
- ${m.getShadowClass("xl")}
626
- ${m.getZIndexClass("modal")}
627
- ${m.getAnimationClass("base")}
628
- ${u}
629
- `,onClick:j=>j.stopPropagation(),children:[r.jsxs("div",{className:`
630
- flex
631
- items-center
632
- gap-3
633
- ${m.getSpacingClass("base","p")}
634
- border-b
635
- border-gray-200
636
- `,children:[r.jsx(us,{className:`h-5 w-5 ${m.getColorClass("neutral","DEFAULT","text")}`}),r.jsx(O.Input,{ref:v,value:f,onChange:j=>p(j.target.value),onKeyDown:S,placeholder:o,className:"flex-1 border-0 focus:ring-0",autoFocus:!0}),r.jsxs("div",{className:`
637
- flex
638
- items-center
639
- gap-1
640
- ${m.getSpacingClass("sm","px")}
641
- ${m.getSpacingClass("xs","py")}
642
- ${m.getRadiusClass("sm")}
643
- bg-gray-100
644
- text-xs
645
- text-gray-500
646
- `,children:[r.jsx(yo,{className:"h-3 w-3"}),r.jsx("span",{children:"K"})]})]}),r.jsx("div",{ref:y,className:`
647
- max-h-96
648
- overflow-y-auto
649
- ${m.getSpacingClass("sm","py")}
650
- `,children:Object.keys(N).length===0?r.jsx("div",{className:`
651
- ${m.getSpacingClass("lg","p")}
652
- text-center
653
- text-sm
654
- ${m.getColorClass("neutral","DEFAULT","text")}
655
- `,children:i}):Object.entries(N).map(([j,$])=>r.jsxs("div",{children:[j!=="Other"&&r.jsx("div",{className:`
656
- ${m.getSpacingClass("sm","px")}
657
- ${m.getSpacingClass("xs","py")}
658
- text-xs
659
- font-semibold
660
- ${m.getColorClass("neutral","DEFAULT","text")}
661
- uppercase
662
- tracking-wider
663
- `,children:j}),$.map((E,T)=>{const I=w.indexOf(E),_=I===g;return r.jsxs("button",{type:"button","data-index":I,onClick:()=>k(E),className:`
664
- w-full
665
- flex
666
- items-center
667
- gap-3
668
- ${m.getSpacingClass("base","px")}
669
- ${m.getSpacingClass("md","py")}
670
- text-left
671
- ${m.getAnimationClass("base")}
672
- ${_?"bg-indigo-400":"hover:bg-gray-50"}
673
- `,children:[E.icon&&r.jsx("div",{className:`
674
- ${_?"text-fg-brand":m.getColorClass("neutral","DEFAULT","text")}
675
- `,children:E.icon}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:`
676
- text-sm
677
- font-medium
678
- ${_?"text-fg-brand":"text-gray-900"}
679
- `,children:E.label}),E.description&&r.jsx("div",{className:`text-xs text-gray-500 ${m.getSpacingClass("0.5","mt")}`,children:E.description})]})]},E.id)})]},j))})]})}):null;return r.jsxs(r.Fragment,{children:[a?r.jsx("div",{onClick:()=>h(!0),children:a}):null,typeof window!="undefined"&&$e.createPortal(R,document.body)]})}function Sl({columns:e,data:s,loading:t=!1,onSort:n,sortColumn:a,sortDirection:o,multiSort:i=!1,groups:u=[],onGroupChange:l,groupable:c=!1,resizable:f=!0,reorderable:p=!1,onColumnReorder:g,columnWidths:b,onColumnResize:v,selectable:y=!1,selectedRows:C,onSelectionChange:x,rowId:w,exportable:N=!1,onExport:h,exportFormats:k=["csv","xlsx","json"],pagination:S,filters:R,actions:j,toolbarActions:$,virtualScrolling:E=!1,virtualScrollingOptions:T,emptyMessage:I,emptyStateTitle:_,emptyStateMessage:F,emptyStateIllustration:P,emptyStateAction:K,className:q=""}){const[W,ne]=d.useState(u),[se,A]=d.useState(b||{}),V=d.useMemo(()=>e.map(ee=>L(D({},ee),{width:se[ee.key]||ee.defaultWidth})),[e,se]),Y=ee=>{h?h(ee):ee==="csv"?Z(s,e):ee==="json"&&ie(s)},Z=(ee,z)=>{const G=z.filter(he=>he.exportable!==!1).map(he=>he.label||he.key),Q=ee.map(he=>z.filter(st=>st.exportable!==!1).map(st=>{const ge=he[st.key];return typeof ge=="string"&&ge.includes(",")?`"${ge}"`:ge})),le=[G.join(","),...Q.map(he=>he.join(","))].join(`
680
- `),ue=new Blob([le],{type:"text/csv"}),Ce=URL.createObjectURL(ue),tt=document.createElement("a");tt.href=Ce,tt.download=`export-${Date.now()}.csv`,tt.click(),URL.revokeObjectURL(Ce)},ie=ee=>{const z=JSON.stringify(ee,null,2),G=new Blob([z],{type:"application/json"}),Q=URL.createObjectURL(G),le=document.createElement("a");le.href=Q,le.download=`export-${Date.now()}.json`,le.click(),URL.revokeObjectURL(Q)};return r.jsxs("div",{className:`space-y-4 ${q}`,children:[(N||c||$)&&r.jsxs("div",{className:`
681
- flex
682
- items-center
683
- justify-between
684
- ${m.getSpacingClass("base","p")}
685
- bg-white
686
- border
687
- border-gray-200
688
- rounded-lg
689
- `,children:[r.jsx("div",{className:"flex items-center gap-2",children:c&&r.jsx(O.Button,{variant:"outline",size:"sm",leftIcon:r.jsx(io,{className:"h-4 w-4"}),children:"Group"})}),r.jsxs("div",{className:"flex items-center gap-2",children:[$,N&&r.jsx("div",{className:"flex items-center gap-1",children:k.map(ee=>r.jsx(O.Button,{variant:"outline",size:"sm",leftIcon:r.jsx(Co,{className:"h-4 w-4"}),onClick:()=>Y(ee),children:ee.toUpperCase()},ee))})]})]}),r.jsx(de,{columns:V,data:s,loading:t,onSort:n,sortColumn:a,sortDirection:o,pagination:S,filters:R,selectable:y,selectedRows:C,onSelectionChange:x,rowId:w,actions:j,resizable:f,columnWidths:se,onColumnResize:(ee,z)=>{A(G=>L(D({},G),{[ee]:z})),v==null||v(ee,z)},virtualScrolling:E,virtualScrollingOptions:T,emptyMessage:I,emptyStateTitle:_,emptyStateMessage:F,emptyStateIllustration:P,emptyStateAction:K})]})}function Nl({columns:e,data:s,searchPlaceholder:t="Search...",enableSearch:n=!0,itemsPerPage:a=10,enablePagination:o=!0,actions:i,onRowClick:u,loading:l=!1,emptyMessage:c="No data available"}){const[f,p]=d.useState(""),[g,b]=d.useState(1),v=d.useMemo(()=>e.map(h=>{if(h.accessor||h.header){const k=h.key||(typeof h.accessor=="string"?h.accessor:String(h.accessor)),S=h.label||h.header||"";return L(D({},h),{key:k,label:S})}return h}),[e]),y=d.useMemo(()=>{if(!f.trim())return s;const h=f.toLowerCase();return s.filter(k=>v.some(S=>{const R=k[String(S.key)];return String(R).toLowerCase().includes(h)}))},[s,f,v]),C=d.useMemo(()=>{if(!o)return y;const h=(g-1)*a,k=h+a;return y.slice(h,k)},[y,g,a,o]),x=o?Math.ceil(y.length/a):1,w=h=>{b(h)},N=h=>{p(h),b(1)};return r.jsx(De,{maxWidth:"full",paddingX:"base",paddingY:"base",children:r.jsxs(Xe,{spacing:"md",children:[r.jsxs("div",{className:"flex items-center justify-between gap-4",children:[n&&r.jsx("div",{className:"flex-1 max-w-md",children:r.jsx(Lt,{placeholder:t,value:f,onSearch:N})}),i&&r.jsx("div",{className:"flex gap-2",children:i})]}),r.jsx(de,{columns:v,data:C,loading:l,emptyMessage:c,onRowClick:u?h=>{const k=y.findIndex(S=>S===h);u(h,k>=0?k:C.findIndex(S=>S===h))}:void 0}),o&&x>1&&r.jsx("div",{className:"flex justify-center",children:r.jsx(en,{currentPage:g,totalPages:x,onPageChange:w})}),n&&r.jsxs("div",{className:"text-sm text-gray-600 text-center",children:["Showing ",C.length," of ",y.length," results"]})]})})}function $l({steps:e,onComplete:s,allowBackNavigation:t=!0,showStepNumbers:n=!0}){const[a,o]=d.useState(0),[i,u]=d.useState({}),[l,c]=d.useState({}),f=()=>bt(null,null,function*(){const C=e[a];if(C.validate&&!(yield C.validate())){c(L(D({},l),{[a]:!0}));return}c(L(D({},l),{[a]:!1})),C.onSubmit&&(yield C.onSubmit(i)),a<e.length-1?o(a+1):s&&s(i)}),p=()=>{a>0&&t&&(o(a-1),c(L(D({},l),{[a-1]:!1})))},g=C=>{t&&C<a&&o(C)},b=e[a],v=a===e.length-1,y=l[a]===!0;return r.jsx(De,{maxWidth:"lg",paddingX:"base",paddingY:"lg",children:r.jsxs(Xe,{spacing:"lg",children:[r.jsx(Yn,{steps:e.map((C,x)=>({id:C.id,title:C.title,content:C.content,description:C.description,status:x<a?"completed":x===a?y?"error":"active":"pending"})),currentStep:a,onStepChange:g,allowNavigation:t}),r.jsx("div",{className:"bg-white rounded-lg border p-6",children:r.jsxs(Xe,{spacing:"md",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-semibold",children:b.title}),b.description&&r.jsx("p",{className:"text-gray-600 mt-1",children:b.description})]}),y&&r.jsx("div",{className:"bg-red-50 border border-red-200 rounded p-3",children:r.jsx("p",{className:"text-sm text-red-800",children:"Please fix the errors before proceeding."})}),r.jsx("div",{className:"min-h-48",children:b.fields}),r.jsxs("div",{className:"flex justify-between pt-4 border-t",children:[r.jsx(O.Button,{variant:"outline",onClick:p,disabled:a===0,children:"Back"}),r.jsx(O.Button,{variant:"primary",onClick:f,children:v?"Complete":"Next"})]})]})})]})})}function El({items:e,searchFn:s,filterFn:t,renderItem:n,filters:a=[],searchPlaceholder:o="Search...",emptyMessage:i="No results found",showResultsCount:u=!0}){const[l,c]=d.useState(""),[f,p]=d.useState({}),g=d.useMemo(()=>{let C=e;if(l.trim()&&s){const x=l.toLowerCase();C=C.filter(w=>s(x,w))}return t&&Object.keys(f).length>0&&(C=C.filter(x=>t(f,x))),C},[e,l,f,s,t]),b=(C,x)=>{p(w=>L(D({},w),{[C]:x}))},v=()=>{p({}),c("")},y=l.trim().length>0||Object.keys(f).length>0;return r.jsx(De,{maxWidth:"full",paddingX:"base",paddingY:"base",children:r.jsxs(Xe,{spacing:"md",children:[r.jsx(Nt,{padding:"medium",children:r.jsxs(Xe,{spacing:"md",children:[r.jsx("div",{children:r.jsx(Lt,{placeholder:o,value:l,onSearch:c})}),a.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(C=>{var x;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(O.Text,{className:"text-gray-600 text-sm",children:[C.label,":"]}),r.jsxs("select",{className:"px-3 py-1 border rounded text-sm",value:String(f[C.id]||""),onChange:w=>b(C.id,w.target.value||void 0),children:[r.jsx("option",{value:"",children:"All"}),(x=C.options)==null?void 0:x.map(w=>r.jsx("option",{value:String(w.value||""),children:w.label},w.id))]})]},C.id)})}),y&&r.jsx("div",{children:r.jsx(O.Button,{variant:"outline",size:"sm",onClick:v,children:"Clear Filters"})})]})}),u&&r.jsxs("div",{className:"text-sm text-gray-600",children:["Showing ",g.length," of ",e.length," results",y&&" (filtered)"]}),g.length===0?r.jsx(Nt,{padding:"large",children:r.jsx("div",{className:"text-center text-gray-500",children:r.jsx(O.Text,{children:i})})}):r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:g.map((C,x)=>r.jsx("div",{children:n(C,x)},x))})]})})}function Tl({sidebar:e,children:s,header:t,footer:n,defaultCollapsed:a=!1,sidebarProps:o}){return r.jsxs("div",{className:"flex h-screen overflow-hidden",children:[e&&r.jsx(me,L(D({defaultCollapsed:a},o),{children:e})),r.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[t&&r.jsx("header",{className:"border-b bg-white",children:r.jsx(De,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:t})}),r.jsx("main",{className:"flex-1 overflow-y-auto",children:r.jsx(De,{maxWidth:"xl",paddingX:"base",paddingY:"base",children:s})}),n&&r.jsx("footer",{className:"border-t bg-white",children:r.jsx(De,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:n})})]})]})}exports.Accordion=_i;exports.AlertDialog=xl;exports.Autocomplete=un;exports.AutocompleteList=Pt;exports.AutocompleteOption=Ns;exports.Breadcrumb=Qr;exports.Card=Nt;exports.CircleAlert=ys;exports.ColorPicker=Di;exports.CommandPalette=kl;exports.DashboardLayout=Tl;exports.DataGrid=Sl;exports.DataTablePattern=Nl;exports.DatePicker=Ni;exports.DatePickerCalendar=Ss;exports.DatePickerInput=ks;exports.DatePickerProvider=ms;exports.Dialog=pe;exports.DialogClose=Gn;exports.DialogContent=Js;exports.DialogContext=Dt;exports.DialogDescription=qn;exports.DialogFooter=er;exports.DialogHeader=Qs;exports.DialogProvider=Br;exports.DialogTitle=Un;exports.DialogTrigger=Hn;exports.Drawer=ct;exports.DrawerContent=Es;exports.DrawerFooter=pn;exports.DrawerHeader=gn;exports.Dropdown=sn;exports.EmptyState=tn;exports.Eye=Eo;exports.EyeOff=No;exports.FileUpload=Ai;exports.Form=Jo;exports.FormContext=It;exports.FormField=Qo;exports.FormProvider=qr;exports.FormWizardPattern=$l;exports.Header=et;exports.HeaderActions=Cn;exports.HeaderHamburger=jn;exports.HeaderLogo=yn;exports.HeaderMobileMenu=kn;exports.HeaderNavigation=wn;exports.HeaderProvider=gs;exports.LoaderCircle=Ur;exports.LoginBox=Bi;exports.Menu=dt;exports.MenuContent=xn;exports.MenuItem=Rs;exports.MenuSeparator=bn;exports.MenuTrigger=As;exports.Modal=Hi;exports.MultiSelect=fn;exports.Navbar=We;exports.NavbarContext=qt;exports.NavbarGroup=_n;exports.NavbarItem=Mn;exports.NavbarSeparator=Fn;exports.NavbarToggle=Rt;exports.Navigation=Oi;exports.PageHeader=Vi;exports.Pagination=en;exports.Popover=$s;exports.Rating=Ti;exports.SearchAndFilterPattern=El;exports.SearchInput=Lt;exports.SideNavbar=me;exports.SideNavbarBackdrop=Xs;exports.SideNavbarConfigContext=Vt;exports.SideNavbarConfigProvider=Bs;exports.SideNavbarProvider=Us;exports.SideNavbarResizeHandle=Ys;exports.SideNavbarRoot=In;exports.SideNavbarStateContext=Bt;exports.SideNavbarStateProvider=Hs;exports.SideNavbarThemeContext=Wt;exports.SideNavbarThemeProvider=Vs;exports.SideNavbarToggle=Zs;exports.SideNavbarToggleContext=Ut;exports.Sidebar=Fe;exports.SidebarContent=Pn;exports.SidebarContext=Kt;exports.SidebarFooter=On;exports.SidebarGroup=Wn;exports.SidebarHeader=Ln;exports.SidebarSlot=Vn;exports.SidebarSlotContent=Bn;exports.SidebarSlotContext=Ht;exports.SidebarSlotProvider=Dn;exports.Stepper=Yn;exports.TableActions=zs;exports.TableBody=Ps;exports.TableCell=_s;exports.TableComponent=de;exports.TableContext=Ot;exports.TableEmptyState=Ls;exports.TableFilters=Os;exports.TableHeader=Fs;exports.TableHeaderCell=Is;exports.TableHeaderRow=Ms;exports.TablePagination=Ws;exports.TableProvider=ps;exports.TableRow=Tt;exports.Tabs=Ei;exports.TabsContent=dn;exports.TabsContext=Ft;exports.TabsList=ln;exports.TabsProvider=on;exports.TabsTrigger=cn;exports.TimePicker=Ri;exports.Timeline=jl;exports.Toast=Kn;exports.ToastContainer=wl;exports.ToastContext=xs;exports.X=fe;exports.clampWidth=jt;exports.cn=M;exports.cva=lt;exports.defaultConfigValues=ce;exports.defaultThemeValues=Ye;exports.formatKeyboardShortcut=tl;exports.jsxRuntimeExports=r;exports.parseKeyboardShortcut=$n;exports.parseWidthToPixels=At;exports.useColumnResizing=Xi;exports.useDialogContext=Qe;exports.useDialogContextOptional=eo;exports.useFocusManagement=An;exports.useFormContext=ws;exports.useFormContextOptional=Zo;exports.useFormFieldArray=vi;exports.useGroupState=ml;exports.useHeaderContext=Ds;exports.useKeyboardShortcut=Rn;exports.useNavbar=cl;exports.useNavbarRequired=Gt;exports.useResize=En;exports.useResponsiveSidebar=Tn;exports.useSideNavbarCombined=hl;exports.useSideNavbarConfig=Ji;exports.useSideNavbarConfigRequired=Oe;exports.useSideNavbarContent=pl;exports.useSideNavbarNavigation=gl;exports.useSideNavbarState=Qi;exports.useSideNavbarStateRequired=Me;exports.useSideNavbarTheme=Zi;exports.useSideNavbarThemeRequired=Ie;exports.useSideNavbarToggleContext=sl;exports.useSideNavbarToggleContextRequired=Ks;exports.useSidebar=zn;exports.useSidebarRequired=ut;exports.useSidebarSlot=qs;exports.useSidebarSlotRequired=Gs;exports.useTableContext=we;exports.useTableContextOptional=Ui;exports.useTabsContext=_t;exports.useTabsContextOptional=$i;exports.useToast=Cl;exports.useToastContext=bs;exports.useToastContextOptional=Qa;exports.useVirtualScrolling=Sn;exports.validateWidthBounds=Nn;
690
- //# sourceMappingURL=components-znqlol8t.cjs.map