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

__d("CampfireCommands",[],(function a(b,c,d,e,f,g){var h=Object.freeze({TOGGLE_LINK:"TOGGLE_LINK",SAVE_DRAFT:"SAVE_DRAFT"});f.exports=h}),null);
__d("getCampfireKeyBinding",["CampfireCommands","KeyBindingUtil","getDefaultKeyBinding"],(function a(b,c,d,e,f,g){"use strict";var h=c("KeyBindingUtil").hasCommandModifier;function i(j){if(j.keyCode===75&&h(j))return c("CampfireCommands").TOGGLE_LINK;if(j.keyCode===83&&h(j))return c("CampfireCommands").SAVE_DRAFT;return c("getDefaultKeyBinding")(j)}f.exports=i}),null);
__d("EmojiInputDecorator",["EmojiRenderer","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("immutable").List,i=".",j="emoji";function k(l,m,n){this.$EmojiInputDecorator1=l;this.$EmojiInputDecorator2=m;this.$EmojiInputDecorator3=n}k.prototype.getDecorations=function(l,m){__p&&__p();var n=this.$EmojiInputDecorator2?this.$EmojiInputDecorator2.getDecorations(l,m).toArray():Array(l.getText().length).fill(null),o=0;c("EmojiRenderer").parse(l.getText()).forEach(function(p){__p&&__p();var q=p.offset,r=q+p.length,s=true;for(var t=q;t<r;t++)if(n[t]!=null){s=false;break}if(s){for(var u=q;u<r;u++)n[u]=j+i+o;o++}});return h(n)};k.prototype.getComponentForKey=function(l){if(!this.$EmojiInputDecorator2||l.split(i)[0]===j)return this.$EmojiInputDecorator1;return this.$EmojiInputDecorator2.getComponentForKey(l)};k.prototype.getPropsForKey=function(l){if(!this.$EmojiInputDecorator2||l.split(i)[0]===j)return this.$EmojiInputDecorator3;return this.$EmojiInputDecorator2.getPropsForKey(l)};f.exports=k}),null);
__d("EmojiSpan.react",["cx","DraftEntity","EmojiConfig","EmojiImageURL","FBEmojiUtils","React","SupportedFBEmoji","UnicodeUtils"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("EmojiImageURL").getFBEmojiURL;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){"use strict";__p&&__p();var m=this.props,n=m.decoratedText,o=m.offsetKey,p=m.size,q=0,r=n.length,s=[];while(q<r){var t=c("UnicodeUtils").getUTF16Length(n,q);s.push(n.substr(q,t));q+=t}var u=c("FBEmojiUtils").getSupportedKey(s);if(u&&Object.prototype.hasOwnProperty.call(c("SupportedFBEmoji"),u))return c("React").createElement("span",babelHelpers["extends"]({},this.props,{className:"_3gl1 _5zz4","data-offset-key":o,style:{backgroundImage:"url("+k(u,p)+")",backgroundSize:p+"px "+p+"px",height:p,width:p}}),c("React").createElement("span",{className:"_ncl"},n));return c("React").createElement("span",{"data-offset-key":o},n)};function l(){"use strict";i.apply(this,arguments)}f.exports=l}),null);
__d("keyCommandBackspaceEmoji",["EditorState","EmojiRenderer","UnicodeUtils","moveSelectionBackward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){__p&&__p();var h=function h(i){__p&&__p();var j=c("removeTextWithStrategy")(i,function(l){__p&&__p();var k=l.getSelection(),m=k.getAnchorOffset(),n=l.getCurrentContent().getBlockForKey(k.getAnchorKey()).getText(),o=n[m-1],p=null;if(o){var q=c("EmojiRenderer").parse(n);for(var r=0;r<q.length;r++)if(q[r].offset<m&&q[r].offset+q[r].length>=m){p=q[r].length;break}if(!p)p=c("UnicodeUtils").getUTF16Length(o,0)}return c("moveSelectionBackward")(l,p||1)},"backward");if(j===i.getCurrentContent())return null;var k=i.getSelection();return c("EditorState").push(i,j.set("selectionBefore",k),k.isCollapsed()?"backspace-character":"remove-range")};f.exports=h}),null);
__d("keyCommandDeleteEmoji",["EditorState","EmojiRenderer","UnicodeUtils","moveSelectionForward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){__p&&__p();var h=function h(i){__p&&__p();var j=c("removeTextWithStrategy")(i,function(l){__p&&__p();var k=l.getSelection(),m=k.getAnchorOffset(),n=l.getCurrentContent().getBlockForKey(k.getAnchorKey()).getText(),o=n[m],p=null;if(o){var q=c("EmojiRenderer").parse(n);for(var r=0;r<q.length;r++)if(q[r].offset<=m&&q[r].offset+q[r].length>m){p=q[r].length;break}if(!p)p=c("UnicodeUtils").getUTF16Length(o,0)}return c("moveSelectionForward")(l,p||1)},"forward");if(j===i.getCurrentContent())return null;var k=i.getSelection();return c("EditorState").push(i,j.set("selectionBefore",k),k.isCollapsed()?"delete-character":"remove-range")};f.exports=h}),null);
__d("addEmojiInput",["EditorState","EmojiInputDecorator","EmojiSpan.react","React","keyCommandBackspaceEmoji","keyCommandDeleteEmoji"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function(i){__p&&__p();return function(){__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(){__p&&__p();var m,n;"use strict";for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.$_class1=function(r,s){__p&&__p();var t=null;switch(r){case"backspace":t=c("keyCommandBackspaceEmoji")(s);break;case"delete":t=c("keyCommandDeleteEmoji")(s);break}if(t){this.props.onChange(t);return"handled"}return"not-handled"}.bind(this),n}l.prototype.blur=function(){"use strict";var m=this.refs.component;m&&typeof m.blur==="function"&&m.blur()};l.prototype.click=function(){"use strict";var m=this.refs.component;m&&typeof m.click==="function"&&m.click()};l.prototype.focus=function(){"use strict";var m=this.refs.component;m&&typeof m.focus==="function"&&m.focus()};l.prototype.render=function(){"use strict";var m=this.props.editorState,n=m.getDecorator();if(!(n instanceof c("EmojiInputDecorator")))m=c("EditorState").set(this.props.editorState,{decorator:new(c("EmojiInputDecorator"))(c("EmojiSpan.react"),n,{size:16})});return c("React").createElement(i,babelHelpers["extends"]({},this.props,{editorState:m,handleKeyCommand:this.$_class1,ref:"component"}))};return l}()}.bind(this);f.exports=h}),null);
__d("addEmojiToEditorState",["DraftModifier","EditorState","EmojiFormat","emptyFunction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){var k=arguments.length<=2||arguments[2]===undefined?c("emptyFunction"):arguments[2];if(typeof i!=="string")i=c("EmojiFormat").codeArrayToUnicode(i);var l=c("DraftModifier").replaceText(j.getCurrentContent(),j.getSelection(),i),m=c("EditorState").push(j,l,"insert-characters");if(m!==j)k(m);return m}f.exports=h}),null);
__d("MemePickerDialogTypedLogger",["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:MemePickerDialogLoggerConfig",this.$MemePickerDialogTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:MemePickerDialogLoggerConfig",this.$MemePickerDialogTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$MemePickerDialogTypedLogger1={};return this};h.prototype.updateData=function(j){this.$MemePickerDialogTypedLogger1=babelHelpers["extends"]({},this.$MemePickerDialogTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$MemePickerDialogTypedLogger1.event=j;return this};h.prototype.setMeme=function(j){this.$MemePickerDialogTypedLogger1.meme=j;return this};h.prototype.setVC=function(j){this.$MemePickerDialogTypedLogger1.vc=j;return this};var i={event:true,meme:true,vc:true};f.exports=h}),null);
__d("ProfileCustomVideoThumbnailTypedLogger",["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:ProfileCustomVideoThumbnailLoggerConfig",this.$ProfileCustomVideoThumbnailTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:ProfileCustomVideoThumbnailLoggerConfig",this.$ProfileCustomVideoThumbnailTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$ProfileCustomVideoThumbnailTypedLogger1={};return this};h.prototype.getData=function(){return babelHelpers["extends"]({},this.$ProfileCustomVideoThumbnailTypedLogger1)};h.prototype.updateData=function(j){this.$ProfileCustomVideoThumbnailTypedLogger1=babelHelpers["extends"]({},this.$ProfileCustomVideoThumbnailTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$ProfileCustomVideoThumbnailTypedLogger1.event=j;return this};h.prototype.setVC=function(j){this.$ProfileCustomVideoThumbnailTypedLogger1.vc=j;return this};h.prototype.setVideoID=function(j){this.$ProfileCustomVideoThumbnailTypedLogger1.video_id=j;return this};var i={event:true,vc:true,video_id:true};f.exports=h}),null);
__d("TimelineMapScrollableArea",["Animation","ArbiterMixin","CSS","DOM","Event","Run","Scroll","SimpleDrag","Style","UserAgent","Vector","$","shield"],(function a(b,c,d,e,f,g){__p&&__p();function h(i,j){i&&this.init(c("$")(i),j)}Object.assign(h.prototype,c("ArbiterMixin"),{init:function i(j,k){__p&&__p();var l,m=this;k=k||{};this._elem=j;this._wrap=c("DOM").find(j,"div.fbScrollableAreaWrap");this._body=c("DOM").find(this._wrap,"div.fbScrollableAreaBody");this._track=c("DOM").find(j,"div.fbScrollableAreaTrack");this._gripper=c("DOM").find(this._track,"div.fbScrollableAreaGripper");this._options=k;this.adjustGripper();this._listeners=[c("Event").listen(this._wrap,"scroll",this._handleScroll.bind(this))];if(k.fade!==false)this._listeners.push(c("Event").listen(j,"mouseenter",c("shield")(this.adjustGripper,this)),c("Event").listen(j,"mouseenter",c("shield")(this.showScrollbar,this)),c("Event").listen(j,"mousemove",this._handleMousemove.bind(this)),c("Event").listen(j,"mouseleave",c("shield")(this.hideScrollbar,this)));if(k.fade!==undefined)this._listeners.push(c("Event").listen(this._track,"click",this.clickToScroll.bind(this)));if(k.verticalscroll)(function(){var n=c("UserAgent").isBrowser("Firefox")?"DOMMouseScroll":"WheelEvent"in window?"wheel":"mousewheel",o=m.mouseWheel.bind(m),p=m._wrap,q={remove:function r(){p.removeEventListener(n,o)}};m._listeners.push(c("Event").listen(p,"mouseenter",function(){if(p.scrollWidth>p.clientWidth)p.addEventListener(n,o)}),c("Event").listen(p,"mouseleave",q.remove),q)})();this.initDrag();if(!k.persistent)c("Run").onLeave(this.destroy.bind(this))},getRoot:function i(){return this._elem},initDrag:function i(){__p&&__p();var j=new(c("SimpleDrag"))(this._gripper);j.subscribe("start",function(k,event){__p&&__p();if(!(event.which&&event.which===1||event.button&&event.button===1))return;this.inform("dragstart");var l=c("Vector").getEventPosition(event).x,m=this._gripper.offsetLeft,n=j.subscribe("update",function(p,q){var r=c("Vector").getEventPosition(q).x-l,s=this._elem.clientWidth,t=this._body.offsetWidth,u=this._track.offsetWidth,v=s/t*u,w=t-this._wrap.offsetWidth,x=m+r,y=u-v;x=Math.max(Math.min(x,y),0);var z=x/y*w;c("Scroll").setLeft(this._wrap,z)}.bind(this)),o=j.subscribe("end",function(){j.unsubscribe(n);j.unsubscribe(o);this.inform("dragend")}.bind(this))}.bind(this))},adjustGripper:function i(){__p&&__p();var j=this._elem.clientWidth,k=this._body.offsetWidth,l=this._track.offsetWidth,m=j/k*l;if(m<l){c("Style").set(this._gripper,"width",m+"px");var n=c("Scroll").getLeft(this._wrap)/k*l;c("Style").set(this._gripper,"left",n+"px");c("CSS").show(this._gripper)}else c("CSS").hide(this._gripper);this._checkContentBoundaries();return this},_checkContentBoundaries:function i(){var j=c("Scroll").getLeft(this._wrap),k=this._wrap.scrollWidth-this._wrap.clientWidth;c("CSS").conditionClass(this._elem,"contentBefore",j>0);c("CSS").conditionClass(this._elem,"contentAfter",j<k)},destroy:function i(){this._listeners.forEach(function(j){j.remove()});this._listeners.length=0},_handleMousemove:function i(event){var j=c("Vector").getElementPosition(this._track).y,k=c("Vector").getElementDimensions(this._track).y;if(Math.abs(j+k/2-c("Vector").getEventPosition(event).y)<25)this.showScrollbar(false);else this.hideScrollbar()},_handleScroll:function i(event){this.adjustGripper();if(this._options.fade!==false)this.showScrollbar()},hideScrollbar:function i(){__p&&__p();if(!this._scrollbarVisible)return this;this._scrollbarVisible=false;if(this._hideTimeout){clearTimeout(this._hideTimeout);this._hideTimeout=null}this._hideTimeout=setTimeout(function(){if(this._scrollbarAnimation){this._scrollbarAnimation.stop();this._scrollbarAnimation=null}this._scrollbarAnimation=new(c("Animation"))(this._track).from("opacity",1).to("opacity",0).duration(250).ondone(c("CSS").addClass.bind(null,this._track,"invisible_elem")).go()}.bind(this),750);return this},showScrollbar:function i(j){__p&&__p();if(this._scrollbarVisible)return this;this._scrollbarVisible=true;if(this._hideTimeout){clearTimeout(this._hideTimeout);this._hideTimeout=null}if(this._scrollbarAnimation){this._scrollbarAnimation.stop();this._scrollbarAnimation=null}this.adjustGripper();c("Style").set(this._track,"opacity",1);c("CSS").removeClass(this._track,"invisible_elem");if(j!==false)this.hideScrollbar();return this},clickToScroll:function i(event){var j=c("Vector").getEventPosition(event).x,k=this._elem.clientWidth,l=this._body.offsetWidth,m=this._track.offsetWidth,n=k/l*m,o=c("Vector").getElementPosition(this._gripper);if(j>=o.x&&j<=o.x+n)return;var p=j<o.x?-1:1,q=this._wrap.offsetWidth*.8*p;this.scrollBy(q)},scrollBy:function i(j){this.setScroll(c("Scroll").getLeft(this._wrap)+j)},getMaxBodyOffset:function i(){return this._body.offsetWidth-this._wrap.offsetWidth},setScroll:function i(j){var k=j;k=Math.max(Math.min(k,this.getMaxBodyOffset()),0);c("Scroll").setLeft(this._wrap,k)},scrollIntoView:function i(j){var k=this._wrap.clientWidth,l=j.offsetWidth,m=c("Scroll").getLeft(this._wrap),n=m+k,o=j.offsetLeft,p=o+l;if(o<m||k<l)this.setScroll(o);else if(p>n)this.setScroll(m+(p-n))},mouseWheel:function i(event){__p&&__p();event.deliberateSync=true;if(this.getMaxBodyOffset()<=0)return;var j=0;if(event.wheelDelta){var k=event.wheelDelta;if(event.wheelDeltaX&&event.wheelDeltaY)k=Math.abs(event.wheelDeltaX)>Math.abs(event.wheelDeltaY)?event.wheelDeltaX:event.wheelDeltaY;j=-k*10/40}else if(event.detail)j=event.detail*10;this.scrollBy(j);event.prevent()}});f.exports=b.TimelineMapScrollableArea||h}),null);
__d("FaceRecognitionController",["ArbiterMixin","BanzaiODS","Poller","mixin","removeFromArray","FacerecWaterfallEvent"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("mixin")(c("ArbiterMixin")));i=h&&h.prototype;function j(k){"use strict";__p&&__p();i.constructor.call(this);this._config=babelHelpers["extends"]({uri:"/photos/tagging/recognition/",interval:2e3,maxRequests:4,targetIsPage:false,targetID:null},k);this._cleanup();this._poller=new(c("Poller"))({dontStart:true,maxRequests:this._config.maxRequests,interval:this._config.interval,setupRequest:function(l,m){if(!this._pendingPhotos||this._pendingPhotos.length===0)m.skip();l.setURI(this._config.uri).setData({recognition_project:"composer_facerec",photos:this._pendingPhotos,waterfallID:this._config.waterfallID,target:this._config.targetID,is_page:this._config.targetIsPage,include_unrecognized_faceboxes:!!this._config.include_unrecognized_faceboxes,include_face_crop_src:!!this._config.include_face_crop_src,include_recognized_user_profile_picture:!!this._config.include_recognized_user_profile_picture,include_low_confidence_recognitions:!!this._config.include_low_confidence_recognitions}).setHandler(this._handleResponse.bind(this))}.bind(this)});this._poller.subscribe("done",function(){var l=this._pendingPhotos;this._cleanup();this.inform("done",{unresolved:l,facerecWaterfallEvent:c("FacerecWaterfallEvent").CLIENT_RECOGNITION_POLLER_GIVE_UP})}.bind(this))}j.prototype.setWaterfallID=function(k){"use strict";this._config.waterfallID=k};j.prototype.start=function(k){"use strict";Array.prototype.push.apply(this._pendingPhotos,k);this._poller.reset();this._resetSafeguardTimeout()};j.prototype.stop=function(){"use strict";this._poller.stop();this._cleanup()};j.prototype._cleanup=function(){"use strict";window.clearTimeout(this._safeguardTimeout);this._safeguardTimeout=null;this._pendingPhotos=[]};j.prototype._resetSafeguardTimeout=function(){"use strict";window.clearTimeout(this._safeguardTimeout);this._safeguardTimeout=window.setTimeout(function(){c("BanzaiODS").bumpEntityKey("composer_facerec","safeguard");var k=this._pendingPhotos;this._poller.stop();this._cleanup();this.inform("done",{unresolved:k,facerecWaterfallEvent:c("FacerecWaterfallEvent").CLIENT_RECOGNITION_POLLER_TIMEOUT})}.bind(this),(this._config.maxRequests+2)*this._config.interval)};j.prototype._handleResponse=function(k){"use strict";__p&&__p();var l=k.getPayload();l.forEach(function(m){var n=0;c("removeFromArray")(this._pendingPhotos,m.fbid);m.faceboxes.forEach(function(o){n+=o.recognitions.length;o.recognitions.forEach(function(p){this.inform("recognition",{photo:m.fbid,facebox:{fbid:o.fbid,x:o.x,y:o.y},recognition:p})}.bind(this))}.bind(this));this.inform("photo",{photo:m.fbid,faceboxes:m.faceboxes,recognitions:n})}.bind(this));if(!this._pendingPhotos.length){this._poller.stop();this._cleanup();this.inform("done",{unresolved:this._pendingPhotos})}};f.exports=j}),null);
__d("SharingSpacesStrings",["fbt"],(function a(b,c,d,e,f,g,h){__p&&__p();var i={SHOW_SPACE_CREATION_BUTTON_TEXT:h._("Create Space"),SPACE_CREATION_DIALOG_HEADER:h._("Create Sharing Space"),SPACE_CREATION_TITLE_FIELD_LABEL:h._("Name"),SPACE_CREATION_TITLE_FIELD_PLACEHOLDER:h._("Name this set..."),SPACE_CREATION_DESCRIPTION_FIELD_LABEL:h._("Description"),SPACE_CREATION_DESCRIPTION_FIELD_PLACEHOLDER:h._("Add a description (optional)"),SPACE_CREATION_PRIVACY_HEADER:h._("Select Privacy"),SPACE_CREATION_PRIVACY_SECRET:h._("Secret"),SPACE_CREATION_PRIVACY_HIDDEN:h._("Hidden"),SPACE_CREATION_PRIVACY_FRIENDS:h._("Friends"),SPACE_CREATION_ADD_FOLLOWERS_DIALOG_TITLE:h._("Add Followers"),SET_ADD_FOLLOWERS_ALLREADY_FOLLOWING:h._("Already a follower"),SPACE_CREATION_FRIENDS_SEARCH_GHOST_TEXT:h._("Search Friends"),SPACE_CREATION_FRIENDS_SEARCH_RESULTS_HEADER:h._("Friends"),SPACE_CREATION_SELECTED_FRIENDS_HEADER:h._("Selected"),SPACE_CREATION_LOAD_MORE_FRIENDS:h._("See More"),SPACE_CREATION_DESELECT_FRIEND:h._("Deselect Friend"),CREATE_BUTTON_TEXT:h._("Create"),SPACE_CREATION_NEXT_BUTTON_TEXT:h._("Next"),SPACE_CREATION_BACK_BUTTON_TEXT:h._("Back"),TITLE_REQUIRED_ERROR_MESSAGE:h._("Name cannot be empty"),CREATION_SERVER_ERROR_TITLE:h._("Sorry, an error has occurred..."),CREATION_SERVER_ERROR_MESSAGE:h._("Your sharing space could not be created right now. Please try again later."),ALBUMS_SELECTOR_HEADER:h._("Albums"),SHARING_SPACES_SELECTOR_NO_ALBUMS:h._("Create an album of your latest vacation."),FOLLOW_BUTTON_TEXT:h._("Follow"),FOLLOWING_BUTTON_TEXT:h._("Following"),FALLBACK_POST_TEXT:h._("Post"),EDIT_BUTTON_TEXT:h._("Edit"),EDIT_DIALOG_TITLE:h._("Edit Set"),EDIT_DIALOG_PRIVACY_HEADER:h._("Privacy"),SAVE_BUTTON_TEXT:h._("Save"),EDIT_SERVER_ERROR_MESSAGE:h._("Your set could not be edited right now. Please try again later."),DELETE_BUTTON_TEXT:h._("Delete Set"),DELETE_SET_SERVER_ERROR_MESSAGE:h._("Your set could not be deleted right now. Please try again later."),getPostCount:function j(k){return h._({"*":"{number} Posts","_1":"1 Post"},[h.plural(k,"number")])},FOLLOWERS_TITLE:h._("Followers"),getFollowerCount:function j(k){return h._({"*":"{number} Followers","_1":"1 Follower"},[h.plural(k,"number")])},SHARING_SPACES_SELECTOR_CREATE_NEW:h._("Create"),COMPOSER_NEXT_BUTTON:h._("Next"),COMPOSER_BACK_BUTTON:h._("Back"),SHARING_SPACES_SELECTOR_SEE_MORE:h._("See More"),SHARING_SPACES_SELECTOR_TITLE:h._("Post To"),SHARING_SPACES_SELECTOR_DESTINATION_TIMELINE:h._("Timeline"),TYPE_ALBUM:h._("Album"),SPACES_CARD_ADD_POST_BUTTON:h._("Add Post"),ADD_FRIENDS:h._("Add Friends"),ADD_FOLLOWER_CONFIRMATION_DIALOG_TITLE:h._("New Followers"),getAddFollowerConfirmationDialogBody:function j(k){return h._({"*":"{number} new friends were added","_1":"1 new friend was added"},[h.plural(k,"number")])},ADD_FOLLOWER_SERVER_ERROR_MESSAGE:h._("New followers could not be added right now. Please try again later."),ADD_FOLLOWER_CONFIRMATION_BUTTON:h._("Add"),UNFOLLOW_SECRET_SPACE_TITLE:h._("Unfollow"),getUnfollowSecretSpaceTitle:function j(k){if(!k)return h._("Unfollow Set?");return h._("Unfollow {space_name}?",[h.param("space_name",k)])},UNFOLLOW_SECRET_SPACE_DESCRIPTION:h._("You won't be able to find this set or see its posts anymore."),getDeleteSpaceConfirmationDialogTitle:function j(k){if(!k)return h._("Delete Set?");return h._("Delete {space_name}?",[h.param("space_name",k)])},DELETE_SPACE_CONFIRMATION_DIALOG_BODY:h._("This will remove all posts in this set permanently, and it cannot be undone."),DELETE_SPACE_CONFIRMATION_DIALOG_BUTTON:h._("Delete")};f.exports=i}),null);
__d("ComposerMemePickerDialogEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({MEME_PROMPT_CLICKED:"meme_prompt_clicked",MEME_PICKER_OPENED:"meme_picker_opened",MEME_SELECTED:"meme_selected",MEME_POSTED:"meme_posted"})}),null);
__d("MemePickerLogger",["ComposerMemePickerDialogEvent","FunnelLogger","MemePickerDialogTypedLogger"],(function a(b,c,d,e,f,g){__p&&__p();var h="WWW_MEME_PICKER_DIALOG_FUNNEL",i=false,j={_log:function k(l,m){new(c("MemePickerDialogTypedLogger"))().setEvent(l).setMeme(m).log();if(!i){i=true;c("FunnelLogger").startFunnel(h)}c("FunnelLogger").appendAction(h,l)},logMemePromptClicked:function k(){this._log(c("ComposerMemePickerDialogEvent").MEME_PROMPT_CLICKED)},logMemePickerOpened:function k(){this._log(c("ComposerMemePickerDialogEvent").MEME_PICKER_OPENED)},logMemeSelected:function k(l){this._log(c("ComposerMemePickerDialogEvent").MEME_SELECTED,l)},logMemePosted:function k(l){this._log(c("ComposerMemePickerDialogEvent").MEME_POSTED,l)}};f.exports=j}),null);
__d("ReactComposerAttachmentPreviewErrorBoundary.react",["FBLogger","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(k){i.constructor.call(this,k);this.state={hasError:false}}j.prototype.componentDidCatch=function(k,l){this.setState({hasError:true});c("FBLogger")("FIXME").mustfix("Cannot render the attachment preview. Error: %s. Info: %s",k,l)};j.prototype.render=function(){if(this.state.hasError)return null;return this.props.children};f.exports=j}),null);
__d("ReactComposerPhotoUploader",["ActorURI","AsyncUploadRequest","FaceRecognitionController","JpegResizer","JpegResizerConfig","Map","PhotosUploadID","PhotosUploadWaterfallErrorCodes","ReactComposerLoggingStore","ReactComposerMediaConfig","ReactComposerMediaUploadActions","ReactComposerMediaUploadActionType","ReactComposerMediaUploadStore","ReactComposerMediaUploadType","ReactComposerMediaUtils","ReactComposerPhotoActions","QE2Logger","SphericalPhotoConfig","XComposerPhotoUploader","ifRequired","performanceNow"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=b.URL||b.webkitURL||{},i="www_js_resize_repack";function j(k,l,m){__p&&__p();this.$ReactComposerPhotoUploader1=k.composerID;this.$ReactComposerPhotoUploader5=m;var n=c("ReactComposerMediaConfig").photo,o=null;if(c("JpegResizer").isSupported()){o=c("JpegResizer").getSingleton(l>1?c("JpegResizer").DEFAULT_POOL_SIZE:1);o.setHighQuality(n.highQuality).setUndershoot(c("JpegResizerConfig").undershoot).setEncodeQuality(c("JpegResizerConfig").quality)}else c("ReactComposerMediaUploadActions").resizerUnavailable(this.$ReactComposerPhotoUploader1);var p=c("ActorURI").create(n.uploadEndpoint,k.actorID);this.$ReactComposerPhotoUploader2=new(c("XComposerPhotoUploader"))({uploadEndpoint:p,uploadData:Object.assign({qn:c("ReactComposerLoggingStore").getSessionID(this.$ReactComposerPhotoUploader1),target_id:k.targetID},n.uploadData),retryLimit:n.retryLimit,concurrentLimit:n.concurrentLimit,resizer:o,onUploadEnqueued:this.$ReactComposerPhotoUploader6.bind(this),onResizeStart:this.$ReactComposerPhotoUploader7.bind(this),onResizeSuccess:this.$ReactComposerPhotoUploader8.bind(this),onResizeFailure:this.$ReactComposerPhotoUploader9.bind(this),onResizeProgress:this.$ReactComposerPhotoUploader10.bind(this),onSphericalCheckSuccess:this.$ReactComposerPhotoUploader11.bind(this),onSphericalCheckFailure:this.$ReactComposerPhotoUploader12.bind(this),onUploadIsSpherical:this.$ReactComposerPhotoUploader13.bind(this),onUploadStart:this.$ReactComposerPhotoUploader14.bind(this),onUploadProgress:this.$ReactComposerPhotoUploader15.bind(this),onUploadSuccess:this.$ReactComposerPhotoUploader16.bind(this),onUploadFailure:this.$ReactComposerPhotoUploader17.bind(this),gks:k.gks});this.$ReactComposerPhotoUploader3=new(c("FaceRecognitionController"))({include_unrecognized_faceboxes:true,include_low_confidence_recognitions:true,include_face_crop_src:true});this.$ReactComposerPhotoUploader3.subscribe("photo",this.$ReactComposerPhotoUploader18.bind(this));this.$ReactComposerPhotoUploader3.subscribe("done",this.$ReactComposerPhotoUploader19.bind(this));this.$ReactComposerPhotoUploader4=new(c("Map"))()}j.prototype.upload=function(k){var l=c("ReactComposerMediaUploadStore").getUploads(this.$ReactComposerPhotoUploader1).size;this.$ReactComposerPhotoUploader2.upload(k,l)};j.prototype.retry=function(k){var l=this.$ReactComposerPhotoUploader2.getAsyncUploadRequest([k]);l.send()};j.prototype.getAsyncUploadRequest=function(k,l){return this.$ReactComposerPhotoUploader2.getAsyncUploadRequest(k,l)};j.prototype.enqueueAsyncUploadRequest=function(k,l,m,n,o){l.forEach(function(p){var q=m.indexMap?m.indexMap.get(p.uploadID):c("ReactComposerMediaUploadStore").getUploads(k).size;c("ReactComposerMediaUploadActions").enqueue(k,p.uploadID,p.name,q,c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_ENQUEUED,c("ReactComposerMediaUploadType").PHOTO,h.createObjectURL?h.createObjectURL(p):null,n.xyTags,o)});this.getAsyncUploadRequest(l,m).send()};j.prototype.isUploadLimitExceeded=function(k,l){var m=this.getMaxSelectableFilesCount(k),n=!l||!c("AsyncUploadRequest").isSupported()?1:l.length;return n>m};j.prototype.getMaxSelectableFilesCount=function(k){return!!k?c("ReactComposerMediaConfig").photo.limit:1};j.prototype.$ReactComposerPhotoUploader6=function(k){c("ReactComposerMediaUploadActions").enqueue(this.$ReactComposerPhotoUploader1,k.uploadID,k.fileName,c("ReactComposerMediaUploadStore").getUploads(this.$ReactComposerPhotoUploader1).size,c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_ENQUEUED,c("ReactComposerMediaUploadType").PHOTO,k.fileURL,null,k.isSpherical)};j.prototype.$ReactComposerPhotoUploader13=function(k,l,m){c("ReactComposerMediaUploadActions").isSpherical(this.$ReactComposerPhotoUploader1,k.uploadID,l,m)};j.prototype.$ReactComposerPhotoUploader7=function(k){c("ReactComposerMediaUploadActions").startResizing(this.$ReactComposerPhotoUploader1,k.uploadID,{bytes:k.size});c("QE2Logger").logExposureForUser(i)};j.prototype.$ReactComposerPhotoUploader10=function(k,event){setTimeout(function(){return c("ReactComposerMediaUploadActions").progressResizing(this.$ReactComposerPhotoUploader1,k,100*event.written/event.total)}.bind(this),0)};j.prototype.$ReactComposerPhotoUploader8=function(k,l,m,n){c("ReactComposerMediaUploadActions").doneResizing(this.$ReactComposerPhotoUploader1,k.uploadID,{dt:n,media_data_size:k.size,bytes:l.size,custom_tags:{skipped_resizing:m}})};j.prototype.$ReactComposerPhotoUploader9=function(k,l,m,n){c("ReactComposerMediaUploadActions").failResizing(this.$ReactComposerPhotoUploader1,k.uploadID,{dt:n,bytes:k.size,error_code:m.code,error_info:m.message})};j.prototype.$ReactComposerPhotoUploader11=function(k,l,m){var n=m.isSpherical()&&c("SphericalPhotoConfig").is_www_perceived_perf_on;c("ReactComposerMediaUploadActions").doneSphericalCheck(this.$ReactComposerPhotoUploader1,k.uploadID,{dt:l,projection_type:m.getProjectionType()},m,n)};j.prototype.$ReactComposerPhotoUploader12=function(k,l){var m=arguments.length<=2||arguments[2]===undefined?false:arguments[2],n=m?c("PhotosUploadWaterfallErrorCodes").SPHERICAL_CHECK_TIMEOUT:c("PhotosUploadWaterfallErrorCodes").SPHERICAL_CHECK_FAILED;c("ReactComposerMediaUploadActions").failSphericalCheck(this.$ReactComposerPhotoUploader1,k.uploadID,{error_code:n,dt:l})};j.prototype.$ReactComposerPhotoUploader14=function(k,l){c("ReactComposerMediaUploadActions").startUploading(this.$ReactComposerPhotoUploader1,k,l.upload,c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_UPLOADING);this.$ReactComposerPhotoUploader4.set(k,c("performanceNow")())};j.prototype.$ReactComposerPhotoUploader15=function(k,l){setTimeout(function(){return c("ReactComposerMediaUploadActions").progressUploading(this.$ReactComposerPhotoUploader1,k,100*l.event.loaded/l.event.total,false,null)}.bind(this),0)};j.prototype.$ReactComposerPhotoUploader16=function(k,l){__p&&__p();if(c("ReactComposerMediaUploadStore").getHasUploadBeenRemoved(this.$ReactComposerPhotoUploader1,k))return;if(!l.response.payload)return;var m=Array.isArray(l.response.payload)?l.response.payload:[l.response.payload],n=this.$ReactComposerPhotoUploader4.get(k)||0,o=n?c("performanceNow")()-n:0,p=m[0],q=m.slice(1);c("ReactComposerMediaUploadActions").doneUploading({composerID:this.$ReactComposerPhotoUploader1,uploadID:k,type:c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_DONE,fileUpload:l.upload,timeToUpload:o,photoID:p.photoID,sphericalPhotoID:p.sphericalPhotoID,thumbSrc:p.thumbSrc,originalPhotoID:p.originalPhotoID,mediaLocation:p.mediaLocation,cubestripURI:c("SphericalPhotoConfig").spherical_photo_www_upload&&p.cubestripURI||null,imageSrc:p.imageSrc,width:p.width,height:p.height,mediaTakenTime:p.mediaTakenTime});c("ReactComposerMediaUtils").changeToPeopleTaggerAfterUpload(this.$ReactComposerPhotoUploader1);this.$ReactComposerPhotoUploader20(k,p,l.upload);q.forEach(function(r){var s=c("PhotosUploadID").getNewID();c("ReactComposerMediaUploadActions").doneUploadingExtra(this.$ReactComposerPhotoUploader1,s,r.photoID,r.thumbSrc,c("SphericalPhotoConfig").spherical_photo_www_upload&&r.cubestripURI||null,r.imageSrc,r.width,r.height);this.$ReactComposerPhotoUploader20(s,r,l.upload)}.bind(this))};j.prototype.$ReactComposerPhotoUploader20=function(k,l,m){if(this.$ReactComposerPhotoUploader21()){c("ReactComposerPhotoActions").startRecognizing(this.$ReactComposerPhotoUploader1,l.photoID);this.$ReactComposerPhotoUploader3.start([l.photoID])}var n=c("ReactComposerMediaUploadStore").getMediaUpload(this.$ReactComposerPhotoUploader1,k);if(n.xyTags)c("ReactComposerMediaUtils").handleXYTagsOnly(this.$ReactComposerPhotoUploader1,n.photoID,n.xyTags)};j.prototype.$ReactComposerPhotoUploader17=function(k,l,m){if(c("ReactComposerMediaUploadStore").getHasUploadBeenRemoved(this.$ReactComposerPhotoUploader1,k))return;var n=l.response,o={code:n.getError(),description:n.getErrorDescription(),summary:n.getErrorSummary(),"transient":n.isTransient()||n.getError()==1004||n.getError()==1006};c("ReactComposerMediaUploadActions").failUploading(this.$ReactComposerPhotoUploader1,k,l.upload,c("performanceNow")()-this.$ReactComposerPhotoUploader4.get(k),o,c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_FAILED)};j.prototype.$ReactComposerPhotoUploader18=function(k,l){if(this.$ReactComposerPhotoUploader21())l.faceboxes.forEach(function(m){var n=void 0;if(m.recognitions.length>0){var o=m.recognitions[0].user;n={subjectID:o.fbid,value:o.name}}c("ReactComposerPhotoActions").addFacebox(this.$ReactComposerPhotoUploader1,l.photo,{id:m.fbid,x:m.x,y:m.y,top:m.top,left:m.left,width:m.width,height:m.height,croppedURI:m.src,bestRecognition:n,allRecognitions:m.allRecognitions})}.bind(this));c("ReactComposerPhotoActions").finishRecognizingPhoto(this.$ReactComposerPhotoUploader1,l.photo)};j.prototype.$ReactComposerPhotoUploader19=function(k,l){c("ReactComposerPhotoActions").finishRecognizing(this.$ReactComposerPhotoUploader1,l.unresolved,l.facerecWaterfallEvent||null)};j.prototype.$ReactComposerPhotoUploader21=function(){if(this.$ReactComposerPhotoUploader5.disableFaceRecognition)return false;return c("ifRequired")("ReactComposerOptimisticPostingStore",function(k){return!k.isOptimisticallyPosting(this.$ReactComposerPhotoUploader1)}.bind(this),function(){return true})};f.exports=j}),null);
__d("ReactComposerScrapedAttachmentPhotoDropWarningDialog.react",["fbt","LayerHideOnEscape","React","XUIButton.react","XUIDialog.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogHeader.react","XUIDialogHeaderTitle.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$ReactComposerScrapedAttachmentPhotoDropWarningDialog1=function(){this.props.onCancel&&this.props.onCancel()}.bind(this),this.$ReactComposerScrapedAttachmentPhotoDropWarningDialog2=function(){this.props.onCancel&&this.props.onCancel()}.bind(this),n}l.prototype.componentDidMount=function(){this.refs.dialog&&this.refs.dialog.layer&&this.refs.dialog.layer.subscribe("hide",this.$ReactComposerScrapedAttachmentPhotoDropWarningDialog1)};l.prototype.render=function(){return c("React").createElement(c("XUIDialog.react"),{ref:"dialog",shown:this.props.shown,width:500,layerHideOnBlur:false,behaviors:{LayerHideOnEscape:c("LayerHideOnEscape")},key:"dialog"},c("React").createElement(c("XUIDialogHeader.react"),null,c("React").createElement(c("XUIDialogHeaderTitle.react"),null,h._("Remove Link Preview"))),c("React").createElement(c("XUIDialogBody.react"),null,h._("Uploading a photo will remove the link preview. Do you want to continue?")),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIButton.react"),{use:"confirm",onClick:this.props.onConfirm,label:h._("Upload Photo")}),c("React").createElement(c("XUIButton.react"),{onClick:this.props.onCancel,label:h._("Cancel")})))};l.propTypes={shown:k.bool,onConfirm:k.func,onCancel:k.func};f.exports=l}),null);
__d("ReactComposerDragDropPromptContainer.react",["React","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerDragDropPromptLazy.react","ReactComposerFileStore","ReactComposerFileUtils","ReactComposerLoggingName","ReactComposerPhotoUploader","ReactComposerScrapedAttachmentActions","ReactComposerScrapedAttachmentPhotoDropWarningDialog.react","ReactComposerScrapedAttachmentStore","ReactComposerStatusUtils","ReactComposerVideoUploadStore","ReactComposerWorkFileStore","FluxContainer"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("ReactComposerWorkFileStore").module;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={photoDropWarningShown:false,pendingFiles:null},this.$ReactComposerDragDropPromptContainer4=function(q){var r=this.context.composerID,s=c("ReactComposerFileUtils").selectFileOrWorkFileModule(c("ReactComposerFileStore"),j).getMaxFileUploadSize(r);if(c("ReactComposerFileUtils").hasExceededFileSize(q[0],s))return;c("ReactComposerStatusUtils").loadDroppedFile(r,q[0])}.bind(this),this.$ReactComposerDragDropPromptContainer5=function(q){if(c("ReactComposerScrapedAttachmentStore").hasAttachment(this.context.composerID)&&this.state.pendingFiles==null){this.setState({photoDropWarningShown:true,pendingFiles:q});return}if(!this.$ReactComposerDragDropPromptContainer1)return;c("ReactComposerStatusUtils").uploadDroppedMedia(this.context.composerID,q,this.$ReactComposerDragDropPromptContainer1,this.props.config.targetData.targetSupportsMultiMedia,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],this.context)}.bind(this),this.$ReactComposerDragDropPromptContainer2=function(){this.setState({photoDropWarningShown:false,pendingFiles:null})}.bind(this),this.$ReactComposerDragDropPromptContainer3=function(){var q=this.state.pendingFiles;this.setState({photoDropWarningShown:false,pendingFiles:null});if(q)this.$ReactComposerDragDropPromptContainer5(q)}.bind(this),this.$ReactComposerDragDropPromptContainer6=function(q){c("ReactComposerStatusUtils").scrapeLink(this.context.composerID,this.context.targetID,q,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").LINK_DROPPED)}.bind(this),m}k.getStores=function(){"use strict";return[c("ReactComposerVideoUploadStore")]};k.calculateState=function(l,m,n){"use strict";var o=n.composerID;return{pendingFiles:l&&l.pendingFiles,photoDropWarningShown:!!(l&&l.photoDropWarningShown),enabled:!c("ReactComposerVideoUploadStore").getVideo(o)}};k.prototype.componentWillMount=function(){"use strict";var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],m=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];this.$ReactComposerDragDropPromptContainer1=new(c("ReactComposerPhotoUploader"))(this.context,m.photoLimit,{disableFaceRecognition:m.disableFaceboxTagger});c("ReactComposerScrapedAttachmentActions").enabled(this.context.composerID,l.canScrapeShare)};k.prototype.renderLayers=function(){"use strict";return c("React").createElement(c("ReactComposerScrapedAttachmentPhotoDropWarningDialog.react"),{shown:this.state.photoDropWarningShown,onCancel:this.$ReactComposerDragDropPromptContainer2,onConfirm:this.$ReactComposerDragDropPromptContainer3,key:"photoDropWarningDialog"})};k.prototype.render=function(){"use strict";if(!this.state.enabled)return c("React").createElement("span",null,this.renderLayers());return c("React").createElement("span",null,c("React").createElement(c("ReactComposerDragDropPromptLazy.react"),{root:this.props.root,onFilesDrop:this.$ReactComposerDragDropPromptContainer4,onMediaDrop:this.$ReactComposerDragDropPromptContainer5,onURLDrop:this.$ReactComposerDragDropPromptContainer6}),this.renderLayers())};k.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(k,{withProps:true,withContext:true})}),null);
__d("ReactComposerLiveVideoPreviewButton.react",["fbt","React","XUIAmbientNUX.react","XUIButton.react"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.$ReactComposerLiveVideoPreviewButton1=function(){"use strict";return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.button}.bind(this),shown:this.props.showNUX,position:"below",width:"auto",onCloseButtonClick:this.props.onNUXCloseButtonClick},h._("Click to continue. The next screen will show a preview before you go live."))};l.prototype.render=function(){"use strict";return c("React").createElement("span",null,c("React").createElement(c("XUIButton.react"),{disabled:this.props.disabled,ref:"button",label:h._("Next"),onClick:this.props.onClick,use:"confirm"}),this.$ReactComposerLiveVideoPreviewButton1())};function l(){"use strict";i.apply(this,arguments)}l.propTypes={disabled:k.bool,showNUX:k.bool,onClick:function m(){},onNUXCloseButtonClick:function m(){}};f.exports=l}),null);
__d("ReactComposerCollageDragHandler",["Map","Vector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(m){return m.reduce(function(n,o){return n+o})}function i(m){var n=m.length;if(n===0)return null;var o=h(m.map(function(q){return q.x}))/n,p=h(m.map(function(q){return q.y}))/n;return new(c("Vector"))(o,p)}function j(m){__p&&__p();var n=m.length;if(n===0)return null;var o=0,p=0;for(var q=0;q<n;q++){var r=m.item(q);o+=r.pageX;p+=r.pageY}return new(c("Vector"))(o/n,p/n)}function k(event){return event.buttons!==undefined?event.buttons&1:event.button===0&&event.type!=="mouseup"}function l(m,n,o,p){this.$ReactComposerCollageDragHandler1=m;this.$ReactComposerCollageDragHandler2=n;this.$ReactComposerCollageDragHandler3=o;this.$ReactComposerCollageDragHandler4=p;this.$ReactComposerCollageDragHandler7=false;this.$ReactComposerCollageDragHandler5=new(c("Map"))()}l.prototype.onMouseDown=function(event){if(k(event)){this.$ReactComposerCollageDragHandler7=true;this.$ReactComposerCollageDragHandler8(event);this.$ReactComposerCollageDragHandler2(this.$ReactComposerCollageDragHandler1,this.$ReactComposerCollageDragHandler6)}};l.prototype.onMouseUp=function(event){if(!k(event)&&this.$ReactComposerCollageDragHandler7){this.$ReactComposerCollageDragHandler7=false;this.$ReactComposerCollageDragHandler8(event);this.$ReactComposerCollageDragHandler4(this.$ReactComposerCollageDragHandler1,this.$ReactComposerCollageDragHandler6)}};l.prototype.onMouseMove=function(event){if(!k(event))this.$ReactComposerCollageDragHandler7=false;if(this.$ReactComposerCollageDragHandler7){var m=this.$ReactComposerCollageDragHandler8(event);this.$ReactComposerCollageDragHandler3(this.$ReactComposerCollageDragHandler1,this.$ReactComposerCollageDragHandler6,m)}};l.prototype.onBlur=function(event){if(this.$ReactComposerCollageDragHandler7)this.$ReactComposerCollageDragHandler4(this.$ReactComposerCollageDragHandler1,this.$ReactComposerCollageDragHandler6);this.$ReactComposerCollageDragHandler7=false;this.$ReactComposerCollageDragHandler6=null;if(this.$ReactComposerCollageDragHandler5.size>0)this.$ReactComposerCollageDragHandler4(this.$ReactComposerCollageDragHandler1,j(Array.from(this.$ReactComposerCollageDragHandler5.values())));this.$ReactComposerCollageDragHandler5=new(c("Map"))()};l.prototype.onTouchStart=function(event){if(this.$ReactComposerCollageDragHandler5.size===0){var m=j(event.targetTouches);this.$ReactComposerCollageDragHandler2(this.$ReactComposerCollageDragHandler1,m)}this.$ReactComposerCollageDragHandler9(event)};l.prototype.onTouchMove=function(event){var m=j(event.targetTouches),n=this.$ReactComposerCollageDragHandler9(event);this.$ReactComposerCollageDragHandler3(this.$ReactComposerCollageDragHandler1,m,n)};l.prototype.onTouchEnd=function(event){this.$ReactComposerCollageDragHandler9(event);if(!event.targetTouches.length)this.$ReactComposerCollageDragHandler4(this.$ReactComposerCollageDragHandler1,j(event.changedTouches))};l.prototype.onTouchCancel=function(event){this.$ReactComposerCollageDragHandler9(event);if(!event.targetTouches.length)this.$ReactComposerCollageDragHandler4(this.$ReactComposerCollageDragHandler1,j(event.changedTouches))};l.prototype.$ReactComposerCollageDragHandler8=function(event){var m=new(c("Vector"))(event.pageX,event.pageY),n=null;if(this.$ReactComposerCollageDragHandler6)n=m.sub(this.$ReactComposerCollageDragHandler6);this.$ReactComposerCollageDragHandler6=m;return n};l.prototype.$ReactComposerCollageDragHandler9=function(event){__p&&__p();event.preventDefault();var m=[],n=this.$ReactComposerCollageDragHandler5;this.$ReactComposerCollageDragHandler5=new(c("Map"))();for(var o=0;o<event.targetTouches.length;o++){var p=event.targetTouches.item(o),q=new(c("Vector"))(p.pageX,p.pageY),r=n.get(p.identifier);this.$ReactComposerCollageDragHandler5.set(p.identifier,q);if(r)m.push(q.sub(r))}var s=i(m);return s};f.exports=l}),null);
__d("ReactComposerPhotoActionButton.react",["cx","React","Tooltip","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){var m=c("joinClasses")(this.props.className,"_jfh");return c("React").createElement("button",babelHelpers["extends"]({className:m,onClick:this.props.onClick,tabIndex:"0","aria-label":this.props.tooltip},c("Tooltip").propsFor(this.props.tooltip)),c("React").createElement("div",{className:this.props.iconClassName}))};function l(){i.apply(this,arguments)}l.propTypes={tooltip:k.node,className:k.string,onClick:k.func,iconClassName:k.string};f.exports=l}),null);
__d("ReactComposerPhotoEditActionButton.react",["cx","fbt","React","ReactComposerPhotoActionButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.render=function(){var n=i._("Edit Photo");return c("React").createElement(c("ReactComposerPhotoActionButton.react"),{className:"_4_z4",onClick:this.props.onClick,tooltip:n,iconClassName:"_4_z5"})};function m(){j.apply(this,arguments)}m.propTypes={onClick:l.func};f.exports=m}),null);
__d("ReactComposerFaceboxTaggerTypeaheadPresenter",["cx","React","XUITypeaheadView.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){return c("React").createElement("div",{className:"_3ntx"},c("React").createElement(c("XUITypeaheadView.react"),this.props))};function k(){i.apply(this,arguments)}var l={ViewRenderer:k,useLayer:true};f.exports=l}),null);
__d("ReactComposerPhotoFaceboxTagger.react",["cx","fbt","React","ReactComposerFaceboxTaggerTypeaheadPresenter","XUITypeahead.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){var n,o;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.state={query:""},this.$ReactComposerPhotoFaceboxTagger1=function(s){this.props.onTagAdded(this.props.faceboxID,s.getUniqueID(),s.getTitle())}.bind(this),this.$ReactComposerPhotoFaceboxTagger2=function(event){this.setState({query:event.target.value})}.bind(this),o}m.prototype.render=function(){var n=i._("Who is this?");return c("React").createElement(c("XUITypeahead.react"),{className:"_xgd",queryString:this.state.query,placeholder:n,onSelectAttempt:this.$ReactComposerPhotoFaceboxTagger1,onChange:this.$ReactComposerPhotoFaceboxTagger2,searchSource:this.props.dataSource,highlightOnSelect:true,showEntriesOnFocus:true,autoHighlight:true,selectOnTab:true,focusedOnInit:true,presenter:c("ReactComposerFaceboxTaggerTypeaheadPresenter")})};m.propTypes={faceboxID:l.string.isRequired,dataSource:l.object.isRequired,onTagAdded:l.func.isRequired};f.exports=m}),null);
__d("ReactComposerQAndAActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({SET_QANDA_CONFIG:null},"ReactComposerQAndAActionType")}),null);
__d("ReactComposerQAndAStore",["ReactComposerQAndAActionType","ReactComposerStoreBase"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";var k=void 0;i.constructor.call(this,function(){return{photoLimit:1,profilePicURI:null,profileURI:null,faceboxDataSource:null}},function(l){switch(l.type){case c("ReactComposerQAndAActionType").SET_QANDA_CONFIG:k&&k.$ReactComposerQAndAStore1(l);break}});k=this}j.prototype.getPhotoLimit=function(k){"use strict";return this.getComposerData(k).photoLimit};j.prototype.getProfilePicSrc=function(k){"use strict";return this.getComposerData(k).profilePicSrc};j.prototype.getProfileURI=function(k){"use strict";return this.getComposerData(k).profileURI};j.prototype.getFaceboxDataSource=function(k){"use strict";return this.getComposerData(k).faceboxDataSource};j.prototype.$ReactComposerQAndAStore1=function(k){"use strict";var l=this.validateAction(k,["composerID","config"]),m=l[0],n=l[1],o=this.getComposerData(m);o.photoLimit=n.photoLimit;o.profilePicSrc=n.profilePicSrc;o.profileURI=n.profileURI;o.faceboxDataSource=n.faceboxDataSource;this.emitChange(k.composerID)};f.exports=new j()}),null);
__d("ReactComposerPhotoFaceboxTaggerContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerMediaAttachmentStore","ReactComposerPhotoFaceboxTagger.react","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerQAndAStore"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerPhotoFaceboxTaggerContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerMediaAttachmentStore"),c("ReactComposerQAndAStore"))],propTypes:{faceboxID:h.string.isRequired,onTagAdded:h.func.isRequired},statics:{calculateState:function j(k){var l=c("ReactComposerMediaAttachmentStore").getTaggingDataSource(k)||c("ReactComposerQAndAStore").getFaceboxDataSource(k);l&&l.bootstrap();return{dataSource:l}}},render:function j(){return c("React").createElement(c("ReactComposerPhotoFaceboxTagger.react"),{faceboxID:this.props.faceboxID,dataSource:this.state.dataSource,onTagAdded:this.props.onTagAdded})}});f.exports=i}),null);
__d("ReactComposerPhotoProductTagActionButton.react",["cx","fbt","AsyncRequest","CommerceProductTaggerType","CommerceSelfServeNUXType","React","ReactComposerPhotoActionButton.react","ReactComposerTaggerActions","ReactComposerTaggerType","XCommerceSelfServeMerchantNUXSeenController","XUIAmbientNUX.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;function m(){var n,o;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.$ReactComposerPhotoProductTagActionButton2=function(){var s=c("XCommerceSelfServeMerchantNUXSeenController").getURIBuilder().setInt("page_id",this.props.pageID).setEnum("nux_type",c("CommerceSelfServeNUXType").COMPOSER_PRODUCT_PHOTO_TAGGER_BUTTON).getURI();new(c("AsyncRequest"))(s).send();this.props.onHideNux()}.bind(this),o}m.prototype.render=function(){var n=i._("Tag Products");return c("React").createElement("div",null,c("React").createElement(c("ReactComposerPhotoActionButton.react"),{ref:"fbReactComposerPhotoActionbutton",className:"_a69"+(this.props.hasTag?" _a6b":""),tooltip:n,iconClassName:"_a6_",onClick:this.props.onClick}),this.$ReactComposerPhotoProductTagActionButton1())};m.prototype.$ReactComposerPhotoProductTagActionButton1=function(){if(!this.props.showNux)return null;var n=this.props.productTaggerType,o=n===c("CommerceProductTaggerType").SHOP_PAGE?i._("Tag products from your shop in this photo"):i._("Tag products in this photo");return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.fbReactComposerPhotoActionbutton}.bind(this),onCloseButtonClick:this.$ReactComposerPhotoProductTagActionButton2,position:"right",shown:true,width:"auto"},o)};m.propTypes={composerID:l.string.isRequired,pageID:l.string.isRequired,productTaggerType:l.string.isRequired,hasTag:l.bool.isRequired,onClick:l.any,onHideNux:l.func.isRequired,showNux:l.bool.isRequired};f.exports=m}),null);
__d("ReactComposerPhotoTagActionButton.react",["cx","fbt","React","ReactComposerPhotoActionButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.render=function(){var n=i._("Tag");return c("React").createElement(c("ReactComposerPhotoActionButton.react"),{className:"_cwf"+(this.props.hasTag?" _cwh":""),tooltip:n,iconClassName:"_cwg",onClick:this.props.onClick})};function m(){j.apply(this,arguments)}m.propTypes={hasTag:l.bool.isRequired,onClick:l.any};f.exports=m}),null);
__d("ReactComposerPhotoTaggedFaceboxSummary.react",["cx","fbt","ix","Image.react","LeftRight.react","React","TooltipLink.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("React").PureComponent);l=k&&k.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=l.constructor).call.apply(o,[this].concat(r)),this.$ReactComposerPhotoTaggedFaceboxSummary1=function(){this.props.onTagRemoved(this.props.faceboxID,this.props.taggedSubjectID)}.bind(this),p}n.prototype.render=function(){var o=i._("Edit Name");return c("React").createElement(c("LeftRight.react"),{className:"_31bg"},c("React").createElement("div",{className:"_31bh"},this.props.taggedValue),c("React").createElement(c("TooltipLink.react"),{alignH:"center",position:"below",tooltip:o,onClick:this.$ReactComposerPhotoTaggedFaceboxSummary1},c("React").createElement(c("Image.react"),{src:j("76906")})))};n.propTypes={faceboxID:m.string.isRequired,onTagRemoved:m.func.isRequired,taggedSubjectID:m.string.isRequired,taggedValue:m.string.isRequired};f.exports=n}),null);
__d("ReactComposerPhotoTagger.react",["cx","fbt","ActorURI","AsyncRequest","CommerceProductTaggerType","ContextualLayerAutoFlip","Image.react","ImageBlock.react","immutable","LayerHideOnBlur","LayerHideOnEscape","LayerTabIsolation","ModalPhotoEditorTabName","PhotoEditorTargetType","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerPhotoActions","ReactComposerPhotoEditActionButton.react","ReactComposerPhotoFaceboxTaggerContainer.react","ReactComposerPhotoProductTagActionButton.react","ReactComposerPhotoStore","ReactComposerPhotoTagActionButton.react","ReactComposerPhotoTaggedFaceboxSummary.react","ReactLayeredComponentMixin_DEPRECATED","XStickerPhotoEditorController","XUIContextualDialog.react","XUIContextualDialogBody.react","XUIContextualDialogFooter.react","XUIDialogCloseButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("React").PropTypes,k=268,l=32,m=c("React").createClass({displayName:"ReactComposerPhotoTagger",_photoEditorRequest:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactLayeredComponentMixin_DEPRECATED"),c("ReactComponentWithPureRenderMixin")],propTypes:{canTagFromModal:j.bool,draggingPhotos:j.bool,enableFaceboxTagger:j.bool.isRequired,disablePhotoEditing:j.bool.isRequired,faceboxes:j.instanceOf(c("immutable").Map).isRequired,onEditClick:j.func,onHideProductTaggerNux:j.func.isRequired,onTagAdded:j.func.isRequired,onTagIntent:j.func,onTagRemoved:j.func.isRequired,originalID:j.string,photoID:j.string.isRequired,productTaggerType:j.string.isRequired,shown:j.bool.isRequired,showProductTaggerNux:j.bool.isRequired},getDefaultProps:function n(){return{shown:false}},componentWillReceiveProps:function n(o){if(!this.props.draggingPhotos&&o.draggingPhotos)c("ReactComposerPhotoActions").setPhotoBeingTagged(this.context.composerID,null)},render:function n(){__p&&__p();var o=null,p=this.props.productTaggerType!==c("CommerceProductTaggerType").NONE;if(p)o=this._onProductTagClick;else if(this.props.canTagFromModal)o=this._onTagClick;var q=null;if(p)q=c("React").createElement(c("ReactComposerPhotoProductTagActionButton.react"),{composerID:this.context.composerID,productTaggerType:this.props.productTaggerType,pageID:this.context.targetID,hasTag:c("ReactComposerPhotoStore").hasTagsInPhoto(this.context.composerID,this.props.photoID),onClick:o,onHideNux:this.props.onHideProductTaggerNux,showNux:this.props.showProductTaggerNux});else if(this.props.enableFaceboxTagger)q=c("React").createElement(c("ReactComposerPhotoTagActionButton.react"),{hasTag:c("ReactComposerPhotoStore").hasTagsInPhoto(this.context.composerID,this.props.photoID),onClick:o});var r=this.props.disablePhotoEditing?null:c("React").createElement(c("ReactComposerPhotoEditActionButton.react"),{onClick:this._onEditClick});return c("React").createElement("div",{className:"_jfi"+(p?" uiContextualLayerParent":""),onClick:this._onClick,role:"presentation",tabIndex:"-1"},q,r)},renderLayers:function n(){if(!this.props.shown||!this.props.enableFaceboxTagger)return null;return{dialog:this._getDialog()}},_getDialog:function n(){return c("React").createElement(c("XUIContextualDialog.react"),{ref:"dialog",shown:this.props.shown,onToggle:this._onDialogToggled,contextRef:function(){return this}.bind(this),position:"below",alignment:"center",width:k,behaviors:{LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape"),ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),LayerTabIsolation:c("LayerTabIsolation")}},c("React").createElement(c("XUIContextualDialogBody.react"),null,this._getDialogBody()),c("React").createElement(c("XUIContextualDialogFooter.react"),null,c("React").createElement(c("XUIDialogCloseButton.react"),{use:"confirm",label:"Close",onClick:this._onCloseButtonClicked})))},_getDialogBody:function n(){if(this.props.faceboxes.size===0)return i._("We could not find any faces to tag.");return this.props.faceboxes.valueSeq().map(function(o){var p=o.taggedSubjectID?c("React").createElement(c("ReactComposerPhotoTaggedFaceboxSummary.react"),{faceboxID:o.id,onTagRemoved:this.props.onTagRemoved,taggedSubjectID:o.taggedSubjectID,taggedValue:o.taggedValue}):c("React").createElement(c("ReactComposerPhotoFaceboxTaggerContainer.react"),{faceboxID:o.id,onTagAdded:this.props.onTagAdded});return c("React").createElement(c("ImageBlock.react"),{key:o.id,className:"_qv7"},c("React").createElement(c("Image.react"),{className:"_qv8",height:l,src:o.croppedURI,width:l}),p)}.bind(this))},_onCloseButtonClicked:function n(){c("ReactComposerPhotoActions").setPhotoBeingTagged(this.context.composerID,null)},_onDialogToggled:function n(o){if(!o)this._onCloseButtonClicked()},_onClick:function n(){this.props.onTagIntent&&this.props.onTagIntent();c("ReactComposerPhotoActions").setPhotoBeingTagged(this.context.composerID,this.props.photoID)},_onTagClick:function n(event){this._onEditClick(event,null,c("ModalPhotoEditorTabName").TAG)},_onProductTagClick:function n(event){this._onEditClick(event,null,c("ModalPhotoEditorTabName").PRODUCT_TAG)},_onEditClick:function n(event,o,p){__p&&__p();event.stopPropagation();if(this._photoEditorRequest)return;c("ReactComposerPhotoActions").startPhotoEdit(this.context.composerID,this.props.photoID);var q=c("XStickerPhotoEditorController").getURIBuilder().setString("grid_id",this.context.composerID).setEnum("target_type",c("PhotoEditorTargetType").COMPOSER).setInt("latest_fbid",this.props.photoID).setInt("photo_fbid",this.props.originalID||this.props.photoID).setEnum("initial_tab",p).getURI();q=c("ActorURI").create(q,this.context.actorID);this._photoEditorRequest=new(c("AsyncRequest"))(q).setFinallyHandler(function(){this._photoEditorRequest=null;c("ReactComposerPhotoActions").finishLoadingPhotoEdit(this.context.composerID,this.props.photoID)}.bind(this));this._photoEditorRequest&&this._photoEditorRequest.send();this.props.onEditClick&&this.props.onEditClick()}});f.exports=m}),null);
__d("ReactComposerCollagePhoto.react",["cx","BootloadedComponent.react","CircularProgressBar.react","CommerceProductTaggerType","Image.react","immutable","JSResource","React","ReactComposerCollageDragHandler","ReactComposerContextTypes","ReactComposerPhotoTagger.react","SphericalMediaGyroIcon.react","XUICloseButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){__p&&__p();var m={height:this.props.containerHeight,overflow:"hidden",position:"relative",width:this.props.containerWidth},n=Boolean(this.props.isSpherical||this.props.sphericalPhotoID),o=void 0,p=void 0,q=void 0,r=void 0,s=void 0;if(!n){s=this.$ReactComposerCollagePhoto1();if(!this.props.isDragging)r=this.$ReactComposerCollagePhoto2()}else r=this.$ReactComposerCollagePhoto3();if(!this.props.isDragging)o=this.$ReactComposerCollagePhoto4();if(this.props.isRecognizingFaceboxes||this.props.isLoadingPhotoEdit||this.props.uploading&&this.props.uploadProgress===100)q=this.$ReactComposerCollagePhoto5();if(this.props.uploading&&this.props.uploadProgress<100)p=c("React").createElement(c("CircularProgressBar.react"),{percentComplete:this.props.uploadProgress});var t="_jfc _4c06";return c("React").createElement("div",{ref:"root",className:t,onMouseDown:function(u){return this.props.dragHandler.onMouseDown(u)}.bind(this),onMouseUp:function(u){return this.props.dragHandler.onMouseUp(u)}.bind(this),onMouseMove:function(u){return this.props.dragHandler.onMouseMove(u)}.bind(this),onTouchStart:function(u){return this.props.dragHandler.onTouchStart(u)}.bind(this),onTouchMove:function(u){return this.props.dragHandler.onTouchMove(u)}.bind(this),onTouchEnd:function(u){return this.props.dragHandler.onTouchEnd(u)}.bind(this),onTouchCancel:function(u){return this.props.dragHandler.onTouchCancel(u)}.bind(this),style:m},s,c("React").createElement("div",{onMouseDown:function u(v){return v.stopPropagation()}},o,r),q,p)};l.prototype.$ReactComposerCollagePhoto5=function(){return c("React").createElement("div",{className:"_do4"},c("React").createElement("div",{className:"_do5"},c("React").createElement("div",{className:"_do6"})))};l.prototype.$ReactComposerCollagePhoto2=function(){if(!this.props.posting&&!this.props.uploading)return c("React").createElement(c("ReactComposerPhotoTagger.react"),{draggingPhotos:false,enableFaceboxTagger:this.props.enableFaceboxTagger,productTaggerType:this.props.productTaggerType,disablePhotoEditing:!this.props.enablePhotoEditing,faceboxes:this.props.faceboxes,onTagAdded:this.props.onTagAdded,onTagRemoved:this.props.onTagRemoved,showProductTaggerNux:false,onHideProductTaggerNux:this.props.onHideProductTaggerNux,photoID:this.props.photoID,shown:this.props.showPhotoTagger});return null};l.prototype.$ReactComposerCollagePhoto3=function(){if(this.props.uploading)return c("React").createElement("div",null,this.$ReactComposerCollagePhoto1(),c("React").createElement(c("SphericalMediaGyroIcon.react"),{className:"_jk8"}));var m=!(this.props.posting||this.props.uploading||this.props.isDragging);return c("React").createElement("div",null,c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerSphericalPhoto.react").__setRef("ReactComposerCollagePhoto.react"),bootloadPlaceholder:this.$ReactComposerCollagePhoto5(),loadingElement:this.$ReactComposerCollagePhoto5(),className:"_5g6c",containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,height:this.props.height,imageStyle:this.props.style,photoID:this.props.photoID,showEditButton:m,sphericalPhotoID:this.props.sphericalPhotoID,thumbSrc:this.props.imageSrc,uploadID:this.props.uploadID,width:this.props.width}))};l.prototype.$ReactComposerCollagePhoto4=function(){if(!this.props.posting)return c("React").createElement(c("XUICloseButton.react"),{className:"_jfe",onClick:this.props.onRemoveButtonClicked,onMouseDown:function m(n){return n.stopPropagation()},size:"medium",shade:"light"});return null};l.prototype.$ReactComposerCollagePhoto1=function(){return c("React").createElement(c("Image.react"),{src:this.props.fileURL,width:this.props.width,height:this.props.height,style:this.props.style})};function l(){i.apply(this,arguments)}l.defaultProps={width:0,height:0,photoID:"",style:{},posting:false,showPhotoTagger:false,enableFaceboxTagger:false,productTaggerType:c("CommerceProductTaggerType").NONE,enablePhotoEditing:true,isSpherical:false};l.propTypes={uploadID:k.string.isRequired,uploading:k.bool.isRequired,photoID:k.string,width:k.number.isRequired,height:k.number.isRequired,containerWidth:k.number.isRequired,containerHeight:k.number.isRequired,dragHandler:k.instanceOf(c("ReactComposerCollageDragHandler")).isRequired,isDragging:k.bool.isRequired,fileURL:k.string.isRequired,style:k.object.isRequired,uploadProgress:k.number.isRequired,faceboxes:k.instanceOf(c("immutable").Map),imageSrc:k.string,isLoadingPhotoEdit:k.bool,isRecognizingFaceboxes:k.bool,isSpherical:k.bool,sphericalPhotoID:k.string,enableFaceboxTagger:k.bool.isRequired,enablePhotoEditing:k.bool.isRequired,productTaggerType:k.string.isRequired,onHideProductTaggerNux:k.func.isRequired,showPhotoTagger:k.bool.isRequired,onTagAdded:k.func.isRequired,onTagRemoved:k.func.isRequired};l.contextTypes=c("ReactComposerContextTypes");f.exports=l}),null);
__d("ReactComposerCollagePhotoContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerCollageDragHandler","ReactComposerCollagePhoto.react","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerPhotoActions","ReactComposerPhotoStore","ReactComposerPhotoUploadState","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerCollagePhotoContainer",mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerStore"),c("ReactComposerPhotoStore"),c("ReactComposerMediaUploadStore"))],propTypes:{upload:h.object.isRequired,itemWidth:h.number.isRequired,itemHeight:h.number.isRequired,opacity:h.number,enableFaceboxTagger:h.bool,enablePhotoEditing:h.bool,dragHandler:h.instanceOf(c("ReactComposerCollageDragHandler")).isRequired,isDragging:h.bool,productTaggerType:h.string,focus:h.object.isRequired,containerWidth:h.number.isRequired,containerHeight:h.number.isRequired,isSpherical:h.bool,onRemoveItem:h.func},statics:{calculateState:function j(k,l){var m=l.upload,n=this._overallProgress(m);if(m.state==c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_DONE){var o=c("ReactComposerPhotoStore").getPhoto(k,l.upload.photoID),p=c("ReactComposerPhotoStore").getPhotoBeingTagged(k)===l.upload.photoID;return{uploading:false,overallProgress:n,faceboxes:o.faceboxes,isLoadingPhotoEdit:o.isLoadingPhotoEdit,isRecognizingFaceboxes:o.isRecognizingFaceboxes,isSpherical:m.isSpherical,isSphericalDisabled:Boolean(m.sphericalPhotoID),sphericalPhotoID:m.sphericalPhotoID,showPhotoTagger:p,imageSrc:o.imageSrc}}else return{isSpherical:m.isSpherical,uploading:true,overallProgress:n}},_overallProgress:function j(k){switch(k.state){case c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_RESIZE_STARTED:return.1*k.progress;case c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_UPLOADING:return.1*100+.9*k.progress;case c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_DONE:return 100;default:return 0}}},render:function j(){var k=this._calculateSmallestFitSize(this.props.containerWidth,this.props.containerHeight),l=this._generateStyle(k,this.props.containerWidth,this.props.containerHeight);return c("React").createElement(c("ReactComposerCollagePhoto.react"),{ref:"container",uploadID:this.props.upload.id,photoID:this.props.upload.photoID,width:k.width,height:k.height,dragHandler:this.props.dragHandler,isDragging:this.props.isDragging,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,fileURL:this.props.upload.fileURL,style:l,posting:this.state.posting,uploading:this.state.uploading,uploadProgress:this.state.overallProgress,faceboxes:this.state.faceboxes,imageSrc:this.state.imageSrc,isLoadingPhotoEdit:this.state.isLoadingPhotoEdit,isRecognizingFaceboxes:this.state.isRecognizingFaceboxes,isSpherical:this.state.isSpherical,sphericalPhotoID:this.state.sphericalPhotoID,enableFaceboxTagger:this.props.enableFaceboxTagger,enablePhotoEditing:this.props.enablePhotoEditing,productTaggerType:this.props.productTaggerType,onEditClick:this._onEditClick,showPhotoTagger:this.state.showPhotoTagger,onHideProductTaggerNux:this._onHideProductTaggerNux,onTagAdded:this._onTagAdded,onTagRemoved:this._onTagRemoved,onRemoveButtonClicked:this._onRemoveButtonClicked})},_calculateSmallestFitSize:function j(k,l){var m=this.props,n=m.itemWidth,o=m.itemHeight;if(this.state.isSpherical&&this.state.uploading){o=this.props.upload.height;n=this.props.upload.width}var p=Math.max(k/n,l/o);return{width:Math.round(n*p),height:Math.round(o*p)}},_generateStyle:function j(k,l,m){var n=(k.width-l)/k.width*50,o=(k.height-m)/k.height*50,p=this.props.focus.x>=50?Math.min(this.props.focus.x,50+n):Math.max(this.props.focus.x,50-n),q=this.props.focus.y>=50?Math.min(this.props.focus.y,50+o):Math.max(this.props.focus.y,50-o),r="translate(-"+p+"%, -"+q+"%)",s={position:"absolute",left:"50%",top:"50%",WebkitTransformOrigin:"0% 0%",MozTransformOrigin:"0% 0%",msTransformOrigin:"0% 0%",WebkitTransform:r,MozTransform:r,msTransform:r};if(this.props.opacity)s.opacity=this.props.opacity;return s},_onRemoveButtonClicked:function j(){this.props.onRemoveItem&&this.props.onRemoveItem(this.props.upload.id);if(this.state.uploading)c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.upload.id);else c("ReactComposerPhotoActions").removePhoto(this.context.composerID,this.props.upload.photoID,this.props.upload.id)},_onTagRemoved:function j(k,l){c("ReactComposerPhotoActions").untagFacebox(this.context.composerID,this.props.upload.photoID,k,l)},_onTagAdded:function j(k,l,m){c("ReactComposerPhotoActions").tagFacebox(this.context.composerID,this.props.upload.photoID,k,l,m)},_onHideProductTaggerNux:function j(){},_onEditClick:function j(){}});i.contextTypes=c("ReactComposerContextTypes");f.exports=i}),null);
__d("ReactComposerCollageVideo.react",["cx","CircularProgressBar.react","React","ReactComposerCollageDragHandler","XUICloseButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$ReactComposerCollageVideo2=function(r){var s=this.refs.video_element,t=this.refs.play_button;if(s.paused){s.play();t.style.display="none"}else{s.pause();t.style.display="block"}r.stopPropagation()}.bind(this),n}l.prototype.render=function(){__p&&__p();var m={height:this.props.containerHeight,overflow:"hidden",position:"relative",width:this.props.containerWidth},n=void 0;if(!this.props.posting)n=c("React").createElement(c("XUICloseButton.react"),{className:"_1sju",onClick:this.props.onRemoveButtonClicked,size:"medium",shade:"light"});var o=this.$ReactComposerCollageVideo1();return c("React").createElement("div",{ref:"root",className:"_1sjs _3dx6",style:m,onMouseDown:function(p){return this.props.dragHandler.onMouseDown(p)}.bind(this),onMouseUp:function(p){return this.props.dragHandler.onMouseUp(p)}.bind(this),onMouseMove:function(p){return this.props.dragHandler.onMouseMove(p)}.bind(this),onTouchStart:function(p){return this.props.dragHandler.onTouchStart(p)}.bind(this),onTouchMove:function(p){return this.props.dragHandler.onTouchMove(p)}.bind(this),onTouchEnd:function(p){return this.props.dragHandler.onTouchEnd(p)}.bind(this),onTouchCancel:function(p){return this.props.dragHandler.onTouchCancel(p)}.bind(this)},c("React").createElement("div",{onMouseDown:function p(q){return q.stopPropagation()}},n),o,c("React").createElement("div",{className:"_1oxz",onClick:this.$ReactComposerCollageVideo2,onMouseDown:function p(q){return q.stopPropagation()},ref:"play_button",role:"button",tabIndex:"0"}),c("React").createElement(c("CircularProgressBar.react"),{percentComplete:50*Math.log10(Math.max(1,this.props.uploadProgress))}))};l.prototype.$ReactComposerCollageVideo1=function(){return c("React").createElement("video",{ref:"video_element",loop:true,muted:true,src:this.props.fileURL,width:this.props.width,height:this.props.height,style:this.props.style})};l.defaultProps={width:0,height:0,style:{},posting:false};l.propTypes={width:k.number.isRequired,height:k.number.isRequired,containerWidth:k.number.isRequired,containerHeight:k.number.isRequired,dragHandler:k.instanceOf(c("ReactComposerCollageDragHandler")).isRequired,fileURL:k.string.isRequired,style:k.object.isRequired,uploadProgress:k.number.isRequired};f.exports=l}),null);
__d("ReactComposerCollageVideoContainer.react",["React","ReactComposerCollageDragHandler","ReactComposerCollageVideo.react","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerCollageVideoContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerStore"),c("ReactComposerMediaUploadStore"))],propTypes:{upload:h.object.isRequired,itemWidth:h.number.isRequired,itemHeight:h.number.isRequired,fileURL:h.string.isRequired,dragHandler:h.instanceOf(c("ReactComposerCollageDragHandler")).isRequired,opacity:h.number,focus:h.object.isRequired,containerWidth:h.number.isRequired,containerHeight:h.number.isRequired,onRemoveItem:h.func},statics:{calculateState:function j(k,l){return{overallProgress:l.upload.progress||0}}},render:function j(){var k=this._calculateSmallestFitSize(this.props.containerWidth,this.props.containerHeight),l=this._generateStyleFromFocus(k,this.props.containerWidth,this.props.containerHeight);if(this.props.opacity)l.opacity=this.props.opacity;return c("React").createElement("div",null,c("React").createElement(c("ReactComposerCollageVideo.react"),{ref:"container",width:k.width,height:k.height,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,dragHandler:this.props.dragHandler,fileURL:this.props.fileURL,style:l,uploadProgress:this.state.overallProgress,posting:this.state.posting,onRemoveButtonClicked:this._onRemoveButtonClicked}))},_calculateSmallestFitSize:function j(k,l){var m=Math.max(k/this.props.itemWidth,l/this.props.itemHeight);return{width:Math.round(this.props.itemWidth*m),height:Math.round(this.props.itemHeight*m)}},_generateStyleFromFocus:function j(k,l,m){var n=(k.width-l)/k.width*50,o=(k.height-m)/k.height*50,p=this.props.focus.x>=50?Math.min(this.props.focus.x,50+n):Math.max(this.props.focus.x,50-n),q=this.props.focus.y>=50?Math.min(this.props.focus.y,50+o):Math.max(this.props.focus.y,50-o),r="translate(-"+p+"%, -"+q+"%)";return{position:"absolute",left:"50%",top:"50%",WebkitTransformOrigin:"0% 0%",MozTransformOrigin:"0% 0%",msTransformOrigin:"0% 0%",WebkitTransform:r,MozTransform:r,msTransform:r}},_onRemoveButtonClicked:function j(){this.props.onRemoveItem&&this.props.onRemoveItem(this.props.upload.id);c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.upload.id)}});f.exports=i}),null);
__d("ReactComposerDraggableCollageItem.react",["cx","React","ReactComponentWithPureRenderMixin","ReactComposerCollageDragHandler","ReactComposerCollagePhotoContainer.react","ReactComposerCollageVideoContainer.react","ReactComposerContextTypes","ReactComposerMediaUploadType"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("React").PropTypes,j=0,k=0,l={x:50,y:50},m=c("React").createClass({displayName:"ReactComposerDraggableCollageItem",_dragHandler:undefined,_grabbed:undefined,_scrollParent:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{upload:i.object.isRequired,itemWidth:i.number.isRequired,itemHeight:i.number.isRequired,width:i.number.isRequired,height:i.number.isRequired,isDragging:i.bool,opacity:i.number,focus:i.object.isRequired,onGrab:i.func.isRequired,onDrag:i.func.isRequired,onDrop:i.func.isRequired,onRemoveItem:i.func,enableFaceboxTagger:i.bool,enablePhotoEditing:i.bool,productTaggerType:i.string},getDefaultProps:function n(){return{width:j,height:k,focus:l,isDragging:false}},render:function n(){var o=this._dragHandler;if(!o){o=new(c("ReactComposerCollageDragHandler"))(this.props.upload.id,this.props.onGrab,this.props.onDrag,this.props.onDrop);this._dragHandler=o}var p=(this.props.isDragging?"_5uy":"")+" _3imc";return c("React").createElement("div",{className:p,key:this.props.upload.id,ref:"draggable_media"},this._getInnerMediaComponent(o))},_getInnerMediaComponent:function n(o){if(this.props.upload.mediaType==c("ReactComposerMediaUploadType").VIDEO)return this._getInnerVideoComponent(o);return this._getInnerPhotoComponent(o)},_getInnerVideoComponent:function n(o){return c("React").createElement(c("ReactComposerCollageVideoContainer.react"),{key:this.props.upload.id,upload:this.props.upload,itemWidth:this.props.itemWidth,itemHeight:this.props.itemHeight,opacity:this.props.opacity,fileURL:this.props.upload.fileURL,focus:l,containerWidth:this.props.width,containerHeight:this.props.height,dragHandler:o,onRemoveItem:this.props.onRemoveItem})},_getInnerPhotoComponent:function n(o){return c("React").createElement(c("ReactComposerCollagePhotoContainer.react"),{key:this.props.upload.id,upload:this.props.upload,itemWidth:this.props.itemWidth,itemHeight:this.props.itemHeight,opacity:this.props.opacity,dragHandler:o,isDragging:this.props.isDragging,focus:l,containerWidth:this.props.width,containerHeight:this.props.height,enableFaceboxTagger:this.props.enableFaceboxTagger,enablePhotoEditing:this.props.enablePhotoEditing,onRemoveItem:this.props.onRemoveItem,productTaggerType:this.props.productTaggerType})}});f.exports=m}),null);
__d("ReactComposerCollage.react",["immutable","Map","React","ReactComposerDraggableCollageItem.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.render=function(){if(this.props.mediaUploads.size===0)return null;var l={marginLeft:5};if(!this.props.styleInfos)return null;var m=babelHelpers["extends"]({},l,{position:"relative",width:this.props.width,height:this.props.height});return c("React").createElement("div",{style:{margin:"auto",width:this.props.scaleFactor*100+"%"}},c("React").createElement("div",{style:m},this.$ReactComposerCollage1()))};k.prototype.$ReactComposerCollage1=function(){var l=this.props.mediaUploads.sortBy(function(n){return n.id}),m=[];l.forEach(function(n){var o=this.$ReactComposerCollage2(n);if(o)m.push(o)}.bind(this));return m};k.prototype.$ReactComposerCollage2=function(l){var m=this.props.styleInfos;if(!m)return null;var n=m.get(l.id);if(!n)return null;var o=this.$ReactComposerCollage3(n),p={left:o.left,top:o.top,height:o.height,width:o.width,zIndex:o.zIndex,position:"absolute"};return c("React").createElement("div",{style:p,key:l.id},this.$ReactComposerCollage4(l,o,n))};k.prototype.$ReactComposerCollage3=function(l){var m=l.dragEffectPercent/100,n=1.075*m+1*(1-m),o=.9*m+1*(1-m);o=Math.round(o*100)/100;var p=Math.round(m*80)+20,q=Math.round(l.height*n),r=Math.round(l.width*n),s=babelHelpers["extends"]({},l,{height:q,top:Math.round(l.centerY-q/2),width:r,left:Math.round(l.centerX-r/2),zIndex:p});if(o<1)s.opacity=o;return s};k.prototype.$ReactComposerCollage5=function(l){var m=l.width,n=l.height;if(l.isSpherical)m=n=Math.min(m,n);return{width:m,height:n}};k.prototype.$ReactComposerCollage4=function(l,m,n){var o=Math.round(n.dragEffectPercent)>0,p=this.$ReactComposerCollage5(l);return c("React").createElement(c("ReactComposerDraggableCollageItem.react"),{key:l.id,upload:l,itemWidth:p.width,itemHeight:p.height,width:m.width,height:m.height,opacity:m.opacity,isDragging:o,enableFaceboxTagger:this.props.enableFaceboxTagger,enablePhotoEditing:this.props.enablePhotoEditing,productTaggerType:this.props.productTaggerType,onGrab:this.props.onGrab,onDrag:this.props.onDrag,onDrop:this.props.onDrop,onRemoveItem:this.props.onRemoveItem})};function k(){h.apply(this,arguments)}k.propTypes={styleInfos:j.instanceOf(c("Map")),mediaUploads:j.instanceOf(c("immutable").List).isRequired,enableFaceboxTagger:j.bool,enablePhotoEditing:j.bool,productTaggerType:j.string,width:j.number,height:j.number,onDrag:j.func,onDrop:j.func,onGrab:j.func,onRemoveItem:j.func};f.exports=k}),null);
__d("ReactComposerCollageAnimationUtils",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=Object.prototype.hasOwnProperty,i={equal:function j(k,l){return Math.abs(k-l)<.5},isZero:function j(k){if(typeof k!=="object"||k===null)return false;var l=Object.keys(k);for(var m=0;m<l.length;m++)if(!this.equal(k[l[m]],0))return false;return true},isEqual:function j(k,l){if(typeof k!=="object"||k===null||typeof l!=="object"||l===null)return false;var m=Object.keys(k),n=Object.keys(l);if(m.length!==n.length)return false;for(var o=0;o<m.length;o++)if(!h.call(l,m[o])||!this.equal(k[m[o]],l[m[o]]))return false;return true}};f.exports=i}),null);
__d("ReactComposerCollageAnimationController",["Map","ReactComposerCollageAnimationUtils","performanceNow","requestAnimationFrame"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=.1,i=2e3,j=1,k={springConstant:300,dampingConstant:25},l={springConstant:300,dampingConstant:25},m={springConstant:200,dampingConstant:16},n=new(c("Map"))([["centerX",k],["centerY",k],["height",l],["width",l],["dragEffectPercent",m]]),o={centerX:true,centerY:true,height:false,width:false};function p(q,r,s,t,u,v){this.$ReactComposerCollageAnimationController7=false;this.$ReactComposerCollageAnimationController8=0;this.$ReactComposerCollageAnimationController1=q;this.$ReactComposerCollageAnimationController2=r;this.$ReactComposerCollageAnimationController3=s;this.$ReactComposerCollageAnimationController4=t;this.$ReactComposerCollageAnimationController5=u;this.$ReactComposerCollageAnimationController6=v}p.prototype.startAnimating=function(){if(this.$ReactComposerCollageAnimationController7)return;this.$ReactComposerCollageAnimationController7=true;this.$ReactComposerCollageAnimationController8=c("performanceNow")();c("requestAnimationFrame")(function(){return this.$ReactComposerCollageAnimationController9()}.bind(this))};p.prototype.stopAnimating=function(){this.$ReactComposerCollageAnimationController7=false};p.prototype.$ReactComposerCollageAnimationController9=function(){__p&&__p();if(!this.$ReactComposerCollageAnimationController7)return;var q=false,r=c("performanceNow")(),s=(r-this.$ReactComposerCollageAnimationController8)/1e3;s=Math.min(s,h);this.$ReactComposerCollageAnimationController8=r;var t=this.$ReactComposerCollageAnimationController1(),u=this.$ReactComposerCollageAnimationController3(),v=this.$ReactComposerCollageAnimationController5(),w=this.$ReactComposerCollageAnimationController6();t.forEach(function(x,y){__p&&__p();var z=u.get(y)||{},A=v.get(y);if(!A)return;var B=w.get(y),C=this.$ReactComposerCollageAnimationController10(x,A,z),D=this.$ReactComposerCollageAnimationController11(z,C,s,B),E=this.$ReactComposerCollageAnimationController12(x,D,s,B,A);this.$ReactComposerCollageAnimationController13(x,E,A,z);if(!c("ReactComposerCollageAnimationUtils").isZero(D)){q=true;u.set(y,D)}if(!c("ReactComposerCollageAnimationUtils").isEqual(x,E)){q=true;if(B){var F=E.width-x.width,G=E.height-x.height,H=F*((B.x-x.centerX)/(x.width||1)),I=G*((B.y-x.centerY)/(x.height||1));E.centerX-=H;E.centerY-=I}}t.set(y,E)}.bind(this));if(q&&this.$ReactComposerCollageAnimationController7){this.$ReactComposerCollageAnimationController2(t);this.$ReactComposerCollageAnimationController4(u);c("requestAnimationFrame")(function(){return this.$ReactComposerCollageAnimationController9()}.bind(this))}else this.$ReactComposerCollageAnimationController7=false};p.prototype.$ReactComposerCollageAnimationController13=function(q,r,s,t){n.forEach(function(u,v){var w=Math.abs(q[v]-r[v]),x=Math.abs(s[v]-r[v]);if(w<j&&x<.5){r[v]=s[v];t[v]=0}})};p.prototype.$ReactComposerCollageAnimationController10=function(q,r,s){var t={};n.forEach(function(u,v){t[v]=u.springConstant*(r[v]-q[v])-u.dampingConstant*(s[v]||0)});return t};p.prototype.$ReactComposerCollageAnimationController11=function(q,r,s,t){var u={};n.forEach(function(v,w){u[w]=t&&o[w]?0:Math.max(-i,Math.min(i,(q[w]||0)+r[w]*s))});return u};p.prototype.$ReactComposerCollageAnimationController12=function(q,r,s,t,u){var v={};n.forEach(function(w,x){var y=q[x]+r[x]*s,z=this.$ReactComposerCollageAnimationController14(y,q[x],u[x]);v[x]=t&&o[x]?q[x]:z}.bind(this));return v};p.prototype.$ReactComposerCollageAnimationController14=function(q,r,s){var t=Math.abs(q-s),u=Math.abs(r-s);if(t>u){var v=u/10;return q>s?s+v:s-v}else return q};f.exports=p}),null);
__d("ReactComposerCollageContainer.react",["immutable","Map","React","ReactComponentWithPureRenderMixin","ReactComposerCollage.react","ReactComposerCollageAnimationController","ReactComposerCollageUtils","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactDOM","Vector","VelocityTracker"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=500,j=c("React").createClass({displayName:"ReactComposerCollageContainer",_orderedUploads:c("immutable").List(),_width:i,_layoutConfig:null,_currentStyles:new(c("Map"))(),_targetLocations:new(c("Map"))(),_currentVelocities:new(c("Map"))(),_dragPoints:new(c("Map"))(),_velocityTrackers:new(c("Map"))(),_animationController:null,_allowLayoutChanges:true,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{containerWidth:h.number,scaleFactor:h.number,mediaUploads:h.instanceOf(c("immutable").List).isRequired,enableFaceboxTagger:h.bool,productTaggerType:h.string,disablePhotoEditing:h.bool,showSellUploadLink:h.bool},getInitialState:function k(){this._currentStyles=new(c("Map"))();return{currentStyles:new(c("Map"))()}},componentWillMount:function k(){this._updateVarsFromProps(this.props);this._animationController&&this._animationController.startAnimating()},componentWillUnmount:function k(){this._animationController&&this._animationController.stopAnimating()},componentWillReceiveProps:function k(l){this._updateVarsFromProps(l)},_getCollageItemStyles:function k(){return this._currentStyles},_setCollageItemStyles:function k(l){this._currentStyles=l;this.setState({currentStyles:l});this.forceUpdate()},_getCollageItemVelocities:function k(){return this._currentVelocities},_setCollageItemVelocities:function k(l){this._currentVelocities=l},_getCollageItemDestinations:function k(){return this._targetLocations},_getCollageItemDragPoints:function k(){return this._dragPoints},_updateVarsFromProps:function k(l){__p&&__p();if(!this._animationController)this._animationController=new(c("ReactComposerCollageAnimationController"))(function(){return this._getCollageItemStyles()}.bind(this),function(n){return this._setCollageItemStyles(n)}.bind(this),function(){return this._getCollageItemVelocities()}.bind(this),function(n){return this._setCollageItemVelocities(n)}.bind(this),function(){return this._getCollageItemDestinations()}.bind(this),function(){return this._getCollageItemDragPoints()}.bind(this));this._width=l.containerWidth*l.scaleFactor-10;var m=l.mediaUploads.filter(function(n){return!!n.width&&!!n.height});this._onNewOrderedUploads(m)},_onNewOrderedUploads:function k(l){this._orderedUploads=l;this._recomputeStyles()},_recomputeStyles:function k(){__p&&__p();var l,m=this;if(this._orderedUploads.size>0)(function(){__p&&__p();var n=[];if(m._orderedUploads.size===1){m._layoutConfig=null;n=c("ReactComposerCollageUtils").getSingleItemStyleInfo(m._orderedUploads.first(),m._width)}else{m._layoutConfig=c("ReactComposerCollageUtils").getCollageLayoutConfig(m._orderedUploads,m._width);n=m._layoutConfig.getItemStyleInfos()}var o=new(c("Map"))(),p=m._currentStyles,q=false;m._orderedUploads.forEach(function(r,s){var t=n[s],u={centerX:t.left+t.width/2,centerY:t.top+t.height/2,width:t.width,height:t.height,dragEffectPercent:this._dragPoints.get(r.id)?100:0};o.set(r.id,u);if(!p.get(r.id)){var v=babelHelpers["extends"]({},u,{width:0,height:0});p.set(r.id,v);q=true}}.bind(m));m._targetLocations=o;if(q)m._setCollageItemStyles(p);m._animationController&&m._animationController.startAnimating()})();else{this._layoutConfig=null;this._targetLocations=new(c("Map"))();this._currentVelocities=new(c("Map"))()}},render:function k(){if(!this._orderedUploads||!this._orderedUploads.size)return null;var l=0;if(this._layoutConfig)l=this._layoutConfig.getCalculatedHeight();else this.state.currentStyles.forEach(function(m){l=m.height});return c("React").createElement(c("ReactComposerCollage.react"),{styleInfos:this.state.currentStyles,mediaUploads:this._orderedUploads,enableFaceboxTagger:this.props.enableFaceboxTagger,enablePhotoEditing:this.props.enablePhotoEditing,productTaggerType:this.props.productTaggerType,onGrab:this._onGrab,onDrag:this._onDrag,onDrop:this._onDrop,width:this._width,height:l,scaleFactor:this.props.scaleFactor,onRemoveItem:function(m){return this._onRemoveItem(m)}.bind(this)})},_onGrab:function k(l,m){if(this._orderedUploads.size<2)return;var n=c("Vector").getElementPosition(c("ReactDOM").findDOMNode(this)),o=m.sub(n);this._dragPoints.set(l,o);this._recomputeStyles();var p=new(c("VelocityTracker"))();p.update(o.x,o.y);this._velocityTrackers.set(l,p)},_onRemoveItem:function k(l){this._currentStyles["delete"](l);this._currentVelocities["delete"](l);this._dragPoints["delete"](l)},_onDrag:function k(l,m,n){__p&&__p();if(this._orderedUploads.size<2)return;var o=this._currentStyles,p=babelHelpers["extends"]({},o.get(l));p.centerX+=n.x;p.centerY+=n.y;o.set(l,p);this._setCollageItemStyles(o);var q=c("Vector").getElementPosition(c("ReactDOM").findDOMNode(this)),r=m.sub(q);this._dragPoints.set(l,r);var s=this._velocityTrackers.get(l);s&&s.update(r.x,r.y);var t=this._orderedUploads;if(!t)return;if(!this._allowLayoutChanges){var u=true;this._dragPoints.forEach(function(y,z){if(!y)return;var A=t.findIndex(function(D){return D.id===z}),B=o.get(z);if(!B)return;var C=this._getCollageIndex(t,B.centerX,B.centerY);if(C!==A)u=false}.bind(this));if(u)this._allowLayoutChanges=true;else return}var v=t.findIndex(function(y){return y.id===l}),w=this._getCollageIndex(t,p.centerX,p.centerY);if(w!==0&&!w)return;if(v==w&&v>=0&&w>=0)return;var x=t.splice(v,1,t.get(w)).splice(w,1,t.get(v));this._allowLayoutChanges=false;this._onNewOrderedUploads(x)},_onDrop:function k(l,m){__p&&__p();if(this._orderedUploads.size<2)return;this._dragPoints.set(l,null);this._recomputeStyles();var n=this._velocityTrackers.get(l);this._velocityTrackers.set(l,null);var o=this._currentVelocities.get(l);if(o){o.centerX=n?n.getVelocityX():0;o.centerY=n?n.getVelocityY():0;this._currentVelocities.set(l,o)}var p=this._orderedUploads;if(!p)return;var q=p.map(function(r){return r.id});c("ReactComposerMediaUploadActions").reorderMedias(this.context.composerID,q)},_getCollageIndex:function k(l,m,n){var o=c("ReactComposerCollageUtils").getCollageLayoutConfig(l,this._width);return o&&o.getIndexForPoint(m,n)}});f.exports=j}),null);
__d("ReactComposerCollagePlusButton.react",["cx","fbt","Link.react","React","ReactComposerAttachmentType","ReactComposerConfig","ReactComposerLoggingName","ReactComposerMediaFilePickerController.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.prototype.render=function(){var n=this.props.composerConfig.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];return c("React").createElement(c("ReactComposerMediaFilePickerController.react"),{containerClassName:"_kqb",loggingName:c("ReactComposerLoggingName").MEDIA_COLLAGE_PLUS_BUTTON,disableFaceRecognition:!this.props.enableFaceboxTagger,mediaAcceptParam:this.props.composerConfig.mediaAcceptParam,mediaConfig:n,photoLimit:n.photoLimit,targetData:this.props.composerConfig.targetData},c("React").createElement(c("Link.react"),null,c("React").createElement("span",{className:"_kqk"}),i._("Add more photos \/ videos")))};function m(){j.apply(this,arguments)}m.propTypes={composerConfig:c("ReactComposerConfig").isRequired,enableFaceboxTagger:l.bool};f.exports=m}),null);
__d("ReactComposerInstantMediaAttachmentSelector.react",["fbt","ix","ComposerTargetData","React","ReactComponentWithPureRenderMixin","ReactComposerAttachmentSelectorContainer.react","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerLoggingName"],(function a(b,c,d,e,f,g,h,i){var j=c("React").PropTypes,k=c("React").createClass({displayName:"ReactComposerInstantMediaAttachmentSelector",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{targetData:j.instanceOf(c("ComposerTargetData")).isRequired,icon:j.object},render:function l(){var m=h._("Photo\/Video");return c("React").createElement(c("ReactComposerAttachmentSelectorContainer.react"),{attachmentID:c("ReactComposerAttachmentType").MEDIA,label:m,icon:this.props.icon||i("40533"),"data-testid":"media-attachment-selector",loggingName:c("ReactComposerLoggingName").MEDIA_TAB_SELECTOR,disableSelectAttachment:true})}});f.exports=k}),null);
__d("ReactComposerInstantMediaAttachmentSelectorContainer.react",["cx","ComposerTargetData","React","ReactComposerInstantMediaAttachmentSelector.react","ReactComposerLoggingName","ReactComposerMediaFilePickerController.react"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){"use strict";return c("React").createElement(c("ReactComposerMediaFilePickerController.react"),babelHelpers["extends"]({},this.props,{loggingName:c("ReactComposerLoggingName").MEDIA_TAB_SELECTOR,containerClassName:"_yt4"}),c("React").createElement(c("ReactComposerInstantMediaAttachmentSelector.react"),babelHelpers["extends"]({},this.props,{targetData:this.props.targetData,"data-testid":"instant-media-attachment-selector"})))};function l(){"use strict";i.apply(this,arguments)}l.propTypes={disableFaceRecognition:k.bool.isRequired,mediaAcceptParam:k.shape({photos:k.string,both:k.string}).isRequired,photoLimit:k.number.isRequired,targetData:k.instanceOf(c("ComposerTargetData")).isRequired,icon:k.object,mediaConfig:k.object.isRequired};l.defaultProps={disableFaceRecognition:false};f.exports=l}),null);
__d("ReactComposerCrossPostToInstagramRow.react",["cx","fbt","FBToggleSwitch.react","LeftFillRightFitLayout.react","PagesComposerActions","React","XUICardSection.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.$ReactComposerCrossPostToInstagramRow1=function(r){c("PagesComposerActions").setInstagramCrossPosting(this.props.composerID,r)}.bind(this),n}l.prototype.render=function(){return c("React").createElement(c("XUICardSection.react"),{className:"_1nth"},c("React").createElement(c("LeftFillRightFitLayout.react"),null,c("React").createElement("div",null,c("React").createElement("div",{className:"_1nti"}),c("React").createElement("div",{className:"_1ntj"},i._("Post this photo to Instagram?"))),c("React").createElement("div",{className:"_1ntk"},c("React").createElement(c("FBToggleSwitch.react"),{onToggle:this.$ReactComposerCrossPostToInstagramRow1}))))};f.exports=l}),null);
__d("ReactComposerMediaAttachmentButtons.react",["cx","fbt","ComposerTargetData","DOMContainer.react","FileInput.react","Grid.react","ReactComposerContextTypes","ReactComposerLoggingActions","ReactComposerLoggingName","ReactComposerMediaUtils","Link.react","ReactComponentWithPureRenderMixin","React","VideoUploadConfig"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("Grid.react").GridItem,k=c("React").PropTypes,l=c("React").createClass({displayName:"ReactComposerMediaAttachmentButtons",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{createAlbumLink:k.any,mediaAcceptParam:k.shape({photos:k.string,both:k.string}).isRequired,onFilesSelected:k.func.isRequired,showUploadPhotosButton:k.bool,targetData:k.instanceOf(c("ComposerTargetData")).isRequired},getDefaultProps:function m(){return{mediaAcceptParam:{}}},getInitialState:function m(){return{createAlbumLink:null}},componentDidMount:function m(){var n=c("React").createElement(c("DOMContainer.react"),{className:"_3mc1",display:"block"},this.props.createAlbumLink);this.setState({createAlbumLink:n})},render:function m(){var n=[];n.push(this._getUploadPhotosButton());if(this.state.createAlbumLink)n.push(c("React").createElement(j,{className:"_4l9a",key:"createAlbum"},c("React").createElement(c("Link.react"),{className:"_2709"},this.state.createAlbumLink)));return c("React").createElement("div",{className:"_4l99"},c("React").createElement(c("Grid.react"),{className:"_2707",cols:n.length},n.filter(function(o){return o!=null})))},_getUploadPhotosButton:function m(){if(!this.props.showUploadPhotosButton)return null;var n=this.props.targetData.targetSupportsMultiplePhotos,o=this.props.mediaAcceptParam.both,p=void 0,q=c("VideoUploadConfig").allowMultimedia&&this.props.targetData.targetSupportsMultiMedia;if(n)if(q)p=i._("Upload Photos\/Videos");else p=i._("Upload Photos\/Video");else p=i._("Upload Photo\/Video");return c("React").createElement(j,{className:"_4l9a",key:"uploadPhoto"},c("React").createElement(c("FileInput.react"),{accept:o,multiple:n,name:"composer_photo",onChange:this._onFilesSelected,onClick:this._onUploadPhotosClick,ref:"fileInput","data-testid":"media-attachment-add-photo"},c("React").createElement(c("Link.react"),{className:"_2709"},c("React").createElement("div",{className:"_270a"},p))))},_onUploadPhotosClick:function m(){c("ReactComposerLoggingActions").mediaUploadInputClicked(this.context.composerID,c("ReactComposerLoggingName").MEDIA_ATTACHMENT_UPLOAD_BUTTON)},_onFilesSelected:function m(event){this.props.onFilesSelected(event,this.refs.fileInput.getFileInput());c("ReactComposerMediaUtils").clearInput(this.refs.fileInput.getFileInput())}});f.exports=l}),null);
__d("ReactComposerFailedMediaUpload.react",["cx","fbt","React","XUIButton.react","XUICloseButton.react","XUIContextualDialog.react","XUIContextualDialogTitle.react","XUIContextualDialogBody.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.render=function(){var n=this.props.error["transient"]?c("React").createElement(c("XUIButton.react"),{className:"_4_e",label:i._("Retry"),onClick:this.props.onRetryClick,size:"small",use:"special"}):c("React").createElement(c("XUIButton.react"),{className:"_4_f",label:i._("Okay"),onClick:this.props.onDismissClick,size:"small"});return c("React").createElement("span",null,c("React").createElement("div",{ref:function(o){return this.$ReactComposerFailedMediaUpload1=o}.bind(this),className:"_4_g"},c("React").createElement(c("XUICloseButton.react"),{className:"_2n25",onClick:this.props.onRemoveClick,size:"medium",shade:"light"}),c("React").createElement("p",{className:"_4_h"},i._("Error")),c("React").createElement("div",{className:"_4_i"},c("React").createElement("p",{className:"_4_j"},this.props.filename)),n),c("React").createElement(c("XUIContextualDialog.react"),{contextRef:function(){return this.$ReactComposerFailedMediaUpload1}.bind(this),hoverContextRef:function(){return this.$ReactComposerFailedMediaUpload1}.bind(this),width:c("XUIContextualDialog.react").WIDTH.NORMAL,position:"right"},c("React").createElement(c("XUIContextualDialogTitle.react"),null,this.props.error.summary),c("React").createElement(c("XUIContextualDialogBody.react"),null,c("React").createElement("div",{dangerouslySetInnerHTML:{__html:this.props.error.description}}))))};function m(){j.apply(this,arguments)}m.propTypes={error:l.object.isRequired,filename:l.string,onDismissClick:l.func,onRemoveClick:l.func,onRetryClick:l.func,uploadID:l.string.isRequired};f.exports=m}),null);
__d("ReactComposerFailedPhotoUploadContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerFailedMediaUpload.react","ReactComposerMediaUploadActions","ReactComposerMediaUploadActionType","ReactComposerMediaUploadStore","ReactComposerPhotoUploader"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerPhotoUploadPlaceholderContainer",_uploader:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{mediaConfig:h.object.isRequired},render:function j(){return c("React").createElement(c("ReactComposerFailedMediaUpload.react"),babelHelpers["extends"]({},this.props,{onDismissClick:this._onDismissClick,onRemoveClick:this._onDismissClick,onRetryClick:this._onRetryClick}))},_onDismissClick:function j(){c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID)},_onRetryClick:function j(){var k=c("ReactComposerMediaUploadStore").getMediaUpload(this.context.composerID,this.props.uploadID).fileUpload.getFile();k.manuallyRetried=true;c("ReactComposerMediaUploadActions").retryMediaUpload(this.context.composerID,c("ReactComposerMediaUploadActionType").PHOTO_UPLOAD_RETRY);if(!this._uploader)this._uploader=new(c("ReactComposerPhotoUploader"))(this.context,this.props.mediaConfig.photoLimit,{disableFaceRecognition:this.props.mediaConfig.disableFaceboxTagger});this._uploader&&this._uploader.retry(k)}});f.exports=i}),null);
__d("ReactComposerFailedVideoXUploadContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerFailedMediaUpload.react","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerMediaUtils"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerFailedVideoXUploadContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{error:h.object.isRequired,filename:h.string,uploadID:h.string.isRequired},render:function j(){return c("React").createElement(c("ReactComposerFailedMediaUpload.react"),babelHelpers["extends"]({},this.props,{onDismissClick:this._onDismissClick,onRemoveClick:this._onDismissClick,onRetryClick:this._onRetryClick}))},_onDismissClick:function j(){c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID)},_onRetryClick:function j(){var k=c("ReactComposerMediaUploadStore").getMediaUpload(this.context.composerID,this.props.uploadID).fileUpload;k.manuallyRetried=true;var l=c("ReactComposerMediaUtils").getVideoXUploader(this.context.composerID);l.uploadVideo(k)}});f.exports=i}),null);
__d("ComposerNUXType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CAMERA_NUX:"camera_nux_seen",ADD_MORE_NUX:"add_more_nux_seen",OGCOMPOSER_NUX:"ogcomposer_nux_seen",FACEREC_SUGGESTIONS_NUX:"facerec_suggestions_nux_seen",TAGGING_FLYOUT_NUX:"tagging_flyout_nux_seen",SHARER_MINUTIAE_NUX:"sharer_minutiae_nux_seen",ADD_STICKERS_NUX:"add_stickers_nux_seen",UPCOMING_BIRTHDAYS_NUX:"upcoming_birthdays_nux_seen",CROSS_POST_NUX:"cross_post_nux_seen",SLIDESHOW_NUX:"slideshow_nux_seen"})}),null);
__d("ReactComposerNUXActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({NUX_WAS_SHOWN:null,NUX_WAS_SEEN:null,NUX_WAS_HIDDEN:null},"ReactComposerNUXActionType")}),null);
__d("ReactComposerNUXStore",["AsyncRequest","CommerceSelfServeNUXType","Map","ReactComposerNUXActionType","ReactComposerStoreBase","SimpleNUXMessageTypes"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{nuxes:new(c("Map"))()}},function(l){switch(l.type){case c("ReactComposerNUXActionType").NUX_WAS_SHOWN:k&&k.$ReactComposerNUXStore1(l);break;case c("ReactComposerNUXActionType").NUX_WAS_SEEN:k&&k.$ReactComposerNUXStore2(l);break;case c("ReactComposerNUXActionType").NUX_WAS_HIDDEN:k&&k.$ReactComposerNUXStore3(l);break}});k=this}j.prototype.hasNUXBeenSeen=function(k,l){"use strict";return this.$ReactComposerNUXStore4(k,l).seen};j.prototype.getNUXShownPhotoID=function(k,l){"use strict";return this.$ReactComposerNUXStore4(k,l).photoID};j.prototype.$ReactComposerNUXStore1=function(k){"use strict";var l=this.validateAction(k,["composerID","nuxType","photoID"]),m=l[0],n=l[1],o=l[2],p=this.$ReactComposerNUXStore4(m,n);p.photoID=o;this.emitChange(m)};j.prototype.$ReactComposerNUXStore2=function(k){"use strict";var l=this.validateAction(k,["composerID","nuxType"]),m=l[0],n=l[1],o=this.$ReactComposerNUXStore4(m,n);o.seen=true;if(n!==c("CommerceSelfServeNUXType").COMPOSER_PRODUCT_PHOTO_TAGGER_BUTTON&&n!==c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX)new(c("AsyncRequest"))("/ajax/photos/composer/mark_nux_seen.php").setData({type:n}).send();this.emitChange(m)};j.prototype.$ReactComposerNUXStore3=function(k){"use strict";var l=this.validateAction(k,["composerID","nuxType"]),m=l[0],n=l[1],o=this.$ReactComposerNUXStore4(m,n);o.photoID=null;this.emitChange(m)};j.prototype.$ReactComposerNUXStore4=function(k,l){"use strict";var m=this.getComposerData(k),n=m.nuxes.get(l);if(!n){n={seen:false,photoID:null};m.nuxes.set(l,n)}return n};f.exports=new j()}),null);
__d("ReactComposerNUXActions",["ReactComposerDispatcher","ReactComposerNUXActionType","ReactComposerNUXStore"],(function a(b,c,d,e,f,g){c("ReactComposerNUXStore");var h={nuxWasShown:function i(j,k,l){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerNUXActionType").NUX_WAS_SHOWN,nuxType:k,photoID:l})},nuxWasSeen:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerNUXActionType").NUX_WAS_SEEN,nuxType:k})},nuxWasHidden:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerNUXActionType").NUX_WAS_HIDDEN,nuxType:k})}};f.exports=h}),null);
__d("ReactComposerPhotoThumbnail.react",["Image.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(i){if(i.bgURL){var j={backgroundImage:"url("+i.bgURL+")"};return c("React").createElement("div",{className:i.bgClassName,style:j})}else if(i.imgSrc)return c("React").createElement(c("Image.react"),{alt:i.alt,className:i.imgClassName,src:i.imgSrc,style:i.style,width:i.width,height:i.height});return null};f.exports=h}),null);
__d("ReactComposerPhoto.react",["cx","fbt","ix","CommerceProductTaggerType","Image.react","ImageBlock.react","immutable","LoadingIndicator.react","React","ReactComposerContextTypes","ReactComposerMediaConfig","ReactComposerPhotoTagger.react","ReactComposerPhotoThumbnail.react","ReactComposerStore","FluxContainer","ReactFragment","XUIAmbientNUX.react","XUICloseButton.react","XUIContextualDialog.react","XUIContextualDialogBody.react","XUIText.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l;k=babelHelpers.inherits(m,c("React").PureComponent);l=k&&k.prototype;m.getStores=function(){return[c("ReactComposerStore")]};m.calculateState=function(n,o){return{posting:c("ReactComposerStore").isPosting(n)}};m.prototype.$ReactComposerPhoto1=function(){var n=this.context.gks.local_image_display?this.props.fileURL:null;return c("React").createElement(c("ReactComposerPhotoThumbnail.react"),{bgClassName:"_1a__",bgURL:n,height:c("ReactComposerMediaConfig").photo.thumbHeight,imgSrc:this.props.thumbSrc,width:c("ReactComposerMediaConfig").photo.thumbWidth,alt:this.props.label})};m.prototype.render=function(){var n={width:c("ReactComposerMediaConfig").photo.thumbWidth,height:c("ReactComposerMediaConfig").photo.thumbHeight},o=this.props.isRecognizingFaceboxes||this.props.isLoadingPhotoEdit?c("React").createElement("div",{className:"_jff"},c("React").createElement(c("LoadingIndicator.react"),{className:"_jfg",size:"small",color:"white"})):null,p=this.props.showProductTaggerNux?"_jfc"+(this.props.isRecognizingFaceboxes?" _jfd":"")+" _43p_":"_jfc"+(this.props.isRecognizingFaceboxes?" _jfd":""),q=void 0,r=void 0;if(!this.state.posting){q=c("React").createElement(c("XUICloseButton.react"),{className:"_jfe",onClick:this.props.onRemoveButtonClicked,size:"medium",shade:"light"});r=c("React").createElement(c("ReactComposerPhotoTagger.react"),{canTagFromModal:this.props.canTagFromModal,draggingPhotos:this.props.draggingPhotos,enableFaceboxTagger:this.props.enableFaceboxTagger,productTaggerType:this.props.productTaggerType,disablePhotoEditing:this.props.disablePhotoEditing,faceboxes:this.props.faceboxes,onEditClick:this.props.onEditClick,onHideProductTaggerNux:this.props.onHideProductTaggerNux,onTagIntent:this.props.onTagIntent,onTagAdded:this.props.onTagAdded,onTagRemoved:this.props.onTagRemoved,originalID:this.props.originalID,photoID:this.props.photoID,shown:this.props.showPhotoTagger,showProductTaggerNux:this.props.showProductTaggerNux})}return c("React").createElement("span",null,c("React").createElement("div",{ref:"root",className:p,style:n},this.$ReactComposerPhoto1(),this.props.disableRemovePhotos?null:q,o,r),this.renderLayers())};m.prototype.renderLayers=function(){return c("ReactFragment").create({taggingNUX:this.props.enableFaceboxTagger?this.$ReactComposerPhoto2():null,stickersNUX:this.props.disablePhotoEditing?null:this.$ReactComposerPhoto3()})};m.prototype.$ReactComposerPhoto2=function(){return c("React").createElement(c("XUIContextualDialog.react"),{contextRef:function(){return this.refs.root}.bind(this),position:"below",alignment:"left",shown:this.props.showTaggingNUX,width:300},c("React").createElement(c("XUIContextualDialogBody.react"),null,c("React").createElement(c("XUICloseButton.react"),{className:"rfloat",onClick:this.props.onTaggingNUXClose}),c("React").createElement("div",null,c("React").createElement(c("XUIText.react"),{weight:"bold",display:"block"},i._("Now It's Easier to Tag Photos.")),i._("Click photos with a {tagging_badge_icon} to review tag suggestions or add, edit, and remove tags. When you post the photo, your tags will be applied.",[i.param("tagging_badge_icon",c("React").createElement(c("Image.react"),{className:"_2z-r",src:j("95679")}))]))))};m.prototype.$ReactComposerPhoto3=function(){return c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"right",contextRef:function(){return this.refs.root}.bind(this),onCloseButtonClick:this.props.onStickersNUXClose,position:"below",shown:this.props.showStickersNUX},c("React").createElement(c("ImageBlock.react"),{spacing:"medium"},c("React").createElement(c("Image.react"),{src:j("95645")}),c("React").createElement("div",{className:"_21ft"},c("React").createElement("div",{className:"_21fs"},i._("New! Add Stickers!")),i._("You can now add stickers to your photos"))))};function m(){k.apply(this,arguments)}m.defaultProps={enableFaceboxTagger:true,productTaggerType:c("CommerceProductTaggerType").NONE,disablePhotoEditing:false};m.contextTypes=c("ReactComposerContextTypes");f.exports=f.exports=c("FluxContainer").create(m,{withContext:true,withProps:true})}),null);
__d("ReactComposerPhotoContainer.react",["cx","BootloadedComponent.react","CommerceSelfServeNUXType","ComposerNUXType","FluxContainer","immutable","JSResource","LoadingIndicator.react","React","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerNUXActions","ReactComposerNUXStore","ReactComposerPhoto.react","ReactComposerPhotoActions","ReactComposerPhotoStore","ReactDOM"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(){__p&&__p();var l;(l=j.constructor).call.apply(l,[this].concat(Array.prototype.slice.call(arguments)));this.$ReactComposerPhotoContainer7=function(){this.$ReactComposerPhotoContainer9()}.bind(this);this.$ReactComposerPhotoContainer6=function(){if(this.props.photoID)c("ReactComposerPhotoActions").removePhoto(this.context.composerID,this.props.photoID,this.props.uploadID);else c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID)}.bind(this);this.$ReactComposerPhotoContainer9=function(){c("ReactComposerNUXActions").nuxWasSeen(this.context.composerID,c("ComposerNUXType").ADD_STICKERS_NUX)}.bind(this);this.$ReactComposerPhotoContainer10=function(m,n,o){if(!(this.state.isSpherical||this.props.sphericalPhotoID)&&this.props.photoID)c("ReactComposerPhotoActions").tagFacebox(this.context.composerID,this.props.photoID,m,n,o)}.bind(this);this.$ReactComposerPhotoContainer1=function(){c("ReactComposerNUXActions").nuxWasSeen(this.context.composerID,c("ComposerNUXType").TAGGING_FLYOUT_NUX)}.bind(this);this.$ReactComposerPhotoContainer11=function(){if(this.state.showTaggingNUX)this.$ReactComposerPhotoContainer1()}.bind(this);this.$ReactComposerPhotoContainer12=function(m,n){if(!(this.state.isSpherical||this.props.sphericalPhotoID)&&this.props.photoID)c("ReactComposerPhotoActions").untagFacebox(this.context.composerID,this.props.photoID,m,n)}.bind(this);this.$ReactComposerPhotoContainer8=function(){c("ReactComposerNUXActions").nuxWasSeen(this.context.composerID,c("CommerceSelfServeNUXType").COMPOSER_PRODUCT_PHOTO_TAGGER_BUTTON)}.bind(this);this.beforeCalculateInitialState(this.context.composerID,this.props);this.state=k.calculateState(this.state,this.props,this.context);this.$ReactComposerPhotoContainer1=this.$ReactComposerPhotoContainer1.bind(this)}k.getStores=function(){return[c("ReactComposerNUXStore"),c("ReactComposerPhotoStore")]};k.prototype.beforeCalculateInitialState=function(l,m){__p&&__p();if(m.photoID){var n=c("ReactComposerPhotoStore").getPhoto(l,m.photoID);if(n){var o=k.$ReactComposerPhotoContainer2(l,n,m.nuxConfig,m.index),p=!o&&k.$ReactComposerPhotoContainer3(l,n,m.nuxConfig,m.index);if(o)c("ReactComposerNUXActions").nuxWasShown(l,c("ComposerNUXType").ADD_STICKERS_NUX,n.id);if(p)c("ReactComposerNUXActions").nuxWasShown(l,c("ComposerNUXType").TAGGING_FLYOUT_NUX,n.id)}}};k.calculateState=function(l,m,n){var o=n.composerID;if(m.photoID){var p=c("ReactComposerPhotoStore").getPhoto(o,m.photoID);if(p){var q=this.$ReactComposerPhotoContainer2(o,p,m.nuxConfig,m.index),r=!q&&this.$ReactComposerPhotoContainer3(o,p,m.nuxConfig,m.index),s=c("ReactComposerPhotoStore").getPhotoBeingTagged(o)===m.photoID,t=m.showProductTaggerNux===true&&this.$ReactComposerPhotoContainer4(o);return{faceboxes:p.faceboxes,isLoadingPhotoEdit:p.isLoadingPhotoEdit,isRecognizingFaceboxes:p.isRecognizingFaceboxes,isSpherical:Boolean(p.cubestripURI),showPhotoTagger:s,showProductTaggerNux:t,showStickersNUX:q,showTaggingNUX:r,thumbSrc:p.thumbSrc}}}return{faceboxes:c("immutable").Map(),isLoadingPhotoEdit:false,isRecognizingFaceboxes:false,isSpherical:m.isSpherical,showPhotoTagger:false,showProductTaggerNux:!!m.showProductTaggerNux,showStickersNUX:false,showTaggingNUX:false,thumbSrc:""}};k.$ReactComposerPhotoContainer5=function(l,m,n,o,p){var q=c("ReactComposerNUXStore").getNUXShownPhotoID(l,o),r=c("ReactComposerNUXStore").hasNUXBeenSeen(l,o);return!!n[o]&&!r&&(!q||q===m.id)&&p===0};k.$ReactComposerPhotoContainer2=function(l,m,n,o){return this.$ReactComposerPhotoContainer5(l,m,n,c("ComposerNUXType").ADD_STICKERS_NUX,o)};k.$ReactComposerPhotoContainer3=function(l,m,n,o){return this.$ReactComposerPhotoContainer5(l,m,n,c("ComposerNUXType").TAGGING_FLYOUT_NUX,o)&&m.faceboxes.size>0};k.$ReactComposerPhotoContainer4=function(l){return!c("ReactComposerNUXStore").hasNUXBeenSeen(l,c("CommerceSelfServeNUXType").COMPOSER_PRODUCT_PHOTO_TAGGER_BUTTON)};k.prototype.componentDidMount=function(){setTimeout(function(){var l=this.props.dragHandler;l&&l.add(c("ReactDOM").findDOMNode(this.refs.container))}.bind(this),0)};k.prototype.componentWillUnmount=function(){setTimeout(function(){var l=this.props.dragHandler;l&&l.remove(c("ReactDOM").findDOMNode(this.refs.container))}.bind(this),0)};k.prototype.render=function(){if(this.state.isSpherical||this.props.sphericalPhotoID){var l=c("React").createElement("div",{className:"_30t9"},c("React").createElement(c("LoadingIndicator.react"),{className:"_4qlq",size:"small",color:"white"}));return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerSphericalPhoto.react").__setRef("ReactComposerPhotoContainer.react"),bootloadPlaceholder:l,className:"_4j47 _jfc",showEditButton:true,fileURL:this.props.fileURL,alt:this.props.label,onRemoveButtonClicked:this.$ReactComposerPhotoContainer6,photoID:this.props.photoID,sphericalPhotoID:this.props.sphericalPhotoID,thumbSrc:this.state.thumbSrc,uploadID:this.props.uploadID,sphericalImage:this.props.sphericalImage,useLocalSphericalImage:this.props.useLocalSphericalImage,ref:"container"})}else return c("React").createElement(c("ReactComposerPhoto.react"),babelHelpers["extends"]({},this.props,this.state,{onEditClick:this.$ReactComposerPhotoContainer7,onHideProductTaggerNux:this.$ReactComposerPhotoContainer8,onRemoveButtonClicked:this.$ReactComposerPhotoContainer6,onStickersNUXClose:this.$ReactComposerPhotoContainer9,onTagAdded:this.$ReactComposerPhotoContainer10,onTagIntent:this.$ReactComposerPhotoContainer11,onTaggingNUXClose:this.$ReactComposerPhotoContainer1,onTagRemoved:this.$ReactComposerPhotoContainer12,ref:"container"}))};k.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(k,{withContext:true,withProps:true})}),null);
__d("ReactComposerPhotoUploadPlaceholder.react",["cx","ix","CircularProgressBar.react","Image.react","LoadingIndicator.react","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerPhotoUploadState","XUICloseButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("React").PropTypes,k=c("React").createClass({displayName:"ReactComposerPhotoUploadPlaceholder",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{onRemoveButtonClicked:j.func.isRequired,uploadID:j.string.isRequired,uploadState:j.oneOf(Object.keys(c("ReactComposerPhotoUploadState"))).isRequired,uploadProgress:j.number,isSpherical:j.bool,fileURL:j.string},render:function l(){__p&&__p();var m=null,n=null,o=this.props.uploadState,p=o===c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_RESIZE_STARTED,q=o===c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_UPLOADING;if((p||q)&&!this.props.isDocument){var r="_1b01"+(p?" _1b02":"")+(q?" _1b03":"");m=c("React").createElement(c("CircularProgressBar.react"),{percentComplete:this.props.uploadProgress,className:r})}else n=c("React").createElement(c("LoadingIndicator.react"),{className:"_1b00",color:"white",size:"medium"});var s=void 0;if(this.props.isSpherical)s=c("React").createElement(c("Image.react"),{className:"_1az2",src:i("95829"),alt:"360 Photo"});var t={};if(this.context.gks.local_image_display&&this.props.fileURL)t={backgroundImage:"url("+this.props.fileURL+")"};return c("React").createElement("div",{className:"_50_c _1a__",style:t},c("React").createElement(c("XUICloseButton.react"),{className:"_1b04",onClick:this.props.onRemoveButtonClicked,size:"medium",shade:"dark"}),s,m,n)}});f.exports=k}),null);
__d("ReactComposerPhotoUploadPlaceholderContainer.react",["DocumentUploadConfig","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerPhotoUploadPlaceholder.react","ReactComposerPropsAndStoreBasedStateMixin"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerPhotoUploadPlaceholderContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerMediaUploadStore"))],propTypes:{uploadID:h.string.isRequired},statics:{calculateState:function j(k,l){var m=c("ReactComposerMediaUploadStore").getMediaUpload(k,l.uploadID);return{uploadProgress:m.progress,uploadState:m.state,isSpherical:m.isSpherical,isDocument:m.fileUpload&&c("DocumentUploadConfig").isSupported(m.fileUpload.getFile().type)}}},render:function j(){return c("React").createElement(c("ReactComposerPhotoUploadPlaceholder.react"),babelHelpers["extends"]({},this.props,this.state,{onRemoveButtonClicked:this._onRemoveButtonClicked}))},_onRemoveButtonClicked:function j(){c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID)}});f.exports=i}),null);
__d("ProfileCustomVideoThumbnailEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({OPEN_EDIT_DIALOG:"open_edit_dialog",CLOSE_EDIT_DIALOG:"close_edit_dialog",CANCEL_EDITING:"cancel_editing",CANCEL_DISCARD:"cancel_discard",DISCARD_EDITING:"discard_editing",SAVE_EDITING:"save_editing",CHOOSE_SELECTED_THUMBNAIL:"choose_selected_thumbnail",ADD_CUSTOM_THUMBNAIL:"add_custom_thumbnail",ADD_TEXT_TO_THUMBNAIL:"add_text_to_thumbnail",CHANGE_SELECTED_THUMBNAIL:"change_selected_thumbnail",UPLOAD_WITH_CUSTOM_THUMBNAIL:"upload_with_custom_thumbnail",UPLOAD_WITH_GENERATED_THUMBNAIL:"upload_with_generated_thumbnail",UPLOAD_WITH_NO_THUMBNAIL:"upload_with_no_thumbnail",UPLOAD_THUMBNAIL_WITH_TEXT:"upload_thumbnail_with_text",RESIZE_TEXT_BOX:"resize_text_box",DRAG_TEXT_BOX:"drag_text_box",CHANGE_TEXT_FONT:"change_text_font",CHANGE_TEXT_ALIGNMENT:"change_text_alignment"})}),null);
__d("ReactComposerVideoXActionButton.react",["cx","React","Tooltip","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){var m=c("joinClasses")(this.props.className,"_sru");return c("React").createElement("button",babelHelpers["extends"]({className:m,onClick:this.props.onClick,"aria-label":this.props.tooltip},c("Tooltip").propsFor(this.props.tooltip)),c("React").createElement("div",{className:this.props.iconClassName}))};function l(){i.apply(this,arguments)}l.propTypes={tooltip:k.node,className:k.string,onClick:k.func,iconClassName:k.string};f.exports=l}),null);
__d("ReactComposerVideoXEditActionButton.react",["cx","fbt","ReactComposerVideoXActionButton.react","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").PureComponent);k=j&&j.prototype;m.prototype.render=function(){var n=i._("Edit Video");return c("React").createElement(c("ReactComposerVideoXActionButton.react"),{className:"_3x9-",iconClassName:"_3x9_",onClick:this.props.onClick,tooltip:n})};function m(){j.apply(this,arguments)}m.propTypes={onClick:l.func};f.exports=m}),null);
__d("ReactComposerVideoXEditDialogActionTypes",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirror")({SET_ACTIVE_TAB:null,UPDATE_GENERATED_THUMBNAILS:null,UPDATE_SELECTED_THUMBNAIL:null,UPDATE_CUSTOM_THUMBNAIL:null,UPDATE_SCRUBBED_THUMBNAIL:null,USE_SELECTED_THUMBNAIL:null,REMOVE_DIALOG_STATE:null,REVERT_THUMBNAIL_STATE:null,SAVE_THUMBNAIL_STATE:null,SHOW_DISCARD_DIALOG:null,HIDE_DISCARD_DIALOG:null,SHOW_DIALOG:null,HIDE_DIALOG:null,MOVE_TEXT_BOX:null,RESIZE_TEXT_BOX:null,UPDATE_THUMBNAIL_TEXT:null,SET_VIDEO_DIMENSIONS:null,SET_CUSTOM_THUMBNAIL_DIMENSIONS:null,SET_TEXT_COLOR:null,SET_TEXT_FONT:null,SET_TEXT_ALIGNMENT:null,SET_TEXT_SIZE:null});f.exports=h}),null);
__d("ReactComposerVideoXEditDialogActions",["ReactComposerDispatcher","ReactComposerVideoXEditDialogActionTypes","VideoThumbnail"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={setActiveTab:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").SET_ACTIVE_TAB,activeTab:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},updateGeneratedThumbnails:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").UPDATE_GENERATED_THUMBNAILS,generatedThumbnails:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},updateSelectedThumbnail:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").UPDATE_SELECTED_THUMBNAIL,selectedThumbnail:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},updateCustomThumbnail:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").UPDATE_CUSTOM_THUMBNAIL,customThumbnail:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},updateScrubbedThumbnail:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").UPDATE_SCRUBBED_THUMBNAIL,scrubbedThumbnail:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},useSelectedThumbnail:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").USE_SELECTED_THUMBNAIL,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},removeDialogState:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").REMOVE_DIALOG_STATE,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},saveThumbnailState:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").SAVE_THUMBNAIL_STATE,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},revertThumbnailState:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").REVERT_THUMBNAIL_STATE,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},hideDiscardDialog:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").HIDE_DISCARD_DIALOG,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},showDiscardDialog:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").SHOW_DISCARD_DIALOG,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},hideDialog:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").HIDE_DIALOG,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},showDialog:function i(j,k){var l={type:c("ReactComposerVideoXEditDialogActionTypes").SHOW_DIALOG,composerID:j,uploadID:k};c("ReactComposerDispatcher").dispatch(l)},moveTextBox:function i(j,k,l,m){var n={type:c("ReactComposerVideoXEditDialogActionTypes").MOVE_TEXT_BOX,textTop:j,textLeft:k,composerID:l,uploadID:m};c("ReactComposerDispatcher").dispatch(n)},resizeTextBox:function i(j,k,l,m){var n={type:c("ReactComposerVideoXEditDialogActionTypes").RESIZE_TEXT_BOX,textWidth:j,textHeight:k,composerID:l,uploadID:m};c("ReactComposerDispatcher").dispatch(n)},updateThumbnailText:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").UPDATE_THUMBNAIL_TEXT,thumbnailText:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},setVideoDimensions:function i(j,k,l,m){var n={type:c("ReactComposerVideoXEditDialogActionTypes").SET_VIDEO_DIMENSIONS,videoWidth:j,videoHeight:k,composerID:l,uploadID:m};c("ReactComposerDispatcher").dispatch(n)},setCustomThumbnailDimensions:function i(j,k,l,m){var n={type:c("ReactComposerVideoXEditDialogActionTypes").SET_CUSTOM_THUMBNAIL_DIMENSIONS,customThumbnailWidth:j,customThumbnailHeight:k,composerID:l,uploadID:m};c("ReactComposerDispatcher").dispatch(n)},setTextColor:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").SET_TEXT_COLOR,color:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},setTextFont:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").SET_TEXT_FONT,font:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},setTextAlignment:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").SET_TEXT_ALIGNMENT,alignment:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)},setTextSize:function i(j,k,l){var m={type:c("ReactComposerVideoXEditDialogActionTypes").SET_TEXT_SIZE,textSize:j,composerID:k,uploadID:l};c("ReactComposerDispatcher").dispatch(m)}};f.exports=h}),null);
__d("ReactComposerVideoX.react",["cx","ix","fbt","Image.react","BackgroundImage.react","React","ReactComposerMediaConfig","Tooltip.react","XUICloseButton.react","ReactComposerVideoXEditActionButton.react","ReactComposerVideoXEditDialogGatedModule","ReactComposerVideoXEditDialogActions","SimpleNUXMessage","SimpleNUXMessageTypes","XUIAmbientNUX.react","LineClamp.react","ReactComposerNUXActions","ProfileCustomVideoThumbnailTypedLogger","ProfileCustomVideoThumbnailEvent","DurationFormatter","asset"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactComposerVideoXEditDialogGatedModule").module,n=c("React").PropTypes;k=babelHelpers.inherits(o,c("React").PureComponent);l=k&&k.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$ReactComposerVideoX1=function(){c("ReactComposerVideoXEditDialogActions").showDialog(this.props.composerID,this.props.uploadID);new(c("ProfileCustomVideoThumbnailTypedLogger"))().setVideoID(this.props.videoID).setEvent(c("ProfileCustomVideoThumbnailEvent").OPEN_EDIT_DIALOG).log();c("ReactComposerVideoXEditDialogActions").saveThumbnailState(this.props.composerID,this.props.uploadID);if(this.props.showThumbnailNux)this.$ReactComposerVideoX2()}.bind(this),this.$ReactComposerVideoX2=function(){c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX);c("ReactComposerNUXActions").nuxWasSeen(this.props.composerID,c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX)}.bind(this),q}o.prototype.render=function(){__p&&__p();var p={width:c("ReactComposerMediaConfig").photo.thumbWidth,height:c("ReactComposerMediaConfig").photo.thumbHeight},q=void 0,r=void 0,s=void 0,t=void 0,u=void 0;if(!this.props.posting){q=c("React").createElement(c("XUICloseButton.react"),{className:"_1sju",onClick:this.props.onRemoveButtonClicked,size:"medium",shade:"light"});r=m?c("React").createElement(c("ReactComposerVideoXEditActionButton.react"),{onClick:this.$ReactComposerVideoX1,ref:"editButton"}):null;var v=this.props.uploadIndex>1?"left":"right";u=m?c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.editButton}.bind(this),position:v,width:"auto",shown:this.props.showThumbnailNux,onCloseButtonClick:this.$ReactComposerVideoX2,key:"ambientNUX"},j._("New! Choose a thumbnail that"),c("React").createElement("br",null),j._("shows what your video is about.")):null;s=m?c("React").createElement(m,{composerID:this.props.composerID,uploadID:this.props.uploadID,videoID:this.props.videoID,videoURL:this.props.videoURL,allowTextOnThumbnail:this.props.allowTextOnThumbnail}):null;t=m?c("React").createElement("div",{className:"_nai"}):null}var w=m||this.props.useThumbnailsRedesign?null:c("React").createElement("div",{className:"_2v_s"}),x=c("React").createElement(c("BackgroundImage.react"),{alt:this.props.label,src:this.props.thumbSrc,width:c("ReactComposerMediaConfig").photo.thumbWidth,height:c("ReactComposerMediaConfig").photo.thumbHeight,backgroundSize:this.props.usingPlaceholderThumbnail?"cover":"contain",className:!this.props.usingPlaceholderThumbnail?"_33by":""}),y=this.$ReactComposerVideoX3(),z="_1sjs"+(this.props.isRecognizingFaceboxes?" _1sjt":"")+(y!=null?" _225v":"");return c("React").createElement("div",{ref:"root",className:z,style:p},y?y:x,this.$ReactComposerVideoX4(),t,w,q,s,c("React").createElement("div",{className:"uiContextualLayerParent _1xob"},r,u))};o.prototype.$ReactComposerVideoX5=function(){return this.props.label.endsWith(".gif")};o.prototype.$ReactComposerVideoX3=function(){if(!this.props.useThumbnailsRedesign||!this.props.usingPlaceholderThumbnail)return null;var p=this.$ReactComposerVideoX5()?j._("Your GIF will show up after you post."):j._("Your video will show up after you post."),q=c("React").createElement("span",null,p,c("React").createElement("br",null),this.props.label);return c("React").createElement(c("Tooltip.react"),{position:"below",className:"_225-",display:"block",tooltip:q},c("React").createElement(c("LineClamp.react"),{lines:3,lineHeight:16,fitHeightToShorterText:true,className:"_2260"},this.props.label))};o.prototype.$ReactComposerVideoX4=function(){var p=this.props.isSpherical?c("React").createElement(c("Image.react"),{className:"_40p3",src:i("95829")}):null,q=null,r=null;if(this.props.useThumbnailsRedesign)if(this.props.duration==null)r=this.$ReactComposerVideoX5()?c("React").createElement(c("Image.react"),{className:"_m6t",src:i("441227")}):c("React").createElement(c("Image.react"),{className:"_2261",src:i("412727")});else{var s=c("DurationFormatter").formatShort(this.props.duration);q=c("React").createElement("span",{className:"_40p4"},s)}return c("React").createElement("div",{className:"_40p5"},q,r,p)};o.propTypes={label:n.string,onRemoveButtonClicked:n.func.isRequired,thumbSrc:n.string.isRequired,posting:n.bool.isRequired};f.exports=o}),null);
__d("VideoThumbnailDimensions",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({GENERATED_THUMBNAIL_HEIGHT:284,GENERATED_THUMBNAIL_WIDTH:465})}),null);
__d("ReactComposerVideoXContainer.react",["cx","EventListener","React","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStore","ReactComposerVideoX.react","ReactDOM","ReactComposerVideoXEditDialogActions","gkx","generateVideoThumbnails","ReactComposerNUXActions","ReactComposerNUXStore","SimpleNUXMessage","SimpleNUXMessageTypes","VideoThumbnailDimensions"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("React").PropTypes,j=100,k=100,l="/images/icons/timeline/placeholder/placeholder-movies.png",m=c("React").createClass({displayName:"ReactComposerVideoXContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerStore"),c("ReactComposerNUXStore"))],_loadedmetadataListener:null,propTypes:{dragHandler:i.shape({add:i.func.isRequired,remove:i.func.isRequired}),label:i.string,photoID:i.string.isRequired,uploadID:i.string.isRequired,fileURL:i.string.isRequired,isSpherical:i.bool,allowTextOnThumbnail:i.bool,metadata:i.object},statics:{calculateState:function n(o,p){var q=c("ReactComposerMediaUploadStore").getMediaUpload(o.toString(),p.uploadID),r=c("ReactComposerMediaUploadStore").getUploadIndex(o.toString(),p.uploadID),s=q&&q.thumbSrc?q.thumbSrc:l,t=c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX),u=c("ReactComposerNUXStore").getNUXShownPhotoID(o,c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX),v=!t&&(!u||u===p.photoID);if(v&&!u)c("ReactComposerNUXActions").nuxWasShown(o,c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX,p.photoID);return{posting:c("ReactComposerStore").isPosting(o),thumbSrc:s,showThumbnailNux:v,uploadIndex:r}}},componentDidMount:function n(){var o=c("ReactDOM").findDOMNode(this.refs.videoPlayer);if(this.state.thumbSrc===l)this._loadedmetadataListener=c("EventListener").listen(o,"loadedmetadata",this.generateVideoThumbnails);setTimeout(function(){var p=this.props.dragHandler;p&&p.add(c("ReactDOM").findDOMNode(this.refs.container))}.bind(this),0)},generateVideoThumbnails:function n(){var o=c("ReactDOM").findDOMNode(this.refs.videoPlayer);c("generateVideoThumbnails")(o,k,j,1).done(function(p){c("ReactComposerMediaUploadActions").setVideoThumbnail(this.context.composerID,this.props.uploadID,p.thumbnails[0].getURL())}.bind(this));c("generateVideoThumbnails")(o,c("VideoThumbnailDimensions").GENERATED_THUMBNAIL_WIDTH,c("VideoThumbnailDimensions").GENERATED_THUMBNAIL_HEIGHT,10,"contain").done(function(p){c("ReactComposerVideoXEditDialogActions").updateGeneratedThumbnails(p.thumbnails,this.context.composerID,this.props.uploadID)}.bind(this));if(o instanceof HTMLVideoElement)c("ReactComposerVideoXEditDialogActions").setVideoDimensions(o.videoWidth,o.videoHeight,this.context.composerID,this.props.uploadID)},componentWillUnmount:function n(){if(this._loadedmetadataListener){this._loadedmetadataListener.remove();this._loadedmetadataListener=null}setTimeout(function(){var o=this.props.dragHandler;o&&o.remove(c("ReactDOM").findDOMNode(this.refs.container))}.bind(this),0)},render:function n(){var o=c("gkx")("AT5AZFx8_OX7mR7GlexAPapFyT4DLbypbk9jGe7wuOc3Lkq4_RtKJMLGX67pDGc7JJBl3bC1AsULXsoI2mdB6vXpgqQwTbH-2CUtm5lbnkkzEA"),p=o&&this.props.metadata&&this.props.metadata.format&&this.props.metadata.format.duration!=null?Math.floor(this.props.metadata.format.duration):null;return c("React").createElement("div",null,c("React").createElement(c("ReactComposerVideoX.react"),{label:this.props.label,posting:this.state.posting,thumbSrc:this.state.thumbSrc,usingPlaceholderThumbnail:this.state.thumbSrc===l,onRemoveButtonClicked:this._onRemoveButtonClicked,composerID:this.context.composerID,uploadID:this.props.uploadID,uploadIndex:this.state.uploadIndex,isSpherical:this.props.isSpherical,videoID:this.props.photoID,showThumbnailNux:this.state.showThumbnailNux,videoURL:this.props.fileURL,allowTextOnThumbnail:this.props.allowTextOnThumbnail,useThumbnailsRedesign:o,duration:p,ref:"container"}),this._getVideoElement())},_getVideoElement:function n(){return c("React").createElement("video",{ref:"videoPlayer",className:"_2mpk",src:this.props.fileURL})},_onRemoveButtonClicked:function n(){c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID);c("ReactComposerVideoXEditDialogActions").removeDialogState(this.context.composerID,this.props.uploadID);var o=c("ReactComposerNUXStore").getNUXShownPhotoID(this.context.composerID,c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX);if(o==this.props.photoID)c("ReactComposerNUXActions").nuxWasHidden(this.context.composerID,c("SimpleNUXMessageTypes").CUSTOM_PROFILE_VIDEO_THUMBNAILS_NUX)}});f.exports=m}),null);
__d("ReactComposerVideoXUploadPlaceholder.react",["cx","CircularProgressBar.react","LoadingIndicator.react","ProgressBar.react","React","ReactComposerPhotoUploadState","XUICloseButton.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){__p&&__p();var m=null,n=null,o=null,p=this.props.uploadState,q=p===c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_UPLOADING,r=Math.max(1,parseInt(this.props.uploadProgress,10)),s=50*Math.log10(r),t=this.props.useProgressLinearity?this.props.useProgressLinearity:0;if(t>0)s-=(s-r)*t;if(this.props.useRealProgressPercentage)s=parseFloat(this.props.uploadProgress);if(q){var u="_5t36"+(q?" _5t3f":"");m=c("React").createElement(c("CircularProgressBar.react"),{percentComplete:s,className:u})}else{o=c("React").createElement(c("XUICloseButton.react"),{className:"_5t3o",onClick:this.props.onRemoveButtonClicked,size:"medium",shade:"dark"});n=c("React").createElement(c("LoadingIndicator.react"),{className:"_1b00",color:"white",size:"medium"})}return c("React").createElement("div",{className:"_5t3l"},o,m,n)};function l(){i.apply(this,arguments)}l.propTypes={onRemoveButtonClicked:k.func.isRequired,uploadID:k.string.isRequired,uploadState:k.oneOf(Object.keys(c("ReactComposerPhotoUploadState"))).isRequired,uploadProgress:k.number,canSeeCircularProgress:k.bool,useRealProgressPercentage:k.bool,useProgressLinearity:k.number};f.exports=l}),null);
__d("ReactComposerVideoXUploadPlaceholderContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerVideoXUploadPlaceholder.react"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerVideoXUploadPlaceholderContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerMediaUploadStore"))],propTypes:{uploadID:h.string.isRequired},statics:{calculateState:function j(k,l){var m=c("ReactComposerMediaUploadStore").getMediaUpload(k,l.uploadID);return{uploadProgress:m.progress,uploadState:m.state,useRealProgressPercentage:m.useRealProgressPercentage,useProgressLinearity:m.useProgressLinearity}}},render:function j(){return c("React").createElement(c("ReactComposerVideoXUploadPlaceholder.react"),babelHelpers["extends"]({},this.props,this.state,{onRemoveButtonClicked:this._onRemoveButtonClicked}))},_onRemoveButtonClicked:function j(){c("ReactComposerMediaUploadActions").removeMediaUpload(this.context.composerID,this.props.uploadID)}});f.exports=i}),null);
__d("ReactComposerDraggableMedia.react",["cx","fbt","Draggable","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerFailedPhotoUploadContainer.react","ReactComposerFailedVideoXUploadContainer.react","ReactComposerMediaUploadActions","ReactComposerMediaUploadType","ReactComposerPhotoActions","ReactComposerPhotoContainer.react","ReactComposerPhotoUploadPlaceholderContainer.react","ReactComposerPhotoUploadState","ReactComposerVideoXContainer.react","ReactComposerVideoXUploadPlaceholderContainer.react","ReactDOM","ReactLayeredComponentMixin_DEPRECATED","SimpleNUXMessage","SimpleNUXMessageTypes","Vector","XUIAmbientNUX.react","throttle"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("React").PropTypes,k=200,l=5,m=c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_DONE,n=c("React").createClass({displayName:"ReactComposerDraggableMedia",_draggable:undefined,_grabbed:undefined,_scrollParent:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactLayeredComponentMixin_DEPRECATED")],propTypes:{enableFaceboxTagger:j.bool,productTaggerType:j.string,disablePhotoEditing:j.bool,mediaConfig:j.object.isRequired,upload:j.object.isRequired,nuxConfig:j.object.isRequired,showSphericalSingletonNux:j.bool,draggingPhotos:j.bool,enableMediaDragging:j.bool,disableRemovePhotos:j.bool,index:j.number,updateComponentPosition:j.func.isRequired,onGrab:j.func.isRequired,onDrag:j.func.isRequired,onDrop:j.func.isRequired},getInitialState:function o(){return{dragging:false,showSphericalSingletonNux:false}},componentWillReceiveProps:function o(p){if(this.props.index!==p.index&&p.index!==undefined)setTimeout(this._updateComponentPosition,0);if(!this.props.showSphericalSingletonNux&&p.showSphericalSingletonNux&&!c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").SPHERICAL_SINGLETON_NUX))this.setState({showSphericalSingletonNux:true})},componentDidUpdate:function o(p){if(this.props.enableMediaDragging&&p.upload.state!==m&&this.props.upload.state===m&&!this.props.disableRemovePhotos)this._createDraggable();else if(p.upload.state===m&&this.props.upload.state!==m)this._draggable&&this._draggable.destroy()},componentDidMount:function o(){this._scrollParent=this._findScrollParent();if(this.props.enableMediaDragging&&this.props.upload.state===m&&!this.props.disableRemovePhotos)this._createDraggable();setTimeout(this._updateComponentPosition,0)},componentWillUnmount:function o(){this._draggable&&this._draggable.destroy()},render:function o(){var p=(this.state.dragging?"_2pkn":"")+" _2pko",q=this.props.upload,r=!q.isSpherical&&q.photoID?q.photoID:q.id;return c("React").createElement("div",{className:p,key:r,onClick:this._onClick,ref:"draggable_media",role:"presentation"},this._getInnerMediaComponent())},renderLayers:function o(){return{sphericalSingletonNux:this._sphericalSingletonNux()}},_sphericalSingletonNux:function o(){if(!this.props.showSphericalSingletonNux)return null;return c("React").createElement(c("XUIAmbientNUX.react"),{alignment:"left",contextRef:function(){return this.refs.draggable_media}.bind(this),shown:this.state.showSphericalSingletonNux,position:"below",onCloseButtonClick:this._onSphericalSingletonNuxClose,width:"auto"},i._("Post this photo individually to view in 360\u00b0"))},_onSphericalSingletonNuxClose:function o(){this.setState({showSphericalSingletonNux:false});c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").SPHERICAL_SINGLETON_NUX)},_getInnerMediaComponent:function o(){if(this.props.upload.mediaType==c("ReactComposerMediaUploadType").VIDEO)return this._getInnerVideoComponent();return this._getInnerPhotoComponent()},_getInnerVideoComponent:function o(){var p=this.props.upload;if(p.state===m){var q=this._getDragHandler();return c("React").createElement("div",{"data-testid":"media-attachment-video"},c("React").createElement(c("ReactComposerVideoXContainer.react"),{isSpherical:p.isSphericalVideo,dragHandler:q,key:p.photoID,label:p.filename,photoID:p.photoID,uploadID:p.id,fileURL:p.fileURL,allowTextOnThumbnail:this.props.mediaConfig.allowTextOnVideoThumbnail,metadata:p.videoMetadata}))}if(p.state===c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_FAILED)return c("React").createElement(c("ReactComposerFailedVideoXUploadContainer.react"),{key:p.id,error:p.error,filename:p.filename,uploadID:p.id});return c("React").createElement(c("ReactComposerVideoXUploadPlaceholderContainer.react"),{key:p.id,uploadID:p.id})},_getInnerPhotoComponent:function o(){var p=this.props.upload;if(p.state===c("ReactComposerPhotoUploadState").PHOTO_UPLOAD_FAILED)return c("React").createElement(c("ReactComposerFailedPhotoUploadContainer.react"),{error:p.error,filename:p.filename,key:p.id,mediaConfig:this.props.mediaConfig,uploadID:p.id});if(p.state===m||p.isSpherical&&p.useLocalSphericalImage&&p.fileURL){var q=this._getDragHandler(),r=!p.isSpherical&&p.photoID?p.photoID:p.id;return c("React").createElement("div",{"data-testid":"media-attachment-photo"},c("React").createElement(c("ReactComposerPhotoContainer.react"),{canTagFromModal:this.props.mediaConfig.canTagFromModal,draggingPhotos:this.props.draggingPhotos,dragHandler:q,enableFaceboxTagger:this.props.enableFaceboxTagger,label:p.filename,productTaggerType:this.props.productTaggerType,disablePhotoEditing:this.props.disablePhotoEditing,disableRemovePhotos:this.props.disableRemovePhotos,key:r,nuxConfig:this.props.nuxConfig,originalID:p.originalPhotoID,photoID:p.photoID,showProductTaggerNux:this.props.nuxConfig.showProductPhotoTaggerNux&&this.props.index===0,index:this.props.index,sphericalPhotoID:p.sphericalPhotoID,uploadID:p.id,fileURL:p.fileURL,sphericalImage:p.sphericalImage,isSpherical:p.isSpherical,useLocalSphericalImage:p.useLocalSphericalImage}))}return c("React").createElement(c("ReactComposerPhotoUploadPlaceholderContainer.react"),{key:p.id,uploadID:p.id,fileURL:p.fileURL})},_getDragHandler:function o(){var p=this;return{add:function q(r){p._draggable&&p._draggable.addHandle(r)},remove:function q(r){p._draggable&&p._draggable.removeHandle(r)}}},_createDraggable:function o(){this._draggable=new(c("Draggable"))(c("ReactDOM").findDOMNode(this)).setNamespace("ReactComposer").setUseAbsolute(true).setAvoidKillingEvents(true).setGutter(l).setGrabHandler(this._onGrab).setDragHandler(c("throttle")(this._onDrag,k)).setDropHandler(this._onDrop);this._updateComponentPosition()},_updateComponentPosition:function o(){var p=c("ReactDOM").findDOMNode(this),q=c("Vector").getElementPosition(p);q=this._compensateForScroll(p,q);this.props.updateComponentPosition(this.props.upload.id||this.props.upload.photoID,q,c("Vector").getElementDimensions(p))},_compensateForScroll:function o(p,q){return this._scrollParent?q.add(this._scrollParent.scrollLeft,this._scrollParent.scrollTop):q},_findScrollParent:function o(){__p&&__p();var p=c("ReactDOM").findDOMNode(this);if(p.closest)return p.closest(".fbScrollableAreaWrap");else{var q=document.querySelectorAll(".fbScrollableAreaWrap");while(p&&p.nodeType===1){var r=0;while(q[r]){if(q[r]===p)return p;r++}p=p.parentNode}return null}},_onGrab:function o(){if(this.state.dragging)return;this._grabbed=true;var p=c("ReactDOM").findDOMNode(this);this.props.onGrab(this.props.upload.id||this.props.upload.photoID,p)},_onDrag:function o(p){if(!this._grabbed)return;this.setState({dragging:true});var q=c("ReactDOM").findDOMNode(this);p=this._compensateForScroll(q,p);this.props.onDrag(p)},_onDrop:function o(p){this._draggable&&this._draggable.resetPosition();this.setState({dragging:false});this._grabbed=false;var q=c("ReactComposerMediaUploadActions").mediaMoved,r=c("ReactDOM").findDOMNode(this);p=this._compensateForScroll(r,p);this.props.onDrop(p,q)},_onClick:function o(){c("ReactComposerPhotoActions").setPhotoBeingTagged(this.context.composerID,this.props.upload.photoID)}});f.exports=n}),null);
__d("ReactComposerGenericPhotoUploadLink.react",["cx","Link.react","React","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){"use strict";var m=c("joinClasses")("__9u",this.props.className);return c("React").createElement(c("Link.react"),{className:m},this.props.children)};function l(){"use strict";i.apply(this,arguments)}l.propTypes={className:k.string};l.defaultProps={className:"__9t"};f.exports=l}),null);
__d("ReactComposerMediaScrollableArea.react",["React","ReactComponentWithPureRenderMixin","ReactDOM","TimelineMapScrollableArea","joinClasses"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=h.oneOfType([h.string,h.number]),j=c("React").createClass({displayName:"ReactComposerMediaScrollableArea",_scrollableArea:c("TimelineMapScrollableArea"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{children:h.array.isRequired,getAddMoreDOM:h.func,height:i.isRequired,persistent:h.bool,photosCount:h.number,scrollbar:h.oneOf(["native","fade","nofade"]).isRequired,verticalScroll:h.bool,width:i.isRequired},getDefaultProps:function k(){return{scrollbar:"native",width:"100%"}},componentDidMount:function k(){this._scrollableArea=new(c("TimelineMapScrollableArea"))(c("ReactDOM").findDOMNode(this.refs.container),{fade:this.props.scrollbar==="fade",persistent:this.props.persistent,verticalscroll:this.props.verticalScroll});this._scrollAddButtonIntoView()},componentDidUpdate:function k(l,m){if(this.props.photosCount>l.photosCount)this._scrollAddButtonIntoView()},componentWillUnmount:function k(){this._scrollableArea.destroy()},render:function k(){var l=c("joinClasses")(this.props.className,this.props.scrollbar),m={height:this.props.height,width:this.props.width},n=this.props.height-(this.props.scrollbar==="fade"?0:10),o={height:n};return c("React").createElement("div",{className:l,ref:"container"},c("React").createElement("div",{className:"fbScrollableArea",style:m},c("React").createElement("div",{className:"fbScrollableAreaWrap"},c("React").createElement("div",{className:"fbScrollableAreaBody",style:o},c("React").createElement("div",{className:"fbScrollableAreaContent"},this.props.children))),this._getTrack()))},_getTrack:function k(){if(this.props.scrollbar==="native")return null;return c("React").createElement("div",{className:"fbScrollableAreaTrack invisible_elem"},c("React").createElement("div",{className:"fbScrollableAreaGripper"}))},_scrollAddButtonIntoView:function k(){this.props.getAddMoreDOM&&this.props.getAddMoreDOM()&&this._scrollableArea.scrollIntoView(this.props.getAddMoreDOM())}});f.exports=j}),null);
__d("ReactComposerMediaUploadsGrid.react",["cx","fbt","FileInput.react","immutable","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerDraggableMedia.react","ReactComposerGenericPhotoUploadLink.react","ReactComposerLoggingActions","ReactComposerLoggingName","ReactComposerMediaScrollableArea.react","ReactComposerMediaUtils","ReactDOM","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=c("React").PropTypes,k=112,l=c("React").createClass({displayName:"ReactComposerMediaUploadsGrid",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{enableFaceboxTagger:j.bool,productTaggerType:j.string,disablePhotoEditing:j.bool,disableRemovePhotos:j.bool,addMorePhotosConfig:j.shape({maxPhotos:j.number}).isRequired,mediaAcceptParam:j.string,mediaConfig:j.object.isRequired,nuxConfig:j.object.isRequired,onFilesSelected:j.func,canUploadMultiplePhotos:j.bool,uploads:j.instanceOf(c("immutable").List).isRequired,sphericalSingletonNuxUpload:j.object,onDrop:j.func,photoUploadLink:j.element,scrollableAreaHeight:j.number.isRequired,sourceIndex:j.number,targetIndex:j.number,updateComponentPosition:j.func.isRequired},getDefaultProps:function m(){return{addMorePhotosConfig:{},canUploadMultiplePhotos:false,photoUploadLink:c("React").createElement(c("ReactComposerGenericPhotoUploadLink.react"),null),scrollableAreaHeight:k,showSellUploadLink:false}},render:function m(){return c("React").createElement("div",{className:"_kkp"},c("React").createElement("div",{className:c("joinClasses")("_kkq",this.props.className)},c("React").createElement(c("ReactComposerMediaScrollableArea.react"),{fade:true,getAddMoreDOM:this._getAddMoreDOM,height:this.props.scrollableAreaHeight,photosCount:this.props.uploads.size,scrollbar:"fade",verticalScroll:true},this.props.children,this._getComponents(),this._getAddMorePhotosButton())))},_onAddMorePhotosClick:function m(){c("ReactComposerLoggingActions").mediaUploadInputClicked(this.context.composerID,c("ReactComposerLoggingName").MEDIA_UPLOADS_PLUS_BUTTON)},_onFilesSelected:function m(event){if(this.props.onFilesSelected){var n=this.props.onFilesSelected;n(event,this.refs.fileInput.getFileInput())}c("ReactComposerMediaUtils").clearInput(this.refs.fileInput.getFileInput(),true)},_getAddMorePhotosButton:function m(){if(!this.props.canUploadMultiplePhotos&&this.props.uploads.size>0)return null;if(this.props.addMorePhotosConfig.maxPhotos&&this.props.uploads.size>=this.props.addMorePhotosConfig.maxPhotos)return null;return c("React").createElement("span",{ref:"addMore",className:"_kkr"},c("React").createElement(c("FileInput.react"),{accept:this.props.mediaAcceptParam,multiple:this.props.canUploadMultiplePhotos,name:"composer_photo",onChange:this._onFilesSelected,onClick:this._onAddMorePhotosClick,ref:"fileInput",title:i._("Choose a file to upload"),"data-testid":"add-more-photos"},this.props.photoUploadLink))},_getComponents:function m(){__p&&__p();var n=this.props.uploads.toSeq().filter(function(p,q){return q!==this.props.sourceIndex}.bind(this)).map(function(p,q){return this._getDraggablePhoto(p,q)}.bind(this));if(this.props.targetIndex!=null){var o=c("React").createElement("div",{key:"placeholder",className:"_kks"});n=n.splice(this.props.targetIndex,0,o)}if(this.props.sourceIndex!=null)n=n.splice(this.props.sourceIndex,0,this._getDraggablePhoto(this.props.uploads.get(this.props.sourceIndex)));return n.toArray()},_getDraggablePhoto:function m(n,o){return c("React").createElement(c("ReactComposerDraggableMedia.react"),{enableFaceboxTagger:this.props.enableFaceboxTagger,productTaggerType:this.props.productTaggerType,disablePhotoEditing:this.props.disablePhotoEditing,disableRemovePhotos:this.props.disableRemovePhotos,key:n.id,upload:n,nuxConfig:this.props.nuxConfig,showSphericalSingletonNux:n===this.props.sphericalSingletonNuxUpload,draggingPhotos:this.props.sourceIndex!=null,enableMediaDragging:true,index:o,mediaConfig:this.props.mediaConfig,updateComponentPosition:this.props.updateComponentPosition,onGrab:this.props.onGrab,onDrag:this.props.onDrag,onDrop:this.props.onDrop})},_getAddMoreDOM:function m(){return c("ReactDOM").findDOMNode(this.refs.addMore)}});f.exports=l}),null);
__d("ReactComposerMediaUploadsGridContainer.react",["Locale","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerMediaUploadsGrid.react","ReactDOM","Rect","Vector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerMediaUploadsGridContainer",_componentsPosition:{},contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{photoUploadLink:h.element,enableFaceboxTagger:h.bool,productTaggerType:h.string,disablePhotoEditing:h.bool,showSellUploadLink:h.bool,disableRemovePhotos:h.bool},getInitialState:function j(){return{rtl:c("Locale").isRTL(),sourceIndex:null,targetIndex:null,uploads:this.props.uploads,sphericalSingletonNuxUpload:null}},componentWillReceiveProps:function j(k){if(this.state.uploads!==k.uploads){var l=k.uploads.toSeq().filter(function(m){return m.canShowSphericalSingletonNux}).first();this.setState({uploads:k.uploads,sphericalSingletonNuxUpload:l})}},render:function j(){return c("React").createElement(c("ReactComposerMediaUploadsGrid.react"),babelHelpers["extends"]({},this.props,{onGrab:this._onGrab,onDrag:this._onDrag,onDrop:this._onDrop,sourceIndex:this.state.sourceIndex,targetIndex:this.state.targetIndex,updateComponentPosition:this._updateComponentPosition,uploads:this.state.uploads,sphericalSingletonNuxUpload:this.state.sphericalSingletonNuxUpload}))},_onGrab:function j(k,l){var m=this.state.uploads.findIndex(function(n){return n.id===k});this.setState({sourceIndex:m,targetIndex:m})},_onDrag:function j(k){var l=c("Vector").getElementPosition(c("ReactDOM").findDOMNode(this));k=k.sub(l);this.setState({targetIndex:this._getTargetID(k)})},_onDrop:function j(k,l){__p&&__p();this._onDrag(k);var m=this.state.sourceIndex,n=this.state.targetIndex;if(m==null||n==null)return;if(m!==n){var o=this.state.uploads;o=o.splice(m,1).splice(n,0,o.get(m));this.setState({uploads:o});l(this.context.composerID,m,n)}this._endDrag()},_endDrag:function j(){this.setState({sourceIndex:null,targetIndex:null})},_getTargetID:function j(k){var l=this.state.uploads,m=this.state.rtl?function(q,k){return q.right>=k.x}:function(q,k){return q.left<=k.x};for(var n=l.size-1;n>=0;n--){var o=l.get(n),p=o.id,q=this._componentsPosition[p];if(m(q,k))return n}return 0},_updateComponentPosition:function j(k,l,m){var n=new(c("Rect"))(c("ReactDOM").findDOMNode(this));this._componentsPosition[k]={left:l.x-n.l,right:l.x-n.l+m.x}}});f.exports=i}),null);
__d("ReactComposerInputDecorator",[],(function a(b,c,d,e,f,g){"use strict";f.exports={NONE:0,MENTIONS:1,RICH_TEXT:2}}),null);
__d("ReactComposerStatusAttachmentMentionsInput.react",["cx","addEmojiInput","Arbiter","MentionsInput.react","React","ReactComponentWithPureRenderMixin","ReactComposerConfig","ReactComposerContextTypes","ReactComposerEvents","ReactComposerInit","ReactComposerTaggerType","SubscriptionsHandler","XUITypeaheadView.react","ifRequired","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").PropTypes,j=c("addEmojiInput")(c("MentionsInput.react")),k=c("React").createClass({displayName:"ReactComposerStatusAttachmentMentionsInput",_subscriptions:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{config:c("ReactComposerConfig"),mentionsSource:i.object,preventFocus:i.bool,typeaheadReporter:i.object,onChange:i.func,onFocus:i.func,onPasteFiles:i.func},componentWillUnmount:function l(){this.props.onBlur&&this.props.onBlur(this.props.editorState);this._subscriptions&&this._subscriptions.release()},componentWillMount:function l(){var m=new(c("SubscriptionsHandler"))();if(!this.props.preventFocus)m.addSubscriptions(c("Arbiter").subscribe([c("ReactComposerEvents").ACTIVATE_ATTACHMENT+this.context.composerID],function(){return this.focus()}.bind(this)));this._subscriptions=m},componentDidCatch:function l(m,n){},render:function l(){var m=this.props.config&&this.props.taggersConfig&&this.props.config.taggersConfig[c("ReactComposerTaggerType").PEOPLE],n=m&&m.typeaheadView?m.typeaheadView:c("XUITypeaheadView.react"),o=m&&m.typeaheadViewProps?m.typeaheadViewProps:{},p=Object.assign({},{ariaMultiline:true,role:"textbox",typeaheadView:n,typeaheadViewProps:o,selectOnTab:false,spellCheck:true},this.props,{className:c("joinClasses")("_1mwp navigationFocus",this.props.className),editorState:this.props.editorState,onAddMention:this._onAddMention,onShowMentions:this._onShowMentions,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,maxResults:10});return c("React").createElement(j,babelHelpers["extends"]({ref:"mentionsInput"},p,{webDriverTestID:"status-attachment-mentions-input"}))},focus:function l(){if(!c("ReactComposerInit").isInstanceMounted(this.context.composerID))c("Arbiter").subscribeOnce([c("ReactComposerEvents").INSTANCE_MOUNTED+this.context.composerID],function(){return this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus()}.bind(this));else this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus()},blur:function l(){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.blur()},_onAddMention:function l(m,n,o){var p=this.props.typeaheadReporter;if(p){p.reportSelect(m.getUniqueID(),m.getType(),n,o.button>=0);p.sessionEnd();p.sessionStart()}if(m.getType()==="event")c("ifRequired")("ReactComposerEventAttachmentActions",function(q){return q.fetchEventAttachment(this.context.composerID,m.getUniqueID())}.bind(this))},_onShowMentions:function l(m,n){var o=this.props.typeaheadReporter;if(o)o.reportResults(m.map(function(p){return p.getUniqueID()}))},_onFocus:function l(){var m=this.props.typeaheadReporter;if(m)m.sessionStart();this.props.onFocus&&this.props.onFocus()},_onChange:function l(m){this.props.onChange&&this.props.onChange(m)},_onBlur:function l(){this.props.typeaheadReporter&&this.props.typeaheadReporter.sessionEnd();this.props.onBlur&&this.props.onBlur(this.props.editorState)}});f.exports=k}),null);
__d("ReactComposerStatusAttachmentMentionsInputVariant.react",["cx","EmojiInputButton.react","Keys","React","ReactComposerActions","ReactComposerAttachmentType","ReactComposerStatusAttachmentMentionsInput.react","ReactComposerStickerContainer","UserAgent_DEPRECATED","emptyFunction","getCampfireKeyBinding","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("ReactComposerStickerContainer").ReactComposerStickerComponent;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(m){__p&&__p();j.constructor.call(this,m);this.$ReactComposerStatusAttachmentMentionsInputVariant1=function(n){var o=/^image\//;n=n.filter(function(p){return o.test(p.type)});if(n.length>0&&this.props.onPasteFiles){this.props.onPasteFiles(n);return true}return false}.bind(this);this.$ReactComposerStatusAttachmentMentionsInputVariant2=function(event,n){var o=c("UserAgent_DEPRECATED").osx()?event.metaKey:event.ctrlKey;if(event.keyCode===c("Keys").RETURN&&o){this.blur();setTimeout(this.props.onPostIntent,0);return true}return false}.bind(this);this.$ReactComposerStatusAttachmentMentionsInputVariant3=function(){c("ReactComposerActions").expandSprouts(this.props.compositionID)}.bind(this)}l.prototype.render=function(){__p&&__p();var m=this.props.config&&this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],n=null;if(this.props.useRichTextEditor){var o=m.richTextEditor;n=c("React").createElement(o,babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,"_3w8y _21mu"+(this.props.sticker&&this.props.sticker.stickerID?" _n7q":"")),canAttachVideo:false,canAttachPhoto:false,canAttachEmbed:false,onSave:c("emptyFunction"),spellCheck:true,autoCorrect:false,handlePastedFiles:this.$ReactComposerStatusAttachmentMentionsInputVariant1,handleContentReturn:this.$ReactComposerStatusAttachmentMentionsInputVariant2,keyBindingFn:c("getCampfireKeyBinding"),ref:"mentionsInput"}))}else n=c("React").createElement(c("ReactComposerStatusAttachmentMentionsInput.react"),babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,(this.props.isSelectedAttachmentActive?"_1mwq":"")+(this.props.config&&this.props.config.showExpandedComposer?" _4c_p":"")+(m&&m.showProfilePic?" _5bu_":"")+(this.props.isPosting?" _1udp":"")+(this.props.shouldUseLargeText?" _17nh":"")+(m&&m.largeTextThreshold?" _34nd":"")+" _21mu"+(this.props.sticker&&this.props.sticker.stickerID?" _hjn":"")),ref:"mentionsInput",readOnly:this.props.isPosting,editorState:this.props.editorState,mentionsSource:this.props.mentionsSource,typeaheadReporter:this.props.typeaheadReporter,handlePastedFiles:this.$ReactComposerStatusAttachmentMentionsInputVariant1,handleContentReturn:this.$ReactComposerStatusAttachmentMentionsInputVariant2}));var p="_3nc-",q="_3nc_",r="_5zq9",s=c("React").createElement(c("EmojiInputButton.react"),{buttonClassName:p,iconActiveClassName:r,iconClassName:q,onSelect:this.props.onInsertEmoji,onClick:this.$ReactComposerStatusAttachmentMentionsInputVariant3}),t=null;if(k)t=c("React").createElement(k,{sticker:this.props.sticker,composerID:this.props.compositionID});return c("React").createElement("div",{className:"_3nd0"},t,n,s)};l.prototype.blur=function(){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.blur()};l.prototype.focus=function(){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus()};f.exports=l}),null);
__d("ImplicitLink.react",["cx","React"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){"use strict";return c("React").createElement("span",{"data-offset-key":this.props.offsetKey,className:"_2ou",spellCheck:false},this.props.children)};function k(){"use strict";i.apply(this,arguments)}f.exports=k}),null);
__d("getRichTextInputDecorator",["CompositeDraftDecorator","EmojiSpan.react","EmoticonSpan.react","HashtagSpan.react","ImplicitLink.react","MentionSpan.react","RichTextEditorLink.react","WeakMentionSpan.react","getEntityMatcher","getHashtagMatches","getImplicitURLMatches"],(function a(b,c,d,e,f,g){__p&&__p();var h=void 0;function i(){if(!h)h=new(c("CompositeDraftDecorator"))([{strategy:c("getEntityMatcher")(function(j){var k=j.getData();return j.getType()==="MENTION"&&k&&k.isWeak}),component:c("WeakMentionSpan.react")},{strategy:c("getEntityMatcher")(function(j){return j.getType()==="MENTION"}),component:c("MentionSpan.react")},{strategy:c("getEntityMatcher")(function(j){return j.getType()==="EMOTICON"}),component:c("EmoticonSpan.react")},{strategy:c("getHashtagMatches"),component:c("HashtagSpan.react")},{strategy:c("getEntityMatcher")(function(j){return j.getType()==="EMOJI"}),component:c("EmojiSpan.react")},{strategy:c("getEntityMatcher")(function(j){return j.getType()==="LINK"}),component:c("RichTextEditorLink.react")},{strategy:c("getImplicitURLMatches"),component:c("ImplicitLink.react")}]);return h}f.exports=i}),null);
__d("getReactComposerEmojiInputDecorator",["EmojiInputDecorator","EmojiSpan.react","ReactComposerInputDecorator","getMentionsInputDecorator","getRichTextInputDecorator","memoizeWithArgs"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("memoizeWithArgs")(function(i,j){var k=null;if(i===c("ReactComposerInputDecorator").RICH_TEXT)k=c("getRichTextInputDecorator")();else if(i===c("ReactComposerInputDecorator").MENTIONS)k=c("getMentionsInputDecorator")();if(j)k=new(c("EmojiInputDecorator"))(c("EmojiSpan.react"),k,{size:j});return k},function(i,j){if(!j)return"#"+i;return i+"_"+j});f.exports=h}),null);
__d("ReactComposerStatusAttachmentMentionsInputContainer.react",["Arbiter","EditorState","LitestandStoryInsertionStatus","React","ReactComponentWithPureRenderMixin","ReactComposerActions","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerConfig","ReactComposerContextTypes","getReactComposerEmojiInputDecorator","ReactComposerEvents","ReactComposerOptimisticPostingActions","ReactComposerHandleUnsavedChanges","ReactComposerInputDecorator","ReactComposerMediaUploadStore","ReactComposerMinutiaeAttachmentStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerScrapedAttachmentStore","ReactComposerStatusActions","ReactComposerStatusAttachmentMentionsInputVariant.react","ReactComposerStatusStore","ReactComposerStatusUtils","ReactComposerStore","ReactComposerTaggerStore","ReactComposerTaggerType","TextDelightEvents","UnicodeUtils","addEmojiToEditorState","ifRequired"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=function i(k,l){var m=c("ReactComposerAttachmentStore").getSelectedAttachmentID(k);if(m===c("ReactComposerAttachmentType").LIVE_VIDEO||m===c("ReactComposerAttachmentType").SELL)return false;var n=l&&l.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],o=c("ReactComposerTaggerStore").hasMarkdown(k);return!!(n&&n.richTextEditor&&!o)},j=c("React").createClass({displayName:"ComposerStatusAttachmentMentionsInputContainer",_rerenderSubscription:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerAttachmentStore"),c("ReactComposerMediaUploadStore"),c("ReactComposerMinutiaeAttachmentStore"),c("ReactComposerScrapedAttachmentStore"),c("ReactComposerStatusStore"),c("ReactComposerStore"),c("ReactComposerTaggerStore"))],propTypes:{config:c("ReactComposerConfig"),mentionsEnabled:h.bool,mentionsSource:h.object,onChange:h.func,onFocus:h.func,onPasteFiles:h.func,handlePastedText:h.func},getDefaultProps:function k(){return{mentionsEnabled:true}},getInitialState:function k(){return{isFocused:false}},statics:{calculateState:function k(l,m){__p&&__p();var n=c("ReactComposerStatusStore").getEditorState(l),o=m.config&&m.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],p=false,q=c("ReactComposerStatusStore").getTextLength(l),r=c("ReactComposerAttachmentStore").isSelectedAttachmentActive(l),s=c("ReactComposerAttachmentStore").getSelectedAttachmentID(l),t=i(l,m.config),u=c("ReactComposerInputDecorator").NONE;if(m.mentionsEnabled)u=o&&o.richTextEditor?c("ReactComposerInputDecorator").RICH_TEXT:c("ReactComposerInputDecorator").MENTIONS;if(o&&o.largeTextThreshold&&c("ReactComposerMediaUploadStore").getUploadsCount(l)===0&&!c("ReactComposerScrapedAttachmentStore").hasAttachment(l)&&!c("ReactComposerTaggerStore").hasExplicitLocation(l)&&!c("ReactComposerTaggerStore").hasMarkdown(l)&&c("ReactComposerMinutiaeAttachmentStore").getMarkup(l)===null&&s!==c("ReactComposerAttachmentType").FIND_PLAYERS&&s!==c("ReactComposerAttachmentType").SELL){if(!q&&n){var v=n.getCurrentContent();q=c("UnicodeUtils").strlen(v.getPlainText())}var w=m.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].placeholderText;if(w&&w.length<=o.LargePlaceholderTextThreshold&&q===0&&r||q!==0&&q<=o.largeTextThreshold)p=true;c("ifRequired")("ReactComposerFormattedTextStore",function(z){var A=z.getSelectedIndex(l);if(A>-1){p=true;u=m.mentionsEnabled?c("ReactComposerInputDecorator").MENTIONS:c("ReactComposerInputDecorator").NONE;t=false}})}var x=c("getReactComposerEmojiInputDecorator")(u,p&&!t?28:16),y=void 0;if(n)if(n.getDecorator()!==x){y=c("EditorState").set(n,{decorator:x});c("ReactComposerStatusActions").setEditorState(l,y)}else y=n;else{y=c("EditorState").createEmpty(x);c("ReactComposerStatusActions").setEditorState(l,y)}return{activeEditorState:c("ReactComposerStatusStore").getActiveEditorState(l),editorState:y,isSelectedAttachmentActive:c("ReactComposerAttachmentStore").isSelectedAttachmentActive(l),mentionsSource:m.mentionsEnabled?c("ReactComposerStatusStore").getMentionsSource(l):null,posting:c("ReactComposerStore").isPosting(l),typeaheadReporter:c("ReactComposerStatusStore").getTypeaheadReporter(l),shouldUseLargeText:p,selectedSticker:c("ReactComposerTaggerStore").getTaggerData(l,c("ReactComposerTaggerType").STICKER),useRichText:t}}},componentWillMount:function k(){if(this.props.mentionsSource)c("ReactComposerStatusActions").setMentionsSource(this.context.composerID,this.props.mentionsSource);this._storyInsertionBlocker=c("LitestandStoryInsertionStatus").registerBlocker(function(){return c("ReactComposerHandleUnsavedChanges").hasUnsavedChanges(this.context.composerID)||this.state.isFocused}.bind(this))},componentDidMount:function k(){var l=c("ReactComposerStatusStore").getEditorState(this.context.composerID);if(this.state.editorState!==l){this._pendingEditorStateUpdateFromMount=l;this.setState({editorState:l},function(){this._pendingEditorStateUpdateFromMount=undefined}.bind(this))}this._rerenderSubscription=c("Arbiter").subscribe(c("ReactComposerEvents").RERENDER_MENTION_INPUT+this.context.composerID,function(){this.setState({editorState:c("ReactComposerStatusStore").getEditorState(this.context.composerID)})}.bind(this))},componentWillReceiveProps:function k(l){if(this.props.mentionsSource!==l.mentionsSource)c("ReactComposerStatusActions").setMentionsSource(this.context.composerID,l.mentionsSource);if(l.editorState===null){var m=c("EditorState").createEmpty(c("getReactComposerEmojiInputDecorator")(c("ReactComposerInputDecorator").MENTIONS));c("ReactComposerStatusActions").setEditorState(this.context.composerID,m);this.setState({editorState:m})}},componentWillUnmount:function k(){this._prefillSubscription&&this._prefillSubscription.unsubscribe();this._prefillSubscription=null;this._storyInsertionBlocker&&this._storyInsertionBlocker.unsubscribe();this._storyInsertionBlocker=null;this._rerenderSubscription&&this._rerenderSubscription.unsubscribe()},render:function k(){return c("React").createElement(c("ReactComposerStatusAttachmentMentionsInputVariant.react"),babelHelpers["extends"]({},this.props,{activeEditorState:this.state.activeEditorState,compositionID:this.context.composerID,editorState:this.state.editorState,isSelectedAttachmentActive:this.state.isSelectedAttachmentActive,isPosting:this.state.posting,mentionsSource:this.state.mentionsSource,onBlur:this._onBlur,onChange:this._onChange,onFocus:this._onFocus,onInsertEmoji:this._onInsertEmoji,onPostIntent:this._onPostIntent,ownerID:this.context.actorID,ref:"mentionsInput",shouldUseLargeText:this.state.shouldUseLargeText,typeaheadReporter:this.state.typeaheadReporter,useRichTextEditor:this.state.useRichText,sticker:this.state.selectedSticker}))},focus:function k(){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus();if(this._pendingEditorStateUpdateFromMount!==undefined)this.setState({editorState:this._pendingEditorStateUpdateFromMount},function(){return this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus()}.bind(this))},_onFocus:function k(){c("Arbiter").inform(c("ReactComposerEvents").MENTION_INPUT_FOCUS+this.context.composerID);this.setState({isFocused:true});this.props.onFocus&&this.props.onFocus()},_onChange:function k(l){__p&&__p();if(this._pendingEditorStateUpdateFromMount!==undefined)return;var m=0;if(l){var n=l.getCurrentContent();m=n?c("UnicodeUtils").strlen(n.getPlainText()):0;if(c("ReactComposerStatusStore").getEditorState(this.context.composerID)!==l){c("ReactComposerStatusActions").setEditorState(this.context.composerID,l);c("ReactComposerStatusActions").setTextLength(this.context.composerID,m);if(n)c("TextDelightEvents").emitScrapablePost(n.getPlainText())}}this._handleMarkdownChange(l);this.props.onChange&&this.props.onChange(l);this.setState({editorState:l})},_onInsertEmoji:function k(l){var m=c("ReactComposerStatusStore").getActiveEditorState(this.context.composerID),n=c("ReactComposerStatusStore").getActiveLanguageDialect(this.context.composerID);c("addEmojiToEditorState")(l,m,n==null?this._onChange:this._onMultilingualEditorChange)},_onMultilingualEditorChange:function k(l){var m=this.context.composerID,n=c("ReactComposerStatusStore").getActiveEditorState(m),o=c("ReactComposerStatusStore").getActiveLanguageDialect(m);if(n!==l)c("ifRequired")("ReactComposerMultilingualStatusActions",function(p){p.setEditorState(m,o,l)})},_handleMarkdownChange:function k(l){var m=this.props.config?this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS]:null;c("ReactComposerStatusUtils").handleMarkdownPreview(this.context.composerID,this.context.targetID,m?m.markdownPreviewAttachment:null,l)},_onBlur:function k(l){c("ReactComposerStatusActions").setEditorState(this.context.composerID,l);this.setState({isFocused:false})},_onPostIntent:function k(){if(this.context.gks.optimisticPosting)c("ReactComposerOptimisticPostingActions").startOptimisticallyPosting(this.context.composerID,this.props.config,c("ReactComposerAttachmentType").STATUS,this.context.actorID,this.context.targetID);else c("ReactComposerActions").postIntended(this.context.composerID,{actorID:this.context.actorID,config:this.props.config,targetID:this.context.targetID})}});f.exports=j}),null);
__d("ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react",["cx","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerStatusActions","ReactComposerStatusAttachmentMentionsInputContainer.react","joinClasses"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").createClass({displayName:"ComposerStatusAttachmentMentionsInputWithTagExpansionContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],render:function j(){var k=c("joinClasses")(this.props.className,"_395");return c("React").createElement(c("ReactComposerStatusAttachmentMentionsInputContainer.react"),babelHelpers["extends"]({},this.props,{className:k,onChange:this._onChange,ref:"mentionsInput"}))},focus:function j(){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus()},insertEmoji:function j(k){this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.insertEmoji(k)},_onChange:function j(k){c("ReactComposerStatusActions").setMentions(this.context.composerID,this._getMentionsFromEditorState(k));this.props.onChange&&this.props.onChange(k)},_getMentionsFromEditorState:function j(k){__p&&__p();var l=k.getCurrentContent(),m={};l.getBlockMap().forEach(function(n){__p&&__p();var o=n.getText();n.findEntityRanges(function(){return true},function(p,q){var r=n.getEntityAt(p);if(!r)return;var s=l.getEntity(r);if(s.getType()!=="MENTION"||s.getData().type!=="user")return;var t=s.getData().id;m[t]={type:"user",uid:t,text:o.slice(p,q),isWeak:s.getData().isWeak}})});return m}});f.exports=i}),null);
__d("BootloadedReactComposerFundraiserTaggerButton.react",["BootloadedComponent.react","ReactComposerTaggerType","JSResource","React","idx"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j;if((j=i)!=null?(j=j.taggersConfig)!=null?(j=j[c("ReactComposerTaggerType").FUNDRAISER])!=null?j.enabled:j:j:j)return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerFundraiserTaggerButton.react").__setRef("BootloadedReactComposerFundraiserTaggerButton.react"),bootloadPlaceholder:c("React").createElement("div",null),source:i.source});return null}f.exports=h}),null);
__d("BootloadedReactComposerFundraiserTaggerContainer.react",["BootloadedComponent.react","ReactComposerTaggerType","JSResource","React","idx"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j;if((j=i)!=null?(j=j.taggersConfig)!=null?(j=j[c("ReactComposerTaggerType").FUNDRAISER])!=null?j.enabled:j:j:j)return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerFundraiserTaggerContainer.react").__setRef("BootloadedReactComposerFundraiserTaggerContainer.react"),bootloadPlaceholder:c("React").createElement("div",null)});return null}f.exports=h}),null);
__d("ReactComposerAlbumTaggerButton.react",["cx","fbt","React","ReactComposerLoggingName","ReactComposerTaggerButtonMixin","ReactComposerTaggerType"],(function a(b,c,d,e,f,g,h,i){var j=c("React").PropTypes,k=c("React").createClass({displayName:"ReactComposerAlbumTaggerButton",mixins:[c("ReactComposerTaggerButtonMixin")],propTypes:{hasData:j.bool},statics:{taggerID:c("ReactComposerTaggerType").ALBUM,loggingName:c("ReactComposerLoggingName").ALBUM_TAGGER,suppressTaggerLink:true},getTitle:function l(){return i._("Add your post to an album")},getTooltip:function l(){return i._("Pick an album")},getClassName:function l(){return"_3c57"+(this.props.hasData?" _6xe":"")}});f.exports=k}),null);
__d("ReactComposerAlbumTaggerButtonContainer.react",["React","ReactComposerContextTypes","ReactComposerAlbumTaggerButton.react","ReactComposerAudienceStore","FluxContainer"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.calculateState=function(k,l,m){var n=c("ReactComposerAudienceStore").getCollectionID(m.composerID);return{hasSelectedAlbum:n!==null}};j.getStores=function(){return[c("ReactComposerAudienceStore")]};j.prototype.render=function(){return c("React").createElement(c("ReactComposerAlbumTaggerButton.react"),{hasData:this.state.hasSelectedAlbum})};function j(){h.apply(this,arguments)}j.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(j,{withContext:true,withProps:true})}),null);
__d("ReactComposerPhotoTaggerButtonContainer.react",["cx","Bootloader","ComposerTargetData","React","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerLoggingName","ReactComposerMediaFilePickerController.react","ReactComposerMediaUploadStore","ReactComposerMediaUploadType","ReactComposerPhotoTaggerButton.react","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerScrapedAttachmentStore","ReactComposerVideoUploadStore","ReactPagesComposerGlobalFlags","SimpleNUXMessage","SimpleNUXMessageTypes","VideoUploadConfig"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"ReactComposerPhotoTaggerButtonContainer",mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerAttachmentStore"),c("ReactComposerMediaUploadStore"),c("ReactComposerScrapedAttachmentStore"))],propTypes:{customPhotoTaggerButton:i.any,disableFaceRecognition:i.bool.isRequired,mediaAcceptParam:i.shape({photos:i.string,both:i.string}),photoLimit:i.number.isRequired,targetData:i.instanceOf(c("ComposerTargetData")).isRequired,mediaConfig:i.object.isRequired},getDefaultProps:function k(){return{disableFaceRecognition:false}},statics:{calculateState:function k(l,m){var n=c("ReactComposerAttachmentStore").getIsAttachmentSelected(l,c("ReactComposerAttachmentType").MEDIA),o=c("ReactComposerMediaUploadStore").getUploadsOfType(l,c("ReactComposerMediaUploadType").PHOTO),p=!c("ReactComposerVideoUploadStore").getVideo(l)&&!c("ReactComposerScrapedAttachmentStore").hasAttachment(l)&&o.size<m.photoLimit,q=!c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").MULTIMEDIA_ATTACHMENTS_NUX)&&c("VideoUploadConfig").showMultimediaNUX;return{hasData:!!o.size&&n,shown:p,uploadSize:o.size,multimediaNuxShown:q}}},render:function k(){if(!this.state.shown)return null;if(this.props.customPhotoTaggerButton){var l=this.props.customPhotoTaggerButton;return c("React").createElement(l,babelHelpers["extends"]({},this.props,this.state,{onClick:this._onClick}))}else return c("React").createElement(c("ReactComposerMediaFilePickerController.react"),babelHelpers["extends"]({},this.props,{loggingName:c("ReactComposerLoggingName").MEDIA_TAGGER,containerClassName:"_3xem _3xen",onClick:this._onClick}),c("React").createElement(c("ReactComposerPhotoTaggerButton.react"),{photoLimit:this.props.photoLimit,hasData:this.state.hasData,targetData:this.props.targetData,multimediaNuxShown:this.state.multimediaNuxShown,onNUXCloseButtonClick:this._onNUXCloseButtonClick}))},_onNUXCloseButtonClick:function k(){c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").MULTIMEDIA_ATTACHMENTS_NUX);this.setState({multimediaNuxShown:false})},_onClick:function k(){if(c("ReactPagesComposerGlobalFlags").getIsObjectiveFirstPagesComposer())c("Bootloader").loadModules(["PagesPublishingLoggingActions"],function(l){l.clickedTagger(c("ReactComposerLoggingName").MEDIA_TAGGER)},"ReactComposerPhotoTaggerButtonContainer.react");this._onNUXCloseButtonClick()}});f.exports=j}),null);
__d("ReactComposerStatusFooter.react",["cx","AsyncRequest","BasicTypeaheadLoggerJSConstants","BootloadedComponent.react","BootloadedReactComposerFundraiserTaggerButton.react","BootloadedReactComposerFundraiserTaggerContainer.react","ComposerEntryPointRef","ComposerTargetData","ReactComposerActivityTaggerButton.react","ReactComposerActivityTaggerContainer.react","ReactComposerAlbumTaggerButtonContainer.react","ReactComposerAttachmentType","ReactComposerAudienceSelectorContainer.react","ReactComposerAudienceSelectorContainerGatedModule","ReactComposerBootloaderPropTypes","ReactComposerCollectionSelectorContainerGatedModule","ReactComposerConfig","ReactComposerContextTypes","ReactComposerFooterActions.react","ReactComposerFooterContainer.react","ReactComposerGroupAudienceIndicatorGatedModule","ReactComposerImplicitLocationContainer.react","ReactComposerLocationTaggerButton.react","ReactComposerLocationTaggerContainer.react","ReactComposerMarkdownTaggerButton.react","ReactComposerPeopleTaggerButton.react","ReactComposerPeopleTaggerContainer.react","ReactComposerPhotoTaggerButtonContainer.react","ReactComposerPostButtonContainer.react","ReactComposerPostToGroupButtonContainerGatedModule","ReactComposerSelectedCollectionIndicatorContainerGatedModule","ReactComposerSharesheetSelectorContainerGatedModule","ReactComposerTaggerActions","ReactComposerTaggerButtons.react","ReactComposerTaggers.react","ReactComposerTaggerType","ReactComposerTaggerViewStyles","ReactComposerTimelineAudienceSelectorContainerGatedModule","JSResource","LeftRight.react","PlaceSearchConstants","ReactComponentWithPureRenderMixin","React","XUISpinner.react","getByPath"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("BasicTypeaheadLoggerJSConstants").EventNames,j=c("ReactComposerAudienceSelectorContainerGatedModule").module,k=c("ReactComposerCollectionSelectorContainerGatedModule").module,l=c("ReactComposerGroupAudienceIndicatorGatedModule").module,m=c("ReactComposerPostToGroupButtonContainerGatedModule").module,n=c("ReactComposerSelectedCollectionIndicatorContainerGatedModule").module,o=c("ReactComposerSharesheetSelectorContainerGatedModule").module,p=c("ReactComposerTimelineAudienceSelectorContainerGatedModule").module,q=c("React").PropTypes,r=c("React").createClass({displayName:"ReactComposerStatusFooter",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],propTypes:{activeAttachment:q.string,additionalTaggers:q.arrayOf(q.shape({button:q.element.isRequired,container:q.element.isRequired})),additionalFooterActions:q.arrayOf(q.element),audienceXHP:q.instanceOf(HTMLElement),attachmentsConfig:q.object.isRequired,bootloader:c("ReactComposerBootloaderPropTypes"),config:c("ReactComposerConfig").isRequired,hasImplicitLocation:q.bool,isActive:q.bool.isRequired,isCameraIconEnabled:q.bool,isMessagingButtonEnabled:q.bool,locationTaggerPlaceholder:q.string,mediaAcceptParam:q.shape({photos:q.string,both:q.string}),mediaLocation:q.shape({latitude:q.number.isRequired,longitude:q.number.isRequired}),peopleTaggerPlaceholder:q.string,placeID:q.string,postButtonModule:q.func,taggersConfig:q.object,targetData:q.instanceOf(c("ComposerTargetData")).isRequired,weakMention:q.object,isGroupTabSelected:q.bool,selectedGroup:q.object,mediaTakenTime:q.number,asset3d:q.object},getDefaultProps:function s(){return{isCameraIconEnabled:true,isGroupTabSelected:false}},_addMember:function s(event){if(this.props.weakMention!=null){var t={};t.source="invite_from_mention";t.group_id=this.props.config.targetData.targetID;t.members=[this.props.weakMention.uid];new(c("AsyncRequest"))("/ajax/groups/members/add_post.php").setData(t).send();event.preventDefault()}},_renderMentionInvitation:function s(){if(Object.prototype.hasOwnProperty.call(this.props.attachmentsConfig,c("ReactComposerAttachmentType").ADD_MENTIONED)&&this.props.attachmentsConfig[c("ReactComposerAttachmentType").ADD_MENTIONED].enabled&&this.props.weakMention!=null){var t=this.props.weakMention.uid,u=this.props.weakMention.text,v=this.props.config.groupConfig.id,w=this.props.config.groupConfig.name;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactInviteMentionedMemberFooter.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),mentionedPersonId:t,mentionedPersonName:u,groupId:v,groupName:w,onAddMember:this._addMember})}return null},componentDidMount:function s(){this._handleSetProductTaggerShowNUX();this._handleShowContactYourRepresentativeNUX();this._handleSetMessengerPromptShowNUX()},render:function s(){__p&&__p();var t=this.context.gks&&this.context.gks.isSproutsComposer,u=this.context.gks&&this.context.gks.topPostButton,v=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],w=this.props.hasImplicitLocation?"_icv":"",x=v.footerBackground?v.footerBackground:this.props.config.showExpandedComposer?"white":"light-wash",y=t?this._renderSproutsList():null,z=this.props.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].feedOnlyPost,A=this.props.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].feedOnlyPost?c("React").createElement(z,null):null,B=null;if(!t&&this.props.isActive)B=this._getButtons();else if(this.context.gks&&this.context.gks.albumSelectorInComposer)B=c("React").createElement(c("ReactComposerFooterActions.react"),null,this._getAudienceSelector(),k&&(!this.props.isGroupTabSelected||!l)?c("React").createElement(k,{addAnyPostToAlbum:this.context.gks&&this.context.gks.addAnyPostToAlbum,canCreateSharingSpace:this.context.gks&&this.context.gks.canCreateSharingSpace,showSharingSpaces:this.context.gks&&this.context.gks.canPostToSpace}):null);else if(this.context.gks&&this.context.gks.albumTabUsesSelector)B=n&&(!this.props.isGroupTabSelected||!l)?c("React").createElement(n,null):null;var C=null;if(v.audienceIndicator){var D=v.audienceIndicator.module;C=c("React").createElement(D,{background:x,config:this.props.config})}var E=void 0,F=this.props.config,G=F.actorConfig,H=F.postButtonConfig;if(H&&H.isScheduledPost){if(H.scheduleNotice){var I=H.scheduleNotice.module;if(I)E=c("React").createElement(I,{config:this.props.config})}}else if(G&&G.scheduleNotice){var J=G.scheduleNotice.module;if(J)E=c("React").createElement(J,{config:this.props.config})}var K=!u?c("React").createElement(c("ReactComposerFooterContainer.react"),{background:x,className:w},E,c("React").createElement(c("LeftRight.react"),null,B,this._getFooterActions())):null,L=this._renderMentionInvitation();return c("React").createElement("div",{className:"_1j2v"},L,A,this._getTaggers(),y,C,K)},_getTaggers:function s(){__p&&__p();var t=this.props.taggersConfig;if(!t)return null;var u=t[c("ReactComposerTaggerType").PEOPLE]&&t[c("ReactComposerTaggerType").PEOPLE].enabled?c("React").createElement(c("ReactComposerPeopleTaggerContainer.react"),{placeholder:this.props.peopleTaggerPlaceholder,showEntriesOnFocus:false,actorID:this.context.actorID,taggerConfig:t[c("ReactComposerTaggerType").PEOPLE]}):null,v=t[c("ReactComposerTaggerType").LOCATION]&&t[c("ReactComposerTaggerType").LOCATION].enabled?c("React").createElement(c("ReactComposerLocationTaggerContainer.react"),{implicitLocationEnabled:t[c("ReactComposerTaggerType").LOCATION].implicitLocationEnabled,mediaLocation:this.props.mediaLocation,placeholder:this.props.locationTaggerPlaceholder,taggerConfig:t[c("ReactComposerTaggerType").LOCATION],taggerViewStyle:c("ReactComposerTaggerViewStyles").SCROLLABLE,typeaheadLoggerEventName:i.REACT_COMPOSER_LOCATION_TAGGER,typeaheadSearchSource:c("PlaceSearchConstants").SOURCE_W_COMPOSER}):null,w=this.context.composerType===c("ComposerEntryPointRef").TIMELINE,x=t[c("ReactComposerTaggerType").OG]&&t[c("ReactComposerTaggerType").OG].enabled?c("React").createElement(c("ReactComposerActivityTaggerContainer.react"),{actionTypeIDsWithNoFreeForm:t[c("ReactComposerTaggerType").OG].actionTypeIDsWithNoFreeForm,actorID:this.context.actorID,isPersonalTimeline:w,actionTaggerViewStyle:c("ReactComposerTaggerViewStyles").SCROLLABLE,objectTaggerViewStyle:c("ReactComposerTaggerViewStyles").SCROLLABLE,placeID:this.props.placeID,actionTypeIDsToPrefetch:t[c("ReactComposerTaggerType").OG].actionTypeIDsToPrefetch,rankVerbs:t[c("ReactComposerTaggerType").OG].rankVerbs,typeaheadLoggerEventName:i.OGCOMPOSER_TAGGER}):null,y=t[c("ReactComposerTaggerType").ASSET_3D]&&t[c("ReactComposerTaggerType").ASSET_3D].enabled&&this.props.asset3d&&this.props.asset3d.file?c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerAsset3DComponent.react").__setRef("ReactComposerStatusFooter.react"),asset3dFile:this.props.asset3d,composerID:this.context.composerID,bootloadPlaceholder:c("React").createElement("div",null)}):null,z=t[c("ReactComposerTaggerType").BACKDATE]&&t[c("ReactComposerTaggerType").BACKDATE].enabled?c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerBackdateTaggerContainer.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null)}):null,A=this._getSponsorTagger(),B=this.props.additionalTaggers?this.props.additionalTaggers.map(function(J){return J.container}):null,C=null;if(t[c("ReactComposerTaggerType").FORMATTED_TEXT]&&!t[c("ReactComposerTaggerType").FORMATTED_TEXT].noSproutDesign&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].enabled&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].textFormats&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].containerModule){var D=t[c("ReactComposerTaggerType").FORMATTED_TEXT].containerModule;C=c("React").createElement(D,{autoOpen:t[c("ReactComposerTaggerType").FORMATTED_TEXT].autoOpen,defaultFormat:t[c("ReactComposerTaggerType").FORMATTED_TEXT].defaultFormat,fixAspectRatio:t[c("ReactComposerTaggerType").FORMATTED_TEXT].fixAspectRatio,maxNewlines:t[c("ReactComposerTaggerType").FORMATTED_TEXT].maxNewlines,noSproutDesign:t[c("ReactComposerTaggerType").FORMATTED_TEXT].noSproutDesign,statusAttachmentActive:this.props.isActive,stickyStylesEnabled:t[c("ReactComposerTaggerType").FORMATTED_TEXT].stickyStylesEnabled,shouldAutoOpenWhenUserStartsTyping:t[c("ReactComposerTaggerType").FORMATTED_TEXT].shouldAutoOpenWhenUserStartsTyping,textFormats:t[c("ReactComposerTaggerType").FORMATTED_TEXT].textFormats,textLengthLimit:t[c("ReactComposerTaggerType").FORMATTED_TEXT].textLengthLimit})}var E=t[c("ReactComposerTaggerType").TAG_EVENT]&&t[c("ReactComposerTaggerType").TAG_EVENT].enabled?c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerTagEventTaggerContainer.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),isPersonalTimeline:w,key:"tag_event_container",mediaLocation:this.props.mediaLocation,mediaTakenTime:this.props.mediaTakenTime,reactComposerID:this.context.composerID}):null,F=this._getProductTagger(),G=this._getMessagingTagger(),H=this._getContactYourRepresentativeTagger(),I=c("React").createElement(c("BootloadedReactComposerFundraiserTaggerContainer.react"),{taggersConfig:this.props.taggersConfig});return c("React").createElement(c("ReactComposerTaggers.react"),null,y,u,v,x,C,z,A,F,G,H,I,B,E)},_renderSproutsList:function s(){var t=this.context.jsModules&&this.context.jsModules.ComposerSproutsListContainer;return c("React").createElement(t,{config:this.props.config})},_getButtons:function s(){__p&&__p();var t=this.props.taggersConfig;if(!t)return null;var u=this.props.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],v=this.props.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],w=t[c("ReactComposerTaggerType").CAMERA]&&t[c("ReactComposerTaggerType").CAMERA].enabled&&this.props.isCameraIconEnabled?c("React").createElement(c("ReactComposerPhotoTaggerButtonContainer.react"),{customPhotoTaggerButton:u.customPhotoTaggerButton,disableFaceRecognition:v.disableFaceboxTagger,photoLimit:v.photoLimit,mediaAcceptParam:this.props.mediaAcceptParam,targetData:this.props.targetData,mediaConfig:v}):null,x=t[c("ReactComposerTaggerType").PEOPLE]&&t[c("ReactComposerTaggerType").PEOPLE].isMultiCompanyGroup||false,y=t[c("ReactComposerTaggerType").PEOPLE]&&t[c("ReactComposerTaggerType").PEOPLE].enabled?c("React").createElement(c("ReactComposerPeopleTaggerButton.react"),{isMultiCompanyGroup:x}):null,z=t[c("ReactComposerTaggerType").OG]&&t[c("ReactComposerTaggerType").OG].enabled?c("React").createElement(c("ReactComposerActivityTaggerButton.react"),null):null,A=t[c("ReactComposerTaggerType").ALBUM]&&t[c("ReactComposerTaggerType").ALBUM].enabled?this._getAlbumTaggerButton():null,B=t[c("ReactComposerTaggerType").LOCATION]&&t[c("ReactComposerTaggerType").LOCATION].enabled?c("React").createElement(c("ReactComposerLocationTaggerButton.react"),null,c("React").createElement(c("ReactComposerImplicitLocationContainer.react"),null)):null,C=t[c("ReactComposerTaggerType").BACKDATE]&&t[c("ReactComposerTaggerType").BACKDATE].enabled?c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerBackdateTaggerButton.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement(c("XUISpinner.react"),null)}):null,D=this._getSponsorTaggerButton(),E=this.props.additionalTaggers?this.props.additionalTaggers.map(function(L){return L.button}):null,F=null;if(t[c("ReactComposerTaggerType").FORMATTED_TEXT]&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].enabled&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].textFormats&&t[c("ReactComposerTaggerType").FORMATTED_TEXT].buttonModule){var G=t[c("ReactComposerTaggerType").FORMATTED_TEXT].buttonModule;F=c("React").createElement(G,null)}var H=this._getProductTaggerButton(),I=this._getMessagingTaggerButton(),J=this._getContactYourRepresentativeTaggerButton(),K=c("React").createElement(c("BootloadedReactComposerFundraiserTaggerButton.react"),{taggersConfig:this.props.config.taggersConfig,source:"composer"});return c("React").createElement(c("ReactComposerTaggerButtons.react"),null,w,y,z,A,B,F,C,D,H,I,J,K,E)},_getFooterActions:function s(){var t=void 0;if(this.props.postButtonLabel)t=this.props.postButtonLabel;var u=this.props.isGroupTabSelected&&m?m:this.props.postButtonModule||c("ReactComposerPostButtonContainer.react"),v=c("React").createElement(u,{config:this.props.config,label:t});return c("React").createElement(c("ReactComposerFooterActions.react"),null,this.props.additionalFooterActions,this._getSharesheetSelector(),this.context.gks&&this.context.gks.albumSelectorInComposer?null:this._getAudienceSelector(),v)},_getIsAudienceSelectorShownForType:function s(t){switch(this.context.composerType){case c("ComposerEntryPointRef").FEEDX_SPROUTS:return this.props.activeAttachment!==t||j;case c("ComposerEntryPointRef").TIMELINE:return this.props.activeAttachment!==t||p;default:return true}},_getIsSharesheetSelectorShownForType:function s(t){switch(this.context.composerType){case c("ComposerEntryPointRef").FEEDX_SPROUTS:return this.props.activeAttachment!==t||o;default:return false}},_getAudienceSelector:function s(){return this.props.audienceXHP&&this._getIsAudienceSelectorShownForType(c("ReactComposerAttachmentType").STATUS)&&this._getIsAudienceSelectorShownForType(c("ReactComposerAttachmentType").MEDIA)?this.props.isGroupTabSelected&&l?this._getGroupAudienceSelector():c("React").createElement(c("ReactComposerAudienceSelectorContainer.react"),{audienceXHP:this.props.audienceXHP,viewerIsTarget:this.props.targetData.viewerIsTarget}):null},_getSharesheetSelector:function s(){return this._getIsSharesheetSelectorShownForType(c("ReactComposerAttachmentType").STATUS)&&this._getIsSharesheetSelectorShownForType(c("ReactComposerAttachmentType").MEDIA)&&o?c("React").createElement(o,{audienceXHP:this.props.audienceXHP,viewerIsTarget:this.props.targetData.viewerIsTarget,config:this.props.config,composerID:this.context.composerID,targetID:this.props.config.targetData.targetID}):c("React").createElement("span",null)},_getGroupAudienceSelector:function s(){return this.props.isGroupTabSelected&&l&&this.props.selectedGroup?c("React").createElement(l,{group:this.props.selectedGroup}):null},_getSponsorTaggerButton:function s(){var t=this.props.taggersConfig;if(!t||!t[c("ReactComposerTaggerType").SPONSOR]||!t[c("ReactComposerTaggerType").SPONSOR].enabled)return null;var u=t[c("ReactComposerTaggerType").SPONSOR].button,v=t[c("ReactComposerTaggerType").SPONSOR].button?c("React").createElement(u,{key:"sponsor_button"}):null;return v},_getSponsorTagger:function s(){var t=this.props.taggersConfig;if(!t||!t[c("ReactComposerTaggerType").SPONSOR]||!t[c("ReactComposerTaggerType").SPONSOR].enabled)return null;var u=t[c("ReactComposerTaggerType").SPONSOR].container,v=t[c("ReactComposerTaggerType").SPONSOR].container?c("React").createElement(u,{key:"sponsor_container",viewer:t[c("ReactComposerTaggerType").SPONSOR].viewer,showDirectBoost:t[c("ReactComposerTaggerType").SPONSOR].showSponsorTaggerDirectBoost,showDirectBoostNUX:t[c("ReactComposerTaggerType").SPONSOR].showSponsorTaggerDirectBoostNUX,showSponsorRelationship:t[c("ReactComposerTaggerType").SPONSOR].showSponsorTaggerSponsorRelationship}):null;return v},_getProductTaggerButton:function s(){var t=this.props.taggersConfig;if(this._hasAdditionalTaggerContainerWithKey("product_container")||!t||!t[c("ReactComposerTaggerType").PRODUCT]||!t[c("ReactComposerTaggerType").PRODUCT].enabled)return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerProductTaggerButton.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),key:"product_button",productTaggerType:t[c("ReactComposerTaggerType").PRODUCT].productTaggerType})},_checkAddMessengerButtonEnabled:function s(){var t=this.props.taggersConfig;return c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"enabled"])&&this.props.isMessagingButtonEnabled===true},_checkAddContactYourRepresentativeEnabled:function s(){var t=this.props.taggersConfig;return c("getByPath")(t,[c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE,"enabled"])&&c("getByPath")(t,[c("ReactComposerTaggerType").OG,"enabled"])},_getProductTagger:function s(){var t=this.props.taggersConfig;if(this._hasAdditionalTaggerContainerWithKey("product_container")||!t||!t[c("ReactComposerTaggerType").PRODUCT]||!t[c("ReactComposerTaggerType").PRODUCT].enabled)return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerProductTaggerContainer.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),key:"product_container",pageID:this.props.config.targetData.targetID,productTaggerType:t[c("ReactComposerTaggerType").PRODUCT].productTaggerType,reactComposerID:this.context.composerID,showAddProduct:t[c("ReactComposerTaggerType").PRODUCT].showAddProduct,viewer:this.context.actorID})},_handleSetProductTaggerShowNUX:function s(){var t=this.props.taggersConfig;if(!t||!t[c("ReactComposerTaggerType").PRODUCT]||!t[c("ReactComposerTaggerType").PRODUCT].enabled)return;c("ReactComposerTaggerActions").handleSetTaggerShowNUX(this.context.composerID,c("ReactComposerTaggerType").PRODUCT,t[c("ReactComposerTaggerType").PRODUCT].showProductTaggerButtonNUX)},_handleShowContactYourRepresentativeNUX:function s(){if(!this._checkAddContactYourRepresentativeEnabled())return;var t=this.props.taggersConfig,u=c("getByPath")(t,[c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE,"showNux"]);if(!u)return;c("ReactComposerTaggerActions").handleSetTaggerShowNUX(this.context.composerID,c("ReactComposerTaggerType").CONTACT_YOUR_REPRESENTATIVE,true)},_handleSetMessengerPromptShowNUX:function s(){var t=this.props.taggersConfig;if(!t||!c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING])||!c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"enabled"]))return;c("ReactComposerTaggerActions").handleSetTaggerShowNUX(this.context.composerID,c("ReactComposerTaggerType").MESSAGING,t[c("ReactComposerTaggerType").MESSAGING].showMessengerPromptButtonNUX)},_getMessagingTaggerButton:function s(){var t=this.props.taggersConfig;if(!this._checkAddMessengerButtonEnabled()||!t||!c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING])||!c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"messengerPromptNuxType"]))return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerMessagingTaggerButton.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),detectMessageIntent:c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"autoDetectMessageIntent"]),key:"messaging_button",reactComposerID:this.context.composerID,nuxType:c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"messengerPromptNuxType"]),autoSelect:c("getByPath")(t,[c("ReactComposerTaggerType").MESSAGING,"autoSelect"])})},_getMessagingTagger:function s(){if(!this._checkAddMessengerButtonEnabled())return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerMessagingTaggerContainer.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),key:"messaging_container",reactComposerID:this.context.composerID})},_getContactYourRepresentativeTaggerButton:function s(){if(!this._checkAddContactYourRepresentativeEnabled())return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerContactYourRepresentativeTaggerButton.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),key:"contact_your_representative_button",reactComposerID:this.context.composerID})},_getContactYourRepresentativeTagger:function s(){if(!this._checkAddContactYourRepresentativeEnabled())return null;return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerContactYourRepresentativeTaggerContainer.react").__setRef("ReactComposerStatusFooter.react"),bootloadPlaceholder:c("React").createElement("div",null),key:"contact_your_representative_container",reactComposerID:this.context.composerID})},_getAlbumTaggerButton:function s(){return k?c("React").createElement(k,{addAnyPostToAlbum:this.context.gks&&this.context.gks.addAnyPostToAlbum,canCreateSharingSpace:this.context.gks&&this.context.gks.canCreateSharingSpace,showSharingSpaces:this.context.gks&&this.context.gks.canPostToSpace,alternateTriggerComponent:c("React").createElement(c("ReactComposerAlbumTaggerButtonContainer.react"),null)}):null},_hasAdditionalTaggerContainerWithKey:function s(t){var u=this.props.additionalTaggers?this.props.additionalTaggers.map(function(v){return v.container}):null;if(!u)return false;return u.some(function(v){return v.key===t})}});f.exports=r}),null);
__d("ReactComposerStatusFooterContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerAttachmentStore","ReactComposerContextTypes","ReactComposerPostToGroupStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStatusFooter.react","ReactComposerStore","ReactComposerTaggerStore","ReactComposerTaggerType"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerStatusFooterContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerAttachmentStore"),c("ReactComposerStore"),c("ReactComposerTaggerStore"),c("ReactComposerPostToGroupStore"))],statics:{calculateState:function i(j,k){var l=c("ReactComposerAttachmentStore").isSelectedAttachmentActive(j),m=c("ReactComposerAttachmentStore").getSelectedAttachmentID(j),n=c("ReactComposerTaggerStore").getTaggerData(j,c("ReactComposerTaggerType").LOCATION),o=n&&n.implicitLocation&&!!n.implicitLocation.citystring,p=n&&n.place&&n.place.getUniqueID(),q=c("ReactComposerTaggerStore").getTaggerData(j,c("ReactComposerTaggerType").TAG_EVENT);return{activeAttachment:m,isActive:l,hasImplicitLocation:o,mediaLocation:n?n.mediaLocation:null,placeID:p,sproutsDisplayState:c("ReactComposerStore").getSproutsDisplayState(j),isGroupTabSelected:c("ReactComposerPostToGroupStore").getIsTabSelected(j),selectedGroup:c("ReactComposerPostToGroupStore").getSelectedGroup(j),mediaTakenTime:q?q.mediaTakenTime:null,selectedAsset3D:c("ReactComposerTaggerStore").getTaggerData(j,c("ReactComposerTaggerType").ASSET_3D)}}},render:function i(){return c("React").createElement(c("ReactComposerStatusFooter.react"),babelHelpers["extends"]({},this.props,{activeAttachment:this.state.activeAttachment,isActive:this.state.isActive,hasImplicitLocation:this.state.hasImplicitLocation,mediaLocation:this.state.mediaLocation,mediaTakenTime:this.state.mediaTakenTime,placeID:this.state.placeID,sproutsDisplayState:this.state.sproutsDisplayState,isCameraIconEnabled:this.props.isCameraIconEnabled,isMessagingButtonEnabled:this.props.isMessagingButtonEnabled,isGroupTabSelected:this.state.isGroupTabSelected,selectedGroup:this.state.selectedGroup,asset3d:this.state.selectedAsset3D}))}});f.exports=h}),null);
__d("ReactComposerVideoUploadPlaceholder.react",["cx","ix","Image.react","React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStore","XUICloseButton.react"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=c("React").PropTypes,k=c("React").createClass({displayName:"ReactComposerVideoUploadPlaceholder",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerStore"))],propTypes:{onRemoveClick:j.func},statics:{calculateState:function l(m,n){return{posting:c("ReactComposerStore").isPosting(m)}}},render:function l(){var m="_2oe _5ip5",n="_3ew _5iph",o=this.state.posting?null:c("React").createElement(c("XUICloseButton.react"),{className:"_5ipi",onClick:this.props.onRemoveClick,shade:"light",size:"medium"});return c("React").createElement("div",{className:m},o,c("React").createElement(c("Image.react"),{className:n,src:i("82359")}))}});f.exports=k}),null);
__d("ReactComposerVideoUploadPlaceholderContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerContextTypes","ReactComposerVideoUploadActions","ReactComposerVideoUploadPlaceholder.react"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerVideoUploadPlaceholderContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin")],render:function i(){return c("React").createElement(c("ReactComposerVideoUploadPlaceholder.react"),{onRemoveClick:this._onRemoveClick})},_onRemoveClick:function i(){c("ReactComposerVideoUploadActions").remove(this.context.composerID)}});f.exports=h}),null);
__d("ReactComposerVideoUploadProgressBar.react",["cx","DOMContainer.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement("div",{className:"_4340"},c("React").createElement(c("DOMContainer.react"),null,this.props.progressBar))};function l(){i.apply(this,arguments)}l.propTypes={progressBar:k.instanceOf(HTMLElement).isRequired};f.exports=l}),null);
__d("ReactComposerMediaAttachment.react",["cx","fbt","BootloadOnRender.react","ComposerEntryPointRef","immutable","JSResource","LazyComponent.react","MNPageComposerUtils","React","ReactComposerAttachmentType","ReactComposerAudienceSelectorContainer.react","ReactComposerSproutsDisplayState","ReactComposerCollageContainer.react","ReactComposerCollagePlusButton.react","ReactComposerContextTypes","ReactComposerCrossPostToInstagramRow.react","ReactComposerDragDropPromptContainer.react","ReactComposerFooterActions.react","ReactComposerFooterContainer.react","ReactComposerMediaAttachmentButtons.react","ReactComposerMediaUploadsGridContainer.react","ReactComposerPostButtonContainer.react","ReactComposerProfilePhotoBlock.react","ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react","ReactComposerStatusFooterContainer.react","ReactComposerStatusUtils","ComposerTargetData","ReactComposerTaggerSummaryContainer.react","ReactComposerTimelineAudienceSelectorNextButtonContainerGatedModule","ReactComposerVideoUploadPlaceholderContainer.react","ReactComposerVideoUploadProgressBar.react","ReactComposerFundraiserAttachmentContainerGated","ReactDOM"],(function a(b,c,d,aa,e,ba,ca,f){"use strict";__p&&__p();var g,h,i=c("ReactComposerTimelineAudienceSelectorNextButtonContainerGatedModule").module,j=c("ReactComposerFundraiserAttachmentContainerGated").module;g=babelHelpers.inherits(k,c("React").Component);h=g&&g.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=h.constructor).call.apply(l,[this].concat(o)),this.$ReactComposerMediaAttachment1=0,m}k.prototype.render=function(){var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],m=this.props.uploads.size>0&&!this.props.slideshowDialogOpen||!!this.props.video||l.canUploadPhoto&&!this.props.createAlbumLink||this.props.shouldShowCanvasSelector||this.props.shouldShowCarouselURLInputArea||this.props.shouldShowPreview||this.props.isCollectionSelected||this.props.isSlideshowSelected,n=null;if(l.PageComposerMediaAttachmentButtons){var o=l.PageComposerMediaAttachmentButtons;n=c("React").createElement(o,{canvasConfig:l.canvasConfig,carouselConfig:l.carouselConfig,collectionConfig:l.collectionConfig,createAlbumLink:this.props.createAlbumLink,mediaAcceptParam:this.props.config.mediaAcceptParam,onFilesSelected:this.props.onFilesSelected,showCanvasEntryPoint:l.showCanvasEntryPoint,showCollectionEntryPoint:l.showCollectionEntryPoint,showCarouselEntryPoint:l.showCarouselEntryPoint,showPhotoAlbumEntryPoint:l.showPhotoAlbumEntryPoint,showSlideshowEntryPoint:l.showSlideshowEntryPoint,showUploadPhotosButton:l.canUploadPhoto,slideshowConfig:l.slideshowConfig,targetData:this.props.config.targetData})}else n=c("React").createElement(c("ReactComposerMediaAttachmentButtons.react"),{showUploadPhotosButton:l.canUploadPhoto,createAlbumLink:this.props.createAlbumLink,mediaAcceptParam:this.props.config.mediaAcceptParam,onFilesSelected:this.props.onFilesSelected,targetData:this.props.config.targetData});var p=this.context.gks&&this.context.gks.isSproutsComposer,q=p?c("React").createElement(c("ReactComposerStatusFooterContainer.react"),{background:"white",isCameraIconEnabled:false,attachmentsConfig:this.props.config.attachmentsConfig,audienceXHP:this.props.config.audienceXHP,config:this.props.config,mediaAcceptParam:this.props.config.mediaAcceptParam,postButtonModule:this.props.postButtonModule,targetData:this.props.config.targetData,additionalFooterActions:this.props.additionalFooterActions}):null;return m?this.$ReactComposerMediaAttachment2():c("React").createElement("div",null,c("React").createElement(c("ReactComposerDragDropPromptContainer.react"),{root:this,config:this.props.config}),n,q)};k.prototype.componentDidMount=function(){var l=c("ReactDOM").findDOMNode(this);this.$ReactComposerMediaAttachment1=l?l.clientWidth:0;var m=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];if(m)c("ReactComposerStatusUtils").handleMarkdownPreview(this.context.composerID,this.context.targetID,m.markdownPreviewAttachment)};k.prototype.$ReactComposerMediaAttachment3=function(){return i&&this.context.composerType===c("ComposerEntryPointRef").TIMELINE&&this.props.config.targetData.viewerIsTarget?i:this.props.postButtonModule};k.prototype.$ReactComposerMediaAttachment2=function(){__p&&__p();var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],m=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],n=this.context.gks&&this.context.gks.isSproutsComposer,o=void 0;if(this.props.shouldShowPreview){var p=l.ComposerAttachmentPreviewContainer,q=c("React").createElement(p,null);if(this.props.shouldShowCanvasSelector){var r=l.canvasConfig.TypeaheadContainer;o=c("React").createElement("div",null,q,c("React").createElement(r,{config:l.canvasConfig}))}else o=q}else if(this.props.shouldShowCarouselURLInputArea){var s=l.carouselConfig.PhotoCarouselUtils;o=s.getPhotoCarouselMediaContent(l.carouselConfig,this.props.config.nuxConfig)}else if(this.props.shouldShowCanvasSelector){var t=l.canvasConfig,u=t.TypeaheadContainer;o=c("React").createElement(u,{config:t})}else if(this.props.isSlideshowSelected){var v=l.slideshowConfig.thumbnailViewContainer;o=c("React").createElement(v,{maxSelectedImages:l.slideshowConfig.maxPhotoNum,mediaAcceptParam:this.props.config.mediaAcceptParam&&this.props.config.mediaAcceptParam.photos,pageID:l.slideshowConfig.pageID,onFilesSelected:this.props.onFilesSelected})}else if(this.props.isCollectionSelected){var w=l.collectionConfig.previewContainer;o=c("React").createElement(w,{config:l.collectionConfig})}else if(this.props.video)o=c("React").createElement("div",null,c("React").createElement(c("ReactComposerVideoUploadPlaceholderContainer.react"),null),c("React").createElement(c("ReactComposerVideoUploadProgressBar.react"),{progressBar:this.props.videoProgressBar}));else if(this.props.customizedPreviewMediaContent)o=this.props.customizedPreviewMediaContent;else o=c("React").createElement(c("ReactComposerMediaUploadsGridContainer.react"),{enableFaceboxTagger:!l.disableFaceboxTagger,productTaggerType:l.productTaggerType,disablePhotoEditing:l.disablePhotoEditing,disableRemovePhotos:this.props.prefillConfig?this.props.prefillConfig.disableRemovePhotos:false,mediaConfig:l,mediaAcceptParam:this.props.config.mediaAcceptParam&&this.props.config.mediaAcceptParam.both,nuxConfig:this.props.config.nuxConfig,onFilesSelected:this.props.onFilesSelected,canUploadMultiplePhotos:this.props.config.targetData.targetSupportsMultiplePhotos,uploads:this.props.uploads});var x=this.props.sproutsDisplayState===c("ReactComposerSproutsDisplayState").INLINE,y=null,z=this.props.shouldShowCollageUploadLayout&&!x&&this.props.uploads.size<=5&&this.props.uploads.size>0?c("React").createElement(c("ReactComposerCollageContainer.react"),{containerWidth:this.$ReactComposerMediaAttachment1,scaleFactor:this.props.collageScaleFactor,mediaUploads:this.props.uploads,enableFaceboxTagger:!l.disableFaceboxTagger,enablePhotoEditing:!l.disablePhotoEditing,productTaggerType:l.productTaggerType}):null;if(z)y=c("React").createElement(c("ReactComposerCollagePlusButton.react"),{enableFaceboxTagger:this.props.enableFaceboxTagger,composerConfig:this.props.config});if(z||x)o=null;var A=c("React").createElement(c("ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react"),{config:this.props.config,handlePastedText:this.props.handlePastedText,onFocus:this.props.onMentionsInputFocus,onChange:this.props.onMentionsInputChange,onPasteFiles:l.disableUploadOnDragDropAndPaste?null:this.props.onPasteFiles,placeholder:this.$ReactComposerMediaAttachment4(),className:z?"_5b2v":""}),B=m.multilingualStatus?c("React").createElement(m.multilingualStatus,null):null,C=c("React").createElement("div",null,A,B);if(m.showProfilePic)C=c("React").createElement(c("ReactComposerProfilePhotoBlock.react"),{profilePhotoBadge:m.customProfilePhoto,profilePicSrc:m.profilePicSrc,profileURI:m.profileURI},C);var D=m?m.markdownPreviewAttachment:null,E=null;if(D){var F=D.container;E=c("React").createElement(F,{prettify:D.prettify,isMarkdownForInternalEmployee:D.isMarkdownForInternalEmployee})}var G=m.donateButtonConfig,H=null;if(G){var I=G.donateButtonContainer;H=c("React").createElement(I,{charityName:G.charityName,fundraiserCampaignId:G.fundraiserCampaignId})}var J=null;if(m.topicFeedsTagger){var K=m.topicFeedsTagger,L=K.container;J=c("React").createElement(L,{composerFeedID:K.composerFeedID,photoAutoTaggingDelay:K.photoAutoTaggingDelay,photoPollingDuration:K.photoPollingDuration,photoPollingInterval:K.photoPollingInterval,showNux:K.showNux,textAutoTaggingDelay:K.textAutoTaggingDelay,darkLaunch:K.darkLaunch})}var M=null;if(m.groupPostTagsTagger){var N=m.groupPostTagsTagger,O=N.container;M=c("React").createElement(O,{tagsLimit:N.tagsLimit,groupID:N.groupID})}var P=!this.props.shouldShowCarouselURLInputArea&&!this.props.isSlideshowSelected,Q=c("MNPageComposerUtils").shouldShowMessagingButton(this.props.photoUploadsCount,this.props.videoUploadsCount,this.props.isSlideshowSelected,this.props.isCanvasSelected,this.props.isCollectionSelected,this.props.isPhotoCarouselSelected,this.props.shouldShowMessagingCTA),R=null,S=m.aymtTipConfig;if(S&&S.isEligible)R=c("React").createElement(c("BootloadOnRender.react"),{loader:c("JSResource")("ReactComposerAYMTTip.react").__setRef("ReactComposerMediaAttachment.react"),placeholder:c("React").createElement("div",null),component:c("React").createElement(c("LazyComponent.react"),{pageID:S.pageID,minLength:S.minContentLength})});var T=null;if(this.props.config.instagramCrossPostingEnabled&&this.props.uploads.size==1&&!this.props.videoUploadsCount)T=c("React").createElement(c("ReactComposerCrossPostToInstagramRow.react"),{composerID:this.context.composerID});var U=null;if(j)U=c("React").createElement(j,null);var V=null;if(this.props.isOfferLikePost&&m&&m.offerLikePostUpsellInlineBanner){var W=[];for(var X=0;X<this.props.uploads.size;X++){var Y=this.props.uploads.get(X).photoID;if(Y)W.push(Y)}var Z=m.offerLikePostUpsellInlineBanner;V=c("React").createElement(Z,{actorID:this.context.actorID,composerID:this.context.composerID,pageID:m.pageID,photoIDs:W,text:this.props.offerLikePostText||""})}var $=l.disableUploadOnDragDropAndPaste?null:c("React").createElement(c("ReactComposerDragDropPromptContainer.react"),{root:this,config:this.props.config});return c("React").createElement("div",{className:"_2_lq","data-testid":"media-attachment"},$,this.$ReactComposerMediaAttachment5(),c("React").createElement("div",{className:"_4wbt"},c("React").createElement("div",{className:(this.props.shouldScrollComposerContent&&n?"_1w_g":"")+(z?" _3zko":"")},C,this.props.children,E,H,U,c("React").createElement(c("ReactComposerTaggerSummaryContainer.react"),null),o,z),y),J,M,R,T,V,c("React").createElement(c("ReactComposerStatusFooterContainer.react"),{additionalTaggers:this.props.additionalTaggers,additionalFooterActions:this.props.additionalFooterActions,attachmentsConfig:this.props.config.attachmentsConfig,audienceXHP:this.props.config.audienceXHP,config:this.props.config,isCameraIconEnabled:P,isMessagingButtonEnabled:Q,locationTaggerPlaceholder:this.$ReactComposerMediaAttachment6(),mediaAcceptParam:this.props.config.mediaAcceptParam,peopleTaggerPlaceholder:this.$ReactComposerMediaAttachment7(),postButtonLabel:this.props.postButtonLabel?this.props.postButtonLabel:undefined,postButtonModule:this.$ReactComposerMediaAttachment3(),taggersConfig:this.props.taggersConfig?this.props.taggersConfig:this.props.config.taggersConfig,targetData:this.props.targetData||this.props.config.targetData}))};k.prototype.$ReactComposerMediaAttachment6=function(){if(this.props.video)return f._("Where was this taken?");if(this.props.uploads.size>1)return f._("Where were these photos taken?");if(this.props.uploads.size===1)return f._("Where was this photo taken?");return null};k.prototype.$ReactComposerMediaAttachment7=function(){if(!!this.props.video||this.props.uploads.size>0)return f._("Who were you with?");return null};k.prototype.$ReactComposerMediaAttachment4=function(){__p&&__p();if(this.props.placeholder)return this.props.placeholder;var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];if(this.props.video||this.props.uploads.size===1&&this.props.videoUploadsCount===1)return f._("Say something about this video...");else if(this.props.isSlideshowSelected)return f._("Say something about this slideshow...");else if(this.props.uploads.size>1)if(this.props.photoUploadsCount===0)return f._("Say something about these videos...");else if(this.props.videoUploadsCount===0)if(this.props.sphericalPhotoUploadsCount===this.props.photoUploadsCount)return f._("Say something about these 360 photos...");else return f._("Say something about these photos...");else return f._("Say something about these media...");else if(this.props.shouldShowCarouselURLInputArea||this.props.shouldShowPreview){var m=l.carouselConfig.PhotoCarouselUtils;return m.getInputPlaceHolder(l.carouselConfig,this.props.shouldShowPreview)}else if(this.props.sphericalPhotoUploadsCount)return f._("Say something about this 360 photo...");else return f._("Say something about this photo...")};k.prototype.$ReactComposerMediaAttachment5=function(){var l=this.context.gks&&this.context.gks.topPostButton,m=this.context.gks&&this.context.gks.isSproutsComposer;if(!(l&&m))return null;return c("React").createElement("div",{className:"_4y7p"},this.$ReactComposerMediaAttachment8())};k.prototype.$ReactComposerMediaAttachment8=function(){var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],m=l.footerBackground?l.footerBackground:this.props.config.showExpandedComposer?"white":"light-wash",n=c("React").createElement(c("ReactComposerFooterContainer.react"),{background:m},c("React").createElement("div",{className:"clearfix"},c("React").createElement("div",{className:"rfloat"},this.$ReactComposerMediaAttachment9())));return n};k.prototype.$ReactComposerMediaAttachment9=function(){var l=this.props.config.audienceXHP?c("React").createElement(c("ReactComposerAudienceSelectorContainer.react"),{audienceXHP:this.props.config.audienceXHP,viewerIsTarget:this.props.config.targetData.viewerIsTarget}):null,m=this.props.postButtonModule||c("ReactComposerPostButtonContainer.react"),n=c("React").createElement(m,{config:this.props.config});return c("React").createElement(c("ReactComposerFooterActions.react"),null,this.props.additionalFooterActions,l,n)};k.defaultProps={collageScaleFactor:1};k.contextTypes=c("ReactComposerContextTypes");e.exports=k}),null);
__d("ReactComposerCanvasStore",["ReactComposerCanvasActionType","ReactComposerStoreBase"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{shouldShowCanvasSelector:false,isCanvasSelected:false}},function(l){switch(l.type){case c("ReactComposerCanvasActionType").SHOW_CANVAS_SELECTOR:k&&k.$ReactComposerCanvasStore1(l);break;case c("ReactComposerCanvasActionType").HIDE_CANVAS_SELECTOR:k&&k.$ReactComposerCanvasStore2(l);break;default:break}});k=this}j.prototype.$ReactComposerCanvasStore1=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.shouldShowCanvasSelector=true;m.isCanvasSelected=true;this.emitChange(l)};j.prototype.$ReactComposerCanvasStore2=function(k){"use strict";var l=k.composerID,m=this.getComposerData(l);m.shouldShowCanvasSelector=false;m.isCanvasSelected=false;this.emitChange(l)};j.prototype.shouldShowCanvasSelector=function(k){"use strict";return this.getComposerData(k).shouldShowCanvasSelector};j.prototype.isCanvasSelected=function(k){"use strict";return this.getComposerData(k).isCanvasSelected};f.exports=new j()}),null);
__d("ReactComposerVideoUploader",["invariant","Arbiter","ComposerEntryPointRef","DOM","DOMClone","ErrorDialog","QE","React","ReactComposerActions","ReactComposerPostUtilsCore","ReactComposerVideoUploadActions","ReactComposerVideoUploadStore","ReactDOM","Run","SubscriptionsHandler","UserAgent","VideoUploadFile","VideoUploadProcessingDialog.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b.URL||b.webkitURL||{};function j(k){__p&&__p();this.$ReactComposerVideoUploader3=k;this.$ReactComposerVideoUploader2=new(c("SubscriptionsHandler"))();this.$ReactComposerVideoUploader3.composerID||h(0);this.$ReactComposerVideoUploader3.container||h(0);this.$ReactComposerVideoUploader3.progressBarInstance||h(0);this.$ReactComposerVideoUploader3.uploader||h(0);this.$ReactComposerVideoUploader5=k.uploader;this.$ReactComposerVideoUploader1=k.composerID;this.$ReactComposerVideoUploader2.addSubscriptions(this.$ReactComposerVideoUploader5.subscribe("post-failed",this.$ReactComposerVideoUploader6.bind(this)),this.$ReactComposerVideoUploader5.subscribe("post-finished",this.$ReactComposerVideoUploader7.bind(this)),this.$ReactComposerVideoUploader5.subscribe("upload-failed",this.$ReactComposerVideoUploader8.bind(this)),this.$ReactComposerVideoUploader5.subscribe("upload-finished",this.$ReactComposerVideoUploader9.bind(this)));c("Run").onLeave(function(){return this.$ReactComposerVideoUploader5.abandon()}.bind(this));c("Run").onUnload(function(){return this.$ReactComposerVideoUploader5.abandon()}.bind(this))}j.prototype.upload=function(k,l){this.$ReactComposerVideoUploader4=l;var m=c("VideoUploadFile").fromFileInput(k);this.$ReactComposerVideoUploader5.upload(m)};j.prototype.uploadFromFile=function(k,l){var m=k.getFile();if(m&&i.createObjectURL)l.fileURL=i.createObjectURL(m);this.$ReactComposerVideoUploader4=l;this.$ReactComposerVideoUploader5.upload(k)};j.prototype.destroy=function(){this.$ReactComposerVideoUploader2.release()};j.prototype.isUploading=function(){return this.$ReactComposerVideoUploader5.isSessionInProgress()};j.prototype.$ReactComposerVideoUploader10=function(k){if(k)c("ErrorDialog").show(k.error_summary,k.error_description);this.$ReactComposerVideoUploader3.progressBarInstance.reset();this.$ReactComposerVideoUploader5.abandon();c("ReactComposerActions").postError(this.$ReactComposerVideoUploader1,null)};j.prototype.$ReactComposerVideoUploader6=function(k,l){this.$ReactComposerVideoUploader10(l)};j.prototype.$ReactComposerVideoUploader7=function(k,l){c("ReactComposerPostUtilsCore").handlePostSucceeded(this.$ReactComposerVideoUploader1);if(this.$ReactComposerVideoUploader3.composerEntryPointRef===c("ComposerEntryPointRef").TIMELINE)c("QE").logExposure("www_optimistic_video_post");if(this.$ReactComposerVideoUploader3.shouldShowOptimisticVideoPost&&this.$ReactComposerVideoUploader3.composerEntryPointRef===c("ComposerEntryPointRef").TIMELINE)c("Arbiter").inform("videoUpload/complete",{videoID:l.video_id,isToUserProfile:true,videoFileURL:l.fileURL});else c("ReactDOM").render(c("React").createElement(c("VideoUploadProcessingDialog.react"),{videoID:l.video_id,show:true}),this.$ReactComposerVideoUploader3.container);this.$ReactComposerVideoUploader3.onPostSuccess&&this.$ReactComposerVideoUploader3.onPostSuccess()};j.prototype.$ReactComposerVideoUploader8=function(k,l){this.$ReactComposerVideoUploader10(l);var m=c("ReactComposerVideoUploadStore").getVideo(this.$ReactComposerVideoUploader1);if(c("UserAgent").isBrowser("IE")){var n=c("DOMClone").deepClone(m.input);c("DOM").replace(m.input,n)}else m.input.value="";c("ReactComposerVideoUploadActions").remove(this.$ReactComposerVideoUploader1)};j.prototype.$ReactComposerVideoUploader9=function(){this.$ReactComposerVideoUploader5.post(this.$ReactComposerVideoUploader4);this.$ReactComposerVideoUploader3.onUploadSuccess&&this.$ReactComposerVideoUploader3.onUploadSuccess()};f.exports=j}),null);
__d("ReactComposerMediaAttachmentContainer.react",["invariant","PUWMethods","React","Bootloader","ReactComposerAttachmentActions","ReactComposerAttachmentType","ReactComposerCanvasStore","ReactComposerCollectionStore","ComposerEntryPointRef","ReactComposerLoggingName","ReactComposerMediaAttachment.react","ReactComposerMediaAttachmentStore","ReactComposerMediaUploadActions","ReactComposerMediaUploadStore","ReactComposerMediaUploadType","ReactComposerMediaUtils","ReactComposerPhotoCarouselStore","ReactComposerPhotoUploader","ReactComposerScrapedAttachmentStore","ReactComposerSlideshowActions","ReactComposerSlideshowStore","ReactComposerStatusStore","ReactComposerStatusUtils","ReactComposerStore","ReactComposerTaggerActions","ReactComposerTaggerStore","ReactComposerTaggerType","ReactComposerVideoUploadActions","ReactComposerVideoUploader","ReactComposerVideoUploadStore","FluxContainer","QE2Logger","ReactDOM","SubscriptionsHandler","URLScraper","getByPath","ifRequired","ReactComposerContextTypes"],(function a(b,c,d,e,f,g,h){__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(){__p&&__p();var l;"use strict";(l=j.constructor).call.apply(l,[this].concat(Array.prototype.slice.call(arguments)));this.$ComposerMediaAttachmentContainer1=function(event,m){var n=c("ReactComposerMediaUtils").handleSpecialMediaUpload(event,m,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],this.context);if(n)return;var o=event.target?event.target:m.getInput();this.$ComposerMediaAttachmentContainer2||h(0);c("ReactComposerMediaUtils").uploadPhotosOrVideoFromTarget(this.context.composerID,o,this.$ComposerMediaAttachmentContainer2,this.props.config.targetData.targetSupportsMultiplePhotos,this.props.config.targetData.targetSupportsMultiMedia)}.bind(this);this.$ComposerMediaAttachmentContainer8=function(){if(this.state.selectedTagger!==null&&this.state.selectedTagger!==c("ReactComposerTaggerType").PEOPLE)c("ReactComposerTaggerActions").selectTaggerWithoutAutofocus(this.context.composerID,c("ReactComposerLoggingName").MENTIONS_INPUT_FOCUS,c("ReactComposerTaggerType").PEOPLE)}.bind(this);this.$ComposerMediaAttachmentContainer9=function(m){c("ReactComposerStatusUtils").uploadPastedFile(this.context.composerID,m[0],this.$ComposerMediaAttachmentContainer2);c("ReactComposerMediaUploadActions").photosSelect(this.context.composerID,1,c("PUWMethods").COPYPASTE)}.bind(this);this.$ComposerMediaAttachmentContainer10=function(m,n,o){var p=this.context.composerID,q=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],r=c("ReactComposerPhotoCarouselStore").shouldShowURLEditArea(p);if(q.carouselConfig&&r&&q.carouselConfig.ComposerPhotoCarouselPlaceHolder)c("ReactComposerStatusUtils").scrapeLink(p,this.context.targetID,m,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").LINK_PASTED);if(this.props.hasMessagingLink){var s=o?o.getCurrentContent().getPlainText():"",t=c("URLScraper").match(m)||s.concat(m);this.$ComposerMediaAttachmentContainer11(p,t)}return false}.bind(this);this.$ComposerMediaAttachmentContainer7=function(m){__p&&__p();var n=this.context.composerID,o=m.getCurrentContent().getPlainText();this.$ComposerMediaAttachmentContainer5(o);if(!c("URLScraper").trigger(o)){if(this.props.hasMessagingLink)this.$ComposerMediaAttachmentContainer11(n,o);var p=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],q=c("ReactComposerPhotoCarouselStore").shouldShowURLEditArea(n);if(!p.carouselConfig||!q)return;if(p.carouselConfig.ComposerPhotoCarouselPlaceHolder)c("ReactComposerStatusUtils").scrapeLink(n,this.context.targetID,o,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").INLINE_COMPOSER)}}.bind(this);this.$ComposerMediaAttachmentContainer1=this.$ComposerMediaAttachmentContainer1.bind(this)}k.getStores=function(){"use strict";return[c("ReactComposerCanvasStore"),c("ReactComposerCollectionStore"),c("ReactComposerMediaAttachmentStore"),c("ReactComposerPhotoCarouselStore"),c("ReactComposerMediaUploadStore"),c("ReactComposerScrapedAttachmentStore"),c("ReactComposerSlideshowStore"),c("ReactComposerTaggerStore"),c("ReactComposerVideoUploadStore"),c("ReactComposerStore")]};k.calculateState=function(l,m,n){"use strict";var o=n.composerID,p=c("ReactComposerMediaUploadStore").getUploadsOfType(o,c("ReactComposerMediaUploadType").PHOTO),q=c("ReactComposerMediaUploadStore").getUploadsOfType(o,c("ReactComposerMediaUploadType").VIDEO),r=c("ReactComposerMediaUploadStore").getUploads(o),s=m.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],t=p.filter(function(u){return u.isSpherical===true}).size;return{createAlbumLink:c("ReactComposerMediaAttachmentStore").getCreateAlbumLink(o),shouldShowCanvasSelector:c("ReactComposerCanvasStore").shouldShowCanvasSelector(o),shouldShowCarouselURLInputArea:c("ReactComposerPhotoCarouselStore").shouldShowURLEditArea(o),shouldShowPreview:c("ReactComposerScrapedAttachmentStore").getMarkup(o)!==null,shouldShowCollageUploadLayout:s.shouldShowCollageUploadLayout,shouldShowMessagingCTA:s.shouldShowMessagingCTA,shouldScrollComposerContent:s.shouldScrollComposerContent,collageScaleFactor:s.collageScaleFactor,slideshowDialogOpen:c("ReactComposerSlideshowStore").shouldShowSlideshowDialog(o),isCanvasSelected:c("ReactComposerCanvasStore").isCanvasSelected(o),isCollectionSelected:c("ReactComposerCollectionStore").isCollectionSelected(o),isPhotoCarouselSelected:c("ReactComposerPhotoCarouselStore").isPhotoCarouselSelected(o),isSlideshowSelected:c("ReactComposerSlideshowStore").isSlideshowSelected(o),selectedTagger:c("ReactComposerTaggerStore").getSelectedTagger(o),uploads:r,isOfferLikePost:l?l.isOfferLikePost:false,offerLikePostText:l?l.offerLikePostText:null,photoUploadsCount:p.size,sphericalPhotoUploadsCount:t,videoUploadsCount:q.size,video:c("ReactComposerVideoUploadStore").getVideo(o),videoProgressBar:c("ReactComposerMediaAttachmentStore").getVideoProgressBar(o),videoProgressBarInstance:c("ReactComposerMediaAttachmentStore").getVideoProgressBarInstance(o),videoUploader:c("ReactComposerMediaAttachmentStore").getVideoUploader(o),sproutsDisplayState:c("ReactComposerStore").getSproutsDisplayState(o)}};k.prototype.componentWillMount=function(){"use strict";this.$ComposerMediaAttachmentContainer4=new(c("SubscriptionsHandler"))();var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],m=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];if(m&&m.defaultMarkdownOn&&c("ReactComposerTaggerStore").getTaggerData(this.context.composerID,c("ReactComposerTaggerType").MARKDOWN).isMarkdown===undefined)c("ReactComposerTaggerActions").setTaggerDataWithoutLogging(this.context.composerID,c("ReactComposerTaggerType").MARKDOWN,{isMarkdown:true});this.$ComposerMediaAttachmentContainer2=new(c("ReactComposerPhotoUploader"))(this.context,l.photoLimit,{disableFaceRecognition:l.disableFaceboxTagger});var n=c("ReactComposerMediaUtils").subscribeToImageEdit(this.context.composerID,this.$ComposerMediaAttachmentContainer2);this.$ComposerMediaAttachmentContainer4.addSubscriptions(n)};k.prototype.componentDidMount=function(){"use strict";var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];this.$ComposerMediaAttachmentContainer3=new(c("ReactComposerVideoUploader"))({composerID:this.context.composerID,container:c("ReactDOM").findDOMNode(this.refs.videoContainer),progressBarInstance:this.state.videoProgressBarInstance,uploader:this.state.videoUploader,shouldShowOptimisticVideoPost:l.shouldShowOptimisticVideoPost,composerEntryPointRef:this.context.composerType});c("ReactComposerVideoUploadActions").setUploader(this.context.composerID,this.$ComposerMediaAttachmentContainer3);var m=c("ReactComposerStatusStore").getMessageText(this.context.composerID);this.$ComposerMediaAttachmentContainer5(m)};k.prototype.componentWillUnmount=function(){"use strict";this.$ComposerMediaAttachmentContainer3&&this.$ComposerMediaAttachmentContainer3.destroy();this.$ComposerMediaAttachmentContainer4&&this.$ComposerMediaAttachmentContainer4.release()};k.prototype.componentWillUpdate=function(l,m){"use strict";m=m||{};var n=this.state.uploads.size>0||!!this.state.video,o=m.uploads.size>0||!!m.video,p=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];if(p.returnToStatusIfNoUploads&&n&&!o&&!this.state.slideshowDialogOpen){c("ReactComposerAttachmentActions").selectAttachment(this.context.composerID,c("ReactComposerAttachmentType").STATUS,true);if(c("ReactComposerSlideshowStore").isSlideshowSelected(this.context.composerID))c("ReactComposerSlideshowActions").hideSlideshowEditField(this.context.composerID)}};k.prototype.render=function(){"use strict";return c("React").createElement("div",null,c("React").createElement(c("ReactComposerMediaAttachment.react"),babelHelpers["extends"]({},this.props,{createAlbumLink:this.state.createAlbumLink,isCanvasSelected:this.$ComposerMediaAttachmentContainer6()?true:this.state.isCanvasSelected,isCollectionSelected:this.state.isCollectionSelected,isPhotoCarouselSelected:this.state.isPhotoCarouselSelected,isSlideshowSelected:this.state.isSlideshowSelected,shouldShowCanvasSelector:this.$ComposerMediaAttachmentContainer6()?true:this.state.shouldShowCanvasSelector,shouldShowCarouselURLInputArea:this.state.shouldShowCarouselURLInputArea,shouldShowCollageUploadLayout:this.state.shouldShowCollageUploadLayout,sproutsDisplayState:this.state.sproutsDisplayState,shouldScrollComposerContent:this.state.shouldScrollComposerContent,collageScaleFactor:this.state.collageScaleFactor,shouldShowPreview:this.state.shouldShowPreview,slideshowDialogOpen:this.state.slideshowDialogOpen,shouldShowMessagingCTA:this.state.shouldShowMessagingCTA,isOfferLikePost:this.state.isOfferLikePost,offerLikePostText:this.state.offerLikePostText,onFilesSelected:this.$ComposerMediaAttachmentContainer1,onMentionsInputChange:this.$ComposerMediaAttachmentContainer7,onMentionsInputFocus:this.$ComposerMediaAttachmentContainer8,onPasteFiles:this.$ComposerMediaAttachmentContainer9,handlePastedText:this.$ComposerMediaAttachmentContainer10,postButtonModule:this.props.postButtonModule,uploads:this.state.uploads,videoUploadsCount:this.state.videoUploadsCount,photoUploadsCount:this.state.photoUploadsCount,sphericalPhotoUploadsCount:this.state.sphericalPhotoUploadsCount,video:this.state.video,videoProgressBar:this.state.videoProgressBar})),c("React").createElement("div",{ref:"videoContainer"}))};k.prototype.$ComposerMediaAttachmentContainer6=function(){"use strict";var l=false;c("ifRequired")("ReactObjectiveFirstPagesComposerViewMode",function(m){l=this.props.viewMode===m.CREATE_CANVAS_VIEW}.bind(this));return l};k.prototype.$ComposerMediaAttachmentContainer11=function(l,m){"use strict";var n=this.props.config.taggersConfig,o=c("getByPath")(n,[c("ReactComposerTaggerType").MESSAGING,"canDefaultCTAMessagingLink"]);if(this.props.hasMessagingLink&&this.props.hasMessagingLink(m)&&!c("ReactComposerTaggerStore").hasMessagingCTA(l)){c("QE2Logger").logExposureForUser("composer_default_cta_messaging_link_in_text_universe");if(o)c("ReactComposerTaggerActions").selectTaggerWithoutLogging(l,c("ReactComposerTaggerType").MESSAGING)}};k.prototype.$ComposerMediaAttachmentContainer5=function(l){"use strict";__p&&__p();var m=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];if(this.context.composerType===c("ComposerEntryPointRef").PAGES_FEED)c("Bootloader").loadModules(["SalesPromoUtils.react"],function(n){if(n.checkIsOLP(l)){var o=m.offerLikePostUpsell||"",p=o.indexOf("inline")!==-1;if(p)this.setState({isOfferLikePost:true,offerLikePostText:l});if(o==="none"||p)if(m.pageID)c("QE2Logger").logExposureForPage("orgoff_offer_creation",m.pageID)}else this.setState({offerLikePostText:l})}.bind(this),"ReactComposerMediaAttachmentContainer.react")};k.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(k,{withContext:true,withProps:true})}),null);
__d("ReactComposerMediaAttachmentPostButton.react",["fbt","React","ReactComposerConfig","ReactComposerPostButtonContainer.react","ReactComposerVideoCopyrightDialog.react","ReactFragment","XUIContextualDialog.react","XUIContextualDialogBody.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").PureComponent);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={copyrightDialogShown:false},this.$ReactComposerMediaAttachmentPostButton3=function(){if(this.props.showCopyrightDialogOnPost){this.setState({copyrightDialogShown:true});return false}if(this.props.onClick){this.props.onClick();return false}return true}.bind(this),this.$ReactComposerMediaAttachmentPostButton1=function(){this.setState({copyrightDialogShown:false})}.bind(this),this.$ReactComposerMediaAttachmentPostButton2=function(){this.setState({copyrightDialogShown:false});this.props.onClick&&this.props.onClick()}.bind(this),n}l.prototype.renderLayers=function(){return c("ReactFragment").create({limitDialog:c("React").createElement(c("XUIContextualDialog.react"),{alignment:"right",contextRef:function(){return this.refs.post}.bind(this),position:"below",shown:this.props.limitExceeded,width:this.props.contextualDialogWidth},c("React").createElement(c("XUIContextualDialogBody.react"),null,h._("You can only add {number} photos at a time",[h.param("number",this.props.photoLimit)]))),copyrightDialog:c("React").createElement(c("ReactComposerVideoCopyrightDialog.react"),{shown:this.state.copyrightDialogShown,onCancel:this.$ReactComposerMediaAttachmentPostButton1,onConfirm:this.$ReactComposerMediaAttachmentPostButton2})})};l.prototype.render=function(){return c("React").createElement("span",null,c("React").createElement(c("ReactComposerPostButtonContainer.react"),{config:this.props.config,forceDisabled:this.props.disabled,onClickPreprocess:this.$ReactComposerMediaAttachmentPostButton3,label:this.props.label,ref:"post",useDefaultScheduleComponent:this.props.useDefaultScheduleComponent}),this.renderLayers())};l.propTypes={config:c("ReactComposerConfig").isRequired,disabled:k.bool,limitExceeded:k.bool,onClick:k.func,photoLimit:k.number.isRequired,showCopyrightDialogOnPost:k.bool,label:k.string,contextualDialogWidth:k.number,useDefaultScheduleComponent:k.bool};l.defaultProps={disabled:false,limitExceeded:false,showCopyrightDialogOnPost:false,contextualDialogWidth:300};f.exports=l}),null);
__d("ReactComposerMediaEagerAttachment.react",["React","ReactComposerAttachmentActions","ReactComposerAttachmentBodyMixin","ReactComposerAttachmentType","ReactComposerConfig","ReactComposerMediaAttachmentActions","ReactComposerMediaAttachmentContainer.react","ReactComposerStatusActions","ReactComposerTaggerActions","gkx"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerMediaEagerAttachment",mixins:[c("ReactComposerAttachmentBodyMixin")()],propTypes:{config:c("ReactComposerConfig").isRequired,postButtonModule:h.func.isRequired},statics:{attachmentID:c("ReactComposerAttachmentType").MEDIA},componentWillMount:function j(){var k=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].bootstrapData;c("ReactComposerStatusActions").setMentionsSource(this.context.composerID,k.mentionsSource);c("ReactComposerMediaAttachmentActions").setConfig(this.context.composerID,k);c("ReactComposerAttachmentActions").setInitialized(this.context.composerID,c("ReactComposerAttachmentType").MEDIA);if(c("gkx")("AT7rNDDdaqbNsNKVWAB2srntBC9kKTH71mtXESBBj2RChibXb3-wXs1S24n11evPW74QN4P34-lCxfKFpDx7_2p-"))c("ReactComposerTaggerActions").updateTaggersSource(this.context.composerID,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].bootstrapData.taggersSource)},componentDidMount:function j(){if(!c("gkx")("AT7rNDDdaqbNsNKVWAB2srntBC9kKTH71mtXESBBj2RChibXb3-wXs1S24n11evPW74QN4P34-lCxfKFpDx7_2p-"))c("ReactComposerTaggerActions").updateTaggersSource(this.context.composerID,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].bootstrapData.taggersSource)},renderX:function j(){return c("React").createElement(c("ReactComposerMediaAttachmentContainer.react"),this.props)}});f.exports=i}),null);
__d("ReactComposerMediaPostButtonContainerMixin",["React","ReactComponentWithPureRenderMixin","ReactComposerActions","ReactComposerAttachmentType","ReactComposerConfig","ReactComposerConstants","ReactComposerContextTypes","ReactComposerInit","ReactComposerMediaAttachmentPostButton.react","ReactComposerMediaUploadStore","ReactComposerOptimisticPostingActions","ReactComposerPhotoStore","ReactComposerPostUtils","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerStore","ReactComposerVideoUploadStore","ReloadPage","$"],(function a(b,c,d,e,f,g){__p&&__p();var h=c("React").PropTypes,i={contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerMediaUploadStore"),c("ReactComposerPhotoStore"),c("ReactComposerStore"),c("ReactComposerVideoUploadStore")),c("ReactComponentWithPureRenderMixin")],propTypes:{config:c("ReactComposerConfig").isRequired,onClickPreprocess:h.func,label:h.string,forceDisabled:h.bool,useDefaultScheduleComponent:h.bool},statics:{calculateState:function j(k,l,m){var n=l.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA],o=c("ReactComposerPhotoStore").isLimitExceeded(k,n.photoLimit),p=m.gks[c("ReactComposerConstants").GK_VIDEO_COPYRIGHT]&&!!c("ReactComposerVideoUploadStore").getVideo(k),q=c("ReactComposerVideoUploadStore").getVideo(k)&&c("ReactComposerStore").isPosting(k),r=c("ReactComposerPhotoStore").isSphericalPhotoUpdating(k),s=c("ReactComposerMediaUploadStore").isUploading(k)||c("ReactComposerPhotoStore").isRecognizing(k)||r||q,t=m.gks.optimisticPosting?o:c("ReactComposerPostUtils").isPostButtonDisabled(k,n.photoLimit);return{limitExceeded:o,isUploading:s,disabled:l.forceDisabled||t,showCopyrightDialogOnPost:p}}},render:function j(){var k=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].photoLimit;return c("React").createElement(c("ReactComposerMediaAttachmentPostButton.react"),{disabled:this.state.disabled,limitExceeded:this.state.limitExceeded,onClick:this._onClick,photoLimit:k,showCopyrightDialogOnPost:this.state.showCopyrightDialogOnPost,config:this.props.config,label:this.props.label,useDefaultScheduleComponent:this.props.useDefaultScheduleComponent})},_onClick:function j(){if(this.props.onClickPreprocess)if(!this.props.onClickPreprocess())return;if(this.context.gks.optimisticPosting)if(this.state.isUploading)c("ReactComposerOptimisticPostingActions").startOptimisticallyPosting(this.context.composerID,this.props.config,c("ReactComposerAttachmentType").MEDIA,this.context.actorID,this.context.targetID);else this._startPost();else this._startPost()},_startPost:function j(){c("ReactComposerActions").postStarted(this.context.composerID,{actorID:this.context.actorID,config:this.props.config,targetID:this.context.targetID});if(this.props.config.dialogComposer){c("ReactComposerInit").unmountInstance(this.context.composerID);c("$")(this.props.config.dialogElementID).remove();c("ReloadPage").now()}}};f.exports=i}),null);
__d("XReactComposerMLEAttachmentBootstrapController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/mle/bootstrap/",{composer_id:{type:"String",required:true}})}),null);
__d("ReactComposerMLELazyAttachment.react",["cx","Bootloader","React","ReactComposerAttachmentType","ReactComposerLoadableAttachmentBodyMixin","XReactComposerMLEAttachmentBootstrapController"],(function a(b,c,d,e,f,g,h){var i=c("React").createClass({displayName:"ReactComposerMLELazyAttachment",mixins:[c("ReactComposerLoadableAttachmentBodyMixin")],statics:{attachmentID:c("ReactComposerAttachmentType").MLE},bootload:function j(k){c("Bootloader").loadModules(["ReactComposerMLEAttachmentContainer.react"],k,"ReactComposerMLELazyAttachment.react")},getBootstrapURI:function j(){return c("XReactComposerMLEAttachmentBootstrapController").getURIBuilder().setString("composer_id",this.context.composerID).getURI()}});f.exports=i}),null);
__d("XReactComposerRedEnvelopeV2AttachmentBootstrapController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/redenv/v2/bootstrap/",{composer_id:{type:"String",required:true},composer_type:{type:"Enum",required:true,enumType:1},target_id:{type:"Int",required:true}})}),null);
__d("ReactComposerRedEnvelopeV2LazyAttachment.react",["ReactComposerAttachmentType","ReactComposerLoadableAttachmentBodyMixin","ActorURI","Bootloader","React","XReactComposerRedEnvelopeV2AttachmentBootstrapController"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerRedEnvelopeV2LazyAttachment",mixins:[c("ReactComposerLoadableAttachmentBodyMixin")],statics:{attachmentID:c("ReactComposerAttachmentType").RED_ENVELOPE},bootload:function i(j){c("Bootloader").loadModules(["ReactComposerRedEnvelopeV2AttachmentContainer.react"],j,"ReactComposerRedEnvelopeV2LazyAttachment.react")},getBootstrapURI:function i(){var j=c("XReactComposerRedEnvelopeV2AttachmentBootstrapController").getURIBuilder().setString("composer_id",this.context.composerID).setEnum("composer_type",this.context.composerType).setInt("target_id",this.context.targetID).getURI();return c("ActorURI").create(j,this.context.actorID)}});f.exports=h}),null);
__d("ReactComposerSessionMetricsActions",["ReactComposerDispatcher","ReactComposerSessionMetricsActionTypes","ReactComposerSessionMetricsStore"],(function a(b,c,d,e,f,g){c("ReactComposerSessionMetricsStore");var h={keystroke:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSessionMetricsActionTypes").KEYSTROKE})},paste:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,type:c("ReactComposerSessionMetricsActionTypes").PASTE})}};f.exports=h}),null);
__d("ReactComposerPromptsActions",["ReactComposerDispatcher","ReactComposerPromptsActionTypes","ReactComposerPromptsStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerPromptsStore");h.prototype.setMinutiaeData=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerPromptsActionTypes").SET_MINUTIAE_DATA,minutiaeData:j})};h.prototype.setPromptData=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerPromptsActionTypes").SET_PROMPT_DATA,promptData:j})};h.prototype.setPromptXHP=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerPromptsActionTypes").SET_PROMPT_XHP,promptXHP:j})};h.prototype.setMemeCategoryID=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerPromptsActionTypes").SET_MEME_CATEGORY_ID,memeCategoryID:j})};function h(){"use strict"}f.exports=new h()}),null);
__d("PromptsInteractionsEventNames",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({OPEN_SELECTING_CONTENT:"open_selecting_content",OPEN_SUGGESTING_CONTENT:"open_suggesting_content",TAP_SECONDARY_BUTTON:"tap_secondary_button",CLOSE_SUGGESTION:"close_suggestion",SELECT_SUGGESTION:"select_suggestion",CANCEL_COMPOSER:"cancel_composer",POST_PROMPT:"post_prompt",POST_WITHOUT_PROMPT:"post_without_prompt",POST_CREATED:"post_created",IMPRESSION:"impression",CLIENT_RANKER_IMPRESSION:"client_ranker_impression",SHOW_SUGGESTION:"show_suggestion",HIDE_SUGGESTION:"hide_suggestion",PROMPT_AVAILABLE:"prompt_available",PROMPT_NOT_CONSIDERED:"prompt_not_considered",DEIMPRESSION:"deimpression",CLICK_TAGGER:"og-tagger-click",UNDO_DISMISS:"undo_dismiss",SHARE:"share",CAMERA_CAPTURE:"camera_capture",CAMERA_FLIP:"camera_flip",SAVE_TO_CAMERA_ROLL:"save_to_camera_roll",TAP_FLASH_BUTTON:"tap_flash_button",SCREENSHOT:"screenshot",CLOSE_BUTTON:"close_button",BACK_TO_CAMERA_BUTTON:"back_to_camera_button",BACK_BUTTON:"back_button",PREVIEW_CONFIRM:"preview_confirm",GALLERY_SELECT:"gallery_select",IMPRESSION_END:"impression_end",EFFECT_APPLIED:"effect_applied",THUMBNAIL_IMPRESSION:"thumbnail_impression",NUX_SHOWN:"nux_shown",NUX_DIALOG_BUTTON_CLICKED_ALLOW:"nux_dialog_button_clicked_allow",NUX_DIALOG_BUTTON_CLICKED_DENY:"nux_dialog_button_clicked_deny",NUX_BUTTON_CLICKED:"nux_button_clicked",PERMISSION_ACCEPTED:"permission_accepted",PERMISSION_DENIED:"permission_denied",NUX_VIDEO_DOWNLOAD:"nux_video_download",NUX_BACK_TO_TOP:"nux_back_to_top",CAMERA_OFF:"camera_off",START_INSPIRATION_SESSION:"start_inspiration_session",END_INSPIRATION_SESSION:"end_inspiration_session",START_NUX_SESSION:"start_nux_session",END_NUX_SESSION:"end_nux_session",START_CAMERA_SESSION:"start_camera_session",END_CAMERA_SESSION:"end_camera_session",START_EDITING_SESSION:"start_editing_session",END_EDITING_SESSION:"end_editing_session",START_SHARE_SHEET_SESSION:"start_share_sheet_session",END_SHARE_SHEET_SESSION:"end_share_sheet_session",START_EFFECTS_TRAY_SESSION:"start_effects_tray_session",END_EFFECTS_TRAY_SESSION:"end_effects_tray_session",START_GALLERY_SESSION:"start_gallery_session",END_GALLERY_SESSION:"end_gallery_session",START_DOODLE_SESSION:"start_doodle_session",END_DOODLE_SESSION:"end_doodle_session",START_TEXT_SESSION:"start_text_session",END_TEXT_SESSION:"end_text_session",CAMERA_BUTTON_IN_FEED_IMPRESSION:"camera_button_in_feed_impression",TAP_PRECAPTURE_AUDIO_MUTE_BUTTON:"tap_precapture_audio_mute_button",TAP_AUDIO_MUTE_BUTTON:"tap_audio_mute_button",TAP_MIRROR_ASSET_BUTTON:"tap_mirror_asset_button",TAP_ROTATE_BUTTON:"tap_rotate_button",NO_EFFECTS:"no_effects",CHANGE_CATEGORY:"change_category",START_STICKER_SESSION:"start_sticker_session",END_STICKER_SESSION:"end_sticker_session",START_LOCATION_PICKER_SESSION:"start_location_picker_session",END_LOCATION_PICKER_SESSION:"end_location_picker_session",STICKER_SELECTED:"sticker_selected",STICKER_LOCATION_SEARCH_BAR_ENTERS:"sticker_location_search_bar_enters",STICKER_ADJUSTED:"sticker_adjusted",STICKER_DELETED:"sticker_deleted",CHANGE_STICKER_STYLE:"change_sticker_style",EFFECT_NOT_AVAILABLE:"effect_not_available",INTER_EFFECT_LINK_REQUEST:"inter_effect_link_request",INTER_EFFECT_LINK_SUCCESS:"inter_effect_link_success",INTER_EFFECT_LINK_FAIL:"inter_effect_link_fail",POST_AS_PAGE_DIALOG:"post_as_page_dialog",POST_AS_PAGE_CONFIRM:"post_as_page_confirm",POST_AS_PAGE_DISMISS:"post_as_page_dismiss",CHANGE_SATP_STYLE:"change_satp_style",START_TEXT_MODE_SESSION:"start_text_mode_session",END_TEXT_MODE_SESSION:"end_text_mode_session",EFFECT_TEXT_START_EDIT:"effect_text_start_edit",EFFECT_TEXT_DONE_EDIT:"effect_text_done_edit",LAST_SESSION_CRASHED:"last_session_crashed",TAP_SETTINGS_BUTTON:"tap_settings_button",CAMERA_CAPTURE_ATTEMPTED:"camera_capture_attempted",CHANGE_CAPTURE_MODE:"change_capture_mode",START_NAME_PICKER_SESSION:"start_name_picker_session",END_NAME_PICKER_SESSION:"end_name_picker_session",START_GIF_SESSION:"start_gif_session",END_GIF_SESSION:"end_gif_session",BLANK_EFFECTS_TRAY_IMPRESSION:"blank_effects_tray_impression",BLANK_CATEGORY_IMPRESSION:"blank_category_impression",EMPTY_CATEGORIES_SERVER_RESPONSE:"empty_categories_server_response",EMPTY_FIRST_PAGE_IN_CATEGORY_SERVER_RESPONSE:"empty_first_page_in_category_server_response",DELETE_TEXT:"delete_text",ADJUST_TEXT:"adjust_text",CHANGE_TEXT_ALIGNMENT:"change_text_alignment",CHANGE_TEXT_BLOCK:"change_text_block",TEXT_FONT_SELECTED:"text_font_selected",CHANGE_TEXT_COLOR:"change_text_color",MULTI_GALLERY_SELECT:"multi_gallery_select",MULTI_GALLERY_DESELECT:"multi_gallery_deselect",DOODLE_BRUSH_TYPE_SELECTED:"doodle_brush_type_selected",DOODLE_COLOR_SELECTED:"doodle_color_selected",DOODLE_SIZE_SELECTED:"doodle_size_selected",UNDO_DOODLE:"undo_doodle",ADD_DOODLE:"add_doodle",LOADING_IMPRESSION:"loading_impression",LOADING_IMPRESSION_END:"loading_impression_end",VIEWING_IMPRESSION:"viewing_impression",VIEWING_IMPRESSION_END:"viewing_impression_end",DELETE_MEDIA_IN_COMPOSER:"delete_media_in_composer",POST_MULTIMEDIA:"post_multimedia",EFFECT_ENTER_ADJUSTMENT:"effect_enter_adjustment",EFFECT_EXIT_ADJUSTMENT:"effect_exit_adjustment",START_CROPPING_SESSION:"start_cropping_session",END_CROPPING_SESSION:"end_cropping_session",START_TAGGING_SESSION:"start_tagging_session",END_TAGGING_SESSION:"end_tagging_session",CHANGE_TEXT_STRING:"change_text_string",TEXT_ADJUSTED:"text_adjusted",TEXT_DELETED:"text_deleted",START_TRIMMER_SESSION:"start_trimmer_session",END_TRIMMER_SESSION:"end_trimmer_session",POST_MEDIA:"post_media",TAP_RESET_BUTTON:"tap_reset_button"})}),null);
__d("ReactComposerPromptsLoggingActionTypes",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({SET_SELECTED_MEME:null},"ReactComposerPromptsLoggingActionTypes")}),null);
__d("XReactFeedComposerXPromptDismissController",["XController"],(function a(b,c,d,e,f,g){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"},composer_session_id:{type:"String"}})}),null);
__d("ReactComposerPromptsLoggingStore",["AsyncRequest","ComposerXSessionIDs","MemePickerLogger","PromptsInteractionsEventNames","ReactComposerActionTypes","ReactComposerPromptsLoggingActionTypes","ReactComposerPromptsStore","ReactComposerStoreBase","ReactComposerTaggerStore","ReactComposerTaggerType","XReactFeedComposerXPromptDismissController"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";var k=void 0;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;case c("ReactComposerPromptsLoggingActionTypes").SET_SELECTED_MEME:this.$ReactComposerPromptsLoggingStore2(k);break;default:}};j.prototype.$ReactComposerPromptsLoggingStore1=function(k){"use strict";var l=this.validateAction(k,"composerID"),m=this.$ReactComposerPromptsLoggingStore3(l);m&&this.$ReactComposerPromptsLoggingStore4(m,l);var n=this.$ReactComposerPromptsLoggingStore5(l);if(n)c("MemePickerLogger").logMemePosted(n)};j.prototype.$ReactComposerPromptsLoggingStore3=function(k){"use strict";if(this.$ReactComposerPromptsLoggingStore5(k))return c("PromptsInteractionsEventNames").POST_PROMPT;if(c("ReactComposerPromptsStore").getMinutiaeData(k))if(this.$ReactComposerPromptsLoggingStore6(k))return c("PromptsInteractionsEventNames").POST_WITHOUT_PROMPT;else return c("PromptsInteractionsEventNames").POST_PROMPT;return null};j.prototype.$ReactComposerPromptsLoggingStore6=function(k){"use strict";var l=c("ReactComposerPromptsStore").getMinutiaeData(k);if(!l)return false;return this.$ReactComposerPromptsLoggingStore7(k,l)||this.$ReactComposerPromptsLoggingStore8(k,l)};j.prototype.$ReactComposerPromptsLoggingStore7=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.$ReactComposerPromptsLoggingStore8=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.$ReactComposerPromptsLoggingStore2=function(k){"use strict";var l=this.validateAction(k,["composerID","selectedMeme"]),m=l[0],n=l[1],o=this.getComposerData(m);o.selectedMeme=n};j.prototype.$ReactComposerPromptsLoggingStore5=function(k){"use strict";return this.getComposerData(k).selectedMeme};j.prototype.$ReactComposerPromptsLoggingStore4=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,composer_session_id:c("ComposerXSessionIDs").getSessionID(k)}).send()};f.exports=new j()}),null);
__d("ReactComposerStatusPrompt.react",["Arbiter","DOMContainer.react","React","ReactComposerContextTypes","ReactComposerEvents","ReactComposerPrefillStore","ReactComposerPromptsActions","ReactComposerPromptsStore","ReactComposerPropsAndStoreBasedStateMixin","ReactComposerPromptsLoggingStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerPromptsLoggingStore");var h=c("React").createClass({displayName:"ReactComposerStatusPrompt",_prefillSubscription:undefined,contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerPromptsStore"))],statics:{calculateState:function i(j,k){return{promptXHP:c("ReactComposerPromptsStore").getPromptXHP(j)}}},getDefaultProps:function i(){return{hidePrompt:false}},componentWillMount:function i(){this._prefillSubscription=c("Arbiter").subscribe(c("ReactComposerEvents").SET_PREFILL_DATA+this.context.composerID,this._handlePrefill)},componentWillUnmount:function i(){this._prefillSubscription&&this._prefillSubscription.unsubscribe();this._prefillSubscription=null},render:function i(){if(this.props.hidePrompt||!this.state.promptXHP)return null;return c("React").createElement(c("DOMContainer.react"),null,this.state.promptXHP)},_handlePrefill:function i(){var j=c("ReactComposerPrefillStore").getAndEraseField(this.context.composerID,"prompt");if(j)c("ReactComposerPromptsActions").setPromptXHP(this.context.composerID,j)}});f.exports=h}),null);
__d("ReactComposerStatusAttachment.react",["cx","Arbiter","ComposerEntryPointRef","React","ReactComposerAttachmentPreviewContainer.react","ReactComposerAttachmentPreviewErrorBoundary.react","ReactComposerAttachmentType","ReactComposerAudienceActions","ReactComposerAudienceSelectorContainer.react","ReactComposerContextTypes","ReactComposerDragDropPromptContainer.react","ReactComposerEvents","ReactComposerFooterActions.react","ReactComposerFooterContainer.react","ReactComposerPostButtonContainer.react","ReactComposerProfilePhotoBlock.react","ReactComposerSessionMetricsActions","ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react","ReactComposerStatusFooterContainer.react","ReactComposerStatusPrompt.react","ReactComposerTaggerSummaryContainer.react","ReactComposerTaggerSummaryPlaceholder.react","ReactComposerTaggerType","ReactComposerTimelineAudienceSelectorNextButtonContainerGatedModule","ReactComposerFundraiserAttachmentContainerGated","XUISpinner.react","emptyFunction","ReactComposerStatusActions","ReactComposerPrefillMentionsInput","DraftModifier","EditorState","ReactInputSelection","SelectionState"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("ReactComposerTimelineAudienceSelectorNextButtonContainerGatedModule").module,l=c("ReactComposerFundraiserAttachmentContainerGated").module;c("ReactComposerStatusActions");c("ReactComposerPrefillMentionsInput");c("DraftModifier");c("EditorState");c("ReactInputSelection");c("SelectionState");i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$ReactComposerStatusAttachment1=null,this.$ReactComposerStatusAttachment3=function(s){c("ReactComposerSessionMetricsActions").keystroke(this.context.composerID)}.bind(this),this.$ReactComposerStatusAttachment4=function(s){c("ReactComposerSessionMetricsActions").paste(this.context.composerID)}.bind(this),o}m.prototype.componentDidMount=function(){if(this.props.isActive)this.refs&&this.refs.mentionsInput&&this.refs.mentionsInput.focus();if(this.context.gks&&!this.context.gks.addAnyPostToAlbum)c("ReactComposerAudienceActions").setCollectionIDWithoutLogging(this.context.composerID,null)};m.prototype.componentWillUnmount=function(){this.$ReactComposerStatusAttachment1&&this.$ReactComposerStatusAttachment1.release()};m.prototype.$ReactComposerStatusAttachment2=function(){return k&&this.context.composerType===c("ComposerEntryPointRef").TIMELINE&&this.props.config.targetData.viewerIsTarget?k:this.props.postButtonModule};m.prototype.render=function(){__p&&__p();var n=void 0,o=this.context.gks&&this.context.gks.isSproutsComposer;if(this.props.isActive||this.props.config.showExpandedComposer)n=c("React").createElement(c("ReactComposerStatusFooterContainer.react"),{additionalTaggers:this.props.additionalTaggers,additionalFooterActions:this.props.additionalFooterActions,attachmentsConfig:this.props.config.attachmentsConfig,audienceXHP:this.props.config.audienceXHP,bootloader:this.props.bootloader,config:this.props.config,mediaAcceptParam:this.props.config.mediaAcceptParam,postButtonLabel:this.props.postButtonLabel?this.props.postButtonLabel:undefined,postButtonModule:this.$ReactComposerStatusAttachment2(),prefillConfig:this.props.prefillConfig,taggersConfig:this.props.taggersConfig?this.props.taggersConfig:this.props.config.taggersConfig,targetData:this.props.config.targetData,weakMention:this.props.weakMention});var p=this.props.isActive?c("React").createElement(c("ReactComposerTaggerSummaryContainer.react"),null):c("React").createElement(c("ReactComposerTaggerSummaryPlaceholder.react"),null),q=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],r=q.multilingualStatus&&this.props.isActive?c("React").createElement(q.multilingualStatus,null):null,s=q.markdownPreviewAttachment,t=null;if(s&&this.props.isActive){var u=s.container;t=c("React").createElement(u,{prettify:s.prettify,isMarkdownForInternalEmployee:s.isMarkdownForInternalEmployee})}var v=q.donateButtonConfig,w=null;if(v){var x=v.donateButtonContainer;w=c("React").createElement(x,{charityName:v.charityName,fundraiserCampaignId:v.fundraiserCampaignId})}var y=c("React").createElement(c("ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react"),{config:this.props.config,onChange:this.props.onMentionsInputChange,onFocus:this.props.onFocus,onPasteFiles:this.props.onPasteFiles,handlePastedText:this.props.handlePastedText,onPostIntent:this.props.onPostIntent,placeholder:this.props.placeholder,prefillConfig:this.props.prefillConfig,ref:"mentionsInput"}),z=this.props.config.taggersConfig,A=null;if(z&&z[c("ReactComposerTaggerType").FORMATTED_TEXT]&&z[c("ReactComposerTaggerType").FORMATTED_TEXT].noSproutDesign&&z[c("ReactComposerTaggerType").FORMATTED_TEXT].enabled&&z[c("ReactComposerTaggerType").FORMATTED_TEXT].textFormats&&z[c("ReactComposerTaggerType").FORMATTED_TEXT].containerModule){var B=z[c("ReactComposerTaggerType").FORMATTED_TEXT].containerModule;A=c("React").createElement(B,{autoOpen:z[c("ReactComposerTaggerType").FORMATTED_TEXT].autoOpen,badgingEnabled:z[c("ReactComposerTaggerType").FORMATTED_TEXT].badgingEnabled,defaultFormat:z[c("ReactComposerTaggerType").FORMATTED_TEXT].defaultFormat,fixAspectRatio:z[c("ReactComposerTaggerType").FORMATTED_TEXT].fixAspectRatio,maxNewlines:z[c("ReactComposerTaggerType").FORMATTED_TEXT].maxNewlines,noSproutDesign:z[c("ReactComposerTaggerType").FORMATTED_TEXT].noSproutDesign,statusAttachmentActive:this.props.isActive,shouldAutoOpenWhenUserStartsTyping:z[c("ReactComposerTaggerType").FORMATTED_TEXT].shouldAutoOpenWhenUserStartsTyping,shouldUseNewComposerPickerDesign:z[c("ReactComposerTaggerType").FORMATTED_TEXT].shouldUseNewComposerPickerDesign,stickyStylesEnabled:z[c("ReactComposerTaggerType").FORMATTED_TEXT].stickyStylesEnabled,textFormats:z[c("ReactComposerTaggerType").FORMATTED_TEXT].textFormats,textLengthLimit:z[c("ReactComposerTaggerType").FORMATTED_TEXT].textLengthLimit})}var C=c("React").createElement("div",{onKeyDown:this.$ReactComposerStatusAttachment3,onPaste:this.$ReactComposerStatusAttachment4},y,r);if(q.showProfilePic){var D=q.redirect?c("emptyFunction"):function(){c("Arbiter").inform(c("ReactComposerEvents").ACTIVATE_ATTACHMENT+this.context.composerID)}.bind(this);C=c("React").createElement(c("ReactComposerProfilePhotoBlock.react"),{profileName:q.profileName,profilePhotoBadge:q.customProfilePhoto,profilePicSrc:q.profilePicSrc,profileURI:q.profileURI,profileDialogURI:q.profileDialogURI,currentProfileBadgeURI:q.currentProfileBadgeURI,profileBadgeNUX:q.customProfilePhotoNux,onClick:D},C)}var E=null;if(q.topicFeedsTagger&&this.props.isActive){var F=q.topicFeedsTagger,G=F.container;E=c("React").createElement(G,{composerFeedID:F.composerFeedID,photoAutoTaggingDelay:F.photoAutoTaggingDelay,photoPollingDuration:F.photoPollingDuration,photoPollingInterval:F.photoPollingInterval,showNux:F.showNux,textAutoTaggingDelay:F.textAutoTaggingDelay,topicLimit:F.topicLimit,darkLaunch:F.darkLaunch})}var H=null;if(q.groupPostTagsTagger&&this.props.isActive){var I=q.groupPostTagsTagger,J=I.container;H=c("React").createElement(J,{tagsLimit:I.tagsLimit,groupID:I.groupID,showNux:I.showNux,postTag:I.postTag})}var K=this.props.config.shouldShowPreviewSpinner?c("React").createElement(c("ReactComposerAttachmentPreviewContainer.react"),{spinner:c("React").createElement(c("XUISpinner.react"),{background:"light",size:"large"})}):c("React").createElement(c("ReactComposerAttachmentPreviewErrorBoundary.react"),null,c("React").createElement(c("ReactComposerAttachmentPreviewContainer.react"),null)),L=null;if(this.props.olpDetected&&q.offerLikePostUpsellInlineBanner){var M=q.offerLikePostUpsellInlineBanner;L=c("React").createElement(M,{actorID:this.context.actorID,composerID:this.context.composerID,text:this.props.olpText||"",pageID:q.pageID,photoIDs:[]})}return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("ReactComposerDragDropPromptContainer.react"),{root:this,config:this.props.config}),this.$ReactComposerStatusAttachment5(),c("React").createElement("div",{className:(q.shouldScrollComposerContent&&o?"_1w_g":"")+" _i-o"},c("React").createElement("div",{className:"_3eny"},C,L,this.props.children,A,K,l?c("React").createElement(l,null):null,p,c("React").createElement(c("ReactComposerStatusPrompt.react"),{hidePrompt:this.props.isActive}),t,c("React").createElement("div",{className:"_3enz _3eo2"}))),w,E,H,n)};m.prototype.$ReactComposerStatusAttachment5=function(){var n=this.context.gks&&this.context.gks.topPostButton,o=this.context.gks&&this.context.gks.isSproutsComposer;if(!(n&&o))return null;return c("React").createElement("div",{className:"_4y7p"},this.$ReactComposerStatusAttachment6())};m.prototype.$ReactComposerStatusAttachment6=function(){var n=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS],o=n.footerBackground?n.footerBackground:this.props.config.showExpandedComposer?"white":"light-wash",p=c("React").createElement(c("ReactComposerFooterContainer.react"),{background:o},c("React").createElement("div",{className:"clearfix"},c("React").createElement("div",{className:"rfloat"},this.$ReactComposerStatusAttachment7())));return p};m.prototype.$ReactComposerStatusAttachment7=function(){var n=this.props.config.audienceXHP?c("React").createElement(c("ReactComposerAudienceSelectorContainer.react"),{audienceXHP:this.props.config.audienceXHP,viewerIsTarget:this.props.config.targetData.viewerIsTarget}):null,o=this.props.postButtonModule||c("ReactComposerPostButtonContainer.react"),p=c("React").createElement(o,{config:this.props.config});return c("React").createElement(c("ReactComposerFooterActions.react"),null,this.props.additionalFooterActions,n,p)};m.contextTypes=c("ReactComposerContextTypes");f.exports=m}),null);
__d("ReactComposerEventAttachmentActions",["ReactComposerDispatcher","ReactComposerEventAttachmentActionType","ReactComposerEventAttachmentStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerEventAttachmentStore");h.prototype.enabled=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerEventAttachmentActionType").EVENT_ATTACHMENT_ENABLED,enabled:j})};h.prototype.fetchEventAttachment=function(i,j){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,type:c("ReactComposerEventAttachmentActionType").FETCH_EVENT_ATTACHMENT,eventID:j})};h.prototype.setMarkup=function(i,j,k){"use strict";c("ReactComposerDispatcher").dispatch({composerID:i,eventID:j,markup:k,type:c("ReactComposerEventAttachmentActionType").SET_EVENT_MARKUP})};function h(){"use strict"}f.exports=new h()}),null);
__d("ReactComposerStatusAttachmentContainer.react",["Bootloader","ReactComposerAttachmentActions","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerLocationAttachmentActions","ReactComposerEventAttachmentActions","ReactComposerLoggingName","ReactComposerPhotoUploader","ReactComposerScrapedAttachmentActions","ReactComposerStatusAttachment.react","ReactComposerStatusAttachmentFocusStore","ReactComposerStatusStore","ReactComposerStatusUtils","ReactComposerTaggerActions","ReactComposerTaggerStore","ReactComposerTaggerType","ComposerEntryPointRef","FluxContainer","URLScraper","QE2Logger","React","ifRequired"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(){__p&&__p();var k,l;"use strict";for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.$ReactComposerStatusAttachmentContainer2=false,this.state={olpDetected:false,olpText:null,placeholder:""},this.$ReactComposerStatusAttachmentContainer3=function(){if(c("ReactComposerAttachmentStore").getSelectedAttachmentID(this.context.composerID)!==c("ReactComposerAttachmentType").STATUS)return;c("ReactComposerAttachmentActions").selectAttachment(this.context.composerID,c("ReactComposerAttachmentType").STATUS,true);var p=c("ReactComposerTaggerStore").getSelectedTagger(this.context.composerID);if(p!==c("ReactComposerTaggerType").FORMATTED_TEXT)c("ReactComposerTaggerActions").deselectCurrentTagger(this.context.composerID,c("ReactComposerLoggingName").INLINE_COMPOSER)}.bind(this),this.$ReactComposerStatusAttachmentContainer4=function(p){__p&&__p();var q=p.getCurrentContent().getPlainText(),r=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];if(this.context.composerType===c("ComposerEntryPointRef").PAGES_FEED)c("Bootloader").loadModules(["SalesPromoUtils.react"],function(s){if(s.checkIsOLP(q)){var t=r.offerLikePostUpsell,u=t.indexOf("inline")!==-1;if(u)this.setState({olpDetected:true,olpText:q});if(t==="none"||u)c("QE2Logger").logExposureForPage("orgoff_offer_creation",r.pageID)}else this.setState({olpText:q})}.bind(this),"ReactComposerStatusAttachmentContainer.react");if(!c("URLScraper").trigger(q))c("ReactComposerStatusUtils").scrapeLink(this.context.composerID,this.context.targetID,q,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").INLINE_COMPOSER);if(!this.$ReactComposerStatusAttachmentContainer2&&q.length>0&&c("ReactComposerTaggerStore").getSelectedTagger(this.context.composerID)===null){c("ifRequired")("ReactComposerFormattedTextStore",function(s){if(s.getShouldAutoOpenWhenUserStartsTyping(this.context.composerID)){c("ifRequired")("ReactComposerFormattedTextActions",function(t){t.setShouldFadeInPicker(this.context.composerID,true)}.bind(this));c("ReactComposerTaggerActions").selectTaggerWithoutLogging(this.context.composerID,c("ReactComposerTaggerType").FORMATTED_TEXT)}}.bind(this));this.$ReactComposerStatusAttachmentContainer2=true}}.bind(this),this.$ReactComposerStatusAttachmentContainer5=function(p){c("ReactComposerAttachmentActions").selectAttachment(this.context.composerID,c("ReactComposerAttachmentType").MEDIA,true);c("ReactComposerStatusUtils").uploadPastedFile(this.context.composerID,p[0],this.$ReactComposerStatusAttachmentContainer1)}.bind(this),this.$ReactComposerStatusAttachmentContainer6=function(p,q,r){var s=c("ReactComposerStatusStore").getEditorState(this.context.composerID),t=s?s.getCurrentContent().getPlainText():"",u=c("URLScraper").match(p)||t.concat(p);c("ReactComposerStatusUtils").scrapeLink(this.context.composerID,this.context.targetID,u,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").LINK_PASTED);return false}.bind(this),l}j.getStores=function(){"use strict";return[c("ReactComposerAttachmentStore"),c("ReactComposerStatusStore"),c("ReactComposerStatusAttachmentFocusStore"),c("ReactComposerTaggerStore")]};j.calculateState=function(k,l,m){"use strict";__p&&__p();var n=m.composerID,o=c("ReactComposerAttachmentStore").isSelectedAttachmentActive(n),p=c("ReactComposerStatusAttachmentFocusStore").isInputFocused(n),q=c("ReactComposerStatusStore").getMentions(n),r=null;if(q)for(var s in q)if(Object.prototype.hasOwnProperty.call(q,s)&&q[s].isWeak==true){r=q[s];break}var t=c("ReactComposerTaggerStore").getTaggerData(n,c("ReactComposerTaggerType").FUN_FACT),u=t&&t.promptID?l.config.taggersConfig[c("ReactComposerTaggerType").FUN_FACT].placeholder:l.placeholder;return{isActive:o||p,olpDetected:k&&k.olpDetected,olpText:k&&k.olpText,placeholder:u,weakMention:r}};j.prototype.componentWillMount=function(){"use strict";var k=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA];this.$ReactComposerStatusAttachmentContainer1=new(c("ReactComposerPhotoUploader"))(this.context,k.photoLimit,{disableFaceRecognition:k.disableFaceboxTagger});var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];if(l&&l.defaultMarkdownOn&&c("ReactComposerTaggerStore").getTaggerData(this.context.composerID,c("ReactComposerTaggerType").MARKDOWN).isMarkdown===undefined)c("ReactComposerTaggerActions").setTaggerDataWithoutLogging(this.context.composerID,c("ReactComposerTaggerType").MARKDOWN,{isMarkdown:true})};j.prototype.componentDidMount=function(){"use strict";__p&&__p();var k=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS];c("ReactComposerScrapedAttachmentActions").enabled(this.context.composerID,k.canScrapeShare);c("ReactComposerLocationAttachmentActions").enabled(this.context.composerID,!!k.canAttachLocation);c("ReactComposerEventAttachmentActions").enabled(this.context.composerID,k.canAttachEvent);if(this.props.scrapeLinkOnInit){var l=c("ReactComposerStatusStore").getMessageText(this.context.composerID);if(l)c("ReactComposerStatusUtils").scrapeLink(this.context.composerID,this.context.targetID,l,this.context.composerType,this.context.actorID,c("ReactComposerLoggingName").INLINE_COMPOSER)}};j.prototype.render=function(){"use strict";return c("React").createElement(c("ReactComposerStatusAttachment.react"),babelHelpers["extends"]({},this.props,this.state,{config:this.props.config,onFocus:this.$ReactComposerStatusAttachmentContainer3,onMentionsInputChange:this.$ReactComposerStatusAttachmentContainer4,onPasteFiles:this.$ReactComposerStatusAttachmentContainer5,handlePastedText:this.$ReactComposerStatusAttachmentContainer6,placeholder:this.state.placeholder,postButtonModule:this.props.postButtonModule}))};j.defaultProps={scrapeLinkOnInit:true};j.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(j,{withProps:true,withContext:true})}),null);
__d("ReactComposerStatusEagerAttachment.react",["fbt","Arbiter","React","ReactComposerAttachmentActions","ReactComposerAttachmentBodyMixin","ReactComposerAttachmentType","ReactComposerConfig","ReactComposerPrefillConfig","ReactComposerStatusActions","ReactComposerStatusAttachmentContainer.react","ReactComposerTaggerActions","gkx"],(function a(b,c,d,e,f,g,h){__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"ReactComposerStatusEagerAttachment",mixins:[c("ReactComposerAttachmentBodyMixin")()],propTypes:{config:c("ReactComposerConfig").isRequired,postButtonModule:i.func.isRequired,selected:i.bool,prefillConfig:c("ReactComposerPrefillConfig")},getDefaultProps:function k(){return{placeholder:h._("What's on your mind?")}},statics:{attachmentID:c("ReactComposerAttachmentType").STATUS},componentWillMount:function k(){var l=this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].bootstrapData;c("ReactComposerStatusActions").setMentionsSource(this.context.composerID,l.mentionsSource);c("ReactComposerStatusActions").setTypeaheadReporter(this.context.composerID,l.typeaheadReporter);c("ReactComposerAttachmentActions").setInitialized(this.context.composerID,c("ReactComposerAttachmentType").STATUS);if(c("gkx")("AT7rNDDdaqbNsNKVWAB2srntBC9kKTH71mtXESBBj2RChibXb3-wXs1S24n11evPW74QN4P34-lCxfKFpDx7_2p-"))c("ReactComposerTaggerActions").updateTaggersSource(this.context.composerID,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].bootstrapData.taggersSource||{})},componentDidMount:function k(){if(!c("gkx")("AT7rNDDdaqbNsNKVWAB2srntBC9kKTH71mtXESBBj2RChibXb3-wXs1S24n11evPW74QN4P34-lCxfKFpDx7_2p-"))c("ReactComposerTaggerActions").updateTaggersSource(this.context.composerID,this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].bootstrapData.taggersSource||{});c("Arbiter").inform("ReactComposerStatusEagerAttachment/mounted",this.context.composerID,c("Arbiter").BEHAVIOR_STATE)},renderX:function k(){return c("React").createElement(c("ReactComposerStatusAttachmentContainer.react"),this.props)}});f.exports=j}),null);
__d("ReactComposerFundraiserAttachmentActionType",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){f.exports=c("keyMirrorRecursive")({FETCH_ATTACHMENT:null,SET_MARKUP:null},"ReactComposerFundriserAttachmentActionType")}),null);
__d("XReactComposerFundraiserAttachmentController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/react_composer/fundraiser/attachment/",{av:{type:"FBID"},composer_id:{type:"String",required:true},charity_id:{type:"String",required:true}})}),null);
__d("ReactComposerFundraiserAttachmentStore",["ActorURI","AsyncRequest","ReactComposerFundraiserAttachmentActionType","ReactComposerStoreBase","XReactComposerFundraiserAttachmentController"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("ReactComposerStoreBase"));i=h&&h.prototype;function j(){"use strict";__p&&__p();var k=void 0;i.constructor.call(this,function(){return{isFetching:false,markup:null}},function(l){switch(l.type){case c("ReactComposerFundraiserAttachmentActionType").FETCH_ATTACHMENT:k&&k.$ReactComposerFundraiserAttachmentStore1(l);break;case c("ReactComposerFundraiserAttachmentActionType").SET_MARKUP:k&&k.$ReactComposerFundraiserAttachmentStore2(l);break}});k=this}j.prototype.getMarkup=function(k){"use strict";return this.getComposerData(k).markup};j.prototype.isFetching=function(k){"use strict";return this.getComposerData(k).isFetching};j.prototype.$ReactComposerFundraiserAttachmentStore1=function(k){"use strict";var l=this.validateAction(k,["composerID","charityID","actorID"]),m=l[0],n=l[1],o=l[2],p=this.getComposerData(m);p.isFetching=true;p.markup=null;var q=c("XReactComposerFundraiserAttachmentController").getURIBuilder().setString("composer_id",m).setString("charity_id",n),r=c("ActorURI").create(q.getURI(),o),s=new(c("AsyncRequest"))(r).setFinallyHandler(function(){p.isFetching=false;this.emitChange(m)}.bind(this));s.send();this.emitChange(m)};j.prototype.$ReactComposerFundraiserAttachmentStore2=function(k){"use strict";var l=this.validateAction(k,["composerID","markup"]),m=l[0],n=l[1],o=this.getComposerData(m);o.markup=n;o.isFetching=false;this.emitChange(m)};f.exports=new j()}),null);
__d("ReactComposerFundraiserAttachmentActions",["ReactComposerDispatcher","ReactComposerFundraiserAttachmentActionType","ReactComposerFundraiserAttachmentStore"],(function a(b,c,d,e,f,g){__p&&__p();c("ReactComposerFundraiserAttachmentStore");h.prototype.fetchFundraiserAttachment=function(i,j,k){"use strict";var l={composerID:i,type:c("ReactComposerFundraiserAttachmentActionType").FETCH_ATTACHMENT,charityID:j,actorID:k};c("ReactComposerDispatcher").dispatch(l)};h.prototype.setMarkup=function(i,j){"use strict";var k={composerID:i,type:c("ReactComposerFundraiserAttachmentActionType").SET_MARKUP,markup:j};c("ReactComposerDispatcher").dispatch(k)};function h(){"use strict"}f.exports=new h()}),null);
__d("ReactComposerFeedStore",["Bootloader","ReactComposerActionStore","ReactComposerMediaConfig","ReactComposerStore","ReactComposerPostUtils","DateConsts"],(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";i.constructor.call(this)}j.prototype.__onPostStarted=function(k){"use strict";__p&&__p();var l=c("ReactComposerStore").getScheduledPublishTime(k.composerID);if(l){var m=Math.round(l/c("DateConsts").MS_PER_SEC);k.config.contextInfo.scheduled=true;k.config.contextInfo.unpublished_content_type="SCHEDULED";k.config.contextInfo.scheduled_publish_time=m}var n=this.validateAction(k,"composerID");c("ReactComposerPostUtils").post({actorID:k.actorID,composerConfig:k.config,composerID:n,targetID:k.targetID});c("Bootloader").loadModules(["ReactComposerMagicTagSurvey"],function(o){return o.loadSurvey(n)},"ReactComposerFeedStore")};j.prototype.__canPost=function(k){"use strict";return!c("ReactComposerPostUtils").isPostButtonDisabled(k.composerID,c("ReactComposerMediaConfig").photo.limit)};j.prototype.__onPostSucceeded=function(k){"use strict";var l=this.validateAction(k,"composerID");c("Bootloader").loadModules(["ReactComposerFeedSurvey"],function(m){return m.onPostSucceeded(l)},"ReactComposerFeedStore")};f.exports=new j()}),null);
__d("ReactComposerFeedMediaPostButtonContainer.react",["React","ReactComposerContextTypes","ReactComposerFeedStore","ReactComposerMediaPostButtonContainerMixin"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerFeedMediaPostButtonContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerMediaPostButtonContainerMixin")],getDefaultProps:function i(){return{useDefaultScheduleComponent:true}},componentDidMount:function i(){c("ReactComposerFeedStore").registerComposerID(this.context.composerID)}});f.exports=h}),null);
__d("ReactComposerFeedPostButtonContainer.react",["React","ReactComposerContextTypes","ReactComposerFeedStore","ReactComposerPostButtonContainerMixin"],(function a(b,c,d,e,f,g){var h=c("React").createClass({displayName:"ReactComposerFeedPostButtonContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComposerPostButtonContainerMixin")],getDefaultProps:function i(){return{useDefaultScheduleComponent:true}},componentDidMount:function i(){c("ReactComposerFeedStore").registerComposerID(this.context.composerID)}});f.exports=h}),null);
__d("ReactComposerTimelineBootloader",["Bootloader"],(function a(b,c,d,e,f,g){"use strict";var h={statusAttachment:function i(j){c("Bootloader").loadModules(["ReactComposerStatusAttachmentContainer.react","ReactComposerTimelinePostButtonContainer.react"],j,"ReactComposerTimelineBootloader")},mediaAttachment:function i(j){c("Bootloader").loadModules(["ReactComposerMediaAttachmentContainer.react","ReactComposerTimelineMediaPostButtonContainer.react"],j,"ReactComposerTimelineBootloader")},qandaAttachment:function i(j){c("Bootloader").loadModules(["ReactComposerQAndAAttachmentContainer.react","ReactComposerTimelineMediaPostButtonContainer.react"],j,"ReactComposerTimelineBootloader")},redEnvelopeAttachment:function i(j){c("Bootloader").loadModules(["ReactComposerRedEnvelopeV2AttachmentContainer.react","ReactComposerTimelineMediaPostButtonContainer.react"],j,"ReactComposerTimelineBootloader")}};f.exports=h}),null);
__d("ReactComposerSproutsHeader.react",["cx","fbt","React","ReactComposerHeaderType","SharingSpacesStrings"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.defaultProps={type:c("ReactComposerHeaderType").DEFAULT},n}l.prototype.render=function(){switch(this.props.type){case c("ReactComposerHeaderType").DEFAULT:return c("React").createElement("div",{className:"_3ubp _sg2"},this.props.children);case c("ReactComposerHeaderType").SHARESHEET:return c("React").createElement("div",{className:"_3ubp"},i._("Select Audience"));case c("ReactComposerHeaderType").SHARING_SPACES:return c("React").createElement("div",{className:"_3ubp"},c("SharingSpacesStrings").SHARING_SPACES_SELECTOR_TITLE);case c("ReactComposerHeaderType").NONE:default:return c("React").createElement("span",null)}};f.exports=l}),null);
__d("ReactComposerHeaderContainer.react",["React","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerHeaderType","ReactComposerSproutsHeader.react","FluxContainer"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.getStores=function(){return[c("ReactComposerAttachmentStore")]};j.calculateState=function(k,l,m){return{selectedAttachmentID:c("ReactComposerAttachmentStore").getSelectedAttachmentID(m.composerID)}};j.prototype.$ReactComposerHeaderContainer1=function(){var k=this.props.contextConfig.gks&&this.props.contextConfig.gks.albumTab,l=this.state.selectedAttachmentID===c("ReactComposerAttachmentType").AUDIENCE_SELECTOR,m=this.state.selectedAttachmentID===c("ReactComposerAttachmentType").SHARING_SPACES_SELECTOR;if(l)return c("ReactComposerHeaderType").SHARESHEET;else if(m)return c("ReactComposerHeaderType").SHARING_SPACES;else if(k)return c("ReactComposerHeaderType").DEFAULT;else return c("ReactComposerHeaderType").NONE};j.prototype.render=function(){return c("React").createElement(c("ReactComposerSproutsHeader.react"),{type:this.$ReactComposerHeaderContainer1()},this.props.children)};function j(){h.apply(this,arguments)}j.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(j,{withContext:true,withProps:true})}),null);
__d("ReactComposerSproutsAlbumSelector.react",["ix","cx","fbt","DOMContainer.react","Image.react","React","ReactComposerAttachmentType","ReactComposerCollectionSelectorContainerGatedModule","ReactComposerConfig","ReactComposerContextTypes","TooltipData","fbglyph","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ReactComposerCollectionSelectorContainerGatedModule").module;k=babelHelpers.inherits(n,c("React").Component);l=k&&k.prototype;n.prototype.render=function(){if(this.props.useCollectionSelector){var o=h("123370"),p=j._("Photo\/Video Album"),q=c("joinClasses")("_4-h7","fbReactComposerAttachmentSelector_"+c("ReactComposerAttachmentType").ALBUM);return c("React").createElement("span",{className:"_sg1"},m?c("React").createElement(m,{addAnyPostToAlbum:this.context.gks&&this.context.gks.addAnyPostToAlbum,canCreateSharingSpace:this.context.gks&&this.context.gks.canCreateSharingSpace,showSharingSpaces:this.context.gks&&this.context.gks.canPostToSpace,alternateTriggerComponent:c("React").createElement("span",babelHelpers["extends"]({className:q,"data-tooltip-delay":"500"},c("TooltipData").propsFor(p)),c("React").createElement("span",{className:"_4-fs"},c("React").createElement(c("Image.react"),{src:o,className:"_5qto"}),c("React").createElement("span",{className:"_5qtp"},p),c("React").createElement("span",{className:"_4-h8"})))}):null)}else return c("React").createElement("span",{key:"album",className:"_sg1"},c("React").createElement(c("DOMContainer.react"),{display:"inline"},this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").ALBUM].createAlbumLink))};function n(){k.apply(this,arguments)}n.contextTypes=c("ReactComposerContextTypes");f.exports=n}),null);
__d("ReactComposerSproutsMLESelector.react",["ix","cx","fbt","React","ReactComposerAttachmentType","ReactComposerLoggingName","ReactComposerSproutsSelector.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";var k,l;k=babelHelpers.inherits(m,c("React").Component);l=k&&k.prototype;m.prototype.render=function(){return c("React").createElement("span",{className:"_sg1"},c("React").createElement(c("ReactComposerSproutsSelector.react"),{attachmentID:c("ReactComposerAttachmentType").MLE,loggingName:c("ReactComposerLoggingName").MLE_TAB_SELECTOR,icon:h("122925"),label:j._("Life Event")}))};function m(){k.apply(this,arguments)}f.exports=m}),null);
__d("ReactComposerSproutsMediaSelector.react",["ix","cx","React","ReactComposerLoggingName","ReactComposerInstantMediaAttachmentSelectorContainer.react","ReactComposerAttachmentType","ReactComposerConfig","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){return c("React").createElement("span",{className:"_sg1",key:c("ReactComposerLoggingName").MEDIA_TAB_SELECTOR},c("React").createElement(c("ReactComposerInstantMediaAttachmentSelectorContainer.react"),{key:c("ReactComposerLoggingName").MEDIA_TAB_SELECTOR,icon:h("122530"),disableFaceRecognition:this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].disableFaceboxTagger,mediaAcceptParam:this.props.config.mediaAcceptParam,photoLimit:this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].photoLimit,targetData:this.props.config.targetData,mediaConfig:this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA]}))};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("ReactComposerSproutsQAndASelector.react",["ix","fbt","React","ReactComposerAttachmentType","ReactComposerLoggingName","ReactComposerSproutsSelector.react","fbglyph"],(function a(b,c,d,e,f,g,h,i){"use strict";var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){return c("React").createElement(c("ReactComposerSproutsSelector.react"),{attachmentID:c("ReactComposerAttachmentType").QANDA,loggingName:c("ReactComposerLoggingName").QANDA_TAB_SELECTOR,icon:h("123482"),label:i._("Q&A")})};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("ReactComposerSproutsRedEnvelopeSelector.react",["ix","fbt","React","ReactComposerAttachmentType","ReactComposerLoggingName","ReactComposerSproutsSelector.react","RedEnvelopeActionType","RedEnvelopeActionTypedLogger","asset"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").Component);k=j&&j.prototype;l.prototype.render=function(){return c("React").createElement(c("ReactComposerSproutsSelector.react"),{attachmentID:c("ReactComposerAttachmentType").RED_ENVELOPE,loggingName:c("ReactComposerLoggingName").RED_ENVELOPE_TAB_SELECTOR,icon:h("423219"),label:i._("Send Gift"),onAfterSelected:function m(){new(c("RedEnvelopeActionTypedLogger"))().setAction(c("RedEnvelopeActionType").CLICK_GLYPH).log()}})};function l(){j.apply(this,arguments)}f.exports=l}),null);
__d("ReactComposerSproutsStatusAndMediaSelector.react",["ix","FluxContainer","React","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerLoggingName","ReactComposerMediaUploadStore","ReactComposerSproutsSelector.react","fbglyph"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.getStores=function(){return[c("ReactComposerMediaUploadStore")]};k.calculateState=function(l,m,n){__p&&__p();var o=n.composerID;if(m.statusOnly)return{attachment:c("ReactComposerAttachmentType").STATUS,alternativeAttachments:m.alternativeAttachmentIDs};var p=c("ReactComposerAttachmentType").STATUS,q=c("ReactComposerAttachmentType").MEDIA;if(c("ReactComposerMediaUploadStore").getUploadsCount(o)>0){p=c("ReactComposerAttachmentType").MEDIA;q=c("ReactComposerAttachmentType").STATUS}var r=[q];if(m.alternativeAttachmentIDs)r=r.concat(m.alternativeAttachmentIDs);return{attachment:p,alternativeAttachments:r}};k.prototype.render=function(){return c("React").createElement(c("ReactComposerSproutsSelector.react"),{attachmentID:this.state.attachment,loggingName:c("ReactComposerLoggingName").STATUS_TAB_SELECTOR,icon:h("123350"),label:this.props.label,alternativeAttachmentIDs:this.state.alternativeAttachments})};function k(){i.apply(this,arguments)}k.contextTypes=c("ReactComposerContextTypes");f.exports=c("FluxContainer").create(k,{withContext:true,withProps:true})}),null);
__d("ReactTimelineSproutsComposer.react",["cx","fbt","React","BootloadedComponent.react","ReactComposerAttachmentType","ReactComposerBodyContainer.react","ReactComposerContextProviderMixin","ReactComposerEvents","ReactComposerFeedMediaPostButtonContainer.react","ReactComposerFeedPostButtonContainer.react","ReactComposerFocusInit","ReactComposerHeaderContainer.react","ReactComposerLiveVideoAttachmentSelector.react","ReactComposerLiveVideoLazyAttachment.react","ReactComposerLiveVideoPreviewButton.react","ReactComposerLoggingName","ReactComposerMLELazyAttachment.react","ReactComposerQAndALazyAttachment.react","ReactComposerSharingSpacesSelectorAttachmentGatedModule","ReactComposerSproutsAlbumSelector.react","ReactComposerSproutsMLESelector.react","ReactComposerSproutsQAndASelector.react","ReactComposerSproutsStatusAndMediaSelector.react","ReactComposerSproutsMediaSelector.react","ReactComposerSproutsRedEnvelopeSelector.react","ReactComposerTimelineBootloader","ReactComposerListLazyAttachment.react","ReactComposerVisualPollLazyAttachment.react","ReactComposerRedEnvelopeV2LazyAttachment.react","ReactComposerTaggerType","ReactComposerWithSprouts.react","JSResource","TimelineComposer","Arbiter","$","coalesce","idx","nullthrows"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("ReactComposerSharingSpacesSelectorAttachmentGatedModule").module;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.prototype.componentDidMount=function(){"use strict";var n=this.props,o=n.contextConfig,p=n.config;c("TimelineComposer").init(o.composerID);if(p.focusOnInit)c("Arbiter").inform(c("ReactComposerEvents").ACTIVATE_ATTACHMENT+o.composerID)};m.prototype.getChildContext=function(){"use strict";return c("ReactComposerContextProviderMixin").staticGetChildContext(this.props)};m.prototype.render=function(){"use strict";var n=this.$ReactTimelineSproutsComposer1(),o=c("React").createElement(c("ReactComposerWithSprouts.react"),{defaultAttachmentOnExpand:c("ReactComposerAttachmentType").STATUS,innerProps:{className:"_5n2b",loggingConfig:this.props.config.loggingConfig,sproutsConfig:this.props.config.sproutsConfig,promotedSprout:this.props.config.sproutsPromotionConfig?this.props.config.sproutsPromotionConfig.sprout:null},expandOnInit:false},c("React").createElement(c("ReactComposerHeaderContainer.react"),this.props,n),this.$ReactTimelineSproutsComposer2(),c("React").createElement(c("ReactComposerBodyContainer.react"),{expanded:this.props.config.showExpandedComposer},this.$ReactTimelineSproutsComposer3(),this.$ReactTimelineSproutsComposer4(),this.$ReactTimelineSproutsComposer5(),this.$ReactTimelineSproutsComposer6(),this.$ReactTimelineSproutsComposer7(),this.$ReactTimelineSproutsComposer8(),this.$ReactTimelineSproutsComposer9(),this.$ReactTimelineSproutsComposer10(),this.$ReactTimelineSproutsComposer11()));return o};m.prototype.$ReactTimelineSproutsComposer1=function(){"use strict";__p&&__p();var n=this.props.config.attachmentsConfig,o=[];if(n[c("ReactComposerAttachmentType").STATUS].enabled)o.push(c("React").createElement(c("ReactComposerSproutsStatusAndMediaSelector.react"),{key:c("ReactComposerLoggingName").STATUS_TAB_SELECTOR,label:n[c("ReactComposerAttachmentType").STATUS].defaultTabTitle,statusOnly:this.props.contextConfig.gks&&this.props.contextConfig.gks.photoTab}));if(this.props.contextConfig.gks&&this.props.contextConfig.gks.photoTab&&n[c("ReactComposerAttachmentType").MEDIA].enabled)o.push(c("React").createElement(c("ReactComposerSproutsMediaSelector.react"),{key:c("ReactComposerLoggingName").MEDIA_TAB_SELECTOR,config:this.props.config}));var p=this.props.contextConfig.gks&&this.props.contextConfig.gks.hideAlbumTab;if(n[c("ReactComposerAttachmentType").ALBUM].enabled&&!p)o.push(this.$ReactTimelineSproutsComposer12());if(n[c("ReactComposerAttachmentType").LIVE_VIDEO].enabled)o.push(this.$ReactTimelineSproutsComposer13());if(n[c("ReactComposerAttachmentType").RED_ENVELOPE].enabled)o.push(this.$ReactTimelineSproutsComposer14());if(n[c("ReactComposerAttachmentType").MLE].enabled)o.push(this.$ReactTimelineSproutsComposer15());if(n[c("ReactComposerAttachmentType").QANDA].enabled)o.push(this.$ReactTimelineSproutsComposer16());return o};m.prototype.$ReactTimelineSproutsComposer12=function(){"use strict";var n=this.props.contextConfig.gks&&this.props.contextConfig.gks.albumTabUsesSelector;return c("React").createElement(c("ReactComposerSproutsAlbumSelector.react"),{key:c("ReactComposerLoggingName").ALBUM,config:this.props.config,useCollectionSelector:n})};m.prototype.$ReactTimelineSproutsComposer15=function(){"use strict";return c("React").createElement(c("ReactComposerSproutsMLESelector.react"),{key:c("ReactComposerLoggingName").MLE_TAB_SELECTOR})};m.prototype.$ReactTimelineSproutsComposer14=function(){"use strict";return c("React").createElement(c("ReactComposerSproutsRedEnvelopeSelector.react"),{key:c("ReactComposerLoggingName").RED_ENVELOPE_TAB_SELECTOR})};m.prototype.$ReactTimelineSproutsComposer16=function(){"use strict";return c("React").createElement(c("ReactComposerSproutsQAndASelector.react"),{key:c("ReactComposerLoggingName").QANDA_TAB_SELECTOR})};m.prototype.$ReactTimelineSproutsComposer13=function(){"use strict";return c("React").createElement(c("ReactComposerLiveVideoAttachmentSelector.react"),{config:this.props.config,contextConfig:this.props.contextConfig,key:"live_video",sprouts:true})};m.prototype.$ReactTimelineSproutsComposer3=function(){var n;"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].enabled)return null;var o=c("nullthrows")((n=this.props.contextConfig)!=null?(n=n.jsModules)!=null?n.statusAttachment:n:n);return c("React").createElement(o,{key:"status",config:this.props.config,selected:this.props.config.initSelectedAttachment===c("ReactComposerAttachmentType").STATUS,postButtonModule:c("ReactComposerFeedPostButtonContainer.react"),bootloader:c("ReactComposerTimelineBootloader"),placeholder:this.props.config.targetData.viewerIsTarget?i._("What's on your mind?"):c("coalesce")(this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").STATUS].placeholderText,i._("Write something..."))})};m.prototype.$ReactTimelineSproutsComposer4=function(){var n;"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MEDIA].enabled)return null;var o=c("nullthrows")((n=this.props.contextConfig)!=null?(n=n.jsModules)!=null?n.mediaAttachment:n:n);return c("React").createElement(o,{key:"media",config:this.props.config,postButtonModule:c("ReactComposerFeedMediaPostButtonContainer.react"),bootloader:c("ReactComposerTimelineBootloader"),selected:this.props.config.initSelectedAttachment===c("ReactComposerAttachmentType").MEDIA})};m.prototype.$ReactTimelineSproutsComposer6=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").LIST].enabled)return null;return c("React").createElement(c("ReactComposerListLazyAttachment.react"),{key:"list",config:this.props.config})};m.prototype.$ReactTimelineSproutsComposer7=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").VISUAL_POLL].enabled)return null;return c("React").createElement(c("ReactComposerVisualPollLazyAttachment.react"),{key:"visual_poll",config:this.props.config})};m.prototype.$ReactTimelineSproutsComposer8=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").RED_ENVELOPE].enabled)return null;return c("React").createElement(c("ReactComposerRedEnvelopeV2LazyAttachment.react"),{key:"red_envelope",config:this.props.config,selected:this.props.config.initSelectedAttachment===c("ReactComposerAttachmentType").RED_ENVELOPE})};m.prototype.$ReactTimelineSproutsComposer9=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").MLE].enabled)return null;return c("React").createElement(c("ReactComposerMLELazyAttachment.react"),{key:"mle",config:this.props.config})};m.prototype.$ReactTimelineSproutsComposer10=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").QANDA].enabled)return null;return c("React").createElement(c("ReactComposerQAndALazyAttachment.react"),{key:"qanda",config:this.props.config})};m.prototype.$ReactTimelineSproutsComposer5=function(){"use strict";if(!this.props.config.attachmentsConfig[c("ReactComposerAttachmentType").LIVE_VIDEO].enabled)return null;return c("React").createElement(c("ReactComposerLiveVideoLazyAttachment.react"),{key:"live_video",config:this.props.config,postButtonModule:c("ReactComposerLiveVideoPreviewButton.react"),selected:false})};m.prototype.$ReactTimelineSproutsComposer2=function(){"use strict";var n=this.props.config.taggersConfig;if(n&&n[c("ReactComposerTaggerType").FUN_FACT]&&n[c("ReactComposerTaggerType").FUN_FACT].enabled){var o=n[c("ReactComposerTaggerType").FUN_FACT];return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerFunFactSinglePromptTaggerContainer.react").__setRef("ReactTimelineSproutsComposer.react"),bootloadPlaceholder:c("React").createElement("div",null),showAskFriendTab:o.singlePromptWithAsk})}return null};m.prototype.$ReactTimelineSproutsComposer11=function(){"use strict";return l?c("React").createElement(l,{config:this.props.config,key:"sharingSpacesSelectorAttachment"}):null};function m(){"use strict";j.apply(this,arguments)}m.childContextTypes=c("ReactComposerContextProviderMixin").childContextTypes;f.exports=m}),null);
__d("CollectionThumbnail.react",["cssVar","cx","fbt","BackgroundImage.react","Focus","React","isKeyActivation","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("React").PureComponent);l=k&&k.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=l.constructor).call.apply(o,[this].concat(r)),this.$CollectionThumbnail2=function(t){if(c("isKeyActivation")(t))this.props.onClick&&this.props.onClick(t)}.bind(this),p}n.prototype.focus=function(){c("Focus").set(this.$CollectionThumbnail1,true)};n.prototype.render=function(){return c("React").createElement("div",{className:c("joinClasses")(this.props.className,"_2vw6"),onClick:this.props.onClick,onKeyDown:this.$CollectionThumbnail2,tabIndex:0,ref:function(o){return this.$CollectionThumbnail1=o}.bind(this),role:"button"},c("React").createElement(c("BackgroundImage.react"),{backgroundSize:"cover",height:parseInt("140px",10),src:this.props.thumbnailURL,width:parseInt("140px",10)}),c("React").createElement("div",{className:"_3iom"},c("React").createElement("div",{className:"_3ion"},c("React").createElement(c("BackgroundImage.react"),{backgroundPosition:"100% 50%",className:"_1x7m",height:12,src:this.props.privacyIcon,width:12}),this.props.collectionName),c("React").createElement("div",{className:"_3ioo"},j._({"*":"{number of posts} posts","_1":"1 post"},[j.plural(this.props.numPosts,"number of posts")]))))};n.propTypes={collectionID:m.oneOfType([m.string,m.number]).isRequired,collectionName:m.string.isRequired,className:m.string,numPosts:m.number.isRequired,onClick:m.func,thumbnailURL:m.string.isRequired,privacyIcon:m.string};f.exports=n}),null);
__d("ReactComposerCollectionsActions",["ReactComposerCollectionsActionTypes","ReactComposerDispatcher"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={showCollectionsSelector:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").SHOW_COLLECTION_SELECTOR})},hideCollectionsSelector:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").HIDE_COLLECTION_SELECTOR})},hideCollectionsSelectorWithoutLogging:function i(j){c("ReactComposerDispatcher").dispatch({composerID:j,suppressWaterfallLogging:true,type:c("ReactComposerCollectionsActionTypes").HIDE_COLLECTION_SELECTOR})},showCreationLayer:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").SHOW_CREATION_LAYER})},hideCreationLayer:function i(j,k){var l=arguments.length<=2||arguments[2]===undefined?false:arguments[2];c("ReactComposerDispatcher").dispatch({composerID:j,isCancel:l,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").HIDE_CREATION_LAYER})},showSharingSpaceCreationLayer:function i(j,k){c("ReactComposerDispatcher").dispatch({composerID:j,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").SHOW_SHARING_SPACE_CREATION_LAYER})},hideSharingSpaceCreationLayer:function i(j,k){var l=arguments.length<=2||arguments[2]===undefined?false:arguments[2];c("ReactComposerDispatcher").dispatch({composerID:j,isCancel:l,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").HIDE_SHARING_SPACE_CREATION_LAYER})},spacesLoaded:function i(j,k,l){c("ReactComposerDispatcher").dispatch({composerID:j,sourceLoggingName:k,type:c("ReactComposerCollectionsActionTypes").SPACE_SELECTOR_LOADED,spaceCount:l})}};f.exports=h}),null);
__d("ProfileChannelAudienceType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({PUBLIC:0,FRIENDS_ONLY:1,SECRET_WITH_FOLLOWERS:2})}),null);
__d("SharingSpacesFunnelLogging",["FunnelLogger","ProfileChannelAudienceType"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="CHANNEL_EDIT_FUNNEL",i={startFunnel:function j(k){c("FunnelLogger").startFunnel(h);c("FunnelLogger").addFunnelTag(h,k)},logAction:function j(k){c("FunnelLogger").appendAction(h,k)},endFunnel:function j(k){c("FunnelLogger").addFunnelTag(h,k);c("FunnelLogger").endFunnel(h)},logPrivacyOptionSelected:function j(k){switch(k){case c("ProfileChannelAudienceType").FRIENDS_ONLY:i.logAction("select_privacy_closed");break;case c("ProfileChannelAudienceType").SECRET_WITH_FOLLOWERS:i.logAction("select_privacy_secret");break;default:throw new Error(k+" is an unhandled audience type in SharingSpacesFunnelLogging")}}};f.exports=i}),null);
__d("ReactComposerCollectionSelector.react",["ix","cssVar","cx","fbt","AccessibleLayer","BootloadedComponent.react","CollectionThumbnail.react","ContextualLayer.react","ContextualLayerAutoFlip","Grid.react","JSResource","ReactComposerAudienceActions","ReactComposerCollectionsActions","ReactComposerCollectionsStore","ReactComposerLoggingActions","ReactComposerLoggingName","InlineBlock.react","Image.react","LayerAutoFocus","LayerHideOnEscape","LayerFadeOnHide","LayerFadeOnShow","LayerHideOnBlur","LayerTabIsolation","Link.react","SharingSpacesFunnelLogging","SharingSpacesQEStrings","SharingSpacesStrings","ShimButton.react","XUIAmbientNUX.react","XUIButton.react","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","XUICardSection.react","XUIPopoverButton.react","XUISpinner.react","ReactComposerContextTypes","React","ReactDOM","fbglyph","focusWithinLayer","ifRequired","isKeyActivation"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("Grid.react").GridItem;l=babelHelpers.inherits(o,c("React").PureComponent);m=l&&l.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=m.constructor).call.apply(p,[this].concat(s)),this.$ReactComposerCollectionSelector1=null,this.$ReactComposerCollectionSelector3=function(){if(!this.props.selectorVisible)c("ReactComposerCollectionsActions").showCollectionsSelector(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_SELECTOR_BUTTON)}.bind(this),this.$ReactComposerCollectionSelector4=function(u){if(c("isKeyActivation")(u))this.$ReactComposerCollectionSelector5(u.nativeEvent)}.bind(this),this.$ReactComposerCollectionSelector5=function(u){c("ReactComposerAudienceActions").setCollectionID(this.context.composerID,c("ReactComposerLoggingName").COLLECTION_CLEAR_BUTTON,null);u.stopPropagation()}.bind(this),this.$ReactComposerCollectionSelector6=function(u){var v=arguments.length<=1||arguments[1]===undefined?c("ReactComposerLoggingName").OTHERS:arguments[1];if(!u&&this.props.selectorVisible)c("ReactComposerCollectionsActions").hideCollectionsSelector(this.context.composerID,v)}.bind(this),this.$ReactComposerCollectionSelector7=function(){c("ReactComposerCollectionsActions").hideCollectionsSelectorWithoutLogging(this.context.composerID);c("ReactComposerCollectionsActions").showCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_SELECTOR_CREATE_BUTTON)}.bind(this),this.$ReactComposerCollectionSelector8=function(){c("ReactComposerCollectionsActions").hideCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_CANCEL_BUTTON,true);c("ReactComposerLoggingActions").collectionSelectorCancel(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_CANCEL_BUTTON)}.bind(this),this.$ReactComposerCollectionSelector9=function(u){c("ReactComposerCollectionsStore").addNewAlbum(this.context.composerID,u);c("ReactComposerCollectionsActions").hideCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SUBMIT_BUTTON);c("ReactComposerLoggingActions").collectionSelectorDone(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SUBMIT_BUTTON);this.$ReactComposerCollectionSelector10(u)}.bind(this),this.$ReactComposerCollectionSelector11=function(){c("ReactComposerCollectionsActions").hideCollectionsSelectorWithoutLogging(this.context.composerID);c("ReactComposerCollectionsActions").showSharingSpaceCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_SELECTOR_CREATE_SHARING_SPACE_BUTTON);c("SharingSpacesFunnelLogging").startFunnel("entry_point_name_channel_picker")}.bind(this),this.$ReactComposerCollectionSelector12=function(){c("ReactComposerCollectionsActions").hideSharingSpaceCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SHARING_SPACE_CANCEL_BUTTON,true);c("ReactComposerLoggingActions").collectionSelectorCancel(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SHARING_SPACE_CANCEL_BUTTON)}.bind(this),this.$ReactComposerCollectionSelector13=function(u){var v=u.payload.collectionThumbnailData;c("ReactComposerCollectionsStore").addNewSharingSpace(this.context.composerID,v);c("ReactComposerLoggingActions").collectionSelectorDone(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SHARING_SPACE_SUBMIT_BUTTON);this.$ReactComposerCollectionSelector10(v);c("ReactComposerCollectionsActions").hideSharingSpaceCreationLayer(this.context.composerID,c("ReactComposerLoggingName").COLLECTIONS_CREATE_SHARING_SPACE_SUBMIT_BUTTON)}.bind(this),q}o.prototype.componentDidUpdate=function(p,q){__p&&__p();if(this.props.selectorVisible&&!p.selectorVisible)if(this.props.selectedCollectionID){var r=c("ReactDOM").findDOMNode(this.refs[this.props.selectedCollectionID]);if(r!==null&&this.$ReactComposerCollectionSelector1!==null){var s=c("ReactDOM").findDOMNode(this.$ReactComposerCollectionSelector1);if(s!==null)s.scrollTop=r.offsetTop}}if(p.collections&&p.collections.isLoading()&&this.props.collections&&!this.props.collections.isLoading()){var t=c("ReactDOM").findDOMNode(this.$ReactComposerCollectionSelector2);t&&c("focusWithinLayer")(t,true)}};o.prototype.$ReactComposerCollectionSelector10=function(p){if(p.id==this.props.selectedCollectionID)c("ReactComposerAudienceActions").setCollectionID(this.context.composerID,c("ReactComposerLoggingName").COLLECTION_SELECTED,null);else c("ReactComposerAudienceActions").setCollectionID(this.context.composerID,c("ReactComposerLoggingName").COLLECTION_SELECTED,p.id,p.privacyLabel);this.$ReactComposerCollectionSelector6(false,c("ReactComposerLoggingName").COLLECTION_SELECTED);c("ifRequired")("ReactComposerPostToGroupActions",function(q){return q.unselectTab(this.context.composerID)}.bind(this))};o.prototype.$ReactComposerCollectionSelector14=function(p){if(p==null)return null;var q=c("ReactComposerCollectionsStore").getCollectionByID(this.context.composerID,p);if(q)return q.name;return null};o.prototype.$ReactComposerCollectionSelector15=function(p){if(p){var q=this.$ReactComposerCollectionSelector14(p);if(q)return q}return k._("+ Album").toString()};o.prototype.$ReactComposerCollectionSelector16=function(){return c("React").createElement(c("ShimButton.react"),{className:(!this.props.selectedCollectionID&&!this.props.canCreateSharingSpace?"autofocus":"")+" _2vw6 _1xp0",key:"addAlbumButton",onClick:this.$ReactComposerCollectionSelector7},c("React").createElement("div",{className:"_1xp2"},c("React").createElement("div",{className:"_1xp3"}),k._("Create Album")))};o.prototype.$ReactComposerCollectionSelector17=function(){return c("React").createElement(c("ShimButton.react"),{className:(!this.props.selectedCollectionID?"autofocus":"")+" _2vw6 _1xp0",key:"addSharingSpaceButton",onClick:this.$ReactComposerCollectionSelector11},c("React").createElement("div",{className:"_1xp2"},c("React").createElement("div",{className:"_1xp3"}),c("SharingSpacesStrings").SHOW_SPACE_CREATION_BUTTON_TEXT))};o.prototype.$ReactComposerCollectionSelector18=function(){return c("React").createElement("div",{key:"albumsNullState",className:"_1d5t"},c("React").createElement("span",{className:"_1d5u"}),c("React").createElement("div",{className:"_1d5v"},k._("No albums to show")),c("React").createElement(c("XUIButton.react"),{label:k._("Create Album"),use:"confirm",onClick:this.$ReactComposerCollectionSelector7}))};o.prototype.$ReactComposerCollectionSelector19=function(){return c("React").createElement("div",{key:"sharingSpacesNullState"},c("React").createElement("span",{className:"_1xp4"}),c("React").createElement("div",{className:"_1d5v"},k._("No spaces to show")),c("React").createElement(c("XUIButton.react"),{label:k._("Create Sharing Space"),use:"confirm",onClick:this.$ReactComposerCollectionSelector11}))};o.prototype.$ReactComposerCollectionSelector20=function(){var p=this.props.collections&&this.props.collections.getValue(),q=this.props.canCreateSharingSpace?this.$ReactComposerCollectionSelector17():null;return[c("React").createElement("h1",{key:"sharingSpacesHeader"},c("SharingSpacesQEStrings").contentProductNamePlural),!p||!p.sharingSpaces||p.sharingSpaces.length===0?this.$ReactComposerCollectionSelector19():this.$ReactComposerCollectionSelector21("sharingSpacesGrid",q,p.sharingSpaces)]};o.prototype.$ReactComposerCollectionSelector22=function(){var p=this.props.collections&&this.props.collections.getValue(),q=this.$ReactComposerCollectionSelector16();return[this.props.showSharingSpaces?c("React").createElement("h1",{key:"albumsHeader"},k._("Albums")):null,!p||!p.albums||p.albums.length===0?this.$ReactComposerCollectionSelector18():this.$ReactComposerCollectionSelector21("albumsGrid",q,p.albums)]};o.prototype.$ReactComposerCollectionSelector21=function(p,q,r){var s=[q];if(r)s.push(r.map(function(t){return c("React").createElement(n,{ref:t.id,key:t.id,className:t.id===this.props.selectedCollectionID?"_5zfq":""},c("React").createElement(c("CollectionThumbnail.react"),{className:t.id===this.props.selectedCollectionID?"autofocus":"",collectionID:t.id,collectionName:t.name,numPosts:t.numPosts,onClick:function(){return this.$ReactComposerCollectionSelector10(t)}.bind(this),thumbnailURL:t.thumbnailURL,privacyIcon:t.privacyIcon}))}.bind(this)));return c("React").createElement(c("Grid.react"),{key:p,className:"_1d5w",cols:2,fixed:false},s)};o.prototype.$ReactComposerCollectionSelector23=function(){if(!this.props.collections)return null;else return c("React").createElement(c("ContextualLayer.react"),{behaviors:{AccessibleLayer:c("AccessibleLayer"),ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),LayerAutoFocus:c("LayerAutoFocus"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerFadeOnShow:c("LayerFadeOnShow"),LayerFadeOnHide:c("LayerFadeOnHide"),LayerTabIsolation:c("LayerTabIsolation")},contextRef:function(){return this.refs.collectionSelectorTrigger}.bind(this),onToggle:this.$ReactComposerCollectionSelector6,position:"below",shown:this.props.selectorVisible},c("React").createElement(c("XUICard.react"),{className:"_5ze9"},c("React").createElement(c("XUICardHeader.react"),{className:"_5zea",type:"primary"},c("React").createElement(c("XUICardHeaderTitle.react"),null,k._("Albums"))),c("React").createElement(c("XUICardSection.react"),{ref:function(p){return this.$ReactComposerCollectionSelector1=p}.bind(this),className:"_5zeh"},!this.props.collections||this.props.collections.isLoading()?c("React").createElement("div",{className:"_2n10"},c("React").createElement(c("XUISpinner.react"),{size:"large"})):c("React").createElement("div",{ref:function(p){return this.$ReactComposerCollectionSelector2=p}.bind(this)},this.props.showSharingSpaces?this.$ReactComposerCollectionSelector20():null,this.$ReactComposerCollectionSelector22()))))};o.prototype.$ReactComposerCollectionSelector24=function(){if(this.props.creationLayerVisible)return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerCollectionCreationDialog.react").__setRef("ReactComposerCollectionSelector.react"),bootloadPlaceholder:c("React").createElement("span",null),composerID:this.context.composerID,dialogProps:{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerFadeOnShow:c("LayerFadeOnShow")},causalElementRef:function(){return this.refs.collectionSelectorTrigger}.bind(this),shown:this.props.creationLayerVisible,width:parseInt("375px",10)},onCancel:this.$ReactComposerCollectionSelector8,onAlbumCreated:this.$ReactComposerCollectionSelector9});else return null};o.prototype.$ReactComposerCollectionSelector25=function(){if(this.props.sharingSpaceCreationLayerVisible)return c("React").createElement(c("BootloadedComponent.react"),{bootloadLoader:c("JSResource")("ReactComposerSharingSpaceCreationDialog.react").__setRef("ReactComposerCollectionSelector.react"),bootloadPlaceholder:c("React").createElement("span",null),composerID:this.context.composerID,dialogProps:{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerFadeOnShow:c("LayerFadeOnShow")},causalElementRef:function(){return this.refs.collectionSelectorTrigger}.bind(this),shown:this.props.sharingSpaceCreationLayerVisible,width:parseInt("375px",10)},isCreationFriendsOptIn:this.context.gks&&this.context.gks.isCreationFriendsOptIn,onCancel:this.$ReactComposerCollectionSelector12,onSharingSpaceCreated:this.$ReactComposerCollectionSelector13,sharesheetPrivacyOptions:this.context.gks&&this.context.gks.sharesheetPrivacyOptions,showSecretPrivacyAsHidden:this.context.gks&&this.context.gks.showSecretPrivacyAsHidden,useEyeCrossForHidden:this.context.gks&&this.context.gks.useEyeCrossForHidden});else return null};o.prototype.$ReactComposerCollectionSelector26=function(){return c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.collectionSelectorTrigger}.bind(this),shown:this.props.showAnyPostTypeNux,onCloseButtonClick:this.props.onAnyPostTypeNuxClose,position:this.props.alternateTriggerComponent?"below":"above"},k._("Now you can add posts, check-ins and more to albums"))};o.prototype.render=function(){var p=!!this.$ReactComposerCollectionSelector14(this.props.selectedCollectionID);return c("React").createElement(c("InlineBlock.react"),{className:"uiContextualLayerParent"},this.props.alternateTriggerComponent?c("React").createElement(c("Link.react"),{role:"button",onClick:this.$ReactComposerCollectionSelector3,ref:"collectionSelectorTrigger"},this.props.alternateTriggerComponent):c("React").createElement(c("XUIPopoverButton.react"),{className:"_5ze8",label:this.$ReactComposerCollectionSelector15(this.props.selectedCollectionID),onClick:this.$ReactComposerCollectionSelector3,ref:"collectionSelectorTrigger",use:"confirm",chevron:p?c("React").createElement(c("Image.react"),{onClick:this.$ReactComposerCollectionSelector5,onKeyDown:this.$ReactComposerCollectionSelector4,role:"button",src:h("114707"),tabIndex:0}):null}),this.$ReactComposerCollectionSelector23(),this.$ReactComposerCollectionSelector24(),this.$ReactComposerCollectionSelector25(),this.props.onAnyPostTypeNuxVisible&&this.$ReactComposerCollectionSelector26())};o.defaultProps={collections:null,creationLayerVisible:false,sharingSpaceCreationLayerVisible:false,selectedCollectionID:null,selectorVisible:false,showAnyPostTypeNux:false,onAnyPostTypeNuxVisible:false};o.contextTypes=c("ReactComposerContextTypes");f.exports=o}),null);
__d("ReactComposerCollectionSelectorContainer.react",["React","ReactComponentWithPureRenderMixin","ReactComposerAudienceStore","ReactComposerCollectionSelector.react","ReactComposerCollectionsStore","ReactComposerSproutsDisplayState","ReactComposerStore","ReactComposerContextTypes","ReactComposerPropsAndStoreBasedStateMixin","SimpleNUXMessage","SimpleNUXMessageTypes"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i=c("React").createClass({displayName:"ReactComposerCollectionSelectorContainer",contextTypes:c("ReactComposerContextTypes"),mixins:[c("ReactComponentWithPureRenderMixin"),c("ReactComposerPropsAndStoreBasedStateMixin")(c("ReactComposerAudienceStore"),c("ReactComposerCollectionsStore"))],propTypes:{alternateTriggerComponent:h.element,addAnyPostToAlbum:h.bool,canCreateSharingSpace:h.bool.isRequired,showSharingSpaces:h.bool.isRequired},statics:{calculateState:function j(k,l,m){return{collections:c("ReactComposerCollectionsStore").getCollections(k),selectedCollectionID:c("ReactComposerAudienceStore").getCollectionID(k),isSelectorVisible:c("ReactComposerCollectionsStore").isSelectorVisible(k),isCreationLayerVisible:c("ReactComposerCollectionsStore").isCreationLayerVisible(k),isSharingSpaceCreationLayerVisible:c("ReactComposerCollectionsStore").isSharingSpaceCreationLayerVisible(k),showAnyPostTypeNux:l.addAnyPostToAlbum&&!c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").ALBUMSV2_ANY_POST_TYPE_WWW),sproutsDisplayState:c("ReactComposerStore").getSproutsDisplayState(m.composerID)}}},_onAnyPostTypeNuxClose:function j(){c("SimpleNUXMessage").markMessageSeenByUser(c("SimpleNUXMessageTypes").ALBUMSV2_ANY_POST_TYPE_WWW);this.setState({showAnyPostTypeNux:false})},render:function j(){return c("React").createElement(c("ReactComposerCollectionSelector.react"),{alternateTriggerComponent:this.props.alternateTriggerComponent,collections:this.state.collections,creationLayerVisible:this.state.isCreationLayerVisible,sharingSpaceCreationLayerVisible:this.state.isSharingSpaceCreationLayerVisible,selectedCollectionID:this.state.selectedCollectionID,selectorVisible:this.state.isSelectorVisible,showAnyPostTypeNux:this.state.showAnyPostTypeNux,onAnyPostTypeNuxClose:this._onAnyPostTypeNuxClose,canCreateSharingSpace:this.props.canCreateSharingSpace,showSharingSpaces:this.props.showSharingSpaces,onAnyPostTypeNuxVisible:this.state.sproutsDisplayState===c("ReactComposerSproutsDisplayState").EXPANDED})}});f.exports=i}),null);
__d("ProgressBarBase",["emptyFunction","requestAnimationFrame","removeFromArray"],(function a(b,c,d,e,f,g){__p&&__p();var h=[];function i(j,k){"use strict";__p&&__p();this._min=j||0;this._max=k||100;this._initialPosition=0;this._position=0;this._initialVelocity=0;this._velocity=0;this._acceleration=0;this.useAcceleration=true;this._targetPosition=0;this._targetTime=0;this._startTime=null;this._onComplete=c("emptyFunction")}i.prototype.setPosition=function(j){"use strict";j=this._normalizePosition(j);this._initialPosition=j;this._position=j;this.updateMeter(this._position);this.stop();return this};i.prototype.setCompleteHandler=function(j){"use strict";this._onComplete=j||c("emptyFunction");return this};i.prototype.setTarget=function(j,k){"use strict";__p&&__p();this._stopAnimating();this._clearOnCompleteTimeout();this._targetPosition=j;var l=this._normalizePosition(j);this._targetTime=k;this._initialVelocity=this._velocity;this._initialPosition=this._position;if(this.useAcceleration)this._acceleration=2*(l-this._initialPosition-this._initialVelocity*k)/(k*k);else{this._acceleration=0;this._velocity=this._initialVelocity=(l-this._initialPosition)/k}if(this._position>=l)this._onComplete();else this._start();return this};i.prototype.setNoAcceleration=function(j){"use strict";this.useAcceleration=!j;return this};i.prototype._clearOnCompleteTimeout=function(){"use strict";b.clearTimeout(this._onCompleteTimeout)};i.prototype.stop=function(){"use strict";this._clearOnCompleteTimeout();this._velocity=0;this._initialVelocity=0;this._acceleration=0;this._stopAnimating();return this};i.prototype._start=function(){"use strict";this._startTime=Date.now();this._onCompleteTimeout=b.setTimeout(function(){this.setPosition(this._targetPosition);this._onComplete()}.bind(this),this._targetTime);this._startAnimating();return this};i.prototype._loop=function(){"use strict";__p&&__p();var j=Date.now()-this._startTime;this._position=.5*this._acceleration*j*j+this._initialVelocity*j+this._initialPosition;var k=this._velocity;this._velocity=this._acceleration*j+this._initialVelocity;var l=k<0!==this._velocity<0;if(this._position>this._normalizePosition(this._targetPosition)||l){this.setPosition(this._targetPosition);this._onComplete()}else this.updateMeter(this._position)};i.prototype.updateMeter=function(j){"use strict";throw new Error("Unimplemented function: updateMeter")};i.prototype._normalizePosition=function(j){"use strict";return Math.min(Math.max((j-this._min)/(this._max-this._min),0),1)};i.prototype._startAnimating=function(){"use strict";if(!h.includes(this)){h.push(this);if(h.length===1)c("requestAnimationFrame")(i.prototype._requestAnimationFrameCallback)}};i.prototype._stopAnimating=function(){"use strict";c("removeFromArray")(h,this)};i.prototype._requestAnimationFrameCallback=function(){"use strict";h.forEach(function(j){j._loop()});if(h.length)c("requestAnimationFrame")(i.prototype._requestAnimationFrameCallback)};i.setPosition=function(j,k){"use strict";j.setPosition(k)};i.setTarget=function(j,k,l){"use strict";j.setTarget(k,l)};f.exports=i}),null);
__d("ProgressBar",["cx","csx","ProgressBarBase","CSS","Style","DOM"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k;j=babelHelpers.inherits(l,c("ProgressBarBase"));k=j&&j.prototype;function l(m,n,o){"use strict";k.constructor.call(this,n,o);this._root=m;this._meter=c("DOM").find(m,"div._5e4k");this._meter2=c("DOM").scry(m,"div._5e2g")[0]}l.prototype.getRoot=function(){"use strict";return this._root};l.prototype.updateMeter=function(m){"use strict";__p&&__p();var n=Math.min(Math.max(m,0),1);c("CSS").conditionClass(this._meter,"_5e2d",n<=0);c("CSS").conditionClass(this._meter,"_5e4j",n>=1);this._root.setAttribute("aria-valuenow",n*100);n=n*100+"%";c("Style").set(this._meter,"width",n);if(this._meter2){c("Style").set(this._meter2,"left",n);c("Style").set(this._meter2,"width",n)}};l.prototype.changeLabel=function(m){"use strict";var n=c("DOM").scry(this._root,"span._5e2h");n.forEach(function(o){c("DOM").setContent(o,m)});return this};f.exports=l}),null);
__d("SearchSourceWithMetrics",["AbstractSearchSource"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AbstractSearchSource"));i=h&&h.prototype;function j(k,l){"use strict";i.constructor.call(this);this.searchSource=k;this.reporter=l}j.prototype.searchImpl=function(k,l,m){"use strict";this.reporter.reportQueryBegin(k);if(m)this.reporter.reportStrategyName(m.strategyName);var n=Date.now();this.searchSource.search(k,function(o,k){this.reporter.reportQueryComplete(Date.now()-n,0);l(o,k)}.bind(this),m)};j.prototype.bootstrapImpl=function(k){"use strict";this.reporter.reportBootstrapBegin();return this.searchSource.bootstrap(function(){this.searchSource.getBootstrappedEntries(function(l){this.reporter.reportBootstrapComplete(l.map(function(m){return m.getType()}));k()}.bind(this))}.bind(this))};f.exports=j}),null);
__d("FilteredSearchSource",["AbstractSearchSource"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AbstractSearchSource"));i=h&&h.prototype;function j(k,l){"use strict";i.constructor.call(this);this.$FilteredSearchSource1=k;this.$FilteredSearchSource2=l}j.prototype.bootstrapImpl=function(k){"use strict";this.$FilteredSearchSource2.bootstrap(k)};j.prototype.searchImpl=function(k,l,m){"use strict";var n=function(o,p){o=this.$FilteredSearchSource3(o,p);l(o,p)}.bind(this);this.$FilteredSearchSource2.search(k,n,m)};j.prototype.$FilteredSearchSource3=function(k,l){"use strict";var m=this.$FilteredSearchSource1;return k.filter(function(n){return m(n,l)})};f.exports=j}),null);
__d("filterCapitalizedNames",["TokenizeUtil"],(function a(b,c,d,e,f,g){function h(l,m){return i(l)&&(m.length>=5||j(l,m))}function i(l){var m=l.getAuxiliaryData()||k;return!m.disableAutosuggest&&!!(l.getType()==="user"||m.connectedPage)}function j(l,m){return c("TokenizeUtil").isExactMatch(m,l.getTitle())}var k={};f.exports=h}),null);