import{Box as d,Flex as r,Link as f,Spinner as u,Text as i}from"@chakra-ui/react";import{CheckCircleIcon as x,ExternalLinkIcon as F,WarningIcon as b}from"@chakra-ui/icons";import{jsx as e,jsxs as n}from"react/jsx-runtime";var h=({failed:t,completed:o,inProgress:l,title:a,isLast:p,hasLink:c,link:g})=>n(r,{align:"center",h:10,children:[e(d,{h:1,w:1,bg:"foreground",borderRadius:"50%",position:"relative",_after:!p&&{content:'""',position:"absolute",top:"1",left:"50%",border:"1px solid",borderColor:o?"mutedForeground":"muted",height:"9",transform:"translateX(-50%)"}}),n(r,{alignItems:"center",children:[e(i,{ml:4,children:a}),c&&e(f,{href:g,isExternal:!0,children:e(F,{ml:"10px",cursor:"pointer"})})]}),e(r,{ml:"auto",children:t?n(r,{align:"center",children:[e(i,{fontSize:"sm",color:"destructive",mr:1,children:"Failed"}),e(b,{color:"destructive"})]}):o?e(x,{}):l?n(r,{align:"center",children:[e(i,{fontSize:"sm",color:"mutedForeground",mr:1,children:"In progress"}),e(u,{color:"mutedForeground",size:"sm"})]}):e(d,{h:4,w:4,borderRadius:"50%",color:"mutedForeground",border:"2px solid"})})]}),m=h;import{Flex as k,Text as L}from"@chakra-ui/react";import{jsx as s,jsxs as P}from"react/jsx-runtime";var I=({list:t})=>P(k,{flexDir:"column",children:[s(L,{fontSize:"lg",children:"Processing"}),t?.map((o,l)=>s(m,{inProgress:o?.completed==="pending",failed:o?.completed==="error",completed:o?.completed==="completed",title:o?.title,isLast:t?.length===l+1,hasLink:o?.hasLink,link:o?.link},l))]}),w=I;export{w as default};
