包含后厨 团餐 门店分支
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

2 строки
20 KiB

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