import{A as e,O as t,S as a,W as r,_t as i,g as o,gt as s,j as n,lt as d,mt as l,pt as p,s as c,yt as u}from"./render-C1-Vvny8.js";import{a as m,d as v}from"./Select-DMnB-FxS.js";function g(e){return l("MuiDivider",e)}var b=r("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function f(e){return l("MuiListItemIcon",e)}var h=r("MuiListItemIcon",["root","alignItemsFlexStart"]);function y(e){return l("MuiListItemText",e)}var x=r("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function $(e){return l("MuiMenuItem",e)}var I=r("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),M=u(i()),w=d(),C=e(c,{shouldForwardProp:e=>n(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.dense&&t.dense,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})(a(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${I.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${I.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${I.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${I.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${I.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${b.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${b.inset}`]:{marginLeft:52},[`& .${x.root}`]:{marginTop:0,marginBottom:0},[`& .${x.inset}`]:{paddingLeft:36},[`& .${h.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${h.root} svg`]:{fontSize:"1.25rem"}}}]}))),S=M.forwardRef(function(e,a){const r=t({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:n="li",dense:d=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:g="menuitem",tabIndex:b,className:f,...h}=r,y=M.useContext(m),x=M.useMemo(()=>({dense:d||y.dense||!1,disableGutters:c}),[y.dense,d,c]),I=M.useRef(null);v(()=>{i&&I.current&&I.current.focus()},[i]);const S={...r,dense:x.dense,divider:l,disableGutters:c},k=(e=>{const{disabled:t,dense:a,divider:r,disableGutters:i,selected:o,classes:s}=e,n=p({root:["root",a&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},$,s);return{...s,...n}})(r),L=o(I,a);let O;return r.disabled||(O=void 0!==b?b:-1),(0,w.jsx)(m.Provider,{value:x,children:(0,w.jsx)(C,{ref:L,role:g,tabIndex:O,component:n,focusVisibleClassName:s(k.focusVisible,u),className:s(k.root,f),...h,ownerState:S,classes:k})})});export{g as a,f as i,y as n,x as r,S as t};