import{r as d,t as h,f as m,j as e,h as u}from"./main-few-lands-burn.js";import{T as x}from"./index-ubWv-fhI.js";import{I as T}from"./index-DAhFlZRY.js";const{Text:t}=x,{TextArea:l}=T;function I({helperText:o,invalidMessage:r,label:s,onRender:i,status:n,wrapperClassName:p,...c}){const a=d.useId(),{token:f}=h.useToken();return d.useEffect(()=>{i?.()},[]),m("div",{className:p,children:[s&&m("label",{className:"d-b mb-1 font-medium",css:u({color:f.colorText},"",""),htmlFor:a,children:[s," ",c.required&&e(t,{type:"danger",children:"*"})]}),e(l,{"data-testid":"inputComponent",id:a,status:n,...c}),n==="error"&&r&&e(t,{type:"danger",children:r}),!r&&o&&e(t,{type:"secondary",children:o})]})}export{I as T};
