@pixonui/react 0.1.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.
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/index.d.mts +1483 -0
- package/dist/index.d.ts +1483 -0
- package/dist/index.js +70 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +70 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +70 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';var ue=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),classVarianceAuthority=require('class-variance-authority'),reactDom=require('react-dom'),lucideReact=require('lucide-react');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ue__namespace=/*#__PURE__*/_interopNamespace(ue);function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Hn=ue__namespace.default.forwardRef(({children:e,className:t,leftIcon:r,rightIcon:a,...s},o)=>jsxRuntime.jsxs("button",{ref:o,type:s.type??"button",className:n("group relative inline-flex items-center justify-center gap-2 rounded-2xl px-5 py-3","bg-gradient-to-r from-blue-600 via-purple-600 to-blue-600","text-white font-semibold tracking-tight","shadow-[0_12px_40px_rgba(99,102,241,.45)]","transition-all duration-300","hover:scale-[1.03] hover:shadow-[0_18px_60px_rgba(99,102,241,.6)]","active:scale-[0.98]","disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-2 focus:ring-purple-400/40",t),...s,children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-r from-white/18 via-white/5 to-white/18 opacity-0 blur-lg transition-opacity duration-300 group-hover:opacity-100"}),jsxRuntime.jsxs("span",{className:"relative inline-flex items-center gap-2",children:[r,e,a]})]}));Hn.displayName="PrimaryButton";var rt=ue__namespace.forwardRef(({children:e,...t},r)=>{if(!ue__namespace.isValidElement(e))return null;let a=e;return ue__namespace.cloneElement(a,{...t,...a.props,ref:s=>{typeof r=="function"?r(s):r&&(r.current=s);let{ref:o}=a;typeof o=="function"?o(s):o&&"current"in o&&(o.current=s);},className:n(t.className,a.props.className)})});rt.displayName="Slot";var Bn=classVarianceAuthority.cva("group relative inline-flex items-center justify-center font-semibold tracking-tight transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-purple-400/40 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100 hover:scale-[1.02] active:scale-[0.98]",{variants:{variant:{primary:"bg-gradient-to-r from-blue-600 via-purple-600 to-blue-600 text-white border-transparent",secondary:"bg-zinc-100 text-zinc-900 border border-zinc-200 hover:bg-zinc-200 dark:bg-white/[0.05] dark:text-white dark:border-white/10 dark:hover:bg-white/[0.10] dark:hover:border-white/20",outline:"bg-transparent text-zinc-900 border border-zinc-300 hover:bg-zinc-100 dark:text-white dark:border-white/20 dark:hover:bg-white/[0.05] dark:hover:border-white/30",ghost:"bg-transparent text-zinc-600 hover:text-zinc-900 hover:bg-zinc-100 dark:text-white/80 dark:hover:text-white dark:hover:bg-white/[0.05] border-transparent",danger:"bg-rose-500/10 text-rose-600 border border-rose-500/20 hover:bg-rose-500/20 hover:border-rose-500/30 hover:text-rose-700 dark:text-rose-400 dark:hover:text-rose-300",success:"bg-emerald-500/10 text-emerald-600 border border-emerald-500/20 hover:bg-emerald-500/20 hover:border-emerald-500/30 hover:text-emerald-700 dark:text-emerald-400 dark:hover:text-emerald-300",alert:"bg-amber-500/10 text-amber-600 border border-amber-500/20 hover:bg-amber-500/20 hover:border-amber-500/30 hover:text-amber-700 dark:text-amber-400 dark:hover:text-amber-300"},size:{sm:"h-9 px-3 text-xs gap-1.5",md:"h-11 px-5 text-sm gap-2",lg:"h-14 px-8 text-base gap-3",icon:"h-10 w-10 p-0 flex items-center justify-center"},shape:{default:"rounded-2xl",pill:"rounded-full",square:"rounded-lg"},shadow:{true:"",false:""}},compoundVariants:[{variant:"primary",shadow:true,class:"shadow-[0_12px_40px_rgba(99,102,241,.45)] hover:shadow-[0_18px_60px_rgba(99,102,241,.6)]"},{variant:"secondary",shadow:true,class:"shadow-sm"}],defaultVariants:{variant:"primary",size:"md",shape:"default",shadow:true}}),P=ue__namespace.default.forwardRef(({className:e,variant:t,size:r,shape:a,shadow:s,asChild:o=false,leftIcon:i,rightIcon:l,isLoading:d,children:c,disabled:m,...p},f)=>jsxRuntime.jsxs(o?rt:"button",{ref:f,disabled:m||d,className:n(Bn({variant:t,size:r,shape:a,shadow:s,className:e})),...p,children:[t==="primary"&&!o&&jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-0 rounded-[inherit] bg-gradient-to-r from-white/18 via-white/5 to-white/18 opacity-0 blur-lg transition-opacity duration-300 group-hover:opacity-100"}),jsxRuntime.jsxs("span",{className:"relative inline-flex items-center justify-center",children:[d&&jsxRuntime.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),!d&&i&&jsxRuntime.jsx("span",{className:n("mr-2",r==="sm"&&"mr-1.5"),children:i}),c,!d&&l&&jsxRuntime.jsx("span",{className:n("ml-2",r==="sm"&&"ml-1.5"),children:l})]})]}));P.displayName="Button";var On=ue__namespace.default.forwardRef(({children:e,className:t,leftIcon:r,rightIcon:a,...s},o)=>{let i=ue.useRef(null),l=d=>{let c=i.current;if(!c)return;let m=c.getBoundingClientRect(),p=d.clientX-m.left,f=d.clientY-m.top;c.style.setProperty("--mouse-x",`${p}px`),c.style.setProperty("--mouse-y",`${f}px`);};return ue__namespace.default.useImperativeHandle(o,()=>i.current),jsxRuntime.jsxs("button",{ref:i,onMouseMove:l,type:s.type??"button",className:n("group relative inline-flex items-center justify-center gap-2 rounded-2xl px-6 py-3","bg-zinc-100 border border-zinc-200 text-zinc-900","dark:bg-white/[0.03] dark:border-white/10 dark:text-white","font-semibold tracking-tight overflow-hidden","transition-all duration-300","hover:bg-zinc-200 dark:hover:bg-white/[0.05] hover:scale-[1.02]","active:scale-[0.98]","focus:outline-none focus:ring-2 focus:ring-purple-400/40",t),...s,children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute -inset-px opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.4), transparent 40%)"}}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute -inset-px rounded-2xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.6), transparent 40%)",maskImage:"linear-gradient(#fff, #fff), linear-gradient(#fff, #fff)",maskClip:"content-box, border-box",maskComposite:"exclude",WebkitMaskComposite:"xor",padding:"1px"}}),jsxRuntime.jsxs("span",{className:"relative inline-flex items-center gap-2 z-10",children:[r,e,a]})]})});On.displayName="GlowButton";function Fn({accent:e="teal",children:t}){let r={teal:"bg-teal-500/90",amber:"bg-amber-400/95",violet:"bg-violet-500/90",blue:"bg-blue-500/90",rose:"bg-rose-500/90",emerald:"bg-emerald-500/90",indigo:"bg-indigo-500/90"};return jsxRuntime.jsx("div",{className:n("flex h-11 w-11 items-center justify-center rounded-2xl",r[e]??r.teal),children:t})}function Kn({accent:e="teal"}){let t={teal:"from-teal-400/25 via-teal-400/10 to-transparent",amber:"from-amber-300/25 via-amber-300/10 to-transparent",violet:"from-violet-400/25 via-violet-400/10 to-transparent",blue:"from-blue-400/25 via-blue-400/10 to-transparent",rose:"from-rose-400/25 via-rose-400/10 to-transparent",emerald:"from-emerald-400/25 via-emerald-400/10 to-transparent",indigo:"from-indigo-400/25 via-indigo-400/10 to-transparent"};return jsxRuntime.jsx("div",{className:n("pointer-events-none absolute -right-12 top-1/2 h-40 w-48 -translate-y-1/2 rotate-12","bg-gradient-to-l blur-2xl",t[e]??t.teal)})}function Wn({color:e="currentColor"}){return jsxRuntime.jsx("svg",{viewBox:"0 0 120 40",className:"h-6 w-16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:jsxRuntime.jsx("path",{d:"M2 22c10 0 10-10 20-10s10 10 20 10 10-10 20-10 10 10 20 10 10-10 20-10",stroke:e,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.95"})})}var _n=ue__namespace.default.forwardRef(({accent:e="teal",icon:t,value:r,subtext:a,showWave:s=false,onClick:o,className:i,...l},d)=>{let c=ue.useRef(null),m=()=>{let h=c.current;if(!h)return;let v=h.getBoundingClientRect();h.style.setProperty("--x",`${Math.round(v.width/2)}px`),h.style.setProperty("--y",`${Math.round(v.height/2)}px`);},p=h=>{let v=c.current;if(!v)return;let b=v.getBoundingClientRect();v.style.setProperty("--x",`${h.clientX-b.left}px`),v.style.setProperty("--y",`${h.clientY-b.top}px`);},f={teal:"rgba(45,212,191,.95)",amber:"rgba(251,191,36,.95)",violet:"rgba(167,139,250,.95)",blue:"rgba(96,165,250,.95)",rose:"rgba(251,113,133,.95)",emerald:"rgba(52,211,153,.95)",indigo:"rgba(129,140,248,.95)"},g=f[e]??f.teal;return jsxRuntime.jsxs("div",{ref:h=>{c.current=h,typeof d=="function"?d(h):d&&(d.current=h);},onMouseEnter:m,onMouseMove:p,onClick:o,className:n("group relative overflow-hidden rounded-2xl","bg-white border border-gray-200 shadow-sm","dark:bg-transparent dark:bg-gradient-to-b dark:from-white/[0.06] dark:to-white/[0.03]","dark:border-white/[0.10]","dark:shadow-[0_18px_55px_rgba(0,0,0,.55)]","transition-transform duration-300 hover:scale-[1.015]",o&&"cursor-pointer",i),...l,children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(180px at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.16), transparent 60%)"}}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(220px_140px_at_18%_18%,rgba(255,255,255,.08),transparent_60%)]"}),jsxRuntime.jsx(Kn,{accent:e}),jsxRuntime.jsxs("div",{className:"relative p-5",children:[jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-4",children:jsxRuntime.jsx(Fn,{accent:e,children:t})}),jsxRuntime.jsxs("div",{className:"mt-4 flex items-end justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate text-2xl font-semibold tracking-tight text-gray-900 dark:text-white",children:r}),a?jsxRuntime.jsx("div",{className:"mt-1 text-sm text-gray-500 dark:text-white/45",children:a}):null]}),s?jsxRuntime.jsx(Wn,{color:g}):null]})]})]})});_n.displayName="MetricCard";var U=ue__namespace.default.forwardRef(({as:e="p",variant:t="default",size:r="base",weight:a="normal",code:s=false,className:o,children:i,...l},d)=>jsxRuntime.jsx(e,{ref:d,className:n("leading-relaxed transition-colors duration-200",s&&"font-mono bg-zinc-100 dark:bg-white/[0.03] px-1.5 py-0.5 rounded text-[0.9em]",{"text-zinc-900 dark:text-white":t==="default","text-zinc-500 dark:text-zinc-400":t==="muted","text-zinc-400 dark:text-zinc-500":t==="subtle","text-lg md:text-xl text-zinc-600 dark:text-zinc-300 font-light":t==="lead","text-rose-600 dark:text-rose-400":t==="error","text-emerald-600 dark:text-emerald-400":t==="success","text-amber-600 dark:text-amber-400":t==="warning","text-sky-600 dark:text-sky-400":t==="info","text-xs":r==="xs","text-sm":r==="sm","text-base":r==="base","text-lg":r==="lg","text-xl":r==="xl","text-2xl":r==="2xl","font-light":a==="light","font-normal":a==="normal","font-medium":a==="medium","font-semibold":a==="semibold","font-bold":a==="bold"},o),...l,children:i}));U.displayName="Text";var Ke=ue__namespace.default.forwardRef(({as:e="h2",weight:t="bold",className:r,children:a,...s},o)=>jsxRuntime.jsx(e,{ref:o,className:n("tracking-tight text-zinc-900 dark:text-white transition-colors duration-200",{"text-4xl md:text-5xl lg:text-6xl":e==="h1","text-3xl md:text-4xl":e==="h2","text-2xl md:text-3xl":e==="h3","text-xl md:text-2xl":e==="h4","text-lg md:text-xl":e==="h5","text-base md:text-lg":e==="h6"},{"font-normal":t==="normal","font-medium":t==="medium","font-semibold":t==="semibold","font-bold":t==="bold","font-extrabold":t==="extrabold","font-black":t==="black"},r),...s,children:a}));Ke.displayName="Heading";var qn=ue__namespace.default.forwardRef(({from:e="from-blue-500",to:t="to-purple-500",via:r,direction:a="r",animate:s=false,className:o,children:i,...l},d)=>jsxRuntime.jsx("span",{ref:d,className:n("bg-clip-text text-transparent bg-gradient-to-"+a,e,t,r,s&&"animate-gradient bg-[length:200%_auto]",o),...l,children:i}));qn.displayName="TextGradient";var Zn=ue__namespace.default.forwardRef(({shimmerColor:e="rgba(255,255,255,0.3)",duration:t="2s",baseColor:r="currentColor",className:a,children:s,...o},i)=>jsxRuntime.jsx("span",{ref:i,className:n("inline-block bg-clip-text text-transparent animate-shimmer will-change-[background-position]",a),style:{backgroundImage:`linear-gradient(90deg, ${r} 0%, ${r} 40%, ${e} 50%, ${r} 60%, ${r} 100%)`,backgroundSize:"200% 100%",animationDuration:t,animationIterationCount:"infinite",animationTimingFunction:"linear"},...o,children:s}));Zn.displayName="ShinyText";function Be(e={threshold:.1,rootMargin:"0px",enabled:true}){let t=ue.useRef(null),[r,a]=ue.useState(false),[s,o]=ue.useState(false),{enabled:i=true}=e;return ue.useEffect(()=>{if(!i)return;let l=t.current;if(!l)return;let d=new IntersectionObserver(([c])=>{c&&c.isIntersecting?(a(true),o(true)):a(false);},e);return d.observe(l),()=>{d.disconnect();}},[e.threshold,e.rootMargin,e.root,i]),{ref:t,isInView:r,hasAnimated:s}}function Sa({children:e,direction:t="up",duration:r=.5,delay:a=0,boxColor:s="bg-blue-500",className:o,...i}){let{ref:l,hasAnimated:d}=Be({threshold:.2}),c={up:"translate-y-full",down:"-translate-y-full",left:"translate-x-full",right:"-translate-x-full"};return jsxRuntime.jsxs("div",{ref:l,className:n("relative overflow-hidden inline-block",o),...i,children:[jsxRuntime.jsx("div",{className:n("transition-all ease-out",d?"translate-x-0 translate-y-0 opacity-100":n("opacity-0",c[t])),style:{transitionDuration:`${r}s`,transitionDelay:`${a}s`},children:e}),jsxRuntime.jsx("div",{className:n("absolute inset-0 z-10 transition-transform ease-in-out",s,d?t==="left"||t==="right"?"scale-x-0":"scale-y-0":"scale-100"),style:{transitionDuration:`${r}s`,transitionDelay:`${a}s`,transformOrigin:t==="up"?"top":t==="down"?"bottom":t==="left"?"left":"right"}})]})}var os=({title:e,highlight:t,subtitle:r,gradient:a="from-blue-400 via-indigo-500 to-purple-600",animate:s=true,glow:o=true,className:i,...l})=>{let d=jsxRuntime.jsxs("div",{className:n("flex flex-col items-center text-center space-y-6",i),...l,children:[jsxRuntime.jsxs("h1",{className:"text-5xl md:text-7xl font-bold tracking-tight text-white leading-tight",children:[e," ",t&&jsxRuntime.jsxs("span",{className:"relative inline-block",children:[jsxRuntime.jsx("span",{className:n("bg-clip-text text-transparent bg-gradient-to-r",a),children:t}),o&&jsxRuntime.jsx("span",{className:n("absolute inset-0 blur-3xl opacity-40 -z-10 bg-gradient-to-r",a),"aria-hidden":"true",children:t})]})]}),r&&jsxRuntime.jsx("p",{className:"text-lg md:text-xl text-white/50 max-w-2xl mx-auto leading-relaxed",children:r})]});return s?jsxRuntime.jsx(Sa,{direction:"up",duration:1,children:d}):d};os.displayName="HeroText";var ns=({text:e,delay:t=.05,className:r,...a})=>{let s=e.split("");return jsxRuntime.jsxs("div",{className:n("flex flex-wrap justify-center overflow-hidden py-2",r),...a,children:[s.map((o,i)=>jsxRuntime.jsx("span",{className:"inline-block animate-pullup opacity-0",style:{animation:"pullup 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards",animationDelay:`${i*t}s`,whiteSpace:o===" "?"pre":"normal"},children:o},i)),jsxRuntime.jsx("style",{children:`
|
|
2
|
+
@keyframes pullup {
|
|
3
|
+
from {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
transform: translateY(100%);
|
|
6
|
+
}
|
|
7
|
+
to {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translateY(0);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`})]})};ns.displayName="LetterPullup";var Y=ue__namespace.default.forwardRef(({className:e,children:t,required:r,...a},s)=>jsxRuntime.jsxs("label",{ref:s,className:n("text-sm font-medium leading-none text-gray-700 dark:text-white/80 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...a,children:[t,r&&jsxRuntime.jsx("span",{className:"ml-1 text-rose-500",children:"*"})]}));Y.displayName="Label";var ms=classVarianceAuthority.cva("w-full rounded-2xl bg-gray-50 dark:bg-white/[0.04] px-4 py-3 border border-gray-200 dark:border-white/[0.10] text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-white/30 focus:outline-none focus:ring-2 focus:ring-purple-400/30 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200",{variants:{hasError:{true:"border-rose-400/25 focus:ring-rose-300/25",false:""},hasLeftIcon:{true:"pl-10",false:""},hasRightIcon:{true:"pr-10",false:""}},defaultVariants:{hasError:false,hasLeftIcon:false,hasRightIcon:false}}),ft=ue__namespace.default.forwardRef(({className:e,containerClassName:t,label:r,error:a,leftIcon:s,rightIcon:o,id:i,...l},d)=>{let c=i||ue__namespace.default.useId(),m=!!a;return jsxRuntime.jsxs("div",{className:n("flex flex-col gap-1.5",t),children:[r&&jsxRuntime.jsx(Y,{htmlFor:c,required:l.required,children:r}),jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 dark:text-white/35",children:s}),jsxRuntime.jsx("input",{ref:d,id:c,className:n(ms({hasError:m,hasLeftIcon:!!s,hasRightIcon:!!o,className:e})),...l}),o&&jsxRuntime.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:o})]}),a&&jsxRuntime.jsx("p",{className:"text-xs text-rose-400 animate-in slide-in-from-top-1 fade-in duration-200",children:a})]})});ft.displayName="TextInput";var Cr=ue__namespace.default.forwardRef(({className:e,label:t,error:r,id:a,disabled:s,checked:o,defaultChecked:i,onChange:l,...d},c)=>{let m=a||ue__namespace.default.useId(),[p,f]=ue__namespace.default.useState(i||o||false);ue__namespace.default.useEffect(()=>{o!==void 0&&f(o);},[o]);let g=()=>{if(s)return;let h=!p;f(h),l&&l({target:{checked:h}});};return jsxRuntime.jsxs("div",{className:n("flex flex-col gap-1.5",e),children:[jsxRuntime.jsxs("button",{ref:c,type:"button",id:m,role:"checkbox","aria-checked":p,"aria-label":t,onClick:g,disabled:s,className:n("flex items-center gap-3 rounded-2xl border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.03] px-4 py-3","hover:bg-gray-100 dark:hover:bg-white/[0.04] transition-colors",s&&"opacity-50 cursor-not-allowed"),...d,children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:n("grid h-6 w-6 place-items-center rounded-lg border",p?"border-emerald-400/30 bg-emerald-400/15":"border-gray-300 dark:border-white/10 bg-white dark:bg-white/[0.02]"),children:p?jsxRuntime.jsx("svg",{className:"h-4 w-4 text-emerald-200",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):null}),t&&jsxRuntime.jsx("span",{className:"text-sm text-gray-700 dark:text-white/70",children:t})]}),r&&jsxRuntime.jsx("p",{className:"text-xs text-rose-500 mt-1 ml-1",children:r})]})});Cr.displayName="Checkbox";var Lr=ue__namespace.default.forwardRef(({className:e,label:t,error:r,id:a,disabled:s,checked:o,defaultChecked:i,onChange:l,...d},c)=>{let m=a||ue__namespace.default.useId(),[p,f]=ue__namespace.default.useState(i||o||false);ue__namespace.default.useEffect(()=>{o!==void 0&&f(o);},[o]);let g=()=>{if(s)return;let h=!p;f(h),l&&l({target:{checked:h}});};return jsxRuntime.jsxs("div",{className:n("flex flex-col gap-1.5",e),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("button",{type:"button",id:m,role:"switch","aria-checked":p,onClick:g,disabled:s,className:n("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-black disabled:cursor-not-allowed disabled:opacity-50",p?"bg-emerald-500":"bg-gray-200 dark:bg-white/[0.06]"),...d,children:jsxRuntime.jsx("span",{className:n("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform",p?"translate-x-5":"translate-x-0")})}),t&&jsxRuntime.jsx(Y,{htmlFor:m,className:"cursor-pointer select-none text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",onClick:g,children:t})]}),r&&jsxRuntime.jsx("p",{className:"text-xs text-rose-500 mt-1 ml-1",children:r})]})});Lr.displayName="Switch";var Dr=ue__namespace.default.forwardRef(({label:e,name:t,options:r,value:a,defaultValue:s,onChange:o,placeholder:i="Select an option",error:l,disabled:d,className:c},m)=>{let[p,f]=ue.useState(false),[g,h]=ue.useState(s),[v,b]=ue.useState(-1),u=ue.useRef(null),x=ue__namespace.default.useId(),y=a!==void 0,k=y?a:g,w=r.find(T=>T.value===k);ue.useEffect(()=>{if(p){let T=r.findIndex(R=>R.value===k);b(T!==-1?T:0);}else b(-1);},[p,k,r]),ue.useEffect(()=>{let T=R=>{u.current&&!u.current.contains(R.target)&&f(false);};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);let N=T=>{d||(y||h(T),o?.(T),f(false));},M=T=>{d||(T.key==="Enter"||T.key===" "?(T.preventDefault(),p&&v!==-1?N(r[v].value):f(true)):T.key==="Escape"?f(false):T.key==="ArrowDown"?(T.preventDefault(),p?b(R=>(R+1)%r.length):f(true)):T.key==="ArrowUp"?(T.preventDefault(),p?b(R=>(R-1+r.length)%r.length):f(true)):T.key==="Home"?(T.preventDefault(),p&&b(0)):T.key==="End"&&(T.preventDefault(),p&&b(r.length-1)));};return jsxRuntime.jsxs("div",{ref:u,className:n("flex flex-col gap-1.5 relative",c),children:[e&&jsxRuntime.jsx(Y,{htmlFor:x,className:n(d&&"opacity-50 cursor-not-allowed"),children:e}),jsxRuntime.jsxs("div",{ref:m,id:x,role:"combobox","aria-expanded":p,"aria-haspopup":"listbox","aria-controls":`${x}-listbox`,"aria-disabled":d,tabIndex:d?-1:0,onClick:()=>!d&&f(!p),onKeyDown:M,className:n("w-full appearance-none rounded-2xl bg-gray-50 dark:bg-white/[0.04] px-4 py-3","border border-gray-200 dark:border-white/[0.10]","text-gray-900 dark:text-white flex items-center","focus:outline-none focus:ring-2 focus:ring-purple-400/30","hover:bg-gray-100 dark:hover:bg-white/[0.05] cursor-pointer",d&&"cursor-not-allowed opacity-50 hover:bg-gray-50 dark:hover:bg-white/[0.04]",p&&"border-gray-300 dark:border-white/20 ring-2 ring-purple-400/20",l&&"border-rose-400/25 focus:ring-rose-300/25"),children:[jsxRuntime.jsx("span",{className:n("block truncate",!w&&"text-gray-400 dark:text-white/20"),children:w?w.label:i}),jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n("absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 dark:text-white/40 transition-transform duration-200",p&&"rotate-180"),children:jsxRuntime.jsx("path",{d:"m6 9 6 6 6-6"})})]}),p&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-[#0A0A0A] p-1 shadow-xl animate-in fade-in zoom-in-95 duration-100",children:jsxRuntime.jsx("ul",{id:`${x}-listbox`,role:"listbox","aria-activedescendant":v!==-1?`${x}-option-${v}`:void 0,className:"max-h-60 overflow-auto p-1 flex flex-col gap-2",children:r.map((T,R)=>jsxRuntime.jsx("li",{id:`${x}-option-${R}`,role:"option","aria-selected":k===T.value,onClick:()=>N(T.value),onMouseEnter:()=>b(R),className:n("w-full rounded-2xl px-3 py-2 text-left text-sm transition-colors cursor-pointer","hover:bg-gray-100 dark:hover:bg-white/[0.06] hover:text-gray-900 dark:hover:text-white",k===T.value||v===R?"bg-gray-100 dark:bg-white/[0.06] text-gray-900 dark:text-white/90":"text-gray-700 dark:text-white/80"),children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("span",{className:"flex-1 truncate",children:T.label}),k===T.value&&jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-900 dark:text-white",children:jsxRuntime.jsx("polyline",{points:"20 6 9 17 4 12"})})]})},T.value))})}),l&&jsxRuntime.jsx("p",{className:"text-xs text-rose-400 animate-in slide-in-from-top-1 fade-in duration-200",children:l}),jsxRuntime.jsx("input",{type:"hidden",name:t,value:k||""})]})});Dr.displayName="Select";function gt(e,t,r={}){let{side:a="bottom",align:s="center",sideOffset:o=4,alignOffset:i=0,isOpen:l=false}=r,[d,c]=ue.useState({top:0,left:0}),[m,p]=ue.useState(false),f=ue.useCallback(()=>{if(!e.current||!t.current||!l)return;let g=e.current.getBoundingClientRect(),h=t.current.getBoundingClientRect(),v=0,b=0;switch(a){case "top":v=g.top-h.height-o;break;case "bottom":v=g.bottom+o;break;case "left":b=g.left-h.width-o;break;case "right":b=g.right+o;break}if(a==="top"||a==="bottom")switch(s){case "start":b=g.left+i;break;case "center":b=g.left+g.width/2-h.width/2+i;break;case "end":b=g.right-h.width+i;break}else switch(s){case "start":v=g.top+i;break;case "center":v=g.top+g.height/2-h.height/2+i;break;case "end":v=g.bottom-h.height+i;break}let u=8,x=window.innerWidth,y=window.innerHeight;b<u&&(b=u),b+h.width>x-u&&(b=x-h.width-u),v<u&&(v=u),v+h.height>y-u&&(v=y-h.height-u),c({top:v,left:b}),p(true);},[e,t,a,s,o,i,l]);return ue.useLayoutEffect(()=>{if(!l){m&&p(false);return}f();let g=new ResizeObserver(()=>f());return e.current&&g.observe(e.current),t.current&&g.observe(t.current),window.addEventListener("resize",f),window.addEventListener("scroll",f,true),()=>{g.disconnect(),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,true);}},[l,f,e,t]),{position:d,isPositioned:m,updatePosition:f}}var Hr=ue.createContext(void 0);function Ue({children:e,open:t,onOpenChange:r}){let[a,s]=ue.useState(false),o=ue.useRef(null),i=t!==void 0,l=i?t:a,d=c=>{i||s(c),r?.(c);};return jsxRuntime.jsx(Hr.Provider,{value:{isOpen:l,setIsOpen:d,triggerRef:o},children:jsxRuntime.jsx("div",{className:"relative inline-block",children:e})})}function Ye({className:e,children:t,...r}){let a=ue.useContext(Hr);if(!a)throw new Error("PopoverTrigger must be used within Popover");let s=o=>{a.setIsOpen(!a.isOpen),r.onClick?.(o);};return jsxRuntime.jsx("button",{ref:a.triggerRef,type:"button","aria-haspopup":"dialog","aria-expanded":a.isOpen?"true":"false",onClick:s,className:n("inline-flex items-center justify-center",e),...r,children:t})}function je({className:e,children:t,align:r="center",sideOffset:a=4,...s}){let o=ue.useContext(Hr);if(!o)throw new Error("PopoverContent must be used within Popover");let i=ue.useRef(null),{position:l,isPositioned:d}=gt(o.triggerRef,i,{side:"bottom",align:r,sideOffset:a,isOpen:o.isOpen});if(ue.useEffect(()=>{if(o.isOpen){let m=p=>{i.current&&!i.current.contains(p.target)&&o.triggerRef.current&&!o.triggerRef.current.contains(p.target)&&o.setIsOpen(false);};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m);}}},[o.isOpen,o.setIsOpen,o.triggerRef]),!o.isOpen)return null;let c=()=>{let m=l.top>(o.triggerRef.current?.getBoundingClientRect().top||0)?"bottom":"top";return m==="bottom"?r==="start"?"top left":r==="end"?"top right":"top center":m==="top"?r==="start"?"bottom left":r==="end"?"bottom right":"bottom center":"center center"};return reactDom.createPortal(jsxRuntime.jsx("div",{ref:i,style:{top:l.top,left:l.left,transformOrigin:c()},className:n("fixed z-50 min-w-[12rem] rounded-2xl border border-gray-200 dark:border-white/10 bg-white/80 dark:bg-white/[0.03] backdrop-blur-xl p-4 shadow-xl outline-none duration-200",d?"animate-in fade-in zoom-in-95 opacity-100":"opacity-0",e),...s,children:t}),document.body)}var Ot=ue.createContext(void 0);function Ir({children:e,value:t,defaultValue:r="",onValueChange:a,filter:s=(i,l)=>i.toLowerCase().includes(l.toLowerCase()),usePopover:o=true}){let[i,l]=ue.useState(r),[d,c]=ue.useState(""),[m,p]=ue.useState(false),[f,g]=ue.useState(new Map),[h,v]=ue.useState(-1),b=t!==void 0,u=b?t:i,x=N=>{b||l(N),a?.(N),p(false),c("");},y=ue__namespace.default.useCallback((N,M,T)=>(g(R=>{let O=new Map(R);return O.set(N,{text:M,value:T}),O}),()=>{g(R=>{let O=new Map(R);return O.delete(N),O});}),[]),k=ue.useMemo(()=>Array.from(f.entries()).filter(([N,M])=>s(M.text,d)).map(([N,M])=>({id:N,value:M.value})),[f,d,s]),w=k.length>0;return ue.useEffect(()=>{v(m?0:-1);},[m]),jsxRuntime.jsx(Ot.Provider,{value:{value:u,onValueChange:x,searchTerm:d,setSearchTerm:c,isOpen:m,setIsOpen:p,registerItem:y,isItemVisible:(N,M)=>s(M,d),hasVisibleItems:w,activeIndex:h,setActiveIndex:v,visibleItems:k},children:o?jsxRuntime.jsx(Ue,{open:m,onOpenChange:p,children:e}):e})}function r0({className:e,children:t,...r}){let a=ue.useContext(Ot);return jsxRuntime.jsxs(Ye,{role:"combobox","aria-expanded":a?.isOpen,"aria-haspopup":"listbox",className:n("flex h-10 w-full items-center justify-between rounded-2xl border border-gray-200 bg-gray-50 px-3 py-2 text-sm text-gray-900 placeholder:text-gray-500 focus:border-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500/20 disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:bg-white/[0.03] dark:text-white dark:placeholder:text-white/40 dark:focus:border-white/20 dark:focus:ring-white/10",e),...r,children:[t,jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-2 opacity-50",children:jsxRuntime.jsx("path",{d:"m6 9 6 6 6-6"})})]})}function a0({className:e,children:t,...r}){return jsxRuntime.jsx(je,{className:n("p-0 w-[200px]",e),align:"start",...r,children:t})}function ja({className:e,placeholder:t="Search...",...r}){let a=ue.useContext(Ot);if(!a)throw new Error("ComboboxInput must be used within Combobox");let s=o=>{o.key==="ArrowDown"?(o.preventDefault(),a.setActiveIndex(i=>(i+1)%a.visibleItems.length)):o.key==="ArrowUp"?(o.preventDefault(),a.setActiveIndex(i=>(i-1+a.visibleItems.length)%a.visibleItems.length)):o.key==="Enter"?(o.preventDefault(),a.activeIndex!==-1&&a.visibleItems[a.activeIndex]&&a.onValueChange(a.visibleItems[a.activeIndex].value)):o.key==="Escape"&&a.setIsOpen(false),r.onKeyDown?.(o);};return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-white/10 px-3",children:[jsxRuntime.jsxs("svg",{className:"mr-2 h-4 w-4 shrink-0 opacity-50",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",children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"8"}),jsxRuntime.jsx("path",{d:"m21 21-4.3-4.3"})]}),jsxRuntime.jsx("input",{className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-sm text-gray-900 dark:text-white outline-none placeholder:text-gray-400 dark:placeholder:text-white/40 disabled:cursor-not-allowed disabled:opacity-50",e),placeholder:t,value:a.searchTerm,onChange:o=>a.setSearchTerm(o.target.value),onKeyDown:s,"aria-autocomplete":"list","aria-activedescendant":a.activeIndex!==-1?a.visibleItems[a.activeIndex]?.id:void 0,...r})]})}function Xa({className:e,children:t,...r}){return jsxRuntime.jsx("div",{role:"listbox",className:n("max-h-[300px] overflow-y-auto overflow-x-hidden p-1",e),...r,children:t})}function Ga({className:e,children:t,...r}){let a=ue.useContext(Ot);if(!a)throw new Error("ComboboxEmpty must be used within Combobox");return a.hasVisibleItems?null:jsxRuntime.jsx("div",{className:n("py-6 text-center text-sm text-gray-500 dark:text-white/40",e),...r,children:t})}function qa({className:e,value:t,children:r,textValue:a,...s}){let o=ue.useContext(Ot);if(!o)throw new Error("ComboboxItem must be used within Combobox");let i=ue__namespace.default.useId(),l=a||(typeof r=="string"?r:t),d=o.isItemVisible(i,l),c=o.value===t,m=o.visibleItems.findIndex(f=>f.id===i),p=o.activeIndex===m;return ue.useEffect(()=>o.registerItem(i,l,t),[i,l,t,o.registerItem]),d?jsxRuntime.jsxs("div",{id:i,role:"option","aria-selected":c,onClick:()=>o.onValueChange(t),onMouseEnter:()=>o.setActiveIndex(m),className:n("relative flex cursor-default select-none items-center rounded-2xl px-3 py-2 text-sm outline-none transition-colors","text-gray-700 dark:text-white/80","aria-selected:bg-gray-100 aria-selected:text-gray-900 dark:aria-selected:bg-white/[0.06] dark:aria-selected:text-white","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-white/[0.06] dark:hover:text-white",(c||p)&&"bg-gray-100 text-gray-900 dark:bg-white/[0.06] dark:text-white",e),...s,children:[jsxRuntime.jsx("svg",{className:n("mr-2 h-4 w-4",c?"opacity-100":"opacity-0"),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",children:jsxRuntime.jsx("polyline",{points:"20 6 9 17 4 12"})}),r]}):null}var d0=ue__namespace.default.forwardRef(({className:e,value:t,defaultValue:r=0,min:a=0,max:s=100,step:o=1,onChange:i,disabled:l,...d},c)=>{let[m,p]=ue.useState(r),f=t!==void 0,g=f?t:m,h=ue.useRef(null),v=(g-a)/(s-a)*100,b=ue.useCallback(k=>{if(l||!h.current)return;let w=h.current.getBoundingClientRect(),N=w.width,M=w.left,T=(k-M)/N*(s-a)+a;T=Math.min(Math.max(T,a),s);let R=Math.round((T-a)/o);T=a+R*o,T=Number(T.toFixed(10)),f||p(T),i?.(T);},[l,f,s,a,i,o]),u=k=>{if(l)return;b(k.clientX);let w=M=>{b(M.clientX);},N=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",N);};document.addEventListener("mousemove",w),document.addEventListener("mouseup",N);},x=k=>{if(l)return;let w=k.touches[0];w&&b(w.clientX);let N=T=>{let R=T.touches[0];R&&b(R.clientX);},M=()=>{document.removeEventListener("touchmove",N),document.removeEventListener("touchend",M);};document.addEventListener("touchmove",N,{passive:false}),document.addEventListener("touchend",M);};return jsxRuntime.jsxs("div",{ref:c,role:"slider","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":g,"aria-disabled":l,tabIndex:l?-1:0,onKeyDown:k=>{if(l)return;let w=g;if(k.key==="ArrowRight"||k.key==="ArrowUp")w=Math.min(g+o,s);else if(k.key==="ArrowLeft"||k.key==="ArrowDown")w=Math.max(g-o,a);else if(k.key==="Home")w=a;else if(k.key==="End")w=s;else return;k.preventDefault(),w!==g&&(f||p(w),i?.(w));},className:n("relative flex w-full touch-none select-none items-center py-4 group",l&&"opacity-50 cursor-not-allowed",e),onMouseDown:u,onTouchStart:x,...d,children:[jsxRuntime.jsx("div",{ref:h,className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-gray-200 dark:bg-white/[0.06] backdrop-blur-sm border border-gray-200 dark:border-white/5",children:jsxRuntime.jsx("div",{className:"absolute h-full bg-gray-900 dark:bg-white transition-none dark:shadow-[0_0_10px_rgba(255,255,255,0.5)]",style:{width:`${v}%`}})}),jsxRuntime.jsx("div",{className:"absolute h-5 w-5 rounded-full border-2 border-gray-900 dark:border-white bg-white dark:bg-black shadow-md dark:shadow-[0_0_15px_rgba(255,255,255,0.5)] transition-transform hover:scale-110 focus:scale-110",style:{left:`calc(${v}% - 10px)`}})]})});var Ls=["Su","Mo","Tu","We","Th","Fr","Sa"],Ps=["January","February","March","April","May","June","July","August","September","October","November","December"];function sr({className:e,value:t,onChange:r,minDate:a,maxDate:s}){let[o,i]=ue.useState(t||new Date),[l,d]=ue.useState(t||new Date),c=(u,x)=>new Date(u,x+1,0).getDate(),m=(u,x)=>new Date(u,x,1).getDay(),p=()=>{d(new Date(l.getFullYear(),l.getMonth()-1,1));},f=()=>{d(new Date(l.getFullYear(),l.getMonth()+1,1));},g=u=>{let x=new Date(l.getFullYear(),l.getMonth(),u);r&&r(x),i(x);},h=u=>t&&t.getDate()===u&&t.getMonth()===l.getMonth()&&t.getFullYear()===l.getFullYear(),v=u=>{let x=new Date;return x.getDate()===u&&x.getMonth()===l.getMonth()&&x.getFullYear()===l.getFullYear()},b=()=>{let u=c(l.getFullYear(),l.getMonth()),x=m(l.getFullYear(),l.getMonth()),y=[];for(let k=0;k<x;k++)y.push(jsxRuntime.jsx("div",{className:"h-9 w-9"},`empty-${k}`));for(let k=1;k<=u;k++){let w=h(k),N=v(k);y.push(jsxRuntime.jsx("button",{onClick:()=>g(k),type:"button",className:n("h-9 w-9 rounded-2xl text-sm font-medium transition-all duration-200","hover:bg-gray-100 dark:hover:bg-white/[0.06] focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/20",w&&"bg-gray-900 text-white dark:bg-white dark:text-black shadow-md dark:shadow-[0_0_15px_rgba(255,255,255,0.3)] hover:bg-gray-800 dark:hover:bg-white/90",!w&&N&&"bg-gray-100 dark:bg-white/[0.03] text-gray-900 dark:text-white border border-gray-200 dark:border-white/10",!w&&!N&&"text-gray-700 dark:text-white/70 hover:text-gray-900 dark:hover:text-white"),children:k},k));}return y};return jsxRuntime.jsxs("div",{className:n("p-4 bg-white dark:bg-black/40 backdrop-blur-xl border border-gray-200 dark:border-white/10 rounded-2xl w-fit",e),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4 px-1",children:[jsxRuntime.jsxs("div",{className:"font-semibold text-gray-900 dark:text-white",children:[Ps[l.getMonth()]," ",jsxRuntime.jsx("span",{className:"text-gray-500 dark:text-white/50",children:l.getFullYear()})]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:p,type:"button",className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/70 hover:text-gray-900 dark:hover:text-white transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:f,type:"button",className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/70 hover:text-gray-900 dark:hover:text-white transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2 text-center",children:Ls.map(u=>jsxRuntime.jsx("div",{className:"h-9 w-9 flex items-center justify-center text-xs font-medium text-gray-400 dark:text-white/40",children:u},u))}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1",children:b()})]})}function T0({value:e,onChange:t,placeholder:r="Pick a date",className:a}){let[s,o]=ue.useState(e),[i,l]=ue.useState(false),d=p=>{o(p),t?.(p),l(false);},c=p=>p.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});return jsxRuntime.jsxs(Ue,{open:i,onOpenChange:l,children:[jsxRuntime.jsxs(Ye,{onMouseMove:p=>{let f=p.currentTarget.getBoundingClientRect(),g=p.clientX-f.left,h=p.clientY-f.top;p.currentTarget.style.setProperty("--x",`${g}px`),p.currentTarget.style.setProperty("--y",`${h}px`);},className:n("group relative flex h-11 w-full items-center justify-between rounded-2xl border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.03] px-4 py-2 text-sm text-gray-900 dark:text-white transition-all duration-200 overflow-hidden","hover:bg-gray-100 dark:hover:bg-white/[0.06] focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/15",!s&&"text-gray-400 dark:text-white/40",a),children:[jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--x) var(--y), rgba(255,255,255,0.06), transparent 40%)"}}),jsxRuntime.jsx("span",{className:"relative z-10",children:s?c(s):r}),jsxRuntime.jsx(lucideReact.Calendar,{className:"relative z-10 h-4 w-4 text-white/40"})]}),jsxRuntime.jsx(je,{className:"w-auto p-0 border-none bg-transparent shadow-none",align:"start",children:jsxRuntime.jsx(sr,{value:s,onChange:d,className:"shadow-2xl shadow-black/50"})})]})}var Te=ue__namespace.default.forwardRef(({className:e,children:t,orientation:r="vertical",scrollbarSize:a="sm",...s},o)=>jsxRuntime.jsx("div",{ref:o,className:n("overflow-auto","[&::-webkit-scrollbar]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:bg-white/[0.06]","[&::-webkit-scrollbar-thumb]:rounded-full","hover:[&::-webkit-scrollbar-thumb]:bg-gray-400 dark:hover:[&::-webkit-scrollbar-thumb]:bg-white/20","[&::-webkit-scrollbar-track]:bg-transparent","[scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.2)_transparent] dark:[scrollbar-color:rgba(255,255,255,0.1)_transparent]",r==="vertical"&&"overflow-y-auto overflow-x-hidden",r==="horizontal"&&"overflow-x-auto overflow-y-hidden",r==="both"&&"overflow-auto",a==="sm"&&"[&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar]:h-1.5",a==="md"&&"[&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar]:h-2.5",a==="lg"&&"[&::-webkit-scrollbar]:w-4 [&::-webkit-scrollbar]:h-4",e),...s,children:t}));Te.displayName="ScrollArea";function O0({value:e,onChange:t,placeholder:r="Pick date & time",className:a}){let[s,o]=ue.useState(e),[i,l]=ue.useState(false),[d,c]=ue.useState(e?e.getHours():12),[m,p]=ue.useState(e?e.getMinutes():0);ue.useEffect(()=>{e&&(o(e),c(e.getHours()),p(e.getMinutes()));},[e]);let f=b=>{let u=new Date(b);u.setHours(d),u.setMinutes(m),o(u),t?.(u);},g=(b,u)=>{let x=parseInt(u,10);if(isNaN(x))return;let y=d,k=m;b==="hours"?(x=Math.max(0,Math.min(23,x)),c(x),y=x):(x=Math.max(0,Math.min(59,x)),p(x),k=x);let w=s||new Date,N=new Date(w);N.setHours(y),N.setMinutes(k),o(N),t?.(N);},h=b=>b.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"});return jsxRuntime.jsxs(Ue,{open:i,onOpenChange:l,children:[jsxRuntime.jsxs(Ye,{onMouseMove:b=>{let u=b.currentTarget.getBoundingClientRect(),x=b.clientX-u.left,y=b.clientY-u.top;b.currentTarget.style.setProperty("--x",`${x}px`),b.currentTarget.style.setProperty("--y",`${y}px`);},className:n("group relative flex h-11 w-full items-center justify-between rounded-2xl border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.03] px-4 py-2 text-sm text-gray-900 dark:text-white transition-all duration-200 overflow-hidden","hover:bg-gray-100 dark:hover:bg-white/[0.06] focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/15",!s&&"text-gray-400 dark:text-white/40",a),children:[jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--x) var(--y), rgba(0,0,0,0.06), transparent 40%)"}}),jsxRuntime.jsx("span",{className:"relative z-10",children:s?h(s):r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-gray-400 dark:text-white/40",children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"h-4 w-4"}),jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"})]})]}),jsxRuntime.jsx(je,{className:"w-auto p-0 border-none bg-transparent shadow-none",align:"start",children:jsxRuntime.jsx("div",{className:"flex flex-col rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-black/40 backdrop-blur-xl shadow-2xl dark:shadow-black/50",children:jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsx("div",{className:"p-4 border-r border-gray-200 dark:border-white/10",children:jsxRuntime.jsx(sr,{value:s,onChange:f,className:"border-0 p-0 bg-transparent backdrop-blur-none shadow-none rounded-none"})}),jsxRuntime.jsxs("div",{className:"flex flex-col p-4 w-[160px] h-[340px]",children:[jsxRuntime.jsx("div",{className:"mb-3 text-sm font-medium text-gray-700 dark:text-white/70",children:"Time"}),jsxRuntime.jsxs("div",{className:"flex flex-1 gap-2 min-h-0 overflow-hidden",children:[jsxRuntime.jsxs(Te,{className:"flex-1 flex flex-col gap-1",scrollbarSize:"sm",children:[jsxRuntime.jsx("div",{className:"text-xs text-gray-400 dark:text-white/40 text-center mb-1 sticky top-0 bg-white dark:bg-[#0A0A0A] py-1 z-10",children:"Hr"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1",children:Array.from({length:24}).map((b,u)=>jsxRuntime.jsx("button",{onClick:()=>g("hours",u.toString()),className:n("w-full rounded-lg px-1 py-1.5 text-sm transition-colors text-center shrink-0",d===u?"bg-emerald-500 dark:bg-emerald-600/80 text-white font-medium":"text-gray-700 dark:text-white/70 hover:bg-gray-100 dark:hover:bg-white/[0.06] hover:text-gray-900 dark:hover:text-white"),children:u.toString().padStart(2,"0")},u))})]}),jsxRuntime.jsx("div",{className:"w-[1px] bg-gray-200 dark:bg-white/[0.06]"}),jsxRuntime.jsxs(Te,{className:"flex-1 flex flex-col gap-1",scrollbarSize:"sm",children:[jsxRuntime.jsx("div",{className:"text-xs text-gray-400 dark:text-white/40 text-center mb-1 sticky top-0 bg-white dark:bg-[#0A0A0A] py-1 z-10",children:"Min"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1",children:Array.from({length:60}).map((b,u)=>jsxRuntime.jsx("button",{onClick:()=>g("minutes",u.toString()),className:n("w-full rounded-lg px-1 py-1.5 text-sm transition-colors text-center shrink-0",m===u?"bg-emerald-500 dark:bg-emerald-600/80 text-white font-medium":"text-gray-700 dark:text-white/70 hover:bg-gray-100 dark:hover:bg-white/[0.06] hover:text-gray-900 dark:hover:text-white"),children:u.toString().padStart(2,"0")},u))})]})]})]})]})})})]})}var Br=ue__namespace.default.forwardRef(({className:e,label:t,error:r,id:a,disabled:s,...o},i)=>{let l=ue__namespace.default.useId(),d=a||l;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[t&&jsxRuntime.jsx(Y,{htmlFor:d,className:n(s&&"opacity-50 cursor-not-allowed"),children:t}),jsxRuntime.jsx("textarea",{ref:i,id:d,disabled:s,className:n("w-full rounded-2xl bg-gray-50 dark:bg-white/[0.04] px-4 py-3","border border-gray-200 dark:border-white/[0.10]","text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-white/30","focus:outline-none focus:ring-2 focus:ring-purple-400/30","resize-none","disabled:cursor-not-allowed disabled:opacity-50",r&&"border-rose-400/25 focus:ring-rose-300/25",e),...o}),r&&jsxRuntime.jsx("p",{className:"text-xs text-rose-400 animate-in slide-in-from-top-1 fade-in duration-200",children:r})]})});Br.displayName="Textarea";var to=ue.createContext({}),zs=ue__namespace.default.forwardRef(({className:e,value:t,onChange:r,name:a,disabled:s,label:o,children:i,...l},d)=>{let c=ue__namespace.default.useId();return jsxRuntime.jsxs("div",{ref:d,className:n("flex flex-col gap-2",e),...l,children:[o&&jsxRuntime.jsx(Y,{className:n(s&&"opacity-50 cursor-not-allowed"),children:o}),jsxRuntime.jsx("div",{className:"flex flex-col gap-2",role:"radiogroup",children:jsxRuntime.jsx(to.Provider,{value:{value:t,onChange:r,name:a||c,disabled:s},children:i})})]})});zs.displayName="RadioGroup";var $s=ue__namespace.default.forwardRef(({className:e,value:t,label:r,disabled:a,...s},o)=>{let i=ue.useContext(to),l=i.value===t,d=i.disabled||a,c=ue__namespace.default.useId();return jsxRuntime.jsxs("label",{htmlFor:c,className:n("flex items-center gap-3 cursor-pointer group",d&&"cursor-not-allowed opacity-50",e),children:[jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[jsxRuntime.jsx("input",{ref:o,id:c,type:"radio",name:i.name,value:t,checked:l,disabled:d,onChange:m=>{m.target.checked&&i.onChange?.(t);},className:"peer sr-only",...s}),jsxRuntime.jsx("div",{className:n("h-5 w-5 rounded-full border border-gray-300 dark:border-white/20 bg-gray-50 dark:bg-white/[0.03] transition-all duration-200","peer-focus-visible:ring-2 peer-focus-visible:ring-gray-400 dark:peer-focus-visible:ring-white/20 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-white dark:peer-focus-visible:ring-offset-[#0A0A0A]","group-hover:bg-gray-100 dark:group-hover:bg-white/[0.05]",l&&"border-gray-900 bg-gray-900 dark:border-white dark:bg-white"),children:l&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full bg-white dark:bg-black"})})})]}),r&&jsxRuntime.jsx("span",{className:"text-sm text-gray-900 dark:text-white/90 select-none font-medium",children:r})]})});$s.displayName="RadioGroupItem";var $t=ue__namespace.default.createContext({}),Fs=ue__namespace.default.forwardRef(({className:e,...t},r)=>{let a=ue__namespace.default.useId();return jsxRuntime.jsx($t.Provider,{value:{id:a},children:jsxRuntime.jsx("div",{ref:r,className:n("space-y-2",e),...t})})});Fs.displayName="FormItem";var Ks=ue__namespace.default.forwardRef(({className:e,...t},r)=>{let{id:a}=ue__namespace.default.useContext($t);return jsxRuntime.jsx(Y,{ref:r,className:n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),htmlFor:a,...t})});Ks.displayName="FormLabel";var Ws=ue__namespace.default.forwardRef(({...e},t)=>{let{id:r}=ue__namespace.default.useContext($t),{children:a,...s}=e;return ue__namespace.default.isValidElement(a)?ue__namespace.default.cloneElement(a,{id:r,"aria-describedby":`${r}-description ${r}-message`,...s,...a.props}):jsxRuntime.jsx("div",{ref:t,...e})});Ws.displayName="FormControl";var _s=ue__namespace.default.forwardRef(({className:e,...t},r)=>{let{id:a}=ue__namespace.default.useContext($t);return jsxRuntime.jsx("p",{ref:r,id:`${a}-description`,className:n("text-xs text-white/50",e),...t})});_s.displayName="FormDescription";var Us=ue__namespace.default.forwardRef(({className:e,children:t,...r},a)=>{let{id:s}=ue__namespace.default.useContext($t);return t?jsxRuntime.jsx("p",{ref:a,id:`${s}-message`,className:n("text-xs font-medium text-rose-500",e),...r,children:t}):null});Us.displayName="FormMessage";var ro={loading:jsxRuntime.jsx("svg",{className:"animate-spin text-blue-500",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),success:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-emerald-400",children:[jsxRuntime.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),jsxRuntime.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),error:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-rose-400",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),jsxRuntime.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),warning:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-amber-400",children:[jsxRuntime.jsx("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-3Z"}),jsxRuntime.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),jsxRuntime.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),info:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-blue-400",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),jsxRuntime.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})},ao=({id:e,title:t,description:r,variant:a="default",duration:s=5e3,onDismiss:o})=>(ue.useEffect(()=>{if(s===1/0)return;let i=setTimeout(()=>{o(e);},s);return ()=>clearTimeout(i)},[s,e,o]),jsxRuntime.jsxs("div",{role:"alert",className:n("pointer-events-auto relative flex w-full max-w-sm items-start gap-4 overflow-hidden rounded-2xl border p-4 shadow-lg transition-all","animate-in slide-in-from-right-full fade-in duration-300","bg-white dark:bg-[#0A0A0A]/90 backdrop-blur-md border-gray-200 dark:border-white/10",a==="error"&&"border-rose-200 dark:border-rose-500/30 bg-rose-50 dark:bg-rose-500/10",a==="success"&&"border-emerald-200 dark:border-emerald-500/20 bg-emerald-50 dark:bg-emerald-950/10",a==="warning"&&"border-amber-200 dark:border-amber-500/20 bg-amber-50 dark:bg-amber-950/10",a==="info"&&"border-blue-200 dark:border-blue-500/20 bg-blue-50 dark:bg-blue-950/10",a==="loading"&&"border-blue-200 dark:border-blue-500/20 bg-blue-50 dark:bg-blue-950/10"),children:[a!=="default"&&ro[a]&&jsxRuntime.jsx("div",{className:"shrink-0 pt-0.5",children:ro[a]}),jsxRuntime.jsxs("div",{className:"flex-1 gap-1",children:[t&&jsxRuntime.jsx("div",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:t}),r&&jsxRuntime.jsx("div",{className:"text-sm text-gray-600 dark:text-white/80",children:r})]}),jsxRuntime.jsx("button",{onClick:()=>o(e),className:"shrink-0 rounded-md p-1 text-gray-400 dark:text-white/50 opacity-0 transition-opacity hover:text-gray-900 dark:hover:text-white group-hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/20",children:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntime.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}));var Or=ue.createContext(void 0);function pf({children:e}){let[t,r]=ue.useState([]),a=ue.useCallback(l=>{r(d=>d.filter(c=>c.id!==l));},[]),s=ue.useCallback(l=>{let d=Math.random().toString(36).substring(2,9);return r(c=>[...c,{...l,id:d,onDismiss:a}]),d},[a]),o=ue.useCallback((l,d)=>{r(c=>c.map(m=>m.id===l?{...m,...d}:m));},[]),i=ue.useCallback(async(l,d)=>{let c=typeof d.loading=="string"?{title:d.loading,variant:"loading"}:{variant:"loading",...d.loading},m=s({...c,duration:1/0});try{let p=await l,f=typeof d.success=="function"?d.success(p):typeof d.success=="string"?{title:d.success,variant:"success"}:d.success;return o(m,{...f,duration:5e3}),p}catch(p){let f=typeof d.error=="function"?d.error(p):typeof d.error=="string"?{title:d.error,variant:"error"}:d.error;throw o(m,{...f,duration:5e3}),p}},[s,o]);return jsxRuntime.jsxs(Or.Provider,{value:{toast:s,dismiss:a,promise:i},children:[e,jsxRuntime.jsx("div",{className:"fixed bottom-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse gap-2 p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",children:t.map(l=>jsxRuntime.jsx(ao,{...l},l.id))})]})}var Qs={success:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-emerald-400",children:[jsxRuntime.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),jsxRuntime.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),error:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-rose-400",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),jsxRuntime.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),warning:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-amber-400",children:[jsxRuntime.jsx("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-3Z"}),jsxRuntime.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),jsxRuntime.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),info:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-blue-400",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),jsxRuntime.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})},Js=ue__namespace.default.forwardRef(({className:e,variant:t="default",icon:r,title:a,children:s,...o},i)=>{let l=r||(t!=="default"?Qs[t]:null);return jsxRuntime.jsxs("div",{ref:i,role:"alert",className:n("relative w-full rounded-2xl border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-gray-900 dark:[&>svg]:text-white","bg-white dark:bg-[#0A0A0A]/50 backdrop-blur-md border-gray-200 dark:border-white/10 text-gray-900 dark:text-white",t==="error"&&"border-rose-200 dark:border-rose-500/20 bg-rose-50 dark:bg-rose-950/10 text-rose-900 dark:text-rose-50 [&>svg]:text-rose-600 dark:[&>svg]:text-rose-400",t==="success"&&"border-emerald-200 dark:border-emerald-500/20 bg-emerald-50 dark:bg-emerald-950/10 text-emerald-900 dark:text-emerald-50 [&>svg]:text-emerald-600 dark:[&>svg]:text-emerald-400",t==="warning"&&"border-amber-200 dark:border-amber-500/20 bg-amber-50 dark:bg-amber-950/10 text-amber-900 dark:text-amber-50 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",t==="info"&&"border-blue-200 dark:border-blue-500/20 bg-blue-50 dark:bg-blue-950/10 text-blue-900 dark:text-blue-50 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",e),...o,children:[l,jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[a&&jsxRuntime.jsx("h5",{className:"mb-1 font-medium leading-none tracking-tight",children:a}),s&&jsxRuntime.jsx("div",{className:"text-sm opacity-90 [&_p]:leading-relaxed",children:s})]})]})});Js.displayName="Alert";var ei=ue__namespace.default.forwardRef(({className:e,value:t=0,max:r=100,variant:a="default",size:s="md",isIndeterminate:o=false,hasStripe:i=false,indicatorClassName:l,...d},c)=>{let m=o?0:Math.min(Math.max((t||0)/r,0),1)*100,p={default:"bg-gray-900 dark:bg-white dark:shadow-[0_0_10px_rgba(255,255,255,0.5)]",success:"bg-emerald-500 shadow-sm dark:shadow-[0_0_10px_rgba(16,185,129,0.5)]",warning:"bg-amber-500 shadow-sm dark:shadow-[0_0_10px_rgba(245,158,11,0.5)]",danger:"bg-rose-500 shadow-sm dark:shadow-[0_0_10px_rgba(244,63,94,0.5)]",gradient:"bg-gradient-to-r from-blue-600 via-purple-600 to-blue-600 shadow-sm dark:shadow-[0_0_15px_rgba(99,102,241,0.5)]"};return jsxRuntime.jsx("div",{ref:c,role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":o?void 0:t,className:n("relative w-full overflow-hidden rounded-full bg-gray-200 dark:bg-white/[0.03] border border-gray-200 dark:border-white/5 backdrop-blur-sm",{sm:"h-1",md:"h-2",lg:"h-4"}[s],e),...d,children:jsxRuntime.jsx("div",{className:n("h-full w-full flex-1 transition-all duration-500 ease-in-out relative overflow-hidden",p[a],o&&"absolute inset-0 w-full origin-left animate-indeterminate-progress",l),style:{transform:o?void 0:`translateX(-${100-m}%)`},children:i&&!o&&jsxRuntime.jsx("div",{className:"absolute inset-0 w-full h-full animate-progress-stripe",style:{backgroundImage:"linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)",backgroundSize:"1rem 1rem"}})})})});ei.displayName="Progress";var oi={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-14 w-14 text-base",xl:"h-20 w-20 text-xl"},fe=ue__namespace.default.forwardRef(({className:e,src:t,alt:r,fallback:a,size:s="md",...o},i)=>{let[l,d]=ue.useState(false);return ue.useEffect(()=>{d(false);},[t]),jsxRuntime.jsx("div",{ref:i,className:n("relative flex shrink-0 overflow-hidden rounded-full bg-gray-200 dark:bg-white/[0.06]",oi[s],e),...o,children:t&&!l?jsxRuntime.jsx("img",{src:t,alt:r,className:"aspect-square h-full w-full object-cover",onError:()=>d(true)}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-white/70 font-medium",children:a||(r?r.charAt(0).toUpperCase():"?")})})});fe.displayName="Avatar";var Fr=ue.createContext(void 0);function Hf({type:e="single",defaultValue:t,value:r,onValueChange:a,className:s,children:o,...i}){let[l,d]=ue.useState(t||(e==="multiple"?[]:"")),c=r!==void 0?r:l,m=p=>{let f;if(e==="multiple"){let g=Array.isArray(c)?c:[];g.includes(p)?f=g.filter(h=>h!==p):f=[...g,p];}else f=c===p?"":p;r===void 0&&d(f),a?.(f);};return jsxRuntime.jsx(Fr.Provider,{value:{value:c,onValueChange:m,type:e},children:jsxRuntime.jsx("div",{className:n("space-y-2",s),...i,children:o})})}var Kr=ue.createContext({value:"",isOpen:false});function If({className:e,value:t,children:r,...a}){let s=ue.useContext(Fr),o=Array.isArray(s?.value)?s?.value.includes(t):s?.value===t;return jsxRuntime.jsx(Kr.Provider,{value:{value:t,isOpen:!!o},children:jsxRuntime.jsx("div",{className:n("overflow-hidden rounded-2xl border border-gray-200 dark:border-white/5 bg-gray-50 dark:bg-white/[0.03] transition-all duration-200",o&&"bg-white dark:bg-white/[0.04] border-gray-300 dark:border-white/10",e),...a,children:r})})}function Sf({className:e,children:t,...r}){let a=ue.useContext(Fr),{value:s,isOpen:o}=ue.useContext(Kr);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>a?.onValueChange(s),"aria-expanded":o,"aria-controls":`accordion-content-${s}`,id:`accordion-trigger-${s}`,className:n("flex w-full items-center justify-between px-4 py-3 text-sm font-medium text-gray-900 dark:text-white transition-all hover:text-gray-700 dark:hover:text-white/90 focus:outline-none",e),...r,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:n("h-4 w-4 shrink-0 text-gray-400 dark:text-white/50 transition-transform duration-200",o&&"rotate-180 text-gray-900 dark:text-white")})]})}function Af({className:e,children:t,...r}){let{isOpen:a,value:s}=ue.useContext(Kr);return a?jsxRuntime.jsx("div",{id:`accordion-content-${s}`,role:"region","aria-labelledby":`accordion-trigger-${s}`,className:n("px-4 pb-3 pt-0 text-sm text-gray-600 dark:text-white/70 animate-in slide-in-from-top-1 fade-in duration-200",e),...r,children:t}):null}var Wr=ue.createContext(void 0);function Ff({defaultValue:e,value:t,onValueChange:r,className:a,children:s,...o}){let[i,l]=ue.useState(e),d=m=>{t===void 0&&l(m),r?.(m);},c=t!==void 0?t:i;return jsxRuntime.jsx(Wr.Provider,{value:{value:c,onValueChange:d},children:jsxRuntime.jsx("div",{className:n("w-full",a),...o,children:s})})}function Kf({className:e,children:t,...r}){return jsxRuntime.jsx("div",{role:"tablist",className:n("inline-flex h-10 items-center justify-center rounded-2xl bg-gray-100 p-1 text-gray-500 dark:bg-white/[0.03] dark:text-white/60",e),...r,children:t})}function Wf({className:e,value:t,children:r,...a}){let s=ue.useContext(Wr);if(!s)throw new Error("TabsTrigger must be used within Tabs");let o=s.value===t;return jsxRuntime.jsx("button",{type:"button",role:"tab","aria-selected":o,"aria-controls":`tabs-content-${t}`,id:`tabs-trigger-${t}`,onClick:()=>s.onValueChange(t),className:n("inline-flex items-center justify-center whitespace-nowrap rounded-2xl px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-zinc-950 dark:focus-visible:ring-white/20",o?"bg-white text-gray-900 shadow-sm dark:bg-white/[0.06] dark:text-white dark:backdrop-blur-sm":"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-white/[0.03] dark:hover:text-white",e),...a,children:r})}function _f({className:e,value:t,children:r,...a}){let s=ue.useContext(Wr);if(!s)throw new Error("TabsContent must be used within Tabs");return s.value!==t?null:jsxRuntime.jsx("div",{role:"tabpanel",id:`tabs-content-${t}`,"aria-labelledby":`tabs-trigger-${t}`,tabIndex:0,className:n("mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/20 focus-visible:ring-offset-2",e),...a,children:r})}var Gf=ue__namespace.default.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("aside",{ref:a,className:n("flex h-full w-64 flex-col border-r backdrop-blur-xl transition-colors duration-200","border-gray-200 bg-white/50","dark:border-white/10 dark:bg-black/20",e),...r,children:t})),qf=ue__namespace.default.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:n("flex h-16 items-center px-6 border-b border-gray-200 dark:border-white/5",e),...r,children:t})),Qf=ue__namespace.default.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:n("flex-1 overflow-y-auto py-4 px-3 space-y-1",e),...r,children:t})),Jf=ue__namespace.default.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:n("p-4 border-t border-gray-200 dark:border-white/5",e),...r,children:t})),Zf=ue__namespace.default.forwardRef(({className:e,children:t,active:r,icon:a,badge:s,...o},i)=>jsxRuntime.jsxs("button",{ref:i,className:n("flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium transition-colors","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-white/[0.03] dark:hover:text-white",r?"bg-gray-200 text-gray-900 dark:bg-white/[0.06] dark:text-white":"text-gray-600 dark:text-white/60",e),...o,children:[a&&jsxRuntime.jsx("span",{className:n("flex h-4 w-4 items-center justify-center",r?"text-gray-900 dark:text-white":"text-gray-500 dark:text-white/60"),children:a}),jsxRuntime.jsx("span",{className:"flex-1 text-left",children:t}),s&&jsxRuntime.jsx("span",{className:"flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-200 dark:bg-white/[0.06] px-1.5 text-[10px] font-bold text-gray-900 dark:text-white",children:s})]})),eg=ue__namespace.default.forwardRef(({className:e,children:t,label:r,...a},s)=>jsxRuntime.jsxs("div",{ref:s,className:n("mb-6",e),...a,children:[r&&jsxRuntime.jsx("div",{className:"mb-2 px-3 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-white/40",children:r}),jsxRuntime.jsx("div",{className:"space-y-1",children:t})]}));var ui=classVarianceAuthority.cva("rounded-2xl backdrop-blur-xl transition-all duration-300 bg-white/70 border border-zinc-200 shadow-sm text-zinc-900 dark:bg-white/[0.03] dark:border-white/10 dark:shadow-[0_18px_55px_rgba(0,0,0,.45)] dark:text-white",{variants:{variant:{default:"",ghost:"bg-transparent border-transparent shadow-none"}},defaultVariants:{variant:"default"}}),Z=ue__namespace.default.forwardRef(({className:e,variant:t,asChild:r=false,...a},s)=>jsxRuntime.jsx(r?rt:"div",{ref:s,className:n(ui({variant:t,className:e})),...a}));Z.displayName="Surface";var hi={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"};function fg({logo:e,links:t=[],actions:r,className:a,maxWidth:s="xl"}){let[o,i]=ue.useState(false),[l,d]=ue.useState(false);return ue.useEffect(()=>{let c=()=>{i(window.scrollY>20);};return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),jsxRuntime.jsx("nav",{className:n("fixed top-0 left-0 right-0 z-50 transition-all duration-300 px-4 py-4",o?"py-3":"py-6",a),children:jsxRuntime.jsxs("div",{className:n("mx-auto transition-all duration-300",hi[s]),children:[jsxRuntime.jsxs(Z,{className:n("flex items-center justify-between px-6 py-3 transition-all duration-300",o?"rounded-2xl border-white/10 bg-white/70 dark:bg-zinc-900/70 backdrop-blur-xl shadow-lg":"rounded-2xl border-transparent bg-transparent dark:bg-transparent backdrop-blur-none shadow-none"),children:[jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:e||jsxRuntime.jsx("span",{className:"text-xl font-bold tracking-tighter",children:"PIXON"})}),jsxRuntime.jsx("div",{className:"hidden md:flex items-center gap-8",children:t.map(c=>jsxRuntime.jsx("a",{href:c.href,className:"text-sm font-medium text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white transition-colors",children:c.label},c.label))}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsx("div",{className:"hidden md:flex items-center gap-2",children:r}),jsxRuntime.jsx("button",{className:"md:hidden p-2 text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-white/[0.03] rounded-2xl transition-colors",onClick:()=>d(!l),children:l?jsxRuntime.jsx(lucideReact.X,{size:20}):jsxRuntime.jsx(lucideReact.Menu,{size:20})})]})]}),jsxRuntime.jsx("div",{className:n("md:hidden absolute top-full left-4 right-4 mt-2 transition-all duration-300 origin-top",l?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-4 pointer-events-none"),children:jsxRuntime.jsxs(Z,{className:"p-4 flex flex-col gap-4 shadow-2xl border-white/10 bg-white/90 dark:bg-zinc-900/90 backdrop-blur-2xl",children:[t.map(c=>jsxRuntime.jsx("a",{href:c.href,className:"text-base font-medium px-4 py-2 rounded-2xl hover:bg-zinc-100 dark:hover:bg-white/[0.03] text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white transition-all",onClick:()=>d(false),children:c.label},c.label)),jsxRuntime.jsx("div",{className:"pt-4 border-t border-zinc-200 dark:border-white/10 flex flex-col gap-2",children:r})]})})]})})}var ur=ue.createContext(void 0);function wt({children:e}){let[t,r]=ue.useState(false),a=ue.useRef(null);return jsxRuntime.jsx(ur.Provider,{value:{isOpen:t,setIsOpen:r,triggerRef:a},children:jsxRuntime.jsx("div",{className:"relative inline-block text-left",children:e})})}function yt({className:e,children:t,...r}){let a=ue.useContext(ur);if(!a)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let s=o=>{a.setIsOpen(!a.isOpen),r.onClick?.(o);};return jsxRuntime.jsx("button",{ref:a.triggerRef,type:"button","aria-haspopup":"menu","aria-expanded":a.isOpen?"true":"false",onClick:s,className:n("inline-flex items-center justify-center",e),...r,children:t})}function kt({className:e,children:t,align:r="start",side:a="bottom",...s}){let o=ue.useContext(ur);if(!o)throw new Error("DropdownMenuContent must be used within DropdownMenu");let i=ue.useRef(null),{position:l,isPositioned:d}=gt(o.triggerRef,i,{side:a,align:r,isOpen:o.isOpen});if(ue.useEffect(()=>{if(o.isOpen){let m=f=>{i.current&&!i.current.contains(f.target)&&o.triggerRef.current&&!o.triggerRef.current.contains(f.target)&&o.setIsOpen(false);},p=f=>{if(f.key==="Escape"&&(o.setIsOpen(false),o.triggerRef.current?.focus()),f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault();let g=i.current?.querySelectorAll('[role="menuitem"]');if(!g.length)return;let h=Array.from(g).indexOf(document.activeElement),v=0;f.key==="ArrowDown"?v=(h+1)%g.length:v=(h-1+g.length)%g.length,g[v]?.focus();}};return document.addEventListener("mousedown",m),document.addEventListener("keydown",p),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",p);}}},[o.isOpen,o.setIsOpen,o.triggerRef]),!o.isOpen)return null;let c=()=>a==="bottom"?r==="start"?"top left":r==="end"?"top right":"top center":a==="top"?r==="start"?"bottom left":r==="end"?"bottom right":"bottom center":a==="left"?r==="start"?"top right":r==="end"?"bottom right":"center right":a==="right"?r==="start"?"top left":r==="end"?"bottom left":"center left":"center center";return reactDom.createPortal(jsxRuntime.jsx("div",{ref:i,role:"menu","aria-orientation":"vertical",style:{top:l.top,left:l.left,transformOrigin:c()},className:n("fixed z-50 min-w-[8rem] overflow-hidden rounded-2xl border border-gray-200 dark:border-white/10 bg-white/80 dark:bg-white/[0.03] backdrop-blur-xl p-1 shadow-md duration-100",d?"animate-in fade-in zoom-in-95 opacity-100":"opacity-0",e),...s,children:t}),document.body)}function ee({className:e,children:t,...r}){let a=ue.useContext(ur);return jsxRuntime.jsx("button",{type:"button",role:"menuitem",onClick:o=>{a?.setIsOpen(false),r.onClick?.(o);},className:n("relative flex w-full cursor-pointer select-none items-center rounded-2xl px-3 py-2 text-sm outline-none transition-colors","text-gray-700 dark:text-white/80","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-white/[0.06] dark:hover:text-white","focus:bg-gray-100 focus:text-gray-900 dark:focus:bg-white/[0.06] dark:focus:text-white","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:t})}function mo({className:e,children:t,...r}){return jsxRuntime.jsx("div",{className:n("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-white",e),...r,children:t})}function Ur({className:e,...t}){return jsxRuntime.jsx("div",{className:n("-mx-1 my-1 h-px bg-gray-200 dark:bg-white/[0.03]",e),...t})}function Pg({name:e,description:t,avatarSrc:r,avatarFallback:a,className:s,side:o="top",align:i="start"}){return jsxRuntime.jsxs(wt,{children:[jsxRuntime.jsx(yt,{className:n("w-full outline-none",s),children:jsxRuntime.jsxs("div",{className:"group flex w-full items-center gap-3 rounded-2xl border border-gray-200 dark:border-white/5 bg-white dark:bg-white/[0.03] p-3 transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.06]",children:[jsxRuntime.jsx(fe,{src:r,fallback:a||e.charAt(0),size:"sm"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-start text-left",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-gray-900 dark:text-white",children:e}),t&&jsxRuntime.jsx("span",{className:"text-[10px] text-gray-500 dark:text-white/50",children:t})]}),jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4 text-gray-400 dark:text-white/50 transition-colors group-hover:text-gray-900 dark:group-hover:text-white"})]})}),jsxRuntime.jsxs(kt,{className:"w-56",align:i,side:o,children:[jsxRuntime.jsx(mo,{children:"My Account"}),jsxRuntime.jsx(Ur,{}),jsxRuntime.jsxs(ee,{children:[jsxRuntime.jsx(lucideReact.User,{className:"mr-2 h-4 w-4"}),jsxRuntime.jsx("span",{children:"Profile"})]}),jsxRuntime.jsxs(ee,{children:[jsxRuntime.jsx(lucideReact.Settings,{className:"mr-2 h-4 w-4"}),jsxRuntime.jsx("span",{children:"Settings"})]}),jsxRuntime.jsx(Ur,{}),jsxRuntime.jsxs(ee,{className:"text-rose-400 focus:text-rose-400",children:[jsxRuntime.jsx(lucideReact.LogOut,{className:"mr-2 h-4 w-4"}),jsxRuntime.jsx("span",{children:"Log out"})]})]})]})}var Ti=ue__namespace.default.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ti.displayName="Breadcrumb";var Mi=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ol",{ref:r,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-gray-500 dark:text-white/50 sm:gap-2.5",e),...t}));Mi.displayName="BreadcrumbList";var Ri=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:n("inline-flex items-center gap-1.5",e),...t}));Ri.displayName="BreadcrumbItem";var Ci=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("a",{ref:r,className:n("transition-colors hover:text-gray-900 dark:hover:text-white",e),...t}));Ci.displayName="BreadcrumbLink";var Li=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-gray-900 dark:text-white",e),...t}));Li.displayName="BreadcrumbPage";var Pi=({children:e,className:t,...r})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:size-3.5",t),...r,children:e??jsxRuntime.jsx("svg",{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",className:"h-4 w-4",children:jsxRuntime.jsx("path",{d:"m9 18 6-6-6-6"})})});Pi.displayName="BreadcrumbSeparator";var Ei=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsxs("svg",{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",className:"h-4 w-4",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]});Ei.displayName="BreadcrumbElipssis";var Di=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),...t});Di.displayName="Pagination";var Hi=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:n("flex flex-row items-center gap-1",e),...t}));Hi.displayName="PaginationContent";var Ii=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:n("",e),...t}));Ii.displayName="PaginationItem";var Yr=({className:e,isActive:t,...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:n("inline-flex h-9 w-9 items-center justify-center rounded-2xl text-sm font-medium transition-colors","hover:bg-gray-100 dark:hover:bg-white/[0.03] hover:text-gray-900 dark:hover:text-white",t?"bg-gray-100 text-gray-900 dark:bg-white/[0.06] dark:text-white":"text-gray-500 dark:text-white/60",e),...r});Yr.displayName="PaginationLink";var Si=({className:e,...t})=>jsxRuntime.jsxs(Yr,{"aria-label":"Go to previous page",className:n("w-auto gap-1 px-2.5",e),...t,children:[jsxRuntime.jsx("svg",{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",className:"h-4 w-4",children:jsxRuntime.jsx("path",{d:"m15 18-6-6 6-6"})}),jsxRuntime.jsx("span",{children:"Previous"})]});Si.displayName="PaginationPrevious";var Ai=({className:e,...t})=>jsxRuntime.jsxs(Yr,{"aria-label":"Go to next page",className:n("w-auto gap-1 px-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx("svg",{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",className:"h-4 w-4",children:jsxRuntime.jsx("path",{d:"m9 18 6-6-6-6"})})]});Ai.displayName="PaginationNext";var Bi=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsxs("svg",{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",className:"h-4 w-4",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1"}),jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Bi.displayName="PaginationEllipsis";function bo({isOpen:e,onClose:t,children:r,className:a}){let s=ue.useRef(null);return ue.useEffect(()=>{let i=s.current;i&&(e?i.open||(i.showModal(),document.body.style.overflow="hidden"):i.open&&(i.close(),document.body.style.overflow="unset"));},[e]),ue.useEffect(()=>{let i=s.current;if(!i)return;let l=d=>{d.preventDefault(),t();};return i.addEventListener("cancel",l),()=>i.removeEventListener("cancel",l)},[t]),reactDom.createPortal(jsxRuntime.jsx("dialog",{ref:s,onClick:i=>{i.target===s.current&&t();},className:n("fixed inset-0 z-50 bg-transparent p-0 backdrop:bg-black/60 backdrop:backdrop-blur-sm open:flex open:items-center open:justify-center","animate-in fade-in duration-200",a),children:jsxRuntime.jsxs("div",{className:n("relative w-full max-w-lg scale-100 gap-4 border border-gray-200 dark:border-white/10 bg-white dark:bg-[#0A0A0A]/90 p-6 shadow-2xl backdrop-blur-xl transition-all sm:rounded-2xl","animate-in fade-in zoom-in-95 duration-200 slide-in-from-bottom-2"),children:[r,jsxRuntime.jsxs("button",{onClick:t,className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/20 disabled:pointer-events-none",children:[jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-900 dark:text-white",children:[jsxRuntime.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntime.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})}),document.body)}function ho({className:e,children:t}){return jsxRuntime.jsx("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left mb-4",e),children:t})}function xo({className:e,children:t}){return jsxRuntime.jsx("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 mt-6",e),children:t})}function vo({className:e,children:t}){return jsxRuntime.jsx(Ke,{as:"h2",className:n("text-lg font-semibold leading-none tracking-tight",e),children:t})}function Yg({className:e,children:t}){return jsxRuntime.jsx(U,{variant:"muted",className:n("text-sm",e),children:t})}function eb({isOpen:e,onClose:t,children:r,className:a}){let s=ue.useRef(null);return ue.useEffect(()=>{let i=s.current;i&&(e?i.open||i.showModal():i.open&&i.close());},[e]),ue.useEffect(()=>{let i=s.current;if(!i)return;let l=d=>{d.preventDefault(),t();};return i.addEventListener("cancel",l),()=>i.removeEventListener("cancel",l)},[t]),reactDom.createPortal(jsxRuntime.jsx("dialog",{ref:s,onClick:i=>{i.target===s.current&&t();},className:n("fixed inset-0 z-50 bg-transparent p-0 backdrop:bg-black/60 backdrop:backdrop-blur-sm","open:animate-in open:fade-in open:duration-200",a),children:jsxRuntime.jsxs("div",{className:n("relative w-full max-w-lg scale-100 gap-4 border border-gray-200 dark:border-white/10 bg-white dark:bg-[#0A0A0A]/90 p-6 shadow-2xl backdrop-blur-xl transition-all sm:rounded-2xl","animate-in fade-in zoom-in-95 duration-200 slide-in-from-bottom-2"),children:[r,jsxRuntime.jsxs("button",{onClick:t,className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-white/20 disabled:pointer-events-none",children:[jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-900 dark:text-white",children:[jsxRuntime.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntime.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})}),document.body)}function tb({className:e,children:t}){return jsxRuntime.jsx("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left mb-4",e),children:t})}function rb({className:e,children:t}){return jsxRuntime.jsx("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 mt-6",e),children:t})}function ab({className:e,children:t}){return jsxRuntime.jsx(Ke,{as:"h2",className:n("text-lg font-semibold leading-none tracking-tight",e),children:t})}function ob({className:e,children:t}){return jsxRuntime.jsx("p",{className:n("text-sm text-gray-500 dark:text-gray-400",e),children:t})}function pb({isOpen:e,onClose:t,position:r="right",children:a,className:s}){let[o,i]=ue.useState(false),[l,d]=ue.useState(false),c=ue.useRef(null);ue.useEffect(()=>{if(e)d(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i(true);});}),document.body.style.overflow="hidden";else {i(false);let g=setTimeout(()=>{d(false),document.body.style.overflow="unset";},300);return ()=>clearTimeout(g)}},[e]),ue.useEffect(()=>{let g=h=>{h.key==="Escape"&&t();};return e&&document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g);}},[e,t]);let m=g=>{g.target===c.current&&t();};if(!l)return null;let p={left:"left-0 h-full w-3/4 max-w-sm border-r",right:"right-0 h-full w-3/4 max-w-sm border-l",bottom:"bottom-0 w-full h-auto max-h-[90vh] border-t rounded-t-2xl"},f={left:o?"translate-x-0":"-translate-x-full",right:o?"translate-x-0":"translate-x-full",bottom:o?"translate-y-0":"translate-y-full"};return reactDom.createPortal(jsxRuntime.jsx("div",{ref:c,onClick:m,className:n("fixed inset-0 z-50 flex bg-black/60 backdrop-blur-sm transition-opacity duration-300",o?"opacity-100":"opacity-0"),role:"dialog","aria-modal":"true",children:jsxRuntime.jsx("div",{className:n("absolute bg-white dark:bg-[#0A0A0A] border-gray-200 dark:border-white/10 p-6 shadow-2xl transition-transform duration-300 ease-in-out",p[r],f[r],s),children:a})}),document.body)}function fb({className:e,children:t,...r}){return jsxRuntime.jsx("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left mb-6",e),...r,children:t})}function gb({className:e,children:t,...r}){return jsxRuntime.jsx("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 mt-auto pt-6",e),...r,children:t})}function bb({className:e,children:t,...r}){return jsxRuntime.jsx(Ke,{as:"h2",className:n("text-lg font-semibold leading-none tracking-tight",e),...r,children:t})}function hb({className:e,children:t,...r}){return jsxRuntime.jsx(U,{variant:"muted",className:n("text-sm",e),...r,children:t})}function Mb({content:e,children:t,position:r="top",delay:a=200,className:s}){let[o,i]=ue.useState(false),l=ue.useRef(null),d=ue.useRef(null),c=ue.useRef(null),{position:m,isPositioned:p}=gt(d,c,{side:r,align:"center",sideOffset:8,isOpen:o}),f=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>i(true),a);},g=()=>{l.current&&clearTimeout(l.current),i(false);};ue.useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]);let h={top:"slide-in-from-bottom-2",bottom:"slide-in-from-top-2",left:"slide-in-from-right-2",right:"slide-in-from-left-2"};return jsxRuntime.jsxs("div",{ref:d,className:"relative inline-flex",onMouseEnter:f,onMouseLeave:g,onFocus:f,onBlur:g,children:[t,o&&reactDom.createPortal(jsxRuntime.jsx("div",{ref:c,role:"tooltip",style:{top:m.top,left:m.left},className:n("fixed z-[100] min-w-max max-w-xs rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-[#0A0A0A]/90 px-3 py-1.5 text-xs text-gray-900 dark:text-white shadow-xl backdrop-blur-md","duration-200",p?"animate-in fade-in opacity-100":"opacity-0",h[r],s),children:e}),document.body)]})}function No({children:e,...t}){return jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-2xl bg-white dark:bg-black/90 text-gray-900 dark:text-white",children:jsxRuntime.jsx(Ir,{usePopover:false,...t,children:e})})}function Ab({children:e,open:t,onOpenChange:r,...a}){let s=ue.useRef(null);ue.useEffect(()=>{let i=l=>{l.key==="Escape"&&r(false);};return t&&(document.addEventListener("keydown",i),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",i),document.body.style.overflow="unset";}},[t,r]);let o=i=>{i.target===s.current&&r(false);};return t?reactDom.createPortal(jsxRuntime.jsx("div",{ref:s,onClick:o,className:"fixed inset-0 z-50 flex items-start justify-center bg-black/60 backdrop-blur-sm animate-in fade-in duration-200 pt-[20vh]",children:jsxRuntime.jsx("div",{className:"relative w-full max-w-lg overflow-hidden rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-black/90 shadow-2xl animate-in zoom-in-95 duration-200",children:jsxRuntime.jsx(Ir,{usePopover:false,...a,children:e})})}),document.body):null}function To({className:e,...t}){return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-white/10 px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(ja,{className:n("flex h-12 w-full rounded-md bg-transparent py-3 text-sm text-gray-900 dark:text-white outline-none placeholder:text-gray-400 dark:placeholder:text-white/50 disabled:cursor-not-allowed disabled:opacity-50 border-none focus:ring-0 px-0",e),...t})]})}function Mo({className:e,...t}){return jsxRuntime.jsx(Xa,{className:n("max-h-[300px] overflow-y-auto overflow-x-hidden p-2",e),...t})}function Bb(e){return jsxRuntime.jsx(Ga,{className:"py-6 text-center text-sm",...e})}function Ro({children:e,heading:t,className:r,...a}){return jsxRuntime.jsxs("div",{className:n("overflow-hidden p-1 text-gray-900 dark:text-white",r),...a,children:[t&&jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-gray-500 dark:text-white/50",children:t}),e]})}function Co({className:e,...t}){return jsxRuntime.jsx(qa,{className:n("relative flex cursor-default select-none items-center rounded-2xl px-2 py-1.5 text-sm outline-none text-gray-900 dark:text-white aria-selected:bg-gray-100 dark:aria-selected:bg-white/[0.06] aria-selected:text-gray-900 dark:aria-selected:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t})}function Vb({className:e,...t}){return jsxRuntime.jsx("span",{className:n("ml-auto text-xs tracking-widest text-gray-400 dark:text-white/50",e),...t})}function Kb(){let e=ue.useContext(Or);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}function Ub(e=0){let[t,r]=ue.useState(e),[a,s]=ue.useState(false),o=ue.useRef(null),i=ue.useCallback(()=>{a||(s(true),o.current=setInterval(()=>{r(m=>m+1);},1e3));},[a]),l=ue.useCallback(()=>{a&&o.current&&(clearInterval(o.current),s(false));},[a]),d=ue.useCallback(()=>{o.current&&clearInterval(o.current),s(false),r(0);},[]);return ue.useEffect(()=>()=>{o.current&&clearInterval(o.current);},[]),{seconds:t,isActive:a,start:i,pause:l,reset:d,formattedTime:(m=>{let p=Math.floor(m/3600),f=Math.floor(m%3600/60),g=m%60;return [p,f,g].map(h=>h<10?"0"+h:h).filter((h,v)=>h!=="00"||v>0).join(":")})(t)}}function Gb(e,{threshold:t=0,root:r=null,rootMargin:a="0%",freezeOnceVisible:s=false}={}){let[o,i]=ue.useState(),l=o?.isIntersecting&&s,d=([c])=>{i(c);};return ue.useEffect(()=>{let c=e?.current;if(!!!window.IntersectionObserver||l||!c)return;let p={threshold:t,root:r,rootMargin:a},f=new IntersectionObserver(d,p);return f.observe(c),()=>f.disconnect()},[e,t,r,a,l]),o}function Jb({initialValues:e,onSubmit:t}){let[r,a]=ue.useState(e),[s,o]=ue.useState({}),[i,l]=ue.useState(false),d=ue.useCallback(p=>{let{name:f,value:g,type:h}=p.target,v=h==="checkbox"?p.target.checked:g;a(b=>({...b,[f]:v})),s[f]&&o(b=>({...b,[f]:""}));},[s]),c=ue.useCallback(async p=>{p.preventDefault();let f=p.currentTarget;if(!f.checkValidity()){let g={};Array.from(f.elements).forEach(h=>{let v=h;v.name&&!v.validity.valid&&(g[v.name]=v.validationMessage);}),o(g);return}l(true);try{await t(r);}finally{l(false);}},[r,t]),m=ue.useCallback(p=>({name:p,value:r[p],onChange:d,error:s[p]}),[r,s,d]);return {values:r,errors:s,isSubmitting:i,handleChange:d,handleSubmit:c,register:m,setValues:a,setErrors:o}}var nl={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function sl(e){let[t,r]=ue.useState(false);return ue.useEffect(()=>{let a=window.matchMedia(e);r(a.matches);let s=()=>r(a.matches);return a.addEventListener("change",s),()=>a.removeEventListener("change",s)},[e]),t}function th(e){return sl(`(min-width: ${nl[e]}px)`)}function rh(e){let[t,r]=ue.useState({width:0,height:0});return ue.useLayoutEffect(()=>{if(!e.current)return;let a=new ResizeObserver(s=>{for(let o of s)r({width:o.contentRect.width,height:o.contentRect.height});});return a.observe(e.current),()=>a.disconnect()},[e]),t}function Do(){let[e,t]=ue.useState({scrollX:0,scrollY:0,scrollProgressX:0,scrollProgressY:0}),r=ue.useCallback(()=>{let a=window.scrollX,s=window.scrollY,o=document.documentElement.scrollWidth-document.documentElement.clientWidth,i=document.documentElement.scrollHeight-document.documentElement.clientHeight;t({scrollX:a,scrollY:s,scrollProgressX:o>0?a/o:0,scrollProgressY:i>0?s/i:0});},[]);return ue.useEffect(()=>(window.addEventListener("scroll",r,{passive:true}),()=>window.removeEventListener("scroll",r)),[r]),e}function lh({className:e,color:t="bg-blue-500",height:r=2,position:a="top",...s}){let{scrollProgressY:o}=Do();return jsxRuntime.jsx("div",{className:n("fixed left-0 right-0 z-[100] w-full pointer-events-none",a==="top"?"top-0":"bottom-0",e),style:{height:r},...s,children:jsxRuntime.jsx("div",{className:n("h-full transition-all duration-75 ease-out",t),style:{width:`${o*100}%`,boxShadow:o>0?`0 0 10px ${t.replace("bg-","var(--")}`:"none"}})})}var ul=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full border px-2.5 py-1 text-xs font-medium whitespace-nowrap transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-gray-100 text-gray-700 border-gray-200 dark:bg-white/[0.06] dark:text-white/70 dark:border-white/10",neutral:"bg-gray-100 text-gray-700 border-gray-200 dark:bg-white/[0.06] dark:text-white/70 dark:border-white/10",success:"bg-emerald-100 text-emerald-700 border-emerald-200 dark:bg-emerald-400/15 dark:text-emerald-200 dark:border-emerald-400/20",warning:"bg-amber-100 text-amber-700 border-amber-200 dark:bg-amber-400/15 dark:text-amber-200 dark:border-amber-400/20",danger:"bg-rose-100 text-rose-700 border-rose-200 dark:bg-rose-400/15 dark:text-rose-200 dark:border-rose-400/20",info:"bg-sky-100 text-sky-700 border-sky-200 dark:bg-sky-400/15 dark:text-sky-200 dark:border-sky-400/20",outline:"bg-transparent text-white/60 border-white/10 hover:bg-white/[0.06]"}},defaultVariants:{variant:"default"}}),Oe=ue__namespace.default.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("span",{ref:a,className:n(ul({variant:t}),e),...r}));Oe.displayName="Badge";var gl=ue__namespace.default.forwardRef(({orientation:e="horizontal",className:t,...r},a)=>jsxRuntime.jsx("hr",{ref:a,className:n("border-0 bg-gray-200 dark:bg-white/10",{"h-px w-full":e==="horizontal","h-full w-px":e==="vertical"},t),...r}));gl.displayName="Divider";var xl=ue__namespace.default.forwardRef(({children:e,className:t,...r},a)=>jsxRuntime.jsx("kbd",{ref:a,className:n("rounded-lg border border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/[0.03] px-2 py-1 text-[11px] font-semibold text-gray-500 dark:text-white/65",t),...r,children:e}));xl.displayName="Kbd";var kl=ue__namespace.default.forwardRef(({icon:e,title:t,description:r,action:a,className:s,...o},i)=>jsxRuntime.jsx(Z,{ref:i,className:n("p-8 text-center",s),...o,children:jsxRuntime.jsxs("div",{className:"mx-auto w-full max-w-md space-y-3",children:[jsxRuntime.jsx("div",{className:"mx-auto grid h-12 w-12 place-items-center rounded-2xl border border-white/10 bg-white/[0.03] text-white/70",children:e??jsxRuntime.jsx(lucideReact.Info,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"text-lg font-semibold text-white",children:t}),r?jsxRuntime.jsx("div",{className:"text-sm text-white/55",children:r}):null,a?jsxRuntime.jsx("div",{className:"pt-2 flex justify-center",children:a}):null]})}));kl.displayName="EmptyState";function Io({className:e,variant:t="default",...r}){return jsxRuntime.jsx("div",{className:n("animate-pulse bg-gray-200 dark:bg-white/[0.03]",t==="circle"&&"rounded-full",t==="default"&&"rounded-2xl",t==="text"&&"rounded h-4 w-full",e),...r})}ue__namespace.default.createContext(null);var Zr=ue__namespace.default.forwardRef(({className:e,wrapperClassName:t,rounded:r=false,maxHeight:a,...s},o)=>jsxRuntime.jsx(Te,{className:n("w-full",r&&"rounded-2xl border border-white/10",t),style:{maxHeight:a},orientation:a?"both":"horizontal",scrollbarSize:"sm",children:jsxRuntime.jsx("table",{ref:o,className:n("w-full caption-bottom text-sm text-left",e),...s})}));Zr.displayName="Table";var ea=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:n("bg-white/[0.02] text-white/55",e),...t}));ea.displayName="TableHeader";var ta=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:n("[&_tr:last-child]:border-0",e),...t}));ta.displayName="TableBody";var Wt=ue__namespace.default.forwardRef(({className:e,hoverable:t=true,optimized:r=false,...a},s)=>jsxRuntime.jsx("tr",{ref:s,className:n("border-t border-white/10 transition-colors data-[state=selected]:bg-white/[0.04]",t&&"hover:bg-white/[0.02]",e),style:r?{contentVisibility:"auto",containIntrinsicSize:"0 56px"}:void 0,...a}));Wt.displayName="TableRow";var ra=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:n("h-10 px-5 py-3 text-left align-middle font-semibold text-white/55 [&:has([role=checkbox])]:pr-0 whitespace-nowrap",e),...t}));ra.displayName="TableHead";var fr=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:n("p-5 align-middle [&:has([role=checkbox])]:pr-0 text-white/85 whitespace-nowrap",e),...t}));fr.displayName="TableCell";function Uh({data:e,columns:t,searchPlaceholder:r="Search...",searchKeys:a,onRowClick:s,className:o,maxHeight:i,rounded:l=true}){let[d,c]=ue.useState(""),[m,p]=ue.useState({key:"",direction:null}),f=ue.useMemo(()=>{let h=[...e];return d&&a&&(h=h.filter(v=>a.some(b=>String(v[b]??"").toLowerCase().includes(d.toLowerCase())))),m.key&&m.direction&&h.sort((v,b)=>{let u=v[m.key],x=b[m.key];return u==null||x===void 0||x===null?0:u<x?m.direction==="asc"?-1:1:u>x?m.direction==="asc"?1:-1:0}),h},[e,d,a,m]),g=h=>{p(v=>({key:h,direction:v.key===h&&v.direction==="asc"?"desc":"asc"}));};return jsxRuntime.jsxs("div",{className:n("space-y-4",o),children:[a&&jsxRuntime.jsx("div",{className:"relative max-w-sm",children:jsxRuntime.jsx(ft,{placeholder:r,value:d,onChange:h=>c(h.target.value),leftIcon:jsxRuntime.jsx(lucideReact.Search,{className:"w-4 h-4 text-white/40"})})}),jsxRuntime.jsxs(Zr,{rounded:l,maxHeight:i,children:[jsxRuntime.jsx(ea,{children:jsxRuntime.jsx(Wt,{children:t.map(h=>jsxRuntime.jsx(ra,{className:n(h.sortable&&"cursor-pointer select-none hover:text-cyan-500 transition-colors",h.className),onClick:()=>h.sortable&&g(h.key),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[h.header,h.sortable&&jsxRuntime.jsx("span",{className:"text-white/30",children:m.key===h.key?m.direction==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-3 h-3 text-cyan-500"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-3 h-3 text-cyan-500"}):jsxRuntime.jsx(lucideReact.ArrowUpDown,{className:"w-3 h-3"})})]})},String(h.key)))})}),jsxRuntime.jsxs(ta,{children:[f.map((h,v)=>jsxRuntime.jsx(Wt,{onClick:()=>s?.(h),className:n(s&&"cursor-pointer hover:bg-white/[0.03] transition-colors group"),children:t.map(b=>jsxRuntime.jsx(fr,{className:b.className,children:b.render?b.render(h):h[b.key]},String(b.key)))},v)),f.length===0&&jsxRuntime.jsx(Wt,{children:jsxRuntime.jsxs(fr,{colSpan:t.length,className:"h-32 text-center text-white/40",children:['No results found for "',d,'"']})})]})]})]})}function Vo({tasks:e,columns:t,groupBy:r,pageSize:a}){let[s,o]=ue.useState(null),[i,l]=ue.useState({}),d=ue.useMemo(()=>s?[...e].sort((p,f)=>{let{field:g,direction:h}=s,v=0;if(g==="title")v=p.title.localeCompare(f.title);else if(g==="priority"){let b={urgent:4,high:3,medium:2,low:1,neutral:0},u=b[p.priority]||0,x=b[f.priority]||0;v=u-x;}else g==="dueDate"&&(v=(p.dueDate||"").localeCompare(f.dueDate||""));return h==="asc"?v:-v}):e,[e,s]),c=ue.useMemo(()=>{let p={};if(r)d.forEach(f=>{let g=String(f[r]||"Other");p[g]||(p[g]={});let h=p[g];h[f.columnId]||(h[f.columnId]=[]),h[f.columnId].push(f);});else {p.default={};let f=p.default;t.forEach(g=>{f[g.id]=d.filter(h=>h.columnId===g.id);});}return p},[d,t,r]),m=ue.useCallback(p=>{l(f=>({...f,[p]:(f[p]||a)+a}));},[a]);return {tasksByGroupAndColumn:c,sortConfig:s,setSortConfig:o,visibleCounts:i,handleLoadMore:m,sortedTasks:d}}function zo({tasks:e,columns:t,selectedTaskIds:r,onTaskMove:a,onColumnMove:s,onTaskDrop:o,onTaskDragStart:i,onTaskDragEnd:l}){let[d,c]=ue.useState(null),[m,p]=ue.useState(null),[f,g]=ue.useState(null),[h,v]=ue.useState(null),[b,u]=ue.useState(null),x=ue.useRef(null),y=ue.useRef(null),k=(D,E,V)=>{V==="task"?(c(E),D.dataTransfer.setData("taskId",E),i?.(E)):(p(E),D.dataTransfer.setData("columnId",E)),D.dataTransfer.effectAllowed="move";},w=ue.useCallback(()=>{d&&l?.(d),c(null),p(null),g(null),v(null),u(null);},[d,l]);return {draggedTaskId:d,draggedColumnId:m,dragOverColumnId:f,dragOverTaskId:h,dropPosition:b,handleDragStart:k,handleDragEnd:w,handleDragOver:(D,E,V)=>{if(D.preventDefault(),D.dataTransfer.dropEffect="move",m){g(E);let S=D.currentTarget.getBoundingClientRect(),C=S.left+S.width/2;u(D.clientX<C?"left":"right");}else if(g(E),V){v(V);let S=D.currentTarget.getBoundingClientRect(),C=S.top+S.height/2;u(D.clientY<C?"top":"bottom");}else D.target===D.currentTarget&&(v(null),u(null));},handleDrop:(D,E,V)=>{D.preventDefault();let S=d||D.dataTransfer.getData("taskId"),C=m||D.dataTransfer.getData("columnId");if(C&&s)s(C,E,b==="right"?"right":"left");else if(S&&a){if(!e.find(Q=>Q.id===S))return;(r.includes(S)?r:[S]).forEach(Q=>{let Ae=e.find(De=>De.id===Q)?.columnId||"";a(Q,E,V,b==="bottom"?"bottom":"top"),o?.(Q,Ae,E,0);});}w();},handleTouchStart:(D,E,V)=>{let S=D.touches[0];S&&(x.current=setTimeout(()=>{V==="task"?(c(E),i?.(E)):p(E),y.current={x:S.clientX,y:S.clientY};},500));},handleTouchMove:D=>{if(!d&&!m)return;D.preventDefault();let E=D.touches[0];if(!E)return;let V=document.elementFromPoint(E.clientX,E.clientY);if(!V)return;let S=V.closest("[data-column-id]"),C=V.closest("[data-task-id]");if(S){let A=S.getAttribute("data-column-id");if(g(A),m){let me=S.getBoundingClientRect(),Q=me.left+me.width/2;u(E.clientX<Q?"left":"right");}else if(C){let me=C.getAttribute("data-task-id");v(me);let Q=C.getBoundingClientRect(),ve=Q.top+Q.height/2;u(E.clientY<ve?"top":"bottom");}}},handleTouchEnd:D=>{if(clearTimeout(x.current),d||m){if(f){let E=d,V=m;V&&s?s(V,f,b==="right"?"right":"left"):E&&a&&a(E,f,h||void 0,b==="bottom"?"bottom":"top");}w();}},setDraggedTaskId:c}}function $o(){let[e,t]=ue.useState(false),[r,a]=ue.useState(0),[s,o]=ue.useState(0),i=ue.useRef(null);return {boardRef:i,isDraggingBoard:e,handleBoardMouseDown:m=>{m.target.closest("button")||m.target.closest('[draggable="true"]')||m.target.closest(".no-drag")||(t(true),a(m.pageX-(i.current?.offsetLeft||0)),o(i.current?.scrollLeft||0));},handleBoardMouseMove:m=>{if(!e)return;m.preventDefault();let f=(m.pageX-(i.current?.offsetLeft||0)-r)*2;i.current&&(i.current.scrollLeft=s-f);},handleBoardMouseUp:()=>{t(false);}}}var oa=ue__namespace.default.memo(({task:e,columnId:t,selectedTaskIds:r,activeTimerTaskId:a,selectable:s,cardClassName:o,onTaskClick:i,onTaskSelectionChange:l,onTaskRemove:d,onTaskTimerToggle:c,renderCard:m})=>{if(m)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:m(e)});let p=g=>{switch(g){case "urgent":return "danger";case "high":return "warning";case "medium":return "info";case "low":return "success";default:return "neutral"}},f=r.includes(e.id);return jsxRuntime.jsx(Z,{onClick:g=>i?.(g,e),className:n("p-6 border border-white/10 bg-white/[0.03] hover:bg-white/[0.06] transition-all duration-200 rounded-2xl group",e.blockedBy&&e.blockedBy.length>0&&"border-red-500/30 bg-red-500/[0.02]",f&&"ring-2 ring-cyan-500/50 bg-cyan-500/[0.02]",o),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s&&jsxRuntime.jsx(Cr,{checked:f,onChange:g=>{let v=g.target.checked?[...r,e.id]:r.filter(b=>b!==e.id);l?.(v);},onClick:g=>g.stopPropagation(),className:"mr-1"}),e.blockedBy&&e.blockedBy.length>0&&jsxRuntime.jsx(lucideReact.Lock,{className:"h-3.5 w-3.5 text-red-500 flex-shrink-0"}),jsxRuntime.jsx(U,{className:n("font-medium text-sm leading-tight group-hover:text-cyan-400 transition-colors truncate",e.blockedBy&&e.blockedBy.length>0&&"text-red-400/80"),children:e.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[d&&jsxRuntime.jsx("button",{onClick:g=>{g.stopPropagation(),d(e.id);},className:"p-1 rounded-md hover:bg-red-500/20 text-white/20 hover:text-red-400 transition-colors",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-white/20 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})]}),e.description&&jsxRuntime.jsx(U,{className:"text-xs text-white/50 line-clamp-2",children:e.description}),e.progress!==void 0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between text-[10px]",children:[jsxRuntime.jsx("span",{className:"text-white/30 uppercase font-bold tracking-wider",children:"Progress"}),jsxRuntime.jsxs("span",{className:"text-white/50",children:[e.progress,"%"]})]}),jsxRuntime.jsx("div",{className:"h-1 w-full bg-white/[0.03] rounded-full overflow-hidden",children:jsxRuntime.jsx("div",{className:"h-full bg-cyan-500 transition-all duration-500",style:{width:`${e.progress}%`}})})]}),jsxRuntime.jsxs("div",{className:"flex flex-wrap gap-2 mt-1",children:[e.priority&&jsxRuntime.jsx(Oe,{variant:p(e.priority),className:"text-[10px] px-1.5 py-0 uppercase font-bold",children:e.priority}),e.tags?.map(g=>jsxRuntime.jsx(Oe,{variant:"neutral",className:"text-[10px] px-1.5 py-0 bg-white/[0.03] border-white/5",children:g},g))]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between mt-2 pt-3 border-t border-white/5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-white/30",children:[e.timeSpent!==void 0&&jsxRuntime.jsxs("div",{className:n("flex items-center gap-1 px-1.5 py-0.5 rounded-md transition-colors",a===e.id?"bg-cyan-500/20 text-cyan-400":"bg-white/[0.03]"),children:[a===e.id?jsxRuntime.jsx(lucideReact.Pause,{className:"h-2.5 w-2.5 cursor-pointer hover:scale-110 transition-transform",onClick:g=>{g.stopPropagation(),c?.(e.id);}}):jsxRuntime.jsx(lucideReact.Play,{className:"h-2.5 w-2.5 cursor-pointer hover:scale-110 transition-transform",onClick:g=>{g.stopPropagation(),c?.(e.id);}}),jsxRuntime.jsxs("span",{className:"font-mono",children:[Math.floor(e.timeSpent/3600),"h ",Math.floor(e.timeSpent%3600/60),"m"]})]}),e.comments!==void 0&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx(lucideReact.MessageSquare,{className:"h-3 w-3"}),e.comments]}),e.attachments!==void 0&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Paperclip,{className:"h-3 w-3"}),e.attachments]}),e.dueDate&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-3 w-3"}),e.dueDate]})]}),e.assignee&&jsxRuntime.jsx("div",{className:"flex -space-x-2",children:jsxRuntime.jsx("div",{className:"h-6 w-6 rounded-full border-2 border-[#0a0a0a] bg-white/[0.06] flex items-center justify-center text-[10px] font-bold overflow-hidden",children:e.assignee.avatar?jsxRuntime.jsx("img",{src:e.assignee.avatar,alt:e.assignee.name,className:"h-full w-full object-cover"}):e.assignee.name[0]})})]})]})})});oa.displayName="KanbanCard";var Ko=({column:e,columnMap:t,groupName:r,visibleCount:a,pageSize:s,draggedTaskId:o,draggedColumnId:i,dragOverTaskId:l,dragOverColumnId:d,dropPosition:c,quickAddColumnId:m,quickAddValue:p,selectedTaskIds:f,activeTimerTaskId:g,handleDragStart:h,handleDragEnd:v,handleDragOver:b,handleDrop:u,handleTouchStart:x,handleTouchMove:y,handleTouchEnd:k,handleKeyDown:w,handleLoadMore:N,handleSetQuickAdd:M,handleQuickAdd:T,setQuickAddValue:R,setQuickAddColumnId:O,onTaskClick:D,onTaskFullAdd:E,onTaskRemove:V,onTaskTimerToggle:S,onTaskSelectionChange:C,renderCard:A,selectable:me,cardClassName:Q})=>{let ve=t[e.id]||[],Ae=ve.slice(0,a),De=ve.length>a;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-4 h-full min-h-0",children:[m===`${r}-${e.id}`?jsxRuntime.jsxs("div",{className:"p-4 bg-white/[0.03] border border-cyan-500/30 rounded-2xl animate-in fade-in slide-in-from-top-2 duration-200",children:[jsxRuntime.jsx("input",{autoFocus:true,className:"w-full bg-transparent border-none outline-none text-sm text-white placeholder:text-white/20",placeholder:"Task title...",value:p,onChange:I=>R(I.target.value),onKeyDown:I=>{I.key==="Enter"&&T(e.id,r),I.key==="Escape"&&O(null);},onBlur:()=>{p.trim()||O(null);}}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between mt-3",children:[jsxRuntime.jsx(U,{className:"text-[10px] text-white/30 uppercase font-bold",children:"Press Enter to save"}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(P,{variant:"ghost",size:"sm",className:"h-7 px-2 text-[10px] hover:bg-white/[0.06]",onClick:()=>O(null),children:"Cancel"}),jsxRuntime.jsx(P,{variant:"primary",size:"sm",className:"h-7 px-3 text-[10px] bg-cyan-500 hover:bg-cyan-400 text-black font-bold",onClick:()=>T(e.id,r),children:"Add Task"})]})]})]}):jsxRuntime.jsxs("button",{onClick:()=>M(e.id,r),className:"group/add flex items-center justify-center gap-2 p-4 border border-dashed border-white/10 hover:border-cyan-500/30 hover:bg-cyan-500/[0.02] rounded-2xl transition-all duration-200",children:[jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4 text-white/20 group-hover/add:text-cyan-400 transition-colors"}),jsxRuntime.jsx(U,{className:"text-xs font-bold text-white/20 group-hover/add:text-cyan-400 uppercase tracking-widest transition-colors",children:"Add New Task"})]}),jsxRuntime.jsxs("div",{role:"list","aria-label":`Tasks in ${e.title}`,className:"flex-1 overflow-y-auto pr-2 custom-scrollbar flex flex-col gap-4 min-h-0 pb-20",children:[Ae.map(I=>jsxRuntime.jsxs(ue__namespace.default.Fragment,{children:[o&&l===I.id&&c==="top"&&o!==I.id&&jsxRuntime.jsx("div",{className:"h-1 bg-cyan-500/50 rounded-full animate-pulse"}),jsxRuntime.jsx("div",{draggable:true,role:"listitem","aria-label":`Task: ${I.title}`,onDragStart:He=>h(He,I.id,"task"),onDragEnd:v,onDragOver:He=>b(He,e.id,I.id),onDrop:He=>u(He,e.id,I.id),onTouchStart:He=>x(He,I.id,"task"),onTouchMove:y,onTouchEnd:k,onKeyDown:He=>w(He,I.id,e.id),tabIndex:0,"data-task-id":I.id,className:n("outline-none transition-all duration-200",o===I.id?"opacity-20 scale-95":"opacity-100 scale-100",l===I.id&&o?"ring-2 ring-cyan-500/30 rounded-2xl":""),children:jsxRuntime.jsx(oa,{task:I,columnId:e.id,selectedTaskIds:f,activeTimerTaskId:g,selectable:me,cardClassName:Q,onTaskClick:D,onTaskSelectionChange:C,onTaskRemove:V,onTaskTimerToggle:S,renderCard:A})}),o&&l===I.id&&c==="bottom"&&o!==I.id&&jsxRuntime.jsx("div",{className:"h-1 bg-cyan-500/50 rounded-full animate-pulse"})]},I.id)),De&&jsxRuntime.jsxs("button",{onClick:()=>N(e.id),className:"flex items-center justify-center gap-2 p-4 text-white/30 hover:text-cyan-400 transition-colors",children:[jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"}),jsxRuntime.jsxs("span",{className:"text-xs font-bold uppercase tracking-widest",children:["Load ",ve.length-a," more tasks"]})]}),ve.length===0&&!o&&jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-12 px-4 border border-dashed border-white/5 rounded-[2rem] opacity-20",children:[jsxRuntime.jsx(lucideReact.LayoutGrid,{className:"h-8 w-8 mb-3"}),jsxRuntime.jsx(U,{className:"text-xs font-medium",children:"No tasks yet"})]}),ve.length===0&&o&&jsxRuntime.jsx("div",{className:"flex-1 min-h-[200px] border-2 border-dashed border-cyan-500/20 rounded-[2rem] bg-cyan-500/[0.02] flex items-center justify-center",onDragOver:I=>b(I,e.id),onDrop:I=>u(I,e.id),children:jsxRuntime.jsx(U,{className:"text-xs font-bold text-cyan-500/40 uppercase tracking-widest",children:"Drop here"})})]})]})};function Ex({columns:e,tasks:t,onTaskMove:r,onColumnMove:a,onTaskClick:s,onTaskAdd:o,onTaskFullAdd:i,onTaskRemove:l,onColumnAction:d,onTaskDrop:c,onTaskDragStart:m,onTaskDragEnd:p,onTaskSelectionChange:f,onTaskTimerToggle:g,renderCard:h,className:v,columnClassName:b,cardClassName:u,groupBy:x,accentColor:y="cyan",showTaskCount:k=true,showDividers:w=true,columnHeight:N="calc(100vh - 200px)",pageSize:M=10,selectable:T=false,selectedTaskIds:R=[],activeTimerTaskId:O=null}){let[D,E]=ue.useState(null),[V,S]=ue.useState(""),{tasksByGroupAndColumn:C,sortConfig:A,setSortConfig:me,visibleCounts:Q,handleLoadMore:ve}=Vo({tasks:t,columns:e,groupBy:x,pageSize:M}),{draggedTaskId:Ae,draggedColumnId:De,dragOverColumnId:I,dragOverTaskId:He,dropPosition:wr,handleDragStart:wa,handleDragEnd:yr,handleDragOver:kr,handleDrop:Nr,handleTouchStart:ya,handleTouchMove:ka,handleTouchEnd:Na,setDraggedTaskId:vn}=zo({tasks:t,columns:e,selectedTaskIds:R,onTaskMove:r,onColumnMove:a,onTaskDrop:c,onTaskDragStart:m,onTaskDragEnd:p}),{boardRef:wn,isDraggingBoard:yn,handleBoardMouseDown:kn,handleBoardMouseMove:Nn,handleBoardMouseUp:Ta}=$o(),Ma=(L,F="default")=>{E(`${F}-${L}`);},Tn=(L,F="default")=>{V.trim()&&o&&(o(L,V.trim()),S(""),E(null));},Mn=ue.useCallback((L,F)=>{if(T&&(L.ctrlKey||L.metaKey)){L.preventDefault(),L.stopPropagation();let we=R.includes(F.id)?R.filter(K=>K!==F.id):[...R,F.id];f?.(we);}else s?.(F);},[T,R,f,s]),Rn=(L,F,B)=>{if((L.key===" "||L.key==="Enter")&&(L.preventDefault(),Ae===F?(r&&r(Ae,B),yr()):vn(F)),Ae===F){let we=e.findIndex(Fe=>Fe.id===B),K=-1,Ra="default";for(let[Fe,Cn]of Object.entries(C)){let Ca=(Cn[B]||[]).findIndex(Ln=>Ln.id===F);if(Ca!==-1){K=Ca,Ra=Fe;break}}let Tr=C[Ra]?.[B]||[];if(L.key==="ArrowRight"&&we<e.length-1)r?.(F,e[we+1].id);else if(L.key==="ArrowLeft"&&we>0)r?.(F,e[we-1].id);else if(L.key==="ArrowDown"&&K<Tr.length-1){let Fe=Tr[K+1];Fe&&r?.(F,B,Fe.id,"bottom");}else if(L.key==="ArrowUp"&&K>0){let Fe=Tr[K-1];Fe&&r?.(F,B,Fe.id,"top");}}};return jsxRuntime.jsxs("div",{ref:wn,role:"list","aria-label":"Kanban Board",onMouseDown:kn,onMouseMove:Nn,onMouseUp:Ta,onMouseLeave:Ta,className:n("flex flex-col overflow-x-auto overflow-y-hidden pb-4 select-none board-scroll-container snap-x snap-mandatory scroll-smooth",yn?"cursor-grabbing":"cursor-grab",v),style:{height:typeof N=="number"?`${N}px`:N},children:[jsxRuntime.jsx("div",{className:"flex sticky top-0 z-20 bg-[#0a0a0a]/80 backdrop-blur-md border-b border-white/10 w-fit",children:e.map((L,F)=>{let B=t.filter(K=>K.columnId===L.id),we=L.limit&&B.length>L.limit;return jsxRuntime.jsxs("div",{role:"listitem","aria-label":`Column: ${L.title}`,className:n("flex-shrink-0 w-[480px] flex items-center justify-between px-8 py-6 group/header snap-start",w&&F>0&&"border-l border-white/10"),onDragOver:K=>kr(K,L.id),onDrop:K=>Nr(K,L.id),children:[jsxRuntime.jsxs("div",{draggable:true,onDragStart:K=>wa(K,L.id,"column"),onDragEnd:yr,onTouchStart:K=>ya(K,L.id,"column"),onTouchMove:ka,onTouchEnd:Na,className:"flex items-center gap-3 cursor-grab active:cursor-grabbing flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"w-2.5 h-2.5 rounded-full shadow-[0_0_10px_rgba(0,0,0,0.5)]",style:{backgroundColor:L.color||`var(--${y}-500)`}}),jsxRuntime.jsx(Ke,{as:"h4",className:"text-sm font-bold uppercase tracking-[0.1em] text-white/90 truncate",children:L.title}),k&&jsxRuntime.jsxs(Oe,{variant:we?"danger":"neutral",className:n("ml-1 text-[10px] px-2 py-0.5 rounded-full font-bold",!we&&"bg-white/[0.06] border-white/5 text-white/60"),children:[B.length,L.limit?` / ${L.limit}`:""]}),we&&jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-3.5 w-3.5 text-amber-500 animate-pulse"})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 opacity-0 group-hover/header:opacity-100 transition-all duration-200",children:[jsxRuntime.jsx(P,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-white/[0.06] rounded-full text-white/40 hover:text-white",onClick:()=>Ma(L.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4.5 w-4.5"})}),jsxRuntime.jsxs(wt,{children:[jsxRuntime.jsx(yt,{className:"h-8 w-8 p-0 hover:bg-white/[0.06] rounded-full flex items-center justify-center text-white/40 hover:text-white transition-colors",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4.5 w-4.5"})}),jsxRuntime.jsxs(kt,{align:"end",className:"w-56 bg-[#1a1a1a]/95 backdrop-blur-xl border border-white/10 p-1.5 shadow-2xl z-50 rounded-2xl",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 mb-1",children:jsxRuntime.jsx(U,{className:"text-[10px] font-bold uppercase tracking-widest text-white/30",children:"Column Actions"})}),jsxRuntime.jsxs(ee,{onClick:()=>d?.(L.id,"settings"),className:"gap-2.5 text-xs text-white/70 hover:text-white hover:bg-white/[0.03] rounded-2xl py-2",children:[jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})," Column Settings"]}),jsxRuntime.jsx("div",{className:"h-px bg-white/[0.03] my-1.5"}),jsxRuntime.jsx("div",{className:"px-2 py-1.5 mb-1",children:jsxRuntime.jsx(U,{className:"text-[10px] font-bold uppercase tracking-widest text-white/30",children:"Sort Tasks"})}),jsxRuntime.jsxs(ee,{onClick:()=>me({field:"title",direction:A?.field==="title"&&A.direction==="asc"?"desc":"asc"}),className:n("gap-2.5 text-xs hover:bg-white/[0.03] rounded-2xl py-2",A?.field==="title"?"text-cyan-400 bg-cyan-500/5":"text-white/70 hover:text-white"),children:[jsxRuntime.jsx(lucideReact.SortAsc,{className:"h-4 w-4"})," Sort by Title",A?.field==="title"&&jsxRuntime.jsx("span",{className:"ml-auto text-[10px] uppercase font-bold opacity-50",children:A.direction})]}),jsxRuntime.jsxs(ee,{onClick:()=>me({field:"priority",direction:A?.field==="priority"&&A.direction==="desc"?"asc":"desc"}),className:n("gap-2.5 text-xs hover:bg-white/[0.03] rounded-2xl py-2",A?.field==="priority"?"text-cyan-400 bg-cyan-500/5":"text-white/70 hover:text-white"),children:[jsxRuntime.jsx(lucideReact.ArrowUpDown,{className:"h-4 w-4"})," Sort by Priority",A?.field==="priority"&&jsxRuntime.jsx("span",{className:"ml-auto text-[10px] uppercase font-bold opacity-50",children:A.direction})]}),jsxRuntime.jsxs(ee,{onClick:()=>me({field:"dueDate",direction:A?.field==="dueDate"&&A.direction==="asc"?"desc":"asc"}),className:n("gap-2.5 text-xs hover:bg-white/[0.03] rounded-2xl py-2",A?.field==="dueDate"?"text-cyan-400 bg-cyan-500/5":"text-white/70 hover:text-white"),children:[jsxRuntime.jsx(lucideReact.CalendarDays,{className:"h-4 w-4"})," Sort by Date",A?.field==="dueDate"&&jsxRuntime.jsx("span",{className:"ml-auto text-[10px] uppercase font-bold opacity-50",children:A.direction})]}),jsxRuntime.jsx("div",{className:"h-px bg-white/[0.03] my-1.5"}),jsxRuntime.jsxs(ee,{className:"gap-2.5 text-xs text-white/70 hover:text-white hover:bg-white/[0.03] rounded-2xl py-2",children:[jsxRuntime.jsx(lucideReact.Archive,{className:"h-4 w-4"})," Archive All Tasks"]}),jsxRuntime.jsxs(ee,{className:"gap-2.5 text-xs text-red-400 hover:text-red-300 hover:bg-red-500/10 rounded-2xl py-2",children:[jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})," Delete Column"]})]})]})]})]},L.id)})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto w-fit",children:Object.entries(C).map(([L,F])=>jsxRuntime.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[x&&jsxRuntime.jsxs("div",{className:"sticky top-0 z-10 flex items-center gap-3 px-6 py-2 bg-[#0a0a0a]/60 backdrop-blur-sm border-b border-white/5",children:[jsxRuntime.jsx(Oe,{variant:"neutral",className:"bg-white/[0.06] border-white/10 text-[10px] uppercase font-bold tracking-widest px-3",children:L}),jsxRuntime.jsx("div",{className:"h-px flex-1 bg-white/[0.03]"})]}),jsxRuntime.jsx("div",{className:"flex min-w-max h-full min-h-0",children:e.map((B,we)=>jsxRuntime.jsxs(ue__namespace.default.Fragment,{children:[De&&I===B.id&&wr==="left"&&De!==B.id&&jsxRuntime.jsx("div",{className:"flex-shrink-0 w-1 bg-cyan-500/50 mx-2 rounded-full animate-pulse"}),jsxRuntime.jsx("div",{"data-column-id":B.id,className:n("flex-shrink-0 w-[480px] flex flex-col gap-6 transition-all duration-300 p-4 rounded-[2rem] snap-start h-full min-h-0 overflow-hidden",w&&we>0&&"border-l border-white/10",De===B.id?"opacity-20":"opacity-100",I===B.id&&De?"bg-cyan-500/5":"",B.limit&&(F[B.id]||[]).length>B.limit&&"bg-red-500/[0.02] ring-1 ring-inset ring-red-500/20",b),onDragOver:K=>kr(K,B.id),onDrop:K=>Nr(K,B.id),children:jsxRuntime.jsx(Ko,{column:B,columnMap:F,groupName:L,visibleCount:Q[B.id]||M,pageSize:M,draggedTaskId:Ae,draggedColumnId:De,dragOverTaskId:He,dragOverColumnId:I,dropPosition:wr,quickAddColumnId:D,quickAddValue:V,selectedTaskIds:R,activeTimerTaskId:O,handleDragStart:wa,handleDragEnd:yr,handleDragOver:kr,handleDrop:Nr,handleTouchStart:ya,handleTouchMove:ka,handleTouchEnd:Na,handleKeyDown:Rn,handleLoadMore:ve,handleSetQuickAdd:Ma,handleQuickAdd:Tn,setQuickAddValue:S,setQuickAddColumnId:E,onTaskClick:Mn,onTaskFullAdd:i,onTaskRemove:l,onTaskTimerToggle:g,onTaskSelectionChange:f,renderCard:h,selectable:T,cardClassName:u})},B.id),De&&I===B.id&&wr==="right"&&De!==B.id&&jsxRuntime.jsx("div",{className:"flex-shrink-0 w-1 bg-cyan-500/50 mx-2 rounded-full animate-pulse"})]},B.id))})]},L))})]})}var sd=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-2xl border-2 border-dashed transition-all duration-200 text-center",{variants:{isDragActive:{true:"border-blue-500 bg-blue-50 dark:bg-blue-500/10",false:"border-gray-200 bg-gray-50 hover:bg-gray-100 dark:border-white/10 dark:bg-white/[0.02] dark:hover:bg-white/[0.05]"},error:{true:"border-rose-500 bg-rose-50 dark:bg-rose-500/10",false:""}},defaultVariants:{isDragActive:false,error:false}}),sa=ue__namespace.default.forwardRef(({className:e,onDrop:t,maxFiles:r=1,maxSize:a,label:s="Upload files",description:o="Drag & drop or click to upload",...i},l)=>{let[d,c]=ue.useState(false),[m,p]=ue.useState([]),[f,g]=ue.useState(null),h=ue__namespace.default.useRef(null),v=w=>{w.preventDefault(),c(true);},b=w=>{w.preventDefault(),c(false);},u=w=>r&&w.length>r?(g(`Max ${r} files allowed`),false):a&&w.some(M=>M.size>a)?(g(`File too large (max ${a/1024/1024}MB)`),false):(g(null),true),x=w=>{w.preventDefault(),c(false);let N=Array.from(w.dataTransfer.files);u(N)&&(p(N),t?.(N));},y=w=>{if(w.target.files){let N=Array.from(w.target.files);u(N)&&(p(N),t?.(N));}},k=(w,N)=>{N.stopPropagation();let M=m.filter((T,R)=>R!==w);p(M),t?.(M);};return jsxRuntime.jsxs("div",{className:"w-full space-y-4",children:[jsxRuntime.jsxs("div",{ref:l,className:n(sd({isDragActive:d,error:!!f,className:e}),"p-8 cursor-pointer"),onDragOver:v,onDragLeave:b,onDrop:x,onClick:()=>h.current?.click(),...i,children:[jsxRuntime.jsx("input",{ref:h,type:"file",className:"hidden",multiple:r>1,onChange:y}),jsxRuntime.jsx("div",{className:"mb-4 rounded-full bg-gray-100 p-3 dark:bg-white/[0.06]",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-gray-500 dark:text-white/70"})}),jsxRuntime.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:s}),jsxRuntime.jsx("div",{className:"mt-1 text-xs text-gray-500 dark:text-white/50",children:o}),f&&jsxRuntime.jsx("div",{className:"mt-2 text-xs font-medium text-rose-500",children:f})]}),m.length>0&&jsxRuntime.jsx("div",{className:"grid gap-2",children:m.map((w,N)=>jsxRuntime.jsxs("div",{className:"flex items-center justify-between rounded-xl border border-gray-200 bg-white p-3 dark:border-white/10 dark:bg-white/[0.03]",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-gray-100 dark:bg-white/[0.06]",children:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4 text-gray-500 dark:text-white/70"})}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white truncate max-w-[200px]",children:w.name}),jsxRuntime.jsxs("span",{className:"text-xs text-gray-500 dark:text-white/50",children:[(w.size/1024).toFixed(1)," KB"]})]})]}),jsxRuntime.jsx("button",{onClick:M=>k(N,M),className:"rounded-full p-1 hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-white/50",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]},N))})]})});sa.displayName="FileDropzone";function Jx({isOpen:e,onClose:t,onSave:r,task:a,columnId:s}){let[o,i]=ue.useState(""),[l,d]=ue.useState(""),[c,m]=ue.useState("medium"),[p,f]=ue.useState([]),[g,h]=ue.useState("");ue.useEffect(()=>{a?(i(a.title||""),d(a.description||""),m(a.priority||"medium"),f(a.tags||[])):(i(""),d(""),m("medium"),f([]));},[a,e]);let v=()=>{o.trim()&&(r({...a,title:o,description:l,priority:c,tags:p,columnId:a?.columnId||s}),t());},b=()=>{g.trim()&&!p.includes(g.trim())&&(f([...p,g.trim()]),h(""));},u=x=>{f(p.filter(y=>y!==x));};return jsxRuntime.jsxs(bo,{isOpen:e,onClose:t,children:[jsxRuntime.jsx(ho,{children:jsxRuntime.jsx(vo,{children:a?"Edit Task":"Create New Task"})}),jsxRuntime.jsxs("div",{className:"space-y-6 py-4",children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Y,{htmlFor:"task-title",children:"Title"}),jsxRuntime.jsx(ft,{id:"task-title",placeholder:"What needs to be done?",value:o,onChange:x=>i(x.target.value),autoFocus:true})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Y,{htmlFor:"task-desc",children:"Description"}),jsxRuntime.jsx(Br,{id:"task-desc",placeholder:"Add more details...",value:l,onChange:x=>d(x.target.value),rows:4})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Y,{children:"Priority"}),jsxRuntime.jsx(Dr,{options:[{label:"Low",value:"low"},{label:"Medium",value:"medium"},{label:"High",value:"high"},{label:"Urgent",value:"urgent"}],value:c,onChange:x=>m(x)})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Y,{children:"Tags"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(ft,{placeholder:"Add tag...",value:g,onChange:x=>h(x.target.value),onKeyDown:x=>x.key==="Enter"&&(x.preventDefault(),b())}),jsxRuntime.jsx(P,{variant:"outline",onClick:b,type:"button",children:"Add"})]}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:p.map(x=>jsxRuntime.jsxs("span",{className:"flex items-center gap-1 px-2 py-1 rounded-2xl bg-white/[0.03] border border-white/10 text-xs text-white/70",children:[x,jsxRuntime.jsx(lucideReact.X,{size:12,className:"cursor-pointer hover:text-white",onClick:()=>u(x)})]},x))})]})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Y,{children:"Attachments"}),jsxRuntime.jsx(sa,{onDrop:x=>console.log("Files selected:",x),className:"border-dashed border-white/10 bg-white/[0.02]"})]})]}),jsxRuntime.jsxs(xo,{children:[jsxRuntime.jsx(P,{variant:"ghost",onClick:t,children:"Cancel"}),jsxRuntime.jsx(P,{variant:"primary",onClick:v,disabled:!o.trim(),children:a?"Save Changes":"Create Task"})]})]})}function cv({onSearchChange:e,onFilterChange:t,priorityOptions:r=[],tagOptions:a=[],assigneeOptions:s=[],className:o}){let[i,l]=ue.useState(""),[d,c]=ue.useState({}),m=(g,h)=>{let v=d[g]||[],b=v.includes(h)?v.filter(x=>x!==h):[...v,h],u={...d,[g]:b};b.length===0&&delete u[g],c(u),t?.(u);},p=()=>{c({}),t?.({});},f=Object.values(d).flat().length;return jsxRuntime.jsxs(Z,{className:n("p-2 flex flex-wrap items-center gap-3",o),children:[jsxRuntime.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-white/20"}),jsxRuntime.jsx("input",{type:"text",placeholder:"Search tasks...",className:"w-full pl-10 pr-4 py-2 text-sm rounded-2xl border border-white/10 bg-white/[0.03] focus:outline-none focus:ring-2 focus:ring-cyan-500/50 transition-all placeholder:text-white/20",value:i,onChange:g=>{l(g.target.value),e?.(g.target.value);}})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Yo,{label:"Priority",options:r,selected:d.priority||[],onSelect:g=>m("priority",g)}),jsxRuntime.jsx(Yo,{label:"Tags",options:a,selected:d.tags||[],onSelect:g=>m("tags",g)}),f>0&&jsxRuntime.jsxs(P,{variant:"ghost",size:"sm",onClick:p,className:"h-9 px-3 text-xs text-white/40 hover:text-white gap-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})," Clear Filters",jsxRuntime.jsx(Oe,{variant:"neutral",className:"bg-white/[0.06] border-white/10 ml-1",children:f})]})]})]})}function Yo({label:e,options:t,selected:r,onSelect:a}){return jsxRuntime.jsxs(Ue,{children:[jsxRuntime.jsxs(Ye,{className:n("h-9 px-3 text-xs gap-2 border border-transparent hover:border-white/10 rounded-2xl transition-all",r.length>0?"bg-cyan-500/10 text-cyan-400 border-cyan-500/20":"text-white/60"),children:[jsxRuntime.jsx(lucideReact.Filter,{className:"h-3.5 w-3.5"}),e,r.length>0&&jsxRuntime.jsx(Oe,{variant:"info",className:"h-4 min-w-[16px] px-1 bg-cyan-500 text-black border-none",children:r.length}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-3.5 w-3.5 opacity-40"})]}),jsxRuntime.jsx(je,{className:"w-56 p-0 bg-[#1a1a1a] border-white/10 shadow-2xl",children:jsxRuntime.jsxs(No,{children:[jsxRuntime.jsx(To,{placeholder:`Search ${e}...`}),jsxRuntime.jsx(Mo,{children:jsxRuntime.jsx(Ro,{children:t.map(s=>jsxRuntime.jsxs(Co,{value:s.value,onSelect:()=>a(s.value),className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{children:s.label}),r.includes(s.value)&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-cyan-400"})]},s.value))})})]})})]})}function wv({tasks:e,onTaskClick:t,onAddTask:r,className:a}){let[s,o]=ue.useState(new Date),i=(u,x)=>new Date(u,x+1,0).getDate(),l=(u,x)=>new Date(u,x,1).getDay(),d=s.getFullYear(),c=s.getMonth(),m=i(d,c),p=l(d,c),f=()=>o(new Date(d,c-1,1)),g=()=>o(new Date(d,c+1,1)),h=["January","February","March","April","May","June","July","August","September","October","November","December"],v=[];for(let u=0;u<p;u++)v.push(null);for(let u=1;u<=m;u++)v.push(new Date(d,c,u));let b=u=>e.filter(x=>{if(!x.dueDate)return false;let y=new Date(x.dueDate);if(isNaN(y.getTime())){let k=new Date().getFullYear(),w=new Date(`${x.dueDate} ${k}`);return w.getDate()===u.getDate()&&w.getMonth()===u.getMonth()&&w.getFullYear()===u.getFullYear()}return y.getDate()===u.getDate()&&y.getMonth()===u.getMonth()&&y.getFullYear()===u.getFullYear()});return jsxRuntime.jsxs(Z,{className:n("flex flex-col h-[700px] overflow-hidden",a),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-white/10",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs(U,{className:"text-xl font-bold text-white",children:[h[c]," ",d]}),jsxRuntime.jsx(U,{className:"text-xs text-white/40 uppercase tracking-widest font-bold",children:"Monthly Schedule"})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(P,{variant:"outline",size:"sm",onClick:f,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(P,{variant:"outline",size:"sm",onClick:()=>o(new Date),children:"Today"}),jsxRuntime.jsx(P,{variant:"outline",size:"sm",onClick:g,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b border-white/10 bg-white/[0.02]",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(u=>jsxRuntime.jsx("div",{className:"py-2 text-center",children:jsxRuntime.jsx(U,{className:"text-xs font-bold text-white/40 uppercase tracking-wider",children:u})},u))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 auto-rows-fr overflow-y-auto",children:v.map((u,x)=>{if(!u)return jsxRuntime.jsx("div",{className:"border-r border-b border-white/5 bg-white/[0.01]"},`empty-${x}`);let y=b(u),k=new Date().toDateString()===u.toDateString();return jsxRuntime.jsxs("div",{className:n("group relative border-r border-b border-white/10 p-2 min-h-[100px] transition-colors hover:bg-white/[0.02]",k&&"bg-cyan-500/[0.03]"),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsxRuntime.jsx("span",{className:n("text-sm font-medium w-7 h-7 flex items-center justify-center rounded-full transition-colors",k?"bg-cyan-500 text-white":"text-white/60 group-hover:text-white"),children:u.getDate()}),jsxRuntime.jsx("button",{onClick:()=>r?.(u),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-white/[0.06] rounded-md transition-all text-white/40 hover:text-white",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-3 w-3"})})]}),jsxRuntime.jsx("div",{className:"space-y-1",children:y.map(w=>jsxRuntime.jsx("div",{onClick:()=>t?.(w),className:n("px-2 py-1 text-[10px] rounded-md border cursor-pointer transition-all truncate",w.priority==="urgent"?"bg-red-500/10 border-red-500/20 text-red-400":w.priority==="high"?"bg-orange-500/10 border-orange-500/20 text-orange-400":w.priority==="medium"?"bg-cyan-500/10 border-cyan-500/20 text-cyan-400":"bg-gray-500/10 border-gray-500/20 text-gray-400"),children:w.title},w.id))})]},u.toISOString())})})]})}var xd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Z,{ref:r,className:e,...t}));xd.displayName="Card";var vd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:n("flex flex-col space-y-1.5 p-6",e),...t}));vd.displayName="CardHeader";var wd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h3",{ref:r,className:n("text-2xl font-semibold leading-none tracking-tight",e),...t}));wd.displayName="CardTitle";var yd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:n("text-sm text-gray-500 dark:text-white/50",e),...t}));yd.displayName="CardDescription";var kd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:n("p-6 pt-0",e),...t}));kd.displayName="CardContent";var Nd=ue__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:n("flex items-center p-6 pt-0",e),...t}));Nd.displayName="CardFooter";var la=ue__namespace.default.forwardRef(({className:e,containerClassName:t,alt:r,src:a,fallback:s,onLoad:o,onError:i,...l},d)=>{let[c,m]=ue.useState(true),[p,f]=ue.useState(false),g=v=>{m(false),o?.(v);},h=v=>{m(false),f(true),i?.(v);};return p&&s?jsxRuntime.jsx(jsxRuntime.Fragment,{children:s}):jsxRuntime.jsxs("div",{className:n("relative overflow-hidden rounded-2xl bg-gray-100 dark:bg-white/[0.02] border border-gray-200 dark:border-white/10",t),children:[c&&jsxRuntime.jsx(Io,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:d,src:a,alt:r,onLoad:g,onError:h,className:n("h-full w-full object-cover transition-opacity duration-300",c?"opacity-0":"opacity-100",e),...l})]})});la.displayName="Image";var Ld=ue__namespace.default.forwardRef(({className:e,size:t="lg",...r},a)=>jsxRuntime.jsx("div",{ref:a,className:n("mx-auto w-full px-4",{sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl",full:"max-w-full"}[t],e),...r}));Ld.displayName="Container";var Dd=ue__namespace.default.forwardRef(({className:e,direction:t="col",gap:r=4,align:a,justify:s,wrap:o,style:i,...l},d)=>jsxRuntime.jsx("div",{ref:d,className:n("flex",{"flex-row":t==="row","flex-col":t==="col","flex-row-reverse":t==="row-reverse","flex-col-reverse":t==="col-reverse","flex-wrap":o,"items-start":a==="start","items-end":a==="end","items-center":a==="center","items-baseline":a==="baseline","items-stretch":a==="stretch","justify-start":s==="start","justify-end":s==="end","justify-center":s==="center","justify-between":s==="between","justify-around":s==="around","justify-evenly":s==="evenly"},e),style:{gap:typeof r=="number"?`${r*.25}rem`:r,...i},...l}));Dd.displayName="Stack";var Sd=ue__namespace.default.forwardRef(({className:e,cols:t=1,sm:r,md:a,lg:s,xl:o,gap:i=4,style:l,...d},c)=>jsxRuntime.jsx("div",{ref:c,className:n("grid",r&&`sm:grid-cols-${r}`,a&&`md:grid-cols-${a}`,s&&`lg:grid-cols-${s}`,o&&`xl:grid-cols-${o}`,e),style:{gridTemplateColumns:t?`repeat(${t}, minmax(0, 1fr))`:void 0,gap:typeof i=="number"?`${i*.25}rem`:i,...l},...d}));Sd.displayName="Grid";var Bd=ue__namespace.default.forwardRef(({variant:e="none",noise:t=false,patternColor:r,size:a=24,mask:s="none",animate:o=false,followMouse:i=false,bgColor:l,className:d,children:c,style:m,...p},f)=>{let g=ue__namespace.default.useRef(null);ue__namespace.default.useEffect(()=>{if(!i)return;let b=u=>{let x=g.current;if(!x)return;let y=x.getBoundingClientRect(),k=u.clientX-y.left,w=u.clientY-y.top;x.style.setProperty("--mouse-x",`${k}px`),x.style.setProperty("--mouse-y",`${w}px`);};return window.addEventListener("mousemove",b),()=>window.removeEventListener("mousemove",b)},[i]);let h=()=>{let b={},u=r||"var(--pattern-color, rgba(255,255,255,0.08))";return e==="dots"?{...b,backgroundImage:`radial-gradient(${u} 1px, transparent 1px)`,backgroundSize:`${a}px ${a}px`,transform:i?"translate3d(calc((var(--mouse-x, 0) - 24px) / 40), calc((var(--mouse-y, 0) - 24px) / 40), 0)":void 0}:e==="grid"?{...b,backgroundImage:`
|
|
13
|
+
linear-gradient(to right, ${u} 1px, transparent 1px),
|
|
14
|
+
linear-gradient(to bottom, ${u} 1px, transparent 1px)
|
|
15
|
+
`,backgroundSize:`${a}px ${a}px`,transform:i?"translate3d(calc((var(--mouse-x, 0) - 24px) / 40), calc((var(--mouse-y, 0) - 24px) / 40), 0)":void 0}:e==="gradient"?{...b,background:i?`radial-gradient(circle at var(--mouse-x, center) var(--mouse-y, center), ${u}, transparent)`:`radial-gradient(circle at center, ${u}, transparent)`}:e==="beams"?{...b,background:`radial-gradient(60% 40% at 50% 0%, ${u} 0%, transparent 100%)`}:b},v=s==="fade"?{maskImage:"radial-gradient(ellipse at center, black, transparent 90%)",WebkitMaskImage:"radial-gradient(ellipse at center, black, transparent 90%)"}:{};return jsxRuntime.jsxs("div",{ref:b=>{b&&(g.current=b),typeof f=="function"?f(b):f&&(f.current=b);},className:n("absolute inset-0 overflow-hidden pointer-events-none transition-transform duration-300 ease-out","z-0","[--pattern-color:rgba(0,0,0,0.05)] dark:[--pattern-color:rgba(255,255,255,0.08)]",l?.startsWith("bg-")?l:"",d),style:{...h(),...v,...m,backgroundColor:l&&!l.startsWith("bg-")?l:void 0},...p,children:[t&&jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none brightness-100 contrast-150",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`}}),e==="beams"&&jsxRuntime.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"absolute top-0 left-1/4 w-px h-full bg-gradient-to-b from-transparent via-white/10 to-transparent"}),jsxRuntime.jsx("div",{className:"absolute top-0 right-1/4 w-px h-full bg-gradient-to-b from-transparent via-white/10 to-transparent"})]}),e==="mesh"&&jsxRuntime.jsxs("div",{className:n("absolute inset-0 opacity-30 blur-[100px]",o&&"animate-pulse"),children:[jsxRuntime.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[50%] h-[50%] rounded-full bg-blue-500/20"}),jsxRuntime.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[50%] h-[50%] rounded-full bg-purple-500/20"}),jsxRuntime.jsx("div",{className:"absolute top-[20%] right-[10%] w-[40%] h-[40%] rounded-full bg-indigo-500/10"})]}),c]})});Bd.displayName="Background";var Fd={theme:"system",setTheme:()=>null},Xo=ue.createContext(Fd);function Qv({children:e,defaultTheme:t="system",storageKey:r="vite-ui-theme",...a}){let[s,o]=ue.useState(()=>localStorage.getItem(r)||t);ue.useEffect(()=>{let l=window.document.documentElement;if(l.classList.remove("light","dark"),s==="system"){let d=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>{l.classList.remove("light","dark"),l.classList.add(d.matches?"dark":"light");};return c(),d.addEventListener("change",c),()=>d.removeEventListener("change",c)}l.classList.add(s);},[s]);let i={theme:s,setTheme:l=>{localStorage.setItem(r,l),o(l);}};return jsxRuntime.jsx(Xo.Provider,{...a,value:i,children:e})}var Go=()=>{let e=ue.useContext(Xo);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function aw(){let{setTheme:e,theme:t}=Go();return jsxRuntime.jsxs(P,{variant:"ghost",size:"icon",onClick:()=>e(t==="light"?"dark":"light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}var Zo=ue.createContext(void 0);function he(){let e=ue.useContext(Zo);if(!e)throw new Error("Chart components must be used within a ChartContainer");return e}function Pt(e,t,r){return t===0?0:e/t*r}function lw({data:e,height:t=300,padding:r={top:20,right:20,bottom:40,left:40},className:a,children:s,...o}){let[i,l]=ue.useState(null),[d,c]=ue.useState(0),m=ue__namespace.default.useRef(null);ue__namespace.default.useEffect(()=>{if(!m.current)return;let f=new ResizeObserver(g=>{g[0]&&c(g[0].contentRect.width);});return f.observe(m.current),()=>f.disconnect()},[]);let p=ue.useMemo(()=>Math.max(...e.map(f=>f.value))*1.1,[e]);return jsxRuntime.jsx(Zo.Provider,{value:{width:d,height:t,data:e,maxValue:p,padding:r,hoveredIndex:i,setHoveredIndex:l},children:jsxRuntime.jsx("div",{ref:m,className:n("relative w-full select-none",a),style:{height:t},...o,children:d>0&&jsxRuntime.jsx("svg",{width:"100%",height:"100%",viewBox:`0 0 ${d} ${t}`,className:"overflow-visible",children:s})})})}function dw({lines:e=5}){let{width:t,height:r,padding:a}=he(),s=r-a.top-a.bottom;return jsxRuntime.jsx("g",{className:"text-gray-200 dark:text-white/5",children:Array.from({length:e+1}).map((o,i)=>{let l=a.top+s/e*i;return jsxRuntime.jsx("line",{x1:a.left,y1:l,x2:t-a.right,y2:l,stroke:"currentColor",strokeWidth:1,strokeDasharray:"4 4"},i)})})}function cw(){let{width:e,height:t,padding:r,data:a}=he(),o=(e-r.left-r.right)/a.length;return jsxRuntime.jsx("g",{children:a.map((i,l)=>{let d=r.left+o*l+o/2,c=t-r.bottom+20;return jsxRuntime.jsx("text",{x:d,y:c,textAnchor:"middle",className:"fill-gray-400 dark:fill-white/40 text-xs font-medium",children:i.label},l)})})}function mw({renderTooltip:e}){let{hoveredIndex:t,data:r,width:a,padding:s}=he();if(t===null)return null;let i=(a-s.left-s.right)/r.length,l=s.left+i*t+i/2,d=r[t];if(!d)return null;let c=e?e(d):jsxRuntime.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-white/10 bg-white/90 dark:bg-black/80 px-3 py-2 text-xs shadow-xl backdrop-blur-md",children:[jsxRuntime.jsx("div",{className:"font-semibold text-gray-900 dark:text-white",children:d.label}),jsxRuntime.jsxs("div",{className:"text-gray-500 dark:text-white/70",children:["Value: ",d.value]})]});return jsxRuntime.jsx("foreignObject",{x:l-75,y:0,width:150,height:"100%",className:"pointer-events-none overflow-visible",children:jsxRuntime.jsx("div",{className:"flex h-full flex-col justify-center items-center",children:jsxRuntime.jsx("div",{className:"animate-in fade-in zoom-in-95 duration-200",children:c})})})}function uw(){return jsxRuntime.jsx("div",{className:"w-full h-full flex items-end justify-between gap-2 p-4 animate-pulse bg-gray-100 dark:bg-white/[0.02] rounded-2xl border border-gray-200 dark:border-white/5",children:[...Array(12)].map((e,t)=>jsxRuntime.jsx("div",{className:"w-full bg-gray-200 dark:bg-white/[0.03] rounded-t-lg",style:{height:`${Math.random()*60+20}%`}},t))})}function hw({color:e="cyan",showValues:t=false,animationDelay:r=0,onValueClick:a}){let{width:s,height:o,padding:i,data:l,maxValue:d,setHoveredIndex:c,hoveredIndex:m}=he(),p=s-i.left-i.right,f=o-i.top-i.bottom,g=p/l.length,h=g*.6,v={cyan:"from-cyan-500 to-blue-600",purple:"from-purple-500 to-indigo-600",emerald:"from-emerald-500 to-teal-600",amber:"from-amber-400 to-orange-600",rose:"from-rose-500 to-pink-600"};return jsxRuntime.jsxs("g",{children:[l.map((b,u)=>{let x=Pt(b.value,d,f),y=i.left+g*u+(g-h)/2,k=o-i.bottom-x,w=m===u,N=u*.1+r;return jsxRuntime.jsxs("g",{onMouseEnter:()=>c(u),onMouseLeave:()=>c(null),onClick:()=>a?.(b),className:n("cursor-pointer",a&&"cursor-pointer"),children:[jsxRuntime.jsx("rect",{x:i.left+g*u,y:i.top,width:g,height:f,fill:"transparent"}),jsxRuntime.jsx("rect",{x:y,y:k,width:h,height:x,rx:4,className:n("transition-all duration-300 ease-out",w?"brightness-125 filter":"opacity-80"),style:{transformOrigin:`center ${o-i.bottom}px`,animation:`grow-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) ${N}s backwards`}}),jsxRuntime.jsx("rect",{x:y,y:k,width:h,height:x,rx:4,className:n("bg-gradient-to-b",v[e]),style:{pointerEvents:"none",transformOrigin:`center ${o-i.bottom}px`,animation:`grow-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) ${N}s backwards`}}),t&&jsxRuntime.jsx("text",{x:y+h/2,y:k-8,textAnchor:"middle",fill:"white",fontSize:12,fontWeight:500,style:{opacity:0,animation:`fade-in-up 0.5s ease-out ${N+.4}s forwards`,textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:b.value})]},u)}),jsxRuntime.jsx("style",{children:`
|
|
16
|
+
@keyframes grow-up {
|
|
17
|
+
from { transform: scaleY(0); }
|
|
18
|
+
to { transform: scaleY(1); }
|
|
19
|
+
}
|
|
20
|
+
@keyframes fade-in-up {
|
|
21
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
22
|
+
to { opacity: 1; transform: translateY(0); }
|
|
23
|
+
}
|
|
24
|
+
`})]})}function kw({color:e="purple",showValues:t=false,animationDelay:r=0,onValueClick:a}){let{width:s,height:o,padding:i,data:l,maxValue:d,setHoveredIndex:c,hoveredIndex:m}=he(),p=s-i.left-i.right,f=o-i.top-i.bottom,g=p/(l.length-1),v={cyan:{stroke:"#06b6d4",fill:"rgba(6, 182, 212, 0.2)"},purple:{stroke:"#8b5cf6",fill:"rgba(139, 92, 246, 0.2)"},emerald:{stroke:"#10b981",fill:"rgba(16, 185, 129, 0.2)"},amber:{stroke:"#f59e0b",fill:"rgba(245, 158, 11, 0.2)"},rose:{stroke:"#f43f5e",fill:"rgba(244, 63, 94, 0.2)"}}[e],b=l.map((y,k)=>{let w=i.left+g*k,N=o-i.bottom-Pt(y.value,d,f);return {x:w,y:N,item:y}}),u=b.map((y,k)=>k===0?`M ${y.x} ${y.y}`:`L ${y.x} ${y.y}`).join(" "),x=`
|
|
25
|
+
${u}
|
|
26
|
+
L ${s-i.right} ${o-i.bottom}
|
|
27
|
+
L ${i.left} ${o-i.bottom}
|
|
28
|
+
Z
|
|
29
|
+
`;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:x,fill:v.fill,style:{opacity:0,animation:`fade-in 1s ease-out ${r}s forwards`}}),jsxRuntime.jsx("path",{d:u,fill:"none",stroke:v.stroke,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"animate-draw-line",style:{strokeDasharray:2e3,strokeDashoffset:2e3,animation:`draw-line 2s ease-out ${r}s forwards`}}),b.map((y,k)=>jsxRuntime.jsxs("g",{onMouseEnter:()=>c(k),onMouseLeave:()=>c(null),onClick:()=>a?.(y.item),className:n("cursor-crosshair",a&&"cursor-pointer"),children:[jsxRuntime.jsx("rect",{x:y.x-g/2,y:i.top,width:g,height:f,fill:"transparent"}),(m===k||t)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[m===k&&jsxRuntime.jsx("line",{x1:y.x,y1:i.top,x2:y.x,y2:o-i.bottom,stroke:"white",strokeWidth:1,strokeDasharray:"4 4",className:"opacity-50"}),jsxRuntime.jsx("circle",{cx:y.x,cy:y.y,r:m===k?6:4,fill:v.stroke,stroke:"white",strokeWidth:2,style:{transition:"r 0.2s ease-out"}}),t&&jsxRuntime.jsx("text",{x:y.x,y:y.y-12,textAnchor:"middle",fill:"white",fontSize:12,fontWeight:500,style:{opacity:0,animation:`fade-in-up 0.5s ease-out ${r+1+k*.1}s forwards`,textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:l[k]?.value})]})]},k)),jsxRuntime.jsx("style",{children:`
|
|
30
|
+
@keyframes draw-line {
|
|
31
|
+
to { stroke-dashoffset: 0; }
|
|
32
|
+
}
|
|
33
|
+
@keyframes fade-in {
|
|
34
|
+
from { opacity: 0; }
|
|
35
|
+
to { opacity: 1; }
|
|
36
|
+
}
|
|
37
|
+
@keyframes fade-in-up {
|
|
38
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
39
|
+
to { opacity: 1; transform: translateY(0); }
|
|
40
|
+
}
|
|
41
|
+
`})]})}function Cw({color:e="cyan",showValues:t=false,animationDelay:r=0,curve:a="smooth",strokeWidth:s=3,align:o="edge",onValueClick:i}){let{width:l,height:d,padding:c,data:m,maxValue:p,setHoveredIndex:f,hoveredIndex:g}=he(),h=l-c.left-c.right,v=d-c.top-c.bottom,b=o==="center"?h/m.length:h/(m.length-1),x={cyan:"#06b6d4",purple:"#8b5cf6",emerald:"#10b981",amber:"#f59e0b",rose:"#f43f5e"}[e],y=m.map((w,N)=>{let M;o==="center"?M=c.left+b*N+b/2:M=c.left+b*N;let T=d-c.bottom-Pt(w.value,p,v);return {x:M,y:T,item:w}}),k="";if(y.length>0)if(k=`M ${y[0].x} ${y[0].y}`,a==="smooth")for(let w=0;w<y.length-1;w++){let N=y[w],M=y[w+1],T=N.x+(M.x-N.x)/2,R=N.y,O=N.x+(M.x-N.x)/2,D=M.y;k+=` C ${T} ${R}, ${O} ${D}, ${M.x} ${M.y}`;}else if(a==="step")for(let w=0;w<y.length-1;w++){let N=y[w],M=y[w+1];k+=` L ${M.x} ${N.y} L ${M.x} ${M.y}`;}else for(let w=1;w<y.length;w++)k+=` L ${y[w].x} ${y[w].y}`;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:k,fill:"none",stroke:x,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",className:"animate-draw-line",style:{strokeDasharray:3e3,strokeDashoffset:3e3,animation:`draw-line 2.5s ease-out ${r}s forwards`}}),y.map((w,N)=>jsxRuntime.jsxs("g",{onMouseEnter:()=>f(N),onMouseLeave:()=>f(null),onClick:()=>i?.(w.item),className:n("cursor-crosshair",i&&"cursor-pointer"),children:[jsxRuntime.jsx("rect",{x:w.x-b/2,y:c.top,width:b,height:v,fill:"transparent"}),(g===N||t)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g===N&&jsxRuntime.jsx("line",{x1:w.x,y1:c.top,x2:w.x,y2:d-c.bottom,stroke:"white",strokeWidth:1,strokeDasharray:"4 4",className:"opacity-50"}),jsxRuntime.jsx("circle",{cx:w.x,cy:w.y,r:g===N?6:4,fill:x,stroke:"white",strokeWidth:2,style:{transition:"r 0.2s ease-out"}}),t&&jsxRuntime.jsx("text",{x:w.x,y:w.y-12,textAnchor:"middle",fill:"white",fontSize:12,fontWeight:500,style:{opacity:0,animation:`fade-in-up 0.5s ease-out ${r+1+N*.1}s forwards`,textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:m[N]?.value})]})]},N)),jsxRuntime.jsx("style",{children:`
|
|
42
|
+
@keyframes draw-line {
|
|
43
|
+
to { stroke-dashoffset: 0; }
|
|
44
|
+
}
|
|
45
|
+
@keyframes fade-in-up {
|
|
46
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
47
|
+
to { opacity: 1; transform: translateY(0); }
|
|
48
|
+
}
|
|
49
|
+
`})]})}function Sw({innerRadius:e=0,padAngle:t=.02,showLabels:r=false,colors:a=["#06b6d4","#8b5cf6","#10b981","#f59e0b","#f43f5e","#3b82f6","#ec4899"],onValueClick:s}){let{width:o,height:i,data:l,setHoveredIndex:d,hoveredIndex:c}=he(),m=Math.min(o,i)/2*.8,p=o/2,f=i/2,g=ue.useMemo(()=>l.reduce((u,x)=>u+x.value,0),[l]),h=0,v=l.map((u,x)=>{let y=u.value/g,k=y*2*Math.PI,w=h,N=h+k;return h+=k,{...u,startAngle:w,endAngle:N,color:a[x%a.length],percentage:y}}),b=(u,x)=>{let y=p+x*Math.cos(u),k=f+x*Math.sin(u);return [y,k]};return jsxRuntime.jsxs("g",{children:[v.map((u,x)=>{let y=u.startAngle+(v.length>1?t/2:0),k=u.endAngle-(v.length>1?t/2:0);if(k<=y)return null;let[w,N]=b(y,m),[M,T]=b(k,m),R=k-y>Math.PI?1:0,O=m*e,[D,E]=b(k,O),[V,S]=b(y,O),C=[`M ${w} ${N}`,`A ${m} ${m} 0 ${R} 1 ${M} ${T}`,e>0?`L ${D} ${E}`:`L ${p} ${f}`,e>0?`A ${O} ${O} 0 ${R} 0 ${V} ${S}`:"","Z"].join(" "),A=c===x,me=(u.startAngle+u.endAngle)/2,Q=m*(e>0?(1+e)/2:.7),[ve,Ae]=b(me,Q);return jsxRuntime.jsxs("g",{onMouseEnter:()=>d(x),onMouseLeave:()=>d(null),className:"cursor-pointer",children:[jsxRuntime.jsx("path",{d:C,fill:u.color,className:n("transition-all duration-300 ease-out",A?"opacity-100 brightness-110":"opacity-90"),style:{transformOrigin:`${p}px ${f}px`,transform:A?"scale(1.05)":"scale(1)",animation:`pie-enter 0.6s ease-out ${x*.05}s backwards`}}),(r||A)&&jsxRuntime.jsxs("text",{x:ve,y:Ae,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:12,fontWeight:600,className:"pointer-events-none",style:{textShadow:"0 1px 2px rgba(0,0,0,0.5)"},children:[Math.round(u.percentage*100),"%"]})]},x)}),jsxRuntime.jsx("style",{children:`
|
|
50
|
+
@keyframes pie-enter {
|
|
51
|
+
from { opacity: 0; transform: scale(0.8) rotate(-10deg); }
|
|
52
|
+
to { opacity: 0.9; transform: scale(1) rotate(0); }
|
|
53
|
+
}
|
|
54
|
+
`})]})}function zw({data:e,keys:t,colors:r=["cyan","purple","emerald"],maxValue:a,height:s=300,className:o,...i}){let[l,d]=ue.useState(0),c=ue__namespace.default.useRef(null);ue__namespace.default.useEffect(()=>{if(!c.current)return;let b=new ResizeObserver(u=>{u[0]&&d(u[0].contentRect.width);});return b.observe(c.current),()=>b.disconnect()},[]);let m={x:l/2,y:s/2},p=Math.min(l,s)/2-40,f=ue.useMemo(()=>{if(a)return a;let b=0;return e.forEach(u=>{t.forEach(x=>{let y=Number(u[x])||0;y>b&&(b=y);});}),b*1.1||100},[e,t,a]),g=Math.PI*2/e.length,h={cyan:"rgba(6, 182, 212, 0.5)",purple:"rgba(139, 92, 246, 0.5)",emerald:"rgba(16, 185, 129, 0.5)",amber:"rgba(245, 158, 11, 0.5)",rose:"rgba(244, 63, 94, 0.5)"},v={cyan:"#06b6d4",purple:"#8b5cf6",emerald:"#10b981",amber:"#f59e0b",rose:"#f43f5e"};return l===0?jsxRuntime.jsx("div",{ref:c,style:{height:s}}):jsxRuntime.jsx("div",{ref:c,className:n("relative w-full select-none",o),style:{height:s},...i,children:jsxRuntime.jsxs("svg",{width:"100%",height:"100%",viewBox:`0 0 ${l} ${s}`,className:"overflow-visible",children:[[1,2,3,4,5].map(b=>{let u=p/5*b,x=e.map((y,k)=>{let w=g*k-Math.PI/2;return `${m.x+Math.cos(w)*u},${m.y+Math.sin(w)*u}`}).join(" ");return jsxRuntime.jsx("polygon",{points:x,fill:"none",stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"},b)}),e.map((b,u)=>{let x=g*u-Math.PI/2,y=m.x+Math.cos(x)*p,k=m.y+Math.sin(x)*p,w=m.x+Math.cos(x)*(p+20),N=m.y+Math.sin(x)*(p+20);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:m.x,y1:m.y,x2:y,y2:k,stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"}),jsxRuntime.jsx("text",{x:w,y:N,textAnchor:"middle",dominantBaseline:"middle",fill:"rgba(255,255,255,0.6)",fontSize:"12",children:b.subject})]},u)}),t.map((b,u)=>{let x=e.map((N,M)=>{let R=(Number(N[b])||0)/f*p,O=g*M-Math.PI/2;return `${m.x+Math.cos(O)*R},${m.y+Math.sin(O)*R}`}).join(" "),y=r[u%r.length]||"cyan",k=h[y],w=v[y];return jsxRuntime.jsx("polygon",{points:x,fill:k,fillOpacity:.3,stroke:w,strokeWidth:2,className:"transition-all duration-500 ease-out hover:fill-opacity-50"},b)})]})})}function Ww({data:e,color:t="emerald",height:r=40,strokeWidth:a=2,fill:s=false,className:o,...i}){let l=Math.max(...e),d=Math.min(...e),c=l-d||1,p={cyan:"#06b6d4",purple:"#8b5cf6",emerald:"#10b981",amber:"#f59e0b",rose:"#f43f5e",white:"#ffffff"}[t],f=e.map((v,b)=>{let u=b/(e.length-1)*100,y=95-(v-d)/c*90;return {x:u,y}}),g="";if(f.length>0){g=`M ${f[0].x} ${f[0].y}`;for(let v=0;v<f.length-1;v++){let b=f[v],u=f[v+1],x=b.x+(u.x-b.x)/2,y=b.y,k=b.x+(u.x-b.x)/2,w=u.y;g+=` C ${x} ${y}, ${k} ${w}, ${u.x} ${u.y}`;}}let h=s?`${g} L 100 100 L 0 100 Z`:void 0;return jsxRuntime.jsx("div",{className:n("w-full overflow-hidden",o),style:{height:r},...i,children:jsxRuntime.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"overflow-visible",children:[s&&jsxRuntime.jsx("path",{d:h,fill:p,fillOpacity:.1,stroke:"none"}),jsxRuntime.jsx("path",{d:g,fill:"none",stroke:p,strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})})}function jw({ticks:e=5,format:t=r=>r.toString()}){let{height:r,padding:a,maxValue:s}=he(),o=r-a.top-a.bottom;return jsxRuntime.jsx("g",{children:Array.from({length:e+1}).map((i,l)=>{let d=s/e*l,c=r-a.bottom-o/e*l;return jsxRuntime.jsx("text",{x:a.left-10,y:c,textAnchor:"end",dominantBaseline:"middle",className:"fill-gray-400 dark:fill-white/40 text-xs font-medium",children:t(Math.round(d))},l)})})}var ac=classVarianceAuthority.cva("flex flex-col gap-4 rounded-2xl border p-4 transition-all duration-200",{variants:{variant:{default:"bg-white border-gray-200 dark:bg-white/[0.03] dark:border-white/10",glass:"backdrop-blur-md bg-white/80 border-white/20 dark:bg-black/40 dark:border-white/10"}},defaultVariants:{variant:"default"}}),oc=ue__namespace.default.forwardRef(({className:e,variant:t,user:r,onFollow:a,onMessage:s,...o},i)=>jsxRuntime.jsxs("div",{ref:i,className:n(ac({variant:t,className:e})),...o,children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between",children:[jsxRuntime.jsxs("div",{className:"flex gap-3",children:[jsxRuntime.jsx(fe,{src:r.avatarSrc,alt:r.name,size:"lg"}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:r.name}),r.role&&jsxRuntime.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:r.role}),r.email&&jsxRuntime.jsx("div",{className:"text-xs text-gray-400 dark:text-white/40 mt-0.5",children:r.email})]})]}),a&&jsxRuntime.jsx(P,{size:"sm",variant:"outline",onClick:a,children:"Follow"})]}),r.bio&&jsxRuntime.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 line-clamp-2",children:r.bio}),r.stats&&jsxRuntime.jsx("div",{className:"flex gap-4 border-t border-gray-100 pt-3 dark:border-white/5",children:r.stats.map((l,d)=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-gray-900 dark:text-white",children:l.value}),jsxRuntime.jsx("span",{className:"text-[10px] text-gray-500 dark:text-white/40",children:l.label})]},d))}),s&&jsxRuntime.jsx(P,{className:"w-full mt-2",onClick:s,children:"Message"})]}));oc.displayName="UserPreview";var ic=classVarianceAuthority.cva("relative pl-8 pb-8 last:pb-0",{variants:{status:{default:"[&>div:first-child]:bg-gray-200 dark:[&>div:first-child]:bg-white/20",active:"[&>div:first-child]:bg-blue-500",success:"[&>div:first-child]:bg-emerald-500",error:"[&>div:first-child]:bg-rose-500"}},defaultVariants:{status:"default"}}),lc=ue__namespace.default.forwardRef(({className:e,status:t,title:r,date:a,description:s,icon:o,isLast:i,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:n(ic({status:t,className:e})),...l,children:[!i&&jsxRuntime.jsx("div",{className:"absolute left-[11px] top-[24px] bottom-0 w-px bg-gray-200 dark:bg-white/[0.06]"}),jsxRuntime.jsx("div",{className:n("absolute left-0 top-1.5 flex h-6 w-6 items-center justify-center rounded-full border-2 border-white dark:border-black ring-1 ring-transparent transition-colors",t==="active"?"bg-blue-500 ring-blue-500/30":t==="success"?"bg-emerald-500 ring-emerald-500/30":t==="error"?"bg-rose-500 ring-rose-500/30":"bg-gray-200 dark:bg-white/20"),children:o&&jsxRuntime.jsx("span",{className:"text-white text-[10px]",children:o})}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:r}),a&&jsxRuntime.jsx("span",{className:"text-xs text-gray-500 dark:text-white/40",children:a})]}),s&&jsxRuntime.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:s})]})]}));lc.displayName="TimelineItem";var sy=({children:e,className:t})=>jsxRuntime.jsx("div",{className:n("flex flex-col",t),children:e});var sn=({node:e,depth:t=0,onSelect:r})=>{let[a,s]=ue.useState(false),o=e.children&&e.children.length>0,i=l=>{l.stopPropagation(),o&&s(!a),r?.(e);};return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:n("flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm text-gray-700 transition-colors hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-white/[0.03] cursor-pointer"),style:{paddingLeft:`${t*12+8}px`},onClick:i,children:[o?jsxRuntime.jsx("span",{className:"text-gray-400 dark:text-white/40",children:a?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}):jsxRuntime.jsx("span",{className:"w-4"}),e.icon?jsxRuntime.jsx("span",{className:"text-gray-500 dark:text-white/50",children:e.icon}):jsxRuntime.jsx("span",{className:"text-blue-500 dark:text-blue-400",children:o?a?jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),a&&o&&jsxRuntime.jsx("div",{className:"animate-in slide-in-from-top-1 fade-in duration-200",children:e.children.map(l=>jsxRuntime.jsx(sn,{node:l,depth:t+1,onSelect:r},l.id))})]})},py=({data:e,className:t,onSelect:r})=>jsxRuntime.jsx("div",{className:n("w-full select-none",t),children:e.map(a=>jsxRuntime.jsx(sn,{node:a,onSelect:r},a.id))});var bc=ue__namespace.default.forwardRef(({className:e,title:t="Terminal",children:r,...a},s)=>jsxRuntime.jsxs("div",{ref:s,className:n("overflow-hidden rounded-2xl border border-gray-200 bg-gray-950 shadow-xl dark:border-white/10",e),...a,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 bg-white/[0.03] px-4 py-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-rose-500/80"}),jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-amber-500/80"}),jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-emerald-500/80"})]}),jsxRuntime.jsx("div",{className:"text-xs font-medium text-white/50",children:t}),jsxRuntime.jsx("div",{className:"w-10"})," "]}),jsxRuntime.jsx("div",{className:"p-4 font-mono text-sm text-gray-300",children:r})]}));bc.displayName="Terminal";var xy=({children:e,prefix:t="$",className:r})=>jsxRuntime.jsxs("div",{className:n("flex gap-2",r),children:[jsxRuntime.jsx("span",{className:"select-none text-emerald-400",children:t}),jsxRuntime.jsx("span",{children:e})]});var ky=({className:e,pauseOnHover:t=false,direction:r="left",speed:a="normal",children:s,...o})=>{let i={slow:"40s",normal:"20s",fast:"10s"};return jsxRuntime.jsxs("div",{className:n("group flex overflow-hidden p-2 [--gap:1rem] [gap:var(--gap)]",e),...o,children:[jsxRuntime.jsx("div",{className:n("flex shrink-0 justify-around [gap:var(--gap)] min-w-full",r==="left"?"animate-marquee":"animate-marquee-reverse",t&&"group-hover:[animation-play-state:paused]"),style:{animationDuration:i[a]},children:s}),jsxRuntime.jsx("div",{"aria-hidden":"true",className:n("flex shrink-0 justify-around [gap:var(--gap)] min-w-full",r==="left"?"animate-marquee":"animate-marquee-reverse",t&&"group-hover:[animation-play-state:paused]"),style:{animationDuration:i[a]},children:s}),jsxRuntime.jsx("style",{children:`
|
|
55
|
+
@keyframes marquee {
|
|
56
|
+
from { transform: translateX(0); }
|
|
57
|
+
to { transform: translateX(calc(-100% - var(--gap))); }
|
|
58
|
+
}
|
|
59
|
+
@keyframes marquee-reverse {
|
|
60
|
+
from { transform: translateX(calc(-100% - var(--gap))); }
|
|
61
|
+
to { transform: translateX(0); }
|
|
62
|
+
}
|
|
63
|
+
.animate-marquee {
|
|
64
|
+
animation: marquee linear infinite;
|
|
65
|
+
}
|
|
66
|
+
.animate-marquee-reverse {
|
|
67
|
+
animation: marquee-reverse linear infinite;
|
|
68
|
+
}
|
|
69
|
+
`})]})};var wc=classVarianceAuthority.cva("inline-block rounded-full",{variants:{variant:{success:"bg-emerald-500",warning:"bg-amber-500",error:"bg-rose-500",info:"bg-blue-500",neutral:"bg-gray-400"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},animate:{true:"animate-pulse",false:""}},defaultVariants:{variant:"neutral",size:"md",animate:false}}),yc=ue__namespace.default.forwardRef(({className:e,variant:t,size:r,animate:a,...s},o)=>jsxRuntime.jsx("span",{ref:o,className:n(wc({variant:t,size:r,animate:a,className:e})),...s}));yc.displayName="StatusDot";var Lc=classVarianceAuthority.cva("flex items-center gap-2",{variants:{size:{sm:"[&>input]:h-8 [&>input]:w-8 [&>input]:text-sm",md:"[&>input]:h-10 [&>input]:w-10 [&>input]:text-base",lg:"[&>input]:h-12 [&>input]:w-12 [&>input]:text-lg"}},defaultVariants:{size:"md"}}),Pc=ue__namespace.default.forwardRef(({className:e,size:t,length:r=6,value:a="",onChange:s,onComplete:o,disabled:i,error:l,...d},c)=>{let[m,p]=ue.useState(new Array(r).fill("")),f=ue.useRef([]);ue.useEffect(()=>{let b=a.split("").slice(0,r),u=[...b,...new Array(r-b.length).fill("")];p(u);},[a,r]);let g=(b,u)=>{let x=b.target.value;if(isNaN(Number(x)))return;let y=[...m];y[u]=x.substring(x.length-1),p(y);let k=y.join("");s?.(k),x&&u<r-1&&f.current[u+1]?.focus(),k.length===r&&o?.(k);},h=(b,u)=>{b.key==="Backspace"&&!m[u]&&u>0&&f.current[u-1]?.focus();},v=b=>{b.preventDefault();let u=b.clipboardData.getData("text/plain").slice(0,r);if(!/^\d+$/.test(u))return;let x=[...m];u.split("").forEach((k,w)=>{x[w]=k;}),p(x);let y=x.join("");s?.(y),y.length===r&&o?.(y),f.current[Math.min(u.length,r-1)]?.focus();};return jsxRuntime.jsx("div",{ref:c,className:n(Lc({size:t,className:e})),...d,children:m.map((b,u)=>jsxRuntime.jsx("input",{ref:x=>f.current[u]=x,type:"text",inputMode:"numeric",maxLength:1,value:b,disabled:i,onChange:x=>g(x,u),onKeyDown:x=>h(x,u),onPaste:v,className:n("rounded-2xl border bg-gray-50 text-center font-semibold transition-all duration-200","focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed","dark:bg-white/[0.03] dark:text-white",l?"border-rose-500 text-rose-500 focus:border-rose-500 focus:ring-rose-500/20":"border-gray-200 dark:border-white/10")},u))})});Pc.displayName="OTPInput";var Sc=classVarianceAuthority.cva("flex items-center rounded-2xl border bg-gray-50 dark:bg-white/[0.03] dark:border-white/10",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},error:{true:"border-rose-500",false:"border-gray-200"}},defaultVariants:{size:"md",error:false}}),Ac=ue__namespace.default.forwardRef(({className:e,size:t,error:r,value:a=0,onChange:s,min:o=-1/0,max:i=1/0,step:l=1,disabled:d,...c},m)=>{let p=()=>{a-l>=o&&s?.(a-l);},f=()=>{a+l<=i&&s?.(a+l);},g=h=>{let v=parseFloat(h.target.value);isNaN(v)||s?.(v);};return jsxRuntime.jsxs("div",{className:n(Sc({size:t,error:r,className:e})),children:[jsxRuntime.jsx("button",{type:"button",onClick:p,disabled:d||a<=o,className:"flex h-full items-center justify-center px-3 text-gray-500 hover:text-gray-900 disabled:opacity-50 dark:text-white/50 dark:hover:text-white",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx("div",{className:"h-full w-px bg-gray-200 dark:bg-white/[0.06]"}),jsxRuntime.jsx("input",{ref:m,type:"number",value:a,onChange:g,disabled:d,className:"h-full w-full min-w-[3rem] bg-transparent text-center text-sm font-medium text-gray-900 focus:outline-none dark:text-white",...c}),jsxRuntime.jsx("div",{className:"h-full w-px bg-gray-200 dark:bg-white/[0.06]"}),jsxRuntime.jsx("button",{type:"button",onClick:f,disabled:d||a>=i,className:"flex h-full items-center justify-center px-3 text-gray-500 hover:text-gray-900 disabled:opacity-50 dark:text-white/50 dark:hover:text-white",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-3.5 w-3.5"})})]})});Ac.displayName="NumberInput";var Oc=classVarianceAuthority.cva("inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 p-1 dark:border-white/10 dark:bg-white/[0.03]",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full flex",false:""}},defaultVariants:{size:"md",fullWidth:false}}),zc=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-2xl px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300",{variants:{selected:{true:"bg-white text-gray-950 shadow-sm dark:bg-gray-800 dark:text-gray-50",false:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50"},fullWidth:{true:"flex-1",false:""}},defaultVariants:{selected:false,fullWidth:false}}),$c=ue__namespace.default.forwardRef(({className:e,size:t,fullWidth:r,value:a,onChange:s,options:o,...i},l)=>jsxRuntime.jsx("div",{ref:l,className:n(Oc({size:t,fullWidth:r,className:e})),...i,children:o.map(d=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>s?.(d.value),className:n(zc({selected:a===d.value,fullWidth:r})),children:[d.icon&&jsxRuntime.jsx("span",{className:"mr-2",children:d.icon}),d.label]},d.value))}));$c.displayName="ToggleGroup";var Uc=ue__namespace.default.forwardRef(({className:e,max:t=5,value:r=0,onChange:a,readOnly:s=false,size:o="md",...i},l)=>{let[d,c]=ue.useState(null),m={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"};return jsxRuntime.jsx("div",{ref:l,className:n("flex items-center gap-1",e),...i,children:Array.from({length:t}).map((p,f)=>{let g=f+1,h=(d!==null?d:r)>=g;return jsxRuntime.jsx("button",{type:"button",disabled:s,onClick:()=>a?.(g),onMouseEnter:()=>!s&&c(g),onMouseLeave:()=>!s&&c(null),className:n("transition-transform hover:scale-110 focus:outline-none",s&&"cursor-default hover:scale-100"),children:jsxRuntime.jsx(lucideReact.Star,{className:n(m[o],"transition-colors duration-200",h?"fill-amber-400 text-amber-400":"fill-transparent text-gray-300 dark:text-white/20")})},f)})})});Uc.displayName="Rating";var Zy=({steps:e,currentStep:t,className:r,onStepClick:a})=>jsxRuntime.jsx("div",{className:n("flex w-full flex-col gap-4 md:flex-row",r),children:e.map((s,o)=>{let i=t>o,l=t===o,d=!!a;return jsxRuntime.jsxs("div",{className:n("flex flex-1 flex-col gap-2 md:flex-row md:items-center md:gap-4",d&&"cursor-pointer"),onClick:()=>d&&a(o),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4 md:flex-col md:gap-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("div",{className:n("flex h-8 w-8 items-center justify-center rounded-full border-2 text-sm font-semibold transition-colors",i?"border-blue-600 bg-blue-600 text-white dark:border-blue-500 dark:bg-blue-500":l?"border-blue-600 text-blue-600 dark:border-blue-500 dark:text-blue-500":"border-gray-300 text-gray-500 dark:border-white/20 dark:text-white/40"),children:i?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"}):o+1}),o<e.length-1&&jsxRuntime.jsx("div",{className:n("ml-4 h-px flex-1 bg-gray-200 md:hidden dark:bg-white/[0.03]",i&&"bg-blue-600 dark:bg-blue-500")})]}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:n("text-sm font-medium",l||i?"text-gray-900 dark:text-white":"text-gray-500 dark:text-white/50"),children:s.title}),s.description&&jsxRuntime.jsx("span",{className:"text-xs text-gray-500 dark:text-white/40 hidden md:block",children:s.description})]})]}),o<e.length-1&&jsxRuntime.jsx("div",{className:n("hidden h-px flex-1 bg-gray-200 md:block dark:bg-white/[0.03]",i&&"bg-blue-600 dark:bg-blue-500")})]},o)})});var ik=({children:e,className:t,size:r=300,color:a="rgba(255, 255, 255, 0.1)",...s})=>{let o=ue.useRef(null);return jsxRuntime.jsxs("div",{ref:o,onMouseMove:c=>{let m=o.current;if(!m)return;let p=m.getBoundingClientRect(),f=c.clientX-p.left,g=c.clientY-p.top;m.style.setProperty("--mouse-x",`${f}px`),m.style.setProperty("--mouse-y",`${g}px`);},onMouseEnter:()=>{o.current?.style.setProperty("--opacity","1");},onMouseLeave:()=>{o.current?.style.setProperty("--opacity","0");},className:n("relative overflow-hidden rounded-2xl border border-gray-200 bg-white dark:border-white/10 dark:bg-black",t),...s,children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute -inset-px transition-opacity duration-300",style:{opacity:"var(--opacity, 0)",background:`radial-gradient(${r}px circle at var(--mouse-x, center) var(--mouse-y, center), ${a}, transparent 80%)`}}),jsxRuntime.jsx("div",{className:"relative h-full",children:e})]})};var sm=classVarianceAuthority.cva("relative flex w-full flex-col rounded-2xl border transition-all duration-200 focus-within:ring-4",{variants:{variant:{default:"bg-white border-gray-200 shadow-sm focus-within:border-purple-500/50 focus-within:ring-purple-500/10 dark:bg-white/[0.03] dark:border-white/10 dark:shadow-none",ghost:"bg-transparent border-transparent shadow-none focus-within:bg-white/50 dark:focus-within:bg-white/5"}},defaultVariants:{variant:"default"}}),im=ue__namespace.default.forwardRef(({className:e,variant:t,onSubmit:r,isGenerating:a,onAttach:s,onFilesSelected:o,onStop:i,onMic:l,maxLength:d,footer:c,attachments:m,onRemoveAttachment:p,accept:f,multiple:g,placeholder:h="Ask AI anything...",value:v,onChange:b,...u},x)=>{let[y,k]=ue.useState(""),w=v!==void 0,N=w?v:y,M=ue.useRef(null),T=ue.useRef(null),R=()=>{M.current&&(M.current.style.height="auto",M.current.style.height=`${M.current.scrollHeight}px`);};ue.useEffect(()=>{R();},[N]);let O=C=>{let A=C.target.value;d&&A.length>d||(w||k(A),b?.(C));},D=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),N.trim()&&!a&&(r?.(N),w||k(""))),u.onKeyDown?.(C);},E=()=>{a&&i?i():N.trim()&&(r?.(N),w||k(""));},V=()=>{o&&T.current?T.current.click():s?.();},S=C=>{C.target.files&&C.target.files.length>0&&o?.(C.target.files),T.current&&(T.current.value="");};return jsxRuntime.jsxs("div",{className:n(sm({variant:t,className:e})),children:[jsxRuntime.jsx("input",{type:"file",ref:T,className:"hidden",onChange:S,accept:f,multiple:g}),m&&m.length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 px-4 pt-4",children:m.map(C=>jsxRuntime.jsxs("div",{className:"group relative flex items-center gap-2 rounded-xl border border-gray-200 bg-gray-50 px-3 py-1.5 text-sm transition-colors hover:bg-gray-100 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]",children:[jsxRuntime.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-lg bg-white dark:bg-white/[0.06]",children:jsxRuntime.jsx(lucideReact.File,{className:"h-3 w-3 text-purple-500"})}),jsxRuntime.jsx("span",{className:"max-w-[120px] truncate text-gray-700 dark:text-gray-300",children:C.name}),jsxRuntime.jsx("button",{onClick:()=>p?.(C.id),className:"ml-1 rounded-full p-0.5 text-gray-400 opacity-0 transition-all hover:bg-gray-200 hover:text-gray-600 group-hover:opacity-100 dark:hover:bg-white/[0.06] dark:hover:text-white",type:"button",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},C.id))}),jsxRuntime.jsx("textarea",{ref:C=>{M.current=C,typeof x=="function"?x(C):x&&(x.current=C);},value:N,onChange:O,onKeyDown:D,placeholder:h,rows:1,className:n("w-full resize-none bg-transparent px-4 py-4 text-base outline-none max-h-[200px]","text-gray-900 placeholder:text-gray-400","dark:text-white dark:placeholder:text-white/40"),disabled:a&&!i,...u}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 pb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"text-gray-400 hover:text-gray-600 dark:text-white/40 dark:hover:text-white",onClick:V,type:"button",title:"Attach file",children:jsxRuntime.jsx(lucideReact.Paperclip,{className:"h-5 w-5"})}),l&&jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"text-gray-400 hover:text-gray-600 dark:text-white/40 dark:hover:text-white",onClick:l,type:"button",title:"Use microphone",children:jsxRuntime.jsx(lucideReact.Mic,{className:"h-5 w-5"})})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d&&jsxRuntime.jsxs("span",{className:"text-xs text-gray-400 dark:text-white/30",children:[N.length,"/",d]}),jsxRuntime.jsx(P,{size:"icon",disabled:!N.trim()&&!a||a&&!i,onClick:E,className:n("h-8 w-8 rounded-full transition-all duration-200",N.trim()||a?"bg-purple-600 text-white hover:bg-purple-500 shadow-lg shadow-purple-500/25":"bg-gray-100 text-gray-400 dark:bg-white/[0.06] dark:text-white/20"),children:a?i?jsxRuntime.jsx(lucideReact.Square,{className:"h-3 w-3 fill-current"}):jsxRuntime.jsx(lucideReact.Sparkles,{className:"h-4 w-4 animate-pulse"}):jsxRuntime.jsx(lucideReact.ArrowUp,{className:"h-4 w-4"})})]})]}),c&&jsxRuntime.jsx("div",{className:"border-t border-gray-100 px-4 py-2 text-xs text-gray-400 dark:border-white/5 dark:text-white/30",children:c})]})});im.displayName="AIPromptInput";var xm=classVarianceAuthority.cva("group relative overflow-hidden rounded-2xl border transition-all duration-200",{variants:{variant:{default:"bg-gray-50 border-gray-200 dark:bg-white/[0.02] dark:border-white/10",ghost:"bg-transparent border-transparent",outline:"bg-transparent border-gray-200 dark:border-white/10"}},defaultVariants:{variant:"default"}}),vm=ue__namespace.default.forwardRef(({className:e,variant:t,children:r,onCopy:a,onRegenerate:s,onFeedback:o,onShare:i,onEdit:l,timestamp:d,sources:c,model:m,usage:p,...f},g)=>jsxRuntime.jsxs("div",{ref:g,className:n(xm({variant:t,className:e})),...f,children:[jsxRuntime.jsxs("div",{className:"absolute left-4 top-4 flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-gradient-to-br from-purple-500 to-blue-500 shadow-lg shadow-purple-500/20",children:jsxRuntime.jsx(lucideReact.Sparkles,{className:"h-3.5 w-3.5 text-white"})}),d&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-gray-400 dark:text-white/30",children:d})]}),jsxRuntime.jsxs("div",{className:"pl-14 pr-4 py-4",children:[jsxRuntime.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none text-gray-700 dark:text-gray-300",children:r}),c&&c.length>0&&jsxRuntime.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:c.map((h,v)=>jsxRuntime.jsxs("a",{href:h.url,target:"_blank",rel:"noopener noreferrer",className:n("flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs transition-colors","border-gray-200 bg-white text-gray-600 hover:bg-gray-50","dark:border-white/10 dark:bg-white/[0.03] dark:text-white/60 dark:hover:bg-white/[0.06]"),children:[jsxRuntime.jsx("span",{className:"max-w-[150px] truncate",children:h.title}),jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 opacity-50"})]},v))})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t border-gray-200 bg-white/50 px-2 py-1.5 backdrop-blur dark:border-white/5 dark:bg-white/[0.02]",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-2 text-[10px] font-medium text-gray-400 dark:text-white/20",children:[m&&jsxRuntime.jsx("span",{children:m}),p&&jsxRuntime.jsx("span",{children:p})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsxs(P,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:a,children:[jsxRuntime.jsx(lucideReact.Copy,{className:"mr-1.5 h-3.5 w-3.5"}),"Copy"]}),i&&jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:i,title:"Share",children:jsxRuntime.jsx(lucideReact.Share,{className:"h-3.5 w-3.5"})}),l&&jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:l,title:"Edit",children:jsxRuntime.jsx(lucideReact.Edit,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx("div",{className:"mx-1 h-3 w-px bg-gray-200 dark:bg-white/10"}),jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:s,title:"Regenerate",children:jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:()=>o?.("up"),title:"Helpful",children:jsxRuntime.jsx(lucideReact.ThumbsUp,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-white/40 dark:hover:text-white",onClick:()=>o?.("down"),title:"Not helpful",children:jsxRuntime.jsx(lucideReact.ThumbsDown,{className:"h-3.5 w-3.5"})})]})]})]}));vm.displayName="AIResponse";function Mk({children:e,className:t,...r}){return jsxRuntime.jsx("div",{className:n("flex h-[800px] w-full overflow-hidden rounded-3xl border border-gray-200 dark:border-white/10 bg-white dark:bg-black/40 backdrop-blur-xl shadow-2xl",t),...r,children:e})}function Hk({conversations:e,activeId:t,onSelect:r,onNewChat:a,className:s,...o}){return jsxRuntime.jsxs("div",{className:n("flex w-80 flex-col border-r border-gray-200 dark:border-white/10 bg-gray-50/50 dark:bg-white/[0.02]",s),...o,children:[jsxRuntime.jsxs("div",{className:"p-4 space-y-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"Messages"}),jsxRuntime.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-gray-200 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-5 w-5"})})]}),jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),jsxRuntime.jsx("input",{type:"text",placeholder:"Search messages...",className:"w-full h-10 pl-9 pr-4 rounded-2xl bg-white dark:bg-white/[0.03] border border-gray-200 dark:border-white/10 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all placeholder:text-gray-400"})]})]}),jsxRuntime.jsx(Te,{className:"flex-1",children:jsxRuntime.jsx("div",{className:"p-2 space-y-1",children:e.map(i=>jsxRuntime.jsxs("button",{onClick:()=>r?.(i.id),className:n("w-full flex items-center gap-3 p-3 rounded-2xl transition-all text-left group",t===i.id?"bg-blue-500/10 dark:bg-white/[0.06] shadow-[0_0_15px_rgba(59,130,246,0.1)] dark:shadow-[0_0_15px_rgba(255,255,255,0.05)]":"hover:bg-gray-100 dark:hover:bg-white/[0.03]"),children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(fe,{src:i.user.avatar,alt:i.user.name,fallback:i.user.name[0]}),i.user.status==="online"&&jsxRuntime.jsx("span",{className:"absolute bottom-0 right-0 h-3 w-3 rounded-full bg-green-500 border-2 border-white dark:border-black"})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[jsxRuntime.jsx("span",{className:n("font-medium truncate",t===i.id?"text-blue-600 dark:text-white":"text-gray-900 dark:text-white/90"),children:i.user.name}),i.lastMessage&&jsxRuntime.jsx("span",{className:"text-xs text-gray-400 whitespace-nowrap ml-2",children:i.lastMessage.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:n("text-sm truncate pr-2",t===i.id?"text-blue-600/80 dark:text-white/70":"text-gray-500 dark:text-white/50",i.isTyping&&"text-blue-500 italic"),children:i.isTyping?"Typing...":i.lastMessage?.content}),i.unreadCount?jsxRuntime.jsx("span",{className:"flex h-5 min-w-[1.25rem] items-center justify-center rounded-full bg-blue-500 px-1.5 text-[10px] font-bold text-white",children:i.unreadCount}):null]})]})]},i.id))})})]})}function Ok({user:e,onBack:t,onInfo:r,className:a,...s}){return jsxRuntime.jsxs("div",{className:n("flex h-16 items-center justify-between border-b border-gray-200 dark:border-white/10 bg-white/80 dark:bg-black/40 backdrop-blur px-4 sticky top-0 z-10",a),...s,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx("button",{onClick:t,className:"md:hidden p-2 -ml-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06]",children:jsxRuntime.jsx(lucideReact.ArrowLeft,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),jsxRuntime.jsxs("div",{className:"relative cursor-pointer",onClick:r,children:[jsxRuntime.jsx(fe,{src:e.avatar,alt:e.name,fallback:e.name[0]}),e.status==="online"&&jsxRuntime.jsx("span",{className:"absolute bottom-0 right-0 h-3 w-3 rounded-full bg-green-500 border-2 border-white dark:border-black"})]}),jsxRuntime.jsxs("div",{className:"cursor-pointer",onClick:r,children:[jsxRuntime.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white leading-none mb-1",children:e.name}),jsxRuntime.jsx("p",{className:"text-xs text-gray-500 dark:text-white/50",children:e.status==="online"?"Online":`Last seen ${e.lastSeen?.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}`})]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{className:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.Phone,{className:"h-5 w-5"})}),jsxRuntime.jsx("button",{className:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.Video,{className:"h-5 w-5"})}),jsxRuntime.jsx("button",{onClick:r,className:"p-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-600 dark:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.MoreVertical,{className:"h-5 w-5"})})]})]})}var pn=classVarianceAuthority.cva("transition-all duration-700 ease-out",{variants:{preset:{fade:"opacity-0 translate-y-4",spring:"opacity-0 scale-95 translate-y-4","slide-right":"opacity-0 -translate-x-8","slide-left":"opacity-0 translate-x-8",blur:"opacity-0 blur-sm scale-105","3d-flip":"opacity-0 rotate-x-90"},visibleState:{fade:"opacity-100 translate-y-0",spring:"opacity-100 scale-100 translate-y-0 animate-enter-spring","slide-right":"opacity-100 translate-x-0","slide-left":"opacity-100 translate-x-0",blur:"opacity-100 blur-0 scale-100","3d-flip":"opacity-100 rotate-x-0"}},defaultVariants:{preset:"spring"}});function fn({className:e,preset:t="spring",viewport:r=true,visible:a,delay:s=0,once:o=true,asChild:i=false,children:l,style:d,...c}){let{ref:m,isInView:p,hasAnimated:f}=Be({threshold:.1,enabled:r&&a===void 0}),h=a!==void 0?a:r?o?f:p:true,v=pn({preset:t}),b=h?pn({visibleState:t}):"";return jsxRuntime.jsx(i?rt:"div",{ref:m,className:n(v,b,e),style:{transitionDelay:`${s}ms`,willChange:"transform, opacity",...d},...c,children:l})}function bn({message:e,isOwn:t,showAvatar:r,showStatus:a=true,className:s,onReply:o,onReact:i,onDelete:l}){return jsxRuntime.jsxs(fn,{preset:"spring",className:n("flex w-full gap-2 mb-1 group relative",t?"justify-end":"justify-start",s),children:[jsxRuntime.jsx("div",{className:n("absolute top-2 opacity-0 group-hover:opacity-100 transition-opacity z-10",t?"left-0 -translate-x-full pr-2":"right-0 translate-x-full pl-2"),children:jsxRuntime.jsxs(wt,{children:[jsxRuntime.jsx(yt,{className:"p-1 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-400",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"})}),jsxRuntime.jsxs(kt,{align:t?"end":"start",children:[jsxRuntime.jsxs(ee,{onClick:()=>o?.(e),children:[jsxRuntime.jsx(lucideReact.Reply,{className:"h-4 w-4 mr-2"})," Reply"]}),jsxRuntime.jsxs(ee,{onClick:()=>navigator.clipboard.writeText(e.content),children:[jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 mr-2"})," Copy"]}),jsxRuntime.jsxs(ee,{onClick:()=>i?.(e,"\u{1F44D}"),children:[jsxRuntime.jsx(lucideReact.Smile,{className:"h-4 w-4 mr-2"})," React"]}),t&&jsxRuntime.jsxs(ee,{onClick:()=>l?.(e),className:"text-red-500",children:[jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4 mr-2"})," Delete"]})]})]})}),jsxRuntime.jsxs("div",{className:n("relative max-w-[70%] px-4 py-2 rounded-2xl shadow-sm transition-all",t?"bg-blue-600 text-white rounded-tr-sm":"bg-white dark:bg-white/[0.06] text-gray-900 dark:text-white rounded-tl-sm border border-gray-200 dark:border-transparent"),children:[e.replyToId&&jsxRuntime.jsx("div",{className:n("mb-2 rounded px-2 py-1 text-xs border-l-2 opacity-80",t?"bg-white/[0.06] border-white/50":"bg-gray-100 dark:bg-black/20 border-blue-500"),children:"Replying to message..."}),e.attachments&&e.attachments.length>0&&jsxRuntime.jsx("div",{className:"mb-2 space-y-2",children:e.attachments.map(d=>d.type==="image"?jsxRuntime.jsx(la,{src:d.url,alt:"Attachment",className:"rounded-2xl max-h-60 object-cover w-full"},d.id):jsxRuntime.jsxs("div",{className:"flex items-center gap-2 p-2 rounded bg-black/5 dark:bg-white/[0.06]",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 bg-gray-200 dark:bg-white/20 rounded flex items-center justify-center text-xs font-bold",children:"FILE"}),jsxRuntime.jsx("div",{className:"text-xs truncate flex-1",children:d.name||"File"})]},d.id))}),jsxRuntime.jsx("div",{className:"text-sm whitespace-pre-wrap break-words leading-relaxed",children:e.content}),jsxRuntime.jsxs("div",{className:n("flex items-center justify-end gap-1 mt-1 select-none",t?"text-blue-100":"text-gray-400 dark:text-white/40"),children:[jsxRuntime.jsx("span",{className:"text-[10px]",children:e.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),t&&a&&jsxRuntime.jsx("span",{className:"flex items-center",children:e.status==="read"?jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-3 w-3 text-blue-200"}):e.status==="delivered"?jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-3 w-3 text-blue-200/50"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3 text-blue-200/50"})})]}),e.reactions&&Object.keys(e.reactions).length>0&&jsxRuntime.jsx("div",{className:"absolute -bottom-2 right-4 flex gap-1",children:Object.entries(e.reactions).map(([d,c])=>jsxRuntime.jsxs("div",{className:"bg-white dark:bg-gray-800 shadow-sm border border-gray-100 dark:border-white/10 rounded-full px-1.5 py-0.5 text-[10px] flex items-center gap-1",children:[jsxRuntime.jsx("span",{children:d}),jsxRuntime.jsx("span",{className:"text-gray-500",children:c.length})]},d))})]})]})}function s2({messages:e,currentUserId:t,className:r,onReply:a,onReact:s,onDelete:o,onLoadMore:i,hasMore:l,isLoadingMore:d,...c}){let m=ue.useRef(null),[p,f]=ue.useState(true);ue.useEffect(()=>{p&&m.current?.scrollIntoView({behavior:"smooth"});},[e,p]);let g=v=>{let b=v.currentTarget,u=Math.abs(b.scrollHeight-b.clientHeight-b.scrollTop)<50;f(u),b.scrollTop===0&&l&&!d&&i&&i();},h=ue.useMemo(()=>e.reduce((v,b)=>{let u=b.timestamp.toLocaleDateString();return v[u]||(v[u]=[]),v[u].push(b),v},{}),[e]);return e.length===0&&!d?jsxRuntime.jsx("div",{className:n("flex-1 flex items-center justify-center p-8 text-center text-gray-500 dark:text-white/40",r),...c,children:jsxRuntime.jsxs("div",{className:"max-w-sm space-y-4",children:[jsxRuntime.jsx("div",{className:"w-24 h-24 bg-blue-500/10 dark:bg-white/[0.03] rounded-full flex items-center justify-center mx-auto mb-6 animate-pulse",children:jsxRuntime.jsx(lucideReact.MessageSquare,{className:"h-12 w-12 text-blue-500"})}),jsxRuntime.jsx("h3",{className:"text-xl font-medium text-gray-900 dark:text-white",children:"No messages yet"}),jsxRuntime.jsx("p",{children:"Start the conversation by sending a message below."})]})}):jsxRuntime.jsx(Te,{className:n("flex-1 p-4",r),onScroll:g,role:"log","aria-live":"polite","aria-relevant":"additions",...c,children:jsxRuntime.jsxs("div",{className:"space-y-6 pb-4",children:[l&&jsxRuntime.jsx("div",{className:"flex justify-center py-4",children:d?jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-xs text-white/40",children:[jsxRuntime.jsx("div",{className:"w-4 h-4 border-2 border-cyan-500/30 border-t-cyan-500 rounded-full animate-spin"}),"Loading older messages..."]}):jsxRuntime.jsx("button",{onClick:i,className:"text-xs text-cyan-500/60 hover:text-cyan-500 transition-colors",children:"Load older messages"})}),Object.entries(h).map(([v,b])=>jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("div",{className:"flex justify-center sticky top-0 z-10 py-2",children:jsxRuntime.jsx("span",{className:"px-3 py-1 rounded-full bg-gray-100/80 dark:bg-white/[0.03] text-[10px] uppercase tracking-wider font-bold text-gray-500 dark:text-white/40 backdrop-blur-md border border-white/5 shadow-sm",children:v})}),jsxRuntime.jsx("div",{className:"space-y-1",children:b.map((u,x)=>{let y=u.senderId===t,k=b[x-1],w=b[x+1];!k||k.senderId!==u.senderId;let M=!w||w.senderId!==u.senderId;return jsxRuntime.jsx(bn,{message:u,isOwn:y,className:n(!M&&"mb-0.5"),onReply:a,onReact:s,onDelete:o},u.id)})})]},v)),jsxRuntime.jsx("div",{ref:m,className:"h-px"})]})})}function x2({onSend:e,onAttach:t,placeholder:r="Type a message...",users:a=[],className:s,...o}){let[i,l]=ue.useState(""),[d,c]=ue.useState(false),[m,p]=ue.useState(null),[f,g]=ue.useState(0),h=ue.useRef(null),v=ue.useMemo(()=>m===null?[]:a.filter(w=>w.name.toLowerCase().includes(m.toLowerCase())).slice(0,5),[a,m]),b=w=>{let N=w.target.value;l(N);N[w.target.selectionStart-1];let R=N.slice(0,w.target.selectionStart).match(/@(\w*)$/);R?(p(R[1]||""),g(0)):p(null),h.current&&(h.current.style.height="auto",h.current.style.height=`${Math.min(h.current.scrollHeight,120)}px`);},u=w=>{if(!h.current)return;let N=h.current.selectionStart,M=i.slice(0,N).replace(/@\w*$/,`@${w.name} `),T=i.slice(N);l(M+T),p(null),h.current.focus();},x=w=>{if(m!==null&&v.length>0){w.key==="ArrowDown"?(w.preventDefault(),g(N=>(N+1)%v.length)):w.key==="ArrowUp"?(w.preventDefault(),g(N=>(N-1+v.length)%v.length)):w.key==="Enter"||w.key==="Tab"?(w.preventDefault(),u(v[f])):w.key==="Escape"&&p(null);return}w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),y());},y=()=>{i.trim()&&(e?.(i),l(""),h.current&&(h.current.style.height="auto"));},k=()=>{c(true),setTimeout(()=>{c(false),t?.();},1e3);};return jsxRuntime.jsxs("div",{className:n("relative p-4 border-t border-white/10 bg-white/[0.02]",s),...o,children:[m!==null&&v.length>0&&jsxRuntime.jsxs(Z,{className:"absolute bottom-full left-4 mb-2 w-64 overflow-hidden shadow-2xl animate-in fade-in slide-in-from-bottom-2",children:[jsxRuntime.jsx("div",{className:"p-2 border-b border-white/10 bg-white/[0.02]",children:jsxRuntime.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-white/40 px-2",children:"Mention User"})}),jsxRuntime.jsx("div",{className:"max-h-48 overflow-y-auto p-1",children:v.map((w,N)=>jsxRuntime.jsxs("button",{onClick:()=>u(w),className:n("w-full flex items-center gap-3 px-3 py-2 rounded-2xl transition-colors text-left",N===f?"bg-white/[0.06]":"hover:bg-white/[0.03]"),children:[jsxRuntime.jsx(fe,{src:w.avatar,alt:w.name,size:"sm"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium text-white truncate",children:w.name}),jsxRuntime.jsxs("div",{className:"text-xs text-white/40 truncate",children:["@",w.name.toLowerCase().replace(/\s/g,"")]})]}),N===f&&jsxRuntime.jsx("div",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-white/60",children:"Enter"})]},w.id))})]}),jsxRuntime.jsxs("div",{className:"flex items-end gap-2 max-w-4xl mx-auto",children:[jsxRuntime.jsx("div",{className:"flex gap-1 mb-1",children:jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-2xl text-white/40 hover:text-white",onClick:k,disabled:d,children:jsxRuntime.jsx(lucideReact.Paperclip,{className:n("w-5 h-5",d&&"animate-pulse text-blue-500")})})}),jsxRuntime.jsxs("div",{className:"flex-1 relative group",children:[jsxRuntime.jsx("textarea",{ref:h,value:i,onChange:b,onKeyDown:x,placeholder:d?"Uploading...":r,rows:1,className:"w-full bg-white/[0.03] border border-white/10 rounded-2xl px-4 py-2.5 text-sm text-white placeholder:text-white/20 focus:outline-none focus:ring-2 focus:ring-white/10 resize-none transition-all min-h-[44px]"}),jsxRuntime.jsxs("div",{className:"absolute right-3 bottom-2.5 flex items-center gap-2 opacity-0 group-focus-within:opacity-100 transition-opacity",children:[jsxRuntime.jsx("button",{className:"text-white/20 hover:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.Smile,{className:"w-4 h-4"})}),jsxRuntime.jsx("button",{className:"text-white/20 hover:text-white/60 transition-colors",children:jsxRuntime.jsx(lucideReact.AtSign,{className:"w-4 h-4"})})]})]}),jsxRuntime.jsx("div",{className:"flex gap-2 mb-1",children:i.trim()?jsxRuntime.jsx(P,{onClick:y,className:"h-9 w-9 rounded-2xl bg-white text-black hover:bg-white/90 p-0",children:jsxRuntime.jsx(lucideReact.Send,{className:"w-4 h-4"})}):jsxRuntime.jsx(P,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-2xl text-white/40 hover:text-white",children:jsxRuntime.jsx(lucideReact.Mic,{className:"w-5 h-5"})})})]})]})}var Gm=classVarianceAuthority.cva("shrink-0 bg-gray-200 dark:bg-white/[0.03]",{variants:{orientation:{horizontal:"h-[1px] w-full",vertical:"h-full w-[1px]"}},defaultVariants:{orientation:"horizontal"}}),qt=ue__namespace.default.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,...a},s)=>jsxRuntime.jsx("div",{ref:s,role:r?"none":"separator","aria-orientation":r?void 0:t,className:n(Gm({orientation:t,className:e})),...a}));qt.displayName="Separator";function S2({user:e,onClose:t,className:r,...a}){return jsxRuntime.jsxs("div",{className:n("w-80 border-l border-gray-200 dark:border-white/10 bg-white dark:bg-black/20 flex flex-col",r),...a,children:[jsxRuntime.jsxs("div",{className:"h-16 flex items-center px-4 border-b border-gray-200 dark:border-white/10",children:[jsxRuntime.jsx("button",{onClick:t,className:"p-2 -ml-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06]",children:jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5 text-gray-500"})}),jsxRuntime.jsx("span",{className:"ml-2 font-semibold text-gray-900 dark:text-white",children:"Contact Info"})]}),jsxRuntime.jsxs(Te,{className:"flex-1",children:[jsxRuntime.jsxs("div",{className:"p-6 flex flex-col items-center text-center",children:[jsxRuntime.jsx(fe,{src:e.avatar,alt:e.name,fallback:e.name[0],className:"h-24 w-24 mb-4 text-2xl"}),jsxRuntime.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:e.name}),jsxRuntime.jsx("p",{className:"text-sm text-gray-500 dark:text-white/50 mt-1",children:e.phone||"+1 (555) 000-0000"}),jsxRuntime.jsxs("div",{className:"mt-6 w-full",children:[jsxRuntime.jsx("p",{className:"text-sm text-gray-500 dark:text-white/50 mb-1 text-left",children:"About"}),jsxRuntime.jsx("p",{className:"text-sm text-gray-900 dark:text-white text-left",children:e.bio||"Hey there! I am using Pixon Chat."})]})]}),jsxRuntime.jsx(qt,{}),jsxRuntime.jsxs("div",{className:"p-4 space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-xs font-semibold text-gray-500 dark:text-white/40 uppercase tracking-wider",children:"Media & Docs"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-2",children:[1,2,3,4,5,6].map(s=>jsxRuntime.jsxs("div",{className:"aspect-square rounded-2xl bg-gray-100 dark:bg-white/[0.03] overflow-hidden relative group cursor-pointer",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-gray-400",children:jsxRuntime.jsx(lucideReact.Image,{className:"h-6 w-6"})}),jsxRuntime.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity"})]},s))})]}),jsxRuntime.jsx(qt,{}),jsxRuntime.jsx("div",{className:"p-4 space-y-4",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 text-gray-700 dark:text-white/80",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Mute Notifications"})]}),jsxRuntime.jsx(Lr,{})]})}),jsxRuntime.jsx(qt,{}),jsxRuntime.jsxs("div",{className:"p-4 space-y-2",children:[jsxRuntime.jsxs("button",{className:"w-full flex items-center gap-3 p-3 rounded-2xl hover:bg-red-50 dark:hover:bg-red-500/10 text-red-600 dark:text-red-400 transition-colors text-sm font-medium",children:[jsxRuntime.jsx(lucideReact.Ban,{className:"h-5 w-5"}),"Block ",e.name]}),jsxRuntime.jsxs("button",{className:"w-full flex items-center gap-3 p-3 rounded-2xl hover:bg-red-50 dark:hover:bg-red-500/10 text-red-600 dark:text-red-400 transition-colors text-sm font-medium",children:[jsxRuntime.jsx(lucideReact.Trash2,{className:"h-5 w-5"}),"Delete Chat"]})]})]})]})}function $2({children:e,stagger:t=100,delay:r=0,className:a,...s}){let{ref:o,hasAnimated:i}=Be({threshold:.1});return jsxRuntime.jsx("div",{ref:o,className:n("relative",a),...s,children:ue__namespace.default.Children.map(e,(l,d)=>ue__namespace.default.isValidElement(l)?ue__namespace.default.cloneElement(l,{visible:i,viewport:false,delay:r+d*t}):l)})}function U2({text:e,type:t="char",stagger:r=30,delay:a=0,className:s,...o}){let{ref:i,hasAnimated:l}=Be({threshold:.2}),d=t==="char"?e.split(""):e.split(" ");return jsxRuntime.jsx("div",{ref:i,className:n("flex flex-wrap",s),"aria-label":e,...o,children:d.map((c,m)=>jsxRuntime.jsxs("span",{className:n("inline-block whitespace-pre transition-all duration-500 ease-out will-change-transform",l?"opacity-100 translate-y-0 blur-0":"opacity-0 translate-y-4 blur-sm"),style:{transitionDelay:`${a+m*r}ms`},children:[c,t==="word"&&m!==d.length-1?" ":""]},m))})}function Q2({children:e,speed:t=.1,direction:r="vertical",className:a,...s}){let o=ue.useRef(null);return ue.useEffect(()=>{let i=o.current;if(!i)return;let l=()=>{let d=i.getBoundingClientRect(),c=window.innerHeight;if(d.top>c||d.bottom<0)return;let p=(c/2-(d.top+d.height/2))*t;r==="vertical"?i.style.transform=`translate3d(0, ${p}px, 0)`:i.style.transform=`translate3d(${p}px, 0, 0)`;};return window.addEventListener("scroll",l,{passive:true}),l(),()=>window.removeEventListener("scroll",l)},[t,r]),jsxRuntime.jsx("div",{ref:o,className:n("will-change-transform",a),...s,children:e})}function o1({children:e,strength:t=.5,className:r}){let a=ue.useRef(null),s=i=>{let l=a.current;if(!l)return;let{clientX:d,clientY:c}=i,{left:m,top:p,width:f,height:g}=l.getBoundingClientRect(),h=m+f/2,v=p+g/2,b=d-h,u=c-v,x=Math.max(f,g)*1.5;Math.abs(b)<x&&Math.abs(u)<x?(l.style.setProperty("--mag-x",`${b*t}px`),l.style.setProperty("--mag-y",`${u*t}px`)):(l.style.setProperty("--mag-x","0px"),l.style.setProperty("--mag-y","0px"));},o=()=>{let i=a.current;i&&(i.style.setProperty("--mag-x","0px"),i.style.setProperty("--mag-y","0px"));};return ue.useEffect(()=>(window.addEventListener("mousemove",s),()=>window.removeEventListener("mousemove",s)),[t]),jsxRuntime.jsx("div",{ref:a,className:n("inline-block transition-transform duration-300 ease-out will-change-transform",r),onMouseLeave:o,style:{transform:"translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0)"},children:e})}function m1({value:e,duration:t=2e3,delay:r=0,decimalPlaces:a=0,className:s,...o}){let[i,l]=ue.useState(0),{ref:d,hasAnimated:c}=Be({threshold:.1}),m=ue.useRef(null);return ue.useEffect(()=>{if(!c)return;let p=g=>{m.current||(m.current=g);let h=Math.min((g-m.current-r)/t,1);if(h>=0){let v=h*e;l(v);}h<1&&requestAnimationFrame(p);},f=setTimeout(()=>{requestAnimationFrame(p);},r);return ()=>clearTimeout(f)},[c,e,t,r]),jsxRuntime.jsx("span",{ref:d,className:n("tabular-nums tracking-tighter",s),...o,children:i.toFixed(a)})}function w1({title:e,open:t,defaultOpen:r=false,onOpenChange:a,disabled:s=false,children:o,className:i,triggerClassName:l,contentClassName:d,...c}){let[m,p]=ue.useState(r),f=t!==void 0,g=f?t:m,h=()=>{if(s)return;let v=!g;f||p(v),a?.(v);};return jsxRuntime.jsxs("div",{className:n("w-full overflow-hidden rounded-2xl border border-gray-200 bg-white dark:border-white/10 dark:bg-white/[0.02]",i),...c,children:[e&&jsxRuntime.jsxs("button",{type:"button",onClick:h,disabled:s,className:n("flex w-full items-center justify-between px-4 py-3 text-sm font-medium transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.02]",s&&"cursor-not-allowed opacity-50",l),children:[e,jsxRuntime.jsx(lucideReact.ChevronDown,{className:n("h-4 w-4 shrink-0 text-gray-500 transition-transform duration-200 dark:text-gray-400",g&&"rotate-180")})]}),jsxRuntime.jsx("div",{className:n("grid transition-all duration-300 ease-in-out",g?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:n("px-4 pb-4 pt-0",e&&"pt-1",d),children:o})})})]})}function M1({variant:e="spinner",text:t,fullscreen:r=true,className:a,...s}){let o=r?"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-black/80 backdrop-blur-sm":"flex items-center justify-center p-8 w-full h-full min-h-[200px]";return e==="bar"?jsxRuntime.jsx("div",{className:n("fixed top-0 left-0 right-0 z-50 h-1 bg-transparent",a),...s,children:jsxRuntime.jsx("div",{className:"h-full bg-blue-500 animate-indeterminate-progress origin-left"})}):e==="dots"?jsxRuntime.jsxs("div",{className:n(o,a),...s,children:[jsxRuntime.jsxs("div",{className:"flex space-x-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-blue-500 animate-bounce [animation-delay:-0.3s]"}),jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-blue-500 animate-bounce [animation-delay:-0.15s]"}),jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-blue-500 animate-bounce"})]}),t&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium text-gray-500 dark:text-white/70",children:t})]}):e==="logo"?jsxRuntime.jsx("div",{className:n(o,a),...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4",children:[jsxRuntime.jsxs("div",{className:"relative flex h-16 w-16 items-center justify-center rounded-full bg-white dark:bg-white/[0.06] shadow-lg ring-1 ring-black/5",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full animate-ping bg-blue-500/20"}),jsxRuntime.jsx("div",{className:"h-8 w-8 rounded bg-blue-500"})]}),t&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-white/70 animate-pulse",children:t})]})}):e==="glass"?jsxRuntime.jsx("div",{className:n(o,"bg-white/30 dark:bg-black/30 backdrop-blur-md",a),...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-3",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"h-8 w-8 animate-spin text-white"}),t&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-white tracking-wider",children:t})]})}):jsxRuntime.jsx("div",{className:n(o,a),...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-3",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"h-8 w-8 animate-spin text-blue-500"}),t&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-white/70",children:t})]})})}function D1({preset:e="fade",duration:t=300,useViewTransition:r=false,className:a,children:s,...o}){let[i,l]=ue.useState(false);ue.useEffect(()=>{if(r&&document.startViewTransition)document.startViewTransition(()=>{l(true);});else {let m=requestAnimationFrame(()=>{l(true);});return ()=>cancelAnimationFrame(m)}},[r]);let c={fade:{initial:"opacity-0",animate:"opacity-100"},"slide-up":{initial:"opacity-0 translate-y-8",animate:"opacity-100 translate-y-0"},scale:{initial:"opacity-0 scale-95",animate:"opacity-100 scale-100"},blur:{initial:"opacity-0 blur-sm",animate:"opacity-100 blur-0"},none:{initial:"",animate:""}}[e];return jsxRuntime.jsx("div",{className:n("transition-all ease-out",i?c.animate:c.initial,a),style:{transitionDuration:`${t}ms`,viewTransitionName:r?"page-content":void 0},...o,children:s})}exports.AIPromptInput=im;exports.AIResponse=vm;exports.Accordion=Hf;exports.AccordionContent=Af;exports.AccordionItem=If;exports.AccordionTrigger=Sf;exports.Alert=Js;exports.AreaChart=kw;exports.Avatar=fe;exports.Background=Bd;exports.Badge=Oe;exports.BarChart=hw;exports.Breadcrumb=Ti;exports.BreadcrumbEllipsis=Ei;exports.BreadcrumbItem=Ri;exports.BreadcrumbLink=Ci;exports.BreadcrumbList=Mi;exports.BreadcrumbPage=Li;exports.BreadcrumbSeparator=Pi;exports.Button=P;exports.Calendar=sr;exports.Card=xd;exports.CardContent=kd;exports.CardDescription=yd;exports.CardFooter=Nd;exports.CardHeader=vd;exports.CardTitle=wd;exports.ChartContainer=lw;exports.ChartGrid=dw;exports.ChartSkeleton=uw;exports.ChartTooltip=mw;exports.ChartXAxis=cw;exports.ChartYAxis=jw;exports.ChatHeader=Ok;exports.ChatInput=x2;exports.ChatLayout=Mk;exports.ChatProfile=S2;exports.ChatSidebar=Hk;exports.Checkbox=Cr;exports.Collapse=w1;exports.Combobox=Ir;exports.ComboboxContent=a0;exports.ComboboxEmpty=Ga;exports.ComboboxInput=ja;exports.ComboboxItem=qa;exports.ComboboxList=Xa;exports.ComboboxTrigger=r0;exports.Command=No;exports.CommandDialog=Ab;exports.CommandEmpty=Bb;exports.CommandGroup=Ro;exports.CommandInput=To;exports.CommandItem=Co;exports.CommandList=Mo;exports.CommandShortcut=Vb;exports.Container=Ld;exports.DataTable=Uh;exports.DatePicker=T0;exports.DateTimePicker=O0;exports.Dialog=eb;exports.DialogDescription=ob;exports.DialogFooter=rb;exports.DialogHeader=tb;exports.DialogTitle=ab;exports.Divider=gl;exports.Drawer=pb;exports.DrawerDescription=hb;exports.DrawerFooter=gb;exports.DrawerHeader=fb;exports.DrawerTitle=bb;exports.DropdownMenu=wt;exports.DropdownMenuContent=kt;exports.DropdownMenuItem=ee;exports.DropdownMenuLabel=mo;exports.DropdownMenuSeparator=Ur;exports.DropdownMenuTrigger=yt;exports.EmptyState=kl;exports.FileDropzone=sa;exports.FormControl=Ws;exports.FormDescription=_s;exports.FormItem=Fs;exports.FormLabel=Ks;exports.FormMessage=Us;exports.GlowButton=On;exports.Grid=Sd;exports.Heading=Ke;exports.HeroText=os;exports.Image=la;exports.Kanban=Ex;exports.KanbanCalendarView=wv;exports.KanbanFilterBar=cv;exports.KanbanTaskModal=Jx;exports.Kbd=xl;exports.Label=Y;exports.LetterPullup=ns;exports.LineChart=Cw;exports.Magnetic=o1;exports.Marquee=ky;exports.MessageBubble=bn;exports.MessageList=s2;exports.MetricCard=_n;exports.Modal=bo;exports.ModalDescription=Yg;exports.ModalFooter=xo;exports.ModalHeader=ho;exports.ModalTitle=vo;exports.Motion=fn;exports.MotionGroup=$2;exports.Navbar=fg;exports.NumberInput=Ac;exports.NumberTicker=m1;exports.OTPInput=Pc;exports.PageLoader=M1;exports.PageTransition=D1;exports.Pagination=Di;exports.PaginationContent=Hi;exports.PaginationEllipsis=Bi;exports.PaginationItem=Ii;exports.PaginationLink=Yr;exports.PaginationNext=Ai;exports.PaginationPrevious=Si;exports.Parallax=Q2;exports.PieChart=Sw;exports.Popover=Ue;exports.PopoverContent=je;exports.PopoverTrigger=Ye;exports.PrimaryButton=Hn;exports.Progress=ei;exports.RadarChart=zw;exports.RadioGroup=zs;exports.RadioGroupItem=$s;exports.Rating=Uc;exports.Reveal=Sa;exports.ScrollArea=Te;exports.ScrollProgress=lh;exports.Select=Dr;exports.Separator=qt;exports.ShinyText=Zn;exports.Sidebar=Gf;exports.SidebarContent=Qf;exports.SidebarFooter=Jf;exports.SidebarGroup=eg;exports.SidebarHeader=qf;exports.SidebarItem=Zf;exports.Skeleton=Io;exports.Slider=d0;exports.Sparkline=Ww;exports.Spotlight=ik;exports.Stack=Dd;exports.StatusDot=yc;exports.Stepper=Zy;exports.Surface=Z;exports.Switch=Lr;exports.Table=Zr;exports.TableBody=ta;exports.TableCell=fr;exports.TableHead=ra;exports.TableHeader=ea;exports.TableRow=Wt;exports.Tabs=Ff;exports.TabsContent=_f;exports.TabsList=Kf;exports.TabsTrigger=Wf;exports.Terminal=bc;exports.TerminalLine=xy;exports.Text=U;exports.TextGradient=qn;exports.TextInput=ft;exports.TextMotion=U2;exports.Textarea=Br;exports.ThemeProvider=Qv;exports.ThemeToggle=aw;exports.Timeline=sy;exports.TimelineItem=lc;exports.Toast=ao;exports.ToastContext=Or;exports.ToastProvider=pf;exports.ToggleGroup=$c;exports.Tooltip=Mb;exports.Tree=py;exports.UserMenu=Pg;exports.UserPreview=oc;exports.cn=n;exports.normalize=Pt;exports.useBreakpoint=th;exports.useChart=he;exports.useContainerQuery=rh;exports.useFloating=gt;exports.useForm=Jb;exports.useIntersection=Gb;exports.useMediaQuery=sl;exports.useScroll=Do;exports.useTheme=Go;exports.useTimer=Ub;exports.useToast=Kb;//# sourceMappingURL=index.js.map
|
|
70
|
+
//# sourceMappingURL=index.js.map
|