import{operationUnit as I}from"../../style/operationUnit.mjs";const y=r=>{const{componentCls:e,antCls:p,controlInteractiveSize:a,motionDurationSlow:d,lineWidth:n,paddingXS:s,lineType:f,tableBorderColor:b,tableExpandIconBg:x,tableExpandColumnWidth:g,borderRadius:$,fontSize:h,fontSizeSM:u,lineHeight:w,tablePaddingVertical:l,tablePaddingHorizontal:c,tableExpandedRowBg:S,paddingXXS:m}=r,i=a/2-n,o=i*2+n*3,v=`${n}px ${f} ${b}`,t=m-n;return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:g},[`${e}-row-expand-icon-cell`]:{textAlign:"center",[`${e}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${e}-row-indent`]:{height:1,float:"left"},[`${e}-row-expand-icon`]:{...I(r),position:"relative",float:"left",boxSizing:"border-box",width:o,height:o,padding:0,color:"inherit",lineHeight:`${o}px`,background:x,border:v,borderRadius:$,transform:`scale(${a/o})`,transition:`all ${d}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${d} ease-out`,content:'""'},"&::before":{top:i,insetInlineEnd:t,insetInlineStart:t,height:n},"&::after":{top:t,bottom:t,insetInlineStart:i,width:n,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${e}-row-indent + ${e}-row-expand-icon`]:{marginTop:(h*w-n*3)/2-Math.ceil((u*1.4-n*3)/2),marginInlineEnd:s},[`tr${e}-expanded-row`]:{"&, &:hover":{"> td":{background:S}},[`${p}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${e}-expanded-row-fixed`]:{position:"relative",margin:`-${l}px -${c}px`,padding:`${l}px ${c}px`}}}};export{y as default};
