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