import{j as a,r as f}from"./app-DiaC3P1v.js";function E({message:t,className:r="",...e}){return t?a.jsx("div",{...e,className:`invalid-feedback d-block text-danger ${r}`,children:t}):null}const I=f.forwardRef(({type:t="text",name:r,value:e,className:i="",autoComplete:l,required:p,isFocused:s=!1,handleChange:o,onChange:c,...x},d)=>{const n=d||f.useRef();f.useEffect(()=>{s&&n.current&&n.current.focus()},[s]);const m=u=>{o&&o(u),c&&c(u)};return a.jsx("input",{type:t,name:r,value:e,className:`form-control ${i}`,ref:n,autoComplete:l,required:p,onChange:m,...x})});export{E as I,I as T};
