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