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

__d("MercuryAttachmentConstants",[],(function a(b,c,d,e,f,g){var h={SIDE_LENGTH:9};f.exports=h;}),null);
__d('TabBarDropdownItem.react',['cx','fbt','ContextualDialogArrow','ContextualLayerAutoFlip','InlineBlock.react','PopoverMenu.react','React','ReactXUIMenu','TabBarItem.react','joinClasses'],(function a(b,c,d,e,f,g,h,i){var j,k,l=c('React').PropTypes;j=babelHelpers.inherits(m,c('React').Component);k=j&&j.prototype;function m(){var n,o;'use strict';for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$TabBarDropdownItem1=function(){var s=this.props.tabComponent,t="_45hd _45hc",u=c('React').createElement('span',{className:"accessible_elem"},i._("additional tabs menu"));return c('React').createElement(s,babelHelpers['extends']({},this.props,{shouldWrapTab:false,className:c('joinClasses')(this.props.className,t),tabIndex:0,mockSpacebarClick:false}),c('React').createElement('span',{className:"_1b0"},this.props.label,u));}.bind(this),this.convertTabItemWrapperToMenuItem=function(s,t){var u=this.props.selected?c('ReactXUIMenu').SelectableItem:c('ReactXUIMenu').Item,v=c('React').Children.only(s.type.getComponent(s.props));return c('React').createElement(u,babelHelpers['extends']({},v.props,{key:t,onclick:v.props.onClick}),v.props.children);}.bind(this),o;}m.prototype.render=function(){'use strict';if(this.props.children){var n=this.props.selected?c('ReactXUIMenu').SelectableMenu:c('ReactXUIMenu'),o=c('React').createElement(n,{className:this.props.menuClassName,maxheight:this.props.maxDropdownHeight},this.props.children.map(this.convertTabItemWrapperToMenuItem)),p=[c('ContextualLayerAutoFlip'),c('ContextualDialogArrow')];return c('React').createElement('li',{className:(this.props.focused&&this.props.hideFocusRing?"_468f":'')+(' '+"_45hd"),role:'tab'},c('React').createElement(c('PopoverMenu.react'),{alignh:this.props.menuAlignh,layerBehaviors:p,menu:o,onShow:this.props.onMenuShown},this.$TabBarDropdownItem1()));}else return c('React').createElement('li',{className:"_45hd"},c('React').createElement(c('InlineBlock.react'),null,this.$TabBarDropdownItem1()));};m.propTypes={menuAlignh:l.string,menuClassName:l.string,tabComponent:l.func.isRequired,focused:l.bool,hideFocusRing:l.bool,maxDropdownHeight:l.number,onMenuShown:l.func};m.defaultProps={tabComponent:c('TabBarItem.react'),focused:false,hideFocusRing:false};f.exports=m;}),null);
__d('ChatImageArrowDirection',['keyMirror'],(function a(b,c,d,e,f,g){'use strict';var h=c('keyMirror')({BOTH:null,LEFT:null,RIGHT:null});f.exports=h;}),null);
__d('ChatImageWithArrow.react',['cx','ChatImageArrowDirection','Link.react','MercuryAttachmentConstants','React','XUISpinner.react','joinClasses'],(function a(b,c,d,e,f,g,h){'use strict';var i,j,k=c('React').PropTypes,l=30,m=15;i=babelHelpers.inherits(n,c('React').Component);j=i&&i.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=j.constructor).call.apply(o,[this].concat(r)),this.$ChatImageWithArrow3=function(){return Math.max(this.props.width,m);}.bind(this),this.$ChatImageWithArrow6=function(){return Math.max(this.props.height,l);}.bind(this),this.$ChatImageWithArrow5=function(t){if(this.props.onClick)return c('React').createElement(c('Link.react'),{onClick:this.props.onClick},t);return t;}.bind(this),this.$ChatImageWithArrow7=function(t,u,v,w){if(u===c('ChatImageArrowDirection').LEFT){return 'translate('+v+'px, '+w+'px)'+'rotate(45deg)';}else return 'translate('+(t-v)+'px, '+w+'px)'+'rotate(45deg)';},this.$ChatImageWithArrow8=function(t,u,v,w){if(u===c('ChatImageArrowDirection').LEFT){return 'rotate(-45deg)'+'translate(-'+(this.$ChatImageWithArrow1+v)+'px,'+'-'+w+'px)';}else return 'rotate(-45deg)'+'translate(-'+(t-v)+'px, -'+w+'px)';}.bind(this),this.$ChatImageWithArrow4=function(){var t={width:this.props.sideLength,height:this.props.sideLength};if(this.props.source)t.backgroundImage='url('+this.props.source+')';var u={width:this.props.sideLength,height:this.props.sideLength};if(this.props.source)u.opacity=0;var v={width:this.$ChatImageWithArrow3(),height:this.$ChatImageWithArrow6()};if(this.props.source){v.backgroundImage='url('+this.props.source+')';v.backgroundSize='cover';}return c('React').createElement('div',{className:"_4yp6"},c('React').createElement('div',{className:"_4ypb _3_om",style:v},c('React').createElement(c('XUISpinner.react'),{size:'small'})));}.bind(this),p;}n.prototype.render=function(){this.$ChatImageWithArrow1=Math.floor(this.props.sideLength/Math.sqrt(2));this.$ChatImageWithArrow2=Math.ceil(this.$ChatImageWithArrow3()+this.$ChatImageWithArrow1);if(this.props.isLoading)return this.$ChatImageWithArrow4();var o=c('joinClasses')("_4yp6"+(this.props.round?' '+"_3lk2":''),this.props.rootClassName);return this.$ChatImageWithArrow5(c('React').createElement('div',{className:o},c('React').createElement('div',{className:"_52kr"+(this.props.round?' '+"_3_om":''),style:{width:this.$ChatImageWithArrow3(),height:this.$ChatImageWithArrow6()}},c('React').createElement('div',{className:"_4yp9",style:{backgroundImage:'url('+this.props.source+')',width:this.$ChatImageWithArrow3(),height:this.$ChatImageWithArrow6()}}))));};n.propTypes={arrowDirection:k.oneOf(Object.keys(c('ChatImageArrowDirection'))),onClick:k.func,height:k.number.isRequired,isLoading:k.bool,round:k.bool,rootClassName:k.string,sideLength:k.number,source:k.string,width:k.number.isRequired};n.defaultProps={sideLength:c('MercuryAttachmentConstants').SIDE_LENGTH,isLoading:false,round:false};f.exports=n;}),null);