var z=Object.create;var p=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var o in t)p(e,o,{get:t[o],enumerable:!0})},m=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of I(t))!L.call(e,n)&&n!==o&&p(e,n,{get:()=>t[n],enumerable:!(i=A(t,n))||i.enumerable});return e};var d=(e,t,o)=>(o=e!=null?z(S(e)):{},m(t||!e||!e.__esModule?p(o,"default",{value:e,enumerable:!0}):o,e)),E=e=>m(p({},"__esModule",{value:!0}),e);var N={};T(N,{default:()=>j});module.exports=E(N);var l=require("@chakra-ui/react"),h=d(require("@emotion/styled"),1),f=require("react");var g=(e,t)=>e?e.length>t?e.substr(0,t-1)+"..."+e.substr(e.length-(t-1),e.length-1):e:"";var y=(e,t)=>{if(navigator.clipboard&&navigator.permissions)navigator.clipboard.writeText(e).then(t);else if(document.queryCommandSupported("copy")){let o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o),t?.()}};var s=d(require("react-jazzicon"),1),w=d(require("react-shadow/emotion"),1),C=require("react/jsx-runtime"),M=({address:e})=>{let t=Object.keys(w.default).length?s.default.default:s.default;return(0,C.jsx)(t,{diameter:"24",seed:(0,s.jsNumberForAddress)(e),svgStyles:{display:"block",verticalAlign:"middle"},paperStyles:{border:"1px solid #ffffff"}})},x=M;var q=require("react"),c=require("react/jsx-runtime"),$=e=>(0,c.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,c.jsx)("path",{d:"M21.5 13L14.1625 20L10.5 16.5",stroke:e.iconcolor??"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28Z",stroke:e.iconcolor??"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),v=$;var O=require("react"),a=require("react/jsx-runtime"),P=e=>(0,a.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,a.jsx)("path",{d:"M27 23V5H9",stroke:e.iconcolor??"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M23 9H5V27H23V9Z",stroke:e.iconcolor??"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),k=P;var r=require("react/jsx-runtime"),R=(0,h.default)(k)`
  cursor: pointer;
`,B=(0,h.default)(v)`
  cursor: pointer;
`,J=({address:e,domain:t})=>{let[o,i]=(0,f.useState)(!1),[n,u]=(0,f.useState)(e),b=()=>{i(!0),y(e),setTimeout(()=>{i(!1)},1e3)};return(0,f.useEffect)(()=>{u(t||g(e,6))},[t,e]),(0,r.jsxs)(l.Flex,{alignItems:"center",children:[(0,r.jsx)(x,{address:e}),(0,r.jsxs)(l.Flex,{alignItems:"center",children:[(0,r.jsx)(l.Text,{mx:"1",children:n}),o?(0,r.jsx)(B,{width:24,height:24,iconcolor:o&&"green"}):(0,r.jsx)(R,{width:24,height:24,onClick:b})]})]})},j=J;
