import{i as e}from"./chunk-aKtaBQYM.js";import{H as t,K as n,U as r,Vt as i,_t as a,bt as o,dt as s,ft as c,ht as l,lt as u,tt as d,wt as f}from"./mui-B6lh3XSP.js";import{gn as p}from"./index-KVuxnkWj.js";var m=u();function h({props:e,name:t,defaultTheme:n,themeId:r}){let i=l(n);return r&&(i=i[r]||i),p({theme:i,name:t,props:e})}var g=e(i(),1),_=f(),v=a(),y=m(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${o(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),b=e=>h({props:e,name:`MuiContainer`,defaultTheme:v}),x=(e,t)=>{let n=e=>s(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:c}=e;return d({root:[`root`,c&&`maxWidth${o(String(c))}`,i&&`fixed`,a&&`disableGutters`]},n,r)};function S(e={}){let{createStyledComponent:t=y,useThemeProps:n=b,componentName:r=`MuiContainer`}=e,i=t(({theme:e,ownerState:t})=>({width:`100%`,marginLeft:`auto`,boxSizing:`border-box`,marginRight:`auto`,...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=n,i=e.breakpoints.values[r];return i!==0&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({...t.maxWidth===`xs`&&{[e.breakpoints.up(`xs`)]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&t.maxWidth!==`xs`&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return g.forwardRef(function(e,t){let a=n(e),{className:o,component:s=`div`,disableGutters:l=!1,fixed:u=!1,maxWidth:d=`lg`,classes:f,...p}=a,m={...a,component:s,disableGutters:l,fixed:u,maxWidth:d};return(0,_.jsx)(i,{as:s,ownerState:m,className:c(x(m,r).root,o),ref:t,...p})})}var C=S({createStyledComponent:n(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,n)=>{let{ownerState:r}=e;return[n.root,n[`maxWidth${t(String(r.maxWidth))}`],r.fixed&&n.fixed,r.disableGutters&&n.disableGutters]}}),useThemeProps:e=>r({props:e,name:`MuiContainer`})});export{h as n,m as r,C as t};