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