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