import{du as h,dv as W,o as c,dw as v,r as k,j as R,v as $,w as G,m as S,f as T,ds as M}from"./index-952e178b.js";const P=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:P}),y=(a,s)=>{const o=n=>S(s,n),{classes:u,fixed:p,disableGutters:l,maxWidth:t}=a,e={root:["root",t&&`maxWidth${c(String(t))}`,p&&"fixed",l&&"disableGutters"]};return G(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.root,d),ref:n,...C})})}const N=L({createStyledComponent:T("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=>M({props:a,name:"MuiContainer"})}),E=N;export{E as C};
