/*! For license information please see dll.RHelp.js.LICENSE.txt */
(window.webpackJsonp_name_hash_=window.webpackJsonp_name_hash_||[]).push([[87],{1044:function(e,t,n){"use strict";n.r(t);var o=n(13),a=n.n(o),r=n(12),l=n.n(r),i=n(7),s=n.n(i),c=n(14),u=n.n(c),d=n(15),p=n.n(d),f=n(8),h=n.n(f),b=n(5),y=n.n(b),m=n(0),v=n.n(m),w=n(1),x=n.n(w),g=n(26),_=n(118),E=n(19);n(3596);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return p()(this,n)}}var M=function(e){u()(n,e);var t=R(n);function n(e){var o;return a()(this,n),o=t.call(this,e),y()(s()(o),"hideModal",(function(){o.setState({visible:!1})})),y()(s()(o),"showModal",(function(){var e=o.props.func||o.props.children;""===o.state.body?o.context.getRHelp(o.props.library,e,(function(e,t,n){e||o.setState({body:n,visible:!0})})):o.setState({visible:!o.state.visible})})),o.state={visible:o.props.visible,body:""},o}return l()(n,[{key:"render",value:function(){return v.a.createElement("span",{role:"button",tabIndex:0,className:"RHelp",onClick:this.showModal,onKeyPress:this.showModal},v.a.createElement(_.default,{backdrop:!1,show:this.state.visible,title:"R Help",onHide:this.hideModal,className:"r-help-modal",enforceFocus:!1},v.a.createElement(_.default.Header,{closeButton:!0},v.a.createElement(_.default.Title,{id:"contained-modal-title-lg"},"R Help")),v.a.createElement(_.default.Body,{className:"r-help-modal-body"},v.a.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.body}})),v.a.createElement(_.default.Footer,null,v.a.createElement(g.default,{onClick:this.hideModal},"Close"))),v.a.createElement("code",{style:{cursor:"pointer"}},this.props.children||this.props.func))}}]),n}(m.Component);M.propTypes={func:x.a.string,library:x.a.string,visible:x.a.bool},M.defaultProps={func:"",library:"base",visible:!1},M.contextType=E.default,t.default=M},3596:function(e,t,n){var o=n(36),a=n(3597);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var r={insert:"head",singleton:!1};o(a,r);e.exports=a.locals||{}},3597:function(e,t,n){(t=n(37)(!1)).push([e.i,".r-help-modal {\n\tleft: auto;\n\tpadding: 10px;\n\tposition: fixed;\n\ttop: 0px;\n\tright: 30px;\n\tz-index: 99999;\n\toverflow: hidden;\n}\n\n.r-help-modal-body {\n\theight: 400px;\n\toverflow: auto;\n}\n",""]),e.exports=t}}]);