import{r as h}from"./redux-1.0.74-D8bIc6ki.js";import{u as N,f as k,h as B,j as E}from"./CircularProgress-1.0.74-QfwfRJ7i.js";import{L as M}from"./Menu-1.0.74-CdjCBJ4R.js";import{a as U,l as m}from"./MenuItem-1.0.74-D9LDbFUb.js";import{h as g}from"./ButtonBase-1.0.74-W6tAH7AI.js";import{j as u}from"./tanstack-1.0.74-aU0azVkW.js";import{T as y,t as L}from"./Typography-1.0.74-B4mhsevh.js";const D=r=>{const{classes:s,inset:o,primary:a,secondary:l,dense:c}=r;return E({root:["root",o&&"inset",c&&"dense",a&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},U,s)},F=k("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:o}=r;return[{[`& .${m.primary}`]:s.primary},{[`& .${m.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,[`.${L.root}:where(& .${m.primary})`]:{display:"block"},[`.${L.root}:where(& .${m.secondary})`]:{display:"block"},variants:[{props:({ownerState:r})=>r.primary&&r.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:r})=>r.inset,style:{paddingLeft:56}}]}),K=h.forwardRef(function(s,o){const a=N({props:s,name:"MuiListItemText"}),{children:l,className:c,disableTypography:n=!1,inset:P=!1,primary:x,primaryTypographyProps:v,secondary:C,secondaryTypographyProps:I,slots:b={},slotProps:j={},...S}=a,{dense:f}=h.useContext(M);let e=x??l,t=C;const i={...a,disableTypography:n,inset:P,primary:!!e,secondary:!!t,dense:f},d=D(i),T={slots:b,slotProps:{primary:v,secondary:I,...j}},[$,p]=g("primary",{className:d.primary,elementType:y,externalForwardedProps:T,ownerState:i}),[w,R]=g("secondary",{className:d.secondary,elementType:y,externalForwardedProps:T,ownerState:i});return e!=null&&e.type!==y&&!n&&(e=u.jsx($,{variant:f?"body2":"body1",component:p!=null&&p.variant?void 0:"span",...p,children:e})),t!=null&&t.type!==y&&!n&&(t=u.jsx(w,{variant:"body2",color:"textSecondary",...R,children:t})),u.jsxs(F,{className:B(d.root,c),ownerState:i,ref:o,...S,children:[e,t]})});export{K as L};
