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