(window["webpackJsonp@arcblock/forge-web"]=window["webpackJsonp@arcblock/forge-web"]||[]).push([[6],{1637: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),o=a.n(i),l=a(89),c=(a(1462),a(1500)),d=a.n(c),p=a(1117),s=a.n(p),u=a(1210),m=a.n(u),f=a(1218),y=a.n(f),g=a(1507),E=a.n(g),b=a(187);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 w=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 o.a.createElement(v,null,o.a.createElement("p",{className:"time"},t.time),o.a.createElement("ul",{className:"metrics"},a.map(function(e){return o.a.createElement("li",{key:e,className:"metric"},o.a.createElement("span",{className:"metric-name"},e)," ",t[e])})))}return null},v=l.default.div(k());function S(e){var t=e.data,a=e.series,r=e.legend,i=Object(b.e)(),l=Object(n.a)(i,1)[0];return o.a.createElement(d.a,null,o.a.createElement(E.a,{data:t,margin:{top:10,right:3,left:3,bottom:10}},o.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 o.a.createElement("linearGradient",{key:t,id:"gradient-".concat(t),x1:"0",y1:"0",x2:"0",y2:"1"},o.a.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:1}),o.a.createElement("stop",{offset:"95%",stopColor:n,stopOpacity:0}))})),o.a.createElement(m.a,{cursor:!1,content:w,wrapperStyle:{width:"auto",minWidth:"90px",padding:"8px 12px",fontSize:"14px",color:"#ffffff",backgroundColor:"#4a4a4a",borderRadius:"2px"}}),r&&o.a.createElement(s.a,{verticalAlign:"top",height:36}),a.map(function(e){var t=e.dataKey,a=e.stroke,n=e.gradientStart,r=e.gradientStop;return o.a.createElement(y.a,{key:"area-".concat(t),type:"monotone",dataKey:t,stroke:a,fillOpacity:"dark"===l?.05:1,fill:n&&r?"url(#gradient-".concat(t,")"):null})})))}S.defaultProps={legend:!1}}}]);
//# sourceMappingURL=6.ee522802.chunk.js.map