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.

4 lines
35 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[169],{42110:function(Ge,he){var v={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"};he.Z=v},16250:function(Ge,he){const v=()=>null;he.Z=v},13169:function(Ge,he,v){v.d(he,{Z:function(){return Oa}});var n=v(67294),Tt=v(62208),Pt=v(35872),ne=v(87462),Et=v(42110),Rt=v(93771),It=function(t,a){return n.createElement(Rt.Z,(0,ne.Z)({},t,{ref:a,icon:Et.Z}))},wt=n.forwardRef(It),Zt=wt,Lt=v(93967),K=v.n(Lt),V=v(4942),J=v(1413),z=v(97685),ze=v(71002),xe=v(91),je=v(21770),zt=v(31131),Ce=(0,n.createContext)(null),ke=v(74902),Ne=v(9220),Nt=v(66680),Mt=v(42550),Xe=v(75164),_t=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,d=s===void 0?"center":s,f=(0,n.useState)(),b=(0,z.Z)(f,2),x=b[0],w=b[1],_=(0,n.useRef)(),R=n.useCallback(function(m){return typeof o=="function"?o(m):typeof o=="number"?o:m},[o]);function N(){Xe.Z.cancel(_.current)}return(0,n.useEffect)(function(){var m={};if(a)if(r){m.width=R(a.width);var u=i?"right":"left";d==="start"&&(m[u]=a[u]),d==="center"&&(m[u]=a[u]+a.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(m[u]=a[u]+a.width,m.transform="translateX(-100%)")}else m.height=R(a.height),d==="start"&&(m.top=a.top),d==="center"&&(m.top=a.top+a.height/2,m.transform="translateY(-50%)"),d==="end"&&(m.top=a.top+a.height,m.transform="translateY(-100%)");return N(),_.current=(0,Xe.Z)(function(){w(m)}),N},[a,r,i,d,R]),{style:x}},Bt=_t,Ke={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)||Ke,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var f;d=t.get((f=e[o-1])===null||f===void 0?void 0:f.key)||Ke}var b=i.get(s)||(0,J.Z)({},d);b.right=c-b.left-b.width,i.set(s,b)}return i},[e.map(function(r){return r.key}).join("_"),t,a])}function Ve(e,t){var a=n.useRef(e),r=n.useState({}),i=(0,z.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 At=.1,Fe=.01,Te=20,Ue=Math.pow(.995,Te);function Dt(e,t){var a=(0,n.useState)(),r=(0,z.Z)(a,2),i=r[0],l=r[1],c=(0,n.useState)(0),o=(0,z.Z)(c,2),s=o[0],d=o[1],f=(0,n.useState)(0),b=(0,z.Z)(f,2),x=b[0],w=b[1],_=(0,n.useState)(),R=(0,z.Z)(_,2),N=R[0],m=R[1],u=(0,n.useRef)();function I($){var Z=$.touches[0],S=Z.screenX,T=Z.screenY;l({x:S,y:T}),window.clearInterval(u.current)}function M($){if(i){$.preventDefault();var Z=$.touches[0],S=Z.screenX,T=Z.screenY;l({x:S,y:T});var h=S-i.x,P=T-i.y;t(h,P);var Y=Date.now();d(Y),w(Y-s),m({x:h,y:P})}}function A(){if(i&&(l(null),m(null),N)){var $=N.x/x,Z=N.y/x,S=Math.abs($),T=Math.abs(Z);if(Math.max(S,T)<At)return;var h=$,P=Z;u.current=window.setInterval(function(){if(Math.abs(h)<Fe&&Math.abs(P)<Fe){window.clearInterval(u.current);return}h*=Ue,P*=Ue,t(h*Te,P*Te)},Te)}}var H=(0,n.useRef)();function D($){var Z=$.deltaX,S=$.deltaY,T=0,h=Math.abs(Z),P=Math.abs(S);h===P?T=H.current==="x"?Z:S:h>P?(T=Z,H.current="x"):(T=S,H.current="y"),t(-T,-T)&&$.preventDefault()}var C=(0,n.useRef)(null);C.current={onTouchStart:I,onTouchMove:M,onTouchEnd:A,onWheel:D},n.useEffect(function(){function $(h){C.current.onTouchStart(h)}function Z(h){C.current.onTouchMove(h)}function S(h){C.current.onTouchEnd(h)}function T(h){C.current.onWheel(h)}return document.addEventListener("touchmove",Z,{passive:!1}),document.addEventListener("touchend",S,{passive:!1}),e.current.addEventListener("touchstart",$,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",Z),document.removeEventListener("touchend",S)}},[])}var Wt=v(8410);function Ye(e){var t=(0,n.useState)(0),a=(0,z.Z)(t,2),r=a[0],i=a[1],l=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,Wt.o)(f
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,g.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,g.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,g.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},wa=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,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,g.bf)(e.borderRadius)} 0 0 ${(0,g.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Za=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{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,pe.Qy)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-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},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDi