webpackJsonp([5],{800:function(e,t,a){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(6),u=l(r),d=a(4),o=l(d),s=a(5),i=l(s),f=a(7),c=l(f),p=a(8),h=l(p),S=a(0),m=l(S),_=a(2),v=l(_),y=a(1),g=l(y),b=a(31),I=l(b),C=a(122),E=l(C),k=a(25),w=l(k),V=a(9),T=l(V),F=a(87),O=n(F),P=a(16),R=n(P),j=a(2115),M=l(j),N=a(2111),L=l(N),U=a(2110),q=l(U),W=a(2116),x=l(W),A=a(802),D=l(A),J=T.default.TutorialSteps,z=T.default.Preferences,B=function(e){function t(e){(0,o.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return a.getChannelView=function(){return a.refs.channelView},a.getStateFromStores=a.getStateFromStores.bind(a),a.isStateValid=a.isStateValid.bind(a),a.updateState=a.updateState.bind(a),a.state=a.getStateFromStores(e),a}return(0,h.default)(t,e),(0,i.default)(t,[{key:"getStateFromStores",value:function(){return{channelId:I.default.getCurrentId(),tutorialStep:E.default.getInt(z.TUTORIAL_STEP,w.default.getCurrentId(),999)}}},{key:"isStateValid",value:function(){return""!==this.state.channelId}},{key:"updateState",value:function(){this.setState(this.getStateFromStores(this.props))}},{key:"componentDidMount",value:function(){I.default.addChangeListener(this.updateState),(0,m.default)("body").addClass("app__body"),(O.isInternetExplorer()||O.isEdge())&&(0,m.default)("body").addClass("browser--ie")}},{key:"componentWillUnmount",value:function(){I.default.removeChangeListener(this.updateState),(0,m.default)("body").removeClass("app__body")}},{key:"componentWillReceiveProps",value:function(e){this.setState(this.getStateFromStores(e))}},{key:"shouldComponentUpdate",value:function(e,t){return!R.areObjectsEqual(e.params,this.props.params)||t.channelId!==this.state.channelId}},{key:"render",value:function(){return this.state.tutorialStep<=J.INTRO_SCREENS?g.default.createElement(D.default,{isRoot:!1}):g.default.createElement("div",{ref:"channelView",id:"app-content",className:"app__content"},g.default.createElement(q.default,{overlayType:"center"}),g.default.createElement(M.default,{channelId:this.state.channelId}),g.default.createElement(x.default,{channelId:this.state.channelId}),g.default.createElement("div",{className:"post-create__container",id:"post-create"},g.default.createElement(L.default,{getChannelView:this.getChannelView})))}}]),t}(g.default.Component);t.default=B,B.defaultProps={},B.propTypes={params:v.default.object.isRequired}}});
//# sourceMappingURL=5.98fd1931b037cdd480d5.js.map