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