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

__d("FeedReactComposerBootloadPerfTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:FeedReactComposerBootloadPerfLoggerConfig",this.$FeedReactComposerBootloadPerfTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:FeedReactComposerBootloadPerfLoggerConfig",this.$FeedReactComposerBootloadPerfTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$FeedReactComposerBootloadPerfTypedLogger1={};return this};h.prototype.updateData=function(j){this.$FeedReactComposerBootloadPerfTypedLogger1=babelHelpers["extends"]({},this.$FeedReactComposerBootloadPerfTypedLogger1,j);return this};h.prototype.setBootloadDurationMillis=function(j){this.$FeedReactComposerBootloadPerfTypedLogger1.bootload_duration_millis=j;return this};h.prototype.setVC=function(j){this.$FeedReactComposerBootloadPerfTypedLogger1.vc=j;return this};var i={bootload_duration_millis:true,vc:true};f.exports=h}),null);
__d("ReactComposerNestedActionDispatchTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:ReactComposerNestedActionDispatchLoggerConfig",this.$ReactComposerNestedActionDispatchTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:ReactComposerNestedActionDispatchLoggerConfig",this.$ReactComposerNestedActionDispatchTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$ReactComposerNestedActionDispatchTypedLogger1={};return this};h.prototype.updateData=function(j){this.$ReactComposerNestedActionDispatchTypedLogger1=babelHelpers["extends"]({},this.$ReactComposerNestedActionDispatchTypedLogger1,j);return this};h.prototype.setInnerActionType=function(j){this.$ReactComposerNestedActionDispatchTypedLogger1.inner_action_type=j;return this};h.prototype.setOuterActionType=function(j){this.$ReactComposerNestedActionDispatchTypedLogger1.outer_action_type=j;return this};h.prototype.setStack=function(j){this.$ReactComposerNestedActionDispatchTypedLogger1.stack=j;return this};h.prototype.setVC=function(j){this.$ReactComposerNestedActionDispatchTypedLogger1.vc=j;return this};var i={inner_action_type:true,outer_action_type:true,stack:true,vc:true};f.exports=h}),null);
__d("UserScheduledPostsTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:UserScheduledPostsLoggerConfig",this.$UserScheduledPostsTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:UserScheduledPostsLoggerConfig",this.$UserScheduledPostsTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$UserScheduledPostsTypedLogger1={};return this};h.prototype.updateData=function(j){this.$UserScheduledPostsTypedLogger1=babelHelpers["extends"]({},this.$UserScheduledPostsTypedLogger1,j);return this};h.prototype.setAction=function(j){this.$UserScheduledPostsTypedLogger1.action=j;return this};h.prototype.setAppID=function(j){this.$UserScheduledPostsTypedLogger1.app_id=j;return this};h.prototype.setContent=function(j){this.$UserScheduledPostsTypedLogger1.content=j;return this};h.prototype.setJobInstance=function(j){this.$UserScheduledPostsTypedLogger1.job_instance=j;return this};h.prototype.setPostAttachmentType=function(j){this.$UserScheduledPostsTypedLogger1.post_attachment_type=j;return this};h.prototype.setPostID=function(j){this.$UserScheduledPostsTypedLogger1.post_id=j;return this};h.prototype.setPublishTime=function(j){this.$UserScheduledPostsTypedLogger1.publish_time=j;return this};h.prototype.setVC=function(j){this.$UserScheduledPostsTypedLogger1.vc=j;return this};var i={action:true,app_id:true,content:true,job_instance:true,post_attachment_type:true,post_id:true,publish_time:true,vc:true};f.exports=h}),null);
__d("DOMTraverser",["DOM"],(function a(b,c,d,e,f,g){__p&&__p();var h={previousNode:function i(j){if(j.previousElementSibling){var k=j.previousElementSibling;while(k.lastElementChild!==null)k=k.lastElementChild;return k}return j.parentElement},nextNode:function i(j){__p&&__p();if(j.firstElementChild)return j.firstElementChild;if(j.nextElementSibling)return j.nextElementSibling;var k=j.parentElement;while(k!=null){if(k.nextElementSibling)return k.nextElementSibling;k=k.parentElement}return null},previousFilteredNode:function i(j,k,l){__p&&__p();if(k===j)return null;var m=h.previousNode(k);while(m!=null){if(m instanceof HTMLElement&&l(m))return m;if(m===j)return null;m=h.previousNode(m)}return null},nextFilteredNode:function i(j,k,l){var m=h.nextNode(k);while(m!=null){if(j&&!c("DOM").contains(j,m))return null;if(m instanceof HTMLElement&&l(m))return m;m=h.nextNode(m)}return null}};f.exports=h}),null);
__d("ReactComposerEvents",[],(function a(b,c,d,e,f,g){var h=Object.freeze({CHANGE:"change",INSTANCE_MOUNTED:"composer/instanceMounted/",ACTIVATE_ATTACHMENT:"composer/activateAttachment/",MENTION_INPUT_FOCUS:"composer/mentionInputFocused/",TEXT_PREFILL_BEFORE_BOOTLOAD:"composer/textPrefillBeforeBootload/",RERENDER_MENTION_INPUT:"reactComposer/rerenderMentionInput/",OPTIMISTIC_POSTING_STARTED:"composer/optimisticPostingStarted/",POST_FINALLY:"composer/postFinally/",POST_STARTED:"composer/postStarted/",POST_SUCCEEDED:"composer/postSucceeded/",COMPOSER_RESET:"composer/reset/",COMPOSER_UNMOUNT:"composer/unmount/",SET_PREFILL_DATA:"reactComposer/setPrefillData/"});f.exports=h}),null);
__d("FeedComposerIDStore",["Arbiter","ReactComposerEvents","SubscriptionsHandler"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={_composerID:null,_subscriptions:c("SubscriptionsHandler"),set:function i(j){this._subscriptions=new(c("SubscriptionsHandler"))();this._composerID=j;this._subscribeComposerResetEvent()},get:function i(){if(!this._composerID)throw new Error("ID Store has not yet been initialized via set()");return this._composerID},_subscribeComposerResetEvent:function i(){if(!this._composerID)throw new Error("Composer ID cannot be null");var j=c("Arbiter").subscribeOnce(c("ReactComposerEvents").COMPOSER_RESET+this._composerID,function(k,l){if(l&&l.newComposerID){this._composerID=l.newComposerID;this._subscribeComposerResetEvent()}}.bind(this));this._subscriptions.addSubscriptions(j)}};f.exports=h}),null);
__d("ReactComposerAttachmentActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({REGISTER_ATTACHMENT:null,INITIALIZE_ATTACHMENT:null,SELECT_ATTACHMENT:null,SET_ATTACHMENT_MARKUP:null,SET_INITIALIZED:null,SET_BOOTLOADED:null,SET_BOOTSTRAPPED:null,UPLOAD_ATTACHMENT:null},"ReactComposerAttachmentActionType")}),null);
__d("ReactComposerScrapedAttachmentActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({ATTACHMENT_SCRAPE_ENABLED:null,ATTACHMENT_PERMISSIVE_MATCH_SETTED:null,ATTACHMENT_SCRAPE_INTENDED:null,ATTACHMENT_SCRAPED:null,ATTACHMENT_CAROUSEL_UPLOAD:null,ATTACHMENT_SELECT_COLLECTION:null,ATTACHMENT_SHARE_SELECTED:null},"ReactComposerScrapedAttachmentActionType")}),null);
__d("ReactComposerAttachmentType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({STATUS:"STATUS",MEDIA:"MEDIA",ALBUM:"ALBUM",MLE:"MLE",NOTES:"NOTES",QANDA:"QANDA",PAGES_EXTRA:"PAGES_EXTRA",FILE:"FILE",QUESTION:"QUESTION",VISUAL_POLL:"VISUAL_POLL",LIST:"LIST",SELL:"SELL",WORK_HEADER:"WORK_HEADER",RED_ENVELOPE:"RED_ENVELOPE",LIVE_BROADCAST:"LIVE_BROADCAST",PHOTO_ZOOM_CROP:"PHOTO_ZOOM_CROP",PROFILE_PIC_DESCRIPTION:"PROFILE_PIC_DESCRIPTION",PROFILE_PIC_FRAME:"PROFILE_PIC_FRAME",LIVE_VIDEO:"LIVE_VIDEO",DOC:"DOC",EVENT:"EVENT",GAME:"GAME",CTA:"CTA",QA:"QA",MESSAGE:"MESSAGE",GET_DIRECTIONS:"GET_DIRECTIONS",CALL:"CALL",PLACE_LIST:"PLACE_LIST",QUIZ:"QUIZ",TASK:"TASK",ADD_MENTIONED:"ADD_MENTIONED",AUDIENCE_SELECTOR:"AUDIENCE_SELECTOR",LEARNING_COURSE:"LEARNING_COURSE",LEARNING_THIRD_PARTY_LINK:"LEARNING_THIRD_PARTY_LINK",PAGE_RECOMMENDATION:"PAGE_RECOMMENDATION",GROUP_MEET_UP:"GROUP_MEET_UP",EMPLOYEE_QUESTION_SUGGESTIONS:"EMPLOYEE_QUESTION_SUGGESTIONS",POST_TO_GROUP:"POST_TO_GROUP",MEDIA_EFFECT_SHARE:"MEDIA_EFFECT_SHARE",FIND_PLAYERS:"FIND_PLAYERS",SALES_PROMO:"SALES_PROMO",JOB_SEARCH:"JOB_SEARCH",SHARING_SPACES_SELECTOR:"SHARING_SPACES_SELECTOR",UICE_EXAMPLE_ATTACHMENT:"UICE_EXAMPLE_ATTACHMENT",EVENT_CREATION:"EVENT_CREATION",ASSET_3D:"ASSET_3D"})}),null);
__d("ReactComposerFocusInit",["csx","invariant","DOM","DOMContainer.react","Parent","React","ReactDOM"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j={handler:function k(l,m,n,o,p,q,r){__p&&__p();var s=c("DOM").create("div"),t=l.parentNode;if(q){var u=c("Parent").bySelector(l,"._3u13");if(u)t=u.parentNode.parentNode}c("ReactDOM").render(c("React").createElement(p,{composerID:m,actorID:n,gks:o,ReactComposerFocusExtraConfigData:r,enableFocusBehavior:true},c("React").createElement(c("DOMContainer.react"),{display:"block"},l)),s);t||i(0);if(t.firstChild)t.replaceChild(s,t.firstChild);else t.appendChild(s)},preload:function k(){}};f.exports=j}),null);
__d("XReactFeedSproutsComposerXBootloadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/feedx_sprouts/bootload/",{composer_id:{type:"String",required:true},composer_type:{type:"Enum",required:true,enumType:1},friend_list_id:{type:"String"},target_id:{type:"String",required:true}})}),null);
__d("ReactFeedSproutsComposerX",["csx","cx","invariant","Arbiter","AsyncRequest","Bootloader","CSS","DOM","Event","FeedComposerIDStore","FeedReactComposerBootloadPerfTypedLogger","ReactComposerAttachmentType","ReactComposerEvents","ReactComposerFocusInit","Run","SubscriptionsHandler","XReactFeedSproutsComposerXBootloadController","$"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();function k(l){__p&&__p();this.$ReactFeedSproutsComposerX28=function(o){o.preventDefault();c("DOM").setContent(this.$ReactFeedSproutsComposerX6,this.$ReactFeedSproutsComposerX2.children);c("CSS").addClass(this.$ReactFeedSproutsComposerX12,"_2-q9")}.bind(this);this.$ReactFeedSproutsComposerX29=function(o){o.preventDefault();c("DOM").setContent(this.$ReactFeedSproutsComposerX2,this.$ReactFeedSproutsComposerX6.children);c("CSS").removeClass(this.$ReactFeedSproutsComposerX12,"_2-q9")}.bind(this);this.$ReactFeedSproutsComposerX25=function(o){__p&&__p();var p=o.getTarget(),q=null;while(p){if(p.nodeType===1&&p.nodeName==="A"){q=p;break}p=p.parentNode}q!==null||j(0);var r=c("CSS").hasClass(q,"._5qtn");if(r)return;this.$ReactFeedSproutsComposerX13.forEach(function(q){return c("CSS").removeClass(q,"_5qtn")});c("CSS").addClass(q,"_5qtn");var s=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._559p"),t=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._559q");switch(q.getAttribute("data-attachment-type")){case c("ReactComposerAttachmentType").STATUS:c("CSS").hide(t);c("CSS").show(s);break;case c("ReactComposerAttachmentType").MEDIA:case c("ReactComposerAttachmentType").LIVE_VIDEO:c("CSS").show(t);c("CSS").hide(s);break;case c("ReactComposerAttachmentType").ALBUM:if(this.$ReactFeedSproutsComposerX11&&this.$ReactFeedSproutsComposerX11.albumTabUsesSelector)this.$ReactFeedSproutsComposerX30();break;case c("ReactComposerAttachmentType").POST_TO_GROUP:c("Bootloader").loadModules(["XReactComposerPostToGroupLoggingODSController","ReactComposerPostToGroupLoggingEvent"],function(u,v){var w=u.getURIBuilder().setString("event",v.CLICK_OUTER_TAB).getURI();new(c("AsyncRequest"))(w).send()},"ReactFeedSproutsComposerX");break}}.bind(this);this.$ReactFeedSproutsComposerX20=function(o){this.$ReactFeedSproutsComposerX31();if(this.$ReactFeedSproutsComposerX3)return;this.$ReactFeedSproutsComposerX19=Date.now();this.$ReactFeedSproutsComposerX3=true;var p=c("XReactFeedSproutsComposerXBootloadController").getURIBuilder().setString("composer_id",this.$ReactFeedSproutsComposerX4).setString("target_id",this.$ReactFeedSproutsComposerX17).setEnum("composer_type",this.$ReactFeedSproutsComposerX5).setString("friend_list_id",this.$ReactFeedSproutsComposerX8).getURI();new(c("AsyncRequest"))(p).send()}.bind(this);this.$ReactFeedSproutsComposerX24=function(){c("CSS").removeClass(this.$ReactFeedSproutsComposerX12,"_4qr4");c("CSS").addClass(this.$ReactFeedSproutsComposerX12,"_4a8c")}.bind(this);this.$ReactFeedSproutsComposerX23=function(){this.$ReactFeedSproutsComposerX24();this.$ReactFeedSproutsComposerX18.value="";c("CSS").removeClass(this.$ReactFeedSproutsComposerX12,"_2-q9")}.bind(this);this.$ReactFeedSproutsComposerX22=function(){this.$ReactFeedSproutsComposerX16.release()}.bind(this);this.$ReactFeedSproutsComposerX21=function(){c("Arbiter").inform(c("ReactComposerEvents").POST_SUCCEEDED+this.$ReactFeedSproutsComposerX4);this.$ReactFeedSproutsComposerX23()}.bind(this);this.$ReactFeedSproutsComposerX1=l.actorID;this.$ReactFeedSproutsComposerX12=l.root;this.$ReactFeedSproutsComposerX4=l.composerID;this.$ReactFeedSproutsComposerX17=l.targetID;this.$ReactFeedSproutsComposerX5=l.composerType;this.$ReactFeedSproutsComposerX8=l.friendListID;this.$ReactFeedSproutsComposerX9=l.largeTextThreshold;this.$ReactFeedSproutsComposerX11=l.gks;this.$ReactFeedSproutsComposerX10=false;this.$ReactFeedSproutsComposerX3=false;this.$ReactFeedSproutsComposerX7=c("DOM").find(this.$ReactFeedSproutsComposerX12,"form");this.$ReactFeedSproutsComposerX18=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._3en1");this.$ReactFeedSproutsComposerX15=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._16ve");c("FeedComposerIDStore").set(this.$ReactFeedSproutsComposerX4);this.$ReactFeedSproutsComposerX16=new(c("SubscriptionsHandler"))();this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(this.$ReactFeedSproutsComposerX18,"focus",this.$ReactFeedSproutsComposerX20),c("Event").listen(this.$ReactFeedSproutsComposerX12,"click",this.$ReactFeedSproutsComposerX20),c("Event").listen(this.$ReactFeedSproutsComposerX7,"success",this.$ReactFeedSproutsComposerX21),c("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+this.$ReactFeedSproutsComposerX4,function(){new(c("FeedReactComposerBootloadPerfTypedLogger"))().setBootloadDurationMillis(Date.now()-this.$ReactFeedSproutsComposerX19).log();this.$ReactFeedSproutsComposerX22()}.bind(this)),c("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/selectcomposer/"+this.$ReactFeedSproutsComposerX4,this.$ReactFeedSproutsComposerX20),c("Arbiter").subscribe("ReactComposerFocus/reset/"+this.$ReactFeedSproutsComposerX4,this.$ReactFeedSproutsComposerX23),c("Arbiter").subscribe("ReactComposerFocus/collapse/"+this.$ReactFeedSproutsComposerX4,this.$ReactFeedSproutsComposerX24),c("Arbiter").subscribe(c("ReactComposerEvents").TEXT_PREFILL_BEFORE_BOOTLOAD+this.$ReactFeedSproutsComposerX4,function(o,p){this.$ReactFeedSproutsComposerX18.value=p;this.$ReactFeedSproutsComposerX18.selectionEnd=0}.bind(this)),c("Arbiter").subscribe("ReactFeedSproutsComposerXBody/onDrop",this.$ReactFeedSproutsComposerX20));this.$ReactFeedSproutsComposerX13=c("DOM").scry(this.$ReactFeedSproutsComposerX12,"._4-h7");this.$ReactFeedSproutsComposerX13.forEach(function(o){return this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(o,"click",this.$ReactFeedSproutsComposerX25))}.bind(this));this.$ReactFeedSproutsComposerX14=c("DOM").scry(this.$ReactFeedSproutsComposerX12,"._m_1");if(this.$ReactFeedSproutsComposerX11&&this.$ReactFeedSproutsComposerX11.prefillSprouts)this.$ReactFeedSproutsComposerX14.forEach(function(o){return this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(o,"click",function(){this.$ReactFeedSproutsComposerX26(o)}.bind(this)))}.bind(this));var m=c("DOM").scry(this.$ReactFeedSproutsComposerX12,"._2mo4");if(m.length===1)this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(m[0],"click",function(){if(this.$ReactFeedSproutsComposerX10)return;this.$ReactFeedSproutsComposerX10=true;c("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+this.$ReactFeedSproutsComposerX4,function(o,p){c("Bootloader").loadModules(["LiveVideoBroadcastUtils"],function(q){q.startPreviewUI(p.contextConfig,p.config);this.$ReactFeedSproutsComposerX10=false}.bind(this),"ReactFeedSproutsComposerX")}.bind(this));c("Bootloader").loadModules(["LiveVideoBroadcastUtils"],function(){},"ReactFeedSproutsComposerX")}.bind(this)));if(this.$ReactFeedSproutsComposerX11&&this.$ReactFeedSproutsComposerX11.sharingSpacesDestinationPicker)this.$ReactFeedSproutsComposerX27();var n=l.reactComposerFocusExtraConfigData;if(n&&n.showDialogForP2PAdminsMetadata&&n.showDialogForP2PAdminsMetadata.showDialogForP2PAdmins&&l.jsModules.P2PNewAdminComposerFocus)c("ReactComposerFocusInit").handler(c("$")("feedx_sprouts_container"),this.$ReactFeedSproutsComposerX4,this.$ReactFeedSproutsComposerX1,this.$ReactFeedSproutsComposerX11,l.jsModules.P2PNewAdminComposerFocus,false,l.reactComposerFocusExtraConfigData);else if(l.jsModules&&l.jsModules.composerFocus)c("ReactComposerFocusInit").handler(c("$")("feedx_sprouts_container"),this.$ReactFeedSproutsComposerX4,this.$ReactFeedSproutsComposerX1,this.$ReactFeedSproutsComposerX11,l.jsModules.composerFocus,false,l.reactComposerFocusExtraConfigData);c("Run").onLeave(this.$ReactFeedSproutsComposerX22)}k.prototype.$ReactFeedSproutsComposerX30=function(){var l=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._559p"),m=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._559q");c("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+this.$ReactFeedSproutsComposerX4,function(){c("Bootloader").loadModules(["ReactComposerCollectionsActions","ReactComposerLoggingName"],function(n,o){n.showCollectionsSelector(this.$ReactFeedSproutsComposerX4,o.ALBUM_TAB_SELECTOR)}.bind(this),"ReactFeedSproutsComposerX");this.$ReactFeedSproutsComposerX22()}.bind(this));c("CSS").show(m);c("CSS").hide(l)};k.prototype.$ReactFeedSproutsComposerX26=function(l,m){var n=l.getAttribute("data-sprout-tagger-id");if(n){var o=c("DOM").find(this.$ReactFeedSproutsComposerX15,"._16vl"),p=c("DOM").find(o,'*[data-sprout-tagger-id="'+n+'"]');c("CSS").addClass(p,"_30lm");this.$ReactFeedSproutsComposerX15.setAttribute("data-selected-sprout-id",n)}};k.prototype.$ReactFeedSproutsComposerX27=function(){this.$ReactFeedSproutsComposerX2=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._3ifg");this.$ReactFeedSproutsComposerX6=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._26c- ._3-wg");var l=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._1-pl");this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(l,"click",this.$ReactFeedSproutsComposerX28));var m=c("DOM").find(this.$ReactFeedSproutsComposerX12,"._1-pm");this.$ReactFeedSproutsComposerX16.addSubscriptions(c("Event").listen(m,"click",this.$ReactFeedSproutsComposerX29))};k.prototype.$ReactFeedSproutsComposerX31=function(){c("CSS").addClass(this.$ReactFeedSproutsComposerX12,"_4qr4");c("CSS").removeClass(this.$ReactFeedSproutsComposerX12,"_4a8c")};f.exports=k}),null);
__d("ReactComposerActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({COMPOSER_ENTRY:null,COMPOSER_CANCEL:null,COMPOSER_NAVIGATE_AWAY_ATTEMPT:null,COMPOSER_SHARESHEET_POST_CLICKED:null,INIT_CONFIG:null,POST_ERROR:null,POST_STARTED:null,POST_INTENDED:null,POST_SUCCEEDED:null,POST_FINALLY:null,POST_PREPROCESSING:null,PUBLISH_STARTED:null,PUBLISH_SUCCEEDED:null,COMPOSER_RESET:null,EXPAND_SPROUTS:null,COLLAPSE_SPROUTS:null,FEATURE_INTENT:null,FEATURE_DONE:null,FEATURE_CANCEL:null,SCHEDULE:null,SET_LOGGED_SPROUT_PROMOTION_VIEW:null,SET_FINISHED_SPROUT_PROMOTION:null,SET_QUEUE_FINISHED_SPROUT_PROMOTION:null,SET_SHOULD_SHOW_VOICE_SWITCHER_NUX:null,SPROUT_VIEW_UPDATE:null},"ReactComposerActionTypes")}),null);
__d("ReactComposerLoggingQueue",["invariant","Bootloader","requireWeak"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=null;c("requireWeak")("ReactComposerLoggingStore",function(l){i=l});var j=[],k={add:function l(m){if(m&&m.suppressWaterfallLogging)return;m&&m.composerID||h(0);if(i&&i.isActivated(m.composerID))return;j.push(m)},initBootload:function l(m,n,o,p){c("Bootloader").loadModules(["ComposerXSessionIDs","ComposerXMarauderLogger","ReactComposerPerfLogger","ReactComposerLoggingStore"],function(q,r,s,i){q.resetSessionID(m);r.registerComposer(n,o,p);s.registerComposer(n,p.targetType,p.ref,o);i.activate(m)},"ReactComposerLoggingQueue")},pop:function l(){return j.shift()},getLength:function l(){return j.length}};f.exports=k}),null);
__d("ReactComposerDispatcher",["Dispatcher_DEPRECATED","ReactComposerNestedActionDispatchTypedLogger","ReactComposerLoggingQueue"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("Dispatcher_DEPRECATED"));i=h&&h.prototype;function j(){"use strict";i.constructor.call(this);this.$ReactComposerDispatcher1=[]}j.prototype.dispatch=function(k){"use strict";__p&&__p();if(this.isDispatching()){new(c("ReactComposerNestedActionDispatchTypedLogger"))().setOuterActionType(this.$ReactComposerDispatcher2.type).setInnerActionType(k.type).setStack(new Error().stack).log();this.$ReactComposerDispatcher1.push(k)}else{this.$ReactComposerDispatcher2=k;i.dispatch.call(this,k);delete this.$ReactComposerDispatcher2;if(this.$ReactComposerDispatcher1.length>0){var l=this.$ReactComposerDispatcher1.shift();this.dispatch(l)}}c("ReactComposerLoggingQueue").add(k)};f.exports=new j()}),null);
__d("ReactComposerStoreBase",["EventEmitter","Map","ReactComposerActionTypes","ReactComposerDispatcher","ReactComposerEvents"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("EventEmitter"));i=h&&h.prototype;function j(k,l){i.constructor.call(this);this.$ReactComposerStoreBase1=k;this.$ReactComposerStoreBase2=new(c("Map"))();this.$ReactComposerStoreBase3=c("ReactComposerDispatcher");this.$ReactComposerStoreBase4=this.$ReactComposerStoreBase3.register(function(m){switch(m.type){case c("ReactComposerActionTypes").COMPOSER_RESET:this.__cleanup(m);break}l(m)}.bind(this))}j.prototype.getComposerData=function(k){var l=this.$ReactComposerStoreBase2.get(k);if(!l){l=this.$ReactComposerStoreBase1();this.$ReactComposerStoreBase2.set(k,l)}return l};j.prototype.clearComposerData=function(k){this.$ReactComposerStoreBase2.set(k,this.$ReactComposerStoreBase1())};j.prototype.addChangeListener=function(k){return i.addListener.call(this,c("ReactComposerEvents").CHANGE,k)};j.prototype.addListener=function(k,l,m){if(arguments.length===1&&typeof k==="function")return this.addChangeListener(k);else{var n;return(n=i.addListener).call.apply(n,[this].concat(Array.prototype.slice.call(arguments)))}};j.prototype.emitChange=function(k){this.emit(c("ReactComposerEvents").CHANGE,{composerID:k})};j.prototype.getDispatchToken=function(){return this.$ReactComposerStoreBase4};j.prototype.getDispatcher=function(){return this.$ReactComposerStoreBase3};j.prototype.validateAction=function(k,l){l=[].concat(l);var m=l.map(function(n){if(k[n]===undefined)throw new Error("Action missing field: "+n);return k[n]});if(l.length===1)return m[0];return m};j.prototype.__cleanup=function(k){this.clearComposerData(k.composerID);this.emitChange(k.composerID)};f.exports=j}),null);
__d("ReactComposerActionStore",["errorCode","Arbiter","AsyncResponse","Bootloader","ReactComposerActionTypes","ReactComposerEvents","ReactComposerStoreBase","Set","requireWeak"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=void 0;c("requireWeak")("ReactComposerStatusStore",function(m){return k=m});i=babelHelpers.inherits(l,c("ReactComposerStoreBase"));j=i&&i.prototype;function l(m,n){"use strict";__p&&__p();m=m?m:function(){return null};var o=void 0;j.constructor.call(this,m,function(p){__p&&__p();if(!(o&&o.__shouldIgnoreAction(p)))switch(p.type){case c("ReactComposerActionTypes").POST_STARTED:o&&o.$ReactComposerActionStore2(p);break;case c("ReactComposerActionTypes").POST_INTENDED:o&&o.$ReactComposerActionStore3(p);break;case c("ReactComposerActionTypes").POST_SUCCEEDED:o&&o.$ReactComposerActionStore4(p);break;case c("ReactComposerActionTypes").POST_ERROR:o&&o.$ReactComposerActionStore5(p);break;case c("ReactComposerActionTypes").POST_FINALLY:o&&o.$ReactComposerActionStore6(p);break;case c("ReactComposerActionTypes").POST_PREPROCESSING:o&&o.$ReactComposerActionStore7(p);break;default:}n&&n(p)});o=this;this.$ReactComposerActionStore1=new(c("Set"))()}l.prototype.registerComposerID=function(m){"use strict";this.$ReactComposerActionStore1.add(m)};l.prototype.$ReactComposerActionStore2=function(m){"use strict";var n=this.validateAction(m,"composerID");this.__onPostStarted&&this.__onPostStarted(m);c("Arbiter").inform(c("ReactComposerEvents").POST_STARTED+n)};l.prototype.$ReactComposerActionStore3=function(m){"use strict";this.validateAction(m,["composerID","actorID","config","targetID"]);if(!this.__canPost||this.__canPost(m))this.$ReactComposerActionStore2(m)};l.prototype.$ReactComposerActionStore4=function(m){"use strict";var n=this.validateAction(m,"composerID");if(k)var o=k.getMessage(n);this.__onPostSucceeded&&this.__onPostSucceeded(m);c("Arbiter").inform(c("ReactComposerEvents").POST_SUCCEEDED+n)};l.prototype.$ReactComposerActionStore5=function(m){"use strict";if(this.__onPostError)return this.__onPostError(m);if(m.response)c("AsyncResponse").defaultErrorHandler(m.response)};l.prototype.$ReactComposerActionStore6=function(m){"use strict";this.__onPostFinally&&this.__onPostFinally(m);c("Arbiter").inform(c("ReactComposerEvents").POST_FINALLY)};l.prototype.$ReactComposerActionStore7=function(m){"use strict";this.__onPostPreprocessing&&this.__onPostPreprocessing(m)};l.prototype.__shouldIgnoreAction=function(m){"use strict";var n=this.validateAction(m,"composerID");return!this.$ReactComposerActionStore1.has(n)};f.exports=l}),null);
__d("ReactComposerFocusActionTypes",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";f.exports=c("keyMirror")({SUBSCRIBE:null,UNSUBSCRIBE:null,FOCUS_ACQUIRED:null,FOCUS_LOST:null})}),null);
__d("ReactComposerSproutsDisplayState",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({INLINE:null,EXPANDED:null},"ReactComposerSproutsDisplayState")}),null);
__d("ReactComposerStore",["Bootloader","ReactComposerActionStore","ReactComposerActionTypes","ReactComposerAttachmentActionType","ReactComposerInit","ReactComposerScrapedAttachmentActionType","ReactComposerSproutsDisplayState","UserScheduledPostsTypedLogger"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerActionStore"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{isActive:false,orderedSprouts:[],serverErrorResponse:null,posting:false,postSucceeded:false,publishing:false,rankerRequestID:null,sproutSurface:null,ref:null,targetType:null,sproutsDisplayState:c("ReactComposerSproutsDisplayState").INLINE,scheduledPublishTime:null,hasLoggedSproutPromotionView:false,hasFinishedSproutPromotion:false,shouldShowVoiceSwitcherNux:false}},function(l){__p&&__p();switch(l.type){case c("ReactComposerActionTypes").INIT_CONFIG:k&&k.$ReactComposerStore1(l);break;case c("ReactComposerActionTypes").PUBLISH_STARTED:k&&k.$ReactComposerStore2(l);break;case c("ReactComposerAttachmentActionType").SELECT_ATTACHMENT:k&&k.$ReactComposerStore3(l);break;case c("ReactComposerActionTypes").EXPAND_SPROUTS:k&&k.$ReactComposerStore4(l);break;case c("ReactComposerActionTypes").COLLAPSE_SPROUTS:k&&k.$ReactComposerStore5(l);break;case c("ReactComposerAttachmentActionType").UPLOAD_ATTACHMENT:case c("ReactComposerScrapedAttachmentActionType").ATTACHMENT_SCRAPED:k&&k.$ReactComposerStore6(l);break;case c("ReactComposerActionTypes").SCHEDULE:k&&k.$ReactComposerStore7(l);break;case c("ReactComposerActionTypes").SET_LOGGED_SPROUT_PROMOTION_VIEW:k&&k.$ReactComposerStore8(l);break;case c("ReactComposerActionTypes").SET_FINISHED_SPROUT_PROMOTION:k&&k.$ReactComposerStore9(l);break;case c("ReactComposerActionTypes").SET_QUEUE_FINISHED_SPROUT_PROMOTION:k&&k.$ReactComposerStore10(l);break;case c("ReactComposerActionTypes").SET_SHOULD_SHOW_VOICE_SWITCHER_NUX:k&&k.$ReactComposerStore11(l);break}});k=this}j.prototype.$ReactComposerStore7=function(k){"use strict";if(this.getRef(k.composerID)==="timeline"&&this.getTargetType(k.composerID)==="feed")new(c("UserScheduledPostsTypedLogger"))().setAction("scheduled_post_submit").log();var l=this.getComposerData(k.composerID);l.scheduledPublishTime=k.scheduleDate};j.prototype.getScheduledPublishTime=function(k){"use strict";return this.getComposerData(k).scheduledPublishTime};j.prototype.getServerErrorResponse=function(k){"use strict";return this.getComposerData(k).serverErrorResponse};j.prototype.getRef=function(k){"use strict";return this.getComposerData(k).ref};j.prototype.getTargetType=function(k){"use strict";return this.getComposerData(k).targetType};j.prototype.getOrderedSprouts=function(k){"use strict";return this.getComposerData(k).orderedSprouts};j.prototype.getRankerRequestID=function(k){"use strict";return this.getComposerData(k).rankerRequestID};j.prototype.isPosting=function(k){"use strict";return this.getComposerData(k).posting};j.prototype.hasPostSucceeded=function(k){"use strict";return this.getComposerData(k).postSucceeded};j.prototype.isActive=function(k){"use strict";return this.getComposerData(k).isActive};j.prototype.isPublishing=function(k){"use strict";return this.getComposerData(k).publishing};j.prototype.getSproutsDisplayState=function(k){"use strict";return this.getComposerData(k).sproutsDisplayState};j.prototype.getSproutSurface=function(k){"use strict";var l=this.getComposerData(k);return l.sproutsDisplayState===c("ReactComposerSproutsDisplayState").INLINE?l.inlineSproutSurface:l.sproutSurface};j.prototype.hasLoggedSproutPromotionView=function(k){"use strict";return this.getComposerData(k).hasLoggedSproutPromotionView};j.prototype.hasFinishedSproutPromotion=function(k){"use strict";return this.getComposerData(k).hasFinishedSproutPromotion};j.prototype.getClearSproutPromotionOnNewComposer=function(k){"use strict";return this.getComposerData(k).clearSproutPromotionOnNewComposer};j.prototype.isUploading=function(k){"use strict";return this.getComposerData(k).uploading};j.prototype.shouldShowVoiceSwitcherNux=function(k){"use strict";return this.getComposerData(k).shouldShowVoiceSwitcherNux};j.prototype.__shouldIgnoreAction=function(k){"use strict";return false};j.prototype.__onPostStarted=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.posting=true;this.emitChange(l)};j.prototype.__onPostPreprocessing=function(k){"use strict";this.__onPostStarted(k)};j.prototype.__onPostSucceeded=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.serverErrorResponse=null;m.posting=false;m.postSucceeded=true;m.publishing=false;this.emitChange(l)};j.prototype.__onPostError=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.serverErrorResponse=k.response;m.posting=false;m.postSucceeded=false;m.publishing=false;this.emitChange(l)};j.prototype.__onPostFinally=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.posting=false;m.publishing=false;this.emitChange(l)};j.prototype.$ReactComposerStore1=function(k){"use strict";__p&&__p();var l=this.validateAction(k,["composerID","loggingConfig","activateOnInit"]),m=l[0],n=l[1],o=l[2],p=this.getComposerData(m);p.ref=n.ref;p.composerVersion=n.composerVersion;p.targetType=n.targetType;p.rankerRequestID=n.rankerRequestID||null;p.sproutSurface=n.sproutSurface||null;p.inlineSproutSurface=n.inlineSproutSurface||null;p.orderedSprouts=[];var q=k.sproutsConfig,r=k.promotedSprout;if(q){if(r)p.orderedSprouts.push(r);for(var s in q)if(q[s].enabled&&s!==r)p.orderedSprouts.push(s)}if(o){this.$ReactComposerStore12(m);this.emitChange(m)}};j.prototype.$ReactComposerStore8=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.hasLoggedSproutPromotionView=true;this.emitChange(l)};j.prototype.$ReactComposerStore9=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.hasFinishedSproutPromotion=true;m.clearSproutPromotionOnNewComposer=true;this.emitChange(l)};j.prototype.$ReactComposerStore10=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.clearSproutPromotionOnNewComposer=true;this.emitChange(l)};j.prototype.$ReactComposerStore11=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.shouldShowVoiceSwitcherNux=k.value;this.emitChange(l)};j.prototype.$ReactComposerStore2=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.publishing=true;this.emitChange(l)};j.prototype.$ReactComposerStore6=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(k.composerID);m.uploading=k.uploading;this.emitChange(l)};j.prototype.$ReactComposerStore3=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(l);m.sproutsDisplayState=c("ReactComposerSproutsDisplayState").EXPANDED;this.$ReactComposerStore12(l);this.emitChange(l)};j.prototype.$ReactComposerStore4=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(l);m.sproutsDisplayState=c("ReactComposerSproutsDisplayState").EXPANDED;this.emitChange(l)};j.prototype.$ReactComposerStore5=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.getComposerData(l);m.sproutsDisplayState=c("ReactComposerSproutsDisplayState").INLINE;this.emitChange(l)};j.prototype.$ReactComposerStore12=function(k){"use strict";var l=this.getComposerData(k);if(!l.isActive){l.isActive=true;c("Bootloader").loadModules(["curry","Run","ReactComposerHandleUnsavedChanges","URI"],function(m,n,o,p){return n.onBeforeUnload(m(o.handler,k,p.getNextURI()))},"ReactComposerStore")}};j.prototype.__cleanup=function(k){"use strict";setTimeout(c("ReactComposerInit").resetComposer.bind(null,k.composerID),0)};f.exports=new j()}),null);
__d("ReactComposerConstants",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ID_PREFIX:"rc.",GK_VIDEO_COPYRIGHT:"video_copyright_confirmation_dialog",GK_MULTILINGUAL_COMPOSER:"multilingual_composer_www",GK_PAGE_BREAKING_COMPOSER:"breaking_news_page"})}),null);
__d("ReactComposerIDGenerator",["ReactComposerConstants","uniqueID"],(function a(b,c,d,e,f,g){"use strict";var h={getID:function i(){return c("ReactComposerConstants").ID_PREFIX+c("uniqueID")()},isComposerID:function i(j){return!!j&&j.startsWith(c("ReactComposerConstants").ID_PREFIX)}};f.exports=h}),null);
__d("ReactComposerInit",["invariant","Arbiter","Map","React","ReactComposerEvents","ReactComposerStore","ReactComposerIDGenerator","ReactDOM"],(function a(b,c,d,e,f,g,h){__p&&__p();var i={_isUnmounting:false,instances:new(c("Map"))(),changeProps:function j(k,l){var m=i._getCurrentInstance(k);m.props=l;i.resetComposer(k,true)},normalizeComposerID:function j(k){if(!k.contextConfig.composerID)k.contextConfig.composerID=c("ReactComposerIDGenerator").getID();return k.contextConfig.composerID},init:function j(k,l,m){var n=i.normalizeComposerID(l),o={ComposerModule:k,props:l,container:m,hidden:false};this._render(o);i.instances.set(n,o);c("Arbiter").inform(c("ReactComposerEvents").INSTANCE_MOUNTED+n)},_render:function j(k){var l=k.ComposerModule,m=k.props,n=k.container;c("ReactDOM").render(c("React").createElement(l,m),n)},_createNewComposer:function j(k,l){if(k.props.config.sproutsPromotionConfig&&k.props.config.sproutsPromotionConfig.promotionID)if(c("ReactComposerStore").getClearSproutPromotionOnNewComposer(k.props.contextConfig.composerID))k.props.config.sproutsPromotionConfig={};k.props.contextConfig.composerID=c("ReactComposerIDGenerator").getID();k.props.prefillConfig={};i.init(k.ComposerModule,k.props,l)},resetComposer:function j(k){var l=i._getCurrentInstance(k);i.unmountInstance(k);if(l.hidden)l.container.parentNode&&l.container.parentNode.removeChild(l.container);else i._createNewComposer(l,l.container);c("Arbiter").inform(c("ReactComposerEvents").COMPOSER_RESET+k,{newComposerID:l.props.contextConfig.composerID})},hideComposer:function j(k){var l=i._getCurrentInstance(k);l.container.style.display="none";l.hidden=true},showComposer:function j(k){var l=i._getCurrentInstance(k);l.container.style.display="block";l.hidden=false},hideAndReplaceComposer:function j(k){var l=i._getCurrentInstance(k),m=l.container.cloneNode(false);l.container.removeAttribute("id");l.container.parentNode&&l.container.parentNode.appendChild(m);this.hideComposer(k);i._createNewComposer(l,m);c("Arbiter").inform(c("ReactComposerEvents").COMPOSER_RESET+k,{newComposerID:l.props.contextConfig.composerID})},isInstanceMounted:function j(k){return!!i.instances.get(k)},unmountInstance:function j(k){if(i.isInstanceMounted(k)&&!i._isUnmounting){i._isUnmounting=true;i._unmountReact(k);i._isUnmounting=false;i.instances["delete"](k)}},_unmountReact:function j(k){var l=i._getCurrentInstance(k);c("ReactDOM").unmountComponentAtNode(l.container);c("Arbiter").inform(c("ReactComposerEvents").COMPOSER_UNMOUNT+k);return l},_getCurrentInstance:function j(k){var l=i.instances.get(k);l||h(0);return l}};f.exports=i}),null);
__d("ReactComposerFocusActions",["ReactComposerDispatcher","ReactComposerFocusActionTypes","ReactComposerStore"],(function a(b,c,d,e,f,g){"use strict";c("ReactComposerStore");var h={subscribe:function i(j,k,l){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerFocusActionTypes").SUBSCRIBE,onFocusAcquiredCallback:k,onFocusLostCallback:l})},unsubscribe:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerFocusActionTypes").UNSUBSCRIBE})},notifyFocusAcquired:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerFocusActionTypes").FOCUS_ACQUIRED})},notifyFocusLost:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerFocusActionTypes").FOCUS_LOST})}};f.exports=h}),null);
__d("ReactComposerFocusHandleScrollAway",["Event","getActiveElement","throttle"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=-400,i=300,j={handler:function k(l,m){var n=c("Event").listen(window,"scroll",c("throttle")(function(){var o=l.getBoundingClientRect().bottom;if(o<h){m();c("getActiveElement")().blur();n.remove()}},i))}};f.exports=j}),null);
__d("ReactComposerFocusWrapperCore.react",["ix","cssVar","cx","fbt","Arbiter","CurrentUser","DOM","DOMTraverser","Event","Focus","Image.react","Keys","Link.react","React","ReactComponentWithPureRenderMixin","ReactComposerEvents","ReactComposerFocusActions","ReactDOM","Run","ShimButton.react","SubscriptionsHandler","TabbableElements","TabIsolation","URI","fbglyph","isKeyActivation"],(function a(b,c,d,e,f,g,h,i,j,k){__p&&__p();var l=c("React").PropTypes,m=parseInt("10px",10),n=c("React").createClass({displayName:"ReactComposerFocusWrapperCore",_composerID:"",_fixedHeight:0,_subscriptions:c("SubscriptionsHandler"),_firstFocus:true,_onLeaveHandle:null,_root:null,_tabIsolation:null,mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{composerID:l.string.isRequired,ariaLabel:l.string,onDismiss:l.func.isRequired,onFocus:l.func.isRequired,focused:l.bool.isRequired,gks:l.object,onFirstFocus:l.func,fixHeight:l.bool},getDefaultProps:function o(){return{focused:false,fixHeight:false}},componentWillMount:function o(){this._composerID=this.props.composerID},componentWillReceiveProps:function o(p){if(this.props.fixHeight&&!this.props.focused&&p.focused){var q=c("ReactDOM").findDOMNode(this.refs.container);this._fixedHeight=q.offsetHeight+m}},componentDidMount:function o(){this._subscriptions=new(c("SubscriptionsHandler"))();this._subscribeComposerEvents();this._onLeaveHandle=c("Run").onLeave(this._onLeave);if(this._root){this._tabIsolation=new(c("TabIsolation"))(this._root);if(this.props.focused)this._tabIsolation.enable()}},componentDidUpdate:function o(p){__p&&__p();if(!p.focused&&this.props.focused){try{var q=document.createEvent("HTMLEvents");if(q.initEvent){q.initEvent("resize",true,false);window.dispatchEvent(new(c("Event"))("resize"))}}catch(q){}this._tabIsolation&&this._tabIsolation.enable()}else if(p.focused&&!this.props.focused)this._tabIsolation&&this._tabIsolation.disable()},componentWillUnmount:function o(){this._subscriptions&&this._subscriptions.release();this._onLeave();if(this._onLeaveHandle)this._onLeaveHandle.remove();this._tabIsolation&&this._tabIsolation.disable();this._tabIsolation=null},render:function o(){var p=this.props.fixHeight&&this.props.focused?{height:this._fixedHeight}:null,q=this.props.focused?this._renderDismissButton():null,r=this.props.focused?this._renderBugNub():null,s=this.props.label||k._("Create a post");return c("React").createElement("div",{role:this.props.focused?"dialog":"region","aria-label":s,className:"_3u13 _3e9r"+(this.props.focused?" _3u14":"")+(this.props.focused?" _1b3n":""),ref:function(t){this._root=t}.bind(this),style:p,onKeyDown:this._onKeyDown},c("React").createElement("div",{className:"_3u15",onClick:this._onDismiss,role:"presentation"}),c("React").createElement("div",{className:"_3u16",ref:"container",onFocus:this._onFocus},this.props.children,q),r)},getComposerID:function o(){return this._composerID},getComposer:function o(){return this.refs.container},_renderDismissButton:function o(){return c("React").createElement(c("ShimButton.react"),{className:"_3u17"+(this.props.gks&&this.props.gks.topPostButton?" _nse":"")+(this.props.gks&&this.props.gks.hasHeader?" _356d":"")+(this.props.gks&&this.props.gks.isSproutsComposer?" _3_fz":"")+(this.props.gks&&this.props.gks.wideHeader?" _37nh":""),onClick:this._onDismiss,onKeyDown:this._onDismissKeyDown,role:"button","aria-label":k._("Dismiss"),tabIndex:"0"},c("React").createElement(c("Image.react"),{src:h("125922")}))},_renderBugNub:function o(){if(!c("CurrentUser").isEmployee())return null;var p=new(c("URI"))("/ajax/bugs/report");return c("React").createElement("div",{className:"_t95"},c("React").createElement(c("Link.react"),{href:"#",ajaxify:p,className:"_t97",rel:"dialog"}))},_subscribeComposerEvents:function o(){__p&&__p();var p=c("Arbiter").subscribe(c("ReactComposerEvents").OPTIMISTIC_POSTING_STARTED+this._composerID,function(){this.props.onDismiss(true)}.bind(this)),q=c("Arbiter").subscribe(c("ReactComposerEvents").POST_SUCCEEDED+this._composerID,function(){this.props.onDismiss(true)}.bind(this)),r=c("Arbiter").subscribe("ReactFeedComposerXBootloader/focuscomposer/"+this._composerID,function(){return this._onFocus(null)}.bind(this)),s=c("Arbiter").subscribe(c("ReactComposerEvents").COMPOSER_RESET+this._composerID,function(t,u){if(u&&u.newComposerID){this.props.onDismiss();this._composerID=u.newComposerID;this._subscriptions.release();this._subscriptions=new(c("SubscriptionsHandler"))();this._subscribeComposerEvents()}}.bind(this));this._subscriptions.addSubscriptions(p,q,r,s)},_onFocus:function o(p){if(this.props.focused||p&&p.nativeEvent.isPropagationStopped)return;if(this._firstFocus){this.props.onFirstFocus&&this.props.onFirstFocus();this._firstFocus=false}this.props.onFocus();c("ReactComposerFocusActions").notifyFocusAcquired(this.props.composerID)},_onKeyDown:function o(p){if(p.keyCode===c("Keys").ESC&&!p.nativeEvent.isPropagationStopped)this._onDismiss()},_onDismissKeyDown:function o(p){if(c("isKeyActivation")(p))this._onDismiss()},_onDismiss:function o(){this._onLeave();if(this._root&&document.body){var p=c("DOMTraverser").nextFilteredNode(document.body,this._root,function(q){return!c("DOM").contains(this._root,q)&&c("TabbableElements").isTabbable(q)}.bind(this));c("Focus").set(p)}},_onLeave:function o(){this.props.onDismiss();c("ReactComposerFocusActions").notifyFocusLost(this.props.composerID)}});f.exports=n}),null);
__d("ReactComposerTaggerType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CAMERA:"CAMERA",PEOPLE:"PEOPLE",OG:"OG",CALL:"CALL",LOCATION:"LOCATION",ACTIVITY:"ACTIVITY",BACKDATE:"BACKDATE",TARGETING:"TARGETING",PUBLISHER_ABTEST_HOLDOUT:"PUBLISHER_ABTEST_HOLDOUT",SPONSOR:"SPONSOR",VAULTPHOTO:"VAULTPHOTO",MARKDOWN:"MARKDOWN",CONTENT_WARNINGS:"CONTENT_WARNINGS",PRODUCT:"PRODUCT",PAGE_CTA:"PAGE_CTA",FORMATTED_TEXT:"FORMATTED_TEXT",STICKER:"STICKER",MESSAGING:"MESSAGING",POLITICAL_INFO:"POLITICAL_INFO",ISSUE_TAG:"ISSUE_TAG",CONTACT_YOUR_REPRESENTATIVE:"CONTACT_YOUR_REPRESENTATIVE",FUN_FACT:"FUN_FACT",ALBUM:"ALBUM",GIF:"GIF",FIND_PLAYERS:"FIND_PLAYERS",FUNDRAISER:"FUNDRAISER",LIST:"LIST",VISUAL_POLL:"VISUAL_POLL",RECOMMENDATION:"RECOMMENDATION",SALES_PROMO:"SALES_PROMO",TAG_EVENT:"TAG_EVENT",BREAKING_NEWS:"BREAKING_NEWS",GROUP_MEET_UP:"GROUP_MEET_UP",ASSET_3D:"ASSET_3D"})}),null);
__d("ReactComposerFocusInline.react",["Arbiter","React","ReactComposerFocusHandleScrollAway","ReactComposerFocusWrapperCore.react","ReactComposerTaggerType","ReactDOM","ifRequired"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;function k(){__p&&__p();var l,m;"use strict";for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.state={focused:false},this.$ReactComposerFocusInline2=function(){__p&&__p();var q=c("ReactDOM").findDOMNode(this.refs.focus.getComposer());c("ReactComposerFocusHandleScrollAway").handler(q,this.$ReactComposerFocusInline1);c("ifRequired")("ReactComposerActions",function(r){r.expandSprouts(this.$ReactComposerFocusInline3())}.bind(this));c("ifRequired")("ReactComposerGroupPostTagsTaggerActions",function(r){r.setShowState(this.$ReactComposerFocusInline3(),true)}.bind(this));c("ifRequired")("ReactComposerTaggerActions",function(r){r.handleSetTaggerShowNUX(this.$ReactComposerFocusInline3(),c("ReactComposerTaggerType").GROUP_MEET_UP,false);r.handleSetTaggerShowNUX(this.$ReactComposerFocusInline3(),c("ReactComposerTaggerType").VISUAL_POLL,false)}.bind(this));this.setState({focused:true})}.bind(this),this.$ReactComposerFocusInline1=function(){__p&&__p();c("Arbiter").inform("ReactComposerFocus/collapse/"+this.$ReactComposerFocusInline3());setTimeout(function(){c("ifRequired")("ReactComposerFocusActions",function(q){q.notifyFocusLost(this.props.composerID)}.bind(this));c("ifRequired")("ReactComposerActions",function(q){q.collapseSprouts(this.$ReactComposerFocusInline3())}.bind(this));c("ifRequired")("ReactComposerGroupPostTagsTaggerActions",function(q){q.setShowState(this.$ReactComposerFocusInline3(),false)}.bind(this));c("ifRequired")("ReactComposerTaggerActions",function(q){c("ifRequired")("ReactComposerLoggingName",function(r){q.deselectCurrentTagger(this.$ReactComposerFocusInline3(),r.INLINE_COMPOSER)}.bind(this))}.bind(this))}.bind(this),0);this.setState({focused:false})}.bind(this),m}k.prototype.componentWillUnmount=function(){"use strict";this.$ReactComposerFocusInline1()};k.prototype.render=function(){"use strict";return c("React").createElement(c("ReactComposerFocusWrapperCore.react"),{composerID:this.props.composerID,focused:this.state.focused&&this.props.enableFocusBehavior,onFocus:this.$ReactComposerFocusInline2,onDismiss:this.$ReactComposerFocusInline1,gks:this.props.gks,ref:"focus"},this.props.children)};k.prototype.$ReactComposerFocusInline3=function(){"use strict";return this.refs.focus&&this.refs.focus.getComposerID()};k.propTypes={composerID:j.string.isRequired,gks:j.object};f.exports=k}),null);