-
Notifications
You must be signed in to change notification settings - Fork 0
/
7c2e612b.js
1 lines (1 loc) · 19.2 KB
/
7c2e612b.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"9ama":function(Ce,ie,b){},ZTPi:function(Ce,ie,b){"use strict";var J=b("wx14"),R=b("rePB"),t=b("q1tI"),h=b("ODXe"),he=b("U8pU"),He=b("Ff2n"),G=b("VTBJ"),Re=b("TSYQ"),V=b.n(Re),Pt=b("Zm9Q"),It=b("5Z9U"),$e=b("6cGi"),Ve=b("KQm4"),oe=b("wgJM"),Ue=b("t23M");function Fe(e){var i=Object(t.useRef)(),n=Object(t.useRef)(!1);function o(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];n.current||(oe.a.cancel(i.current),i.current=Object(oe.a)(function(){e.apply(void 0,r)}))}return Object(t.useEffect)(function(){return function(){n.current=!0,oe.a.cancel(i.current)}},[]),o}function Nt(e){var i=Object(t.useRef)([]),n=Object(t.useState)({}),o=Object(h.a)(n,2),a=o[1],r=Object(t.useRef)(typeof e=="function"?e():e),l=Fe(function(){var c=r.current;i.current.forEach(function(m){c=m(c)}),i.current=[],r.current=c,a({})});function u(c){i.current.push(c),l()}return[r.current,u]}var Z=b("4IlW");function wt(e,i){var n,o=e.prefixCls,a=e.id,r=e.active,l=e.rtl,u=e.tab,c=u.key,m=u.tab,d=u.disabled,v=u.closeIcon,g=e.tabBarGutter,P=e.tabPosition,x=e.closable,p=e.renderWrapper,w=e.removeAriaLabel,k=e.editable,M=e.onClick,W=e.onRemove,I=e.onFocus,N="".concat(o,"-tab");t.useEffect(function(){return W},[]);var T={};P==="top"||P==="bottom"?T[l?"marginLeft":"marginRight"]=g:T.marginBottom=g;var H=k&&x!==!1&&!d;function A(O){d||M(O)}function S(O){O.preventDefault(),O.stopPropagation(),k.onEdit("remove",{key:c,event:O})}var j=t.createElement("div",{key:c,ref:i,className:V()(N,(n={},Object(R.a)(n,"".concat(N,"-with-remove"),H),Object(R.a)(n,"".concat(N,"-active"),r),Object(R.a)(n,"".concat(N,"-disabled"),d),n)),style:T,onClick:A},t.createElement("div",{role:"tab","aria-selected":r,id:a&&"".concat(a,"-tab-").concat(c),className:"".concat(N,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:0,onClick:function(s){s.stopPropagation(),A(s)},onKeyDown:function(s){[Z.a.SPACE,Z.a.ENTER].includes(s.which)&&(s.preventDefault(),A(s))},onFocus:I},m),H&&t.createElement("button",{type:"button","aria-label":w||"remove",tabIndex:0,className:"".concat(N,"-remove"),onClick:function(s){s.stopPropagation(),S(s)}},v||k.removeIcon||"\xD7"));return p&&(j=p(j)),j}var kt=t.forwardRef(wt),Ge={width:0,height:0,left:0,top:0};function Mt(e,i,n){return Object(t.useMemo)(function(){for(var o,a=new Map,r=i.get((o=e[0])===null||o===void 0?void 0:o.key)||Ge,l=r.left+r.width,u=0;u<e.length;u+=1){var c=e[u].key,m=i.get(c);if(!m){var d;m=i.get((d=e[u-1])===null||d===void 0?void 0:d.key)||Ge}var v=a.get(c)||Object(G.a)({},m);v.right=l-v.left-v.width,a.set(c,v)}return a},[e.map(function(o){return o.key}).join("_"),i,n])}var ze={width:0,height:0,left:0,top:0,right:0};function At(e,i,n,o,a){var r=a.tabs,l=a.tabPosition,u=a.rtl,c,m,d;["top","bottom"].includes(l)?(c="width",m=u?"right":"left",d=Math.abs(i.left)):(c="height",m="top",d=-i.top);var v=i[c],g=n[c],P=o[c],x=v;return g+P>v&&(x=v-P),Object(t.useMemo)(function(){if(!r.length)return[0,0];for(var p=r.length,w=p,k=0;k<p;k+=1){var M=e.get(r[k].key)||ze;if(M[m]+M[c]>d+x){w=k-1;break}}for(var W=0,I=p-1;I>=0;I-=1){var N=e.get(r[I].key)||ze;if(N[m]<d){W=I+1;break}}return[W,w]},[e,d,x,l,r.map(function(p){return p.key}).join("_"),u])}var Ye=b("1j5w"),Bt=b("eDIo");function Lt(e,i){var n=e.prefixCls,o=e.editable,a=e.locale,r=e.style;return!o||o.showAdd===!1?null:t.createElement("button",{ref:i,type:"button",className:"".concat(n,"-nav-add"),style:r,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){o.onEdit("add",{event:u})}},o.addIcon||"+")}var Ze=t.forwardRef(Lt);function Wt(e,i){var n=e.prefixCls,o=e.id,a=e.tabs,r=e.locale,l=e.mobile,u=e.moreIcon,c=u===void 0?"More":u,m=e.moreTransitionName,d=e.style,v=e.className,g=e.editable,P=e.tabBarGutter,x=e.rtl,p=e.onTabClick,w=Object(t.useState)(!1),k=Object(h.a)(w,2),M=k[0],W=k[1],I=Object(t.useState)(null),N=Object(h.a)(I,2),T=N[0],H=N[1],A="".concat(o,"-more-popup"),S="".concat(n,"-dropdown"),j=T!==null?"".concat(A,"-").concat(T):null,O=r==null?void 0:r.dropdownAriaLabel,s=t.createElement(Ye.f,{onClick:function(D){var U=D.key,F=D.domEvent;p(U,F),W(!1)},id:A,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[T],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(C){return t.createElement(Ye.d,{key:C.key,id:"".concat(A,"-").concat(C.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(C.key),disabled:C.disabled},C.tab)}));function E(C){for(var D=a.filter(function(_){return!_.disabled}),U=D.findIndex(function(_){return _.key===T})||0,F=D.length,q=0;q<F;q+=1){U=(U+C+F)%F;var z=D[U];if(!z.disabled){H(z.key);return}}}function B(C){var D=C.which;if(!M){[Z.a.DOWN,Z.a.SPACE,Z.a.ENTER].includes(D)&&(W(!0),C.preventDefault());return}switch(D){case Z.a.UP:E(-1),C.preventDefault();break;case Z.a.DOWN:E(1),C.preventDefault();break;case Z.a.ESC:W(!1);break;case Z.a.SPACE:case Z.a.ENTER:T!==null&&p(T,C);break}}Object(t.useEffect)(function(){var C=document.getElementById(j);C&&C.scrollIntoView&&C.scrollIntoView(!1)},[T]),Object(t.useEffect)(function(){M||H(null)},[M]);var L=Object(R.a)({},x?"marginLeft":"marginRight",P);a.length||(L.visibility="hidden",L.order=1);var Q=V()(Object(R.a)({},"".concat(S,"-rtl"),x)),te=l?null:t.createElement(Bt.a,{prefixCls:S,overlay:s,trigger:["hover"],visible:M,transitionName:m,onVisibleChange:W,overlayClassName:Q,mouseEnterDelay:.1,mouseLeaveDelay:.1},t.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":A,id:"".concat(o,"-more"),"aria-expanded":M,onKeyDown:B},c));return t.createElement("div",{className:V()("".concat(n,"-nav-operations"),v),style:d,ref:i},te,t.createElement(Ze,{prefixCls:n,locale:r,editable:g}))}var Dt=t.forwardRef(Wt),Pe=Object(t.createContext)(null),Kt=.1,Xe=.01,pe=20,Je=Math.pow(.995,pe);function Ht(e,i){var n=Object(t.useState)(),o=Object(h.a)(n,2),a=o[0],r=o[1],l=Object(t.useState)(0),u=Object(h.a)(l,2),c=u[0],m=u[1],d=Object(t.useState)(0),v=Object(h.a)(d,2),g=v[0],P=v[1],x=Object(t.useState)(),p=Object(h.a)(x,2),w=p[0],k=p[1],M=Object(t.useRef)();function W(S){var j=S.touches[0],O=j.screenX,s=j.screenY;r({x:O,y:s}),window.clearInterval(M.current)}function I(S){if(!!a){S.preventDefault();var j=S.touches[0],O=j.screenX,s=j.screenY;r({x:O,y:s});var E=O-a.x,B=s-a.y;i(E,B);var L=Date.now();m(L),P(L-c),k({x:E,y:B})}}function N(){if(!!a&&(r(null),k(null),w)){var S=w.x/g,j=w.y/g,O=Math.abs(S),s=Math.abs(j);if(Math.max(O,s)<Kt)return;var E=S,B=j;M.current=window.setInterval(function(){if(Math.abs(E)<Xe&&Math.abs(B)<Xe){window.clearInterval(M.current);return}E*=Je,B*=Je,i(E*pe,B*pe)},pe)}}var T=Object(t.useRef)();function H(S){var j=S.deltaX,O=S.deltaY,s=0,E=Math.abs(j),B=Math.abs(O);E===B?s=T.current==="x"?j:O:E>B?(s=j,T.current="x"):(s=O,T.current="y"),i(-s,-s)&&S.preventDefault()}var A=Object(t.useRef)(null);A.current={onTouchStart:W,onTouchMove:I,onTouchEnd:N,onWheel:H},t.useEffect(function(){function S(E){A.current.onTouchStart(E)}function j(E){A.current.onTouchMove(E)}function O(E){A.current.onTouchEnd(E)}function s(E){A.current.onWheel(E)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),e.current.addEventListener("touchstart",S,{passive:!1}),e.current.addEventListener("wheel",s),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",O)}},[])}function $t(){var e=Object(t.useRef)(new Map);function i(o){return e.current.has(o)||e.current.set(o,t.createRef()),e.current.get(o)}function n(o){e.current.delete(o)}return[i,n]}function Qe(e,i){var n=t.useRef(e),o=t.useState({}),a=Object(h.a)(o,2),r=a[1];function l(u){var c=typeof u=="function"?u(n.current):u;c!==n.current&&i(c,n.current),n.current=c,r({})}return[n.current,l]}var qe=function(i){var n=i.position,o=i.prefixCls,a=i.extra;if(!a)return null;var r,l=a;return n==="right"&&(r=l.right||!l.left&&l||null),n==="left"&&(r=l.left||null),r?t.createElement("div",{className:"".concat(o,"-extra-content")},r):null};function Vt(e,i){var n,o=t.useContext(Pe),a=o.prefixCls,r=o.tabs,l=e.className,u=e.style,c=e.id,m=e.animated,d=e.activeKey,v=e.rtl,g=e.extra,P=e.editable,x=e.locale,p=e.tabPosition,w=e.tabBarGutter,k=e.children,M=e.onTabClick,W=e.onTabScroll,I=Object(t.useRef)(),N=Object(t.useRef)(),T=Object(t.useRef)(),H=Object(t.useRef)(),A=$t(),S=Object(h.a)(A,2),j=S[0],O=S[1],s=p==="top"||p==="bottom",E=Qe(0,function(y,f){s&&W&&W({direction:y>f?"left":"right"})}),B=Object(h.a)(E,2),L=B[0],Q=B[1],te=Qe(0,function(y,f){!s&&W&&W({direction:y>f?"top":"bottom"})}),C=Object(h.a)(te,2),D=C[0],U=C[1],F=Object(t.useState)(0),q=Object(h.a)(F,2),z=q[0],_=q[1],Oe=Object(t.useState)(0),ye=Object(h.a)(Oe,2),ce=ye[0],ge=ye[1],Ie=Object(t.useState)(0),je=Object(h.a)(Ie,2),se=je[0],Ne=je[1],Se=Object(t.useState)(0),ne=Object(h.a)(Se,2),Ee=ne[0],K=ne[1],ae=Object(t.useState)(null),xe=Object(h.a)(ae,2),X=xe[0],ea=xe[1],ta=Object(t.useState)(null),rt=Object(h.a)(ta,2),re=rt[0],aa=rt[1],na=Object(t.useState)(0),it=Object(h.a)(na,2),ra=it[0],ia=it[1],oa=Object(t.useState)(0),ot=Object(h.a)(oa,2),ca=ot[0],sa=ot[1],la=Nt(new Map),ct=Object(h.a)(la,2),ua=ct[0],da=ct[1],Te=Mt(r,ua,z),st="".concat(a,"-nav-operations-hidden"),le=0,ue=0;s?v?(le=0,ue=Math.max(0,z-X)):(le=Math.min(0,X-z),ue=0):(le=Math.min(0,re-ce),ue=0);function we(y){return y<le?le:y>ue?ue:y}var lt=Object(t.useRef)(),va=Object(t.useState)(),ut=Object(h.a)(va,2),ke=ut[0],dt=ut[1];function Me(){dt(Date.now())}function Ae(){window.clearTimeout(lt.current)}Ht(I,function(y,f){function $(Y,ve){Y(function(fe){var be=we(fe+ve);return be})}if(s){if(X>=z)return!1;$(Q,y)}else{if(re>=ce)return!1;$(U,f)}return Ae(),Me(),!0}),Object(t.useEffect)(function(){return Ae(),ke&&(lt.current=window.setTimeout(function(){dt(0)},100)),Ae},[ke]);function vt(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,f=Te.get(y)||{width:0,height:0,left:0,right:0,top:0};if(s){var $=L;v?f.right<L?$=f.right:f.right+f.width>L+X&&($=f.right+f.width-X):f.left<-L?$=-f.left:f.left+f.width>-L+X&&($=-(f.left+f.width-X)),U(0),Q(we($))}else{var Y=D;f.top<-D?Y=-f.top:f.top+f.height>-D+re&&(Y=-(f.top+f.height-re)),Q(0),U(we(Y))}}var fa=At(Te,{width:X,height:re,left:L,top:D},{width:se,height:Ee},{width:ra,height:ca},Object(G.a)(Object(G.a)({},e),{},{tabs:r})),ft=Object(h.a)(fa,2),ba=ft[0],ma=ft[1],ha=r.map(function(y){var f=y.key;return t.createElement(kt,{id:c,prefixCls:a,key:f,rtl:v,tab:y,closable:y.closable,editable:P,active:f===d,tabPosition:p,tabBarGutter:w,renderWrapper:k,removeAriaLabel:x==null?void 0:x.removeAriaLabel,ref:j(f),onClick:function(Y){M(f,Y)},onRemove:function(){O(f)},onFocus:function(){vt(f),Me(),v||(I.current.scrollLeft=0),I.current.scrollTop=0}})}),Be=Fe(function(){var y,f,$,Y,ve,fe,be,De,Ke,Sa=((y=I.current)===null||y===void 0?void 0:y.offsetWidth)||0,Ea=((f=I.current)===null||f===void 0?void 0:f.offsetHeight)||0,jt=(($=H.current)===null||$===void 0?void 0:$.offsetWidth)||0,St=((Y=H.current)===null||Y===void 0?void 0:Y.offsetHeight)||0,xa=((ve=T.current)===null||ve===void 0?void 0:ve.offsetWidth)||0,Ta=((fe=T.current)===null||fe===void 0?void 0:fe.offsetHeight)||0;ea(Sa),aa(Ea),ia(jt),sa(St);var Et=(((be=N.current)===null||be===void 0?void 0:be.offsetWidth)||0)-jt,xt=(((De=N.current)===null||De===void 0?void 0:De.offsetHeight)||0)-St;_(Et),ge(xt);var Tt=(Ke=T.current)===null||Ke===void 0?void 0:Ke.className.includes(st);Ne(Et-(Tt?0:xa)),K(xt-(Tt?0:Ta)),da(function(){var Ct=new Map;return r.forEach(function(Ca){var Rt=Ca.key,me=j(Rt).current;me&&Ct.set(Rt,{width:me.offsetWidth,height:me.offsetHeight,left:me.offsetLeft,top:me.offsetTop})}),Ct})}),pa=r.slice(0,ba),Oa=r.slice(ma+1),bt=[].concat(Object(Ve.a)(pa),Object(Ve.a)(Oa)),ya=Object(t.useState)(),mt=Object(h.a)(ya,2),ga=mt[0],ja=mt[1],ee=Te.get(d),ht=Object(t.useRef)();function pt(){oe.a.cancel(ht.current)}Object(t.useEffect)(function(){var y={};return ee&&(s?(v?y.right=ee.right:y.left=ee.left,y.width=ee.width):(y.top=ee.top,y.height=ee.height)),pt(),ht.current=Object(oe.a)(function(){ja(y)}),pt},[ee,s,v]),Object(t.useEffect)(function(){vt()},[d,ee,Te,s]),Object(t.useEffect)(function(){Be()},[v,w,d,r.map(function(y){return y.key}).join("_")]);var Ot=!!bt.length,de="".concat(a,"-nav-wrap"),Le,We,yt,gt;return s?v?(We=L>0,Le=L+X<z):(Le=L<0,We=-L+X<z):(yt=D<0,gt=-D+re<ce),t.createElement("div",{ref:i,role:"tablist",className:V()("".concat(a,"-nav"),l),style:u,onKeyDown:function(){Me()}},t.createElement(qe,{position:"left",extra:g,prefixCls:a}),t.createElement(Ue.a,{onResize:Be},t.createElement("div",{className:V()(de,(n={},Object(R.a)(n,"".concat(de,"-ping-left"),Le),Object(R.a)(n,"".concat(de,"-ping-right"),We),Object(R.a)(n,"".concat(de,"-ping-top"),yt),Object(R.a)(n,"".concat(de,"-ping-bottom"),gt),n)),ref:I},t.createElement(Ue.a,{onResize:Be},t.createElement("div",{ref:N,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(D,"px)"),transition:ke?"none":void 0}},ha,t.createElement(Ze,{ref:H,prefixCls:a,locale:x,editable:P,style:{visibility:Ot?"hidden":null}}),t.createElement("div",{className:V()("".concat(a,"-ink-bar"),Object(R.a)({},"".concat(a,"-ink-bar-animated"),m.inkBar)),style:ga}))))),t.createElement(Dt,Object(J.a)({},e,{ref:T,prefixCls:a,tabs:bt,className:!Ot&&st})),t.createElement(qe,{position:"right",extra:g,prefixCls:a}))}var _e=t.forwardRef(Vt);function Ut(e){var i=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,r=e.rtl,l=e.destroyInactiveTabPane,u=t.useContext(Pe),c=u.prefixCls,m=u.tabs,d=o.tabPane,v=m.findIndex(function(g){return g.key===n});return t.createElement("div",{className:V()("".concat(c,"-content-holder"))},t.createElement("div",{className:V()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),Object(R.a)({},"".concat(c,"-content-animated"),d)),style:v&&d?Object(R.a)({},r?"marginRight":"marginLeft","-".concat(v,"00%")):null},m.map(function(g){return t.cloneElement(g.node,{key:g.key,prefixCls:c,tabKey:g.key,id:i,animated:d,active:g.key===n,destroyInactiveTabPane:l})})))}function et(e){var i=e.prefixCls,n=e.forceRender,o=e.className,a=e.style,r=e.id,l=e.active,u=e.animated,c=e.destroyInactiveTabPane,m=e.tabKey,d=e.children,v=t.useState(n),g=Object(h.a)(v,2),P=g[0],x=g[1];t.useEffect(function(){l?x(!0):c&&x(!1)},[l,c]);var p={};return l||(u?(p.visibility="hidden",p.height=0,p.overflowY="hidden"):p.display="none"),t.createElement("div",{id:r&&"".concat(r,"-panel-").concat(m),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":r&&"".concat(r,"-tab-").concat(m),"aria-hidden":!l,style:Object(G.a)(Object(G.a)({},p),a),className:V()("".concat(i,"-tabpane"),l&&"".concat(i,"-tabpane-active"),o)},(l||P||n)&&d)}var tt=0;function Ft(e){return Object(Pt.a)(e).map(function(i){if(t.isValidElement(i)){var n=i.key!==void 0?String(i.key):void 0;return Object(G.a)(Object(G.a)({key:n},i.props),{},{node:i})}return null}).filter(function(i){return i})}function Gt(e,i){var n,o=e.id,a=e.prefixCls,r=a===void 0?"rc-tabs":a,l=e.className,u=e.children,c=e.direction,m=e.activeKey,d=e.defaultActiveKey,v=e.editable,g=e.animated,P=g===void 0?{inkBar:!0,tabPane:!1}:g,x=e.tabPosition,p=x===void 0?"top":x,w=e.tabBarGutter,k=e.tabBarStyle,M=e.tabBarExtraContent,W=e.locale,I=e.moreIcon,N=e.moreTransitionName,T=e.destroyInactiveTabPane,H=e.renderTabBar,A=e.onChange,S=e.onTabClick,j=e.onTabScroll,O=Object(He.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),s=Ft(u),E=c==="rtl",B;P===!1?B={inkBar:!1,tabPane:!1}:P===!0?B={inkBar:!0,tabPane:!0}:B=Object(G.a)({inkBar:!0,tabPane:!1},Object(he.a)(P)==="object"?P:{});var L=Object(t.useState)(!1),Q=Object(h.a)(L,2),te=Q[0],C=Q[1];Object(t.useEffect)(function(){C(Object(It.a)())},[]);var D=Object($e.a)(function(){var K;return(K=s[0])===null||K===void 0?void 0:K.key},{value:m,defaultValue:d}),U=Object(h.a)(D,2),F=U[0],q=U[1],z=Object(t.useState)(function(){return s.findIndex(function(K){return K.key===F})}),_=Object(h.a)(z,2),Oe=_[0],ye=_[1];Object(t.useEffect)(function(){var K=s.findIndex(function(xe){return xe.key===F});if(K===-1){var ae;K=Math.max(0,Math.min(Oe,s.length-1)),q((ae=s[K])===null||ae===void 0?void 0:ae.key)}ye(K)},[s.map(function(K){return K.key}).join("_"),F,Oe]);var ce=Object($e.a)(null,{value:o}),ge=Object(h.a)(ce,2),Ie=ge[0],je=ge[1],se=p;te&&!["left","right"].includes(p)&&(se="top"),Object(t.useEffect)(function(){o||(je("rc-tabs-".concat(tt)),tt+=1)},[]);function Ne(K,ae){S==null||S(K,ae),q(K),A==null||A(K)}var Se={id:Ie,activeKey:F,animated:B,tabPosition:se,rtl:E,mobile:te},ne,Ee=Object(G.a)(Object(G.a)({},Se),{},{editable:v,locale:W,moreIcon:I,moreTransitionName:N,tabBarGutter:w,onTabClick:Ne,onTabScroll:j,extra:M,style:k,panes:u});return H?ne=H(Ee,_e):ne=t.createElement(_e,Ee),t.createElement(Pe.Provider,{value:{tabs:s,prefixCls:r}},t.createElement("div",Object(J.a)({ref:i,id:o,className:V()(r,"".concat(r,"-").concat(se),(n={},Object(R.a)(n,"".concat(r,"-mobile"),te),Object(R.a)(n,"".concat(r,"-editable"),v),Object(R.a)(n,"".concat(r,"-rtl"),E),n),l)},O),ne,t.createElement(Ut,Object(J.a)({destroyInactiveTabPane:T},Se,{animated:B}))))}var at=t.forwardRef(Gt);at.TabPane=et;var zt=at,Yt=zt,Zt=b("GZ0F"),Xt=b("xvlK"),Jt=b("4i/N"),Qt=b("uaoM"),qt=b("H84U"),_t=function(e,i){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&i.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function nt(e){var i,n=e.type,o=e.className,a=e.size,r=e.onEdit,l=e.hideAdd,u=e.centered,c=e.addIcon,m=_t(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),d=m.prefixCls,v=m.moreIcon,g=v===void 0?t.createElement(Zt.a,null):v,P=t.useContext(qt.b),x=P.getPrefixCls,p=P.direction,w=x("tabs",d),k;n==="editable-card"&&(k={onEdit:function(I,N){var T=N.key,H=N.event;r==null||r(I==="add"?H:T,I)},removeIcon:t.createElement(Jt.a,null),addIcon:c||t.createElement(Xt.a,null),showAdd:l!==!0});var M=x();return Object(Qt.a)(!("onPrevClick"in m)&&!("onNextClick"in m),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),t.createElement(Yt,Object(J.a)({direction:p,moreTransitionName:"".concat(M,"-slide-up")},m,{className:V()((i={},Object(R.a)(i,"".concat(w,"-").concat(a),a),Object(R.a)(i,"".concat(w,"-card"),["card","editable-card"].includes(n)),Object(R.a)(i,"".concat(w,"-editable-card"),n==="editable-card"),Object(R.a)(i,"".concat(w,"-centered"),u),i),o),editable:k,moreIcon:g,prefixCls:w}))}nt.TabPane=et;var Ra=ie.a=nt},"Znn+":function(Ce,ie,b){"use strict";var J=b("cIOH"),R=b.n(J),t=b("9ama"),h=b.n(t)},xvlK:function(Ce,ie,b){"use strict";var J=b("q1tI"),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},t=R,h=b("6VBw"),he=function(Re,V){return J.createElement(h.a,Object.assign({},Re,{ref:V,icon:t}))};he.displayName="PlusOutlined";var He=ie.a=J.forwardRef(he)}}]);