import{Y as c,eh as W,aP as k,ay as m,ei as v,r as G,W as R,j as $,ek as y,a8 as P,$ as T}from"./index-ca24af84.js";const j=["className","component","disableGutters","fixed","maxWidth","classes"],L=W(),M=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]}}),N=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 P(s,i,p)};function _(e={}){const{createStyledComponent:a=M,useThemeProps:i=N,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,h=R(n,j),x=c({},n,{component:r,disableGutters:b,fixed:f,maxWidth:g}),C=S(x,p);return $(u,c({as:r,ownerState:x,className:y(C.root,d),ref:o},h))})}export{_ as c};
