if (self.CavalryLogger) { CavalryLogger.start_js(["Vh\/nb"]); } __d('FBMorePager.react',['cx','OnVisible.react','React','getViewportDimensions','throttle'],(function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();i=babelHelpers.inherits(k,c('React').Component);j=i&&i.prototype;function k(m,n){j.constructor.call(this,m,n);this.state={isMounted:false,throttledCallback:c('throttle')(function(){return this.$FBMorePager1();}.bind(this),m.throttle),visible:false};}k.prototype.componentWillReceiveProps=function(m){this.$FBMorePager2(m);if(this.props.throttle!==m.throttle)this.setState({throttledCallback:c('throttle')(function(){return this.$FBMorePager1();}.bind(this),m.throttle)});};k.prototype.componentWillMount=function(){this.setState({isMounted:true});};k.prototype.componentWillUnmount=function(){this.setState({isMounted:false});};k.prototype.render=function(){return (c('React').createElement('div',{className:"_3fv0"+(this.state.visible?' '+"_3fv1":'')},c('React').createElement(c('OnVisible.react'),{buffer:this.props.buffer,onVisible:function(){return this.$FBMorePager3();}.bind(this),ref:'onVisible'},this.props.children)));};k.prototype.$FBMorePager2=function(){this.setState({visible:false});this.refs.onVisible&&this.refs.onVisible.reset();};k.prototype.$FBMorePager3=function(){this.setState({visible:true});this.state.throttledCallback();};k.prototype.$FBMorePager1=function(){this.state.isMounted&&this.props.onMore&&this.props.onMore();};var l=Math.min(c('getViewportDimensions')().height,c('getViewportDimensions')().width)*2;k.defaultProps={buffer:l,throttle:1000};f.exports=k;}),null); __d("XLtgPostTranslationController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/intl\/see_translation\/",{ftid:{type:"String",required:true},text_size:{type:"Enum",defaultValue:"medium",enumType:1}});}),null); __d('LtgPostTranslation',['Arbiter','AsyncRequest','ContentTranslationStrings','DOM','Event','highlight','LoadingIndicator.react','React','ReactDOM','UFIUIEvents','XLtgPostTranslationController'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={_renderTranslation:function i(j,k){var l=c('DOM').create('div',{},k||c('ContentTranslationStrings').NO_TRANSLATION_AVAILABLE);c('DOM').replace(j,l);if(k)c('highlight')(l);},bindListener:function i(j,k){c('Event').listen(j,'click',function(event){event.prevent();c('ReactDOM').render(c('React').createElement(c('LoadingIndicator.react'),{size:'small',color:'white'}),j);var l=c('XLtgPostTranslationController').getURIBuilder().setString('ftid',k).getURI();new (c('AsyncRequest'))().setURI(l).setHandler(function(m){var n=m.getPayload();this._renderTranslation(j,n&&n.text);c('Arbiter').inform(c('UFIUIEvents').TranslationRendered);}.bind(this)).setErrorHandler(function(){this._renderTranslation(j,null);}.bind(this)).send();}.bind(this));}};f.exports=h;}),null); __d("XControllerWithPageTokenURIUpdater",[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={updateURI:function i(j){window.history&&window.history.replaceState(null,null,j);}};f.exports=h;}),null);