/*!CK:2592391230!*//*1459382677,*/

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

__d("XReactFeedComposerXPromptDismissController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/prompts\/dismiss\/",{user_action:{type:"Enum",enumType:1},prompt_id:{type:"String"},prompt_type:{type:"String"},prompt_tracking_string:{type:"String"},prompt_state:{type:"String"}});},null);
__d('ReactComposerPromptsLoggingStore',['ReactComposerActionTypes','ReactComposerMemePickerLoggingStore','ReactComposerPromptsStore','ReactComposerStoreBase','ReactComposerTaggerStore','ReactComposerTaggerType','AsyncRequest','XReactFeedComposerXPromptDismissController','PromptsInteractionsEventNames'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ReactComposerStoreBase'));i=h&&h.prototype;function j(){'use strict';var k;i.constructor.call(this,function(){return {};},function(l){k&&k.handler(l);});k=this;}j.prototype.handler=function(k){'use strict';switch(k.type){case c('ReactComposerActionTypes').POST_STARTED:this.$ReactComposerPromptsLoggingStore1(k);break;default:}};j.prototype.$ReactComposerPromptsLoggingStore1=function(k){'use strict';var l=this.validateAction(k,'composerID'),m=this.$ReactComposerPromptsLoggingStore2(l);m&&this.$ReactComposerPromptsLoggingStore3(m,l);};j.prototype.$ReactComposerPromptsLoggingStore2=function(k){'use strict';var l=c('ReactComposerMemePickerLoggingStore').memeWasSelected(k),m=c('ReactComposerPromptsStore').getMinutiaeData(k);if(l)return c('PromptsInteractionsEventNames').POST_PROMPT;if(m)if(this.$ReactComposerPromptsLoggingStore4(k)){return c('PromptsInteractionsEventNames').POST_WITHOUT_PROMPT;}else return c('PromptsInteractionsEventNames').POST_PROMPT;return null;};j.prototype.$ReactComposerPromptsLoggingStore4=function(k){'use strict';var l=c('ReactComposerPromptsStore').getMinutiaeData(k);if(!l)return false;return this.$ReactComposerPromptsLoggingStore5(k,l)||this.$ReactComposerPromptsLoggingStore6(k,l);};j.prototype.$ReactComposerPromptsLoggingStore5=function(k,l){'use strict';var m=c('ReactComposerTaggerStore').getTaggerData(k,c('ReactComposerTaggerType').ACTIVITY),n=l[c('ReactComposerTaggerType').ACTIVITY];if(!n||!n.action||!n.object)return false;if(!m||!m.action||!m.object)return true;return m.action.getUniqueID()!==n.action.getUniqueID()||m.object.getUniqueID()!==n.object.getUniqueID();};j.prototype.$ReactComposerPromptsLoggingStore6=function(k,l){'use strict';var m=c('ReactComposerTaggerStore').getTaggerData(k,c('ReactComposerTaggerType').LOCATION),n=l[c('ReactComposerTaggerType').LOCATION];if(!n||!n.place)return false;if(!m||!m.place)return true;return m.place.getUniqueID()!==n.place.getUniqueID();};j.prototype.$ReactComposerPromptsLoggingStore3=function(event,k){'use strict';var l=c('ReactComposerPromptsStore').getPromptData(k);if(!l)return;new (c('AsyncRequest'))().setURI(c('XReactFeedComposerXPromptDismissController').getURIBuilder().getURI()).setData({user_action:event,prompt_id:l.promptID,prompt_type:l.promptType,prompt_tracking_string:l.trackingString}).send();};f.exports=new j();},null);
__d('ReactComposerStatusPrompt.react',['ReactComposerPrefillStore','ReactComposerPromptsActions','ReactComposerPromptsStore','ReactComposerPropsAndStoreBasedStateMixin','DOMContainer.react','React','ReactComposerPromptsLoggingStore'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerPromptsLoggingStore');var h=c('React').createClass({displayName:'ReactComposerStatusPrompt',mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerPromptsStore'))],statics:{beforeCalculateInitialState:function(i,j){var k=c('ReactComposerPrefillStore').getAndEraseField(i,'prompt');if(k)c('ReactComposerPromptsActions').setPromptXHP(i,k);},calculateState:function(i,j){return {promptXHP:c('ReactComposerPromptsStore').getPromptXHP(i)};}},getDefaultProps:function(){return {hidePrompt:false};},render:function(){if(this.props.hidePrompt||!this.state.promptXHP)return null;return (c('React').createElement(c('DOMContainer.react'),null,this.state.promptXHP));}});f.exports=h;},null);