import{r as i,bh as h,bi as L,d as x,bk as f,j as c,bm as C,bn as v}from"./index-d2b25495.js";const P=i.createContext({}),y=P;function M(s){return h("MuiList",s)}L("MuiList",["root","padding","dense","subheader"]);const R=s=>{const{classes:e,disablePadding:t,dense:o,subheader:a}=s;return v({root:["root",!t&&"padding",o&&"dense",a&&"subheader"]},M,e)},j=x("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,e)=>{const{ownerState:t}=s;return[e.root,!t.disablePadding&&e.padding,t.dense&&e.dense,t.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:s})=>!s.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:s})=>s.subheader,style:{paddingTop:0}}]}),w=i.forwardRef(function(e,t){const o=f({props:e,name:"MuiList"}),{children:a,className:r,component:d="ul",dense:n=!1,disablePadding:p=!1,subheader:u,...b}=o,g=i.useMemo(()=>({dense:n}),[n]),l={...o,component:d,dense:n,disablePadding:p},m=R(l);return c.jsx(y.Provider,{value:g,children:c.jsxs(j,{as:d,className:C(m.root,r),ref:t,ownerState:l,...b,children:[u,a]})})}),U=w;export{U as L,y as a};
