(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{L9NX:function(t,e,n){"use strict";var r=n("gAvq");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("PPbO")),u=r(n("Ci1u")),o=r(n("9G0t")),c=r(n("/S56")),i=r(n("lz+7")),l=r(n("nNWW")),s=n("d1VT"),d=n("mCtz"),f=(n("ffLa"),n("mfOf"));function p(t,e,n){return e=(0,c.default)(e),(0,o.default)(t,v()?Reflect.construct(e,n||[],(0,c.default)(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var h=function(t){function e(){var t;(0,a.default)(this,e);for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];return t=p(this,e,[].concat(r)),t.state={isReady:!1},t}return(0,i.default)(e,t),(0,u.default)(e,[{key:"componentDidMount",value:function(){this.setState({isReady:!0});this.props.dispatch}},{key:"render",value:function(){var t=this.state.isReady,e=this.props,n=e.children,r=e.loading,a=e.currentUser,u=a&&a.userid;(0,f.stringify)({redirect:window.location.href});return!u&&r||!t?l.default.createElement(d.PageLoading,null):n}}])}(l.default.Component);e.default=(0,s.connect)(function(t){var e=t.user,n=t.loading;return{currentUser:e.currentUser,loading:n.models.user}})(h)}}]);