import{TinyColor as e}from"../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.mjs";import{clearFix as t,resetComponent as n}from"../../style/index.mjs";import r from"../../theme/util/genComponentStyleHook.mjs";import{merge as i}from"../../theme/util/statistic.mjs";import a from"./bordered.mjs";import o from"./ellipsis.mjs";import s from"./empty.mjs";import c from"./expand.mjs";import l from"./filter.mjs";import u from"./fixed.mjs";import d from"./pagination.mjs";import f from"./radius.mjs";import p from"./resize.mjs";import m from"./rtl.mjs";import h from"./selection.mjs";import g from"./size.mjs";import _ from"./sorter.mjs";import v from"./sticky.mjs";import y from"./summary.mjs";var b=e=>{let{componentCls:r,fontWeightStrong:i,tablePaddingVertical:a,tablePaddingHorizontal:o,lineWidth:s,lineType:c,tableBorderColor:l,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableRowHoverBg:_,tableSelectedRowBg:v,tableSelectedRowHoverBg:y,tableFooterTextColor:b,tableFooterBg:x,paddingContentVerticalLG:S}=e,C=`${s}px ${c} ${l}`;return{[`${r}-wrapper`]:{clear:`both`,maxWidth:`100%`,...t(),[r]:{...n(e),fontSize:u,background:d,borderRadius:`${f}px ${f}px 0 0`},table:{width:`100%`,textAlign:`start`,borderRadius:`${f}px ${f}px 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
          ${r}-thead > tr > th,
          ${r}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:`relative`,padding:`${S}px ${o}px`,overflowWrap:`break-word`},[`${r}-title`]:{padding:`${a}px ${o}px`},[`${r}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:`relative`,color:p,fontWeight:i,textAlign:`start`,background:h,borderBottom:C,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${r}-selection-column):not(${r}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:g,transform:`translateY(-50%)`,transition:`background-color ${m}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${r}:not(${r}-bordered)`]:{[`${r}-tbody`]:{"> tr":{"> td":{borderTop:C,borderBottom:`transparent`},"&:last-child > td":{borderBottom:C},[`&:first-child > td,
              &${r}-measure-row + tr > td`]:{borderTop:`none`,borderTopColor:`transparent`}}}},[`${r}${r}-bordered`]:{[`${r}-tbody`]:{"> tr":{"> td":{borderBottom:C}}}},[`${r}-tbody`]:{"> tr":{"> td":{transition:`background ${m}, border-color ${m}`,[`
              > ${r}-wrapper:only-child,
              > ${r}-expanded-row-fixed > ${r}-wrapper:only-child
            `]:{[r]:{marginBlock:`-${a}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${r}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`
            &${r}-row:hover > td,
            > td${r}-cell-row-hover
          `]:{background:_},[`&${r}-row-selected`]:{"> td":{background:v},"&:hover > td":{background:y}}}},[`${r}-footer`]:{padding:`${a}px ${o}px`,color:b,background:x}}}},x=r(`Table`,t=>{let{controlItemBgActive:n,controlItemBgActiveHover:r,colorTextPlaceholder:x,colorTextHeading:S,colorSplit:C,colorBorderSecondary:w,fontSize:T,padding:E,paddingXS:D,paddingSM:O,controlHeight:k,colorFillAlter:A,colorIcon:j,colorIconHover:M,opacityLoading:N,colorBgContainer:P,borderRadiusLG:F,colorFillContent:I,colorFillSecondary:L,controlInteractiveSize:R}=t,z=new e(j),B=new e(M),V=n,H=new e(L).onBackground(P).toHexString(),U=new e(I).onBackground(P).toHexString(),W=new e(A).onBackground(P).toHexString(),G=i(t,{tableFontSize:T,tableBg:P,tableRadius:F,tablePaddingVertical:E,tablePaddingHorizontal:E,tablePaddingVerticalMiddle:O,tablePaddingHorizontalMiddle:D,tablePaddingVerticalSmall:D,tablePaddingHorizontalSmall:D,tableBorderColor:w,tableHeaderTextColor:S,tableHeaderBg:W,tableFooterTextColor:S,tableFooterBg:W,tableHeaderCellSplitColor:w,tableHeaderSortBg:H,tableHeaderSortHoverBg:U,tableHeaderIconColor:z.clone().setAlpha(z.getAlpha()*N).toRgbString(),tableHeaderIconColorHover:B.clone().setAlpha(B.getAlpha()*N).toRgbString(),tableBodySortBg:W,tableFixedHeaderSortActiveBg:H,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:P,tableRowHoverBg:W,tableSelectedRowBg:V,tableSelectedRowHoverBg:r,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:T,tableFontSizeSmall:T,tableSelectionColumnWidth:k,tableExpandIconBg:P,tableExpandColumnWidth:R+2*t.padding,tableExpandedRowBg:A,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:x,tableScrollThumbBgHover:S,tableScrollBg:C});return[b(G),d(G),y(G),_(G),l(G),a(G),f(G),c(G),y(G),s(G),h(G),u(G),v(G),o(G),g(G),p(G),m(G)]});export{x as default};