(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7446],{4439:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(53756),a=s(5008),l=s(88564),i=s(69456);function c({onSearch:e,placeholder:t}){let[s,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{let t=setTimeout(()=>e(s),200);return()=>clearTimeout(t)},[s,e]),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500"}),(0,r.jsx)("input",{type:"text",value:s,onChange:e=>n(e.target.value),placeholder:t||"Search...",className:"w-full bg-white/5 border border-white/10 rounded-xl pl-10 pr-10 py-3 text-sm text-white placeholder-zinc-500 focus:outline-none focus:border-[#05A3FF]/50"}),s&&(0,r.jsx)("button",{onClick:()=>{n(""),e("")},className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white",children:(0,r.jsx)(i.A,{className:"w-4 h-4"})})]})}},64727:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(53756),a=s(5008),l=s(95516),i=s(4439);function c({projects:e}){let[t,s]=(0,a.useState)(""),n=(0,a.useMemo)(()=>e.filter(e=>!t||e.title.toLowerCase().includes(t.toLowerCase())||(e.description||"").toLowerCase().includes(t.toLowerCase())),[e,t]);return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(i.A,{onSearch:s,placeholder:"Search projects..."}),(0,r.jsx)("div",{className:"grid gap-6 md:grid-cols-2",children:0===n.length?(0,r.jsx)("div",{className:"col-span-2 bg-[#121214] border border-white/5 rounded-3xl p-8 text-center text-zinc-500",children:(0,r.jsx)("p",{className:"text-lg font-medium",children:0===e.length?"No projects yet":"No projects match your search"})}):n.map(e=>{let t=e.total_tasks>0?Math.round(e.completed_tasks/e.total_tasks*100):0;return(0,r.jsxs)("div",{className:"bg-[#121214] border border-white/5 rounded-3xl p-6 shadow-sm hover:border-white/10 transition-all",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-bold",children:e.title}),e.description&&(0,r.jsx)("p",{className:"text-sm text-zinc-400 mt-1 line-clamp-2",children:e.description})]}),(0,r.jsx)("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${"active"===e.status?"bg-emerald-500/10 text-emerald-500":"completed"===e.status?"bg-blue-500/10 text-blue-500":"bg-amber-500/10 text-amber-500"}`,children:e.status})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("div",{className:"flex justify-between text-sm mb-1",children:[(0,r.jsx)("span",{className:"text-zinc-400",children:"Progress"}),(0,r.jsxs)("span",{className:"text-white font-medium",children:[t,"%"]})]}),(0,r.jsx)("div",{className:"h-2 bg-white/5 rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-[#05A3FF] rounded-full transition-all",style:{width:`${t}%`}})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-xs text-zinc-500",children:[(0,r.jsxs)("span",{children:[e.completed_tasks,"/",e.total_tasks," tasks"]}),e.deadline&&(0,r.jsxs)("span",{className:"flex items-center gap-1",children:["Due ",new Date(e.deadline).toLocaleDateString(),(0,r.jsx)(l.A,{className:"w-3 h-3"})]})]})]},e.id)})})]})}},69189:(e,t,s)=>{Promise.resolve().then(s.bind(s,64727))},69456:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(91414).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},88564:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(91414).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},91414:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(5008);let a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim();var i={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"};let c=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:c="",children:n,iconNode:d,...o},h)=>(0,r.createElement)("svg",{ref:h,...i,width:t,height:t,stroke:e,strokeWidth:a?24*Number(s)/Number(t):s,className:l("lucide",c),...!n&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(o)&&{"aria-hidden":"true"},...o},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(n)?n:[n]])),n=(e,t)=>{let s=(0,r.forwardRef)(({className:s,...i},n)=>(0,r.createElement)(c,{ref:n,iconNode:t,className:l(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...i}));return s.displayName=a(e),s}},95516:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(91414).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}},e=>{e.O(0,[4708,2424,7358],()=>e(e.s=69189)),_N_E=e.O()}]);