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.
 
 
 

3 lines
35 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[169],{42110:function(je,me){var b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};me.Z=b},16250:function(je,me){const b=()=>null;me.Z=b},13169:function(je,me,b){b.d(me,{Z:function(){return Oa}});var n=b(67294),Tt=b(62208),Pt=b(35872),re=b(87462),Et=b(42110),Rt=b(93771),It=function(t,a){return n.createElement(Rt.Z,(0,re.Z)({},t,{ref:a,icon:Et.Z}))},wt=n.forwardRef(It),Zt=b(93967),j=b.n(Zt),k=b(4942),Y=b(1413),w=b(97685),Le=b(71002),ye=b(91),ke=b(21770),Lt=b(31131),xe=(0,n.createContext)(null),Xe=b(74902),Ne=b(9220),Nt=b(66680),zt=b(42550),Ke=b(75164),Mt=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,u=s===void 0?"center":s,m=(0,n.useState)(),$=(0,w.Z)(m,2),S=$[0],T=$[1],L=(0,n.useRef)(),P=n.useCallback(function(g){return typeof o=="function"?o(g):typeof o=="number"?o:g},[o]);function Z(){Ke.Z.cancel(L.current)}return(0,n.useEffect)(function(){var g={};if(a)if(r){g.width=P(a.width);var v=i?"right":"left";u==="start"&&(g[v]=a[v]),u==="center"&&(g[v]=a[v]+a.width/2,g.transform=i?"translateX(50%)":"translateX(-50%)"),u==="end"&&(g[v]=a[v]+a.width,g.transform="translateX(-100%)")}else g.height=P(a.height),u==="start"&&(g.top=a.top),u==="center"&&(g.top=a.top+a.height/2,g.transform="translateY(-50%)"),u==="end"&&(g.top=a.top+a.height,g.transform="translateY(-100%)");return Z(),L.current=(0,Ke.Z)(function(){T(g)}),Z},[a,r,i,u,P]),{style:S}},Bt=Mt,Ve={width:0,height:0,left:0,top:0};function Ot(e,t,a){return(0,n.useMemo)(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ve,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,u=t.get(s);if(!u){var m;u=t.get((m=e[o-1])===null||m===void 0?void 0:m.key)||Ve}var $=i.get(s)||(0,Y.Z)({},u);$.right=c-$.left-$.width,i.set(s,$)}return i},[e.map(function(r){return r.key}).join("_"),t,a])}function Fe(e,t){var a=n.useRef(e),r=n.useState({}),i=(0,w.Z)(r,2),l=i[1];function c(o){var s=typeof o=="function"?o(a.current):o;s!==a.current&&t(s,a.current),a.current=s,l({})}return[a.current,c]}var _t=.1,Ue=.01,Ce=20,Ye=Math.pow(.995,Ce);function At(e,t){var a=(0,n.useState)(),r=(0,w.Z)(a,2),i=r[0],l=r[1],c=(0,n.useState)(0),o=(0,w.Z)(c,2),s=o[0],u=o[1],m=(0,n.useState)(0),$=(0,w.Z)(m,2),S=$[0],T=$[1],L=(0,n.useState)(),P=(0,w.Z)(L,2),Z=P[0],g=P[1],v=(0,n.useRef)();function N(f){var R=f.touches[0],h=R.screenX,I=R.screenY;l({x:h,y:I}),window.clearInterval(v.current)}function D(f){if(i){f.preventDefault();var R=f.touches[0],h=R.screenX,I=R.screenY;l({x:h,y:I});var d=h-i.x,C=I-i.y;t(d,C);var F=Date.now();u(F),T(F-s),g({x:d,y:C})}}function W(){if(i&&(l(null),g(null),Z)){var f=Z.x/S,R=Z.y/S,h=Math.abs(f),I=Math.abs(R);if(Math.max(h,I)<_t)return;var d=f,C=R;v.current=window.setInterval(function(){if(Math.abs(d)<Ue&&Math.abs(C)<Ue){window.clearInterval(v.current);return}d*=Ye,C*=Ye,t(d*Ce,C*Ce)},Ce)}}var B=(0,n.useRef)();function _(f){var R=f.deltaX,h=f.deltaY,I=0,d=Math.abs(R),C=Math.abs(h);d===C?I=B.current==="x"?R:h:d>C?(I=R,B.current="x"):(I=h,B.current="y"),t(-I,-I)&&f.preventDefault()}var E=(0,n.useRef)(null);E.current={onTouchStart:N,onTouchMove:D,onTouchEnd:W,onWheel:_},n.useEffect(function(){function f(d){E.current.onTouchStart(d)}function R(d){E.current.onTouchMove(d)}function h(d){E.current.onTouchEnd(d)}function I(d){E.current.onWheel(d)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",h,{passive:!1}),e.current.addEventListener("touchstart",f,{passive:!1}),e.current.addEventListener("wheel",I),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",h)}},[])}var Dt=b(8410);function Qe(e){var t=(0,n.useState)(0),a=(0,w.Z)(t,2),r=a[0],i=a[1],l=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,Dt.o)(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function Wt(e){var t=(0,n.useRef)([]),a=(0,n.useState)({}),r=(0,w.Z)(a,2),i=r[1],l=(0,n.useRef)(typeof e=="function"?e():e),c=Qe(function(){var s=l.current;t.current.forEach(function(u){s=u(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var Je={width:0,height:0,left:0,top:0,right:0};function Ht(e,t,a,r,i,l,c){var o=c.tabs,s=c.tabPosition,u=c.rtl,m,$,S;return["top","bottom"].includes(s)?(m="width",$=u?"right":"left",S=Math.abs(a)):(m="height",$="top",S=-a),(0,n.useMemo)(function(){if(!o.length)return[0,0];for(var T=o.length,L=T,P=0;P<T;P+=1){var Z=e.get(o[P].key)||Je;if(Z[$]+Z[m]>S+t){L=P-1;break}}for(var g=0,v=T-1;v>=0;v-=1){var N=e.get(o[v].key)||Je;if(N[$]<S){g=v+1;break}}return g>=L?[0,0]:[g,L]},[e,t,r,i,l,S,s,o.map(function(T){return T.key}).join("_"),u])}function qe(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var Gt="TABS_DQ";function et(e){return String(e).replace(/"/g,Gt)}function tt(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var jt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),at=jt,kt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return(0,Le.Z)(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(l=c.right),a==="left"&&(l=c.left),l?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),nt=kt,Xt=b(29171),rt=b(72512),ee=b(15105),Kt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.moreIcon,s=o===void 0?"More":o,u=e.moreTransitionName,m=e.style,$=e.className,S=e.editable,T=e.tabBarGutter,L=e.rtl,P=e.removeAriaLabel,Z=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,N=(0,n.useState)(!1),D=(0,w.Z)(N,2),W=D[0],B=D[1],_=(0,n.useState)(null),E=(0,w.Z)(_,2),f=E[0],R=E[1],h="".concat(r,"-more-popup"),I="".concat(a,"-dropdown"),d=f!==null?"".concat(h,"-").concat(f):null,C=l==null?void 0:l.dropdownAriaLabel;function F(x,O){x.preventDefault(),x.stopPropagation(),S.onEdit("remove",{key:O,event:x})}var X=n.createElement(rt.ZP,{onClick:function(O){var V=O.key,H=O.domEvent;Z(V,H),B(!1)},prefixCls:"".concat(I,"-menu"),id:h,tabIndex:-1,role:"listbox","aria-activedescendant":d,selectedKeys:[f],"aria-label":C!==void 0?C:"expanded dropdown"},i.map(function(x){var O=x.closable,V=x.disabled,H=x.closeIcon,G=x.key,ae=x.label,q=tt(O,H,S,V);return n.createElement(rt.sN,{key:G,id:"".concat(h,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:V},n.createElement("span",null,ae),q&&n.createElement("button",{type:"button","aria-label":P||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),F(le,G)}},H||S.removeIcon||"\xD7"))}));function Q(x){for(var O=i.filter(function(q){return!q.disabled}),V=O.findIndex(function(q){return q.key===f})||0,H=O.length,G=0;G<H;G+=1){V=(V+x+H)%H;var ae=O[V];if(!ae.disabled){R(ae.key);return}}}function K(x){var O=x.which;if(!W){[ee.Z.DOWN,ee.Z.SPACE,ee.Z.ENTER].includes(O)&&(B(!0),x.preventDefault());return}switch(O){case ee.Z.UP:Q(-1),x.preventDefault();break;case ee.Z.DOWN:Q(1),x.preventDefault();break;case ee.Z.ESC:B(!1);break;case ee.Z.SPACE:case ee.Z.ENTER:f!==null&&Z(f,x);break}}(0,n.useEffect)(function(){var x=document.getElementById(d);x&&x.scrollIntoView&&x.scrollIntoView(!1)},[f]),(0,n.useEffect)(function(){W||R(null)},[W]);var J=(0,k.Z)({},L?"marginRight":"marginLeft",T);i.length||(J.visibility="hidden",J.order=1);var ie=j()((0,k.Z)({},"".concat(I,"-rtl"),L)),te=c?null:n.createElement(Xt.Z,{prefixCls:I,overlay:X,trigger:["hover"],visible:i.length?W:!1,transitionName:u,onVisibleChange:B,overlayClassName:j()(ie,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},n.createElement("button",{type:"button",className:"".concat(a,"-nav-more"),style:J,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":h,id:"".concat(r,"-more"),"aria-expanded":W,onKeyDown:K},s));return n.createElement("div",{className:j()("".concat(a,"-nav-operations"),$),style:m,ref:t},te,n.createElement(at,{prefixCls:a,locale:l,editable:S}))}),Vt=n.memo(Kt,function(e,t){return t.tabMoving}),Ft=function(t){var a=t.prefixCls,r=t.id,i=t.active,l=t.tab,c=l.key,o=l.label,s=l.disabled,u=l.closeIcon,m=l.icon,$=t.closable,S=t.renderWrapper,T=t.removeAriaLabel,L=t.editable,P=t.onClick,Z=t.onFocus,g=t.style,v="".concat(a,"-tab"),N=tt($,u,L,s);function D(E){s||P(E)}function W(E){E.preventDefault(),E.stopPropagation(),L.onEdit("remove",{key:c,event:E})}var B=n.useMemo(function(){return m&&typeof o=="string"?n.createElement("span",null,o):o},[o,m]),_=n.createElement("div",{key:c,"data-node-key":et(c),className:j()(v,(0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(v,"-with-remove"),N),"".concat(v,"-active"),i),"".concat(v,"-disabled"),s)),style:g,onClick:D},n.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(c),className:"".concat(v,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(c),"aria-disabled":s,tabIndex:s?null:0,onClick:function(f){f.stopPropagation(),D(f)},onKeyDown:function(f){[ee.Z.SPACE,ee.Z.ENTER].includes(f.which)&&(f.preventDefault(),D(f))},onFocus:Z},m&&n.createElement("span",{className:"".concat(v,"-icon")},m),o&&B),N&&n.createElement("button",{type:"button","aria-label":T||"remove",tabIndex:0,className:"".concat(v,"-remove"),onClick:function(f){f.stopPropagation(),W(f)}},u||L.removeIcon||"\xD7"));return S?S(_):_},Ut=Ft,Yt=function(t,a){var r=t.offsetWidth,i=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,o=t.getBoundingClientRect(),s=o.width,u=o.height,m=o.x,$=o.y;return Math.abs(s-r)<1?[s,u,m-a.x,$-a.y]:[r,i,c,l]},fe=function(t){var a=t.current||{},r=a.offsetWidth,i=r===void 0?0:r,l=a.offsetHeight,c=l===void 0?0:l;if(t.current){var o=t.current.getBoundingClientRect(),s=o.width,u=o.height;if(Math.abs(s-i)<1)return[s,u]}return[i,c]},Te=function(t,a){return t[a?0:1]},Qt=n.forwardRef(function(e,t){var a=e.className,r=e.style,i=e.id,l=e.animated,c=e.activeKey,o=e.rtl,s=e.extra,u=e.editable,m=e.locale,$=e.tabPosition,S=e.tabBarGutter,T=e.children,L=e.onTabClick,P=e.onTabScroll,Z=e.indicator,g=n.useContext(xe),v=g.prefixCls,N=g.tabs,D=(0,n.useRef)(null),W=(0,n.useRef)(null),B=(0,n.useRef)(null),_=(0,n.useRef)(null),E=(0,n.useRef)(null),f=(0,n.useRef)(null),R=(0,n.useRef)(null),h=$==="top"||$==="bottom",I=Fe(0,function(M,y){h&&P&&P({direction:M>y?"left":"right"})}),d=(0,w.Z)(I,2),C=d[0],F=d[1],X=Fe(0,function(M,y){!h&&P&&P({direction:M>y?"top":"bottom"})}),Q=(0,w.Z)(X,2),K=Q[0],J=Q[1],ie=(0,n.useState)([0,0]),te=(0,w.Z)(ie,2),x=te[0],O=te[1],V=(0,n.useState)([0,0]),H=(0,w.Z)(V,2),G=H[0],ae=H[1],q=(0,n.useState)([0,0]),oe=(0,w.Z)(q,2),le=oe[0],he=oe[1],ze=(0,n.useState)([0,0]),pe=(0,w.Z)(ze,2),Me=pe[0],z=pe[1],de=Wt(new Map),be=(0,w.Z)(de,2),_a=be[0],Aa=be[1],Pe=Ot(N,_a,G[0]),Be=Te(x,h),$e=Te(G,h),Oe=Te(le,h),dt=Te(Me,h),ut=Be<$e+Oe,ne=ut?Be-dt:Be-Oe,Da="".concat(v,"-nav-operations-hidden"),ce=0,ue=0;h&&o?(ce=0,ue=Math.max(0,$e-ne)):(ce=Math.min(0,ne-$e),ue=0);function _e(M){return M<ce?ce:M>ue?ue:M}var Ae=(0,n.useRef)(null),Wa=(0,n.useState)(),vt=(0,w.Z)(Wa,2),Ee=vt[0],ft=vt[1];function De(){ft(Date.now())}function We(){Ae.current&&clearTimeout(Ae.current)}At(_,function(M,y){function A(U,ve){U(function(se){var we=_e(se+ve);return we})}return ut?(h?A(F,M):A(J,y),We(),De(),!0):!1}),(0,n.useEffect)(function(){return We(),Ee&&(Ae.current=setTimeout(function(){ft(0)},100)),We},[Ee]);var Ha=Ht(Pe,ne,h?C:K,$e,Oe,dt,(0,Y.Z)((0,Y.Z)({},e),{},{tabs:N})),bt=(0,w.Z)(Ha,2),Ga=bt[0],ja=bt[1],mt=(0,Nt.Z)(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,y=Pe.get(M)||{width:0,height:0,left:0,right:0,top:0};if(h){var A=C;o?y.right<C?A=y.right:y.right+y.width>C+ne&&(A=y.right+y.width-ne):y.left<-C?A=-y.left:y.left+y.width>-C+ne&&(A=-(y.left+y.width-ne)),J(0),F(_e(A))}else{var U=K;y.top<-K?U=-y.top:y.top+y.height>-K+ne&&(U=-(y.top+y.height-ne)),F(0),J(_e(U))}}),Re={};$==="top"||$==="bottom"?Re[o?"marginRight":"marginLeft"]=S:Re.marginTop=S;var gt=N.map(function(M,y){var A=M.key;return n.createElement(Ut,{id:i,prefixCls:v,key:A,tab:M,style:y===0?void 0:Re,closable:M.closable,editable:u,active:A===c,renderWrapper:T,removeAriaLabel:m==null?void 0:m.removeAriaLabel,onClick:function(ve){L(A,ve)},onFocus:function(){mt(A),De(),_.current&&(o||(_.current.scrollLeft=0),_.current.scrollTop=0)}})}),ht=function(){return Aa(function(){var y,A=new Map,U=(y=E.current)===null||y===void 0?void 0:y.getBoundingClientRect();return N.forEach(function(ve){var se,we=ve.key,Ct=(se=E.current)===null||se===void 0?void 0:se.querySelector('[data-node-key="'.concat(et(we),'"]'));if(Ct){var Fa=Yt(Ct,U),Ze=(0,w.Z)(Fa,4),Ua=Ze[0],Ya=Ze[1],Qa=Ze[2],Ja=Ze[3];A.set(we,{width:Ua,height:Ya,left:Qa,top:Ja})}}),A})};(0,n.useEffect)(function(){ht()},[N.map(function(M){return M.key}).join("_")]);var Ie=Qe(function(){var M=fe(D),y=fe(W),A=fe(B);O([M[0]-y[0]-A[0],M[1]-y[1]-A[1]]);var U=fe(R);he(U);var ve=fe(f);z(ve);var se=fe(E);ae([se[0]-U[0],se[1]-U[1]]),ht()}),ka=N.slice(0,Ga),Xa=N.slice(ja+1),pt=[].concat((0,Xe.Z)(ka),(0,Xe.Z)(Xa)),$t=Pe.get(c),Ka=Bt({activeTabOffset:$t,horizontal:h,indicator:Z,rtl:o}),Va=Ka.style;(0,n.useEffect)(function(){mt()},[c,ce,ue,qe($t),qe(Pe),h]),(0,n.useEffect)(function(){Ie()},[o]);var St=!!pt.length,Se="".concat(v,"-nav-wrap"),He,Ge,yt,xt;return h?o?(Ge=C>0,He=C!==ue):(He=C<0,Ge=C!==ce):(yt=K<0,xt=K!==ce),n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{ref:(0,zt.x1)(t,D),role:"tablist",className:j()("".concat(v,"-nav"),a),style:r,onKeyDown:function(){De()}},n.createElement(nt,{ref:W,position:"left",extra:s,prefixCls:v}),n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{className:j()(Se,(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(Se,"-ping-left"),He),"".concat(Se,"-ping-right"),Ge),"".concat(Se,"-ping-top"),yt),"".concat(Se,"-ping-bottom"),xt)),ref:_},n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{ref:E,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(K,"px)"),transition:Ee?"none":void 0}},gt,n.createElement(at,{ref:R,prefixCls:v,locale:m,editable:u,style:(0,Y.Z)((0,Y.Z)({},gt.length===0?void 0:Re),{},{visibility:St?"hidden":null})}),n.createElement("div",{className:j()("".concat(v,"-ink-bar"),(0,k.Z)({},"".concat(v,"-ink-bar-animated"),l.inkBar)),style:Va}))))),n.createElement(Vt,(0,re.Z)({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:f,prefixCls:v,tabs:pt,className:!St&&Da,tabMoving:!!Ee})),n.createElement(nt,{ref:B,position:"right",extra:s,prefixCls:v})))}),it=Qt,Jt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return n.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:j()(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ot=Jt,qt=["renderTabBar"],ea=["label","key"],ta=function(t){var a=t.renderTabBar,r=(0,ye.Z)(t,qt),i=n.useContext(xe),l=i.tabs;if(a){var c=(0,Y.Z)((0,Y.Z)({},r),{},{panes:l.map(function(o){var s=o.label,u=o.key,m=(0,ye.Z)(o,ea);return n.createElement(ot,(0,re.Z)({tab:s,key:u,tabKey:u},m))})});return a(c,it)}return n.createElement(it,r)},aa=ta,na=b(82225),ra=["key","forceRender","style","className","destroyInactiveTabPane"],ia=function(t){var a=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=n.useContext(xe),s=o.prefixCls,u=o.tabs,m=i.tabPane,$="".concat(s,"-tabpane");return n.createElement("div",{className:j()("".concat(s,"-content-holder"))},n.createElement("div",{className:j()("".concat(s,"-content"),"".concat(s,"-content-").concat(l),(0,k.Z)({},"".concat(s,"-content-animated"),m))},u.map(function(S){var T=S.key,L=S.forceRender,P=S.style,Z=S.className,g=S.destroyInactiveTabPane,v=(0,ye.Z)(S,ra),N=T===r;return n.createElement(na.ZP,(0,re.Z)({key:T,visible:N,forceRender:L,removeOnLeave:!!(c||g),leavedClassName:"".concat($,"-hidden")},i.tabPaneMotion),function(D,W){var B=D.style,_=D.className;return n.createElement(ot,(0,re.Z)({},v,{prefixCls:$,id:a,tabKey:T,animated:m,active:N,style:(0,Y.Z)((0,Y.Z)({},P),B),className:j()(Z,_),ref:W}))})})))},oa=ia,qa=b(80334);function la(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,Y.Z)({inkBar:!0},(0,Le.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ca=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],lt=0,sa=n.forwardRef(function(e,t){var a=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,u=e.defaultActiveKey,m=e.editable,$=e.animated,S=e.tabPosition,T=S===void 0?"top":S,L=e.tabBarGutter,P=e.tabBarStyle,Z=e.tabBarExtraContent,g=e.locale,v=e.moreIcon,N=e.moreTransitionName,D=e.destroyInactiveTabPane,W=e.renderTabBar,B=e.onChange,_=e.onTabClick,E=e.onTabScroll,f=e.getPopupContainer,R=e.popupClassName,h=e.indicator,I=(0,ye.Z)(e,ca),d=n.useMemo(function(){return(c||[]).filter(function(z){return z&&(0,Le.Z)(z)==="object"&&"key"in z})},[c]),C=o==="rtl",F=la($),X=(0,n.useState)(!1),Q=(0,w.Z)(X,2),K=Q[0],J=Q[1];(0,n.useEffect)(function(){J((0,Lt.Z)())},[]);var ie=(0,ke.Z)(function(){var z;return(z=d[0])===null||z===void 0?void 0:z.key},{value:s,defaultValue:u}),te=(0,w.Z)(ie,2),x=te[0],O=te[1],V=(0,n.useState)(function(){return d.findIndex(function(z){return z.key===x})}),H=(0,w.Z)(V,2),G=H[0],ae=H[1];(0,n.useEffect)(function(){var z=d.findIndex(function(be){return be.key===x});if(z===-1){var de;z=Math.max(0,Math.min(G,d.length-1)),O((de=d[z])===null||de===void 0?void 0:de.key)}ae(z)},[d.map(function(z){return z.key}).join("_"),x,G]);var q=(0,ke.Z)(null,{value:a}),oe=(0,w.Z)(q,2),le=oe[0],he=oe[1];(0,n.useEffect)(function(){a||(he("rc-tabs-".concat(lt)),lt+=1)},[]);function ze(z,de){_==null||_(z,de);var be=z!==x;O(z),be&&(B==null||B(z))}var pe={id:le,activeKey:x,animated:F,tabPosition:T,rtl:C,mobile:K},Me=(0,Y.Z)((0,Y.Z)({},pe),{},{editable:m,locale:g,moreIcon:v,moreTransitionName:N,tabBarGutter:L,onTabClick:ze,onTabScroll:E,extra:Z,style:P,panes:null,getPopupContainer:f,popupClassName:R,indicator:h});return n.createElement(xe.Provider,{value:{tabs:d,prefixCls:i}},n.createElement("div",(0,re.Z)({ref:t,id:a,className:j()(i,"".concat(i,"-").concat(T),(0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(i,"-mobile"),K),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),C),l)},I),n.createElement(aa,(0,re.Z)({},Me,{renderTabBar:W})),n.createElement(oa,(0,re.Z)({destroyInactiveTabPane:D},pe,{animated:F}))))}),da=sa,ua=da,va=b(53124),fa=b(35792),ba=b(98675),ma=b(33603);const ga={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ha(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},ga),{motionName:(0,ma.m)(e,"switch")})),a}var pa=b(50344),$a=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(a[r[i]]=e[r[i]]);return a};function Sa(e){return e.filter(t=>t)}function ya(e,t){if(e)return e;const a=(0,pa.Z)(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=$a(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Sa(a)}var p=b(54548),ge=b(14747),xa=b(91945),Ca=b(45503),ct=b(67771),Ta=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[(0,ct.oN)(e,"slide-up"),(0,ct.oN)(e,"slide-down")]]};const Pa=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,p.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,p.bf)(e.borderRadiusLG)} ${(0,p.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,p.bf)(e.borderRadiusLG)} ${(0,p.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,p.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,p.bf)(e.borderRadiusLG)} 0 0 ${(0,p.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,p.bf)(e.borderRadiusLG)} ${(0,p.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ea=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,p.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ge.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,p.bf)(e.paddingXXS)} ${(0,p.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ra=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,p.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ia=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,p.bf)(e.borderRadius)} ${(0,p.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,p.bf)(e.borderRadius)} ${(0,p.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,p.bf)(e.borderRadius)} ${(0,p.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,p.bf)(e.borderRadius)} 0 0 ${(0,p.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},wa=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},(0,ge.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:l}}}},Za=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,p.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,p.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,p.bf)(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},La=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${(0,p.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${(0,p.bf)(e.borderRadiusLG)} ${(0,p.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,ge.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),wa(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Na=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var za=(0,xa.I$)("Tabs",e=>{const t=(0,Ca.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,p.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,p.bf)(e.horizontalItemGutter)}`});return[Ia(t),Za(t),Ra(t),Ea(t),Pa(t),La(t),Ta(t)]},Na),Ma=b(16250),Ba=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(a[r[i]]=e[r[i]]);return a};const st=e=>{var t,a,r,i,l,c,o,s;const{type:u,className:m,rootClassName:$,size:S,onEdit:T,hideAdd:L,centered:P,addIcon:Z,removeIcon:g,moreIcon:v,popupClassName:N,children:D,items:W,animated:B,style:_,indicatorSize:E,indicator:f}=e,R=Ba(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:h}=R,{direction:I,tabs:d,getPrefixCls:C,getPopupContainer:F}=n.useContext(va.E_),X=C("tabs",h),Q=(0,fa.Z)(X),[K,J,ie]=za(X,Q);let te;u==="editable-card"&&(te={onEdit:(q,oe)=>{let{key:le,event:he}=oe;T==null||T(q==="add"?he:le,q)},removeIcon:(t=g!=null?g:d==null?void 0:d.removeIcon)!==null&&t!==void 0?t:n.createElement(Tt.Z,null),addIcon:(Z!=null?Z:d==null?void 0:d.addIcon)||n.createElement(wt,null),showAdd:L!==!0});const x=C(),O=(0,ba.Z)(S),V=ya(W,D),H=ha(X,B),G=Object.assign(Object.assign({},d==null?void 0:d.style),_),ae={align:(a=f==null?void 0:f.align)!==null&&a!==void 0?a:(r=d==null?void 0:d.indicator)===null||r===void 0?void 0:r.align,size:(o=(l=(i=f==null?void 0:f.size)!==null&&i!==void 0?i:E)!==null&&l!==void 0?l:(c=d==null?void 0:d.indicator)===null||c===void 0?void 0:c.size)!==null&&o!==void 0?o:d==null?void 0:d.indicatorSize};return K(n.createElement(ua,Object.assign({direction:I,getPopupContainer:F,moreTransitionName:`${x}-slide-up`},R,{items:V,className:j()({[`${X}-${O}`]:O,[`${X}-card`]:["card","editable-card"].includes(u),[`${X}-editable-card`]:u==="editable-card",[`${X}-centered`]:P},d==null?void 0:d.className,m,$,J,ie,Q),popupClassName:j()(N,J,ie,Q),style:G,editable:te,moreIcon:(s=v!=null?v:d==null?void 0:d.moreIcon)!==null&&s!==void 0?s:n.createElement(Pt.Z,null),prefixCls:X,animated:H,indicator:ae})))};st.TabPane=Ma.Z;var Oa=st}}]);