import{a9 as c,fQ as W,cg as k,aU as m,fR as v,r as R,a7 as G,j as $,am as j,aj as y,ab as T}from"./index-91e9700c.js";const L=["className","component","disableGutters","fixed","maxWidth","classes"],M=W(),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=>T(a,o),{classes:p,fixed:u,disableGutters:l,maxWidth:t}=e,s={root:["root",t&&`maxWidth${m(String(t))}`,u&&"fixed",l&&"disableGutters"]};return y(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 R.forwardRef(function(s,o){const n=i(s),{className:d,component:r="div",disableGutters:b=!1,fixed:f=!1,maxWidth:g="lg"}=n,C=G(n,L),x=c({},n,{component:r,disableGutters:b,fixed:f,maxWidth:g}),h=S(x,p);return $(u,c({as:r,ownerState:x,className:j(h.root,d),ref:o},C))})}export{_ as c};
