You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 rivejä
18 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[704],{25414:function(){},51752:function(Et,Be,S){"use strict";S.d(Be,{Z:function(){return Yt}});var w=S(96156),ce=S(22122),Te=S(54549),We=S(44545),St=S(49101),xt=S(94184),j=S.n(xt),R=S(28481),De=S(90484),Ct=S(81253),z=S(28991),t=S(67294),Tt=S(50344),Zt=S(31131),Oe=S(21770),Ke=S(85061),le=S(75164),$e=S(48717);function He(e){var o=(0,t.useRef)(),n=(0,t.useRef)(!1);function r(){for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];n.current||(le.Z.cancel(o.current),o.current=(0,le.Z)(function(){e.apply(void 0,i)}))}return(0,t.useEffect)(function(){return n.current=!1,function(){n.current=!0,le.Z.cancel(o.current)}},[]),r}function Rt(e){var o=(0,t.useRef)([]),n=(0,t.useState)({}),r=(0,R.Z)(n,2),a=r[1],i=(0,t.useRef)(typeof e=="function"?e():e),c=He(function(){var l=i.current;o.current.forEach(function(v){l=v(l)}),o.current=[],i.current=l,a({})});function s(l){o.current.push(l),c()}return[i.current,s]}var X=S(15105);function Pt(e,o){var n,r=e.prefixCls,a=e.id,i=e.active,c=e.tab,s=c.key,l=c.tab,v=c.disabled,f=c.closeIcon,u=e.closable,m=e.renderWrapper,A=e.removeAriaLabel,T=e.editable,b=e.onClick,M=e.onRemove,D=e.onFocus,O=e.style,h="".concat(r,"-tab");t.useEffect(function(){return M},[]);var p=T&&u!==!1&&!v;function L(Z){v||b(Z)}function V(Z){Z.preventDefault(),Z.stopPropagation(),T.onEdit("remove",{key:s,event:Z})}var H=t.createElement("div",{key:s,ref:o,className:j()(h,(n={},(0,w.Z)(n,"".concat(h,"-with-remove"),p),(0,w.Z)(n,"".concat(h,"-active"),i),(0,w.Z)(n,"".concat(h,"-disabled"),v),n)),style:O,onClick:L},t.createElement("div",{role:"tab","aria-selected":i,id:a&&"".concat(a,"-tab-").concat(s),className:"".concat(h,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(s),"aria-disabled":v,tabIndex:v?null:0,onClick:function(d){d.stopPropagation(),L(d)},onKeyDown:function(d){[X.Z.SPACE,X.Z.ENTER].includes(d.which)&&(d.preventDefault(),L(d))},onFocus:D},l),p&&t.createElement("button",{type:"button","aria-label":A||"remove",tabIndex:0,className:"".concat(h,"-remove"),onClick:function(d){d.stopPropagation(),V(d)}},f||T.removeIcon||"\xD7"));return m?m(H):H}var It=t.forwardRef(Pt),Ve={width:0,height:0,left:0,top:0};function Nt(e,o,n){return(0,t.useMemo)(function(){for(var r,a=new Map,i=o.get((r=e[0])===null||r===void 0?void 0:r.key)||Ve,c=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,v=o.get(l);if(!v){var f;v=o.get((f=e[s-1])===null||f===void 0?void 0:f.key)||Ve}var u=a.get(l)||(0,z.Z)({},v);u.right=c-u.left-u.width,a.set(l,u)}return a},[e.map(function(r){return r.key}).join("_"),o,n])}var je={width:0,height:0,left:0,top:0,right:0};function kt(e,o,n,r,a){var i=a.tabs,c=a.tabPosition,s=a.rtl,l,v,f;["top","bottom"].includes(c)?(l="width",v=s?"right":"left",f=Math.abs(o.left)):(l="height",v="top",f=-o.top);var u=o[l],m=n[l],A=r[l],T=u;return m+A>u&&m<u&&(T=u-A),(0,t.useMemo)(function(){if(!i.length)return[0,0];for(var b=i.length,M=b,D=0;D<b;D+=1){var O=e.get(i[D].key)||je;if(O[v]+O[l]>f+T){M=D-1;break}}for(var h=0,p=b-1;p>=0;p-=1){var L=e.get(i[p].key)||je;if(L[v]<f){h=p+1;break}}return[h,M]},[e,f,T,c,i.map(function(b){return b.key}).join("_"),s])}var ze=S(94423),wt=S(96753);function At(e,o){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:t.createElement("button",{ref:o,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}var Fe=t.forwardRef(At);function Mt(e,o){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,c=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,v=e.moreTransitionName,f=e.style,u=e.className,m=e.editable,A=e.tabBarGutter,T=e.rtl,b=e.removeAriaLabel,M=e.onTabClick,D=e.popupClassName,O=(0,t.useState)(!1),h=(0,R.Z)(O,2),p=h[0],L=h[1],V=(0,t.useState)(null),H=(0,R.Z)(V,2),Z=H[0],d=H[1],P="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),x=Z!==null?"".concat(P,"-").concat(Z):null,g=i==null?void 0:i.dropdownAriaLabel;function K(y,k){y.preventDefault(),y.stopPropagation(),m.onEdit("remove",{key:k,event:y})}var N=t.createElement(ze.ZP,{onClick:function(k){var $=k.key,F=k.domEvent;M($,F),L(!1)},prefixCls:"".concat(I,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":x,selectedKeys:[Z],"aria-label":g!==void 0?g:"expanded dropdown"},a.map(function(y){var k=m&&y.closable!==!1&&!y.disabled;return t.createElement(ze.sN,{key:y.key,id:"".concat(P,"-").concat(y.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(y.key),disabled:y.disabled},t.createElement("span",null,y.tab),k&&t.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(F){F.stopPropagation(),K(F,y.key)}},y.closeIcon||m.removeIcon||"\xD7"))}));function _(y){for(var k=a.filter(function(Q){return!Q.disabled}),$=k.findIndex(function(Q){return Q.key===Z})||0,F=k.length,re=0;re<F;re+=1){$=($+y+F)%F;var ee=k[$];if(!ee.disabled){d(ee.key);return}}}function ie(y){var k=y.which;if(!p){[X.Z.DOWN,X.Z.SPACE,X.Z.ENTER].includes(k)&&(L(!0),y.preventDefault());return}switch(k){case X.Z.UP:_(-1),y.preventDefault();break;case X.Z.DOWN:_(1),y.preventDefault();break;case X.Z.ESC:L(!1);break;case X.Z.SPACE:case X.Z.ENTER:Z!==null&&M(Z,y);break}}(0,t.useEffect)(function(){var y=document.getElementById(x);y&&y.scrollIntoView&&y.scrollIntoView(!1)},[Z]),(0,t.useEffect)(function(){p||d(null)},[p]);var J=(0,w.Z)({},T?"marginRight":"marginLeft",A);a.length||(J.visibility="hidden",J.order=1);var Y=j()((0,w.Z)({},"".concat(I,"-rtl"),T)),ne=c?null:t.createElement(wt.Z,{prefixCls:I,overlay:N,trigger:["hover"],visible:p,transitionName:v,onVisibleChange:L,overlayClassName:j()(Y,D),mouseEnterDelay:.1,mouseLeaveDelay:.1},t.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:J,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(r,"-more"),"aria-expanded":p,onKeyDown:ie},l));return t.createElement("div",{className:j()("".concat(n,"-nav-operations"),u),style:f,ref:o},ne,t.createElement(Fe,{prefixCls:n,locale:i,editable:m}))}var Lt=t.memo(t.forwardRef(Mt),function(e,o){return o.tabMoving}),Ze=(0,t.createContext)(null),Bt=.1,Ue=.01,pe=20,Ge=Math.pow(.995,pe);function Wt(e,o){var n=(0,t.useState)(),r=(0,R.Z)(n,2),a=r[0],i=r[1],c=(0,t.useState)(0),s=(0,R.Z)(c,2),l=s[0],v=s[1],f=(0,t.useState)(0),u=(0,R.Z)(f,2),m=u[0],A=u[1],T=(0,t.useState)(),b=(0,R.Z)(T,2),M=b[0],D=b[1],O=(0,t.useRef)();function h(d){var P=d.touches[0],I=P.screenX,x=P.screenY;i({x:I,y:x}),window.clearInterval(O.current)}function p(d){if(!!a){d.preventDefault();var P=d.touches[0],I=P.screenX,x=P.screenY;i({x:I,y:x});var g=I-a.x,K=x-a.y;o(g,K);var N=Date.now();v(N),A(N-l),D({x:g,y:K})}}function L(){if(!!a&&(i(null),D(null),M)){var d=M.x/m,P=M.y/m,I=Math.abs(d),x=Math.abs(P);if(Math.max(I,x)<Bt)return;var g=d,K=P;O.current=window.setInterval(function(){if(Math.abs(g)<Ue&&Math.abs(K)<Ue){window.clearInterval(O.current);return}g*=Ge,K*=Ge,o(g*pe,K*pe)},pe)}}var V=(0,t.useRef)();function H(d){var P=d.deltaX,I=d.deltaY,x=0,g=Math.abs(P),K=Math.abs(I);g===K?x=V.current==="x"?P:I:g>K?(x=P,V.current="x"):(x=I,V.current="y"),o(-x,-x)&&d.preventDefault()}var Z=(0,t.useRef)(null);Z.current={onTouchStart:h,onTouchMove:p,onTouchEnd:L,onWheel:H},t.useEffect(function(){function d(g){Z.current.onTouchStart(g)}function P(g){Z.current.onTouchMove(g)}function I(g){Z.current.onTouchEnd(g)}function x(g){Z.current.onWheel(g)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",d,{passive:!1}),e.current.addEventListener("wheel",x),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",I)}},[])}function Dt(){var e=(0,t.useRef)(new Map);function o(r){return e.current.has(r)||e.current.set(r,t.createRef()),e.current.get(r)}function n(r){e.current.delete(r)}return[o,n]}function Ye(e,o){var n=t.useRef(e),r=t.useState({}),a=(0,R.Z)(r,2),i=a[1];function c(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&o(l,n.current),n.current=l,i({})}return[n.current,c]}var Xe=function(o){var n=o.position,r=o.prefixCls,a=o.extra;if(!a)return null;var i,c={};return a&&(0,De.Z)(a)==="object"&&!t.isValidElement(a)?c=a:c.right=a,n==="right"&&(i=c.right),n==="left"&&(i=c.left),i?t.createElement("div",{className:"".concat(r,"-extra-content")},i):null};function Ot(e,o){var n,r=t.useContext(Ze),a=r.prefixCls,i=r.tabs,c=e.className,s=e.style,l=e.id,v=e.animated,f=e.activeKey,u=e.rtl,m=e.extra,A=e.editable,T=e.locale,b=e.tabPosition,M=e.tabBarGutter,D=e.children,O=e.onTabClick,h=e.onTabScroll,p=(0,t.useRef)(),L=(0,t.useRef)(),V=(0,t.useRef)(),H=(0,t.useRef)(),Z=Dt(),d=(0,R.Z)(Z,2),P=d[0],I=d[1],x=b==="top"||b==="bottom",g=Ye(0,function(C,E){x&&h&&h({direction:C>E?"left":"right"})}),K=(0,R.Z)(g,2),N=K[0],_=K[1],ie=Ye(0,function(C,E){!x&&h&&h({direction:C>E?"top":"bottom"})}),J=(0,R.Z)(ie,2),Y=J[0],ne=J[1],y=(0,t.useState)(0),k=(0,R.Z)(y,2),$=k[0],F=k[1],re=(0,t.useState)(0),ee=(0,R.Z)(re,2),Q=ee[0],Re=ee[1],ye=(0,t.useState)(null),ge=(0,R.Z)(ye,2),U=ge[0],se=ge[1],Pe=(0,t.useState)(null),ue=(0,R.Z)(Pe,2),q=ue[0],Ee=ue[1],B=(0,t.useState)(0),te=(0,R.Z)(B,2),de=te[0],Xt=te[1],Jt=(0,t.useState)(0),tt=(0,R.Z)(Jt,2),Qt=tt[0],qt=tt[1],_t=Rt(new Map),at=(0,R.Z)(_t,2),ea=at[0],ta=at[1],Se=Nt(i,ea,$),aa="".concat(a,"-nav-operations-hidden"),ve=0,fe=0;x?u?(ve=0,fe=Math.max(0,$-U)):(ve=Math.min(0,U-$),fe=0):(ve=Math.min(0,q-Q),fe=0);function Ie(C){return C<ve?ve:C>fe?fe:C}var nt=(0,t.useRef)(),na=(0,t.useState)(),rt=(0,R.Z)(na,2),xe=rt[0],ot=rt[1];function Ne(){ot(Date.now())}function ke(){window.clearTimeout(nt.current)}Wt(p,function(C,E){function W(G,oe){G(function(be){var Le=Ie(be+oe);return Le})}if(x){if(U>=$)return!1;W(_,C)}else{if(q>=Q)return!1;W(ne,E)}return ke(),Ne(),!0}),(0,t.useEffect)(function(){return ke(),xe&&(nt.current=window.setTimeout(function(){ot(0)},100)),ke},[xe]);function it(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,E=Se.get(C)||{width:0,height:0,left:0,right:0,top:0};if(x){var W=N;u?E.right<N?W=E.right:E.right+E.width>N+U&&(W=E.right+E.width-U):E.left<-N?W=-E.left:E.left+E.width>-N+U&&(W=-(E.left+E.width-U)),ne(0),_(Ie(W))}else{var G=Y;E.top<-Y?G=-E.top:E.top+E.height>-Y+q&&(G=-(E.top+E.height-q)),_(0),ne(Ie(G))}}var ra=kt(Se,{width:U,height:q,left:N,top:Y},{width:$,height:Q},{width:de,height:Qt},(0,z.Z)((0,z.Z)({},e),{},{tabs:i})),ct=(0,R.Z)(ra,2),oa=ct[0],ia=ct[1],Ce={};b==="top"||b==="bottom"?Ce[u?"marginRight":"marginLeft"]=M:Ce.marginTop=M;var lt=i.map(function(C,E){var W=C.key;return t.createElement(It,{id:l,prefixCls:a,key:W,tab:C,style:E===0?void 0:Ce,closable:C.closable,editable:A,active:W===f,renderWrapper:D,removeAriaLabel:T==null?void 0:T.removeAriaLabel,ref:P(W),onClick:function(oe){O(W,oe)},onRemove:function(){I(W)},onFocus:function(){it(W),Ne(),!!p.current&&(u||(p.current.scrollLeft=0),p.current.scrollTop=0)}})}),we=He(function(){var C,E,W,G,oe,be,Le=((C=p.current)===null||C===void 0?void 0:C.offsetWidth)||0,va=((E=p.current)===null||E===void 0?void 0:E.offsetHeight)||0,ht=((W=H.current)===null||W===void 0?void 0:W.offsetWidth)||0,pt=((G=H.current)===null||G===void 0?void 0:G.offsetHeight)||0;se(Le),Ee(va),Xt(ht),qt(pt);var fa=(((oe=L.current)===null||oe===void 0?void 0:oe.offsetWidth)||0)-ht,ma=(((be=L.current)===null||be===void 0?void 0:be.offsetHeight)||0)-pt;F(fa),Re(ma),ta(function(){var yt=new Map;return i.forEach(function(ba){var gt=ba.key,he=P(gt).current;he&&yt.set(gt,{width:he.offsetWidth,height:he.offsetHeight,left:he.offsetLeft,top:he.offsetTop})}),yt})}),ca=i.slice(0,oa),la=i.slice(ia+1),st=[].concat((0,Ke.Z)(ca),(0,Ke.Z)(la)),sa=(0,t.useState)(),ut=(0,R.Z)(sa,2),ua=ut[0],da=ut[1],ae=Se.get(f),dt=(0,t.useRef)();function vt(){le.Z.cancel(dt.current)}(0,t.useEffect)(function(){var C={};return ae&&(x?(u?C.right=ae.right:C.left=ae.left,C.width=ae.width):(C.top=ae.top,C.height=ae.height)),vt(),dt.current=(0,le.Z)(function(){da(C)}),vt},[ae,x,u]),(0,t.useEffect)(function(){it()},[f,ae,Se,x]),(0,t.useEffect)(function(){we()},[u,M,f,i.map(function(C){return C.key}).join("_")]);var ft=!!st.length,me="".concat(a,"-nav-wrap"),Ae,Me,mt,bt;return x?u?(Me=N>0,Ae=N+U<$):(Ae=N<0,Me=-N+U<$):(mt=Y<0,bt=-Y+q<Q),t.createElement("div",{ref:o,role:"tablist",className:j()("".concat(a,"-nav"),c),style:s,onKeyDown:function(){Ne()}},t.createElement(Xe,{position:"left",extra:m,prefixCls:a}),t.createElement($e.Z,{onResize:we},t.createElement("div",{className:j()(me,(n={},(0,w.Z)(n,"".concat(me,"-ping-left"),Ae),(0,w.Z)(n,"".concat(me,"-ping-right"),Me),(0,w.Z)(n,"".concat(me,"-ping-top"),mt),(0,w.Z)(n,"".concat(me,"-ping-bottom"),bt),n)),ref:p},t.createElement($e.Z,{onResize:we},t.createElement("div",{ref:L,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(Y,"px)"),transition:xe?"none":void 0}},lt,t.createElement(Fe,{ref:H,prefixCls:a,locale:T,editable:A,style:(0,z.Z)((0,z.Z)({},lt.length===0?void 0:Ce),{},{visibility:ft?"hidden":null})}),t.createElement("div",{className:j()("".concat(a,"-ink-bar"),(0,w.Z)({},"".concat(a,"-ink-bar-animated"),v.inkBar)),style:ua}))))),t.createElement(Lt,(0,ce.Z)({},e,{removeAriaLabel:T==null?void 0:T.removeAriaLabel,ref:V,prefixCls:a,tabs:st,className:!ft&&aa,tabMoving:!!xe})),t.createElement(Xe,{position:"right",extra:m,prefixCls:a}))}var Je=t.forwardRef(Ot);function Kt(e){var o=e.id,n=e.activeKey,r=e.animated,a=e.tabPosition,i=e.rtl,c=e.destroyInactiveTabPane,s=t.useContext(Ze),l=s.prefixCls,v=s.tabs,f=r.tabPane,u=v.findIndex(function(m){return m.key===n});return t.createElement("div",{className:j()("".concat(l,"-content-holder"))},t.createElement("div",{className:j()("".concat(l,"-content"),"".concat(l,"-content-").concat(a),(0,w.Z)({},"".concat(l,"-content-animated"),f)),style:u&&f?(0,w.Z)({},i?"marginRight":"marginLeft","-".concat(u,"00%")):null},v.map(function(m){return t.cloneElement(m.node,{key:m.key,prefixCls:l,tabKey:m.key,id:o,animated:f,active:m.key===n,destroyInactiveTabPane:c})})))}function Qe(e){var o=e.prefixCls,n=e.forceRender,r=e.className,a=e.style,i=e.id,c=e.active,s=e.animated,l=e.destroyInactiveTabPane,v=e.tabKey,f=e.children,u=t.useState(n),m=(0,R.Z)(u,2),A=m[0],T=m[1];t.useEffect(function(){c?T(!0):l&&T(!1)},[c,l]);var b={};return c||(s?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),t.createElement("div",{id:i&&"".concat(i,"-panel-").concat(v),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(v),"aria-hidden":!c,style:(0,z.Z)((0,z.Z)({},b),a),className:j()("".concat(o,"-tabpane"),c&&"".concat(o,"-tabpane-active"),r)},(c||A||n)&&f)}var $t=["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","popupClassName"],qe=0;function Ht(e){return(0,Tt.Z)(e).map(function(o){if(t.isValidElement(o)){var n=o.key!==void 0?String(o.key):void 0;return(0,z.Z)((0,z.Z)({key:n},o.props),{},{node:o})}return null}).filter(function(o){return o})}function Vt(e,o){var n,r=e.id,a=e.prefixCls,i=a===void 0?"rc-tabs":a,c=e.className,s=e.children,l=e.direction,v=e.activeKey,f=e.defaultActiveKey,u=e.editable,m=e.animated,A=m===void 0?{inkBar:!0,tabPane:!1}:m,T=e.tabPosition,b=T===void 0?"top":T,M=e.tabBarGutter,D=e.tabBarStyle,O=e.tabBarExtraContent,h=e.locale,p=e.moreIcon,L=e.moreTransitionName,V=e.destroyInactiveTabPane,H=e.renderTabBar,Z=e.onChange,d=e.onTabClick,P=e.onTabScroll,I=e.popupClassName,x=(0,Ct.Z)(e,$t),g=Ht(s),K=l==="rtl",N;A===!1?N={inkBar:!1,tabPane:!1}:A===!0?N={inkBar:!0,tabPane:!0}:N=(0,z.Z)({inkBar:!0,tabPane:!1},(0,De.Z)(A)==="object"?A:{});var _=(0,t.useState)(!1),ie=(0,R.Z)(_,2),J=ie[0],Y=ie[1];(0,t.useEffect)(function(){Y((0,Zt.Z)())},[]);var ne=(0,Oe.Z)(function(){var B;return(B=g[0])===null||B===void 0?void 0:B.key},{value:v,defaultValue:f}),y=(0,R.Z)(ne,2),k=y[0],$=y[1],F=(0,t.useState)(function(){return g.findIndex(function(B){return B.key===k})}),re=(0,R.Z)(F,2),ee=re[0],Q=re[1];(0,t.useEffect)(function(){var B=g.findIndex(function(de){return de.key===k});if(B===-1){var te;B=Math.max(0,Math.min(ee,g.length-1)),$((te=g[B])===null||te===void 0?void 0:te.key)}Q(B)},[g.map(function(B){return B.key}).join("_"),k,ee]);var Re=(0,Oe.Z)(null,{value:r}),ye=(0,R.Z)(Re,2),ge=ye[0],U=ye[1],se=b;J&&!["left","right"].includes(b)&&(se="top"),(0,t.useEffect)(function(){r||(U("rc-tabs-".concat(qe)),qe+=1)},[]);function Pe(B,te){d==null||d(B,te);var de=B!==k;$(B),de&&(Z==null||Z(B))}var ue={id:ge,activeKey:k,animated:N,tabPosition:se,rtl:K,mobile:J},q,Ee=(0,z.Z)((0,z.Z)({},ue),{},{editable:u,locale:h,moreIcon:p,moreTransitionName:L,tabBarGutter:M,onTabClick:Pe,onTabScroll:P,extra:O,style:D,panes:s,popupClassName:I});return H?q=H(Ee,Je):q=t.createElement(Je,Ee),t.createElement(Ze.Provider,{value:{tabs:g,prefixCls:i}},t.createElement("div",(0,ce.Z)({ref:o,id:r,className:j()(i,"".concat(i,"-").concat(se),(n={},(0,w.Z)(n,"".concat(i,"-mobile"),J),(0,w.Z)(n,"".concat(i,"-editable"),u),(0,w.Z)(n,"".concat(i,"-rtl"),K),n),c)},x),q,t.createElement(Kt,(0,ce.Z)({destroyInactiveTabPane:V},ue,{animated:N}))))}var _e=t.forwardRef(Vt);_e.TabPane=Qe;var jt=_e,zt=jt,Ft=S(53124),Ut=S(97647),Gt=function(e,o){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function et(e){var o=e.type,n=e.className,r=e.size,a=e.onEdit,i=e.hideAdd,c=e.centered,s=e.addIcon,l=Gt(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),v=l.prefixCls,f=l.moreIcon,u=f===void 0?t.createElement(We.Z,null):f,m=t.useContext(Ft.E_),A=m.getPrefixCls,T=m.direction,b=A("tabs",v),M;o==="editable-card"&&(M={onEdit:function(h,p){var L=p.key,V=p.event;a==null||a(h==="add"?V:L,h)},removeIcon:t.createElement(Te.Z,null),addIcon:s||t.createElement(St.Z,null),showAdd:i!==!0});var D=A();return t.createElement(Ut.Z.Consumer,null,function(O){var h,p=r!==void 0?r:O;return t.createElement(zt,(0,ce.Z)({direction:T,moreTransitionName:"".concat(D,"-slide-up")},l,{className:j()((h={},(0,w.Z)(h,"".concat(b,"-").concat(p),p),(0,w.Z)(h,"".concat(b,"-card"),["card","editable-card"].includes(o)),(0,w.Z)(h,"".concat(b,"-editable-card"),o==="editable-card"),(0,w.Z)(h,"".concat(b,"-centered"),c),h),n),editable:M,moreIcon:u,prefixCls:b}))})}et.TabPane=Qe;var Yt=et},18106:function(Et,Be,S){"use strict";var w=S(38663),ce=S.n(w),Te=S(25414),We=S.n(Te)}}]);