var F=Object.defineProperty,G=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var m=(o,t,n)=>t in o?F(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,l=(o,t)=>{for(var n in t||(t={}))I.call(t,n)&&m(o,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&m(o,n,t[n]);return o},d=(o,t)=>G(o,R(t));var i=(o,t)=>{var n={};for(var p in o)I.call(o,p)&&t.indexOf(p)<0&&(n[p]=o[p]);if(o!=null&&r)for(var p of r(o))t.indexOf(p)<0&&a.call(o,p)&&(n[p]=o[p]);return n};import S from"react";import{FormControl as h,Input as k,InputGroup as v,Text as e}from"@chakra-ui/react";import{jsx as u,jsxs as C}from"react/jsx-runtime";var w=(b,z)=>{var f=b,{label:o,error:t,placeholder:n,helperText:p,isInvalid:c,as:s=k,InputLeftAddon:x}=f,T=i(f,["label","error","placeholder","helperText","isInvalid","as","InputLeftAddon"]);return C(h,{isInvalid:c,children:[u(e,{children:o}),C(v,{mt:"2",children:[x,u(s,d(l({placeholder:n},T),{ref:z}))]}),p&&u(e,{fontSize:"12",children:p}),t&&u(e,{fontSize:"12",color:"red.300",children:t})]})},B=S.forwardRef(w);export{B as default};
