Files
ai/charting_library/bundles/full-tooltips-popup.9b0d6f4a4b1ee83dfe31.js

5 lines
14 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["full-tooltips-popup"],{"+EG+":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},t}(r.Component),a=r.createContext(null)},"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(o.__extends)(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)},"8Rai":function(e,t,n){"use strict";var o=n("q1tI"),r=function(e,t){var n=void 0===t?{}:t,o=n.bubbles,r=void 0!==o&&o,i=n.cancelable,a=void 0!==i&&i,s=n.detail,u=void 0===s?null:s;try{return new window.CustomEvent(e,{bubbles:r,cancelable:a,detail:u})}catch(l){var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r,a,u),c}},i=n("R5JZ");function a(e){var t=e.click,n=e.mouseDown,a=e.touchEnd,s=e.touchStart,u=e.handler,c=e.reference,l=e.ownerDocument,d=void 0===l?document:l,p=Object(o.useRef)(null),f=Object(o.useRef)(new r("timestamp").timeStamp);return Object(o.useLayoutEffect)((function(){var e={click:t,mouseDown:n,touchEnd:a,touchStart:s},o=c?c.current:p.current;return Object(i.a)(f.current,o,u,d,e)}),[t,n,a,s,u]),c||p}n.d(t,"a",(function(){return a}))},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),s=n.n(a),u=(n("bf9a"),n("AiMB")),c=n("DTHj"),l=n("X0gx"),d=n("8Rai");function p(e){var t=e.controller,n=e.children,a=e.isOpened,p=e.closeOnClickOutside,f=void 0===p||p,v=e.doNotCloseOn,m=e.onClickOutside,h=e.onClose,y=Object(o.__rest)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),g=Object(r.useContext)(l.a),b=Object(d.a)({handler:function(e){m&&m(e);if(!f)return;if(v&&e.target instanceof Node){var t=s.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return a?i.a.createElement(u.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.a.createElement("span",{
ref:b,style:{pointerEvents:"auto"}},i.a.createElement(c.a,Object(o.__assign)({},y,{isOpened:a,onClose:h,onScroll:function(t){var n=e.onScroll;n&&n(t);t.stopPropagation()},customCloseDelegate:g,ref:t}),n))):null}},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n("mrSG"),r=n("q1tI"),i=n("i8i4"),a=n("0waE"),s=n("jAh7"),u=n("+EG+"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._uuid=Object(a.guid)(),t}return Object(o.__extends)(t,e),t.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},t.prototype.render=function(){var e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||null,i.createPortal(r.createElement(l.Provider,{value:this},this.props.children),e)},t.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},t.prototype._manager=function(){return null===this.context?Object(s.getRootOverlapManager)():this.context},t.contextType=u.b,t}(r.PureComponent),l=r.createContext(null)},Iivm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("swCq"),t)},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n("q1tI"),r=n.n(o),i=n("Eyy1"),a=n("TSYQ"),s=n("x0D+"),u=n("33OQ"),c=n("AiMB"),l=n("mkWe"),d=n("qFKp"),p=n("tWVy"),f=n("sHQ4");function v(e){var t=e.position,n=e.onClose,v=e.children,m=e.className,h=Object(i.ensureNotNull)(Object(o.useContext)(l.a)),y=Object(o.useState)(0),g=y[0],b=y[1],w=Object(o.useRef)(null);return Object(o.useEffect)((function(){var e;return null===(e=w.current)||void 0===e||e.focus({preventScroll:!0}),p.a.subscribe(h,n),Object(u.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(s.disableBodyScroll)(Object(i.ensureNotNull)(w.current)),b(h.addDrawer()),function(){p.a.unsubscribe(h,n);var e=h.removeDrawer();d.CheckMobile.iOS()&&Object(s.enableBodyScroll)(Object(i.ensureNotNull)(w.current)),0===e&&Object(u.setFixedBodyState)(!1)}}),[]),r.a.createElement(c.a,null,r.a.createElement("div",{className:a(f.wrap,f["position"+t])},g===h.currentDrawer&&r.a.createElement("div",{className:f.backdrop,onClick:n}),r.a.createElement("div",{className:a(f.drawer,f["position"+t],m),ref:function(e){w.current=e},tabIndex:-1},v)))}},X0gx:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("q1tI"),r=n.n(o),i=n("tWVy"),a=r.a.createContext(i.a)},jAh7:function(e,t,n){"use strict";n.r(t),n.d(t,"OverlapManager",(function(){return i})),n.d(t,"getRootOverlapManager",(function(){return s}));var o=n("Eyy1"),r=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter((function(t){return e!==t}))},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){
return this._storage},e}(),i=function(){function e(e){void 0===e&&(e=document),this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}return e.prototype.setContainer=function(e){var t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n},e.prototype.registerWindow=function(e){this._storage.has(e)||this._storage.add(e)},e.prototype.ensureWindow=function(e,t){void 0===t&&(t={position:"fixed",direction:"normal"});var n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);var o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){var r=this._container.childNodes.length;if(t.index>=r)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{var i=this._container.childNodes[t.index];this._container.insertBefore(o,i)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o},e.prototype.unregisterWindow=function(e){this._storage.remove(e);var t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))},e.prototype.getZindex=function(e){var t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")},e.prototype.moveToTop=function(e){this.getZindex(e)!==this._index&&(this.ensureWindow(e).style.zIndex=(++this._index).toString())},e.prototype.removeWindow=function(e){this.unregisterWindow(e)},e}(),a=new WeakMap;function s(e){void 0===e&&(e=document);var t=e.getElementById("overlap-manager-root");if(null!==t)return Object(o.ensureDefined)(a.get(t));var n=new i(e),r=function(e){var t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(r,n),n.setContainer(r),e.body.appendChild(r),n}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=function(e){function t(t){var n=e.call(this,t)||this;return n._addDrawer=function(){var e=n.state.currentDrawer+1;return n.setState({currentDrawer:e}),e},n._removeDrawer=function(){var e=n.state.currentDrawer-1;return n.setState({currentDrawer:e}),e},n.state={currentDrawer:0},n}return Object(o.__extends)(t,e),t.prototype.render=function(){return i.a.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)},t}(i.a.PureComponent),s=i.a.createContext(null)},my4O:function(e,t,n){e.exports={"css-value-medium-size":"18px","css-value-border-radius-medium-size":"9px","css-value-large-size":"22px","css-value-border-radius-large-size":"11px",popupWidget:"popupWidget-2X0DYakn",
desc:"desc-btEANXbj",icon:"icon-2jQlAvgr",medium:"medium-Fe1be2K2",large:"large-2BZlk4pO",title:"title-1Yt34zFi",text:"text-Md3DtcCM",action:"action-6Ezy2_v3"}},sHQ4:function(e,t,n){e.exports={wrap:"wrap-3vvdSnDX",backdrop:"backdrop-1knaw_yl",positionBottom:"positionBottom-3zJf6Byh",drawer:"drawer-1_nJUEiM",positionLeft:"positionLeft-2wxVhi9G"}},swCq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mrSG"),r=n("q1tI");t.Icon=r.forwardRef((function(e,t){var n=e.icon,i=void 0===n?"":n,a=o.__rest(e,["icon"]);return r.createElement("span",o.__assign({},a,{ref:t,dangerouslySetInnerHTML:{__html:i}}))}))},"vR7+":function(e,t,n){"use strict";n.r(t);var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),s=(n("YFKU"),n("9dlw")),u=n("/KDZ"),c=n("Sn4D"),l=n("mkWe"),d=n("0waE"),p=n("TSYQ"),f=n("Iivm"),v=n("vqb8"),m=n("my4O"),h=new WeakMap;function y(e){var t=Object(v.a)({watchedValue:e.info});if(null===t)return null;var n=t.map((function(t){var n=t.title,o=t.titleColor,r=t.icon,a=t.iconClassName,s=t.html,u=t.action,c=t.size;h.has(t)||h.set(t,Object(d.randomHash)());return i.a.createElement("div",{key:h.get(t),className:m.popupWidget},i.a.createElement(f.Icon,{className:p(m.icon,a,m[c]),icon:r||void 0}),i.a.createElement("div",{className:m.desc},i.a.createElement("span",{style:{color:o||void 0},className:p(m.title,m[c])},n),s&&i.a.createElement("p",{className:p(m.text,m[c]),dangerouslySetInnerHTML:{__html:s.join(" ")}}),u&&i.a.createElement("span",{className:p(u.tooltip&&"apply-common-tooltip",m.action,m[c]),onClick:function(){e.onClose(),null==u||u.onClick()},title:u.tooltip},u.text)))}));return i.a.createElement(i.a.Fragment,null,n)}var g=new WeakMap;function b(e){var t=e.statusWidgetInfos.filter((function(e){return e.visible.value()})).map((function(t){return g.has(t)||g.set(t,Object(d.randomHash)()),i.a.createElement(y,{key:g.get(t),info:t.model.fullInfo(),onClose:e.onClose})}));return i.a.createElement(l.b,null,i.a.createElement(u.a,{rule:"screen and (max-width: 419px)"},(function(n){return n?i.a.createElement(c.a,{onClose:e.onClose,position:"Bottom"},t):i.a.createElement(s.a,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},t)})))}function w(e,t,n,i,s,u){var c={rendererButton:n,position:u,statusWidgetInfos:i,onClose:s};e?a.render(r.createElement(b,Object(o.__assign)({},c)),t):a.unmountComponentAtNode(t)}n.d(t,"render",(function(){return w}))},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("q1tI"),r=function(e){var t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),r=Object(o.useState)(t?t.value():n),i=r[0],a=r[1];return Object(o.useEffect)((function(){if(t){a(t.value());var e=function(e){return a(e)};return t.subscribe(e),function(){return t.unsubscribe(e)}}return function(){}}),[t]),i}},"x0D+":function(e,t,n){var o,r,i;r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}
return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),i=[],a=!1,s=-1,u=void 0,c=void 0,l=function(e){return i.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function(e){var t=e||window.event;return!!l(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},p=function(){setTimeout((function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)}))};e.disableBodyScroll=function(e,o){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 p={targetElement:e,options:o||{}};i=[].concat(t(i),[p]),e.ontouchstart=function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,o,r,i;1===t.targetTouches.length&&(o=e,i=(n=t).targetTouches[0].clientY-s,!l(n.target)&&(o&&0===o.scrollTop&&0<i||(r=o)&&r.scrollHeight-r.scrollTop<=r.clientHeight&&i<0?d(n):n.stopPropagation()))},a||(document.addEventListener("touchmove",d,n?{passive:!1}:void 0),a=!0)}}else{v=o,setTimeout((function(){if(void 0===c){var e=!!v&&!0===v.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(c=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}));var f={targetElement:e,options:o||{}};i=[].concat(t(i),[f])}var v},e.clearAllBodyScrollLocks=function(){r?(i.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),a=!1),i=[],s=-1):(p(),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,n?{passive:!1}:void 0),a=!1)}else 1===i.length&&i[0].targetElement===e?(p(),i=[]):i=i.filter((function(t){return t.targetElement!==e}))}})?o.apply(t,r):o)||(e.exports=i)}}]);