if (self.CavalryLogger) { CavalryLogger.start_js(["UauU6"]); }

__d("TahoeBackAffordance.react",["ix","cx","fbt","Image.react","Link.react","React","Tahoe","TahoeLoggerEvent","TahoeVariables","VideoComponentLiveVideoIndicator.react","asset","fbglyph","shouldWNSRenderToRHC"],(function a(b,c,d,e,f,g,h,i,j){__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").Component);l=k&&k.prototype;m.prototype.$TahoeBackAffordance1=function(){"use strict";var n=c("Tahoe").get();n&&n.logEvent(c("TahoeLoggerEvent").EXIT_WITH_BACK_AFFORDANCE)};m.prototype.$TahoeBackAffordance2=function(){"use strict";var n=this.props.mediaController;if(n)if(c("shouldWNSRenderToRHC")())n.emit("crossfadeWatchAndScroll");else n.emit("enterWatchAndScroll")};m.prototype.render=function(){"use strict";var n=h("114591");if(this.props.isShowVideo)return c("React").createElement("div",{className:"_4ua2"},c("React").createElement(c("Link.react"),{className:"_4who",href:this.props.entryURI,onClick:this.$TahoeBackAffordance1},c("React").createElement(c("Image.react"),{alt:j._("Close"),src:n}),c("React").createElement("span",{className:"_4whp"},j._("Go To Facebook Watch"))));var o=this.props.mediaController&&this.props.mediaController.isLiveVideo(),p=o?c("React").createElement(c("VideoComponentLiveVideoIndicator.react"),{className:"_2nlu",inline:true,ref:function(q){return q&&q.enable(this.props.mediaController)}.bind(this)}):null;return c("React").createElement("div",{className:"_4ua2"},c("React").createElement(c("Link.react"),{className:"_4who",href:this.props.isPermalink?"/":this.props.entryURI,onClick:this.$TahoeBackAffordance1},c("React").createElement(c("Image.react"),{alt:j._("Close"),src:n}),c("React").createElement("span",{className:"_4whp"},this.props.isPermalink?j._("Back to News Feed"):j._("Back"))),c("TahoeVariables").wnsInBackAffordance&&!this.props.isPermalink?c("React").createElement(c("Link.react"),{className:"_4ctl _3-9d",onClick:this.$TahoeBackAffordance2.bind(this)},c("React").createElement(c("Image.react"),{src:h("426217")}),c("React").createElement("span",{className:"_4whp _3-99"},j._("Watch while using Facebook"))):null,p)};function m(){"use strict";k.apply(this,arguments)}f.exports=m}),null);
__d("TahoeBackAffordanceContainer.react",["FluxContainer","React","TahoeVideoStore","TahoeBackAffordance.react","TahoeDispatcher","URI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(k){i.constructor.call(this,k);c("TahoeDispatcher").explicitlyRegisterStores([c("TahoeVideoStore")]);this.state=c("TahoeVideoStore").getState().toObject()}j.getStores=function(){return[c("TahoeVideoStore")]};j.calculateState=function(){var k=c("TahoeVideoStore").getState().toObject(),l=k.mediaController;return{mediaController:l}};j.prototype.render=function(){return c("React").createElement(c("TahoeBackAffordance.react"),{isPermalink:this.props.isPermalink,isShowVideo:this.props.isShowVideo,mediaController:this.state.mediaController,entryURI:this.props.entryURI})};f.exports=c("FluxContainer").create(j)}),null);