"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../style/index.js"),d=require("../../utils/cssinjs/index.js"),l=t=>({apTableHeaderBg:t.tableHeaderBg,apTableIndexSize:14,apTableSettingRightWidth:240,apTableSettingLeftWidth:240}),i=t=>({[`.${t.namespace}-ap-table-setting-trigger-button`]:{color:t.textColor2,"&:hover":{color:"unset"}}}),r=t=>{const{componentCls:e,namespace:o}=t,a=`--${o}-ap-table-scroll-bar-width`;return{[e]:{...n.resetScrollbar(t),"&-wrapper":{padding:t.space,backgroundColor:"#fff","&:has(.ant-pagination)":{paddingBlockEnd:0}},"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",".ant-table-wrapper":{flex:1},".ant-spin-nested-loading,.ant-spin-container":{height:"100%"},".ant-spin-container":{display:"flex",flexDirection:"column"},".ant-table":{flex:1},".ant-table-container,.ant-table-content":{height:"100%"},".ant-table-content > table":{height:"100%"}},[`${e}__search-wrapper`]:{padding:t.space,paddingBlockEnd:0,backgroundColor:"#fff",marginBlockEnd:"10px",borderRadius:t.borderRadius},[`${e}__table-wrapper`]:{flex:1,maxHeight:"100%",display:"flex",flexDirection:"column"},[`${e}__table-wrapper-card`]:{padding:t.space,borderRadius:t.borderRadius,backgroundColor:"#fff",overflow:"hidden","&:has(.ant-pagination)":{paddingBlockEnd:0}},[`${e}-table`]:{"ul.ant-table-pagination.ant-pagination":{marginBlock:t.space,alignItems:"center",".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:t.lineHeight,display:"flex",alignItems:"center"}},"tr > th.ant-table-cell":{"&::before":{backgroundColor:"#D8DDE5 !important"},backgroundColor:t.apTableHeaderBg}},".ant-table.ant-table-middle .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-middle .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-small .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table.ant-table-small .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table-placeholder .ant-table-expanded-row-fixed":{"&::after":{borderInlineEndWidth:"0px !important"}},".ant-table-column-sorters":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"}},".ant-table-filter-column":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"},".ant-table-filter-trigger":{marginInlineStart:"2px",paddingInlineStart:"2px"}},".ant-table-cell .ant-typography":{marginBlockEnd:0},"&-pagination-count-text":{color:t.textColor1},"&-pagination--total-right":{paddingLeft:"12px"},"&-pagination-total-wrapper":{color:t.textColor2},[`${e}-header`]:{paddingBlockEnd:t.space,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap","&__title":{flex:1,flexShrink:1,minWidth:0}},[`${e}-table-header__title`]:{...n.multiRows(t),textAlign:"right"},...i(t),"&--sticky-relative":{".ant-table-container":{"& > div:last-child":{marginBottom:`calc(var(${a}) * -1)`,clipPath:`inset(0 0 var(${a}) 0)`}}},"&--sticky-absolute":{".ant-table-container":{"& > div:last-child":{paddingBottom:"15px",marginBottom:"-15px",clipPath:"inset(0 0 15px 0)"}}}}}},p=d.genComponentStyleHook("ApTable",t=>[r(t)],l);exports.default=p;exports.defaultValue=l;exports.genApTableStyle=r;exports.genSettingTriggerBtnStyle=i;
