text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[10],{"/QFb":function(e,t,a){"use strict";var n=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("p0pE")),o=a("yP6+"),i=n(a("q1tI")),l=n(a("0fa2")),d=n(a("AYKu")),s=function(e){var t=e.height,a=void 0===t?1:t,n=e.data,l=void 0===n?[]:n,s=e.forceFit,u=void 0===s||s,c=e.color,f=void 0===c?"rgba(24, 144, 255, 0.2)":c,m=e.borderColor,p=void 0===m?"#1089ff":m,h=e.scale,v=void 0===h?{x:{},y:{}}:h,g=e.borderWidth,y=void 0===g?2:g,E=e.line,b=e.xAxis,x=e.yAxis,M=e.animate,C=void 0===M||M,k=[36,5,30,5],w={x:(0,r.default)({type:"cat",range:[0,1]},v.x),y:(0,r.default)({min:0},v.y)},F=["x*y",function(e,t){return{name:e,value:t}}],P=a+54;return i.default.createElement("div",{className:d.default.miniChart,style:{height:a}},i.default.createElement("div",{className:d.default.chartContent},a>0&&i.default.createElement(o.Chart,{animate:C,scale:w,height:P,forceFit:u,data:l,padding:k},i.default.createElement(o.Axis,Object.assign({key:"axis-x",name:"x",label:null,line:null,tickLine:null,grid:null},b)),i.default.createElement(o.Axis,Object.assign({key:"axis-y",name:"y",label:null,line:null,tickLine:null,grid:null},x)),i.default.createElement(o.Tooltip,{showTitle:!1,crosshairs:!1}),i.default.createElement(o.Geom,{type:"area",position:"x*y",color:f,tooltip:F,shape:"smooth",style:{fillOpacity:1}}),E?i.default.createElement(o.Geom,{type:"line",position:"x*y",shape:"smooth",color:p,size:y,tooltip:!1}):i.default.createElement("span",{style:{display:"none"}}))))},u=(0,l.default)()(s);t.default=u},"0fa2":function(e,t,a){"use strict";var n=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("2Taf")),o=n(a("vZ4D")),i=n(a("l4Ni")),l=n(a("ujKo")),d=n(a("MhPg")),s=n(a("q1tI"));function u(e){var t=e.style;t.height="100%";var a=parseInt("".concat(getComputedStyle(e).height),10),n=parseInt("".concat(getComputedStyle(e).paddingTop),10)+parseInt("".concat(getComputedStyle(e).paddingBottom),10);return a-n}function c(e){if(!e)return 0;var t=e,a=u(t),n=t.parentNode;return n&&(a=u(n)),a}function f(){return function(e){var t=function(t){function a(){var e;return(0,r.default)(this,a),e=(0,i.default)(this,(0,l.default)(a).apply(this,arguments)),e.state={computedHeight:0},e.root=null,e.handleRoot=function(t){e.root=t},e}return(0,d.default)(a,t),(0,o.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.height;if(!e&&this.root){var t=c(this.root);this.setState({computedHeight:t}),t<1&&(t=c(this.root),this.setState({computedHeight:t}))}}},{key:"render",value:function(){var t=this.props.height,a=this.state.computedHeight,n=t||a;return s.default.createElement("div",{ref:this.handleRoot},n>0&&s.default.createElement(e,Object.assign({},this.props,{height:n})))}}]),a}(s.default.Component);return t}}var m=f;t.default=m},"38tu":function(e,t,a){e.exports={mapChart:"antd-pro-pages-dashboard-monitor-style-mapChart",pieCard:"antd-pro-pages-dashboard-monitor-style-pieCard"}},"533z":function(e,t,a){"use strict";var n=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a("2Taf")),i=r(a("vZ4D")),l=r(a("l4Ni")),d=r(a("ujKo")),s=r(a("MhPg")),u=n(a("q1tI")),c=r(a("0fa2")),f=r(a("wO+P")),m=function(e){function t(){var e;return(0,o.default)(this,t),e=(0,l.default)(this,(0,d.default)(t).apply(this,arguments)),e.state={radio:1},e.timer=0,e.root=null,e.node=null,e.resize=function(){if(e.root){var t=e.props.height,a=void 0===t?1:t,n=e.root.parentNode.offsetWidth;e.setState({radio:n<a?n/a:1})}},e}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.renderChart(),this.resize(),window.addEventListener("resize",function(){requestAnimationFrame(function(){return e.resize()})},{passive:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props.percent;e.percent!==t&&this.renderChart("update")}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.timer),this.node&&(this.node.innerHTML=""),window.removeEventListener("resize",this.resize)}},{key:"renderChart",value:function(e){var t=this.props,a=t.percent,n=t.color,r=void 0===n?"#1890FF":n,o=a/100,i=this;if(cancelAnimationFrame(this.timer),this.node&&(0===o||o)){var l=this.node,d=l.getContext("2d");if(d){var s=l.width,u=l.height,c=s/2,f=2,m=c-f;d.beginPath(),d.lineWidth=2*f;for(var p=s-f,h=p/8,v=.2,g=v,y=f,E=0,b=0,x=.005,M=[],C=c-f,k=-Math.PI/2,w=!0,F=k;F<k+2*Math.PI;F+=1/(8*Math.PI))M.push([c+C*Math.cos(F),c+C*Math.sin(F)]);var P=M.shift();d.strokeStyle=r,d.moveTo(P[0],P[1]),A()}}function S(){if(d){d.beginPath(),d.save();for(var e=[],t=y;t<=y+p;t+=20/p){var a=E+(y+t)/h,n=Math.sin(a)*g,o=t,i=2*m*(1-b)+(c-m)-h*n;d.lineTo(o,i),e.push([o,i])}var l=e.shift();d.lineTo(y+p,u),d.lineTo(y,u),d.lineTo(l[0],l[1]);var s=d.createLinearGradient(0,0,0,u);s.addColorStop(0,"#ffffff"),s.addColorStop(1,r),d.fillStyle=s,d.fill(),d.restore()}}function A(){if(d){if(d.clearRect(0,0,s,u),w&&"update"!==e)if(M.length){var t=M.shift();d.lineTo(t[0],t[1]),d.stroke()}else w=!1,d.lineTo(P[0],P[1]),d.stroke(),M=[],d.globalCompositeOperation="destination-over",d.beginPath(),d.lineWidth=f,d.arc(c,c,C,0,2*Math.PI,!0),d.beginPath(),d.save(),d.arc(c,c,c-3*f,0,2*Math.PI,!0),d.restore(),d.clip(),d.fillStyle=r;else{if(o>=.85){if(g>v/4){var a=.01*v;g-=a}}else if(o<=.1){if(g<1.5*v){var n=.01*v;g+=n}}else{if(g<=v){var l=.01*v;g+=l}if(g>=v){var m=.01*v;g-=m}}o-b>0&&(b+=x),o-b<0&&(b-=x),E+=.07,S()}i.timer=requestAnimationFrame(A)}}}},{key:"render",value:function(){var e=this,t=this.state.radio,a=this.props,n=a.percent,r=a.title,o=a.height,i=void 0===o?1:o;return u.default.createElement("div",{className:f.default.waterWave,ref:function(t){return e.root=t},style:{transform:"scale(".concat(t,")")}},u.default.createElement("div",{style:{width:i,height:i,overflow:"hidden"}},u.default.createElement("canvas",{className:f.default.waterWaveCanvasWrapper,ref:function(t){return e.node=t},width:2*i,height:2*i})),u.default.createElement("div",{className:f.default.text,style:{width:i}},r&&u.default.createElement("span",null,r),u.default.createElement("h4",null,n,"%")))}}]),t}(u.Component),p=(0,c.default)()(m);t.default=p},"56f7":function(e,t,a){e.exports={tagCloud:"antd-pro-pages-dashboard-monitor-components-charts-tag-cloud-index-tagCloud"}},AYKu:function(e,t,a){e.exports={miniChart:"antd-pro-pages-dashboard-monitor-components-charts-index-miniChart",chartContent:"antd-pro-pages-dashboard-monitor-components-charts-index-chartContent",chartLoading:"antd-pro-pages-dashboard-monitor-components-charts-index-chartLoading"}},HvMn:function(e,t,a){e.exports={activeChart:"antd-pro-pages-dashboard-monitor-components-active-chart-index-activeChart",activeChartGrid:"antd-pro-pages-dashboard-monitor-components-active-chart-index-activeChartGrid",activeChartLegend:"antd-pro-pages-dashboard-monitor-components-active-chart-index-activeChartLegend",dashedLine:"antd-pro-pages-dashboard-monitor-components-active-chart-index-dashedLine",line:"antd-pro-pages-dashboard-monitor-components-active-chart-index-line"}},MsNA:function(e,t,a){e.exports={pie:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-pie",chart:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-chart",hasLegend:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-hasLegend",legend:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-legend",dot:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-dot",line:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-line",legendTitle:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-legendTitle",percent:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-percent",value:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-value",title:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-title",total:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-total",legendBlock:"antd-pro-pages-dashboard-monitor-components-charts-pie-index-legendBlock"}},PA8y:function(e,t,a){"use strict";var n=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a("qIgq")),i=r(a("p0pE")),l=r(a("2Taf")),d=r(a("vZ4D")),s=r(a("l4Ni")),u=r(a("ujKo")),c=r(a("MhPg")),f=a("yP6+"),m=n(a("q1tI")),p=r(a("cQSq")),h=r(a("9/5/")),v=r(a("TSYQ")),g=r(a("0fa2")),y=r(a("56f7")),E="https://gw.alipayobjects.com/zos/rmsportal/gWyeGLCdFFRavBGIDzWk.png",b=function(e){function t(){var e;return(0,l.default)(this,t),e=(0,s.default)(this,(0,u.default)(t).apply(this,arguments)),e.state={dv:null,height:0,width:0},e.requestRef=0,e.isUnmount=!1,e.root=void 0,e.imageMask=void 0,e.resize=function(){e.requestRef=requestAnimationFrame(function(){e.renderChart(e.props)})},e.saveRootRef=function(t){e.root=t},e.initTagCloud=function(){function e(e){return(0,i.default)({},e.style,{fillOpacity:e.opacity,fontSize:e.origin._origin.size,rotate:e.origin._origin.rotate,text:e.origin._origin.text,textAlign:"center",fontFamily:e.origin._origin.font,fill:e.color,textBaseline:"Alphabetic"})}f.Shape.registerShape("point","cloud",{drawShape:function(t,a){var n=e(t);return a.addShape("text",{attrs:(0,i.default)({},n,{x:t.x,y:t.y})})}})},e.renderChart=(0,h.default)(function(t){var a=t||e.props,n=a.data,r=a.height;if(!(n.length<1)&&e.root){var i=r,l=e.root.offsetWidth,d=function(){var t=(new p.default.View).source(n),a=t.range("value"),r=(0,o.default)(a,2),d=r[0],s=r[1];t.transform({type:"tag-cloud",fields:["name","value"],imageMask:e.imageMask,font:"Verdana",size:[l,i],padding:0,timeInterval:5e3,rotate:function(){return 0},fontSize:function(e){var t=Math.pow((e.value-d)/(s-d),2);return 12.5*t+5}}),e.isUnmount||e.setState({dv:t,width:l,height:i})};e.imageMask?d():(e.imageMask=new Image,e.imageMask.crossOrigin="",e.imageMask.src=E,e.imageMask.onload=d)}},200),e}return(0,c.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this;requestAnimationFrame(function(){e.initTagCloud(),e.renderChart(e.props)}),window.addEventListener("resize",this.resize,{passive:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props.data;e&&JSON.stringify(e.data)!==JSON.stringify(t)&&this.renderChart(this.props)}},{key:"componentWillUnmount",value:function(){this.isUnmount=!0,window.cancelAnimationFrame(this.requestRef),window.removeEventListener("resize",this.resize)}},{key:"render",value:function(){var e=this.props,t=e.className,a=e.height,n=this.state,r=n.dv,o=n.width,i=n.height;return m.default.createElement("div",{className:(0,v.default)(y.default.tagCloud,t),style:{width:"100%",height:a},ref:this.saveRootRef},r&&m.default.createElement(f.Chart,{width:o,height:i,data:r,padding:0,scale:{x:{nice:!1},y:{nice:!1}}},m.default.createElement(f.Tooltip,{showTitle:!1}),m.default.createElement(f.Coord,{reflect:"y"}),m.default.createElement(f.Geom,{type:"point",position:"x*y",color:"text",shape:"cloud",tooltip:["text*value",function(e,t){return{name:e,value:t}}]})))}}]),t}(m.Component),x=(0,g.default)()(b);t.default=x},RaVN:function(e,t,a){"use strict";var n=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("5Dmo");var o=r(a("3S7+"));a("IzEo");var i=r(a("bx4M"));a("jCWc");var l=r(a("kPKH"));a("14J3");var d=r(a("BMrR")),s=r(a("2Taf")),u=r(a("vZ4D")),c=r(a("l4Ni")),f=r(a("ujKo")),m=r(a("MhPg"));a("aHsQ");var p=r(a("sGsY")),h=a("Y2fQ"),v=n(a("q1tI")),g=a("y1Nh"),y=a("MuoO"),E=r(a("ZhIB")),b=a("irej"),x=r(a("VjqU")),M=r(a("38tu")),C=function(e,t,a,n){var r,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,t,a,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(i=(o<3?r(i):o>3?r(t,a,i):r(t,a))||i);return o>3&&i&&Object.defineProperty(t,a,i),i},k=p.default.Countdown,w=(new Date).getTime()+39e5,F=function(e){function t(){return(0,s.default)(this,t),(0,c.default)(this,(0,f.default)(t).apply(this,arguments))}return(0,m.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.dispatch;e({type:"dashboardMonitor/fetchTags"})}},{key:"render",value:function(){var e=this.props,t=e.dashboardMonitor,a=e.loading,n=t.tags;return v.default.createElement(g.GridContent,null,v.default.createElement(v.default.Fragment,null,v.default.createElement(d.default,{gutter:24},v.default.createElement(l.default,{xl:18,lg:24,md:24,sm:24,xs:24,style:{marginBottom:24}},v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.trading-activity",defaultMessage:"Real-Time Trading Activity"}),bordered:!1},v.default.createElement(d.default,null,v.default.createElement(l.default,{md:6,sm:12,xs:24},v.default.createElement(p.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.total-transactions",defaultMessage:"Total transactions today"}),suffix:"\u5143",value:(0,E.default)(124543233).format("0,0")})),v.default.createElement(l.default,{md:6,sm:12,xs:24},v.default.createElement(p.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.sales-target",defaultMessage:"Sales target completion rate"}),value:"92%"})),v.default.createElement(l.default,{md:6,sm:12,xs:24},v.default.createElement(p.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.remaining-time",defaultMessage:"Remaining time of activity"})},v.default.createElement(k,{value:w}))),v.default.createElement(l.default,{md:6,sm:12,xs:24},v.default.createElement(p.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.total-transactions-per-second",defaultMessage:"Total transactions per second"}),suffix:"\u5143",value:(0,E.default)(234).format("0,0")}))),v.default.createElement("div",{className:M.default.mapChart},v.default.createElement(o.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.waiting-for-implementation",defaultMessage:"Waiting for implementation"})},v.default.createElement("img",{src:"https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png",alt:"map"}))))),v.default.createElement(l.default,{xl:6,lg:24,md:24,sm:24,xs:24},v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.activity-forecast",defaultMessage:"Activity forecast"}),style:{marginBottom:24},bordered:!1},v.default.createElement(x.default,null)),v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.efficiency",defaultMessage:"Efficiency"}),style:{marginBottom:24},bodyStyle:{textAlign:"center"},bordered:!1},v.default.createElement(b.Gauge,{title:(0,h.formatMessage)({id:"dashboardmonitor.monitor.ratio",defaultMessage:"Ratio"}),height:180,percent:87})))),v.default.createElement(d.default,{gutter:24},v.default.createElement(l.default,{xl:12,lg:24,sm:24,xs:24,style:{marginBottom:24}},v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.proportion-per-category",defaultMessage:"Proportion Per Category"}),bordered:!1,className:M.default.pieCard},v.default.createElement(d.default,{style:{padding:"16px 0"}},v.default.createElement(l.default,{span:8},v.default.createElement(b.Pie,{animate:!1,percent:28,title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.fast-food",defaultMessage:"Fast food"}),total:"28%",height:128,lineWidth:2})),v.default.createElement(l.default,{span:8},v.default.createElement(b.Pie,{animate:!1,color:"#5DDECF",percent:22,title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.western-food",defaultMessage:"Western food"}),total:"22%",height:128,lineWidth:2})),v.default.createElement(l.default,{span:8},v.default.createElement(b.Pie,{animate:!1,color:"#2FC25B",percent:32,title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.hot-pot",defaultMessage:"Hot pot"}),total:"32%",height:128,lineWidth:2}))))),v.default.createElement(l.default,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24}},v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.popular-searches",defaultMessage:"Popular Searches"}),loading:a,bordered:!1,bodyStyle:{overflow:"hidden"}},v.default.createElement(b.TagCloud,{data:n||[],height:161}))),v.default.createElement(l.default,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24}},v.default.createElement(i.default,{title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.resource-surplus",defaultMessage:"Resource Surplus"}),bodyStyle:{textAlign:"center",fontSize:0},bordered:!1},v.default.createElement(b.WaterWave,{height:161,title:v.default.createElement(h.FormattedMessage,{id:"dashboardmonitor.monitor.fund-surplus",defaultMessage:"Fund Surplus"}),percent:34}))))))}}]),t}(v.Component);F=C([(0,y.connect)(function(e){var t=e.dashboardMonitor,a=e.loading;return{dashboardMonitor:t,loading:a.models.monitor}})],F);var P=F;t.default=P},"U/dc":function(e,t,a){"use strict";var n=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("/zsF");var o=r(a("PArb")),i=r(a("eHn4")),l=r(a("2Taf")),d=r(a("vZ4D")),s=r(a("l4Ni")),u=r(a("ujKo")),c=r(a("MhPg")),f=a("yP6+"),m=n(a("q1tI")),p=a("cQSq"),h=r(a("9/5/")),v=r(a("Jssm")),g=r(a("TSYQ")),y=r(a("0fa2")),E=r(a("MsNA")),b=function(e){function t(){var e;return(0,l.default)(this,t),e=(0,s.default)(this,(0,u.default)(t).apply(this,arguments)),e.state={legendData:[],legendBlock:!1},e.chart=void 0,e.root=void 0,e.requestRef=0,e.resize=(0,h.default)(function(){var t=e.props.hasLegend,a=e.state.legendBlock;t&&e.root?e.root&&e.root.parentNode&&e.root.parentNode.clientWidth<=380?a||e.setState({legendBlock:!0}):a&&e.setState({legendBlock:!1}):window.removeEventListener("resize",e.resize)},300),e.getG2Instance=function(t){e.chart=t,requestAnimationFrame(function(){e.getLegendData(),e.resize()})},e.getLegendData=function(){if(e.chart){var t=e.chart.getAllGeoms()[0];if(t){var a=t.get("dataArray")||[],n=a.map(function(e){var t=e[0]._origin;return t.color=e[0].color,t.checked=!0,t});e.setState({legendData:n})}}},e.handleRoot=function(t){e.root=t},e.handleLegendClick=function(t,a){var n=t;n.checked=!n.checked;var r=e.state.legendData;r[a]=n;var o=r.filter(function(e){return e.checked}).map(function(e){return e.x});e.chart&&e.chart.filter("x",function(e){return o.indexOf("".concat(e))>-1}),e.setState({legendData:r})},e}return(0,c.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",function(){e.requestRef=requestAnimationFrame(function(){return e.resize()})},{passive:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props.data;t!==e.data&&this.getLegendData()}},{key:"componentWillUnmount",value:function(){this.requestRef&&window.cancelAnimationFrame(this.requestRef),window.removeEventListener("resize",this.resize),this.resize&&this.resize.cancel()}},{key:"render",value:function(){var e,t,a=this,n=this.props,r=n.valueFormat,l=n.subTitle,d=n.total,s=n.hasLegend,u=void 0!==s&&s,c=n.className,h=n.style,y=n.height,b=void 0===y?0:y,x=n.forceFit,M=void 0===x||x,C=n.percent,k=n.color,w=n.inner,F=void 0===w?.75:w,P=n.animate,S=void 0===P||P,A=n.colors,N=n.lineWidth,W=void 0===N?1:N,T=this.state,z=T.legendData,D=T.legendBlock,j=(0,g.default)(E.default.pie,c,(e={},(0,i.default)(e,E.default.hasLegend,!!u),(0,i.default)(e,E.default.legendBlock,D),e)),L=this.props,q=L.data,R=L.selected,I=void 0===R||R,O=L.tooltip,G=void 0===O||O,_=q||[],B=I,U=G,H=A;_=_||[],B=B||!0,U=U||!0;var K={x:{type:"cat",range:[0,1]},y:{min:0}};(C||0===C)&&(B=!1,U=!1,t=function(e){return"\u5360\u6bd4"===e?k||"rgba(24, 144, 255, 0.85)":"#F0F2F5"},_=[{x:"\u5360\u6bd4",y:parseFloat("".concat(C))},{x:"\u53cd\u6bd4",y:100-parseFloat("".concat(C))}]);var Q=["x*percent",function(e,t){return{name:e,value:"".concat((100*t).toFixed(2),"%")}}],Z=[12,0,12,0],Y=new p.DataView;return Y.source(_).transform({type:"percent",field:"y",dimension:"x",as:"percent"}),m.default.createElement("div",{ref:this.handleRoot,className:j,style:h},m.default.createElement(v.default,{maxFontSize:25},m.default.createElement("div",{className:E.default.chart},m.default.createElement(f.Chart,{scale:K,height:b,forceFit:M,data:Y,padding:Z,animate:S,onGetG2Instance:this.getG2Instance},!!U&&m.default.createElement(f.Tooltip,{showTitle:!1}),m.default.createElement(f.Coord,{type:"theta",innerRadius:F}),m.default.createElement(f.Geom,{style:{lineWidth:W,stroke:"#fff"},tooltip:U?Q:void 0,type:"intervalStack",position:"percent",color:["x",C||0===C?t:H],selected:B})),(l||d)&&m.default.createElement("div",{className:E.default.total},l&&m.default.createElement("h4",{className:"pie-sub-title"},l),d&&m.default.createElement("div",{className:"pie-stat"},"function"===typeof d?d():d)))),u&&m.default.createElement("ul",{className:E.default.legend},z.map(function(e,t){return m.default.createElement("li",{key:e.x,onClick:function(){return a.handleLegendClick(e,t)}},m.default.createElement("span",{className:E.default.dot,style:{backgroundColor:e.checked?e.color:"#aaa"}}),m.default.createElement("span",{className:E.default.legendTitle},e.x),m.default.createElement(o.default,{type:"vertical"}),m.default.createElement("span",{className:E.default.percent},"".concat((Number.isNaN(e.percent)?0:100*e.percent).toFixed(2),"%")),m.default.createElement("span",{className:E.default.value},r?r(e.y):e.y))})))}}]),t}(m.Component),x=(0,y.default)()(b);t.default=x},VjqU:function(e,t,a){"use strict";var n=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a("gWZ8"));a("aHsQ");var i=r(a("sGsY")),l=r(a("2Taf")),d=r(a("vZ4D")),s=r(a("l4Ni")),u=r(a("ujKo")),c=r(a("MhPg")),f=n(a("q1tI")),m=a("irej"),p=r(a("HvMn"));function h(e){return 1*e<10?"0".concat(e):e}function v(){for(var e=[],t=0;t<24;t+=1)e.push({x:"".concat(h(t),":00"),y:Math.floor(200*Math.random())+50*t});return e}var g=function(e){function t(){var e;return(0,l.default)(this,t),e=(0,s.default)(this,(0,u.default)(t).apply(this,arguments)),e.state={activeData:v()},e.timer=void 0,e.requestRef=void 0,e.loopData=function(){e.requestRef=requestAnimationFrame(function(){e.timer=window.setTimeout(function(){e.setState({activeData:v()},function(){e.loopData()})},1e3)})},e}return(0,c.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.loopData()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer),this.requestRef&&cancelAnimationFrame(this.requestRef)}},{key:"render",value:function(){var e=this.state.activeData,t=void 0===e?[]:e;return f.default.createElement("div",{className:p.default.activeChart},f.default.createElement(i.default,{title:"\u76ee\u6807\u8bc4\u4f30",value:"\u6709\u671b\u8fbe\u5230\u9884\u671f"}),f.default.createElement("div",{style:{marginTop:32}},f.default.createElement(m.MiniArea,{animate:!1,line:!0,borderWidth:2,height:84,scale:{y:{tickCount:3}},yAxis:{tickLine:void 0,label:void 0,title:void 0,line:void 0},data:t})),t&&f.default.createElement("div",null,f.default.createElement("div",{className:p.default.activeChartGrid},f.default.createElement("p",null,(0,o.default)(t).sort()[t.length-1].y+200," \u4ebf\u5143"),f.default.createElement("p",null,(0,o.default)(t).sort()[Math.floor(t.length/2)].y," \u4ebf\u5143")),f.default.createElement("div",{className:p.default.dashedLine},f.default.createElement("div",{className:p.default.line})),f.default.createElement("div",{className:p.default.dashedLine},f.default.createElement("div",{className:p.default.line}))),t&&f.default.createElement("div",{className:p.default.activeChartLegend},f.default.createElement("span",null,"00:00"),f.default.createElement("span",null,t[Math.floor(t.length/2)].x),f.default.createElement("span",null,t[t.length-1].x)))}}]),t}(f.Component);t.default=g},irej:function(e,t,a){"use strict";var n=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Gauge",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"MiniArea",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Pie",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"TagCloud",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"WaterWave",{enumerable:!0,get:function(){return d.default}}),t.default=void 0;var r=n(a("ycIj")),o=n(a("/QFb")),i=n(a("U/dc")),l=n(a("PA8y")),d=n(a("533z")),s={Pie:i.default,WaterWave:d.default,Gauge:r.default,MiniArea:o.default,TagCloud:l.default};t.default=s},"wO+P":function(e,t,a){e.exports={waterWave:"antd-pro-pages-dashboard-monitor-components-charts-water-wave-index-waterWave",text:"antd-pro-pages-dashboard-monitor-components-charts-water-wave-index-text",waterWaveCanvasWrapper:"antd-pro-pages-dashboard-monitor-components-charts-water-wave-index-waterWaveCanvasWrapper"}},ycIj:function(e,t,a){"use strict";var n=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a("yP6+"),o=n(a("q1tI")),i=n(a("0fa2")),l=r.Guide.Arc,d=r.Guide.Html,s=r.Guide.Line,u=function(e){switch(e){case"2":return"\u5dee";case"4":return"\u4e2d";case"6":return"\u826f";case"8":return"\u4f18";default:return""}};r.Shape.registerShape&&r.Shape.registerShape("point","pointer",{drawShape:function(e,t){var a=e.points[0];a=this.parsePoint(a);var n=this.parsePoint({x:0,y:0});return t.addShape("line",{attrs:{x1:n.x,y1:n.y,x2:a.x,y2:a.y,stroke:e.color,lineWidth:2,lineCap:"round"}}),t.addShape("circle",{attrs:{x:n.x,y:n.y,r:6,stroke:e.color,lineWidth:3,fill:"#fff"}})}});var c=function(e){var t=e.title,a=e.height,n=void 0===a?1:a,i=e.percent,c=e.forceFit,f=void 0===c||c,m=e.formatter,p=void 0===m?u:m,h=e.color,v=void 0===h?"#2F9CFF":h,g=e.bgColor,y=void 0===g?"#F0F2F5":g,E={value:{type:"linear",min:0,max:10,tickCount:6,nice:!0}},b=[{value:i/10}],x=function(){return'\n    <div style="width: 300px;text-align: center;font-size: 12px!important;">\n      <p style="font-size: 14px; color: rgba(0,0,0,0.43);margin: 0;">'.concat(t,'</p>\n      <p style="font-size: 24px;color: rgba(0,0,0,0.85);margin: 0;">\n        ').concat((10*b[0].value).toFixed(2),"%\n      </p>\n    </div>")},M={fontSize:12,fill:"rgba(0, 0, 0, 0.65)",textAlign:"center"};return o.default.createElement(r.Chart,{height:n,data:b,scale:E,padding:[-16,0,16,0],forceFit:f},o.default.createElement(r.Coord,{type:"polar",startAngle:-1.25*Math.PI,endAngle:.25*Math.PI,radius:.8}),o.default.createElement(r.Axis,{name:"1",line:void 0}),o.default.createElement(r.Axis,{line:void 0,tickLine:void 0,subTickLine:void 0,name:"value",zIndex:2,label:{offset:-12,formatter:p,textStyle:M}}),o.default.createElement(r.Guide,null,o.default.createElement(s,{start:[3,.905],end:[3,.85],lineStyle:{stroke:v,lineDash:void 0,lineWidth:2}}),o.default.createElement(s,{start:[5,.905],end:[5,.85],lineStyle:{stroke:v,lineDash:void 0,lineWidth:3}}),o.default.createElement(s,{start:[7,.905],end:[7,.85],lineStyle:{stroke:v,lineDash:void 0,lineWidth:3}}),o.default.createElement(l,{start:[0,.965],end:[10,.965],style:{stroke:y,lineWidth:10}}),o.default.createElement(l,{start:[0,.965],end:[b[0].value,.965],style:{stroke:v,lineWidth:10}}),o.default.createElement(d,{position:["50%","95%"],html:x()})),o.default.createElement(r.Geom,{line:!1,type:"point",position:"value*1",shape:"pointer",color:v,active:!1}))},f=(0,i.default)()(c);t.default=f}}]);