const e=require("../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.js"),t=require("../../style/index.js"),n=require("../../theme/util/genComponentStyleHook.js"),r=require("../../theme/util/statistic.js"),i=require("./bordered.js"),a=require("./ellipsis.js"),o=require("./empty.js"),s=require("./expand.js"),c=require("./filter.js"),l=require("./fixed.js"),u=require("./pagination.js"),d=require("./radius.js"),f=require("./resize.js"),p=require("./rtl.js"),m=require("./selection.js"),h=require("./size.js"),g=require("./sorter.js"),_=require("./sticky.js"),v=require("./summary.js");var y=e=>{let{componentCls:n,fontWeightStrong:r,tablePaddingVertical:i,tablePaddingHorizontal:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableRowHoverBg:g,tableSelectedRowBg:_,tableSelectedRowHoverBg:v,tableFooterTextColor:y,tableFooterBg:b,paddingContentVerticalLG:x}=e,S=`${o}px ${s} ${c}`;return{[`${n}-wrapper`]:{clear:`both`,maxWidth:`100%`,...t.clearFix(),[n]:{...t.resetComponent(e),fontSize:l,background:u,borderRadius:`${d}px ${d}px 0 0`},table:{width:`100%`,textAlign:`start`,borderRadius:`${d}px ${d}px 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
          ${n}-thead > tr > th,
          ${n}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:`relative`,padding:`${x}px ${a}px`,overflowWrap:`break-word`},[`${n}-title`]:{padding:`${i}px ${a}px`},[`${n}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:`relative`,color:f,fontWeight:r,textAlign:`start`,background:m,borderBottom:S,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${n}-selection-column):not(${n}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${n}:not(${n}-bordered)`]:{[`${n}-tbody`]:{"> tr":{"> td":{borderTop:S,borderBottom:`transparent`},"&:last-child > td":{borderBottom:S},[`&:first-child > td,
              &${n}-measure-row + tr > td`]:{borderTop:`none`,borderTopColor:`transparent`}}}},[`${n}${n}-bordered`]:{[`${n}-tbody`]:{"> tr":{"> td":{borderBottom:S}}}},[`${n}-tbody`]:{"> tr":{"> td":{transition:`background ${p}, border-color ${p}`,[`
              > ${n}-wrapper:only-child,
              > ${n}-expanded-row-fixed > ${n}-wrapper:only-child
            `]:{[n]:{marginBlock:`-${i}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`,[`${n}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`
            &${n}-row:hover > td,
            > td${n}-cell-row-hover
          `]:{background:g},[`&${n}-row-selected`]:{"> td":{background:_},"&:hover > td":{background:v}}}},[`${n}-footer`]:{padding:`${i}px ${a}px`,color:y,background:b}}}},b=n.default(`Table`,t=>{let{controlItemBgActive:n,controlItemBgActiveHover:b,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.TinyColor(j),B=new e.TinyColor(M),V=n,H=new e.TinyColor(L).onBackground(P).toHexString(),U=new e.TinyColor(I).onBackground(P).toHexString(),W=new e.TinyColor(A).onBackground(P).toHexString(),G=r.merge(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:b,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[y(G),u.default(G),v.default(G),g.default(G),c.default(G),i.default(G),d.default(G),s.default(G),v.default(G),o.default(G),m.default(G),l.default(G),_.default(G),a.default(G),h.default(G),f.default(G),p.default(G)]});exports.default=b;