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