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
13 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7921],{78164:function(ge,I,o){"use strict";var c=o(57106),w=o(6129),x=o(6610),D=o(5991),U=o(10379),S=o(44144),g=o(85893),t=o(67294),G=function(ie){(0,U.Z)(Z,ie);var J=(0,S.Z)(Z);function Z(){var R;(0,x.Z)(this,Z);for(var W=arguments.length,h=new Array(W),L=0;L<W;L++)h[L]=arguments[L];return R=J.call.apply(J,[this].concat(h)),R.state={hasError:!1,errorInfo:""},R}return(0,D.Z)(Z,[{key:"componentDidCatch",value:function(W,h){console.log(W,h)}},{key:"render",value:function(){return this.state.hasError?(0,g.jsx)(w.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(W){return{hasError:!0,errorInfo:W.message}}}]),Z}(t.Component);I.Z=G},12044:function(ge,I,o){"use strict";var c=o(34155),w=typeof c!="undefined"&&c.versions!=null&&c.versions.node!=null,x=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!w};I.Z=x},50061:function(){},273:function(ge,I,o){"use strict";o.d(I,{Z:function(){return Le}});var c=o(22122),w=o(96156),x=o(28481),D=o(54549),U=o(94184),S=o.n(U),g=o(28991),t=o(67294),G=o(38475),ie=o(8410),J=o(63441),Z=function(i){var f=i.prefixCls,u=i.className,d=i.style,N=i.children,m=i.containerRef;return t.createElement(t.Fragment,null,t.createElement("div",{className:S()("".concat(f,"-content"),u),style:(0,g.Z)({},d),"aria-modal":"true",role:"dialog",ref:m},N))},R=Z,W=t.createContext(null),h=W,L=o(15105),Se=o(80334);function pe(e){return typeof e=="string"&&String(Number(e))===e?((0,Se.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function n(e){warning(!("wrapperClassName"in e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var r={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function a(e,i){var f,u,d,N,m=e.prefixCls,b=e.open,k=e.placement,le=e.inline,H=e.push,se=e.forceRender,ue=e.autoFocus,we=e.keyboard,ce=e.rootClassName,de=e.rootStyle,q=e.zIndex,ee=e.className,fe=e.style,V=e.motion,B=e.width,xe=e.height,me=e.children,te=e.contentWrapperStyle,ne=e.mask,_e=e.maskClosable,ve=e.maskMotion,X=e.maskClassName,ae=e.maskStyle,$=e.afterOpenChange,O=e.onClose,K=t.useRef(),A=t.useRef(),re=t.useRef();t.useImperativeHandle(i,function(){return K.current});var be=function(E){var ye=E.keyCode,Ce=E.shiftKey;switch(ye){case L.Z.TAB:{if(ye===L.Z.TAB){if(!Ce&&document.activeElement===re.current){var Ne;(Ne=A.current)===null||Ne===void 0||Ne.focus({preventScroll:!0})}else if(Ce&&document.activeElement===A.current){var ke;(ke=re.current)===null||ke===void 0||ke.focus({preventScroll:!0})}}break}case L.Z.ESC:{O&&we&&(E.stopPropagation(),O(E));break}}};t.useEffect(function(){if(b&&ue){var s;(s=K.current)===null||s===void 0||s.focus({preventScroll:!0})}},[b]);var C=t.useState(!1),Q=(0,x.Z)(C,2),oe=Q[0],Y=Q[1],v=t.useContext(h),he;H===!1?he={distance:0}:H===!0?he={}:he=H||{};var z=(f=(u=(d=he)===null||d===void 0?void 0:d.distance)!==null&&u!==void 0?u:v==null?void 0:v.pushDistance)!==null&&f!==void 0?f:180,Me=t.useMemo(function(){return{pushDistance:z,push:function(){Y(!0)},pull:function(){Y(!1)}}},[z]);t.useEffect(function(){if(b){var s;v==null||(s=v.push)===null||s===void 0||s.call(v)}else{var E;v==null||(E=v.pull)===null||E===void 0||E.call(v)}},[b]),t.useEffect(function(){return function(){var s;v==null||(s=v.pull)===null||s===void 0||s.call(v)}},[]);var Pe=ne&&t.createElement(J.Z,(0,c.Z)({key:"mask"},ve,{visible:b}),function(s,E){var ye=s.className,Ce=s.style;return t.createElement("div",{className:S()("".concat(m,"-mask"),ye,X),style:(0,g.Z)((0,g.Z)({},Ce),ae),onClick:_e&&b?O:void 0,ref:E})}),Oe=typeof V=="function"?V(k):V,p={};if(oe&&z)switch(k){case"top":p.transform="translateY(".concat(z,"px)");break;case"bottom":p.transform="translateY(".concat(-z,"px)");break;case"left":p.transform="translateX(".concat(z,"px)");break;default:p.transform="translateX(".concat(-z,"px)");break}k==="left"||k==="right"?p.width=pe(B):p.height=pe(xe);var F=t.createElement(J.Z,(0,c.Z)({key:"panel"},Oe,{visible:b,forceRender:se,onVisibleChanged:function(E){$==null||$(E)},removeOnLeave:!1,leavedClassName:"".concat(m,"-content-wrapper-hidden")}),function(s,E){var ye=s.className,Ce=s.style;return t.createElement("div",{className:S()("".concat(m,"-content-wrapper"),ye),style:(0,g.Z)((0,g.Z)((0,g.Z)({},p),Ce),te)},t.createElement(R,{containerRef:E,prefixCls:m,className:ee,style:fe},me))}),De=(0,g.Z)({},de);return q&&(De.zIndex=q),t.createElement(h.Provider,{value:Me},t.createElement("div",{className:S()(m,"".concat(m,"-").concat(k),ce,(N={},(0,w.Z)(N,"".concat(m,"-open"),b),(0,w.Z)(N,"".concat(m,"-inline"),le),N)),style:De,tabIndex:-1,ref:K,onKeyDown:be},Pe,t.createElement("div",{tabIndex:0,ref:A,style:r,"aria-hidden":"true","data-sentinel":"start"}),F,t.createElement("div",{tabIndex:0,ref:re,style:r,"aria-hidden":"true","data-sentinel":"end"})))}var l=t.forwardRef(a),y=l,M=function(i){var f=i.open,u=f===void 0?!1:f,d=i.prefixCls,N=d===void 0?"rc-drawer":d,m=i.placement,b=m===void 0?"right":m,k=i.autoFocus,le=k===void 0?!0:k,H=i.keyboard,se=H===void 0?!0:H,ue=i.width,we=ue===void 0?378:ue,ce=i.mask,de=ce===void 0?!0:ce,q=i.maskClosable,ee=q===void 0?!0:q,fe=i.getContainer,V=i.forceRender,B=i.afterOpenChange,xe=i.destroyOnClose,me=t.useState(!1),te=(0,x.Z)(me,2),ne=te[0],_e=te[1],ve=t.useState(!1),X=(0,x.Z)(ve,2),ae=X[0],$=X[1];(0,ie.Z)(function(){$(!0)},[]);var O=ae?u:!1,K=t.useRef(),A=t.useRef();(0,ie.Z)(function(){O&&(A.current=document.activeElement)},[O]);var re=function(Q){var oe;if(_e(Q),B==null||B(Q),!Q&&A.current&&!((oe=K.current)===null||oe===void 0?void 0:oe.contains(A.current))){var Y;(Y=A.current)===null||Y===void 0||Y.focus()}};if(!V&&!ne&&!O&&xe)return null;var be=(0,g.Z)((0,g.Z)({},i),{},{open:O,prefixCls:N,placement:b,autoFocus:le,keyboard:se,width:we,mask:de,maskClosable:ee,inline:fe===!1,afterOpenChange:re,ref:K});return t.createElement(G.Z,{open:O||V||ne,autoDestroy:!1,getContainer:fe,autoLock:de&&(O||ne)},t.createElement(y,be))},_=M,P=_,j=o(53124),Ee=o(65223),T=o(33603),Ae=o(93355),Ie=o(4173),Ze=function(e,i){var f={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&i.indexOf(u)<0&&(f[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(e);d<u.length;d++)i.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(e,u[d])&&(f[u[d]]=e[u[d]]);return f},Te=(0,Ae.b)("default","large"),Re={distance:180};function We(e){var i=e.width,f=e.height,u=e.size,d=u===void 0?"default":u,N=e.closable,m=N===void 0?!0:N,b=e.mask,k=b===void 0?!0:b,le=e.push,H=le===void 0?Re:le,se=e.closeIcon,ue=se===void 0?t.createElement(D.Z,null):se,we=e.bodyStyle,ce=e.drawerStyle,de=e.className,q=e.visible,ee=e.open,fe=e.children,V=e.style,B=e.title,xe=e.headerStyle,me=e.onClose,te=e.footer,ne=e.footerStyle,_e=e.prefixCls,ve=e.getContainer,X=e.extra,ae=e.afterVisibleChange,$=e.afterOpenChange,O=Ze(e,["width","height","size","closable","mask","push","closeIcon","bodyStyle","drawerStyle","className","visible","open","children","style","title","headerStyle","onClose","footer","footerStyle","prefixCls","getContainer","extra","afterVisibleChange","afterOpenChange"]),K=t.useContext(j.E_),A=K.getPopupContainer,re=K.getPrefixCls,be=K.direction,C=re("drawer",_e),Q=ve===void 0&&A?function(){return A(document.body)}:ve,oe=m&&t.createElement("button",{type:"button",onClick:me,"aria-label":"Close",className:"".concat(C,"-close")},ue);[["visible","open"],["afterVisibleChange","afterOpenChange"]].forEach(function(p){var F=(0,x.Z)(p,2),De=F[0],s=F[1]});function Y(){return!B&&!m?null:t.createElement("div",{className:S()("".concat(C,"-header"),(0,w.Z)({},"".concat(C,"-header-close-only"),m&&!B&&!X)),style:xe},t.createElement("div",{className:"".concat(C,"-header-title")},oe,B&&t.createElement("div",{className:"".concat(C,"-title")},B)),X&&t.createElement("div",{className:"".concat(C,"-extra")},X))}function v(){if(!te)return null;var p="".concat(C,"-footer");return t.createElement("div",{className:p,style:ne},te)}var he=S()((0,w.Z)({"no-mask":!k},"".concat(C,"-rtl"),be==="rtl"),de),z=t.useMemo(function(){return i!=null?i:d==="large"?736:378},[i,d]),Me=t.useMemo(function(){return f!=null?f:d==="large"?736:378},[f,d]),Pe={motionName:(0,T.mL)(C,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Oe=function(F){return{motionName:(0,T.mL)(C,"panel-motion-".concat(F)),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}};return t.createElement(Ie.BR,null,t.createElement(Ee.Ux,{status:!0,override:!0},t.createElement(P,(0,c.Z)({prefixCls:C,onClose:me},O,{open:ee!=null?ee:q,mask:k,push:H,width:z,height:Me,rootClassName:he,getContainer:Q,afterOpenChange:function(F){$==null||$(F),ae==null||ae(F)},maskMotion:Pe,motion:Oe,rootStyle:V}),t.createElement("div",{className:"".concat(C,"-wrapper-body"),style:(0,c.Z)({},ce)},Y(),t.createElement("div",{className:"".concat(C,"-body"),style:we},fe),v()))))}var Le=We},57338:function(ge,I,o){"use strict";var c=o(38663),w=o.n(c),x=o(50061),D=o.n(x)},57186:function(ge,I,o){"use strict";o.d(I,{f:function(){return w}});var c=o(67294);function w(D){var U=c.createContext(null);function S(t){var G=D(t.initialState);return c.createElement(U.Provider,{value:G},t.children)}function g(){var t=c.useContext(U);if(t===null)throw new Error("Component must be wrapped with <Container.Provider>");return t}return{Provider:S,useContainer:g}}function x(D){return D.useContainer()}},38069:function(ge,I,o){"use strict";o.d(I,{ZP:function(){return pe}});var c=o(67294);function w(n,r){return g(n)||S(n,r)||D(n,r)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  2. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(n,r){if(!!n){if(typeof n=="string")return U(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return U(n,r)}}function U(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,l=new Array(r);a<r;a++)l[a]=n[a];return l}function S(n,r){var a=n&&(typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"]);if(a!=null){var l=[],y=!0,M=!1,_,P;try{for(a=a.call(n);!(y=(_=a.next()).done)&&(l.push(_.value),!(r&&l.length===r));y=!0);}catch(j){M=!0,P=j}finally{try{!y&&a.return!=null&&a.return()}finally{if(M)throw P}}return l}}function g(n){if(Array.isArray(n))return n}function t(n){var r=typeof window=="undefined",a=(0,c.useState)(function(){return r?!1:window.matchMedia(n).matches}),l=w(a,2),y=l[0],M=l[1];return(0,c.useLayoutEffect)(function(){if(!r){var _=window.matchMedia(n),P=function(Ee){return M(Ee.matches)};return _.addListener(P),function(){return _.removeListener(P)}}},[n]),y}function G(n,r){return W(n)||R(n,r)||J(n,r)||ie()}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  3. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(n,r){if(!!n){if(typeof n=="string")return Z(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Z(n,r)}}function Z(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,l=new Array(r);a<r;a++)l[a]=n[a];return l}function R(n,r){var a=n&&(typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"]);if(a!=null){var l=[],y=!0,M=!1,_,P;try{for(a=a.call(n);!(y=(_=a.next()).done)&&(l.push(_.value),!(r&&l.length===r));y=!0);}catch(j){M=!0,P=j}finally{try{!y&&a.return!=null&&a.return()}finally{if(M)throw P}}return l}}function W(n){if(Array.isArray(n))return n}var h={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},L=function(){var r="md";if(typeof window=="undefined")return r;var a=Object.keys(h).find(function(l){var y=h[l].matchMedia;return!!window.matchMedia(y).matches});return r=a,r},Se=function(){var r=t(h.md.matchMedia),a=t(h.lg.matchMedia),l=t(h.xxl.matchMedia),y=t(h.xl.matchMedia),M=t(h.sm.matchMedia),_=t(h.xs.matchMedia),P=(0,c.useState)(L()),j=G(P,2),Ee=j[0],T=j[1];return(0,c.useEffect)(function(){if(l){T("xxl");return}if(y){T("xl");return}if(a){T("lg");return}if(r){T("md");return}if(M){T("sm");return}if(_){T("xs");return}T("md")},[r,a,l,y,M,_]),Ee},pe=Se}}]);