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