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.
1 line
16 KiB
1 line
16 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[22004,13488],{61481:function(e,t,o){"use strict";o.d(t,{Z:function(){return l}});var n=o(54476),r=o(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},s=o(7657),a=function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:i}))};var l=r.forwardRef(a)},77578:function(e,t,o){"use strict";o.d(t,{Z:function(){return n}});const n=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,o){"use strict";var n=o(94480),r=o(16089);t.Z=function(e){let t;const o=o=>()=>{t=null,e.apply(void 0,(0,n.Z)(o))},i=function(){if(null==t){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t=(0,r.Z)(o(n))}};return i.cancel=()=>{r.Z.cancel(t),t=null},i}},81228:function(e,t,o){"use strict";o.d(t,{Z:function(){return S}});var n=o(67732),r=o(83652),i=o(42403),s=o(79493),a=o(59301),l=o(92310),c=o.n(l),u=o(29301),p=o(2738),d=o(27666),f=o(36355),h=o(83116),m=o(37613);const v=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,h.Z)("Affix",(e=>{const t=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(t)]}));function y(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function b(e,t,o){if(void 0!==o&&t.top>e.top-o)return o+t.top}function w(e,t,o){if(void 0!==o&&t.bottom<e.bottom+o){return o+(window.innerHeight-t.bottom)}}const x=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function P(){return"undefined"!=typeof window?window:null}var C;!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(C||(C={}));let L=function(e){(0,i.Z)(o,e);var t=(0,s.Z)(o);function o(){var e;return(0,n.Z)(this,o),(e=t.apply(this,arguments)).state={status:C.None,lastAffix:!1,prevTarget:null},e.placeholderNodeRef=(0,a.createRef)(),e.fixedNodeRef=(0,a.createRef)(),e.addListeners=()=>{const t=e.getTargetFunc(),o=null==t?void 0:t(),{prevTarget:n}=e.state;n!==o&&(x.forEach((t=>{null==n||n.removeEventListener(t,e.lazyUpdatePosition),null==o||o.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:o}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,o=e.getTargetFunc(),n=null==o?void 0:o();x.forEach((o=>{null==n||n.removeEventListener(o,e.lazyUpdatePosition),null==t||t.removeEventListener(o,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:o}=e.props;return void 0===t&&void 0===o?0:o},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:o}=e.state,{onChange:n}=e.props,r=e.getTargetFunc();if(t!==C.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const i=e.getOffsetTop(),s=e.getOffsetBottom(),a=r();if(a){const t={status:C.None},r=y(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const l=y(a),c=b(r,l,i),u=w(r,l,s);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:r.width,height:r.height},t.placeholderStyle={width:r.width,height:r.height}),t.lastAffix=!!t.affixStyle,n&&o!==t.lastAffix&&n(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:C.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,d.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,d.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:o}=e.state;if(t&&o){const n=e.getOffsetTop(),r=e.getOffsetBottom(),i=t();if(i&&e.placeholderNodeRef.current){const t=y(i),s=y(e.placeholderNodeRef.current),a=b(s,t,n),l=w(s,t,r);if(void 0!==a&&o.top===a||void 0!==l&&o.bottom===l)return}}e.prepareMeasure()})),e}return(0,r.Z)(o,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:P}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:o,rootClassName:n,children:r}=this.props,i=c()(e&&n,{[o]:!!e});let s=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(u.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},s,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:t,"aria-hidden":"true"}),a.createElement("div",{className:i,ref:this.fixedNodeRef,style:e},a.createElement(u.Z,{onResize:this.updatePosition},r))))}}]),o}(a.Component);L.contextType=f.E_;var S=(0,a.forwardRef)(((e,t)=>{const{prefixCls:o,rootClassName:n}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),i=r("affix",o),[s,l]=g(i),u=Object.assign(Object.assign({},e),{affixPrefixCls:i,rootClassName:c()(n,l)});return s(a.createElement(L,Object.assign({},u,{ref:t})))}))},39722:function(e,t,o){"use strict";o.d(t,{t5:function(){return p}});var n=o(92310),r=o.n(n),i=o(55477),s=o(59301),a=o(36355),l=o(77578),c=o(17356),u=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const p=e=>{const{hashId:t,prefixCls:o,className:n,style:a,placement:c="top",title:u,content:p,children:d}=e;return s.createElement("div",{className:r()(t,o,`${o}-pure`,`${o}-placement-${c}`,n),style:a},s.createElement("div",{className:`${o}-arrow`}),s.createElement(i.G,Object.assign({},e,{className:t,prefixCls:o}),d||((e,t,o)=>{if(t||o)return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),s.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(o)))})(o,u,p)))};t.ZP=e=>{const{prefixCls:t}=e,o=u(e,["prefixCls"]),{getPrefixCls:n}=s.useContext(a.E_),r=n("popover",t),[i,l]=(0,c.Z)(r);return i(s.createElement(p,Object.assign({},o,{prefixCls:r,hashId:l})))}},60324:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),i=o(59301),s=o(77578),a=o(62892),l=o(36355),c=o(6848),u=o(39722),p=o(17356),d=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const f=e=>{let{title:t,content:o,prefixCls:n}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${n}-title`},(0,s.Z)(t)),i.createElement("div",{className:`${n}-inner-content`},(0,s.Z)(o)))},h=i.forwardRef(((e,t)=>{const{prefixCls:o,title:n,content:s,overlayClassName:u,placement:h="top",trigger:m="hover",mouseEnterDelay:v=.1,mouseLeaveDelay:g=.1,overlayStyle:y={}}=e,b=d(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:w}=i.useContext(l.E_),x=w("popover",o),[P,C]=(0,p.Z)(x),L=w(),S=r()(u,C);return P(i.createElement(c.Z,Object.assign({placement:h,trigger:m,mouseEnterDelay:v,mouseLeaveDelay:g,overlayStyle:y},b,{prefixCls:x,overlayClassName:S,ref:t,overlay:n||s?i.createElement(f,{prefixCls:x,title:n,content:s}):null,transitionName:(0,a.m)(L,"zoom-big",b.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,o){"use strict";var n=o(17313),r=o(29878),i=o(19447),s=o(33166),a=o(83116),l=o(37613);const c=e=>{const{componentCls:t,popoverColor:o,minWidth:r,fontWeightStrong:s,popoverPadding:a,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:p,marginXS:d,colorBgElevated:f,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:c,fontWeight:s},[`${t}-inner-content`]:{color:o}})},(0,i.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:s.i.map((o=>{const n=e[`${o}6`];return{[`&${t}-${o}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},p=e=>{const{componentCls:t,lineWidth:o,lineType:n,colorSplit:r,paddingSM:i,controlHeight:s,fontSize:a,lineHeight:l,padding:c}=e,u=s-Math.round(a*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-o}px`,borderBottom:`${o}px ${n} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}};t.Z=(0,a.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:o,wireframe:n}=e,i=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:o});return[c(i),u(i),n&&p(i),(0,r._y)(i,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=o(59301),i=a(r),s=a(o(12708));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.scrollListener=o.scrollListener.bind(o),o.eventListenerOptions=o.eventListenerOptions.bind(o),o.mousewheelListener=o.mousewheelListener.bind(o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,o=this.getParentElement(e),n=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,i=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;n=this.props.isReverse?i:this.calculateOffset(e,i)}else n=this.props.isReverse?o.scrollTop:e.scrollHeight-o.scrollTop-o.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=o.scrollHeight,this.beforeScrollTop=o.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),o=t.children,n=t.element,r=t.hasMore,s=(t.initialLoad,t.isReverse),a=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[o];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),i.default.createElement(n,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,o){e.exports=o(51581)}}]); |