var T=Object.create;var s=Object.defineProperty,E=Object.defineProperties,M=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,R=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var w=(e,t,o)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))x.call(t,o)&&w(e,o,t[o]);if(y)for(var o of y(t))B.call(t,o)&&w(e,o,t[o]);return e},h=(e,t)=>E(e,$(t));var J=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},C=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of P(t))!x.call(e,n)&&n!==o&&s(e,n,{get:()=>t[n],enumerable:!(i=M(t,n))||i.enumerable});return e};var u=(e,t,o)=>(o=e!=null?T(R(e)):{},C(t||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),j=e=>C(s({},"__esModule",{value:!0}),e);var O={};J(O,{default:()=>H});module.exports=j(O);var f=require("@chakra-ui/react"),m=u(require("@emotion/styled"),1),p=require("react");var v=(e,t)=>e?e.length>t?e.substr(0,t-1)+"..."+e.substr(e.length-(t-1),e.length-1):e:"";var k=(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==null||t()}};var c=u(require("react-jazzicon"),1),b=u(require("react-shadow/emotion"),1),A=require("react/jsx-runtime"),N=({address:e})=>{let t=Object.keys(b.default).length?c.default.default:c.default;return(0,A.jsx)(t,{diameter:"24",seed:(0,c.jsNumberForAddress)(e),svgStyles:{display:"block",verticalAlign:"middle"},paperStyles:{border:"1px solid #ffffff"}})},z=N;var X=require("react");var a=require("react/jsx-runtime"),U=e=>{var t,o;return(0,a.jsxs)("svg",h(d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e),{children:[(0,a.jsx)("path",{d:"M21.5 13L14.1625 20L10.5 16.5",stroke:(t=e.iconcolor)!=null?t:"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.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:(o=e.iconcolor)!=null?o:"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},I=U;var te=require("react");var l=require("react/jsx-runtime"),V=e=>{var t,o;return(0,l.jsxs)("svg",h(d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e),{children:[(0,l.jsx)("path",{d:"M27 23V5H9",stroke:(t=e.iconcolor)!=null?t:"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M23 9H5V27H23V9Z",stroke:(o=e.iconcolor)!=null?o:"#49536E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},S=V;var r=require("react/jsx-runtime"),W=(0,m.default)(S)`
  cursor: pointer;
`,q=(0,m.default)(I)`
  cursor: pointer;
`,F=({address:e,domain:t})=>{let[o,i]=(0,p.useState)(!1),[n,g]=(0,p.useState)(e),L=()=>{i(!0),k(e),setTimeout(()=>{i(!1)},1e3)};return(0,p.useEffect)(()=>{g(t||v(e,6))},[t,e]),(0,r.jsxs)(f.Flex,{alignItems:"center",children:[(0,r.jsx)(z,{address:e}),(0,r.jsxs)(f.Flex,{alignItems:"center",children:[(0,r.jsx)(f.Text,{mx:"1",children:n}),o?(0,r.jsx)(q,{width:24,height:24,iconcolor:o&&"green"}):(0,r.jsx)(W,{width:24,height:24,onClick:L})]})]})},H=F;
