Files
qhmes/web-dist/js/index-DTjkSGYl.js

56 lines
85 KiB
Java
Raw Normal View History

2026-06-16 18:19:57 +08:00
import{hR as ol,fP as Dt,cd as yn,a as g,k as se,h as q,fb as rl,cm as al,go as il,iK as sl,iL as cl,hr as Ne,dF as Ze,c7 as Fe,hq as ul,fK as bn,iM as qt,iN as Jt,hV as dl,hX as Ae,iO as fl,i0 as vl,iP as Qt,iQ as pl,hG as ml,aR as at,b0 as hl,cq as Nt,fc as gl,aI as Cn,T as xl,fT as je,c4 as Ke,fU as _e,dn as be,aG as yl,gJ as bl,iR as Cl,f as Sn,b5 as Zt,bL as en,fm as Sl,n as wn,l as wl,cr as qe,m as $l,fL as Rl,j as $n,fJ as Tl,iS as Pl,c8 as kl,aH as Il,b$ as El,dp as Je,c5 as Qe,gL as Ol}from"./index-X7Y8jykP.js";import{S as ze,a2 as De,c as x,s as re,o as Ue,e as ce,h as Oe,a8 as ot,f as m,ak as _l,d as Kl,w as Pe,g as Bl,r as fe,E as Fl,F as He,ag as ge,x as Ge,b as Ve,a as zl,n as et,a7 as ht,aa as Dl}from"./vue-vendor-DNhG1Cve.js";import{e as Nl}from"./eagerComputed-BTlOruLW.js";import{f as Al}from"./fromPairs-Dx9PT-t0.js";import{u as Hl,i as Ll,l as Wl,d as gt,a as Ml}from"./useMaxLevel-DE205ncc.js";import"./index-DSsDi_fL.js";import"./index-CfNJyBRj.js";import"./index-DfHu-LAS.js";import{D as Rn}from"./dropdown-jkliuVyN.js";import{C as it}from"./Group-UHkub2tu.js";import{R as Tn}from"./Group-DBzJABA_.js";import{_ as jl}from"./index-C7ckZv9Z.js";import{s as Vl}from"./scrollTo-D49dA-9c.js";import{o as Xl}from"./operationUnit-vCu2co3e.js";const Pn=Symbol("TableContextProps"),Ul=e=>{De(Pn,e)},Ie=()=>ze(Pn,{}),Gl="RC_TABLE_KEY";function kn(e){return e==null?[]:Array.isArray(e)?e:[e]}function In(e,t){if(!t&&typeof t!="number")return e;const l=kn(t);let n=e;for(let o=0;o<l.length;o+=1){if(!n)return null;const r=l[o];n=n[r]}return n}function ct(e){const t=[],l={};return e.forEach(n=>{const{key:o,dataIndex:r}=n||{};let a=o||kn(r).join("-")||Gl;for(;l[a];)a=`${a}_next`;l[a]=!0,t.push(a)}),t}function Yl(){const e={};function t(r,a){a&&Object.keys(a).forEach(i=>{const s=a[i];s&&typeof s=="object"?(r[i]=r[i]||{},t(r[i],s)):r[i]=s})}for(var l=arguments.length,n=new Array(l),o=0;o<l;o++)n[o]=arguments[o];return n.forEach(r=>{t(e,r)}),e}function wt(e){return e!=null}const En=Symbol("SlotsContextProps"),ql=e=>{De(En,e)},At=()=>ze(En,x(()=>({}))),On=Symbol("ContextProps"),Jl=e=>{De(On,e)},Ql=()=>ze(On,{onResizeColumn:()=>{}}),Xe="RC_TABLE_INTERNAL_COL_DEFINE",_n=Symbol("HoverContextProps"),Zl=e=>{De(_n,e)},eo=()=>ze(_n,{startRow:re(-1),endRow:re(-1),onHover(){}}),$t=re(!1),to=()=>{Ue(()=>{$t.value=$t.value||ol("position","sticky")})},no=()=>$t;var lo=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(l[n[o]]=e[n[o]]);return l};function oo(e,t,l,n){const o=e+t-1;return e<=n&&o>=l}function ro(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!ot(e)}const ut=ce({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:l}=t;const n=At(),{onHover:o,startRow:r,endRow:a}=eo(),i=x(()=>{var f,v,h,b;return(h=(f=e.colSpan)!==null&&f!==void 0?f:(v=e.additionalProps)===null||v===void 0?void 0:v.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colspan}),s=x(()=>{var f,v,h,b;return(h=(f=e.rowSpan)!==null&&f!==void 0?f:(v=e.additionalProps)===null||v===void 0?void 0:v.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowspan}),p=Nl(()=>{const{index:f}=e;return oo(f,s.value||1,r.value,a.value)}),u=no(),d=(f,v)=>{var h;const{record:b,index:c,additionalProps:I}=e;b&&o(c,c+v-1),(h=I==null?void 0:I.onMouseenter)===null||h===void 0||h.call(I,f)},y=f=>{var v;const{record:h,additionalProps:b}=e;h&&o(-1,-1),(v=b==null?void 0:b.onMouseleave)===null||v===void 0||v.call(b,f)},S=f=>{const v=rl(f)[0];return ot(v)?v.type===_l?v.children:Array.isArray(v.children)?S(v.children
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:l,content:'""'}}}}},[`
> ${t}-content,
> ${t}-header
`]:{"> table":{borderTop:l}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> td":{borderInlineEnd:0}}}}}},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:l,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},fr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:g(g({},Sl),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},vr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},pr=e=>{const{componentCls:t,antCls:l,controlInteractiveSize:n,motionDurationSlow:o,lineWidth:r,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:p,tableExpandColumnWidth:u,borderRadius:d,fontSize:y,fontSizeSM:S,lineHeight:C,tablePaddingVertical:f,tablePaddingHorizontal:v,tableExpandedRowBg:h,paddingXXS:b}=e,c=n/2-r,I=c*2+r*3,E=`${r}px ${i} ${s}`,W=b-r;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:g(g({},Xl(e)),{position:"relative",float:"left",boxSizing:"border-box",width:I,height:I,padding:0,color:"inherit",lineHeight:`${I}px`,background:p,border:E,borderRadius:d,transform:`scale(${n/I})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:c,insetInlineEnd:W,insetInlineStart:W,height:r},"&::after":{top:W,bottom:W,insetInlineStart:c,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(y*C-r*3)/2-Math.ceil((S*1.4-r*3)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:h}},[`${l}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${f}px -${v}px`,padding:`${f}px ${v}px`}}}},mr=e=>{const{componentCls:t,antCls:l,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:r,paddingXXS:a,paddingXS:i,colorText:s,lineWidth:p,lineType:u,tableBorderColor:d,tableHeaderIconColor:y,fontSizeSM:S,tablePaddingHorizontal:C,borderRadius:f,motionDurationSlow:v,colorTextDescription:h,colorPrimary:b,tableHeaderFilterActiveBg:c,colorTextDisabled:I,tableFilterDropdownBg:E,tableFilterDropdownHeight:W,controlItemBgHover:P,controlItemBgActive:A,boxShadowSecondary:T}=e,k=`${l}-dropdown`,_=`${t}-filter-dropdown`,O=`${l}-tree`,N=`${p}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-C/2}px`,padding:`0 ${a}px`,color:y,fontSize:S,borderRadius:f,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:h,background:c},"&.active":{color:b}}}},{[`${l}-dropdown`]:{[_]:g(g({},wn(e)),{minWidth:o,backgroundColor:E,borderRadius:f,boxShadow:T,[`${k}-menu`]:{maxHeight:W,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${i}px 0`,color:I,fontSize:S,textAlign:"center",content:'"Not Found"'}},[`${_}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:P},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:A}}},[`${_}-search`]:{padding:i,borderBottom:N,"&-input":{input:{minWidth:r},[n]:{color:I}}},[`${_}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${_}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-p}px ${i}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:N}})}},{[`${l}-dropdown ${_}, ${_}-submenu`]:{[`${l}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"au
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:r,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-l,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-l,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},gr=e=>{const{componentCls:t,antCls:l}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${l}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xr=e=>{const{componentCls:t,tableRadius:l}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${l}px ${l}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:l,borderStartEndRadius:l,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:l},"> *:last-child":{borderStartEndRadius:l}}},"&-footer":{borderRadius:`0 0 ${l}px ${l}px`}}}}},yr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},br=e=>{const{componentCls:t,antCls:l,iconCls:n,fontSizeIcon:o,paddingXS:r,tableHeaderIconColor:a,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+r*2},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${l}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[n]:{color:a,fontSize:o,verticalAlign:"baseline","&:hover":{color:i}}}}}},Cr=e=>{const{componentCls:t}=e,l=(n,o,r,a)=>({[`${t}${t}-${n}`]:{fontSize:a,[`
${t}-title,
${t}-footer,
${t}-thead > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${o}px ${r}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${r}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${r/4}px`}}});return{[`${t}-wrapper`]:g(g({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Sr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},wr=e=>{const{componentCls:t,marginXXS:l,fontSizeIcon:n,tableHeaderIconColor:o,tableHeaderIconColorHover:r}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:l,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:r}}}},$r=e=>{const{componentCls:t,opacityLoading:l,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:r,tableScrollBg:a,zIndexTableSticky:i}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${r}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:s,opacity:l,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:r,backgroundColor:n,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},xn=e=>{const{componentCls:t,lineWidth:l,tableBorderColor:n}=e,o=`${l}px ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${l}px 0 ${n}`}}}},Rr=e=>{const{componentCls:t,fontWeightStrong:l,tablePaddingVertical:n,tablePaddingHorizontal:o,lineWidth:r,lineType:a,tableBorderColor:i,tableFontSize:s,tableBg:p,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:y,tableHeaderBg:S,tableHeaderCellSplitColor:C,tableRowHoverBg:f,tableSelectedRowBg:v,tableSelectedRowHoverBg:h,tableFooterTextColor:b,tableFooterBg:c,paddingContentVerticalLG:I}=e,E=`${r}px ${a} ${i}`;return{[`${t}-wrapper`]:g(g({clear:"both",maxWidth:"100%"},Rl()),{[t]:g(g({},wn(e)),{fontSize:s,background:p,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-thead > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${I}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${n}px ${o}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:l,textAlign:"start",background:S,borderBottom:E,transition:`background ${y} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:E,borderBottom:"transparent"},"&:last-child > td":{borderBottom:E},[`&:first-child > td,
&${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:E}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${y}, border-color ${y}`,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:`-${n}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`
&${t}-row:hover > td,
> td${t}-cell-row-hover
`]:{background:f},[`&${t}-row-selected`]:{"> td":{background:v},"&:hover > td":{background:h}}}},[`${t}-footer`]:{padding:`${n}px ${o}px`,color:b,background:c}})}},Tr=wl("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:l,colorTextPlaceholder:n,colorTextHeading:o,colorSplit:r,colorBorderSecondary:a,fontSize:i,padding:s,paddingXS:p,paddingSM:u,controlHeight:d,colorFillAlter:y,colorIcon:S,colorIconHover:C,opacityLoading:f,colorBgContainer:v,borderRadiusLG:h,colorFillContent:b,colorFillSecondary:c,controlInteractiveSize:I}=e,E=new qe(S),W=new qe(C),P=t,A=2,T=new qe(c).onBackground(v).toHexString(),k=new qe(b).onBackground(v).toHexString(),_=new qe(y).onBackground(v).toHexString(),O=$l(e,{tableFontSize:i,tableBg:v,tableRadius:h,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:p,tablePaddingVerticalSmall:p,tablePaddingHorizontalSmall:p,tableBorderColor:a,tableHeaderTextColor:o,tableHeaderBg:_,tableFooterTextColor:o,tableFooterBg:_,tableHeaderCellSplitColor:a,tableHeaderSortBg:T,tableHeaderSortHoverBg:k,tableHeaderIconColor:E.clone().setAlpha(E.getAlpha()*f).toRgbString(),tableHeaderIconColorHover:W.clone().setAlpha(W.getAlpha()*f).toRgbString(),tableBodySortBg:_,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:v,tableRowHoverBg:_,tableSelectedRowBg:P,tableSelectedRowHoverBg:l,zIndexTableFixed:A,zIndexTableSticky:A+1,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:v,tableExpandColumnWidth:I+2*e.padding,tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollBg:r});return[Rr(O),gr(O),xn(O),wr(O),mr(O),dr(O),xr(O),pr(O),xn(O),vr(O),br(O),hr(O),$r(O),fr(O),Cr(O),Sr(O),yr(O)]}),Pr=[],Jn=()=>({prefixCls:Ke(),columns:Je(),rowKey:_e([String,Function]),tableLayout:Ke(),rowClassName:_e([String,Function]),title:be(),footer:be(),id:Ke(),showHeader:Qe(),components:je(),customRow:be(),customHeaderRow:be(),direction:Ke(),expandFixed:_e([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Je(),defaultExpandedRowKeys:Je(),expandedRowRender:be(),expandRowByClick:Qe(),expandIcon:be(),onExpand:be(),onExpandedRowsChange:be(),"onUpdate:expandedRowKeys":be(),defaultExpandAllRows:Qe(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Qe(),expandedRowClassName:be(),childrenColumnName:Ke(),rowExpandable:be(),sticky:_e([Boolean,Object]),dropdownPrefixCls:String,dataSource:Je(),pagination:_e([Boolean,Object]),loading:_e([Boolean,Object]),size:Ke(),bordered:Qe(),locale:je(),onChange:be(),onResizeColumn:be(),rowSelection:je(),getPopupContainer:be(),scroll:je(),sortDirections:Je(),showSorterTooltip:_e([Boolean,Object],!0),transformCellText:be()}),kr=ce({name:"InternalTable",inheritAttrs:!1,props:$n(g(g({},Jn()),{contextSlots:je()}),{rowKey:"key"}),setup(e,t){let{attrs:l,slots:n,expose:o,emit:r}=t;Fe(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ql(x(()=>e.contextSlots)),Jl({onResizeColumn:(K,G)=>{r("resizeColumn",K,G)}});const a=Tl(),i=x(()=>{const K=new Set(Object.keys(a.value).filter(G=>a.value[G]));return e.columns.filter(G=>!G.responsive||G.responsive.some(F=>K.has(F)))}),{size:s,renderEmpty:p,direction:u,prefixCls:d,configProvider:y}=Sn("table",e),[S,C]=Tr(d),f=x(()=>{var K;return e.transformCellText||((K=y.transformCellText)===null||K===void 0?void 0:K.value)}),[v]=Pl("Table",Ol.Table,ge(e,"locale")),h=x(()=>e.dataSource||Pr),b=x(()=>y.getPrefixCls("dropdown",e.dropdownPrefixCls)),c=x(()=>e.childrenColumnName||"children"),I=x(()=>h.value.some(K=>K==null?void 0:K[c.value])?"nest":e.expandedRowRender?"row":null),E=Ve({body:null}),W=K=>{g(E,K)},P=x(()=>typeof e.rowKey=="function"?e.rowKey:K=>K==null?void 0:K[e.rowKey]),[A]=Mo(h,c,P),T={},k=function(K,G){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{p