"use strict";const e=require("react/jsx-runtime"),t=require("lucide-react"),o={completed:{icon:t.CheckCircle2,iconClass:"text-emerald-400",textClass:"text-zinc-400 line-through"},in_progress:{icon:t.Loader2,iconClass:"text-blue-400 animate-spin",textClass:"text-zinc-100"},pending:{icon:t.Circle,iconClass:"text-zinc-500",textClass:"text-zinc-400"}};function d({todos:n}){if(!n.length)return null;const c=n.filter(s=>s.status==="completed").length,l=n.find(s=>s.status==="in_progress"),r=Math.round(c/n.length*100);return e.jsxs("div",{className:"mb-3 w-full max-w-full rounded-2xl border border-zinc-700/60 bg-zinc-950/35 px-4 py-3.5 shadow-[0_10px_30px_rgba(0,0,0,0.25)] backdrop-blur-sm",children:[e.jsxs("div",{className:"mb-3 flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-zinc-200",children:[e.jsx(t.Sparkles,{className:"h-3.5 w-3.5 text-cyan-300/90"}),e.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-zinc-300",children:"Agent Plan"})]}),e.jsx("p",{className:"mt-1 truncate text-xs text-zinc-400",children:l?`Now: ${l.content}`:"Wrapping up remaining steps"})]}),e.jsxs("div",{className:"rounded-lg border border-zinc-700/80 bg-zinc-900/70 px-2.5 py-1 text-[11px] font-medium text-zinc-300",children:[c,"/",n.length," done"]})]}),e.jsx("div",{className:"mb-3 h-1.5 overflow-hidden rounded-full bg-zinc-800/80",children:e.jsx("div",{className:"h-full rounded-full bg-linear-to-r from-cyan-400 to-emerald-400 transition-all duration-500",style:{width:`${r}%`}})}),e.jsx("ul",{className:"space-y-1.5",children:n.map(s=>{const i=o[s.status],a=i.icon;return e.jsxs("li",{className:"group flex items-center gap-2 rounded-lg border border-zinc-800/80 bg-zinc-900/45 px-2.5 py-2 transition-colors duration-200 hover:border-zinc-700/80",children:[e.jsx(a,{className:`h-3.5 w-3.5 flex-shrink-0 ${i.iconClass}`}),e.jsx("span",{className:`line-clamp-1 text-xs ${i.textClass}`,children:s.content})]},s.id)})})]})}module.exports=d;
//# sourceMappingURL=TodoList.cjs.js.map
