import{t as e}from"./jsx-runtime-CutOxEx1.js";var t=e();function n({title:e=`执行清单`,stage:n=``,progress:r=0,steps:i,labels:a}){if(!i.length)return null;let o=Math.max(0,Math.min(100,Math.round(Number(r||0))));return(0,t.jsxs)(`div`,{style:{marginTop:12,border:`1px solid var(--border-soft)`,borderRadius:16,background:`linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface2) 92%, transparent))`,overflow:`hidden`},children:[(0,t.jsxs)(`div`,{style:{padding:`12px 14px 10px`,borderBottom:`1px solid var(--border-soft)`},children:[(0,t.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:10,marginBottom:8},children:[(0,t.jsxs)(`div`,{children:[(0,t.jsx)(`div`,{className:`he-label`,style:{marginBottom:2,fontSize:11},children:e}),(0,t.jsx)(`div`,{style:{fontSize:11,color:`var(--text-2)`,lineHeight:1.5},children:n||`正在依次处理步骤。`})]}),(0,t.jsxs)(`div`,{style:{flexShrink:0,minWidth:44,textAlign:`right`,fontSize:16,fontWeight:800,color:`var(--text-1)`},children:[o,`%`]})]}),(0,t.jsx)(`div`,{style:{height:6,borderRadius:999,background:`var(--surface2)`,overflow:`hidden`},children:(0,t.jsx)(`div`,{style:{width:`${Math.max(6,o)}%`,height:`100%`,borderRadius:999,background:`linear-gradient(90deg, rgba(244,136,53,0.72), rgba(244,136,53,1))`,transition:`width .25s ease`}})})]}),(0,t.jsx)(`div`,{style:{padding:10,display:`grid`,gap:6},children:i.map((e,n)=>{let r=e.status===`done`;return(0,t.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10,borderRadius:12,border:`1px solid ${r?`rgba(34,197,94,0.16)`:`rgba(244,136,53,0.18)`}`,background:r?`rgba(34,197,94,0.06)`:`rgba(244,136,53,0.06)`,padding:`8px 10px`},children:[(0,t.jsx)(`div`,{style:{width:20,height:20,borderRadius:999,display:`grid`,placeItems:`center`,flexShrink:0,background:r?`rgba(34,197,94,0.16)`:`rgba(244,136,53,0.16)`,color:r?`#16a34a`:`var(--accent)`,fontSize:11,fontWeight:800},children:r?`完`:n+1}),(0,t.jsxs)(`div`,{style:{minWidth:0,flex:1},children:[(0,t.jsx)(`div`,{style:{fontSize:12,fontWeight:700,color:`var(--text-1)`,lineHeight:1.4},children:a[e.tool]||e.tool}),(0,t.jsx)(`div`,{style:{marginTop:1,fontSize:10,color:r?`var(--text-2)`:`var(--accent)`},children:r?`已完成`:`处理中`})]})]},`${e.tool}_${n}`)})})]})}export{n as t};