1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7887],{7887:function(t,e,n){n.r(e);var r=n(6042),i=n(5893);n(381);var a=n(3575),o=n(7294),s=n(8943),l=n(4463),c=n(5961),u=a.FFi({decimal:",",thousands:"\xa0",grouping:[3],currency:["","\xa0â¬"]}).format("$.3~s"),d=function(t){var e,n,r,s=t.height,c=t.width,d=t.margin,f=t.data,p=t.inHeight,h=t.inWidth,v=(0,o.useContext)(l.ItemContext).filterDict,m=f.filter(function(t){return t.block===v.currentBlock}),g=(0,o.useRef)(),y=function(){var t=function(){v.style("opacity",1),y.style("opacity",1)},i=function(t){var e=n.invert(a.cx$(t)[0]),i=m[f(m,e)];void 0!==i&&(v.attr("cx",n(i.value)).attr("cy",r(i.perc)),y.html(u(i.value)+" - "+i.perc+"%").attr("x",n(i.value)+15).attr("y",r(i.perc)))},o=function(){v.style("opacity",0),y.style("opacity",0)};a.Ys(g.current).selectAll("*").remove();var l=a.Ys(g.current).attr("width",c).attr("height",s).append("g").attr("transform","translate("+d.left+","+d.top+")");n=a.BYU().domain([a.VV$(m,function(t){return+t.value}),a.Fp7(m,function(t){return+t.value})]).range([0,h]).nice(),l.append("g").style("font","16px arial").style("font-weight","bold").attr("transform","translate(0,"+p+")").call(a.LLu(n).ticks(8,"~s")),r=a.BYU().domain([0,100]).range([p,0]),l.append("g").style("font","16px arial").style("font-weight","bold").attr("transform","translate(0,0)").call(a.y4O(r).tickFormat(function(t){return"".concat(t,"%")})),l.append("text").attr("x",0).attr("y",0).style("opacity",0).style("font-size",17);var f=a.YFb(function(t){return t.value}).left,v=l.append("g").append("circle").style("fill","none").attr("stroke","black").attr("r",8.5).style("opacity",0),y=l.append("g").append("text").style("opacity",0).attr("text-anchor","left").attr("alignment-baseline","middle");e=l.append("g").append("path").datum(m).attr("d",a.jvg().curve(a.$0Z).x(function(t){return n(t.value)}).y(function(t){return r(t.perc)})).attr("fill","none").attr("stroke","#0E5A8A").attr("stroke-width",4),l.append("rect").style("fill","none").style("pointer-events","all").attr("width",c).attr("height",s).on("mouseover",t).on("mousemove",i).on("mouseout",o)};return(0,o.useEffect)(function(){var t=f.filter(function(t){return t.block===v.currentBlock});void 0!==e&&e.datum(t).transition().duration(100).attr("d",a.jvg().curve(a.$0Z).x(function(t){return n(t.value)}).y(function(t){return r(t.perc)})).attr("fill","none").attr("stroke","#5C7080").attr("stroke-width",4)},[v.currentBlock]),(0,o.useEffect)(function(){y()},[s,c,d,f,p,h]),(0,i.jsx)("div",{className:"chart",children:(0,i.jsx)("svg",{ref:g})})},f=function(t){t.itemProps,t.simList;var e=t.currentSim,n=t.simData,a=(0,o.useState)(window.innerHeight-160),u=a[0],f=a[1],p=(0,o.useState)(window.innerWidth),h=p[0],v=p[1];(0,o.useContext)(l.ItemContext).filterDict;var m={top:50,right:30,bottom:40,left:50},g=h-m.left-m.right,y=u-m.top-m.bottom;c.os.SimResultSheet;var x=function(){setTimeout(function(){u!==window.innerHeight-100&&f(window.innerHeight-100),h!==window.innerWidth&&v(window.innerWidth)},200)};return(window.addEventListener("resize",x),0===n.length)?(0,i.jsx)("div",{children:(0,i.jsx)(s.$j,{className:"centered",size:100})}):(0,i.jsxs)("div",{children:[(0,i.jsx)(d,(0,r.Z)({},{height:u,width:h,margin:m,inHeight:y,inWidth:g,data:n,simInfo:e})),(0,i.jsxs)("div",{children:["Yksityiskohdat simulaation tuloksista l\xf6yd\xe4t"," ",(0,i.jsx)("a",{href:"https://docs.google.com/spreadsheets/d/".concat(e.id,"/"),target:"_blank",rel:"noopener noreferrer",children:"t\xe4\xe4lt\xe4"}),"."]})]})};e.default=f}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.