Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

2 righe
20 KiB

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