import"../../theme/internal.mjs";import S from"../../theme/util/genComponentStyleHook.mjs";import{merge as h}from"../../theme/util/statistic.mjs";const u=o=>{const{componentCls:t,commentBg:m,commentPaddingBase:a,commentNestIndent:c,commentFontSizeBase:n,commentFontSizeSm:i,commentAuthorNameColor:e,commentAuthorTimeColor:l,commentActionColor:r,commentActionHoverColor:p,commentActionsMarginBottom:s,commentActionsMarginTop:g,commentContentDetailPMarginBottom:d}=o;return{[t]:{position:"relative",backgroundColor:m,[`${t}-inner`]:{display:"flex",padding:a},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:o.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:n,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:o.marginXXS,fontSize:n,"& > a,& > span":{paddingRight:o.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:e,fontSize:n,transition:`color ${o.motionDurationSlow}`,"> *":{color:e,"&:hover":{color:e}}},"&-time":{color:l,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:d,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:g,marginBottom:s,paddingLeft:0,"> li":{display:"inline-block",color:r,"> span":{marginRight:"10px",color:r,fontSize:i,cursor:"pointer",transition:`color ${o.motionDurationSlow}`,userSelect:"none","&:hover":{color:p}}}},[`${t}-nested`]:{marginLeft:c},"&-rtl":{direction:"rtl"}}}},B=S("Comment",o=>{const t=h(o,{commentBg:"inherit",commentPaddingBase:`${o.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:o.fontSize,commentFontSizeSm:o.fontSizeSM,commentAuthorNameColor:o.colorTextTertiary,commentAuthorTimeColor:o.colorTextPlaceholder,commentActionColor:o.colorTextTertiary,commentActionHoverColor:o.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:o.marginSM,commentContentDetailPMarginBottom:"inherit"});return[u(t)]});export{B as default};
