"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3423],{65286:function(e,t,n){var i=n(1413),a=n(29439),r=n(72791),l=n(68286),u=n(80184);function d(e){var t=r.useState(null),n=(0,a.Z)(t,2),d=n[0],s=n[1],o=r.useState(e.style?void 0:null),f=(0,a.Z)(o,2),c=f[0],v=f[1],h=r.useRef(document.createElement("div"));return r.useEffect((function(){var t=window.requestAnimationFrame((function(){s(JSON.parse(e.data.data.data))}));return function(){return window.cancelAnimationFrame(t)}}),[e.data.data.data]),r.useEffect((function(){if(d&&h.current&&e.style){var t=h.current.firstChild,n=h.current.parentElement;if(t&&n){var i=h.current.offsetWidth+20,a=h.current.offsetHeight+20,r=n.offsetWidth/i,l=(n.offsetHeight-30)/a;v(r<1||l<1?Math.min(r,l):null)}}}),[d,e.style]),(0,u.jsx)("div",{style:{display:"inline-block",visibility:void 0!==c&&d?"visible":"hidden",transform:void 0===c||null===c?"":"scale(".concat(c,")")},ref:h,children:(0,u.jsx)(l.Z,{data:(null===d||void 0===d?void 0:d.data)||[],layout:(0,i.Z)({},null===d||void 0===d?void 0:d.layout),frames:null===d||void 0===d?void 0:d.frames,useResizeHandler:!0})})}t.Z=r.memo(d)},23331:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var i=n(1413),a=(n(72791),n(65286)),r=n(80184);var l=function(e){return(0,r.jsx)("div",{style:{height:"100%",overflow:"hidden",display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(a.Z,{data:{data:{data:e.data}},style:{width:"100%",height:"100%"}})})};var u=function(e){return(0,r.jsx)("div",{className:"VizComponentContainer",style:{minHeight:400},children:(0,r.jsx)(l,(0,i.Z)({},e))})}}}]);
//# sourceMappingURL=Plotly.6107b4d7.chunk.js.map