(this["webpackJsonp@arcblock/forge-web"]=this["webpackJsonp@arcblock/forge-web"]||[]).push([[10],{1692:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return S});var n=a(30),r=a(241),i=a(1),l=a.n(i),o=a(90),c=(a(1532),a(1570)),p=a.n(c),s=a(1130),d=a.n(s),u=a(1234),m=a.n(u),f=a(1242),y=a.n(f),g=a(1577),E=a.n(g),b=a(186);function k(){var e=Object(r.a)(["\n  .time {\n    margin: 0;\n  }\n\n  .metrics {\n    padding: 0;\n    margin: 0;\n  }\n\n  .metric {\n    list-style-position: inside;\n    list-style-type: disc;\n  }\n"]);return k=function(){return e},e}var v=function(e){if(e.payload&&e.payload[0]&&e.payload[0].payload){var t=e.payload[0].payload,a=Object.keys(t).filter(function(e){return"time"!==e});return l.a.createElement(h,null,l.a.createElement("p",{className:"time"},t.time),l.a.createElement("ul",{className:"metrics"},a.map(function(e){return l.a.createElement("li",{key:e,className:"metric"},l.a.createElement("span",{className:"metric-name"},e)," ",t[e])})))}return null},h=o.default.div(k());function S(e){var t=e.data,a=e.series,r=e.legend,i=Object(b.e)(),o=Object(n.a)(i,1)[0];return l.a.createElement(p.a,null,l.a.createElement(E.a,{data:t,margin:{top:10,right:3,left:3,bottom:10}},l.a.createElement("defs",null,a.filter(function(e){return e.gradientStart&&e.gradientStop}).map(function(e){var t=e.dataKey,a=e.gradientStart,n=e.gradientStop;return l.a.createElement("linearGradient",{key:t,id:"gradient-".concat(t),x1:"0",y1:"0",x2:"0",y2:"1"},l.a.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:1}),l.a.createElement("stop",{offset:"95%",stopColor:n,stopOpacity:0}))})),l.a.createElement(m.a,{cursor:!1,content:v,wrapperStyle:{width:"auto",minWidth:"90px",padding:"8px 12px",fontSize:"14px",color:"#ffffff",backgroundColor:"#4a4a4a",borderRadius:"2px"}}),r&&l.a.createElement(d.a,{verticalAlign:"top",height:36}),a.map(function(e){var t=e.dataKey,a=e.stroke,n=e.gradientStart,r=e.gradientStop;return l.a.createElement(y.a,{key:"area-".concat(t),type:"monotone",dataKey:t,stroke:a,fillOpacity:"dark"===o?.05:1,fill:n&&r?"url(#gradient-".concat(t,")"):null})})))}S.defaultProps={legend:!1}}}]);
//# sourceMappingURL=10.5b2d0d8b.chunk.js.map