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