import{d9 as h,da as W,o as c,db as v,r as k,j as R,v as $,w as G,m as S,f as T,d7 as M}from"./index-83d9c1e2.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]}}),y=a=>v({props:a,name:"MuiContainer",defaultTheme:P}),w=(a,s)=>{const o=n=>S(s,n),{classes:p,fixed:u,disableGutters:l,maxWidth:t}=a,e={root:["root",t&&`maxWidth${c(String(t))}`,u&&"fixed",l&&"disableGutters"]};return G(e,o,p)};function L(a={}){const{createStyledComponent:s=j,useThemeProps:o=y,componentName:p="MuiContainer"}=a,u=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:b=!1,maxWidth:f="lg",classes:U,...C}=r,x={...r,component:i,disableGutters:m,fixed:b,maxWidth:f},g=w(x,p);return R.jsx(u,{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};
