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
4 lines
35 KiB
9 months ago
|
"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)(functio
|
||
|
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}-r
|