var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var F=(t,e)=>{for(var l in e)a(t,l,{get:e[l],enumerable:!0})},b=(t,e,l,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of u(e))!x.call(t,n)&&n!==l&&a(t,n,{get:()=>e[n],enumerable:!(m=f(e,n))||m.enumerable});return t};var h=t=>b(a({},"__esModule",{value:!0}),t);var P={};F(P,{default:()=>I});module.exports=h(P);var r=require("@chakra-ui/react"),i=require("@chakra-ui/icons"),o=require("react/jsx-runtime"),k=({failed:t,completed:e,inProgress:l,title:m,isLast:n,hasLink:c,link:g})=>(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:!n&&{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:m}),c&&(0,o.jsx)(r.Link,{href:g,isExternal:!0,children:(0,o.jsx)(i.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)(i.WarningIcon,{color:"destructive"})]}):e?(0,o.jsx)(i.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"})})]}),p=k;var s=require("@chakra-ui/react"),d=require("react/jsx-runtime"),L=({list:t})=>(0,d.jsxs)(s.Flex,{flexDir:"column",children:[(0,d.jsx)(s.Text,{fontSize:"lg",children:"Processing"}),t?.map((e,l)=>(0,d.jsx)(p,{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=L;
