import{s as h,O as L,_ as v,c as C,P}from"./defaultI18nProvider-C_r1y4tu.js";import{_ as r,j as d}from"./assertThisInitialized-ClXgY4BW.js";import{r as x}from"./index-BP8_t0zE.js";import{g as _,l as T,a as S}from"./listItemTextClasses-C7xWMLDP.js";import{L as R}from"./TextField-z9WrHgJg.js";import{T as y}from"./Typography-E7d16C50.js";const w=["className"],M=t=>{const{alignItems:s,classes:o}=t;return P({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},_,o)},U=h("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:o}=t;return[s.root,o.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(({theme:t,ownerState:s})=>r({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},s.alignItems==="flex-start"&&{marginTop:8})),z=x.forwardRef(function(s,o){const e=L({props:s,name:"MuiListItemIcon"}),{className:c}=e,l=v(e,w),a=x.useContext(R),m=r({},e,{alignItems:a.alignItems}),p=M(m);return d.jsx(U,r({className:C(p.root,c),ownerState:m,ref:o},l))}),$=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],k=t=>{const{classes:s,inset:o,primary:e,secondary:c,dense:l}=t;return P({root:["root",o&&"inset",l&&"dense",e&&c&&"multiline"],primary:["primary"],secondary:["secondary"]},S,s)},W=h("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:o}=t;return[{[`& .${T.primary}`]:s.primary},{[`& .${T.secondary}`]:s.secondary},s.root,o.inset&&s.inset,o.primary&&o.secondary&&s.multiline,o.dense&&s.dense]}})(({ownerState:t})=>r({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),A=x.forwardRef(function(s,o){const e=L({props:s,name:"MuiListItemText"}),{children:c,className:l,disableTypography:a=!1,inset:m=!1,primary:p,primaryTypographyProps:u,secondary:b,secondaryTypographyProps:N}=e,j=v(e,$),{dense:f}=x.useContext(R);let n=p??c,i=b;const g=r({},e,{disableTypography:a,inset:m,primary:!!n,secondary:!!i,dense:f}),I=k(g);return n!=null&&n.type!==y&&!a&&(n=d.jsx(y,r({variant:f?"body2":"body1",className:I.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:n}))),i!=null&&i.type!==y&&!a&&(i=d.jsx(y,r({variant:"body2",className:I.secondary,color:"text.secondary",display:"block"},N,{children:i}))),d.jsxs(W,r({className:C(I.root,l),ownerState:g,ref:o},j,{children:[n,i]}))});export{A as L,z as a};
