PageSourceSearch

https://rerdavies.github.io/assets/Container-BgmzfVBG.js

js rerdavies.github.io collected 2026-10-03 09:50:25 UTC 2,312 bytes, 1 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.