import{a9 as c,fI as W,c9 as k,aM as m,fJ as v,r as G,a7 as R,j as $,fK as y,ak as M,ab as T}from"./index-57016b76.js";const j=["className","component","disableGutters","fixed","maxWidth","classes"],L=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:L}),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 M(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,j),x=c({},n,{component:r,disableGutters:b,fixed:f,maxWidth:g}),h=S(x,p);return $(u,c({as:r,ownerState:x,className:y(h.root,d),ref:o},C))})}export{_ as c};
