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