var B=Object.create;var a=Object.defineProperty,W=Object.defineProperties,E=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,M=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var g=(e,o,t)=>o in e?a(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,h=(e,o)=>{for(var t in o||(o={}))c.call(o,t)&&g(e,t,o[t]);if(u)for(var t of u(o))b.call(o,t)&&g(e,t,o[t]);return e},x=(e,o)=>W(e,G(o));var y=(e,o)=>{var t={};for(var r in e)c.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&u)for(var r of u(e))o.indexOf(r)<0&&b.call(e,r)&&(t[r]=e[r]);return t};var P=(e,o)=>{for(var t in o)a(e,t,{get:o[t],enumerable:!0})},S=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of H(o))!c.call(e,d)&&d!==t&&a(e,d,{get:()=>o[d],enumerable:!(r=E(o,d))||r.enumerable});return e};var C=(e,o,t)=>(t=e!=null?B(M(e)):{},S(o||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),N=e=>S(a({},"__esModule",{value:!0}),e);var O={};P(O,{default:()=>L});module.exports=N(O);var ee=require("react"),i=require("@chakra-ui/react"),z=require("@ethersproject/address"),w=C(require("@emotion/styled"),1);var I=C(require("react"),1),n=require("@chakra-ui/react"),v=require("@chakra-ui/anatomy");var s=require("react/jsx-runtime"),T=I.default.forwardRef((Q,F)=>{var f=Q,{label:e,error:o,placeholder:t,helperText:r,isInvalid:d,as:p=n.Input,InputLeftAddon:R,InputRightAddon:A}=f,m=y(f,["label","error","placeholder","helperText","isInvalid","as","InputLeftAddon","InputRightAddon"]);let{disabled:_}=m;return(0,s.jsxs)(n.FormControl,{isInvalid:d,opacity:_?.4:1,children:[e&&(0,s.jsx)(n.Text,{color:d?"destructive":"foreground",fontWeight:"medium",fontSize:"sm",lineHeight:1,children:e}),(0,s.jsxs)(n.InputGroup,{mt:"2",children:[R,(0,s.jsx)(p,x(h({variant:"",placeholder:t},m),{ref:F})),A]}),r&&(0,s.jsx)(n.Text,{fontSize:"xs",mt:2,color:"mutedForeground",children:r}),d&&o&&(0,s.jsx)(n.Text,{fontSize:"xs",mt:2,color:"destructive",children:o})]})}),{definePartsStyle:k,defineMultiStyleConfig:V}=(0,n.createMultiStyleConfigHelpers)(v.inputAnatomy.keys),Y=k({field:{color:"foreground",background:"background",boxShadow:"base",borderWidth:"1px",borderStyle:"solid",borderColor:"input",borderRadius:"lg",_focusVisible:{borderColor:"ring"},_hover:{},_disabled:{opacity:1},_placeholder:{color:"mutedForeground"}}}),q=(0,n.defineStyle)({borderRadius:"md"}),D={sm:k({field:q})},Z=V({baseStyle:Y,sizes:D});var l=require("react/jsx-runtime"),J=(0,w.default)(i.Box)`
  position: relative;
  &:after {
    content: '';
    position: absolute;
    top: -30px;
    width: 100%;
    height: 32px;
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
  }
`,K=({address:e,setAddress:o})=>{let t=(0,i.useToast)();return(0,l.jsxs)(J,{paddingY:4,children:[(0,l.jsx)(T,{placeholder:"Enter ethereum wallet address",value:e,onChange:d=>{let p=d.target.value;(0,z.isAddress)(p)?o(p):(t({title:"Invalid ethereum address",description:"Please enter valid address",status:"error"}),o(""))}}),(0,l.jsx)(i.Text,{fontSize:14,mt:2,children:"Note: Enter correct wallet address for domain mapping. We are not liable for any discrepancies caused by an incorrect address"})]})},L=K;
