"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../../ap-table/style/index.js"),l=require("../../style/index.js"),r=require("../../utils/cssinjs/index.js"),a={agGridSearchFormWrapperMarginBlockEnd:10,agGridCellPaddingBlockMedium:9,agGridCellPaddingBlockMini:6,agGridLineClamp:2,agGridEllipsisTooltipMaxWidth:300,agGridEllipsisTooltipPadding:"6px 8px"},t=e=>{const{componentCls:i}=e;return{[i]:{...l.resetScrollbar(e),"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",[`${i}-grid-wrapper`]:{minHeight:0,flex:1,position:"relative"}},"&-auto-height":{".ag-center-cols-viewport":{minHeight:"unset !important"}},"&-wrapper":{padding:e.space,paddingBlockEnd:e.spaceLG,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBottom:0}},[`${i}__search-wrapper`]:{padding:e.space,paddingBlockEnd:0,backgroundColor:"#fff",borderRadius:e.borderRadius,marginBlockEnd:e.agGridSearchFormWrapperMarginBlockEnd},[`${i}__table-wrapper`]:{flex:1,minHeight:0,maxHeight:"100%",width:"100%",display:"flex",flexDirection:"column"},[`${i}__table-wrapper-card`]:{padding:e.space,paddingBlockEnd:e.spaceLG,borderRadius:e.borderRadius,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBlockEnd:0}},[`${i}-pagination`]:{marginBlock:e.space,display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:e.space,".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:e.lineHeight,display:"flex",alignItems:"center"}},[`${i}__table-loading-wrapper`]:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"hsla(0,0%,100%,.5)"},[`${i}-table-header`]:{"&__title":{...l.multiRows(e),fontWeight:700,"&--single":{flex:"unset"}}},...d.genSettingTriggerBtnStyle(e),[`${i}__cell--left`]:{textAlign:"left"},[`${i}__cell--center`]:{textAlign:"center"},[`${i}__cell--right`]:{textAlign:"right"},[`${i}__cell--multiline`]:{".ag-cell-value":{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e.agGridLineClamp,wordBreak:"break-all"}},"&-size-mini":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMini,width:"100%",display:"flex",alignItems:"center","& > div":{width:"100%"}}},"&-size-medium":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMedium,display:"flex",alignItems:"center","& > div":{width:"100%"}}},[`${i}__tooltip`]:{fontSize:e.fontSize,maxWidth:e.agGridEllipsisTooltipMaxWidth,wordBreak:"break-all",backgroundColor:"#fff",padding:e.agGridEllipsisTooltipPadding,borderRadius:e.borderRadius,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)"},".ag-unselectable":{userSelect:"text",WebkitUserSelect:"text"},".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]":{cursor:"not-allowed"},[`${i}-empty`]:{pointerEvents:"auto"}}}},n=r.genComponentStyleHook("AgGrid",e=>[t(e)],a,{skipUnit:["agGridLineClamp"]});exports.default=n;exports.defaultToken=a;exports.genAgGridStyle=t;
