import{r as i,cF as b,cG as h,f as x,cJ as f,j as l,cL as C,cM as v}from"./index-7414fd54.js";const M=i.createContext({}),P=M;function y(s){return b("MuiList",s)}h("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"]},y,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,...g}=o,L=i.useMemo(()=>({dense:n}),[n]),c={...o,component:d,dense:n,disablePadding:p},m=R(c);return l.jsx(P.Provider,{value:L,children:l.jsxs(j,{as:d,className:C(m.root,r),ref:t,ownerState:c,...g,children:[u,a]})})}),U=w;export{U as L,P as a};
