"use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[361],{3361:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(o(6246));function u(e,t){var o=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===n.nodeName&&void 0===o.hoverTimeout){var u=n.getBoundingClientRect(),r=function(){clearTimeout(o.hoverTimeout),o.hoverTimeout=setTimeout(f,m)},a=function(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(o.hoverTimeout),o.hoverTimeout=void 0},f=function(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",a),o.hoverTimeout=void 0,function(e,t){var o=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,u=n.options,r=u.render||e.getHelper(o,"info");if(r){var a=e.getTokenAt(o,!0);if(a){var f=r(a,u,e,o);f&&function(e,t,o){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(o),document.body.appendChild(n);var u=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=u.right-u.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=u.bottom-u.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom),m=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(m=t.top-f);m<0&&(m=t.bottom);var l,d=Math.max(0,window.innerWidth-a-15);d>t.left&&(d=t.left);n.style.opacity="1",n.style.top=m+"px",n.style.left=d+"px";var s=function(){clearTimeout(l)},p=function(){clearTimeout(l),l=setTimeout(c,200)},c=function(){i.default.off(n,"mouseover",s),i.default.off(n,"mouseout",p),i.default.off(e.getWrapperElement(),"mouseout",p),n.style.opacity?(n.style.opacity="0",setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n)}),600)):n.parentNode&&n.parentNode.removeChild(n)};i.default.on(n,"mouseover",s),i.default.on(n,"mouseout",p),i.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,f)}}}(e,u)},m=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);o.hoverTimeout=setTimeout(f,m),i.default.on(document,"mousemove",r),i.default.on(e.getWrapperElement(),"mouseout",a)}}i.default.defineOption("info",!1,(function(e,t,o){if(o&&o!==i.default.Init){var n=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var r=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);r.onMouseOver=u.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}))}}]);
//# sourceMappingURL=361.690552e0.chunk.js.map