(this["webpackJsonp@arcblock/forge-web"]=this["webpackJsonp@arcblock/forge-web"]||[]).push([[5],{1585:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return x}));var n=a(26),r=a(202),l=a(0),o=a.n(l),i=a(79),c=(a(1348),a(1399)),s=a.n(c),p=a(1059),d=a.n(p),m=a(1165),f=a.n(m),u=a(1179),y=a.n(u),g=a(1406),E=a.n(g),b=a(156);function k(){const 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}const h=e=>{if(e.payload&&e.payload[0]&&e.payload[0].payload){const t=e.payload[0].payload,a=Object.keys(t).filter(e=>"time"!==e);return o.a.createElement(S,null,o.a.createElement("p",{className:"time"},t.time),o.a.createElement("ul",{className:"metrics"},a.map(e=>o.a.createElement("li",{key:e,className:"metric"},o.a.createElement("span",{className:"metric-name"},e)," ",t[e]))))}return null},S=i.default.div(k());function x({data:e,series:t,legend:a}){const r=Object(b.f)(),l=Object(n.a)(r,1)[0];return o.a.createElement(s.a,null,o.a.createElement(E.a,{data:e,margin:{top:10,right:3,left:3,bottom:10}},o.a.createElement("defs",null,t.filter(e=>e.gradientStart&&e.gradientStop).map(({dataKey:e,gradientStart:t,gradientStop:a})=>o.a.createElement("linearGradient",{key:e,id:"gradient-".concat(e),x1:"0",y1:"0",x2:"0",y2:"1"},o.a.createElement("stop",{offset:"0%",stopColor:t,stopOpacity:1}),o.a.createElement("stop",{offset:"95%",stopColor:a,stopOpacity:0})))),o.a.createElement(f.a,{cursor:!1,content:h,wrapperStyle:{width:"auto",minWidth:"90px",padding:"8px 12px",fontSize:"14px",color:"#ffffff",backgroundColor:"#4a4a4a",borderRadius:"2px"}}),a&&o.a.createElement(d.a,{verticalAlign:"top",height:36}),t.map(({dataKey:e,stroke:t,gradientStart:a,gradientStop:n})=>o.a.createElement(y.a,{key:"area-".concat(e),type:"monotone",dataKey:e,stroke:t,fillOpacity:"dark"===l?.05:1,fill:a&&n?"url(#gradient-".concat(e,")"):null}))))}x.defaultProps={legend:!1}}}]);
//# sourceMappingURL=5.feca88bf.chunk.js.map