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