import{f as v,d9 as T,r as h,cK as C,T as c,j as y,cL as $,cM as j}from"./index-c5c88b67.js";import{b as w}from"./Menu-e7d2b2ee.js";import{l as p,g as R}from"./listItemTextClasses-88792089.js";const N=e=>{const{classes:s,inset:t,primary:a,secondary:l,dense:m}=e;return j({root:["root",t&&"inset",m&&"dense",a&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},R,s)},M=v("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[{[`& .${p.primary}`]:s.primary},{[`& .${p.secondary}`]:s.secondary},s.root,t.inset&&s.inset,t.primary&&t.secondary&&s.multiline,t.dense&&s.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${T.root}:where(& .${p.primary})`]:{display:"block"},[`.${T.root}:where(& .${p.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),P=h.forwardRef(function(s,t){const a=C({props:s,name:"MuiListItemText"}),{children:l,className:m,disableTypography:n=!1,inset:L=!1,primary:x,primaryTypographyProps:i,secondary:g,secondaryTypographyProps:I,...b}=a,{dense:u}=h.useContext(w);let r=x??l,o=g;const f={...a,disableTypography:n,inset:L,primary:!!r,secondary:!!o,dense:u},d=N(f);return r!=null&&r.type!==c&&!n&&(r=y.jsx(c,{variant:u?"body2":"body1",className:d.primary,component:i!=null&&i.variant?void 0:"span",...i,children:r})),o!=null&&o.type!==c&&!n&&(o=y.jsx(c,{variant:"body2",className:d.secondary,color:"textSecondary",...I,children:o})),y.jsxs(M,{className:$(d.root,m),ownerState:f,ref:t,...b,children:[r,o]})}),E=P;export{E as L};
