import{Z as c,eV as h,bA as k,aB as m,eW as v,r as G,X as R,j as $,eX as y,a9 as T,a0 as j}from"./index-4e7882bc.js";const L=["className","component","disableGutters","fixed","maxWidth","classes"],M=h(),N=k("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:i}=e;return[a.root,a[`maxWidth${m(String(i.maxWidth))}`],i.fixed&&a.fixed,i.disableGutters&&a.disableGutters]}}),P=e=>v({props:e,name:"MuiContainer",defaultTheme:M}),S=(e,a)=>{const i=o=>j(a,o),{classes:p,fixed:u,disableGutters:l,maxWidth:t}=e,s={root:["root",t&&`maxWidth${m(String(t))}`,u&&"fixed",l&&"disableGutters"]};return T(s,i,p)};function _(e={}){const{createStyledComponent:a=N,useThemeProps:i=P,componentName:p="MuiContainer"}=e,u=a(({theme:t,ownerState:s})=>c({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}),({theme:t,ownerState:s})=>s.fixed&&Object.keys(t.breakpoints.values).reduce((o,n)=>{const d=n,r=t.breakpoints.values[d];return r!==0&&(o[t.breakpoints.up(d)]={maxWidth:`${r}${t.breakpoints.unit}`}),o},{}),({theme:t,ownerState:s})=>c({},s.maxWidth==="xs"&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[t.breakpoints.up(s.maxWidth)]:{maxWidth:`${t.breakpoints.values[s.maxWidth]}${t.breakpoints.unit}`}}));return G.forwardRef(function(s,o){const n=i(s),{className:d,component:r="div",disableGutters:b=!1,fixed:f=!1,maxWidth:g="lg"}=n,C=R(n,L),x=c({},n,{component:r,disableGutters:b,fixed:f,maxWidth:g}),W=S(x,p);return $(u,c({as:r,ownerState:x,className:y(W.root,d),ref:o},C))})}export{_ as c};
