import{d3 as h,d4 as W,cI as u,d5 as k,r as v,j as R,cL as $,cM as G,cH as S,f as M,d8 as T}from"./index-c5c88b67.js";const P=h(),j=W("div",{name:"MuiContainer",slot:"Root",overridesResolver:(a,s)=>{const{ownerState:o}=a;return[s.root,s[`maxWidth${u(String(o.maxWidth))}`],o.fixed&&s.fixed,o.disableGutters&&s.disableGutters]}}),y=a=>k({props:a,name:"MuiContainer",defaultTheme:P}),L=(a,s)=>{const o=n=>S(s,n),{classes:c,fixed:p,disableGutters:l,maxWidth:t}=a,e={root:["root",t&&`maxWidth${u(String(t))}`,p&&"fixed",l&&"disableGutters"]};return G(e,o,c)};function N(a={}){const{createStyledComponent:s=j,useThemeProps:o=y,componentName:c="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 v.forwardRef(function(e,n){const r=o(e),{className:d,component:i="div",disableGutters:m=!1,fixed:f=!1,maxWidth:b="lg",classes:w,...C}=r,x={...r,component:i,disableGutters:m,fixed:f,maxWidth:b},g=L(x,c);return R.jsx(p,{as:i,ownerState:x,className:$(g.root,d),ref:n,...C})})}const U=N({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(a,s)=>{const{ownerState:o}=a;return[s.root,s[`maxWidth${u(String(o.maxWidth))}`],o.fixed&&s.fixed,o.disableGutters&&s.disableGutters]}}),useThemeProps:a=>T({props:a,name:"MuiContainer"})}),E=U;export{E as C};
