import{c as u,_ as f,b as e,s as w,d as x,f as d,y as F}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as C}from"./index-NdkWRN8K.js";import{u as G,f as R}from"./useFormControl-BMISTZuX.js";import{j}from"./jsx-runtime-CnH95YSl.js";const y=["className","row"],_=o=>{const{classes:r,row:t,error:s}=o;return d({root:["root",t&&"row",s&&"error"]},F,r)},v=w("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.row&&r.row]}})(({ownerState:o})=>e({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),h=C.forwardRef(function(r,t){const s=u({props:r,name:"MuiFormGroup"}),{className:a,row:c=!1}=s,l=f(s,y),m=G(),p=R({props:s,muiFormControl:m,states:["error"]}),n=e({},s,{row:c,error:p.error}),i=_(n);return j.jsx(v,e({className:x(i.root,a),ownerState:n,ref:t},l))});export{h as F};
