/*!CK:2651207264!*//*1459382631,*/

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

__d("SimpleNUXMessageTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_STUDY_POWER_CALCULATOR_V2_NUX:"902884353135091",ADS_CF_LOCAL_TARGETING_NUX:"798810653560813",ADS_DPA_OFFSITE_CONVERSION_DEFAULT:"1058542194184213",ADS_DYNAMIC_LOCAL_AWARENESS_UPSELL:"180996948924978",ADS_DYNAMIC_LOCAL_AWARENESS_USE_TOKENS:"1535166470146858",ADS_INSTAGRAM_60SEC_VIDEO_NUX:"873466969439654",ADS_PLATFORM_CUSTOMIZATIONS:"558186584332823",ADS_TARGETING_SUGGESTION_NUX:"1719099461698096",APP_REVIEW_COMMENTS_NUX:"1632649840328509",AUDIENCE_INLINE_SAVE_NUX:"387683724758581",BULK_EDITING_PREVIEW:"1719220711641440",CF_BRAND_STUDY_NUX:"130406080680692",CF_DEFAULT_MPA_NUX:"1630553150535001",CF_SLIDESHOW_OBJECTIVE_NUX:"707154356087550",CONNECTIONS_SECTION:"434002046758336",CONNECTIONS_SECTION_WITHOUT_VIDEO:"1540728442877433",CREATE_NEW_ENGAGEMENT_AUDIENCE_NUX:"558011581034402",CREATE_SLIDESHOW_ADS_NUX:"886513371441875",CRISIS_MARK_OTHER_SAFE:"202253916649690",CRISIS_MARK_SELF_SAFE:"653763228018496",CRM_APP_NUX:"160369447652922",CRM_WEBAPP_BUNNY:"506183136220196",ENGAGEMENT_AUDIENCE_NUX:"1559597167698757",FBLEARNER_DAG:"1555701701416433",FBLEARNER_OP_OUTPUTS:"1724118081167329",FBLEARNER_RECURRING_HISTORY:"1184494798247928",FBLEARNER_CLONE_HISTORY:"874591682650805",FLEXIBLE_TARGETING_PRESENTER_TIP:"833032883476599",GEO_TARGETING_BULK_INPUT:"523608931147539",GEO_TARGETING_V2:"771095616319245",HAS_MIGRATED_SAVED_AUDIENCE_NUX:"1522284001343972",INSTAGRAM_LIBRARY_ADS_IMAGE_SELECTOR:"1700476926896251",M_ADS_MANAGER_SPLASH:"1499779126920941",OXYGEN_INSIGHT_LIFECYCLE:"295779470545961",PAGES_MESSAGING_DRAGDROP:"1598865370326347",PE_LIVE_OPT_IN:"412162028994818",PE_SLIDESHOW_NUX:"1010972272292143",PROFILE_BADGE_NUX:"424283191075640",SAVE_NEW_AUDIENCE:"649905405114622",SCHEDULR_FIND_BOOK_NUX:"872099406242148",SCUBA_REACT_VIEWS_NUX:"1747252342174304",SHUTTLE_CALTRAIN:"591270497678719",TEST_MESSAGE:"443509369110145",TOUCHSTONE_RECOMMENDATION_NUX:"1546296168996500",TOUCHSTONE_VERTICALS:"509312249256844",USE_EXISTING_AUDIENCE:"481639071983177",MULTIMEDIA_ATTACHMENTS_NUX:"1269425486404153"};},null);
__d("XSimpleNUXMessagesController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ajax\/nux\/{msg_id}\/seen\/",{msg_id:{type:"Int",required:true}});},null);
__d('SimpleNUXMessage',['AsyncRequest','SimpleNUXMessageTypesToShow','XSimpleNUXMessagesController'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j){return !c('SimpleNUXMessageTypesToShow')[j];}function i(j){delete c('SimpleNUXMessageTypesToShow')[j];var k=c('XSimpleNUXMessagesController').getURIBuilder().setInt('msg_id',j).getURI();new (c('AsyncRequest'))().setURI(k).send();}f.exports={hasUserSeenMessage:h,markMessageSeenByUser:i};},null);
__d('ReactComposerProfileBadgeActions',['ReactComposerProfileBadgeActionType','ReactComposerDispatcher','ReactComposerProfileBadgeStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerProfileBadgeStore');h.prototype.setHasProfileBadge=function(i,j){'use strict';c('ReactComposerDispatcher').dispatch({composerID:i,type:c('ReactComposerProfileBadgeActionType').SET_HAS_PROFILE_BADGE,hasProfileBadge:j});};function h(){'use strict';}f.exports=new h();},null);
__d('ReactComposerProfilePhotoWithMinutiaeBadge.react',['cx','fbt','ReactComposerProfilePhoto.react','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerProfileBadgeActions','ReactComposerProfileBadgeStore','ReactComposerTaggerStore','ReactComposerTaggerType','Image.react','ReactComponentWithPureRenderMixin','React','ReactCSSTransitionGroup','SimpleNUXMessage','SimpleNUXMessageTypes','XUIAmbientNUX.react'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=650,l=16,m=270,n=c('React').createClass({displayName:'ReactComposerProfilePhotoWithMinutiaeBadge',mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerTaggerStore'),c('ReactComposerProfileBadgeStore')),c('ReactComponentWithPureRenderMixin')],propTypes:{profileName:j.string,profilePicSrc:j.string.isRequired,profileURI:j.string,currentProfileBadgeURI:j.string},componentWillMount:function(){c('ReactComposerProfileBadgeActions').setHasProfileBadge(this.context.composerID,true);},getInitialState:function(){return {nuxShown:!c('SimpleNUXMessage').hasUserSeenMessage(c('SimpleNUXMessageTypes').PROFILE_BADGE_NUX)};},statics:{calculateState:function(o,p){var q=c('ReactComposerTaggerStore').getTaggersData(o),r=q[c('ReactComposerTaggerType').ACTIVITY],s=c('ReactComposerProfileBadgeStore').hasProfileBadge(o);return {profileBadgePhotoURI:r.object&&s?r.actionIconURI||r.object.getAuxiliaryData().icon_src||r.object.getPhoto():''};}},render:function(){var o=this.state.profileBadgePhotoURI?this._renderProfileBadgeNux():null,p=this.state.profileBadgePhotoURI||this.props.currentProfileBadgeURI,q=!!this.state.profileBadgePhotoURI,r=this._renderProfileBadge(o,p,q);return (c('React').createElement('div',{className:"_8o5"},c('React').createElement(c('ReactComposerProfilePhoto.react'),{src:this.props.profilePicSrc,profileName:this.props.profileName,profileURI:this.props.profileURI}),r));},_renderProfileBadge:function(o,p,q){if(!p)return null;var r=c('React').createElement(c('Image.react'),{className:"_8o6",ref:'badge',src:p,height:l,width:l});if(q)return (c('React').createElement('div',{onClick:this._removeProfileBadge},c('React').createElement(c('ReactCSSTransitionGroup'),{transitionName:{enter:"_3mc0",appear:"_3mc0"},transitionEnterTimeout:k,transitionLeaveTimeout:k,transitionAppear:true,transitionAppearTimeout:k},this._renderOptOut()),r,o));return (c('React').createElement('div',null,r));},_removeProfileBadge:function(){c('ReactComposerProfileBadgeActions').setHasProfileBadge(this.context.composerID,false);},_onNUXCloseButtonClick:function(){c('SimpleNUXMessage').markMessageSeenByUser(c('SimpleNUXMessageTypes').PROFILE_BADGE_NUX);this.setState({nuxShown:false});},_renderProfileBadgeNux:function(){return (c('React').createElement(c('XUIAmbientNUX.react'),{contextRef:function(){return this.refs.badge;}.bind(this),position:'below',width:'custom',customwidth:m,shown:this.state.nuxShown,onCloseButtonClick:this._onNUXCloseButtonClick},i._("This will stay on your profile picture for 1 day. Tap to remove.")));},_renderOptOut:function(){var o=[];o.push(c('React').createElement(c('Image.react'),{className:"_3oej",src:'/images/events/selector/circle-remove.png',key:'remove'}));return o;}});f.exports=n;},null);