(this["webpackJsonp@subql/indexer-admin"]=this["webpackJsonp@subql/indexer-admin"]||[]).push([[20],{1315:function(e,o,t){"use strict";t.r(o);var n=t(1311),i=(t(34),t(0),t(90),Object.defineProperty),r=function(e,o){return i(e,"name",{value:o,configurable:!0})};function u(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function a(e){var o=e.state.info.options;return(null===o||void 0===o?void 0:o.hoverTime)||500}function m(e,o){var t=e.state.info,i=o.target||o.srcElement;if(i instanceof HTMLElement&&"SPAN"===i.nodeName&&void 0===t.hoverTimeout){var u=i.getBoundingClientRect(),m=r((function(){clearTimeout(t.hoverTimeout),t.hoverTimeout=setTimeout(p,l)}),"onMouseMove"),f=r((function(){n.C.off(document,"mousemove",m),n.C.off(e.getWrapperElement(),"mouseout",f),clearTimeout(t.hoverTimeout),t.hoverTimeout=void 0}),"onMouseOut"),p=r((function(){n.C.off(document,"mousemove",m),n.C.off(e.getWrapperElement(),"mouseout",f),t.hoverTimeout=void 0,s(e,u)}),"onHover"),l=a(e);t.hoverTimeout=setTimeout(p,l),n.C.on(document,"mousemove",m),n.C.on(e.getWrapperElement(),"mouseout",f)}}function s(e,o){var t=e.coordsChar({left:(o.left+o.right)/2,top:(o.top+o.bottom)/2}),n=e.state.info.options,i=n.render||e.getHelper(t,"info");if(i){var r=e.getTokenAt(t,!0);if(r){var u=i(r,n,e,t);u&&f(e,o,u)}}}function f(e,o,t){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(t),document.body.appendChild(i);var u=i.getBoundingClientRect(),a=window.getComputedStyle(i),m=u.right-u.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),s=u.bottom-u.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),f=o.bottom;s>window.innerHeight-o.bottom-15&&o.top>window.innerHeight-o.bottom&&(f=o.top-s),f<0&&(f=o.bottom);var p,l=Math.max(0,window.innerWidth-m-15);l>o.left&&(l=o.left),i.style.opacity="1",i.style.top=f+"px",i.style.left=l+"px";var v=r((function(){clearTimeout(p)}),"onMouseOverPopup"),d=r((function(){clearTimeout(p),p=setTimeout(c,200)}),"onMouseOut"),c=r((function(){n.C.off(i,"mouseover",v),n.C.off(i,"mouseout",d),n.C.off(e.getWrapperElement(),"mouseout",d),i.style.opacity?(i.style.opacity="0",setTimeout((function(){i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");n.C.on(i,"mouseover",v),n.C.on(i,"mouseout",d),n.C.on(e.getWrapperElement(),"mouseout",d)}n.C.defineOption("info",!1,(function(e,o,t){if(t&&t!==n.C.Init){var i=e.state.info.onMouseOver;n.C.off(e.getWrapperElement(),"mouseover",i),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(o){var r=e.state.info=u(o);r.onMouseOver=m.bind(null,e),n.C.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}})),r(u,"createState"),r(a,"getHoverTime"),r(m,"onMouseOver"),r(s,"onMouseHover"),r(f,"showPopup")}}]);
//# sourceMappingURL=20.1e1f9d7c.chunk.js.map