/*! For license information please see dll.RHelp.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[111],{2936:function(e,t,n){"use strict";n.r(t);var a=n(22),o=n.n(a),l=n(2937),r={insert:"head",singleton:!1};o()(l.default,r);t.default=l.default.locals||{}},2937:function(e,t,n){"use strict";n.r(t);var a=n(23),o=n.n(a)()(!1);o.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",""]),t.default=o},915:function(e,t,n){"use strict";n.r(t);var a=n(14),o=n.n(a),l=n(13),r=n.n(l),i=n(10),s=n.n(i),c=n(15),u=n.n(c),d=n(16),p=n.n(d),f=n(8),h=n.n(f),b=n(7),m=n.n(b),v=n(0),y=n.n(v),w=n(1),g=n.n(w),x=n(77),E=n(1011),R=n(37);n(2936);function H(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,a=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return p()(this,n)}}var M=function(e){u()(n,e);var t=H(n);function n(e){var a;return o()(this,n),a=t.call(this,e),m()(s()(a),"hideModal",(function(){a.setState({visible:!1})})),m()(s()(a),"showModal",(function(){var e=a.props.func||a.props.children;""===a.state.body?a.context.getRHelp(a.props.library,e,(function(e,t,n){e||a.setState({body:n,visible:!0})})):a.setState({visible:!a.state.visible})})),a.state={visible:a.props.visible,body:""},a}return r()(n,[{key:"render",value:function(){return y.a.createElement("span",{role:"button",tabIndex:0,className:"RHelp",onClick:this.showModal,onKeyPress:this.showModal},y.a.createElement(E.default,{backdrop:!1,show:this.state.visible,title:"R Help",onHide:this.hideModal,className:"r-help-modal",enforceFocus:!1},y.a.createElement(E.default.Header,{closeButton:!0},y.a.createElement(E.default.Title,{id:"contained-modal-title-lg"},"R Help")),y.a.createElement(E.default.Body,{className:"r-help-modal-body"},y.a.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.body}})),y.a.createElement(E.default.Footer,null,y.a.createElement(x.default,{onClick:this.hideModal},"Close"))),y.a.createElement("code",{style:{cursor:"pointer"}},this.props.children||this.props.func))}}]),n}(v.Component);M.propTypes={func:g.a.string,library:g.a.string,visible:g.a.bool},M.defaultProps={func:"",library:"base",visible:!1},M.contextType=R.default,t.default=M}}]);