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