filesbox/web/dist/36806.946b7b3d.async.js

2 lines
69 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[36806],{29018:function(){},16695:function(){},84164:function(Dn,Cn,d){"use strict";d.d(Cn,{Z:function(){return P}});var Ze=d(90484),N=d(67294);function P(b,He,S){var w=N.useRef({});function _(n){if(!w.current||w.current.data!==b||w.current.childrenColumnName!==He||w.current.getRowKey!==S){let An=function(_n){_n.forEach(function(nn,Rn){var ht=S(nn,Rn);Tn.set(ht,nn),nn&&(0,Ze.Z)(nn)==="object"&&He in nn&&An(nn[He]||[])})};var Tn=new Map;An(b),w.current={data:b,childrenColumnName:He,kvMap:Tn,getRowKey:S}}return w.current.kvMap.get(n)}return[_]}},5322:function(Dn,Cn,d){"use strict";d.d(Cn,{Z:function(){return Ho}});var Ze=d(90484),N=d(96156),P=d(22122),b=d(28481),He=d(94184),S=d.n(He),w=d(28991),_=d(85061),n=d(67294),Tn=d(5110),An=d(64217),_n=d(79370),nn=d(96774),Rn=d.n(nn),ht=d(80334),qn=d(48717),et=d(74204);function Yt(e){return null}var Jt=Yt;function kt(e){return null}var yt=kt,hn=d(81253),xt=d(42550),Qt="RC_TABLE_KEY";function Kt(e){return e==null?[]:Array.isArray(e)?e:[e]}function gt(e,t){if(!t&&typeof t!="number")return e;for(var r=Kt(t),o=e,a=0;a<r.length;a+=1){if(!o)return null;var l=r[a];o=o[l]}return o}function nt(e){var t=[],r={};return e.forEach(function(o){for(var a=o||{},l=a.key,s=a.dataIndex,c=l||Kt(s).join("-")||Qt;r[c];)c="".concat(c,"_next");r[c]=!0,t.push(c)}),t}function St(e){return e!=null}var _t=n.createContext(!1),Et=_t,It=d(8410),qt=d(66680);function Lt(){var e=n.createContext(null),t=function(o){var a=o.value,l=o.children,s=n.useRef(a);s.current=a;var c=n.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),i=(0,b.Z)(c,1),f=i[0];return(0,It.Z)(function(){f.listeners.forEach(function(v){v(a)})},[a]),n.createElement(e.Provider,{value:f},l)};return{Context:e,Provider:t}}function sn(e,t){var r=(0,qt.Z)(t),o=n.useContext(e==null?void 0:e.Context),a=o||{},l=a.listeners,s=a.getValue,c=n.useState(function(){return r(o?s():null)}),i=(0,b.Z)(c,2),f=i[0],v=i[1];return(0,It.Z)(function(){if(!o)return;function u(m){v(function(p){var h=r(m);return Rn()(p,h)?p:h})}return l.add(u),function(){l.delete(u)}},[o]),f}var Rt=Lt(),Ft=Rt,Zt=n.createContext(null),Hn=Zt,er=n.createContext({renderWithProps:!1}),wt=er,nr=["colSpan","rowSpan","style","className"];function tr(e,t,r,o){var a=e+t-1;return e<=o&&a>=r}function rr(e){return e&&(0,Ze.Z)(e)==="object"&&!Array.isArray(e)&&!n.isValidElement(e)}function Nt(e){return typeof e=="string"?!0:(0,xt.Yr)(e)}var ar=function(t){var r=t.ellipsis,o=t.rowType,a=t.children,l,s=r===!0?{showTitle:!0}:r;return s&&(s.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():n.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function T(e,t){var r,o,a,l=e.prefixCls,s=e.className,c=e.record,i=e.index,f=e.renderIndex,v=e.dataIndex,u=e.render,m=e.children,p=e.component,h=p===void 0?"td":p,g=e.colSpan,C=e.rowSpan,y=e.fixLeft,E=e.fixRight,I=e.firstFixLeft,W=e.lastFixLeft,K=e.firstFixRight,z=e.lastFixRight,re=e.appendNode,$=e.additionalProps,D=$===void 0?{}:$,ae=e.ellipsis,J=e.align,R=e.rowType,U=e.isSticky,L=e.hovering,V=e.onHover,F="".concat(l,"-cell"),M=n.useContext(wt),k=n.useContext(Et),ve=n.useContext(Hn),We=ve.allColumnsFixedLeft,Le=n.useMemo(function(){if(St(m))return[m];var Z=gt(c,v),x=Z,ee=void 0;if(u){var Pe=u(Z,c,f);rr(Pe)?(x=Pe.children,ee=Pe.props,M.renderWithProps=!0):x=Pe}return[x,ee]},[M.renderWithProps?Math.random():0,m,v,M,c,u,f]),pe=(0,b.Z)(Le,2),we=pe[0],xe=pe[1],Ue=we;(0,Ze.Z)(Ue)==="object"&&!Array.isArray(Ue)&&!n.isValidElement(Ue)&&(Ue=null),ae&&(W||K)&&(Ue=n.createElement("span",{className:"".concat(F,"-content")},Ue));var Oe=xe||{},Te=Oe.colSpan,he=Oe.rowSpan,Fe=Oe.style,Qe=Oe.className,ye=(0,hn.Z)(Oe,nr),ge=(r=Te!==void 0?Te:g)!==null&&r!==void 0?r:1,le=(o=he!==void 0?he:C)!==null&&o!==void 0?o:1;if(ge===0||le===0)return null;var se={},de=typeof y=="number"&&k,ze=typeof E=="number"&&k;de&&(se.position="sticky",se.left=y),ze&&(se.position="sticky",se.right=E);var Me={};J&&(Me.textAlign=J);var je=function(x){v