var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var F=(t,e)=>{for(var l in e)s(t,l,{get:e[l],enumerable:!0})},h=(t,e,l,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!a.call(t,i)&&i!==l&&s(t,i,{get:()=>e[i],enumerable:!(d=x(e,i))||d.enumerable});return t};var k=t=>h(s({},"__esModule",{value:!0}),t);var T={};F(T,{default:()=>I});module.exports=k(T);var C=require("react");var z=require("react"),r=require("@chakra-ui/react"),n=require("@chakra-ui/icons"),o=require("react/jsx-runtime"),L=({failed:t,completed:e,inProgress:l,title:d,isLast:i,hasLink:g,link:u})=>(0,o.jsxs)(r.Flex,{align:"center",h:10,children:[(0,o.jsx)(r.Box,{h:1,w:1,bg:"foreground",borderRadius:"50%",position:"relative",_after:!i&&{content:'""',position:"absolute",top:"1",left:"50%",border:"1px solid",borderColor:e?"mutedForeground":"muted",height:"9",transform:"translateX(-50%)"}}),(0,o.jsxs)(r.Flex,{alignItems:"center",children:[(0,o.jsx)(r.Text,{ml:4,children:d}),g&&(0,o.jsx)(r.Link,{href:u,isExternal:!0,children:(0,o.jsx)(n.ExternalLinkIcon,{ml:"10px",cursor:"pointer"})})]}),(0,o.jsx)(r.Flex,{ml:"auto",children:t?(0,o.jsxs)(r.Flex,{align:"center",children:[(0,o.jsx)(r.Text,{fontSize:"sm",color:"destructive",mr:1,children:"Failed"}),(0,o.jsx)(n.WarningIcon,{color:"destructive"})]}):e?(0,o.jsx)(n.CheckCircleIcon,{}):l?(0,o.jsxs)(r.Flex,{align:"center",children:[(0,o.jsx)(r.Text,{fontSize:"sm",color:"mutedForeground",mr:1,children:"In progress"}),(0,o.jsx)(r.Spinner,{color:"mutedForeground",size:"sm"})]}):(0,o.jsx)(r.Box,{h:4,w:4,borderRadius:"50%",color:"mutedForeground",border:"2px solid"})})]}),c=L;var p=require("@chakra-ui/react"),m=require("react/jsx-runtime"),b=({list:t})=>(0,m.jsxs)(p.Flex,{flexDir:"column",children:[(0,m.jsx)(p.Text,{fontSize:"lg",children:"Processing"}),t?.map((e,l)=>(0,m.jsx)(c,{inProgress:e?.completed==="pending",failed:e?.completed==="error",completed:e?.completed==="completed",title:e?.title,isLast:t?.length===l+1,hasLink:e?.hasLink,link:e?.link},l))]}),I=b;
