Fixes tradingview/charting_library#4599 Fixes tradingview/charting_library#4613 Fixes tradingview/charting_library#4764 Fixes tradingview/charting_library#4801 Fixes tradingview/charting_library#5112
2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+EG+":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var o=n("mrSG"),r=n("q1tI"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.__extends)(e,t),e.prototype.shouldComponentUpdate=function(){return!1},e.prototype.render=function(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},e}(r.Component),s=r.createContext(null)},"8Rai":function(t,e,n){"use strict";var o=n("q1tI"),r=function(t,e){var n=void 0===e?{}:e,o=n.bubbles,r=void 0!==o&&o,i=n.cancelable,s=void 0!==i&&i,u=n.detail,c=void 0===u?null:u;try{return new window.CustomEvent(t,{bubbles:r,cancelable:s,detail:c})}catch(d){var a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,c),a}},i=n("R5JZ");function s(t){var e=t.click,n=t.mouseDown,s=t.touchEnd,u=t.touchStart,c=t.handler,a=t.reference,d=t.ownerDocument,p=void 0===d?document:d,l=Object(o.useRef)(null),h=Object(o.useRef)(new r("timestamp").timeStamp);return Object(o.useLayoutEffect)((function(){var t={click:e,mouseDown:n,touchEnd:s,touchStart:u},o=a?a.current:l.current;return Object(i.a)(h.current,o,c,p,t)}),[e,n,s,u,c]),a||l}n.d(e,"a",(function(){return s}))},AiMB:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return d}));var o=n("mrSG"),r=n("q1tI"),i=n("i8i4"),s=n("0waE"),u=n("jAh7"),c=n("+EG+"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._uuid=Object(s.guid)(),e}return Object(o.__extends)(e,t),e.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},e.prototype.render=function(){var t=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.right||"",t.style.pointerEvents=this.props.pointerEvents||null,i.createPortal(r.createElement(d.Provider,{value:this},this.props.children),t)},e.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},e.prototype._manager=function(){return null===this.context?Object(u.getRootOverlapManager)():this.context},e.contextType=c.b,e}(r.PureComponent),d=r.createContext(null)},QpNh:function(t,e,n){"use strict";function o(t){for(var e={},n=0,o=Object.entries(t).filter(r);n<o.length;n++){var i=o[n],s=i[0],u=i[1];e[s]=u}return e}function r(t){var e=t[0],n=t[1];return 0===e.indexOf("data-")&&"string"==typeof n}n.d(e,"a",(function(){return o}))},R5JZ:function(t,e,n){"use strict";function o(t,e,n,o,r){function i(r){if(!(t>r.timeStamp)){var i=r.target;void 0!==n&&null!==e&&null!==i&&i.ownerDocument===o&&(e.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),
|
|
o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(e,"a",(function(){return o}))},jAh7:function(t,e,n){"use strict";n.r(e),n.d(e,"OverlapManager",(function(){return i})),n.d(e,"getRootOverlapManager",(function(){return u}));var o=n("Eyy1"),r=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter((function(e){return t!==e}))},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),i=function(){function t(t){void 0===t&&(t=document),this._storage=new r,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var e=this._container,n=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach((function(t){t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)}))}(e,n),this._container=n},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,e){void 0===e&&(e={position:"fixed",direction:"normal"});var n=this._windows.get(t);if(void 0!==n)return n;this.registerWindow(t);var o=this._document.createElement("div");if(o.style.position=e.position,o.style.zIndex=this._index.toString(),o.dataset.id=t,void 0!==e.index){var r=this._container.childNodes.length;if(e.index>=r)this._container.appendChild(o);else if(e.index<=0)this._container.insertBefore(o,this._container.firstChild);else{var i=this._container.childNodes[e.index];this._container.insertBefore(o,i)}}else"reverse"===e.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(t,o),++this._index,o},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))},t.prototype.getZindex=function(t){var e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),s=new WeakMap;function u(t){void 0===t&&(t=document);var e=t.getElementById("overlap-manager-root");if(null!==e)return Object(o.ensureDefined)(s.get(e));var n=new i(t),r=function(t){var e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return s.set(r,n),n.setContainer(r),t.body.appendChild(r),n}}}]); |