/*! For license information please see dll.Generator.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[50],{857:function(t,e,n){"use strict";n.r(e);var r=n(14),a=n.n(r),o=n(13),u=n.n(o),l=n(10),c=n.n(l),i=n(15),s=n.n(i),f=n(16),p=n.n(f),d=n(8),h=n.n(d),b=n(7),m=n.n(b),v=n(0),y=n.n(v),k=n(1),w=n.n(k),R=n(77),C=n(145);function S(t){var e=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(t){return!1}}();return function(){var n,r=h()(t);if(e){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var _=function(t){s()(n,t);var e=S(n);function n(t){var r;return a()(this,n),r=e.call(this,t),m()(c()(r),"handleClick",(function(){var t=r.props.onGenerate();r.setState({element:t})})),r.state={element:null},r}return u()(n,[{key:"componentWillMount",value:function(){this.props.autoStart&&this.handleClick()}},{key:"render",value:function(){return y.a.createElement(C.default,null,this.state.element,y.a.createElement(R.default,{block:!0,onClick:this.handleClick},this.props.buttonLabel))}}]),n}(v.Component);_.propTypes={autoStart:w.a.bool,buttonLabel:w.a.oneOfType([w.a.string,w.a.node]),onGenerate:w.a.func.isRequired},_.defaultProps={autoStart:!0,buttonLabel:"Generate"},e.default=_}}]);