var P=Object.create;var m=Object.defineProperty,R=Object.defineProperties,w=Object.getOwnPropertyDescriptor,B=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,k=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var s=(o,r,t)=>r in o?m(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,C=(o,r)=>{for(var t in r||(r={}))d.call(r,t)&&s(o,t,r[t]);if(u)for(var t of u(r))c.call(r,t)&&s(o,t,r[t]);return o},h=(o,r)=>R(o,B(r));var I=(o,r)=>{var t={};for(var e in o)d.call(o,e)&&r.indexOf(e)<0&&(t[e]=o[e]);if(o!=null&&u)for(var e of u(o))r.indexOf(e)<0&&c.call(o,e)&&(t[e]=o[e]);return t};var G=(o,r)=>{for(var t in r)m(o,t,{get:r[t],enumerable:!0})},S=(o,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of T(r))!d.call(o,p)&&p!==t&&m(o,p,{get:()=>r[p],enumerable:!(e=w(r,p))||e.enumerable});return o};var K=(o,r,t)=>(t=o!=null?P(k(o)):{},S(r||!o||!o.__esModule?m(t,"default",{value:o,enumerable:!0}):t,o)),b=o=>S(m({},"__esModule",{value:!0}),o);var E={};G(E,{default:()=>D});module.exports=b(E);var f=require("@chakra-ui/react");var g=K(require("react"),1),n=require("@chakra-ui/react");var a=require("react/jsx-runtime"),q=(H,z)=>{var l=H,{label:o,error:r,placeholder:t,helperText:e,isInvalid:p,as:v=n.Input,InputLeftAddon:x}=l,F=I(l,["label","error","placeholder","helperText","isInvalid","as","InputLeftAddon"]);return(0,a.jsxs)(n.FormControl,{isInvalid:p,children:[(0,a.jsx)(n.Text,{children:o}),(0,a.jsxs)(n.InputGroup,{mt:"2",children:[x,(0,a.jsx)(v,h(C({placeholder:t},F),{ref:z}))]}),e&&(0,a.jsx)(n.Text,{fontSize:"12",children:e}),r&&(0,a.jsx)(n.Text,{fontSize:"12",color:"red.300",children:r})]})},y=g.default.forwardRef(q);var i=require("react/jsx-runtime"),A=({onChangeSearch:o,enterPressed:r,getSuggestions:t})=>(0,i.jsxs)(f.Flex,{mt:2,w:"full",children:[(0,i.jsx)(y,{id:"ud-search",placeholder:"Search for your new domain",onChange:o,onKeyPress:r,size:"md",autoComplete:"off"}),(0,i.jsx)(f.Button,{size:"md",variant:"primary",cursor:"pointer",onClick:t,ml:3,mt:2,children:"Search"})]}),D=A;
