Fixes tradingview/charting_library#614 Fixes tradingview/charting_library#2701 Fixes tradingview/charting_library#2858 Fixes tradingview/charting_library#4019 Fixes tradingview/charting_library#4056 Fixes tradingview/charting_library#4116 Fixes tradingview/charting_library#4473 Fixes tradingview/charting_library#4674 Fixes tradingview/charting_library#4742 Fixes tradingview/charting_library#4746 Fixes tradingview/charting_library#4764 Fixes tradingview/charting_library#4769 Fixes tradingview/charting_library#4986 Fixes tradingview/charting_library#5022 Fixes tradingview/charting_library#5082 Fixes tradingview/charting_library#5228 Fixes tradingview/charting_library#5305 Fixes tradingview/charting_library#5312 Fixes tradingview/charting_library#5354 Fixes tradingview/charting_library#5397 Fixes tradingview/charting_library#5410 Fixes tradingview/charting_library#5429 Fixes tradingview/charting_library#5433 Fixes tradingview/charting_library#5455 Fixes tradingview/charting_library#5466 Fixes tradingview/charting_library#5470 Fixes tradingview/charting_library#5486 Fixes tradingview/charting_library#5488 Fixes tradingview/charting_library#5491 Fixes tradingview/charting_library#5494 Fixes tradingview/charting_library#5531 Fixes tradingview/charting_library#5557 Fixes tradingview/charting_library#5581 Fixes tradingview/charting_library#5598 Fixes tradingview/charting_library#5611 Fixes tradingview/charting_library#5638 Fixes tradingview/charting_library#5706
3 lines
7.3 KiB
JavaScript
3 lines
7.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{"/KDZ":function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var n=o("mrSG"),r=o("q1tI"),i=function(e){function t(t){var o=e.call(this,t)||this;return o._handleChange=function(){o.forceUpdate()},o.state={query:window.matchMedia(o.props.rule)},o}return Object(n.c)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(r.PureComponent)},"9dlw":function(e,t,o){"use strict";o.d(t,"a",(function(){return v}));var n=o("mrSG"),r=o("q1tI"),i=o.n(r),a=o("i8i4"),c=o.n(a),l=(o("EsMY"),o("AiMB")),s=o("DTHj"),u=o("X0gx"),d=o("8Rai");function v(e){var t=e.controller,o=e.children,a=e.isOpened,v=e.closeOnClickOutside,f=void 0===v||v,m=e.doNotCloseOn,h=e.onClickOutside,p=e.onClose,b=Object(n.e)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),g=Object(r.useContext)(u.a),y=Object(d.a)({handler:function(e){h&&h(e);if(!f)return;if(m&&e.target instanceof Node){var t=c.a.findDOMNode(m);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return a?i.a.createElement(l.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.a.createElement("span",{ref:y,style:{pointerEvents:"auto"}},i.a.createElement(s.a,Object(n.a)({},b,{isOpened:a,onClose:p,onScroll:function(t){var o=e.onScroll;o&&o(t);t.stopPropagation()},customCloseDelegate:g,ref:t}),o))):null}},KKsp:function(e,t,o){"use strict";o.d(t,"a",(function(){return c}));var n=o("q1tI"),r=o("TSYQ"),i=o.n(r),a=o("NOPy");function c(e){var t=e.size,o=void 0===t?"normal":t,r=e.className;return n.createElement("div",{className:i()(a.separator,"small"===o&&a.small,"normal"===o&&a.normal,"large"===o&&a.large,r)})}},N5tr:function(e,t,o){"use strict";o.d(t,"a",(function(){return d})),o.d(t,"b",(function(){return m}));var n=o("mrSG"),r=o("q1tI"),i=o.n(r),a=o("TSYQ"),c=o("tWVy"),l=o("JWMC"),s=o("QpNh"),u=o("v1bN"),d=u;function v(e){var t=e.reference,o=Object(n.e)(e,["reference"]),r=Object(n.a)(Object(n.a)({},o),{ref:t});return i.a.createElement(e.href?"a":"div",r)}function f(e){e.stopPropagation()}function m(e){var t,o,d,m=e.className,h=e.title,p=e.labelRowClassName,b=e.shortcut,g=e.forceShowShortcuts,y=e.icon,w=e.isActive,O=e.isDisabled,E=e.isHovered,C=e.appearAsDisabled,j=e.label,k=e.link,N=e.showToolboxOnHover,S=e.target,M=e.toolbox,x=e.reference,q=e.onMouseOut,D=e.onMouseOver,_=e.theme,T=void 0===_?u:_,I=Object(s.a)(e),P=Object(r.useRef)(null)
|
|
;return i.a.createElement(v,Object(n.a)({},I,{className:a(m,T.item,y&&T.withIcon,(t={},t[T.isActive]=w,t[T.isDisabled]=O||C,t[T.hovered]=E,t)),title:h,href:k,target:S,reference:function(e){P.current=e,x&&x(e)},onClick:function(t){var o=e.dontClosePopup,n=e.onClick,r=e.onClickArg,i=e.trackEventObject;if(O)return;i&&Object(l.trackEvent)(i.category,i.event,i.label);n&&n(r,t);o||Object(c.b)()},onContextMenu:function(t){var o=e.trackEventObject,n=e.trackRightClick;o&&n&&Object(l.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){var o=e.trackEventObject,n=e.trackMouseWheelClick;if(1===t.button&&k&&o){var r=o.label;n&&(r+="_mouseWheelClick"),Object(l.trackEvent)(o.category,o.event,r)}},onMouseOver:D,onMouseOut:q}),void 0!==y&&i.a.createElement("div",{className:T.icon,dangerouslySetInnerHTML:{__html:y}}),i.a.createElement("div",{className:a(T.labelRow,p)},i.a.createElement("div",{className:T.label},j)),(void 0!==b||g)&&i.a.createElement("div",{className:T.shortcut},(d=b)&&d.split("+").join(" + ")),void 0!==M&&i.a.createElement("div",{onClick:f,className:a(T.toolbox,(o={},o[T.showOnHover]=N,o))},M))}},NOPy:function(e,t,o){e.exports={separator:"separator-25lkUpN-",small:"small-1IE19htj",normal:"normal-2jX5NqMI",large:"large-3vmbMIE7"}},v1bN:function(e,t,o){e.exports={"tablet-small-breakpoint":"screen and (max-width: 419px)",item:"item-2xPVYue0",hovered:"hovered-1uf45E05",isDisabled:"isDisabled-1wLqKupj",isActive:"isActive-2j-GhQs_",shortcut:"shortcut-30pveiCO",toolbox:"toolbox-3ulPxfe-",withIcon:"withIcon-1xBjf-oB",icon:"icon-2Qm7YIcz",labelRow:"labelRow-3Q0rdE8-",label:"label-3Xqxy756",showOnHover:"showOnHover-1q6ySzZc"}},"x0D+":function(e,t,o){var n,r,i;r=[t],void 0===(i="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var o=!1;if("undefined"!=typeof window){var n={get passive(){o=!0}};window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}var r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),i=[],a=!1,c=-1,l=void 0,s=void 0,u=function(e){return i.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function(e){var t=e||window.event;return!!u(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},v=function(){setTimeout((function(){void 0!==s&&(document.body.style.paddingRight=s,s=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)}))};e.disableBodyScroll=function(e,n){if(r){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!i.some((function(t){return t.targetElement===e}))){var v={targetElement:e,options:n||{}};i=[].concat(t(i),[v]),e.ontouchstart=function(e){1===e.targetTouches.length&&(c=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var o,n,r,i
|
|
;1===t.targetTouches.length&&(n=e,i=(o=t).targetTouches[0].clientY-c,!u(o.target)&&(n&&0===n.scrollTop&&0<i||(r=n)&&r.scrollHeight-r.scrollTop<=r.clientHeight&&i<0?d(o):o.stopPropagation()))},a||(document.addEventListener("touchmove",d,o?{passive:!1}:void 0),a=!0)}}else{m=n,setTimeout((function(){if(void 0===s){var e=!!m&&!0===m.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(s=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")}));var f={targetElement:e,options:n||{}};i=[].concat(t(i),[f])}var m},e.clearAllBodyScrollLocks=function(){r?(i.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",d,o?{passive:!1}:void 0),a=!1),i=[],c=-1):(v(),i=[])},e.enableBodyScroll=function(e){if(r){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,i=i.filter((function(t){return t.targetElement!==e})),a&&0===i.length&&(document.removeEventListener("touchmove",d,o?{passive:!1}:void 0),a=!1)}else 1===i.length&&i[0].targetElement===e?(v(),i=[]):i=i.filter((function(t){return t.targetElement!==e}))}})?n.apply(t,r):n)||(e.exports=i)}}]); |