import{W as v,V as z,c as b,_ as F,b as c,s as T,d as C,e as x,f as H}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as q}from"./index-NdkWRN8K.js";import{u as R,f as j}from"./useFormControl-BMISTZuX.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";function y(e){return z("MuiFormHelperText",e)}const f=v("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var u;const M=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=e=>{const{classes:r,contained:s,size:t,disabled:a,error:l,filled:i,focused:n,required:d}=e,o={root:["root",a&&"disabled",l&&"error",t&&`size${x(t)}`,s&&"contained",n&&"focused",i&&"filled",d&&"required"]};return H(o,y,r)},N=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.size&&r[`size${x(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(({theme:e,ownerState:r})=>c({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${f.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${f.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),S=q.forwardRef(function(r,s){const t=b({props:r,name:"MuiFormHelperText"}),{children:a,className:l,component:i="p"}=t,n=F(t,M),d=R(),o=j({props:t,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),m=c({},t,{component:i,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),g=_(m);return p.jsx(N,c({as:i,ownerState:m,className:C(g.root,l),ref:s},n,{children:a===" "?u||(u=p.jsx("span",{className:"notranslate",children:"​"})):a}))});export{S as F,f};
