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