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