"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../theme/internal.js");const u=require("../../theme/util/genComponentStyleHook.js"),S=require("../../theme/util/statistic.js"),h=o=>{const{componentCls:t,commentBg:m,commentPaddingBase:a,commentNestIndent:c,commentFontSizeBase:e,commentFontSizeSm:i,commentAuthorNameColor:n,commentAuthorTimeColor:l,commentActionColor:r,commentActionHoverColor:s,commentActionsMarginBottom:g,commentActionsMarginTop:p,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:e,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:o.marginXXS,fontSize:e,"& > a,& > span":{paddingRight:o.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:n,fontSize:e,transition:`color ${o.motionDurationSlow}`,"> *":{color:n,"&:hover":{color:n}}},"&-time":{color:l,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:d,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:g,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:s}}}},[`${t}-nested`]:{marginLeft:c},"&-rtl":{direction:"rtl"}}}},f=u.default("Comment",o=>{const t=S.merge(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[h(t)]});exports.default=f;
