unis_crm/frontend1/dist/assets/Table-CAs2vM8c.js

65 lines
153 KiB
JavaScript
Raw Normal View History

2026-03-27 04:22:00 +00:00
import{ce as zt,r as i,bY as na,x as _n,ax as Fn,z as V,y as Ot,dx as Hn,ay as $t,F as ra,aG as no,aB as An,aL as ro,C as te,bE as oa,dy as aa,cN as la,av as oo,aK as ao,D as Vt,ah as H,al as gt,aJ as lo,ai as he,an as dt,aj as io,ak as lt,dz as gr,ar as ht,aq as $e,cg as yt,dA as qt,c1 as ia,du as hr,at as ye,ap as so,dk as zn,am as M,ci as jn,ch as sa,dB as yr,bG as da,dC as Wn,dD as br,dE as xr,dF as ca,dG as co,bg as me,dq as Vn,dH as uo,dI as ua,bK as ct,dJ as fa,E as va,P as pa,bO as ma,U as ga,bP as fe,as as pt,Q as ha,dK as ya,dL as ba,dM as xa,dN as Ca,bT as Sa,bI as wa,dO as Ea,dP as $a,dQ as ka,bF as Na,bh as Cr,bZ as Ra,az as fo,dR as Ka,dS as Ia,B as Sr,bi as vo,a5 as wr,dT as Oa,dU as Ta,dV as Pa,dW as Da,ab as Er,bR as Ma,dX as Ba,bQ as La,bD as At,bj as _a,c0 as Fa,aI as Ha,bl as Aa,cZ as za}from"./index-CYM97J2V.js";import{u as ja,a as Wa,C as rn,g as Va}from"./index-M0Ae7f04.js";import{e as qa}from"./useForm-B5uILH8t.js";import{P as Xa}from"./Pagination-By0LqcoC.js";function kn(t){return t!=null&&t===t.window}const Ga=t=>{var e,r;if(typeof window>"u")return 0;let n=0;return kn(t)?n=t.pageYOffset:t instanceof Document?n=t.documentElement.scrollTop:(t instanceof HTMLElement||t)&&(n=t.scrollTop),t&&!kn(t)&&typeof n!="number"&&(n=(r=((e=t.ownerDocument)!==null&&e!==void 0?e:t).documentElement)===null||r===void 0?void 0:r.scrollTop),n};function Ua(t,e,r,n){const o=r-e;return t/=n/2,t<1?o/2*t*t*t+e:o/2*((t-=2)*t*t+2)+e}function Ya(t,e={}){const{getContainer:r=()=>window,callback:n,duration:o=450}=e,a=r(),c=Ga(a),l=Date.now(),d=()=>{const v=Date.now()-l,u=Ua(v>o?o:v,c,t,o);kn(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,v<o?zt(d):typeof n=="function"&&n()};zt(d)}const Qa=t=>{const[e,r]=i.useState(null);return[i.useCallback((o,a,c)=>{const l=e??o,d=Math.min(l||0,o),s=Math.max(l||0,o),v=a.slice(d,s+1).map(t),u=v.some(f=>!c.has(f)),p=[];return v.forEach(f=>{u?(c.has(f)||p.push(f),c.add(f)):(c.delete(f),p.push(f))}),r(u?s:null),p},[e]),r]};function Za(t,e){return t._antProxy=t._antProxy||{},Object.keys(e).forEach(r=>{if(!(r in t._antProxy)){const n=t[r];t._antProxy[r]=n,t[r]=e[r]}}),t}const Ja=(t,e)=>i.useImperativeHandle(t,()=>{const r=e(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(o,a){return r[a]?r[a]:Reflect.get(o,a)}}):Za(n,r)}),el=t=>{const e=i.useRef(t),[,r]=na();return[()=>e.current,n=>{e.current=n,r()}]},po=i.createContext(null),tl=po.Provider,mo=i.createContext(null),nl=mo.Provider,rl=t=>{const{componentCls:e,antCls:r}=t,n=`${e}-group`;return{[n]:Object.assign(Object.assign({},Ot(t)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},ol=t=>{const{componentCls:e,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:o,motionDurationSlow:a,motionDurationMid:c,motionEaseInOutCirc:l,colorBgContainer:d,colorBorder:s,lineWidth:v,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:f,dotColorDisabled:m,lineType:h,radioColor:g,radioBgColor:x,calc:C}=t,b=`${e}-inner`,S=C(o).sub(C(4).mul(2)),R=C(1).mul(o).equal({unit:!0});return{[`${e}-wrapper`]:Object.assign(Object.assign({},Ot(t)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${e}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${e}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${V(v)} ${h} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[e]:Object.assign(Object.assign({},Ot(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${e}-wrapper:hover &,
&:hover ${b}`]:{borderColor:n},[`${e}-input:focus-visible + ${b}`]:Hn(t),[`${e}:hover::after, ${e}-wrapper:hover &::after`]:{visibility:"visible"},[`${e}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:R,height:R,marginBlockStart:C(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:R,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:R,height:R,backgroundColor:d,borderColor:s,borderStyle:"solid",borderWidth:v,borderRadius:"50%",transition:`all ${c}`},[`${e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[b]:{borderColor:n,backgroundColor:x,"&::after":{transform:`scale(${t.calc(t.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:u,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${e}-checked`]:{[b]:{"&::after":{transform:`scale(${C(S).div(o).equal()})`}}}},[`span${e} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},al=t=>{const{buttonColor:e,controlHeight:r,componentCls:n,lineWidth:o,lineType:a,colorBorder:c,motionDurationMid:l,buttonPaddingInline:d,fontSize:s,buttonBg:v,fontSizeLG:u,controlHeightLG:p,controlHeightSM:f,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:x,buttonCheckedBg:C,buttonSolidCheckedColor:b,colorTextDisabled:E,colorBgContainerDisabled:S,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:N,colorPrimary:K,colorPrimaryHover:y,colorPrimaryActive:I,buttonSolidCheckedBg:$,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:T,calc:w}=t;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:d,paddingBlock:0,color:e,fontSize:s,lineHeight:V(w(r).sub(w(o).mul(2)).equal()),background:v,border:`${V(o)} ${a} ${c}`,borderBlockStartWidth:w(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:e},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:w(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${V(o)} ${a} ${c}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${n}-group-large &`]:{height:p,fontSize:u,lineHeight:V(w(p).sub(w(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${n}-group-small &`]:{height:f,paddingInline:w(m).sub(o).equal(),paddingBlock:0,lineHeight:V(w(f).sub(w(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:K},"&:has(:focus-visible)":Hn(t),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:K,background:C,borderColor:K,"&::before":{backgroundColor:K},"&:first-child":{borderColor:K},"&:hover":{color:y,borderColor:y,"&::before":{backgroundColor:y}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:b,background:$,borderColor:$,"&:hover":{color:b,background:P,borderColor:P},"&:active":{color:b,background:T,borderColor:T}},"&-disabled":{color:E,backgroundColor:S,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:S,borderColor:c}},[`&-disabled${n}-button-wrapper-checked`]:{color:N,backgroundColor:R,borderColor:c,bo
${V(d(d(f).add(r)).mul(-1).equal())}`}}}}}});return{[`${e}-wrapper`]:{[`${e}${e}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${e}-title`]:{border:s,borderBottom:0},[`> ${e}-container`]:{borderInlineStart:s,borderTop:s,[`
> ${e}-content,
> ${e}-header,
> ${e}-body,
> ${e}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${e}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${e}-expanded-row-fixed`]:{margin:`${V(d(c).mul(-1).equal())} ${V(d(d(l).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${e}-scroll-horizontal`]:{[`> ${e}-container > ${e}-body`]:{"> table > tbody":{[`
> tr${e}-expanded-row,
> tr${e}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},v("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle)),v("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall)),{[`> ${e}-footer`]:{border:s,borderTop:0}}),[`${e}-cell`]:{[`${e}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${V(r)} 0 ${V(r)} ${a}`}},[`${e}-bordered ${e}-cell-scrollbar`]:{borderInlineEnd:s}}}},Xs=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-cell-ellipsis`]:Object.assign(Object.assign({},Ma),{wordBreak:"keep-all",[`
&${e}-cell-fix-left-last,
&${e}-cell-fix-right-first
`]:{overflow:"visible",[`${e}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${e}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Gs=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-tbody > tr${e}-placeholder`]:{textAlign:"center",color:t.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:t.colorBgContainer}}}}},Us=t=>{const{componentCls:e,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:a,lineType:c,tableBorderColor:l,tableExpandIconBg:d,tableExpandColumnWidth:s,borderRadius:v,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:x,expandIconScale:C,calc:b}=t,E=`${V(o)} ${c} ${l}`,S=b(m).sub(o).equal();return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:s},[`${e}-row-expand-icon-cell`]:{textAlign:"center",[`${e}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${e}-row-indent`]:{height:1,float:"left"},[`${e}-row-expand-icon`]:Object.assign(Object.assign({},Ba(t)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:V(g),background:d,border:E,borderRadius:v,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:x,width:o,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"}}),[`${e}-row-indent + ${e}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${e}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${e}-expanded-row-fixed`]:{position:"relative",margin:`${V(b(u).mul(-1).equal())} ${V(b(p).mul(-1).equal())}`,padding:`${V(u)} ${V(p)}`}}}},Ys=t=>{const{componentCls:e,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:c,paddingXS:l,colorText:d,lineWidth:s,lineType:v,tableBorderColor:u,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:x,colorPrimary:C,tableHeaderFilterActiveBg:b,colorTextDisabled:E,tableFilterDropdownBg:S,tableFilterDropdownHeight:R,controlItemBgHover:N,controlItemBgActive:K,boxShadowSecondary:y,filterDropdownMenuBg:I,calc:$}=t,P=`${r}-dropdown`,T=`${e}-filter-dropdown`,w=`${r}-tree`,O=`${V(s)} ${v} ${u}`;return[{[`${e}-wrapper`]:{[`${e}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${e}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(c).mul(-1).equal(),marginInline:`${V(c)} ${V($(m).div(2).mul(-1).equal())}`,padding:`0 ${V(c)}`,color:p,fontSize:f,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:b},"&.active":{color:C}}}},{[`${r}-dropdown`]:{[T]:Object.assign(Object.assign({},Ot(t)),{minWidth:o,backgroundColor:S,borderRadius:h,boxShadow:y,overflow:"hidden",[`${P}-menu`]:{maxHeight:R,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${V(l)} 0`,color:E,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${V(l)} 0`,paddingInline:l,[w]:{padding:0},[`${w}-treenode ${w}-node-content-wrapper:hover`]:{backgroundColor:N},[`${w}-treenode-checkbox-checked ${w}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:K}}},[`${T}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:a},[n]:{color:E}}},[`${T}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${V($(l).sub(s).equal())} ${V(l)}`,overflow:"hidden",borderTop:O}})}},{[`${r}-dropdo
${e}-cell-fix-left,
${e}-cell-fix-right
`]:{position:"sticky !important",zIndex:a,background:c},[`
${e}-cell-fix-left-first::after,
${e}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${e}-cell-fix-left-all::after`]:{display:"none"},[`
${e}-cell-fix-right-first::after,
${e}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:d(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${e}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${e}-ping-left`]:{[`&:not(${e}-has-fix-left) ${e}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`
${e}-cell-fix-left-first::after,
${e}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${e}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${e}-ping-right`]:{[`&:not(${e}-has-fix-right) ${e}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`
${e}-cell-fix-right-first::after,
${e}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${e}-fixed-column-gapped`]:{[`
${e}-cell-fix-left-first::after,
${e}-cell-fix-left-last::after,
${e}-cell-fix-right-first::after,
${e}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},Zs=t=>{const{componentCls:e,antCls:r,margin:n}=t;return{[`${e}-wrapper ${e}-pagination${r}-pagination`]:{margin:`${V(n)} 0`}}},Js=t=>{const{componentCls:e,tableRadius:r}=t;return{[`${e}-wrapper`]:{[e]:{[`${e}-title, ${e}-header`]:{borderRadius:`${V(r)} ${V(r)} 0 0`},[`${e}-title + ${e}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${e}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${V(r)} ${V(r)}`}}}}},ed=t=>{const{componentCls:e}=t;return{[`${e}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${e}-pagination-left`]:{justifyContent:"flex-end"},[`${e}-pagination-right`]:{justifyContent:"flex-start"},[`${e}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${e}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${e}-row-indent`]:{float:"right"}}}}},td=t=>{const{componentCls:e,antCls:r,iconCls:n,fontSizeIcon:o,padding:a,paddingXS:c,headerIconColor:l,headerIconHoverColor:d,tableSelectionColumnWidth:s,tableSelectedRowBg:v,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:m}=t;return{[`${e}-wrapper`]:{[`${e}-selection-col`]:{width:s,[`&${e}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).equal()}},[`${e}-bordered ${e}-selection-col`]:{width:m(s).add(m(c).mul(2)).equal(),[`&${e}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).add(m(c).mul(2)).equal()}},[`
table tr th${e}-selection-column,
table tr td${e}-selection-column,
${e}-selection-column
`]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${e}-selection-column${e}-cell-fix-left`]:{zIndex:m(t.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${e}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${e}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${e}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:V(m(f).div(4).equal()),[n]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:d}}},[`${e}-tbody`]:{[`${e}-row`]:{[`&${e}-row-selected`]:{[`> ${e}-cell`]:{background:v,"&-row-hover":{background:u}}},[`> ${e}-cell-row-hover`]:{background:p}}}}}},nd=t=>{const{componentCls:e,tableExpandColumnWidth:r,calc:n}=t,o=(a,c,l,d)=>({[`${e}${e}-${a}`]:{fontSize:d,[`
${e}-title,
${e}-footer,
${e}-cell,
${e}-thead > tr > th,
${e}-tbody > tr > th,
${e}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${V(c)} ${V(l)}`},[`${e}-filter-trigger`]:{marginInlineEnd:V(n(l).div(2).mul(-1).equal())},[`${e}-expanded-row-fixed`]:{margin:`${V(n(c).mul(-1).equal())} ${V(n(l).mul(-1).equal())}`},[`${e}-tbody`]:{[`${e}-wrapper:only-child ${e}`]:{marginBlock:V(n(c).mul(-1).equal()),marginInline:`${V(n(r).sub(l).equal())} ${V(n(l).mul(-1).equal())}`}},[`${e}-selection-extra`]:{paddingInlineStart:V(n(l).div(4).equal())}}});return{[`${e}-wrapper`]:Object.assign(Object.assign({},o("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle,t.tableFontSizeMiddle)),o("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall,t.tableFontSizeSmall))}},rd=t=>{const{componentCls:e,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:a}=t;return{[`${e}-wrapper`]:{[`${e}-thead th${e}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}, left 0s`,"&:hover":{background:t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:t.colorPrimary},[`
&${e}-cell-fix-left:hover,
&${e}-cell-fix-right:hover
`]:{background:t.tableFixedHeaderSortActiveBg}},[`${e}-thead th${e}-column-sort`]:{background:t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${e}-column-sort`]:{background:t.tableBodySortBg},[`${e}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${e}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${e}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${e}-column-sorter`]:{marginInlineStart:r,color:o,fontSize:0,transition:`color ${t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:t.colorPrimary}},[`${e}-column-sorter-up + ${e}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${e}-column-sorters:hover ${e}-column-sorter`]:{color:a}}}},od=t=>{const{componentCls:e,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:c,zIndexTableSticky:l,stickyScrollBarBorderRadius:d,lineWidth:s,lineType:v,tableBorderColor:u}=t,p=`${V(s)} ${v} ${u}`;return{[`${e}-wrapper`]:{[`${e}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${V(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:c,borderTop:p,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:n,borderRadius:d,transition:`all ${t.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Jr=t=>{const{componentCls:e,lineWidth:r,tableBorderColor:n,calc:o}=t,a=`${V(r)} ${t.lineType} ${n}`;return{[`${e}-wrapper`]:{[`${e}-summary`]:{position:"relative",zIndex:t.zIndexTableFixed,background:t.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${e}-summary`]:{boxShadow:`0 ${V(o(r).mul(-1).equal())} 0 ${n}`}}}},ad=t=>{const{componentCls:e,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:a,calc:c}=t,l=`${V(n)} ${o} ${a}`,d=`${e}-expanded-row-cell`;return{[`${e}-wrapper`]:{[`${e}-tbody-virtual`]:{[`${e}-tbody-virtual-holder-inner`]:{[`
& > ${e}-row,
& > div:not(${e}-row) > ${e}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${e}-cell`]:{borderBottom:l,transition:`background ${r}`},[`${e}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${V(n)})`,borderInlineEnd:"none"}}},[`${e}-bordered`]:{[`${e}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${e}-cell`]:{borderInlineEnd:l,[`&${e}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(n).mul(-1).equal(),borderInlineStart:l}}},[`&${e}-virtual`]:{[`${e}-placeholder ${e}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},ld=t=>{const{componentCls:e,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:c,lineType:l,tableBorderColor:d,tableFontSize:s,tableBg:v,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:x,calc:C}=t,b=`${V(c)} ${l} ${d}`;return{[`${e}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":t.tableScrollBg},La()),{[e]:Object.assign(Object.assign({},Ot(t)),{fontSize:s,background:v,borderRadius:`${V(u)} ${V(u)} 0 0`,scrollbarColor:`${t.tableScrollThumbBg} ${t.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${V(u)} ${V(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${e}-cell,
${e}-thead > tr > th,
${e}-tbody > tr > th,
${e}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${V(n)} ${V(o)}`,overflowWrap:"break-word"},[`${e}-title`]:{padding:`${V(n)} ${V(o)}`},[`${e}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:m,borderBottom:b,transition:`background ${f} 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:h,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${e}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:b,[`
> ${e}-wrapper:only-child,
> ${e}-expanded-row-fixed > ${e}-wrapper:only-child
`]:{[e]:{marginBlock:V(C(n).mul(-1).equal()),marginInline:`${V(C(a).sub(o).equal())}
${V(C(o).mul(-1).equal())}`,[`${e}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:r,textAlign:"start",background:m,borderBottom:b,transition:`background ${f} ease`},[`& > ${e}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${e}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${e}-footer`]:{padding:`${V(n)} ${V(o)}`,color:g,background:x}})}},id=t=>{const{colorFillAlter:e,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:c,controlItemBgActiveHover:l,padding:d,paddingSM:s,paddingXS:v,colorBorderSecondary:u,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:x,lineWidth:C,colorIcon:b,colorIconHover:E,opacityLoading:S,controlInteractiveSize:R}=t,N=new At(o).onBackground(r).toHexString(),K=new At(a).onBackground(r).toHexString(),y=new At(e).onBackground(r).toHexString(),I=new At(b),$=new At(E),P=R/2-C,T=P*2+C*3;return{headerBg:y,headerColor:n,headerSortActiveBg:N,headerSortHoverBg:K,bodySortBg:y,rowHoverBg:y,rowSelectedBg:c,rowSelectedHoverBg:l,rowExpandedBg:e,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:s,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:u,headerBorderRadius:p,footerBg:y,footerColor:n,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:N,headerFilterHoverBg:a,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:f,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*x-C*3)/2-Math.ceil((g*1.4-C*3)/2),headerIconColor:I.clone().setA(I.a*S).toRgbString(),headerIconHoverColor:$.clone().setA($.a*S).toRgbString(),expandIconHalfInner:P,expandIconSize:T,expandIconScale:R/T}},eo=2,sd=_n("Table",t=>{const{colorTextHeading:e,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:a,headerColor:c,headerSortActiveBg:l,headerSortHoverBg:d,bodySortBg:s,rowHoverBg:v,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:x,cellPaddingBlockSM:C,cellPaddingInlineSM:b,borderColor:E,footerBg:S,footerColor:R,headerBorderRadius:N,cellFontSize:K,cellFontSizeMD:y,cellFontSizeSM:I,headerSplitColor:$,fixedHeaderSortActiveBg:P,headerFilterHoverBg:T,filterDropdownBg:w,expandIconBg:O,selectionColumnWidth:k,stickyScrollBarBg:D,calc:F}=t,B=Fn(t,{tableFontSize:K,tableBg:n,tableRadius:N,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:b,tableBorderColor:E,tableHeaderTextColor:c,tableHeaderBg:a,tableFooterTextColor:R,tableFooterBg:S,tableHeaderCellSplitColor:$,tableHeaderSortBg:l,tableHeaderSortHoverBg:d,tableBodySortBg:s,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:w,tableRowHoverBg:v,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:eo,zIndexTableSticky:F(eo).add(1).equal({unit:!1}),tableFontSizeMiddle:y,tableFontSizeSmall:I,tableSelectionColumnWidth:k,tableExpandIconBg:O,tableExpandColumnWidth:F(o).add(F(t.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:e,tableScrollBg:r});return[ld(B),Zs(B),Jr(B),rd(B),Ys(B),qs(B),Js(B),Us(B),Jr(B),Gs(B),td(B),Qs(B),od(B),Xs(B),nd(B),ed(B),ad(B)]},id,{unitless:{expandIconScale:!0}}),to=[],dd=(t,e)=>{var r,n;const{prefixCls:o,className:a,rootClassName:c,style:l,size:d,bordered:s,dropdownPrefixCls:v,dataSource:u,pagination:p,rowSelection:f,rowKey:m="key",rowClassName:h,columns:g,children:x,childrenColumnName:C,onChange:b,getPopupContainer:E,loading:S,expandIcon:R,expandable:N,expandedRowRender:K,expandIconColumnIndex:y,indentSize:I,scroll:$,sortDirections:P,locale:T,showSorterTooltip:w={target:"full-header"},virtual:O}=t;Vn(