import{f as C,dz as T,r as h,t as $,T as c,j as y,v as b,w}from"./index-e79f7aad.js";import{m as j}from"./Select-8a61e5a6.js";import{l as m,g as R}from"./listItemTextClasses-d3a968ad.js";const N=e=>{const{classes:s,inset:t,primary:a,secondary:p,dense:l}=e;return w({root:["root",t&&"inset",l&&"dense",a&&p&&"multiline"],primary:["primary"],secondary:["secondary"]},R,s)},P=C("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[{[`& .${m.primary}`]:s.primary},{[`& .${m.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(& .${m.primary})`]:{display:"block"},[`.${T.root}:where(& .${m.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),S=h.forwardRef(function(s,t){const a=$({props:s,name:"MuiListItemText"}),{children:p,className:l,disableTypography:n=!1,inset:g=!1,primary:x,primaryTypographyProps:i,secondary:L,secondaryTypographyProps:v,...I}=a,{dense:u}=h.useContext(j);let r=x??p,o=L;const f={...a,disableTypography:n,inset:g,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",...v,children:o})),y.jsxs(P,{className:b(d.root,l),ownerState:f,ref:t,...I,children:[r,o]})}),M=S;export{M as L};
