/*!CK:2495242962!*//*1459382584,*/

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

__d('ReactComposerScrapedAttachmentPhotoDropWarningDialog.react',['fbt','LayerHideOnEscape','ReactComponentWithPureRenderMixin','React','ReactLayeredComponentMixin','XUIButton.react','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react','XUIDialogHeader.react','XUIDialogHeaderTitle.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerScrapedAttachmentPhotoDropWarningDialog',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin')],propTypes:{shown:i.bool,onConfirm:i.func,onCancel:i.func},componentDidMount:function(){this.refs.dialog.layer.subscribe('hide',this._onHide);},renderLayers:function(){return {dialog:c('React').createElement(c('XUIDialog.react'),{ref:'dialog',shown:this.props.shown,width:500,layerHideOnBlur:false,behaviors:{LayerHideOnEscape:c('LayerHideOnEscape')}},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")})))};},render:function(){return null;},_onHide:function(){this.props.onCancel&&this.props.onCancel();},_onCancel:function(){this.props.onCancel&&this.props.onCancel();}});f.exports=j;},null);
__d('ReactComposerDragDropPromptContainer.react',['ReactComposerAttachmentType','ReactComposerConfig','ReactComposerDragDropPromptLazy.react','ReactComposerPhotoUploader','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerScrapedAttachmentActions','ReactComposerScrapedAttachmentStore','ReactComposerScrapedAttachmentPhotoDropWarningDialog.react','ReactComposerStatusUtils','ReactComposerVideoUploadStore','ReactComposerVideoXUploadStore','ReactComponentWithPureRenderMixin','React','ReactLayeredComponentMixin'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerDragDropPromptContainer',_uploader:undefined,mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerVideoUploadStore'))],propTypes:{root:h.object.isRequired,config:c('ReactComposerConfig').isRequired},statics:{calculateState:function(j,k,l){return {enabled:!c('ReactComposerVideoUploadStore').getVideo(j)};}},getAttachmentInitialState:function(j,k){return {photoDropWarningShown:false,pendingFiles:null};},componentWillMount:function(){var j=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS],k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];this._uploader=new (c('ReactComposerPhotoUploader'))(this.context,k.photoLimit,{disableFaceRecognition:k.disableFaceboxTagger});c('ReactComposerScrapedAttachmentActions').enabled(this.context.composerID,j.canScrapeShare);},renderLayers:function(){return {photoDropWarningDialog:c('React').createElement(c('ReactComposerScrapedAttachmentPhotoDropWarningDialog.react'),{shown:this.state.photoDropWarningShown,onCancel:this._onPhotoDropWarningCancel,onConfirm:this._onPhotoDropWarningConfirm})};},render:function(){if(!this.state.enabled)return null;return (c('React').createElement(c('ReactComposerDragDropPromptLazy.react'),{root:this.props.root,onFilesDrop:this._onFilesDrop,onURLDrop:this._onURLDrop}));},_onFilesDrop:function(j){var k=c('ReactComposerVideoXUploadStore').getUploader(this.context.composerID);if(c('ReactComposerScrapedAttachmentStore').hasAttachment(this.context.composerID)&&this.state.pendingFiles==null){this.setState({photoDropWarningShown:true,pendingFiles:j});return;}c('ReactComposerStatusUtils').uploadDroppedFiles(this.context.composerID,j,this._uploader,k);},_onPhotoDropWarningCancel:function(){this.setState({photoDropWarningShown:false,pendingFiles:null});},_onPhotoDropWarningConfirm:function(){var j=this.state.pendingFiles;this.setState({photoDropWarningShown:false,pendingFiles:null});this._onFilesDrop(j);},_onURLDrop:function(j){c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,j,this.context.composerType,this.context.actorID);}});f.exports=i;},null);
__d('ReactComposerMediaAttachmentButtons.react',['cx','fbt','ReactComposerContextMixin','ReactComposerMediaUtils','ReactComposerPhotoUploadActions','ComposerTargetData','DOMContainer.react','FileInput.react','Grid.react','Link.react','ReactComponentWithPureRenderMixin','React','VideoUploadConfig'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('Grid.react').GridItem,k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerMediaAttachmentButtons',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],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(){return {mediaAcceptParam:{}};},getInitialState:function(){return {createAlbumLink:null};},componentDidMount:function(){var m=c('React').createElement(c('DOMContainer.react'),{className:"_3mc1",display:'block'},this.props.createAlbumLink);this.setState({createAlbumLink:m});},render:function(){var m=[];m.push(this._getUploadPhotosButton());if(this.state.createAlbumLink)m.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:m.length},m.filter(function(n){return n!=null;}))));},_getUploadPhotosButton:function(){if(!this.props.showUploadPhotosButton)return null;var m=this.props.targetData.targetSupportsMultiplePhotos,n=this.props.mediaAcceptParam.both,o,p=c('VideoUploadConfig').allowMultimedia;if(m){if(p){o=i._("Upload Photos\/Videos");}else o=i._("Upload Photos\/Video");}else o=i._("Upload Photo\/Video");return (c('React').createElement(j,{className:"_4l9a",key:'uploadPhoto'},c('React').createElement(c('FileInput.react'),{accept:n,multiple:m,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"},o)))));},_onUploadPhotosClick:function(){c('ReactComposerPhotoUploadActions').inputClicked(this.context.composerID);},_onFilesSelected:function(event){this.props.onFilesSelected(event,this.refs.fileInput.getFileInput());c('ReactComposerMediaUtils').clearInput(this.refs.fileInput.getFileInput());}});f.exports=l;},null);
__d('ReactComposerBackdateTaggerButton.react',['cx','fbt','ReactComposerTaggerButtonMixin','ReactComposerTaggerType','React'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').createClass({displayName:'ReactComposerBackdateTaggerButton',mixins:[c('ReactComposerTaggerButtonMixin')],statics:{taggerID:c('ReactComposerTaggerType').BACKDATE},getTitle:function(){return i._("Set date and time of your post");},getTooltip:function(){return i._("Set date and time of your post");},getClassName:function(){return "_3n04";}});f.exports=j;},null);
__d('ReactComposerBackdateTaggerComponent.react',['cx','fbt','Grid.react','ProgressiveDateAndTimePicker.react','React','emptyFunction'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('Grid.react').GridItem,k=c('React').PropTypes,l=c('React').createClass({displayName:'ReactComposerBackdateTaggerComponent',propTypes:{taggerData:k.object.isRequired,onSelect:k.func.isRequired},getDefaultProps:function(){return {taggerData:{},onSelect:c('emptyFunction')};},_onChange:function(m){this.props.onSelect(m);},render:function(){return (c('React').createElement(c('Grid.react'),{cols:2,className:"_5esl",role:'presentation'},c('React').createElement(j,{key:'prefix',className:"_5esm",role:'presentation'},i._("When")),c('React').createElement(j,{key:'tagger',className:"_5esw",role:'presentation'},c('React').createElement(c('ProgressiveDateAndTimePicker.react'),{className:"_5bm1",initialYear:this.props.taggerData.year,initialMonth:this.props.taggerData.month,initialDay:this.props.taggerData.day,initialHour:this.props.taggerData.hour,initialMinute:this.props.taggerData.minute,descendingYears:true,onDateAndTimeChange:this._onChange,menuMaxHeight:235}))));}});f.exports=l;},null);
__d('ReactComposerBackdateTaggerContainer.react',['ReactComposerBackdateTaggerComponent.react','ReactComposerTaggerContainerMixin','ReactComposerTaggerType','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerBackdateTaggerContainer',mixins:[c('ReactComposerTaggerContainerMixin')],statics:{taggerID:c('ReactComposerTaggerType').BACKDATE,taggerComponent:c('ReactComposerBackdateTaggerComponent.react')}});f.exports=h;},null);
__d('ReactComposerImplicitLocationComponent.react',['cx','React','XUICloseButton.react','emptyFunction'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerImplicitLocationComponent',propTypes:{caption:i.string.isRequired,hasExplicitLocation:i.bool,onClear:i.func},defaultProps:{onClear:c('emptyFunction')},render:function(){if(!this.props.caption)return c('React').createElement('noscript',null);var k=this.props.hasExplicitLocation?null:c('React').createElement(c('XUICloseButton.react'),{className:"_3s32",size:'small',onClick:this._onClear}),l="_3s33"+(this.props.hasExplicitLocation?' '+"_3s34":'');return (c('React').createElement('span',{className:l},c('React').createElement('span',null,this.props.caption.split(',')[0]),k));},_onClear:function(event){event.stopPropagation();this.props.onClear&&this.props.onClear();}});f.exports=j;},null);
__d('ReactComposerImplicitLocationContainer.react',['ReactComposerImplicitLocationComponent.react','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerTaggerActions','ReactComposerTaggerStore','ReactComposerTaggerType','AsyncRequest','URI','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerImplicitLocationContainer',mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerTaggerStore'))],statics:{calculateState:function(i,j){var k=c('ReactComposerTaggerStore').getTaggerData(i,c('ReactComposerTaggerType').LOCATION)||{},l=k.implicitLocation||{};return {caption:l.citystring,hasExplicitLocation:!!k.place};}},render:function(){if(!this.state.caption)return c('React').createElement('noscript',null);return (c('React').createElement(c('ReactComposerImplicitLocationComponent.react'),babelHelpers['extends']({},this.state,{onClear:this._onClear})));},_onClear:function(){var i=c('ReactComposerTaggerStore').getTaggerData(this.context.composerID,c('ReactComposerTaggerType').LOCATION)||{};i.implicitLocation=null;c('ReactComposerTaggerActions').setTaggerData(this.context.composerID,c('ReactComposerTaggerType').LOCATION,i);var j=new (c('URI'))('/ajax/places/toggle_location_sharing').addQueryData({disable:1,session_id:i.sessionID});new (c('AsyncRequest'))(j).send();}});f.exports=h;},null);
__d('ReactComposerPhotoTaggerButtonContainer.react',['ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerBootloaderPropTypes','ReactComposerMediaFilePickerMixin','ReactComposerPhotoTaggerButton.react','ReactComposerPhotoUploadStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerScrapedAttachmentStore','ComposerTargetData','ReactComposerVideoUploadStore','React','SimpleNUXMessage','SimpleNUXMessageTypes','VideoUploadConfig'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerPhotoTaggerButtonContainer',mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerAttachmentStore'),c('ReactComposerPhotoUploadStore'),c('ReactComposerScrapedAttachmentStore')),c('ReactComposerMediaFilePickerMixin')],propTypes:{bootloader:c('ReactComposerBootloaderPropTypes'),customPhotoTaggerButton:h.any,disableFaceRecognition:h.bool.isRequired,mediaAcceptParam:h.shape({photos:h.string,both:h.string}),photoLimit:h.number.isRequired,targetData:h.instanceOf(c('ComposerTargetData')).isRequired,mediaConfig:h.object.isRequired},getDefaultProps:function(){return {disableFaceRecognition:false};},statics:{calculateState:function(j,k){var l=c('ReactComposerAttachmentStore').getIsAttachmentSelected(j,c('ReactComposerAttachmentType').MEDIA),m=c('ReactComposerPhotoUploadStore').getUploads(j),n=!c('ReactComposerVideoUploadStore').getVideo(j)&&!c('ReactComposerScrapedAttachmentStore').hasAttachment(j)&&m.size<k.photoLimit,o=!c('SimpleNUXMessage').hasUserSeenMessage(c('SimpleNUXMessageTypes').MULTIMEDIA_ATTACHMENTS_NUX)&&c('VideoUploadConfig').allowMultimedia;return {hasData:!!m.size&&l,shown:n,uploadSize:m.size,multimediaNuxShown:o};}},render:function(){if(!this.state.shown)return null;if(this.props.customPhotoTaggerButton){var j=this.props.customPhotoTaggerButton;return (c('React').createElement(j,babelHelpers['extends']({},this.props,this.state,{onClick:this._onClick,onFilesSelected:this._onFilesSelected})));}else return (c('React').createElement(c('ReactComposerPhotoTaggerButton.react'),babelHelpers['extends']({},this.props,this.state,{onClick:this._onClick,onFilesSelected:this._onFilesSelected,onNUXCloseButtonClick:this._onNUXCloseButtonClick})));},_onNUXCloseButtonClick:function(){c('SimpleNUXMessage').markMessageSeenByUser(c('SimpleNUXMessageTypes').MULTIMEDIA_ATTACHMENTS_NUX);this.setState({multimediaNuxShown:false});},_onClick:function(){this._onNUXCloseButtonClick();this._onFileInputClick(this.props.bootloader&&this.props.bootloader.mediaAttachment);}});f.exports=i;},null);
__d('ReactComposerStatusFooter.react',['cx','ReactComposerActivityTaggerButton.react','ReactComposerActivityTaggerContainer.react','ReactComposerAttachmentType','ReactComposerAudienceSelectorContainer.react','ReactComposerBackdateTaggerButton.react','ReactComposerBackdateTaggerContainer.react','ReactComposerBootloaderPropTypes','ReactComposerConfig','ReactComposerContextMixin','ReactComposerFooter.react','ReactComposerFooterActions.react','ReactComposerImplicitLocationContainer.react','ReactComposerLocationTaggerButton.react','ReactComposerLocationTaggerContainer.react','ReactComposerPeopleTaggerButton.react','ReactComposerPeopleTaggerContainer.react','ReactComposerPostButtonContainer.react','ReactComposerPhotoTaggerButtonContainer.react','ReactComposerTaggerButtons.react','ReactComposerTaggers.react','ReactComposerTaggerType','ReactComposerTaggerViewStyles','BasicTypeaheadLoggerJSConstants','ComposerEntryPointRef','ComposerTargetData','LeftRight.react','PlaceSearchConstants','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('BasicTypeaheadLoggerJSConstants').EventNames,j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerStatusFooter',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],propTypes:{additionalTaggers:j.arrayOf(j.shape({button:j.element.isRequired,container:j.element.isRequired})),additionalFooterActions:j.arrayOf(j.element),audienceXHP:j.instanceOf(HTMLElement),attachmentsConfig:j.object.isRequired,bootloader:c('ReactComposerBootloaderPropTypes'),config:c('ReactComposerConfig').isRequired,hasImplicitLocation:j.bool,isCameraIconEnabled:j.bool,locationTaggerPlaceholder:j.string,mediaAcceptParam:j.shape({photos:j.string,both:j.string}),mediaLocation:j.shape({latitude:j.number.isRequired,longitude:j.number.isRequired}),peopleTaggerPlaceholder:j.string,placeID:j.string,postButtonModule:j.func,taggersConfig:j.object.isRequired,targetData:j.instanceOf(c('ComposerTargetData')).isRequired},getDefaultProps:function(){return {isCameraIconEnabled:true};},render:function(){var l=this.props.hasImplicitLocation?"_icv":'',m=this.props.config.showExpandedComposer?'white':'light-wash';return (c('React').createElement('div',null,this._getTaggers(),c('React').createElement(c('ReactComposerFooter.react'),{background:m,className:l},c('React').createElement(c('LeftRight.react'),null,this._getButtons(),this._getFooterActions()))));},_getTaggers:function(){var l=this.props.taggersConfig,m=l[c('ReactComposerTaggerType').PEOPLE].enabled?c('React').createElement(c('ReactComposerPeopleTaggerContainer.react'),{placeholder:this.props.peopleTaggerPlaceholder,showEntriesOnFocus:false,actorID:this.context.actorID,taggerConfig:l[c('ReactComposerTaggerType').PEOPLE]}):null,n=l[c('ReactComposerTaggerType').LOCATION].enabled?c('React').createElement(c('ReactComposerLocationTaggerContainer.react'),{implicitLocationEnabled:l[c('ReactComposerTaggerType').LOCATION].implicitLocationEnabled,mediaLocation:this.props.mediaLocation,placeholder:this.props.locationTaggerPlaceholder,taggerConfig:l[c('ReactComposerTaggerType').LOCATION],taggerViewStyle:c('ReactComposerTaggerViewStyles').SCROLLABLE,typeaheadLoggerEventName:i.REACT_COMPOSER_LOCATION_TAGGER,typeaheadSearchSource:c('PlaceSearchConstants').SOURCE_W_COMPOSER}):null,o=this.context.composerType===c('ComposerEntryPointRef').TIMELINE,p=l[c('ReactComposerTaggerType').OG].enabled?c('React').createElement(c('ReactComposerActivityTaggerContainer.react'),{actionTypeIDsWithNoFreeForm:l[c('ReactComposerTaggerType').OG].actionTypeIDsWithNoFreeForm,actorID:this.context.actorID,isPersonalTimeline:o,objectTaggerViewStyle:c('ReactComposerTaggerViewStyles').SCROLLABLE,placeID:this.props.placeID,actionTypeIDsToPrefetch:l[c('ReactComposerTaggerType').OG].actionTypeIDsToPrefetch,rankVerbs:l[c('ReactComposerTaggerType').OG].rankVerbs,typeaheadLoggerEventName:i.OGCOMPOSER_TAGGER}):null,q=l[c('ReactComposerTaggerType').BACKDATE].enabled?c('React').createElement(c('ReactComposerBackdateTaggerContainer.react'),null):null,r=this.props.additionalTaggers?this.props.additionalTaggers.map(function(s){return s.container;}):null;return (c('React').createElement(c('ReactComposerTaggers.react'),null,m,n,p,q,r));},_getButtons:function(){var l=this.props.taggersConfig,m=this.props.attachmentsConfig[c('ReactComposerAttachmentType').STATUS],n=this.props.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],o=l[c('ReactComposerTaggerType').CAMERA].enabled&&this.props.isCameraIconEnabled?c('React').createElement(c('ReactComposerPhotoTaggerButtonContainer.react'),{bootloader:this.props.bootloader,customPhotoTaggerButton:m.customPhotoTaggerButton,disableFaceRecognition:n.disableFaceboxTagger,photoLimit:n.photoLimit,mediaAcceptParam:this.props.mediaAcceptParam,targetData:this.props.targetData,mediaConfig:n}):null,p=l[c('ReactComposerTaggerType').PEOPLE].enabled?c('React').createElement(c('ReactComposerPeopleTaggerButton.react'),null):null,q=l[c('ReactComposerTaggerType').OG].enabled?c('React').createElement(c('ReactComposerActivityTaggerButton.react'),null):null,r=l[c('ReactComposerTaggerType').LOCATION].enabled?c('React').createElement(c('ReactComposerLocationTaggerButton.react'),null,c('React').createElement(c('ReactComposerImplicitLocationContainer.react'),null)):null,s=l[c('ReactComposerTaggerType').BACKDATE].enabled?c('React').createElement(c('ReactComposerBackdateTaggerButton.react'),null):null,t=this.props.additionalTaggers?this.props.additionalTaggers.map(function(u){return u.button;}):null;return (c('React').createElement(c('ReactComposerTaggerButtons.react'),null,o,p,q,r,s,t));},_getFooterActions:function(){var l=this.props.audienceXHP?c('React').createElement(c('ReactComposerAudienceSelectorContainer.react'),{audienceXHP:this.props.audienceXHP,viewerIsTarget:this.props.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));}});f.exports=k;},null);
__d('ReactComposerStatusFooterContainer.react',['ReactComposerPropsAndStoreBasedStateMixin','ReactComposerStatusFooter.react','ReactComposerTaggerStore','ReactComposerTaggerType','React','ReactComponentWithPureRenderMixin'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerStatusFooterContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerTaggerStore'))],statics:{calculateState:function(i,j){var k=c('ReactComposerTaggerStore').getTaggerData(i,c('ReactComposerTaggerType').LOCATION),l=k&&k.implicitLocation&&!!k.implicitLocation.citystring,m=k&&k.place&&k.place.getUniqueID();return {hasImplicitLocation:l,mediaLocation:k?k.mediaLocation:null,placeID:m};}},render:function(){return (c('React').createElement(c('ReactComposerStatusFooter.react'),babelHelpers['extends']({},this.props,{hasImplicitLocation:this.state.hasImplicitLocation,mediaLocation:this.state.mediaLocation,placeID:this.state.placeID})));}});f.exports=h;},null);
__d('ReactComposerVideoUploadPlaceholder.react',['cx','ix','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerStore','Image.react','ReactComponentWithPureRenderMixin','React','XUICloseButton.react'],function a(b,c,d,e,f,g,h,i){'use strict';if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'ReactComposerVideoUploadPlaceholder',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerStore'))],propTypes:{onRemoveClick:j.func},statics:{calculateState:function(l,m){return {posting:c('ReactComposerStore').isPosting(l)};}},render:function(){var l="_2oe _5ip5",m="_3ew _5iph",n=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:l},n,c('React').createElement(c('Image.react'),{className:m,src:i('images/icons/timeline/placeholder/placeholder-movies.png')})));}});f.exports=k;},null);
__d('ReactComposerVideoUploadPlaceholderContainer.react',['ReactComposerContextMixin','ReactComposerVideoUploadActions','ReactComposerVideoUploadPlaceholder.react','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerVideoUploadPlaceholderContainer',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerContextMixin')],render:function(){return (c('React').createElement(c('ReactComposerVideoUploadPlaceholder.react'),{onRemoveClick:this._onRemoveClick}));},_onRemoveClick:function(){c('ReactComposerVideoUploadActions').remove(this.context.composerID);}});f.exports=h;},null);
__d('ReactComposerVideoUploadProgressBar.react',['cx','DOMContainer.react','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerVideoUploadProgressBar',mixins:[c('ReactComponentWithPureRenderMixin')],propTypes:{progressBar:i.instanceOf(HTMLElement).isRequired},render:function(){return (c('React').createElement('div',{className:"_4340"},c('React').createElement(c('DOMContainer.react'),null,this.props.progressBar)));}});f.exports=j;},null);
__d('ReactComposerMediaAttachment.react',['fbt','ReactComposerAttachmentType','ReactComposerConfig','ReactComposerContextMixin','ReactComposerDragDropPromptContainer.react','ReactComposerMediaAttachmentButtons.react','ReactComposerMediaUploadsGridContainer.react','ReactComposerProfilePhotoBlock.react','ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react','ReactComposerStatusFooterContainer.react','ReactComposerTaggerSummaryContainer.react','ReactComposerVideoUploadPlaceholderContainer.react','ReactComposerVideoUploadProgressBar.react','ReactComposerStatusUtils','immutable','React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerMediaAttachment',mixins:[c('ReactComposerContextMixin')],propTypes:{additionalTaggers:i.arrayOf(i.shape({button:i.element.isRequired,container:i.element.isRequired})),additionalFooterActions:i.arrayOf(i.element),config:c('ReactComposerConfig').isRequired,createAlbumLink:i.any,handlePastedText:i.func,onFilesSelected:i.func.isRequired,onMentionsInputChange:i.func,onMentionsInputFocus:i.func,onPasteFiles:i.func,shouldShowCanvasSelector:i.bool,shouldShowCarouselURLInputArea:i.bool,shouldShowPreview:i.bool,isSlideshowSelected:i.bool,postButtonModule:i.func,uploads:i.instanceOf(c('immutable').List).isRequired,video:i.object,videoUploadsCount:i.number,photoUploadsCount:i.number},render:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],l=this.props.uploads.size>0||!!this.props.video||k.canUploadPhoto&&!this.props.createAlbumLink||this.props.shouldShowCanvasSelector||this.props.shouldShowCarouselURLInputArea||this.props.shouldShowPreview||this.props.isSlideshowSelected&&this.props.uploads.size>0,m=null;if(k.ComposerMediaAttachmentButtonsWithOptions){var n=k.ComposerMediaAttachmentButtonsWithOptions;m=c('React').createElement(n,{carouselConfig:k.carouselConfig,createAlbumLink:this.props.createAlbumLink,mediaAcceptParam:this.props.config.mediaAcceptParam,onFilesSelected:this.props.onFilesSelected,showCanvasEntryPoint:k.showCanvasEntryPoint,showCarouselEntryPoint:k.showCarouselEntryPoint,showPhotoAlbumEntryPoint:k.showPhotoAlbumEntryPoint,showSlideshowEntryPoint:k.showSlideshowEntryPoint,showUploadPhotosButton:k.canUploadPhoto,slideshowConfig:k.slideshowConfig,targetData:this.props.config.targetData});}else m=c('React').createElement(c('ReactComposerMediaAttachmentButtons.react'),{showUploadPhotosButton:k.canUploadPhoto,createAlbumLink:this.props.createAlbumLink,mediaAcceptParam:this.props.config.mediaAcceptParam,onFilesSelected:this.props.onFilesSelected,targetData:this.props.config.targetData});return (l?this._getMediaContent():c('React').createElement('div',null,c('React').createElement(c('ReactComposerDragDropPromptContainer.react'),{root:this,config:this.props.config}),m));},componentDidMount:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS];if(k)c('ReactComposerStatusUtils').handleMarkdownPreview(this.context.composerID,this.context.targetID,k.markdownPreviewAttachment);},_getMediaContent:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],l=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS],m;if(this.props.shouldShowPreview){var n=k.ComposerAttachmentPreviewContainer,o=c('React').createElement(n,null);if(this.props.shouldShowCanvasSelector){var p=k.canvasConfig.TypeaheadContainer;m=c('React').createElement('div',null,o,c('React').createElement(p,{config:k.canvasConfig}));}else m=o;}else if(this.props.shouldShowCarouselURLInputArea){var q=k.carouselConfig.PhotoCarouselUtils;m=q.getPhotoCarouselMediaContent(k.carouselConfig,this.props.config.nuxConfig);}else if(this.props.shouldShowCanvasSelector){var r=k.canvasConfig,s=r.TypeaheadContainer;m=c('React').createElement(s,{config:r});}else if(this.props.isSlideshowSelected){var t=k.slideshowConfig.photoUploadsContainer;m=c('React').createElement(t,{config:this.props.config,onFilesSelected:this.props.onFilesSelected,uploads:this.props.uploads});}else if(this.props.video){m=c('React').createElement('div',null,c('React').createElement(c('ReactComposerVideoUploadPlaceholderContainer.react'),null),c('React').createElement(c('ReactComposerVideoUploadProgressBar.react'),{progressBar:this.props.videoProgressBar}));}else m=c('React').createElement(c('ReactComposerMediaUploadsGridContainer.react'),{enableFaceboxTagger:!k.disableFaceboxTagger,disablePhotoEditing:k.disablePhotoEditing,mediaConfig:k,nuxConfig:this.props.config.nuxConfig,onFilesSelected:this.props.onFilesSelected,canUploadMultiplePhotos:this.props.config.targetData.targetSupportsMultiplePhotos,uploads:this.props.uploads});var u=c('React').createElement(c('ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react'),{config:this.props.config,handlePastedText:this.props.handlePastedText,onFocus:this.props.onMentionsInputFocus,onChange:this.props.onMentionsInputChange,onPasteFiles:this.props.onPasteFiles,placeholder:this._getInputPlaceholder()}),v=l.multilingualStatus,w=l.multilingualStatus?c('React').createElement(v,null):null,x=c('React').createElement('div',null,u,w);if(l.showProfilePic)x=c('React').createElement(c('ReactComposerProfilePhotoBlock.react'),{profilePhotoBadge:l.customProfilePhoto,profilePicSrc:l.profilePicSrc,profileURI:l.profileURI},x);var y=l?l.markdownPreviewAttachment:null,z=null;if(y){var aa=y.container;z=c('React').createElement(aa,{prettify:y.prettify});}var ba=l.donateButtonConfig,ca=null;if(ba){var da=ba.donateButtonContainer;ca=c('React').createElement(da,{charityName:ba.charityName,fundraiserCampaignId:ba.fundraiserCampaignId});}var ea=l.shareInNewsFeedToggle,fa=l.shareInNewsFeedToggle,ga=l.shareInNewsFeedToggle?c('React').createElement(fa,null):null,ha=null;if(l.topicFeedsTagger){var ia=l.topicFeedsTagger,ja=ia.container;ha=c('React').createElement(ja,{photoAutoTaggingDelay:ia.photoAutoTaggingDelay,showNux:ia.showNux,textAutoTaggingDelay:ia.textAutoTaggingDelay});}return (c('React').createElement('div',null,c('React').createElement(c('ReactComposerDragDropPromptContainer.react'),{root:this,config:this.props.config}),x,z,ca,c('React').createElement(c('ReactComposerTaggerSummaryContainer.react'),null),m,ga,ha,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:!this.props.shouldShowCarouselURLInputArea,locationTaggerPlaceholder:this._getLocationTaggerPlaceholder(),mediaAcceptParam:this.props.config.mediaAcceptParam,peopleTaggerPlaceholder:this._getPeopleTaggerPlaceholder(),postButtonModule:this.props.postButtonModule,taggersConfig:this.props.config.taggersConfig,targetData:this.props.config.targetData})));},_getLocationTaggerPlaceholder:function(){if(!!this.props.video)return h._("Where was this taken?");if(this.props.uploads.size>1)return h._("Where were these photos taken?");if(this.props.uploads.size===1)return h._("Where was this photo taken?");return null;},_getPeopleTaggerPlaceholder:function(){if(!!this.props.video||this.props.uploads.size>0)return h._("Who were you with?");return null;},_getInputPlaceholder:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];if(!!this.props.video){return h._("Say something about this video...");}else if(this.props.isSlideshowSelected){return h._("Say something about this slideshow...");}else if(this.props.uploads.size>1){if(this.props.photoUploadsCount===0){return h._("Say something about these videos...");}else if(this.props.videoUploadsCount===0){return h._("Say something about these photos...");}else return h._("Say something about these media...");}else if(this.props.shouldShowCarouselURLInputArea||this.props.shouldShowPreview){var l=k.carouselConfig.PhotoCarouselUtils;return l.getInputPlaceHolder(k.carouselConfig,this.props.shouldShowPreview);}else return h._("Say something about this photo...");}});f.exports=j;},null);
__d('ReactComposerVideoUploader',['invariant','ReactComposerActions','ComposerEntryPointRef','ReactComposerPostUtilsCore','ReactComposerVideoUploadActions','ReactComposerVideoUploadStore','Arbiter','DOM','DOMClone','ErrorDialog','QE','React','ReactDOM','Run','SubscriptionsHandler','UserAgent','VideoUploadProcessingDialog.react','VideoUploadFile'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=b.URL||b.webkitURL||{};function j(k){this.$ReactComposerVideoUploader3=k;this.$ReactComposerVideoUploader2=new (c('SubscriptionsHandler'))();!this.$ReactComposerVideoUploader3.composerID?h(0):void 0;!this.$ReactComposerVideoUploader3.container?h(0):void 0;!this.$ReactComposerVideoUploader3.progressBarInstance?h(0):void 0;!this.$ReactComposerVideoUploader3.uploader?h(0):void 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.$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','ReactComposerAttachmentActions','ReactComposerAttachmentType','ReactComposerCanvasStore','ReactComposerConfig','ReactComposerMediaAttachment.react','ReactComposerMediaStore','ReactComposerMediaUtils','ReactComposerPhotoCarouselStore','ReactComposerPhotoUploadActions','ReactComposerPhotoUploadStore','ReactComposerPhotoUploader','ReactComposerPrefillStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerScrapedAttachmentStore','ReactComposerSlideshowActions','ReactComposerSlideshowStore','ReactComposerStatusUtils','ReactComposerTaggerActions','ReactComposerTaggerStore','ReactComposerTaggerType','ReactComposerVideoUploadActions','ReactComposerVideoUploader','ReactComposerVideoUploadStore','ReactComposerVideoXUploadStore','Arbiter','React','ReactDOM','PUWMethods','URLScraper','curry'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ComposerMediaAttachmentContainer',_uploader:undefined,_videoXUploader:undefined,_videoUploader:undefined,_photoEditorSubscription:undefined,mixins:[c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerCanvasStore'),c('ReactComposerMediaStore'),c('ReactComposerPhotoCarouselStore'),c('ReactComposerPhotoUploadStore'),c('ReactComposerScrapedAttachmentStore'),c('ReactComposerSlideshowStore'),c('ReactComposerTaggerStore'),c('ReactComposerVideoUploadStore'),c('ReactComposerVideoXUploadStore'))],propTypes:{additionalTaggers:i.arrayOf(i.shape({button:i.element.isRequired,container:i.element.isRequired})),config:c('ReactComposerConfig').isRequired},statics:{beforeCalculateInitialState:function(k,l){var m=c('ReactComposerPrefillStore').getAndEraseField(k,'photosData');m&&c('ReactComposerPhotoUploadActions').prefillPhotos(k,m);},calculateState:function(k,l){var m=c('ReactComposerPhotoUploadStore').getUploads(k),n=c('ReactComposerVideoXUploadStore').getUploads(k),o=n.concat(m);return {createAlbumLink:c('ReactComposerMediaStore').getCreateAlbumLink(k),shouldShowCanvasSelector:c('ReactComposerCanvasStore').shouldShowCanvasSelector(k),shouldShowCarouselURLInputArea:c('ReactComposerPhotoCarouselStore').shouldShowURLEditArea(k),shouldShowPreview:c('ReactComposerScrapedAttachmentStore').getMarkup(k)!==null,isSlideshowSelected:c('ReactComposerSlideshowStore').isSlideshowSelected(k),selectedTagger:c('ReactComposerTaggerStore').getSelectedTagger(k),uploads:o,photoUploadsCount:m.size,videoUploadsCount:n.size,video:c('ReactComposerVideoUploadStore').getVideo(k),videoProgressBar:c('ReactComposerMediaStore').getVideoProgressBar(k),videoProgressBarInstance:c('ReactComposerMediaStore').getVideoProgressBarInstance(k),videoUploader:c('ReactComposerMediaStore').getVideoUploader(k)};}},componentWillMount:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];this._uploader=new (c('ReactComposerPhotoUploader'))(this.context,k.photoLimit,{disableFaceRecognition:k.disableFaceboxTagger});this._photoEditorSubscription=c('Arbiter').subscribe(['AttachmentsPhotoEditor/newImage'+this.context.composerID,'AttachmentsPhotoEditor/tagsUpdated'+this.context.composerID],c('curry')(c('ReactComposerMediaUtils').onImageEdited,this.context.composerID,this._uploader));},componentDidMount:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];this._videoUploader=new (c('ReactComposerVideoUploader'))({composerID:this.context.composerID,container:c('ReactDOM').findDOMNode(this.refs.videoContainer),progressBarInstance:this.state.videoProgressBarInstance,uploader:this.state.videoUploader,shouldShowOptimisticVideoPost:k.shouldShowOptimisticVideoPost,composerEntryPointRef:this.context.composerType});this._videoXUploader=c('ReactComposerVideoXUploadStore').getUploader(this.context.composerID);c('ReactComposerVideoUploadActions').setUploader(this.context.composerID,this._videoUploader);},componentWillUnmount:function(){this._videoUploader&&this._videoUploader.destroy();this._photoEditorSubscription&&this._photoEditorSubscription.unsubscribe();this._photoEditorSubscription=null;},componentWillUpdate:function(k,l){l=l||{};if((this.state.uploads.size>0||!!this.state.video)&&l.uploads.size===0&&!l.video){c('ReactComposerAttachmentActions').selectAttachment(this.context.composerID,c('ReactComposerAttachmentType').STATUS,true);c('ReactComposerSlideshowActions').hideSlideshowEditField(this.context.composerID);}},render:function(){return (c('React').createElement('div',null,c('React').createElement(c('ReactComposerMediaAttachment.react'),babelHelpers['extends']({},this.props,{createAlbumLink:this.state.createAlbumLink,isSlideshowSelected:this.state.isSlideshowSelected,shouldShowCanvasSelector:this.state.shouldShowCanvasSelector,shouldShowCarouselURLInputArea:this.state.shouldShowCarouselURLInputArea,shouldShowPreview:this.state.shouldShowPreview,onFilesSelected:this._onFilesSelected,onMentionsInputChange:this._onMentionsInputChange,onMentionsInputFocus:this._onMentionsInputFocus,onPasteFiles:this._onPasteFiles,handlePastedText:this._handlePastedText,postButtonModule:this.props.postButtonModule,uploads:this.state.uploads,videoUploadsCount:this.state.videoUploadsCount,photoUploadsCount:this.state.photoUploadsCount,video:this.state.video,videoProgressBar:this.state.videoProgressBar})),c('React').createElement('div',{ref:'videoContainer'})));},_onFilesSelected:function(event,k){var l=c('ReactComposerMediaUtils').handleSpecialMediaUpload(event,k,this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],this.context);if(l)return;!this._uploader?h(0):void 0;!this._videoXUploader?h(0):void 0;c('ReactComposerMediaUtils').uploadPhotosOrVideoFromTarget(this.context.composerID,event.target,this._uploader,this._videoXUploader,this.props.config.targetData.targetSupportsMultiplePhotos);},_onMentionsInputFocus:function(){if(this.state.selectedTagger!==null&&this.state.selectedTagger!==c('ReactComposerTaggerType').PEOPLE)c('ReactComposerTaggerActions').selectTaggerWithoutAutofocus(this.context.composerID,c('ReactComposerTaggerType').PEOPLE);},_onPasteFiles:function(k){c('ReactComposerStatusUtils').uploadPastedFile(this.context.composerID,k[0],this._uploader);c('ReactComposerPhotoUploadActions').photosSelect(this.context.composerID,1,c('PUWMethods').COPYPASTE);},_handlePastedText:function(k,l){var m=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],n=c('ReactComposerPhotoCarouselStore').shouldShowURLEditArea(this.context.composerID);if(m.carouselConfig&&n&&m.carouselConfig.ComposerPhotoCarouselPlaceHolder)c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,k,this.context.composerType,this.context.actorID);return false;},_onMentionsInputChange:function(k){var l=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],m=c('ReactComposerPhotoCarouselStore').shouldShowURLEditArea(this.context.composerID);if(!l.carouselConfig||!m)return;if(l.carouselConfig.ComposerPhotoCarouselPlaceHolder){var n=k.getCurrentContent().getPlainText();if(!c('URLScraper').trigger(n))c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,n,this.context.composerType,this.context.actorID);}}});f.exports=j;},null);
__d('ReactComposerVideoCopyrightDialog.react',['fbt','LayerHideOnEscape','ReactComponentWithPureRenderMixin','React','ReactLayeredComponentMixin','XUIButton.react','XUIDialog.react','XUIDialogBody.react','XUIDialogFooter.react'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerVideoCopyrightDialog',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin')],propTypes:{shown:i.bool,onConfirm:i.func,onCancel:i.func},componentDidMount:function(){this.refs.dialog.layer.subscribe('hide',this._onHide);},renderLayers:function(){return {dialog:c('React').createElement(c('XUIDialog.react'),{ref:'dialog',shown:this.props.shown,width:500,layerHideOnBlur:false,behaviors:{LayerHideOnEscape:c('LayerHideOnEscape')}},c('React').createElement(c('XUIDialogBody.react'),null,h._("Please confirm that the content you are uploading does not infringe upon the intellectual property rights of any third party and that you have secured all rights necessary to copy, display and publicly perform the uploaded content (including any musical compositions or sound recordings included in the content) on Facebook.")),c('React').createElement(c('XUIDialogFooter.react'),null,c('React').createElement(c('XUIButton.react'),{use:'confirm',onClick:this.props.onConfirm,label:h._("Confirm")}),c('React').createElement(c('XUIButton.react'),{onClick:this.props.onCancel,label:h._("Cancel")})))};},render:function(){return null;},_onHide:function(){this.props.onCancel&&this.props.onCancel();},_onCancel:function(){this.props.onCancel&&this.props.onCancel();}});f.exports=j;},null);
__d('ReactComposerMediaAttachmentPostButton.react',['fbt','ReactComposerConfig','ReactComposerPostButtonContainer.react','ReactComposerVideoCopyrightDialog.react','ReactComponentWithPureRenderMixin','React','ReactLayeredComponentMixin','XUIContextualDialog.react','XUIContextualDialogBody.react'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'ReactComposerMediaAttachmentPostButton',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactLayeredComponentMixin')],propTypes:{config:c('ReactComposerConfig').isRequired,disabled:i.bool,limitExceeded:i.bool,onClick:i.func,photoLimit:i.number.isRequired,showCopyrightDialogOnPost:i.bool,label:i.string},getDefaultProps:function(){return {disabled:false,limitExceeded:false,showCopyrightDialogOnPost:false};},getInitialState:function(){return {copyrightDialogShown:false};},renderLayers:function(){return {limitDialog:c('React').createElement(c('XUIContextualDialog.react'),{alignment:'right',contextRef:function(){return this.refs.post;}.bind(this),position:'below',shown:this.props.limitExceeded,width:300},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._onCopyrightDialogCancel,onConfirm:this._onCopyrightDialogConfirm})};},render:function(){return (c('React').createElement(c('ReactComposerPostButtonContainer.react'),{config:this.props.config,forceDisabled:this.props.disabled,onClickPreprocess:this._onClickPreprocess,label:this.props.label,ref:'post'}));},_onClickPreprocess:function(){if(this.props.showCopyrightDialogOnPost){this.setState({copyrightDialogShown:true});return false;}if(this.props.onClick){this.props.onClick();return false;}return true;},_onCopyrightDialogCancel:function(){this.setState({copyrightDialogShown:false});},_onCopyrightDialogConfirm:function(){this.setState({copyrightDialogShown:false});this.props.onClick&&this.props.onClick();}});f.exports=j;},null);
__d('ReactComposerMediaEagerAttachment.react',['ReactComposerAttachmentActions','ReactComposerAttachmentType','ReactComposerAttachmentBodyMixin','ReactComposerConfig','ReactComposerMediaActions','ReactComposerMediaAttachmentContainer.react','ReactComposerStatusActions','ReactComposerTaggerActions','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();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(){var j=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA].bootstrapData;c('ReactComposerTaggerActions').updateTaggersSource(this.context.composerID,j.taggersSource);c('ReactComposerStatusActions').setMentionsSource(this.context.composerID,j.mentionsSource);c('ReactComposerMediaActions').setConfig(this.context.composerID,j);c('ReactComposerAttachmentActions').setInitialized(this.context.composerID,c('ReactComposerAttachmentType').MEDIA);},renderX:function(){return c('React').createElement(c('ReactComposerMediaAttachmentContainer.react'),this.props);}});f.exports=i;},null);
__d('ReactComposerMediaPostButtonContainerMixin',['ReactComposerActions','ReactComposerAttachmentType','ReactComposerConfig','ReactComposerConstants','ReactComposerContextMixin','ReactComposerMediaAttachmentPostButton.react','ReactComposerPhotoStore','ReactComposerPhotoUploadStore','ReactComposerPostUtils','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerStore','ReactComposerVideoUploadStore','ReactComposerVideoXUploadStore','ReactComponentWithPureRenderMixin','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i={mixins:[c('ReactComposerContextMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerPhotoStore'),c('ReactComposerPhotoUploadStore'),c('ReactComposerStore'),c('ReactComposerVideoUploadStore'),c('ReactComposerVideoXUploadStore')),c('ReactComponentWithPureRenderMixin')],propTypes:{config:c('ReactComposerConfig').isRequired,onClickPreprocess:h.func,label:h.string},statics:{calculateState:function(j,k,l){var m=k.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA],n=l.gks[c('ReactComposerConstants').GK_VIDEO_COPYRIGHT]&&!!c('ReactComposerVideoUploadStore').getVideo(j);return {limitExceeded:c('ReactComposerPhotoStore').isLimitExceeded(j,m.photoLimit),disabled:c('ReactComposerPostUtils').isPostButtonDisabled(j,m.photoLimit),showCopyrightDialogOnPost:n};}},render:function(){var j=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:j,showCopyrightDialogOnPost:this.state.showCopyrightDialogOnPost,config:this.props.config,label:this.props.label}));},_onClick:function(){if(this.props.onClickPreprocess)if(!this.props.onClickPreprocess())return;c('ReactComposerActions').postStarted(this.context.composerID,{actorID:this.context.actorID,config:this.props.config,targetID:this.context.targetID});}};f.exports=i;},null);
__d('ReactComposerStatusAttachment.react',['ReactComposerAttachmentPreviewContainer.react','ReactComposerAttachmentType','ReactComposerBootloaderPropTypes','ReactComposerConfig','ReactComposerContextMixin','ReactComposerDragDropPromptContainer.react','ReactComposerPrefillConfig','ReactComposerProfilePhotoBlock.react','ReactComposerStatusAttachmentMentionsInputWithTagExpansionContainer.react','ReactComposerStatusFooterContainer.react','ReactComposerStatusPlaceholderFooter.react','ReactComposerStatusPrompt.react','ReactComposerTaggerSummaryContainer.react','ReactComposerTaggerSummaryPlaceholder.react','ReactComposerStatusActions','DraftModifier','EditorState','ReactInputSelection','SelectionState','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('ReactComposerStatusActions');c('DraftModifier');c('EditorState');c('ReactInputSelection');c('SelectionState');var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerStatusAttachment',mixins:[c('ReactComposerContextMixin')],propTypes:{additionalTaggers:h.arrayOf(h.shape({button:h.element.isRequired,container:h.element.isRequired})),additionalFooterActions:h.arrayOf(h.element),bootloader:c('ReactComposerBootloaderPropTypes'),config:c('ReactComposerConfig').isRequired,isActive:h.bool,onFocus:h.func,onMentionsInputChange:h.func,onPasteFiles:h.func,handlePastedText:h.func,onPostIntent:h.func,placeholder:h.string.isRequired,postButtonModule:h.func,prefillConfig:c('ReactComposerPrefillConfig')},componentWillMount:function(){if(this.props.isActive)setTimeout(function(){return this.refs.mentionsInput.focus();}.bind(this),0);},render:function(){var j;if(this.props.isActive){j=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,postButtonModule:this.props.postButtonModule,prefillConfig:this.props.prefillConfig,taggersConfig:this.props.config.taggersConfig,targetData:this.props.config.targetData});}else if(!this.props.isActive&&this.props.config.showExpandedComposer)j=c('React').createElement(c('ReactComposerStatusPlaceholderFooter.react'),{config:this.props.config});var k=this.props.isActive?c('React').createElement(c('ReactComposerTaggerSummaryContainer.react'),null):c('React').createElement(c('ReactComposerTaggerSummaryPlaceholder.react'),null),l=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS],m=l.multilingualStatus,n=l.multilingualStatus&&this.props.isActive?c('React').createElement(m,null):null,o=l.markdownPreviewAttachment,p=null;if(o&&this.props.isActive){var q=o.container;p=c('React').createElement(q,{prettify:o.prettify});}var r=l.donateButtonConfig,s=null;if(r){var t=r.donateButtonContainer;s=c('React').createElement(t,{charityName:r.charityName,fundraiserCampaignId:r.fundraiserCampaignId});}var u=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'}),v=c('React').createElement('div',null,u,n);if(l.showProfilePic)v=c('React').createElement(c('ReactComposerProfilePhotoBlock.react'),{profileName:l.profileName,profilePhotoBadge:l.customProfilePhoto,profilePicSrc:l.profilePicSrc,profileURI:l.profileURI,currentProfileBadgeURI:l.currentProfileBadgeURI},v);var w,x=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').NOTES];if(x&&x.upsell){var y=x.upsell,z=x.minLengthForUpsell;w=c('React').createElement(y,{minLength:z,key:'notes-upsell'});}var aa=l.shareInNewsFeedToggle,ba=l.shareInNewsFeedToggle?c('React').createElement(aa,null):null,ca=null;if(l.topicFeedsTagger&&this.props.isActive){var da=l.topicFeedsTagger,ea=da.container;ca=c('React').createElement(ea,{photoAutoTaggingDelay:da.photoAutoTaggingDelay,showNux:da.showNux,textAutoTaggingDelay:da.textAutoTaggingDelay,topicLimit:da.topicLimit});}var fa=l.memePickerDialog&&l.memePickerDialog.container,ga=fa?c('React').createElement(fa,{memeURLs:l.memePickerDialog.memeURLs}):null;return (c('React').createElement('div',{className:this.props.className},c('React').createElement(c('ReactComposerDragDropPromptContainer.react'),{root:this,config:this.props.config}),v,c('React').createElement(c('ReactComposerAttachmentPreviewContainer.react'),null),ba,k,c('React').createElement(c('ReactComposerStatusPrompt.react'),{hidePrompt:this.props.isActive}),ga,p,s,w,ca,j));}});f.exports=i;},null);
__d('ReactComposerStatusAttachmentContainer.react',['ReactComposerAttachmentActions','ReactComposerAttachmentStore','ReactComposerAttachmentType','ReactComposerConfig','ReactComposerContextMixin','ReactComposerLocationAttachmentActions','ReactComposerPhotoUploader','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerScrapedAttachmentActions','ReactComposerStatusAttachment.react','ReactComposerStatusStore','ReactComposerTaggerActions','ReactComposerTaggerStore','ReactComposerStatusUtils','React','URLScraper'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i=c('React').createClass({displayName:'ReactComposerStatusAttachmentContainer',_uploader:undefined,mixins:[c('ReactComposerContextMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerAttachmentStore'),c('ReactComposerStatusStore'),c('ReactComposerTaggerStore'))],propTypes:{scrapeLinkOnInit:h.bool},getDefaultProps:function(){return {scrapeLinkOnInit:true};},statics:{calculateState:function(j,k){var l=c('ReactComposerAttachmentStore').isSelectedAttachmentActive(j);return {isActive:l};}},componentWillMount:function(){var j=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];this._uploader=new (c('ReactComposerPhotoUploader'))(this.context,j.photoLimit,{disableFaceRecognition:j.disableFaceboxTagger});},componentDidMount:function(){var j=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS];c('ReactComposerScrapedAttachmentActions').enabled(this.context.composerID,j.canScrapeShare);c('ReactComposerLocationAttachmentActions').enabled(this.context.composerID,j.canAttachLocation);if(this.props.scrapeLinkOnInit){var k=c('ReactComposerStatusStore').getMessageText(this.context.composerID);if(k)c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,k,this.context.composerType,this.context.actorID);}},render:function(){return (c('React').createElement(c('ReactComposerStatusAttachment.react'),babelHelpers['extends']({},this.props,this.state,{config:this.props.config,onFocus:this._onFocus,onMentionsInputChange:this._onMentionsInputChange,onPasteFiles:this._onPasteFiles,handlePastedText:this._handlePastedText,placeholder:this.props.placeholder,postButtonModule:this.props.postButtonModule})));},_onFocus:function(){c('ReactComposerAttachmentActions').selectAttachment(this.context.composerID,c('ReactComposerAttachmentType').STATUS,true);c('ReactComposerTaggerActions').selectTagger(this.context.composerID,null);},_onMentionsInputChange:function(j){var k=j.getCurrentContent().getPlainText();if(!c('URLScraper').trigger(k))c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,k,this.context.composerType,this.context.actorID);},_onPasteFiles:function(j){c('ReactComposerAttachmentActions').selectAttachment(this.context.composerID,c('ReactComposerAttachmentType').MEDIA,true);c('ReactComposerStatusUtils').uploadPastedFile(this.context.composerID,j[0],this._uploader);},_handlePastedText:function(j,k){c('ReactComposerStatusUtils').scrapeLink(this.context.composerID,this.context.targetID,j,this.context.composerType,this.context.actorID);return false;}});f.exports=i;},null);
__d('ReactComposerStatusEagerAttachment.react',['fbt','ReactComposerAttachmentActions','ReactComposerAttachmentType','ReactComposerAttachmentBodyMixin','ReactComposerConfig','ReactComposerPrefillConfig','ReactComposerStatusActions','ReactComposerStatusAttachmentContainer.react','ReactComposerTaggerActions','Arbiter','React'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();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(){return {placeholder:h._(["What's on your mind?","2340e43c54f5a3de9ca7fc0a7efc2cae"])};},statics:{attachmentID:c('ReactComposerAttachmentType').STATUS},componentWillMount:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').STATUS].bootstrapData;c('ReactComposerTaggerActions').updateTaggersSource(this.context.composerID,k.taggersSource);c('ReactComposerStatusActions').setMentionsSource(this.context.composerID,k.mentionsSource);c('ReactComposerStatusActions').setTypeaheadReporter(this.context.composerID,k.typeaheadReporter);c('ReactComposerAttachmentActions').setInitialized(this.context.composerID,c('ReactComposerAttachmentType').STATUS);},componentDidMount:function(){c('Arbiter').inform('ReactComposerStatusEagerAttachment/mounted',this.context.composerID,c('Arbiter').BEHAVIOR_STATE);},renderX:function(){return c('React').createElement(c('ReactComposerStatusAttachmentContainer.react'),this.props);}});f.exports=j;},null);
__d('ReactComposerFeedMediaPostButtonContainer.react',['ReactComposerContextMixin','ReactComposerFeedStore','ReactComposerMediaPostButtonContainerMixin','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerFeedMediaPostButtonContainer',mixins:[c('ReactComposerContextMixin'),c('ReactComposerMediaPostButtonContainerMixin')],componentDidMount:function(){c('ReactComposerFeedStore').registerComposerID(this.context.composerID);}});f.exports=h;},null);
__d('ReactComposerFeedPostButtonContainer.react',['ReactComposerContextMixin','ReactComposerFeedStore','ReactComposerPostButtonContainerMixin','React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').createClass({displayName:'ReactComposerFeedPostButtonContainer',mixins:[c('ReactComposerContextMixin'),c('ReactComposerPostButtonContainerMixin')],componentDidMount:function(){c('ReactComposerFeedStore').registerComposerID(this.context.composerID);}});f.exports=h;},null);
__d('ReactComposerHeader.react',['cx','ix','ReactComposerHeaderCore.react','ReactComposerHeaderProps','ReactComposerMinutiaeAttachmentStore','ReactComposerLocationAttachmentStore','ReactComposerPropsAndStoreBasedStateMixin','ReactComposerScrapedAttachmentStore','ReactComposerStore','CurrentUser','Image.react','ReactComponentWithPureRenderMixin','React','TooltipLink.react','joinClasses'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').createClass({displayName:'ReactComposerHeader',mixins:[c('ReactComponentWithPureRenderMixin'),c('ReactComposerPropsAndStoreBasedStateMixin')(c('ReactComposerStore'),c('ReactComposerScrapedAttachmentStore'),c('ReactComposerMinutiaeAttachmentStore'),c('ReactComposerLocationAttachmentStore'))],propTypes:c('ReactComposerHeaderProps').propTypes,getDefaultProps:c('ReactComposerHeaderProps').getDefaultProps,statics:{calculateState:function(k,l){var m=c('ReactComposerScrapedAttachmentStore').isScraping(k)||c('ReactComposerMinutiaeAttachmentStore').isFetching(k)||c('ReactComposerLocationAttachmentStore').isFetching(k);return {posting:c('ReactComposerStore').isPosting(k),isFetching:m};}},render:function(){var k=this.props.forceThrobber||this.state.posting||this.state.isFetching,l=c('CurrentUser').isEmployee()?c('React').createElement(c('TooltipLink.react'),{'aria-label':'Composer project feedback',className:"_48-0 uiHelpLink",href:'/groups/555631037818849/',tooltip:'Provide feedback on the React Composer (fb-only).',target:'_blank'}):null;return (c('React').createElement(c('ReactComposerHeaderCore.react'),babelHelpers['extends']({className:c('joinClasses')(this.props.className,c('React').Children.count(this.props.attachmentSelectors)>3?"_1fu5":'')},this.props),c('React').createElement(c('Image.react'),{className:"_4d6i"+(k?' '+"_du_":''),src:i('/images/loaders/indicator_blue_small.gif')}),this.props.rightChild,l));}});f.exports=j;},null);
__d('ReactFeedComposerX.react',['cx','fbt','ReactComposer.react','ReactComposerAttachmentActions','ReactComposerAttachmentType','ReactComposerBodyContainer.react','ReactComposerConfig','ReactComposerContextConfig','ReactComposerContextProviderMixin','ReactComposerEvents','ReactComposerFeedBootloader','ReactComposerFeedMediaPostButtonContainer.react','ReactComposerFeedPostButtonContainer.react','ReactComposerHeader.react','ReactComposerAlbumAttachmentSelector.react','ReactComposerInstantMediaAttachmentSelectorContainer.react','ReactComposerMediaAttachmentSelector.react','ReactComposerMediaEagerAttachment.react','ReactComposerNotesAttachmentSelector.react','ReactComposerPrefillActions','ReactComposerPrefillConfig','ReactComposerQAndAAttachmentSelector.react','ReactComposerQAndALazyAttachment.react','ReactComposerStatusAttachmentSelector.react','ReactComposerStatusEagerAttachment.react','Arbiter','LitestandComposer','React'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').createClass({displayName:'ReactFeedComposerX',mixins:[c('ReactComposerContextProviderMixin')],propTypes:{contextConfig:c('ReactComposerContextConfig').isRequired,config:c('ReactComposerConfig').isRequired,prefillConfig:c('ReactComposerPrefillConfig')},componentWillMount:function(){this.props.prefillConfig&&c('ReactComposerPrefillActions').setPrefillData(this.props.contextConfig.composerID,this.props.prefillConfig);},componentDidMount:function(){c('LitestandComposer').initComposer(this.props.contextConfig.composerID);var k=this.props.prefillConfig;if(k&&k.selectedAttachment){c('ReactComposerAttachmentActions').selectAttachment(this.props.contextConfig.composerID,k.selectedAttachment,k.shouldActivateSelectedAttachment);if(k.shouldActivateSelectedAttachment)c('Arbiter').inform(c('ReactComposerEvents').ACTIVATE_ATTACHMENT+this.props.contextConfig.composerID);}},render:function(){var k=this.props.prefillConfig,l=k&&k.selectedAttachment?k.selectedAttachment:c('ReactComposerAttachmentType').STATUS,m=this._getAdditionalAttachmentComponents(l),n=m[0],o=m[1];return (c('React').createElement(c('ReactComposer.react'),{className:"_5n2b",loggingConfig:this.props.config.loggingConfig},c('React').createElement(c('ReactComposerHeader.react'),{attachmentSelectors:[c('React').createElement(c('ReactComposerStatusAttachmentSelector.react'),{label:i._(["Update Status","155d6cd2b97f05fd0d45ff038fb8f47d"])}),n],showDelimiter:true,truncateSelectorText:true}),c('React').createElement(c('ReactComposerBodyContainer.react'),{expanded:this.props.config.showExpandedComposer},c('React').createElement(c('ReactComposerStatusEagerAttachment.react'),{config:this.props.config,prefillConfig:k,selected:l===c('ReactComposerAttachmentType').STATUS,postButtonModule:c('ReactComposerFeedPostButtonContainer.react')}),o)));},_getAdditionalAttachmentComponents:function(k){var l=this.props.config.attachmentsConfig,m=[],n=[],o=l[c('ReactComposerAttachmentType').ALBUM].enabled,p=l[c('ReactComposerAttachmentType').NOTES].enabled,q=l[c('ReactComposerAttachmentType').QANDA].enabled;m.push(this._getMediaAttachmentSelector());n.push(c('React').createElement(c('ReactComposerMediaEagerAttachment.react'),{key:'media',config:this.props.config,postButtonModule:c('ReactComposerFeedMediaPostButtonContainer.react'),selected:k===c('ReactComposerAttachmentType').MEDIA}));if(o)m.push(c('React').createElement(c('ReactComposerAlbumAttachmentSelector.react'),{key:'album',createAlbumLink:l[c('ReactComposerAttachmentType').ALBUM].createAlbumLink}));if(p)m.push(c('React').createElement(c('ReactComposerNotesAttachmentSelector.react'),{key:'notes'}));if(q){m.push(c('React').createElement(c('ReactComposerQAndAAttachmentSelector.react'),{key:'qanda'}));n.push(c('React').createElement(c('ReactComposerQAndALazyAttachment.react'),{key:'qanda',config:this.props.config,bootloader:c('ReactComposerFeedBootloader')}));}return [m,n];},_getMediaAttachmentSelector:function(){var k=this.props.config.attachmentsConfig[c('ReactComposerAttachmentType').MEDIA];if(k.openFileBrowserImmediately)return (c('React').createElement(c('ReactComposerInstantMediaAttachmentSelectorContainer.react'),{key:'media',disableFaceRecognition:k.disableFaceboxTagger,mediaAcceptParam:this.props.config.mediaAcceptParam,photoLimit:k.photoLimit,prefillConfig:this.props.prefillConfig,targetData:this.props.config.targetData,mediaConfig:k}));return (c('React').createElement(c('ReactComposerMediaAttachmentSelector.react'),{key:'media',label:i._("Add Photos\/Video")}));}});f.exports=j;},null);
__d('ReactFeedComposerXBootloader',['csx','ReactComposerAttachmentType','ReactComposerInit','ReactComposerPromptsStore','ReactFeedComposerX.react','Arbiter','AsyncRequest','ComposerEntryPointRef','CSS','DOM','Event','ReactInputSelection','SubscriptionsHandler','XReactComposerLoggingODSController','$','getActiveElement'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i,j={bootload:function(k,l){var m=c('$')('feedx_container'),n=c('DOM').find(m,"._559p"),o=c('CSS').hasClass(n,'async_saving');if(o){i=new (c('SubscriptionsHandler'))();i.addSubscriptions(c('Event').listen(n,'success',function(){this._bootloadImpl(k,m,l);}.bind(this)),c('Event').listen(n,'error',function(){this._bootloadImpl(k,m,l);}.bind(this)));}else this._bootloadImpl(k,m,l);},_bootloadImpl:function(k,l,m){m.config.audienceXHP=this._getXHPToReactNode(l,"._ej0");m.prefillConfig=Object.assign(m.prefillConfig,this._appendPrefillConfig(l,k));c('ReactComposerInit').init(c('ReactFeedComposerX.react'),m,l);var n=c('XReactComposerLoggingODSController').getURIBuilder().setString('event','bootload_done').setEnum('composer_type',c('ComposerEntryPointRef').FEEDX).getURI();new (c('AsyncRequest'))(n).send();i&&i.release();c('Arbiter').inform('ReactFeedComposerXBootloader/bootload/'+k);},_appendPrefillConfig:function(k,l){var m=c('DOM').find(k,"._3en1"),n=c('getActiveElement')()==m||c('CSS').hasClass(c('DOM').find(k,'.focus_target'),'child_was_focused'),o=c('DOM').scry(k,"._21h8")[0];if(!o)o=c('DOM').find(k,"._5qtn");o=o.getAttribute('data-attachment-type');if(o===c('ReactComposerAttachmentType').NOTES)o=null;var p=c('DOM').scry(k,"._21h7")[0];if(!p)p=c('DOM').find(k,"._4d6h");var q=c('DOM').scry(p,'input[name="composer_photo[]"]')[0],r={text:m.value},s=this._getXHPToReactNode(k,"._1sek"),t=c('ReactComposerPromptsStore').getMinutiaeData(l);return {mentionsInput:{textWithEntities:r,selection:c('ReactInputSelection').getSelection(m)},instantMediaSelector:{fileInputDOM:q},selectedAttachment:o,shouldActivateSelectedAttachment:n||!!t,prompt:s,taggersData:t};},_getXHPToReactNode:function(k,l){var m=c('DOM').scry(k,l);if(m.length===0)return null;var n=m[0],o=n.cloneNode(true);n.parentNode.replaceChild(o,n);return n;}};f.exports=j;},null);