var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var t=Object.prototype.hasOwnProperty;var n=(e,d)=>{for(var g in d)r(e,g,{get:d[g],enumerable:!0})},b=(e,d,g,f)=>{if(d&&typeof d=="object"||typeof d=="function")for(let m of p(d))!t.call(e,m)&&m!==g&&r(e,m,{get:()=>d[m],enumerable:!(f=x(d,m))||f.enumerable});return e};var F=e=>b(r({},"__esModule",{value:!0}),e);var T={};n(T,{default:()=>w});module.exports=F(T);var k=require("react"),i=require("@chakra-ui/react"),o=require("@chakra-ui/layout"),l=require("react/jsx-runtime"),c=({transaction:e})=>(0,l.jsxs)(o.Flex,{direction:"column",align:"center",children:[(e==null?void 0:e.completed)==="pending"?(0,l.jsx)(u,{}):(e==null?void 0:e.completed)==="error"?(0,l.jsx)(S,{}):(e==null?void 0:e.completed)==="completed"?(0,l.jsx)(h,{}):(0,l.jsx)(u,{}),(0,l.jsx)(o.Flex,{h:"10",children:(e==null?void 0:e.completed)==="completed"&&(0,l.jsx)(i.Link,{fontSize:"xs",fontWeight:"semibold",mt:8,onClick:()=>window.open(e==null?void 0:e.link),children:"View on Explorer"})})]}),u=()=>(0,l.jsxs)(o.Flex,{flexDirection:"column",align:"center",children:[(0,l.jsx)(o.Flex,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:(0,l.jsx)(i.Spinner,{size:"md"})}),(0,l.jsx)(i.Text,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Transaction Pending"})]}),h=()=>(0,l.jsxs)(o.Flex,{flexDirection:"column",align:"center",children:[(0,l.jsx)(o.Flex,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:"\u{1F389}"}),(0,l.jsx)(i.Text,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Mint Successful"})]}),S=()=>(0,l.jsxs)(o.Flex,{flexDirection:"column",align:"center",children:[(0,l.jsx)(o.Flex,{justify:"center",align:"center",bg:"muted",w:10,h:10,borderRadius:"50%",children:"\u274C"}),(0,l.jsx)(i.Text,{fontSize:"lg",fontWeight:"bold",mt:"2",children:"Mint Failed"})]}),w=c;
