"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("../../style/operationUnit.js"),z=r=>{const{componentCls:e,antCls:p,controlInteractiveSize:a,motionDurationSlow:d,lineWidth:n,paddingXS:s,lineType:b,tableBorderColor:f,tableExpandIconBg:g,tableExpandColumnWidth:x,borderRadius:u,fontSize:$,fontSizeSM:h,lineHeight:S,tablePaddingVertical:l,tablePaddingHorizontal:c,tableExpandedRowBg:w,paddingXXS:m}=r,i=a/2-n,t=i*2+n*3,v=`${n}px ${b} ${f}`,o=m-n;return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:x},[`${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.operationUnit(r),position:"relative",float:"left",boxSizing:"border-box",width:t,height:t,padding:0,color:"inherit",lineHeight:`${t}px`,background:g,border:v,borderRadius:u,transform:`scale(${a/t})`,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:o,insetInlineStart:o,height:n},"&::after":{top:o,bottom:o,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:($*S-n*3)/2-Math.ceil((h*1.4-n*3)/2),marginInlineEnd:s},[`tr${e}-expanded-row`]:{"&, &:hover":{"> td":{background:w}},[`${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`}}}};exports.default=z;
