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 lines
20 KiB

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