var k=Object.defineProperty,z=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var u=(e,o,t)=>o in e?k(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,f=(e,o)=>{for(var t in o||(o={}))c.call(o,t)&&u(e,t,o[t]);if(s)for(var t of s(o))m.call(o,t)&&u(e,t,o[t]);return e},g=(e,o)=>z(e,w(o));var b=(e,o)=>{var t={};for(var r in e)c.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&s)for(var r of s(e))o.indexOf(r)<0&&m.call(e,r)&&(t[r]=e[r]);return t};import"react";import{Box as N,Text as V,useToast as Y}from"@chakra-ui/react";import{isAddress as q}from"@ethersproject/address";import D from"@emotion/styled";import R from"react";import{createMultiStyleConfigHelpers as A,defineStyle as F,FormControl as _,Input as B,InputGroup as W,Text as a}from"@chakra-ui/react";import{inputAnatomy as E}from"@chakra-ui/anatomy";import{jsx as i,jsxs as h}from"react/jsx-runtime";var x=R.forwardRef((O,v)=>{var p=O,{label:e,error:o,placeholder:t,helperText:r,isInvalid:n,as:d=B,InputLeftAddon:C,InputRightAddon:I}=p,l=b(p,["label","error","placeholder","helperText","isInvalid","as","InputLeftAddon","InputRightAddon"]);let{disabled:T}=l;return h(_,{isInvalid:n,opacity:T?.4:1,children:[e&&i(a,{color:n?"destructive":"foreground",fontWeight:"medium",fontSize:"sm",lineHeight:1,children:e}),h(W,{mt:"2",children:[C,i(d,g(f({variant:"",placeholder:t},l),{ref:v})),I]}),r&&i(a,{fontSize:"xs",mt:2,color:"mutedForeground",children:r}),n&&o&&i(a,{fontSize:"xs",mt:2,color:"destructive",children:o})]})}),{definePartsStyle:y,defineMultiStyleConfig:G}=A(E.keys),H=y({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"}}}),M=F({borderRadius:"md"}),P={sm:y({field:M})},j=G({baseStyle:H,sizes:P});import{jsx as S,jsxs as L}from"react/jsx-runtime";var J=D(N)`
  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=Y();return L(J,{paddingY:4,children:[S(x,{placeholder:"Enter ethereum wallet address",value:e,onChange:n=>{let d=n.target.value;q(d)?o(d):(t({title:"Invalid ethereum address",description:"Please enter valid address",status:"error"}),o(""))}}),S(V,{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"})]})},le=K;export{le as default};
