(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{32:function(e,t,a){"use strict";a.r(t);var n=a(1),o=a.n(n),r=a(9),i=a.n(r),c=a(0),s=a(6),u=a(11),l=a.n(u),f=a(5),d=Object(s.b)((function(e){var t=JSON.parse(e.args.spec),a=t.data,o=t.layout,r=t.frames,i=t.config,u=e.args.override_height,d=e.args.override_width,m=!1,p=!1,g=!1;switch(e.args.event){case"click":m=!0;break;case"select":p=!0;break;case"hover":g=!0}var b=function(e){if(null!==e){var t=[];e.points.forEach((function(e){t.push({x:e.x,y:e.y,curveNumber:e.curveNumber,pointNumber:e.pointNumber,pointIndex:e.pointIndex})}));var a=y.layout.xaxis.range,n={points:t,selected_range:a};s.a.setComponentValue(n)}else{var o={points:[],selected_range:y.layout.xaxis.range};s.a.setComponentValue(o)}},h=Object(n.useState)({data:a,layout:o,frames:r,config:i}),v=Object(c.a)(h,2),y=v[0],x=v[1];return s.a.setFrameHeight(u),Object(f.jsx)(l.a,{data:y.data,layout:y.layout,config:y.config,frames:y.frames,onClick:m?b:function(){},onSelected:p?b:function(){},onHover:g?b:function(){},onInitialized:function(e){x({data:a,layout:o,frames:r,config:i}),b(null)},onUpdate:function(e){return x({data:e.data,layout:e.layout,frames:e.frames,config:e.config})},style:{width:d,height:u},onAfterPlot:function(){b(null)}})}));i.a.render(Object(f.jsx)(o.a.StrictMode,{children:Object(f.jsx)(d,{})}),document.getElementById("root"))}},[[32,1,2]]]);
//# sourceMappingURL=main.d46ddca9.chunk.js.map