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