var C=Object.create;var f=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var z=(o,t)=>{for(var n in t)f(o,n,{get:t[n],enumerable:!0})},m=(o,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of s(t))!T.call(o,u)&&u!==n&&f(o,u,{get:()=>t[u],enumerable:!(e=c(t,u))||e.enumerable});return o};var F=(o,t,n)=>(n=o!=null?C(x(o)):{},m(t||!o||!o.__esModule?f(n,"default",{value:o,enumerable:!0}):n,o)),G=o=>m(f({},"__esModule",{value:!0}),o);var h={};z(h,{default:()=>S});module.exports=G(h);var I=F(require("react"),1),p=require("@chakra-ui/react"),r=require("react/jsx-runtime"),R=({label:o,error:t,placeholder:n,helperText:e,isInvalid:u,as:a=p.Input,InputLeftAddon:l,...d},i)=>(0,r.jsxs)(p.FormControl,{isInvalid:u,children:[(0,r.jsx)(p.Text,{children:o}),(0,r.jsxs)(p.InputGroup,{mt:"2",children:[l,(0,r.jsx)(a,{placeholder:n,...d,ref:i})]}),e&&(0,r.jsx)(p.Text,{fontSize:"12",children:e}),t&&(0,r.jsx)(p.Text,{fontSize:"12",color:"red.300",children:t})]}),S=I.default.forwardRef(R);
