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.

15 lines
56 KiB

7 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[271],{42110:function(Nt,je){var n={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"};je.Z=n},78290:function(Nt,je,n){var a=n(67294),ye=n(17012);const T=U=>{let Ce;return typeof U=="object"&&(U!=null&&U.clearIcon)?Ce=U:U&&(Ce={clearIcon:a.createElement(ye.Z,null)}),Ce};je.Z=T},82586:function(Nt,je,n){n.d(je,{Z:function(){return R},n:function(){return Ot}});var a=n(67294),ye=n(93967),T=n.n(ye),U=n(67656),Ce=n(42550),h=n(78290),f=n(9708),A=n(53124),L=n(98866),y=n(35792),le=n(98675),J=n(65223),B=n(27833),nt=n(4173),Ct=n(72922),It=n(47673);function At(m){return!!(m.prefix||m.suffix||m.allowClear||m.showCount)}var $t=function(m,Ne){var pe={};for(var Y in m)Object.prototype.hasOwnProperty.call(m,Y)&&Ne.indexOf(Y)<0&&(pe[Y]=m[Y]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Y=Object.getOwnPropertySymbols(m);se<Y.length;se++)Ne.indexOf(Y[se])<0&&Object.prototype.propertyIsEnumerable.call(m,Y[se])&&(pe[Y[se]]=m[Y[se]]);return pe};function Ot(m,Ne){if(!m)return;m.focus(Ne);const{cursor:pe}=Ne||{};if(pe){const Y=m.value.length;switch(pe){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(Y,Y);break;default:m.setSelectionRange(0,Y);break}}}var R=(0,a.forwardRef)((m,Ne)=>{var pe;const{prefixCls:Y,bordered:se=!0,status:Ae,size:Xe,disabled:Ue,onBlur:Oe,onFocus:Le,suffix:St,allowClear:xt,addonAfter:rt,addonBefore:Ye,className:zt,style:mt,styles:Fe,rootClassName:gt,onChange:yt,classNames:Pe,variant:re}=m,K=$t(m,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:qe,direction:$e,input:P}=a.useContext(A.E_),u=qe("input",Y),ce=(0,a.useRef)(null),b=(0,y.Z)(u),[S,C,ue]=(0,It.ZP)(u,b),{compactSize:ge,compactItemClassnames:D}=(0,nt.ri)(u,$e),Z=(0,le.Z)(k=>{var it;return(it=Xe!=null?Xe:ge)!==null&&it!==void 0?it:k}),N=a.useContext(L.Z),Q=Ue!=null?Ue:N,{status:de,hasFeedback:G,feedbackIcon:Ee}=(0,a.useContext)(J.aM),Ze=(0,f.F)(de,Ae),j=At(m)||!!G,Ie=(0,a.useRef)(j),We=(0,Ct.Z)(ce,!0),Qe=k=>{We(),Oe==null||Oe(k)},I=k=>{We(),Le==null||Le(k)},q=k=>{We(),yt==null||yt(k)},ot=(G||St)&&a.createElement(a.Fragment,null,St,G&&Ee),be=(0,h.Z)(xt!=null?xt:P==null?void 0:P.allowClear),[Re,ze]=(0,B.Z)(re,se);return S(a.createElement(U.Z,Object.assign({ref:(0,Ce.sQ)(Ne,ce),prefixCls:u,autoComplete:P==null?void 0:P.autoComplete},K,{disabled:Q,onBlur:Qe,onFocus:I,style:Object.assign(Object.assign({},P==null?void 0:P.style),mt),styles:Object.assign(Object.assign({},P==null?void 0:P.styles),Fe),suffix:ot,allowClear:be,className:T()(zt,gt,ue,b,D,P==null?void 0:P.className),onChange:q,addonAfter:rt&&a.createElement(nt.BR,null,a.createElement(J.Ux,{override:!0,status:!0},rt)),addonBefore:Ye&&a.createElement(nt.BR,null,a.createElement(J.Ux,{override:!0,status:!0},Ye)),classNames:Object.assign(Object.assign(Object.assign({},Pe),P==null?void 0:P.classNames),{input:T()({[`${u}-sm`]:Z==="small",[`${u}-lg`]:Z==="large",[`${u}-rtl`]:$e==="rtl"},Pe==null?void 0:Pe.input,(pe=P==null?void 0:P.classNames)===null||pe===void 0?void 0:pe.input,C),variant:T()({[`${u}-${Re}`]:ze},(0,f.Z)(u,Ze)),affixWrapper:T()({[`${u}-affix-wrapper-sm`]:Z==="small",[`${u}-affix-wrapper-lg`]:Z==="large",[`${u}-affix-wrapper-rtl`]:$e==="rtl"},C),wrapper:T()({[`${u}-group-rtl`]:$e==="rtl"},C),groupWrapper:T()({[`${u}-group-wrapper-sm`]:Z==="small",[`${u}-group-wrapper-lg`]:Z==="large",[`${u}-group-wrapper-rtl`]:$e==="rtl",[`${u}-group-wrapper-${Re}`]:ze},(0,f.Z)(`${u}-group-wrapper`,Ze,G),C)})})))})},22913:function(Nt,je,n){n.d(je,{Z:function(){return P}});var a=n(67294),ye=n(93967),T=n.n(ye),U=n(87462),Ce=n(4942),h=n(1413),f=n(74902),A=n(97685),L=n(91),y=n(67656),le=n(82234),J=n(87887),
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Ot=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Et={},R;function m(u){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=u.getAttribute("id")||u.getAttribute("data-reactid")||u.getAttribute("name");if(ce&&Et[b])return Et[b];var S=window.getComputedStyle(u),C=S.getPropertyValue("box-sizing")||S.getPropertyValue("-moz-box-sizing")||S.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(S.getPropertyValue("padding-bottom"))+parseFloat(S.getPropertyValue("padding-top")),ge=parseFloat(S.getPropertyValue("border-bottom-width"))+parseFloat(S.getPropertyValue("border-top-width")),D=Ot.map(function(N){return"".concat(N,":").concat(S.getPropertyValue(N))}).join(";"),Z={sizingStyle:D,paddingSize:ue,borderSize:ge,boxSizing:C};return ce&&b&&(Et[b]=Z),Z}function Ne(u){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;R||(R=document.createElement("textarea"),R.setAttribute("tab-index","-1"),R.setAttribute("aria-hidden","true"),document.body.appendChild(R)),u.getAttribute("wrap")?R.setAttribute("wrap",u.getAttribute("wrap")):R.removeAttribute("wrap");var C=m(u,ce),ue=C.paddingSize,ge=C.borderSize,D=C.boxSizing,Z=C.sizingStyle;R.setAttribute("style","".concat(Z,";").concat($t)),R.value=u.value||u.placeholder||"";var N=void 0,Q=void 0,de,G=R.scrollHeight;if(D==="border-box"?G+=ge:D==="content-box"&&(G-=ue),b!==null||S!==null){R.value=" ";var Ee=R.scrollHeight-ue;b!==null&&(N=Ee*b,D==="border-box"&&(N=N+ue+ge),G=Math.max(N,G)),S!==null&&(Q=Ee*S,D==="border-box"&&(Q=Q+ue+ge),de=G>Q?"":"hidden",G=Math.min(Q,G))}var Ze={height:G,overflowY:de,resize:"none"};return N&&(Ze.minHeight=N),Q&&(Ze.maxHeight=Q),Ze}var pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Y=0,se=1,Ae=2,Xe=a.forwardRef(function(u,ce){var b=u,S=b.prefixCls,C=b.onPressEnter,ue=b.defaultValue,ge=b.value,D=b.autoSize,Z=b.onResize,N=b.className,Q=b.style,de=b.disabled,G=b.onChange,Ee=b.onInternalAutoSize,Ze=(0,L.Z)(b,pe),j=(0,B.Z)(ue,{value:ge,postState:function(He){return He!=null?He:""}}),Ie=(0,A.Z)(j,2),We=Ie[0],Qe=Ie[1],I=function(He){Qe(He.target.value),G==null||G(He)},q=a.useRef();a.useImperativeHandle(ce,function(){return{textArea:q.current}});var ot=a.useMemo(function(){return D&&(0,nt.Z)(D)==="object"?[D.minRows,D.maxRows]:[]},[D]),be=(0,A.Z)(ot,2),Re=be[0],ze=be[1],k=!!D,it=function(){try{if(document.activeElement===q.current){var He=q.current,Gt=He.selectionStart,Ut=He.selectionEnd,Ft=He.scrollTop;q.current.setSelectionRange(Gt,Ut),q.current.scrollTop=Ft}}catch(_t){}},lt=a.useState(Ae),oe=(0,A.Z)(lt,2),M=oe[0],p=oe[1],Me=a.useState(),Je=(0,A.Z)(Me,2),Ke=Je[0],st=Je[1],_e=function(){p(Y)};(0,It.Z)(function(){k&&_e()},[ge,Re,ze,k]),(0,It.Z)(function(){if(M===Y)p(se);else if(M===se){var Ve=Ne(q.current,!1,Re,ze);p(Ae),st(Ve)}else it()},[M]);var Rt=a.useRef(),ct=function(){At.Z.cancel(Rt.current)},wt=function(He){M===Ae&&(Z==null||Z(He),D&&(ct(),Rt.current=(0,At.Z)(function(){_e()})))};a.useEffect(function(){return ct},[]);var $=k?Ke:null,ut=(0,h.Z)((0,h.Z)({},Q),$);return(M===Y||M===se)&&(ut.overflowY="hidden",ut.overflowX="hidden"),a.createElement(Ct.Z,{onResize:wt,disabled:!(D||Z)},a.createElement("textarea",(0,U.Z)({},Ze,{ref:q,style:ut,className:T()(S,N,(0,Ce.Z)({},"".concat(S,"-disabled"),de)),disabled:de,value:We,onChange:I})))}),Ue=Xe,Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Le=a.forwardRef(function(u,ce){var b,S,C=u.defaultValue,ue=u.value,ge=u.onFocus,D=u.onBlur,Z=u.onChange,N=u.allowClear,Q=u.maxLength,de=u.onComp
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:r,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:s(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,$.bf)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,$.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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sa=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,$.bf)(e.borderRadius)} 0 0 ${(0,$.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}}}}}},Yt=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:i,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:s,itemColor:d}=e,g=`${t}-tab`;return{[g]:{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:d,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},(0,ut.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${g}-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:i},[`&${g}-active ${g}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${g}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${g}-disabled ${g}-btn, &${g}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${g}-r