if (self.CavalryLogger) { CavalryLogger.start_js(["Jk0np"]); } __d("JobConstants",[],(function(a,b,c,d,e,f){e.exports={JOB_APPLICATION_TRACKING_SYSTEM_PAGINATE_COUNT:10,JOB_BROWSER_LOCATION_MAX_RADIUS_MILES:100,JOB_BROWSER_LOCATION_MIN_RADIUS_MILES:2,JOB_BROWSER_LOCATION_MAX_RADIUS_KM:150,JOB_BROWSER_LOCATION_MIN_RADIUS_KM:2,JOB_BROWSER_PAGINATE_JOB_COUNT:10,JOB_POST_EXPIRATION_REMINDER_OFFSET:604800,JOB_POST_DEFAULT_DAYS_TILL_EXPIRATION:30,JOB_POST_EXPIRATION_TIME:2592e3,JOB_POST_LIMIT_PER_DAY:10,JOB_URL_DEFAULT_FILTER_VALUE_ALL:"all",JOB_URL_DEFAULT_FILTER_VALUE_NEARBY:"nearby",JOB_URL_MULTIPLE_FILTER_DELIMITER:".",JOB_URL_NAME_ID_SEPARATOR:"-",JOB_APPLICATION_ABANDON_SURVEY_INTEGRATION_POINT_ID:189507891530064,JOB_EMAIL_REGEX_STRING:"[A-Za-z0-9_!#$%&'*+/=?^`{|}~-]+(?:\\.[A-Za-z0-9_!#$%&'*+/=?^`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?",COVER_PHOTO_HEIGHT_WIDTH_RATIO:.56,JOBS_LOCATION_TYPEAHEAD_PRODUCT_TAG:"job_search",JOB_BROWSER_JOB_OPENING_PHOTO_HEIGHT:250,JOB_BROWSER_JOB_OPENING_PHOTO_WIDTH:476,JOB_BROWSER_EMPLOYER_PHOTO_SIZE:40,JOB_BROWSER_DEFAULT_RADIUS_METERS:64e3,CUSTOM_RESPONSE_HEADER:"customResponse",JOB_OPENING_MARK_AS_CLOSED_SURVEY_INTEGRATION_POINT_ID:836188723200866,SIMILAR_JOBS_NUM_FETCH:5,JOB_INTERVIEW_DEFAULT_DURATION_MINUTES:30,JOBS_COMPOSER_COVER_PHOTO_HEIGHT:245,JOBS_COMPOSER_COVER_PHOTO_WIDTH:470,JOBS_COMPOSER_PROFILE_PICTURE_SIZE:90,JOBS_POLICY_LINK:"https://www.facebook.com/policies/pages_groups_events/jobs_on_pages",JOB_OPENING_DETAIL_VIEW_JOB_PHOTO_HEIGHT:260,JOB_OPENING_DETAIL_VIEW_JOB_PHOTO_WIDTH:500,JOB_OPENING_DETAIL_VIEW_EMPLOYER_PHOTO_SIZE:80,JOB_POSTS_ITEM_JOB_PHOTO_WIDTH:155,JOB_POSTS_ITEM_JOB_PHOTO_HEIGHT:80,JOB_POSTS_EMPTY_VIEW_IMAGE_WIDTH:130,JOB_POSTS_EMPTY_VIEW_IMAGE_HEIGHT:80,PAGE_JOBS_TAB_PAGINATE_JOB_COUNT:10,JOB_DETAIL_VIEW_SEND_FEEDBACK_FORM_ID:128404151166229,SUGGESTED_JOB_IMAGE_SIZE:64,JOBS_COMPOSER_DISABLE_EDIT_OF_REJECTED_JOBS_QE:"disable_edits_for_rejected_jobs",JOBS_COMPOSER_REMOVE_OPTIONAL_FIELDS_QE_UNIVERSE:"jobs_groups_minimal_composer",JOBS_COMPOSER_SALARY_INPUT_QE_UNIVERSE:"jobs_composer_salary_input",JOBS_COMPOSER_POLICY_POPOVER_QE_UNIVERSE:"jobs_search_pages_confirmation_policy",JOBS_COMPOSER_DROPOFF_FROM_NOTIF_INTEGRATION_POINT:879284665794797,JOBS_COMPOSER_DROPOFF_FROM_GROUP_COMPOSER_INTEGRATION_POINT:557895008022711,JOBS_COMPOSER_DROPOFF_INTEGRATION_POINT:2360027310729383,JOB_BROWSER_ROW_NEW_THRESHOLD_DAYS:5}}),null); __d("ImageResizer",["ArbiterMixin","BlobFactory","DOM","UserAgent_DEPRECATED"],(function(a,b,c,d,e,f){__p&&__p();a=function(a,b,c,d,e){this._input=a,this._image=null,this._canvas=null,this._rotation=0,this._maxWidth=b,this._maxHeight=c,this._outputMime=d||"image/jpeg",this._outputQuality=e===void 0?.87:e};a.isSupported=function(){if(window.File&&window.FileReader){var a=b("DOM").create("canvas");if(a.toBlob||a.toDataURL&&window.ArrayBuffer&&window.Uint8Array&&b("BlobFactory").isSupported())return!0}return!1};Object.assign(a.prototype,b("ArbiterMixin"));Object.assign(a.prototype,{setOrientation:function(a){this._rotation={1:0,3:180,6:90,8:270}[a]||0},resize:function(){this._input instanceof HTMLCanvasElement||this._input instanceof HTMLImageElement?(this._image=this._input,this._handleImage()):typeof this._input==="string"?this._loadImage(this._input):this._input instanceof window.File&&this._loadFile(this._input)},_rotatedToSide:function(){return this._rotation%180==90},_prepareError:function(a){return function(){this.inform.bind(this,"error",a)}.bind(this)},_loadFile:function(a){this._fileLoadTime=Date.now();var b=new FileReader();b.onload=this._handleFile.bind(this);b.onerror=this._prepareError("Could not read tile.");b.readAsDataURL(a)},_handleFile:function(a){this._fileLoadTime=Date.now()-this._fileLoadTime;a=a.target.result;this._loadImage(a)},_loadImage:function(a){this._imageLoadTime=Date.now(),this._image=b("DOM").create("img"),this._image.onload=this._handleImage.bind(this),this._image.onerror=this._prepareError("Could not load image."),this._image.src=a},_handleImage:function(){__p&&__p();this._imageLoadTime&&(this._imageLoadTime=Date.now()-this._imageLoadTime);if(this._input instanceof window.File){var a=this._calculateRatio();if(a>=1){this._skippedResizing=!0;return this._handleBlob(this._input)}}this._skippedResizing=!1;this._drawTransformed();this._extractBlob()},_drawTransformed:function(){var a=Date.now(),c=this._calculateRatio(),d=0;b("UserAgent_DEPRECATED").chrome()&&(c<.25?d=2:c<.5&&(d=1));c=this._drawResizedCanvas(this._image,c*Math.pow(2,d));for(var e=0;e0&&(a=b);c0&&(a=c);return a},_extractBlob:function(){__p&&__p();this._extractionStart=Date.now();if(this._canvas.toBlob){this._canvas.toBlob(this._handleBlob.bind(this),this._outputMime,this._outputQuality);return}var a=this._canvas.toDataURL(this._outputMime,this._outputQuality),c=a.match(/^data:(.*?);base64,/);if(!c){this._prepareError("Couldn't get base64 encoded data from canvas.")();return}var d=c[1];a=a.substr(c[0].length);c=window.atob(a);a=new ArrayBuffer(c.length);var e=new Uint8Array(a);for(var f=0;fj&&(e=c.splice(j,c.length),e=e.map(function(a){return b("React").cloneElement(a,{label:a.props.longLabel||a.props.label,isInMoreButton:!0})}),f=b("React").createElement(b("ReactComposerMoreButton.react"),{items:e,ref:"moreSelector"}));e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LEARNING_COURSE].isLearningCourseUnitCompleted;e=e?null:b("React").createElement(b("ReactComposerGroupHeader.react"),{rightChild:d},c,f,g,h);d=b("React").createElement(b("ReactComposerBodyContainer.react"),{expanded:this.props.config.showExpandedComposer,hasMinHeight:!1},a);c="_4lmd";return b("React").createElement(b("ReactComposerWithSprouts.react"),{defaultAttachmentOnExpand:b("ReactComposerAttachmentType").STATUS,innerProps:{className:c,loggingConfig:this.props.config.loggingConfig,sproutsConfig:this.props.config.sproutsConfig},ref:"root"},e,this._renderFunFactTypeahead(),d)},_isAttachmentsConfigEnabled:function(a){return this.props.config.attachmentsConfig[a]?this.props.config.attachmentsConfig[a].enabled:!1},_shouldRenderAttachment:function(a){var b=this._isAttachmentsConfigEnabled(a),c=!0;this._shouldRenderLearningCourseAttachment()&&(c=k.find(function(b){return b===a})!==void 0);return b&&c},_shouldDisableRenderSelector:function(a){return this.props.config.attachmentsConfig[a]?this.props.config.attachmentsConfig[a].disableSelector:!1},_getSelectorModule:function(a){return this.props.config.attachmentsConfig[a]&&this.props.config.attachmentsConfig[a].selectorModule},_shouldRenderNux:function(a){return this.props.config.attachmentsConfig[a]&&this.props.config.attachmentsConfig[a].showNux},_shouldRenderLiveVideoNux:function(){var a=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LIVE_VIDEO];return a&&a.enabled&&a.show_nux},_shouldShowLiveVideoInMainRow:function(){var a=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").PLACE_LIST];if(a&&a.prominent)return!1;a=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LIVE_VIDEO];return a&&a.enabled&&a.liveVideoInMainRow},_shouldRenderLearningCourseAttachment:function(){var a=this._isAttachmentsConfigEnabled(b("ReactComposerAttachmentType").LEARNING_COURSE),c=window.location.href,d=c.contains("?filter="),e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LEARNING_COURSE].isLearningCourseUnitCompleted;c=c.contains("fbmentorship/admin/create_curriculum");a=a&&(d||e||c);return a},_shouldShowMediaAttachmentSelector:function(){return this._shouldRenderLearningCourseAttachment()?!1:this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").MEDIA].showSelector},_renderLiveVideoNux:function(){var a=this;if(!this.state.showLiveVideoNux)return null;var c=this._shouldShowLiveVideoInMainRow()?function(){return a.refs.liveVideoSelector}:function(){return a.refs.moreSelector};return b("React").createElement(b("XUIAmbientNUX.react"),{behaviors:{LayerHideOnBlur:b("LayerHideOnBlur"),LayerHideOnEscape:b("LayerHideOnEscape"),LayerHideOnTransition:b("LayerHideOnTransition")},contextRef:c,onCloseButtonClick:function(){a.setState({showLiveVideoNux:!1})},position:"above",shown:this.state.showLiveVideoNux,width:"auto"},h._("New! Create a live video from your browser"))},_shouldRenderTaskNux:function(){return this._shouldRenderAttachment(b("ReactComposerAttachmentType").TASK)&&!b("SimpleNUXMessage").hasUserSeenMessage(b("SimpleNUXMessageTypes").WORK_GROUP_TASK_FEATURE)},_onDismissTaskNux:function(){b("SimpleNUXMessage").markMessageSeenByUser(b("SimpleNUXMessageTypes").WORK_GROUP_TASK_FEATURE),this.setState({showTaskNux:!1})},_renderTaskNux:function(){var a=this,c=!this.state.showLiveVideoNux&&this.state.showTaskNux;return!c?null:b("React").createElement(b("XUIAmbientNUX.react"),{behaviors:{LayerHideOnBlur:b("LayerHideOnBlur"),LayerHideOnEscape:b("LayerHideOnEscape"),LayerHideOnTransition:b("LayerHideOnTransition")},className:"_1fxf",contextRef:function(){return a.refs.moreSelector},onCloseButtonClick:this._onDismissTaskNux,position:"above",shown:c,width:"auto"},h._("New! You can now add tasks and assign them to people in your group."))},_renderFunFactTypeahead:function(){var a=this.props.config.taggersConfig;return a&&a[b("ReactComposerTaggerType").FUN_FACT]&&a[b("ReactComposerTaggerType").FUN_FACT].enabled?b("React").createElement(b("BootloadedComponent.react"),{bootloadLoader:b("JSResource")("ReactComposerFunFactSinglePromptTaggerContainer.react").__setRef("ReactGroupComposer.react"),bootloadPlaceholder:b("React").createElement("div",null),pinnedPromptID:this.props.contextConfig.extraConfig&&this.props.contextConfig.extraConfig.funFactPromptID,promptTypes:this.props.contextConfig.extraConfig&&this.props.contextConfig.extraConfig.funFactPromptTypes}):null},_getAttachmentComponents:function(){__p&&__p();var a=this,c=[],d=[],e=this._shouldRenderLearningCourseAttachment(),f=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").SELL],g=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").QA],k=this._shouldRenderAttachment(b("ReactComposerAttachmentType").SELL),l=this._shouldShowMediaAttachmentSelector(),m=this._shouldRenderAttachment(b("ReactComposerAttachmentType").FILE),n=this._shouldRenderAttachment(b("ReactComposerAttachmentType").STATUS),o=this._shouldRenderAttachment(b("ReactComposerAttachmentType").LIST),p=this._shouldRenderAttachment(b("ReactComposerAttachmentType").ASSET_3D),q=this._shouldRenderAttachment(b("ReactComposerAttachmentType").TODO_LIST),r=this._shouldRenderAttachment(b("ReactComposerAttachmentType").QUESTION),s=this._shouldRenderAttachment(b("ReactComposerAttachmentType").ALBUM),t=this._shouldRenderAttachment(b("ReactComposerAttachmentType").DOC),u=this._shouldRenderAttachment(b("ReactComposerAttachmentType").JOB_SEARCH),v=this._shouldRenderAttachment(b("ReactComposerAttachmentType").EVENT),w=this._shouldRenderAttachment(b("ReactComposerAttachmentType").GAME),x=this._shouldRenderAttachment(b("ReactComposerAttachmentType").QA),y=this._shouldRenderAttachment(b("ReactComposerAttachmentType").LIVE_VIDEO),z=this._shouldRenderAttachment(b("ReactComposerAttachmentType").PLACE_LIST),A=this._shouldRenderAttachment(b("ReactComposerAttachmentType").QUIZ),B=this._shouldRenderAttachment(b("ReactComposerAttachmentType").GROUP_MEET_UP),C=this._shouldRenderAttachment(b("ReactComposerAttachmentType").EMPLOYEE_QUESTION_SUGGESTIONS),D=this._shouldRenderAttachment(b("ReactComposerAttachmentType").INTERN_QA),E=this._shouldRenderAttachment(b("ReactComposerAttachmentType").FIND_PLAYERS),F=this._shouldRenderAttachment(b("ReactComposerAttachmentType").SALES_PROMO),G=this._shouldRenderAttachment(b("ReactComposerAttachmentType").TASK),H=this._shouldRenderAttachment(b("ReactComposerAttachmentType").LEARNING_THIRD_PARTY_LINK),I=this._shouldRenderAttachment(b("ReactComposerAttachmentType").LIVING_ROOM),J=f.isForSaleGroup;g=b("ReactGroupComposerQAUtils").isSellComposerFirst(g);if(e){e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LEARNING_COURSE];var K=h._("Write Post");e=e.showShortSelectorLabel?h._("Post"):K;c.push(b("React").createElement(b("ReactComposerGroupLearningCourseAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").LEARNING_COURSE,label:e,selected:!0,contextConfig:this.props.contextConfig}));d.push(b("React").createElement(b("ReactComposerGroupLearningCourseLazyAttachment.react"),{config:this.props.config,expanded:this.props.config.showExpandedComposer,key:b("ReactComposerAttachmentType").LEARNING_COURSE,bootloader:b("ReactComposerGroupBootloader"),selected:!0}))}K=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").JOB_SEARCH];if(u&&K.attachmentSelector&&K.lazyAttachment){e=K.attachmentSelector;var L=h._("Create Job");K=K.lazyAttachment;d.push(b("React").createElement(K,{config:this.props.config,key:b("ReactComposerAttachmentType").JOB_SEARCH,bootload:function(a){return b("Bootloader").loadModules(["ReactComposerPublishJobAttachmentContainer.react"],a,"ReactGroupComposer.react")},selected:!0}));c.push(b("React").createElement(e,{key:b("ReactComposerAttachmentType").JOB_SEARCH,label:L,refererMechanism:"group_composer_header",source:"group_composer"}))}else if(k){K=f.attachmentSelector;e=f.lazyAttachment;c.push(b("React").createElement(K,{key:b("ReactComposerAttachmentType").SELL,label:f.attachmentSelectorLabel,longLabel:f.attachmentSelectorLabel}));d.push(b("React").createElement(e,{config:this.props.config,contextConfig:this.props.contextConfig,key:b("ReactComposerAttachmentType").SELL,bootload:b("gkx")("1053330")?function(a){return b("Bootloader").loadModules(["MarketplaceBSGComposerModal.react"],a,"ReactGroupComposer.react")}:function(a){return b("Bootloader").loadModules(["ReactComposerSellAttachmentContainer.react","ReactComposerGroupSellPostButtonContainer.react"],a,"ReactGroupComposer.react")},selected:J}))}if(n){L=J||u?h._("Start Discussion"):h._("Write Post");K=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").STATUS];f=!k&&K.showShortSelectorLabel?h._("Post"):L;e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").STATUS].isWelcomeToGroupPost;c.push(b("React").createElement(b("ReactComposerStatusAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").STATUS,label:f,longLabel:L}));n=h._("Write something...");this.props.prefillConfig&&this.props.prefillConfig.placeHolderText&&(n=this.props.prefillConfig.placeHolderText);d.push(b("React").createElement(b("cr:917046"),{additionalTaggers:this._getAdditionalTaggersForStatusAttachment(),config:this.props.config,expanded:this.props.config.showExpandedComposer,key:b("ReactComposerAttachmentType").STATUS,placeholder:n,bootloader:b("ReactComposerGroupBootloader"),selected:!J&&!g&&!u||e}))}if(B){k=this._getMeetUpAttachmentUI();K=k.attachment;d.push(K);f=this._shouldDisableRenderSelector(b("ReactComposerAttachmentType").GROUP_MEET_UP);if(!f){L=this._getSelectorModule(b("ReactComposerAttachmentType").GROUP_MEET_UP);L&&c.push(b("React").createElement(L,{key:b("ReactComposerAttachmentType").GROUP_MEET_UP}))}else this._shouldRenderNux(b("ReactComposerAttachmentType").GROUP_MEET_UP)&&window.setTimeout(function(){return b("ReactComposerTaggerActions").handleSetTaggerShowNUX(a.props.contextConfig.composerID,b("ReactComposerTaggerType").GROUP_MEET_UP,!0)})}if(l){n=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").MEDIA];u=h._("Add Photo\/Video");e=n.showShortSelectorLabel?h._("Photo\/Video"):u;c.push(b("React").createElement(b("ReactComposerMediaAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").MEDIA,label:e,longLabel:u}))}d.push(b("React").createElement(b("ReactComposerMediaLazyAttachment.react"),{additionalTaggers:this._getAdditionalTaggersForStatusAttachment(),config:this.props.config,key:b("ReactComposerAttachmentType").MEDIA,bootloader:b("ReactComposerGroupBootloader")}));if(w){B=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").GAME];k=h._("Play games");K=B.showShortSelectorLabel?h._("Games"):k;c.push(b("React").createElement(b("ReactComposerGameAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").GAME,label:K,longLabel:k}));d.push(b("React").createElement(b("ReactComposerGameLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").GAME,bootloader:b("ReactComposerGroupBootloader")}))}f=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").PLACE_LIST];if(z&&f.prominent){L=this._getPlaceListAttachmentUI();n=L.attachment;d.push(n);e=this._shouldDisableRenderSelector(b("ReactComposerAttachmentType").PLACE_LIST);if(!e){u=this._getSelectorModule(b("ReactComposerAttachmentType").PLACE_LIST);u&&c.push(b("React").createElement(u,{key:b("ReactComposerAttachmentType").PLACE_LIST}))}}w=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").FILE];B=w.shouldPromoteFileAttachment;m&&B&&(c.push(this._getFileAttachment()),d.push(b("React").createElement(b("ReactComposerFileLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").FILE,bootload:function(a){return b("Bootloader").loadModules(["ReactComposerFileAttachment.react","ReactComposerGroupPostButtonContainer.react"],a,"ReactGroupComposer.react")}})));if(z&&!f.prominent){K=this._getPlaceListAttachmentUI();k=K.attachment;d.push(k);L=this._shouldDisableRenderSelector(b("ReactComposerAttachmentType").PLACE_LIST);if(!L){n=this._getSelectorModule(b("ReactComposerAttachmentType").PLACE_LIST);n&&c.push(b("React").createElement(n,{key:b("ReactComposerAttachmentType").PLACE_LIST}))}}if(x){e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").QA];u=h._("Ask Question");w=e.showShortSelectorLabel?h._("Ask Question"):u;c.push(b("React").createElement(b("ReactComposerGroupQAAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").QA,label:w,longLabel:u}));d.push(b("React").createElement(b("ReactComposerGroupQALazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").QA,bootloader:b("ReactComposerGroupBootloader"),selected:g}))}if(F){z=h._("Create Offer");f=this._shouldDisableRenderSelector(b("ReactComposerAttachmentType").SALES_PROMO);f||c.push(b("React").createElement(b("ReactComposerSalesPromoAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").SALES_PROMO,label:z}));d.push(b("React").createElement(b("ReactComposerSalesPromoLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").SALES_PROMO,bootloader:b("ReactComposerGroupBootloader")}))}if(r){K=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").QUESTION];k=h._("Create Poll");L=K.showShortSelectorLabel?h._("Poll"):k;n=this._shouldDisableRenderSelector(b("ReactComposerAttachmentType").QUESTION);if(!n){x=this._getSelectorModule(b("ReactComposerAttachmentType").QUESTION);x&&c.push(b("React").createElement(x,{key:b("ReactComposerAttachmentType").QUESTION,label:L,longLabel:k}))}else this._shouldRenderNux(b("ReactComposerAttachmentType").QUESTION)&&window.setTimeout(function(){return b("ReactComposerTaggerActions").handleSetTaggerShowNUX(a.props.contextConfig.composerID,b("ReactComposerTaggerType").VISUAL_POLL,!0)});d.push(b("React").createElement(b("ReactComposerQuestionLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").QUESTION,bootloader:b("ReactComposerGroupBootloader")}))}E&&d.push(b("React").createElement(b("ReactComposerFindPlayersLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").FIND_PLAYERS,bootloader:b("ReactComposerGroupBootloader")}));o&&d.push(b("React").createElement(b("ReactComposerListLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").LIST,bootloader:b("ReactComposerGroupBootloader")}));p&&d.push(b("React").createElement(b("ReactComposerAsset3dEagerAttachment.react"),{key:b("ReactComposerAttachmentType").ASSET_3D,config:this.props.config}));q&&d.push(b("React").createElement(b("ReactComposerTodoListLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").TODO_LIST,bootloader:b("ReactComposerGroupBootloader")}));m&&!B&&(c.push(this._getFileAttachment()),d.push(b("React").createElement(b("ReactComposerFileLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").FILE,bootload:function(a){return b("Bootloader").loadModules(["ReactComposerFileAttachment.react","ReactComposerGroupPostButtonContainer.react"],a,"ReactGroupComposer.react")}})));if(s){e=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").ALBUM];w=h._("Create Photo Album");u=e.showShortSelectorLabel?h._("Create Album"):w;c.push(b("React").createElement(b("ReactComposerAlbumAttachmentSelector.react"),{label:u,longLabel:w,createAlbumLink:e.createAlbumLink,key:b("ReactComposerAttachmentType").ALBUM}))}if(t){g=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").DOC];F=h._("Create Doc");f=g.showShortSelectorLabel?h._("Create Doc"):F;c.push(b("React").createElement(b("ReactComposerDocAttachmentSelector.react"),{createDocCampfireURI:g.createDocCampfireURI,createDocFallbackURI:g.createDocFallbackURI,label:f,longLabel:F,key:b("ReactComposerAttachmentType").DOC}))}if(v){z=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").EVENT];r=h._("Create Event");K=z.showShortSelectorLabel?h._("Create Event"):r;c.push(b("React").createElement(b("ReactComposerEventAttachmentSelector.react"),{createEventURI:z.createEventURI,label:K,longLabel:r,key:b("ReactComposerAttachmentType").EVENT}))}n=null;x=!1;if(y){L=h._("Live Video");k=b("React").createElement(b("ReactComposerLiveVideoLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").LIVE_VIDEO,bootloader:b("ReactComposerGroupBootloader")});n=b("React").createElement(b("ReactComposerLiveVideoAttachmentSelector.react"),{config:this.props.config,contextConfig:this.props.contextConfig,label:L,ref:"liveVideoSelector",key:b("ReactComposerAttachmentType").LIVE_VIDEO,sprouts:!1});x=this._shouldShowLiveVideoInMainRow();d.push(k);x||c.push(n)}if(A){E=h._("Create Quiz");o=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").QUIZ].createQuizURI;c.push(b("React").createElement(b("ReactComposerQuizAttachmentSelector.react"),{createQuizURI:o,key:b("ReactComposerAttachmentType").QUIZ,label:E}))}p=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").TASK];if(G){q=p.attachmentSelector;m=p.lazyAttachment;B=h._("Add Task");c.push(b("React").createElement(q,{key:b("ReactComposerAttachmentType").TASK,label:B}));d.push(b("React").createElement(m,{additionalTaggers:this._getAdditionalTaggersForStatusAttachment(),config:this.props.config,dismissNux:this._onDismissTaskNux,key:b("ReactComposerAttachmentType").TASK,bootload:function(a){return b("Bootloader").loadModules(["ReactComposerTaskAttachmentTaskArea.react","ReactComposerGroupPostButtonContainer.react"],a,"ReactGroupComposer.react")}}))}if(D){s=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").INTERN_QA].lazyAttachment;d.push(b("React").createElement(s,{key:b("ReactComposerAttachmentType").INTERN_QA}))}if(C){u=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").EMPLOYEE_QUESTION_SUGGESTIONS].lazyAttachment;d.push(b("React").createElement(u,{key:b("ReactComposerAttachmentType").EMPLOYEE_QUESTION_SUGGESTIONS}))}w=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").LEARNING_THIRD_PARTY_LINK];if(H){e=w.attachmentSelector;t=w.lazyAttachment;g=b("LearningContentStrings").getThirdPartyComposerSelectorText();c.push(b("React").createElement(e,{key:b("ReactComposerAttachmentType").LEARNING_THIRD_PARTY_LINK,label:g,contextConfig:this.props.contextConfig}));d.push(b("React").createElement(t,{config:this.props.config,expanded:this.props.config.showExpandedComposer,key:b("ReactComposerAttachmentType").LEARNING_THIRD_PARTY_LINK,bootload:function(a){return b("Bootloader").loadModules(["ReactComposerLearningLinkAttachmentArea.react","ReactComposerLearningLinkPostButtonContainer.react"],a,"ReactGroupComposer.react")}}))}I&&i&&d.push(b("React").createElement(i,{config:this.props.config,key:b("ReactComposerAttachmentType").LIVING_ROOM}));if(c[0].key===b("ReactComposerAttachmentType").SELL&&!J){f=c.splice(0,1)[0];c.splice(j,0,f)}if(c.length>=3&&c[2].key===b("ReactComposerAttachmentType").MEDIA&&J){F=c.splice(2,1)[0];c.splice(j,0,F)}x&&n&&c.splice(2,0,n);if(!l){v=c.findIndex(function(a){return a.key===b("ReactComposerAttachmentType").DOC});z=c.splice(v,1);c.splice(2,0,z.pop())}return[c,d]},_getHeaderLink:function(){var a=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").SELL];return a&&a.headerLinkConfig&&a.headerLinkConfig.href&&a.headerLinkConfig.label?b("React").createElement(b("Link.react"),{href:a.headerLinkConfig.href},a.headerLinkConfig.label):null},_getFileAttachment:function(){var a=this.props.config.attachmentsConfig[b("ReactComposerAttachmentType").FILE],c=h._("Add File");a=a.showShortSelectorLabel?h._("File"):c;return b("React").createElement(b("ReactComposerFileAttachmentSelector.react"),{key:b("ReactComposerAttachmentType").FILE,label:a,longLabel:c})},_getAdditionalTaggersForStatusAttachment:function(){var a=[];this.props.config.taggersConfig[b("ReactComposerTaggerType").MARKDOWN].enabled&&a.push({button:b("React").createElement(b("ReactComposerMarkdownTaggerButton.react"),{key:"markdown_button"}),container:b("React").createElement(b("ReactComposerMarkdownTaggerContainer.react"),{key:"markdown_container"})});this.props.config.taggersConfig[b("ReactComposerTaggerType").CONTENT_WARNINGS].enabled&&a.push({button:b("React").createElement(b("ReactComposerContentWarningsTaggerButton.react"),{key:"content_warnings_button"}),container:b("React").createElement(b("ReactComposerContentWarningsTaggerContainer.react"),{key:"content_warnings_container"})});return a},_getMeetUpAttachmentUI:function(){return{attachment:b("React").createElement(b("ReactComposerGroupMeetUpLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").GROUP_MEET_UP,bootload:function(a){return b("Bootloader").loadModules(["ReactGroupsComposerGroupMeetUpAttachmentContainer.react","ReactComposerGroupMeetUpPostButtonContainer.react"],a,"ReactGroupComposer.react")}})}},_getPlaceListAttachmentUI:function(){return{attachment:b("React").createElement(b("ReactComposerPlaceListLazyAttachment.react"),{config:this.props.config,key:b("ReactComposerAttachmentType").PLACE_LIST,bootload:function(a){return b("Bootloader").loadModules(["ReactGroupsComposerPlaceListAttachmentContainer.react","ReactComposerPlaceListPostButtonContainer.react"],a,"ReactGroupComposer.react")}})}}});e.exports=a}),null); __d("ReactComposerStripFormattingDialogStrings",["fbt","invariant"],(function(a,b,c,d,e,f,g,h){"use strict";a={getDialogTitle:function(){return g._("Remove Formatting")},getDialogBody:function(a){switch(a){case"GROUP_MEET_UP":return g._("Adding a get-together will remove formatting from your post. Would you like to continue?");case"FUNDRAISER":return g._("Adding a fundraiser will remove formatting from your post. Would you like to continue?");default:return h(!1,"UI string missing for removal of formatting for sprout")}},getConfirmButtonText:function(){return g._("Continue")}};e.exports=a}),null); __d("ReactComposerTagMeetUpSproutContainer.react",["Arbiter","AsyncRequest","FluxContainer","GroupsMeetUpContentStrings","React","ReactComposerAttachmentActions","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerContextTypes","ReactComposerDisabledSproutItem.react","ReactComposerSproutItem.react","ReactComposerSproutsDefaultUIConfigTyped","ReactComposerStatusActions","ReactComposerStore","ReactComposerStripFormattingDialogStrings","ReactComposerTaggerActions","ReactComposerTaggerStore","ReactComposerTaggerType","ShimButton.react","SimpleXUIDialog","XBasicFBNuxDismissController","XBasicFBNuxViewController","XUIAmbientNUX.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g1&&a[0].width===0){var g=a[1];c=g.top;d=g.right;e=g.bottom;f=g.left}else{g=a[0];c=g.top;d=g.right;e=g.bottom;f=g.left}for(var g=1;g=0}d=b("React").createClass({displayName:"RichComposedTextEditorInlineStyleMenu",propTypes:{editorState:c.instanceOf(b("EditorState")).isRequired,disableLinkAndMonoFormatting:c.bool.isRequired,onRemoveLink:c.func.isRequired,onAddLink:c.func.isRequired,onCancelLink:c.func.isRequired,onToggle:c.func.isRequired},getInitialState:function(){return{addingLink:!1,flyoutState:"style",bounds:null,targetSelection:null,linkText:"",linkErrorMessage:null}},componentDidUpdate:function(){var a=this;this.state.addingLink&&setTimeout(function(){return a.refs.linkInput.focus()},0)},_toggleBold:function(a){a.preventDefault(),this.props.onToggle("BOLD")},_toggleItalic:function(a){a.preventDefault(),this.props.onToggle("ITALIC")},_toggleMono:function(a){a.preventDefault(),this.props.onToggle("CODE")},_toggleLink:function(a){a.preventDefault(),this._toggleLinkImpl()},_toggleLinkImpl:function(){if(this._alreadyContainsLink()){this.props.onRemoveLink();return}this.setState({addingLink:!0,flyoutState:"link",bounds:o(),targetSelection:this.props.editorState.getSelection(),linkText:""})},toggleLink:function(){if(!this._canAddLink())return!1;this._toggleLinkImpl();return!0},_onLinkValueChange:function(a){a=a.target;a instanceof HTMLInputElement||i(0,2261);this.setState({linkText:a.value})},_onLinkValueKeydown:function(a){__p&&__p();switch(a.which){case b("Keys").RETURN:a.preventDefault();if(this.state.linkText){var c=new(b("URI"))(this.state.linkText),d=c.getProtocol();if(!d)c.setProtocol("http");else if(!n(d))return;if(!b("URI").isValidURI(c.toString())){this.setState({linkErrorMessage:"Invalid link"});return}else this.setState({linkErrorMessage:null});d=this.props.editorState.getCurrentContent();d=d.createEntity("LINK","MUTABLE",p(c));c=d.getLastCreatedEntityKey();this.props.onAddLink(this.state.targetSelection,c);this.setState(this.getInitialState())}return;case b("Keys").ESC:a.preventDefault();this._cancelLink();return;default:this.setState({linkErrorMessage:null})}},reset:function(a){this.setState(this.getInitialState(),a)},resetToStyles:function(a){this.setState(Object.assign(this.getInitialState(),{targetSelection:this.props.editorState.getSelection(),bounds:this.state.bounds}),a)},_cancelLink:function(){var a=this,b=this.state.targetSelection;this.props.onCancelLink(b);setTimeout(function(){return a.resetToStyles()},0)},_renderBold:function(a){a="_4q5h"+(a.has("BOLD")?" _u4r":"");return b("React").createElement("li",babelHelpers["extends"]({className:a,onMouseDown:this._toggleBold},b("TooltipData").propsFor(l.bold)))},_renderItalic:function(a){a="_4q5j"+(a.has("ITALIC")?" _u4r":"");return b("React").createElement("li",babelHelpers["extends"]({className:a,onMouseDown:this._toggleItalic},b("TooltipData").propsFor(l.italic)))},_disableLinkAndMonoFormatting:function(){return this.props.disableLinkAndMonoFormatting},_renderMono:function(a){if(this._disableLinkAndMonoFormatting())return null;a="_4q5k"+(a.has("CODE")?" _u4r":"");return b("React").createElement("li",babelHelpers["extends"]({className:a,onMouseDown:this._toggleMono},b("TooltipData").propsFor(l.mono)))},_canAddLink:function(){var a=this.props.editorState;a=this._getSelectionWithoutTrailingNewline(a);return!a.isCollapsed()&&a.getAnchorKey()===a.getFocusKey()},_alreadyContainsLink:function(){var a=this.props.editorState,b=this._getSelectionWithoutTrailingNewline(a);return a.getCurrentContent().getBlockForKey(b.getAnchorKey()).getCharacterList().slice(b.getStartOffset(),b.getEndOffset()).some(function(b){b=b.getEntity();var c=a.getCurrentContent();return b&&c.getEntity(b).getType()==="LINK"})},_getSelectionWithoutTrailingNewline:function(a){__p&&__p();var c=a.getSelection();if(!c.isCollapsed()&&c.getEndOffset()===0){a=a.getCurrentContent();var d=a.getKeyBefore(c.getEndKey());if(d){a=a.getBlockForKey(d).getLength();var e=c.getIsBackward();if(e)return new(b("SelectionState"))({anchorKey:d,anchorOffset:a,focusKey:c.getFocusKey(),focusOffset:c.getFocusOffset(),isBackward:!0});else return new(b("SelectionState"))({anchorKey:c.getAnchorKey(),anchorOffset:c.getAnchorOffset(),focusKey:d,focusOffset:a,isBackward:!1})}}return c},_renderLink:function(){if(!this._canAddLink()||this._disableLinkAndMonoFormatting())return null;var a=this._alreadyContainsLink();a="_4q5l"+(a?" _u4r":"");return b("React").createElement("li",babelHelpers["extends"]({className:a,onMouseDown:this._toggleLink},b("TooltipData").propsFor(l.link)))},_renderStyleBody:function(a){return b("React").createElement("ul",{className:"_u4s clearfix"},this._renderBold(a),this._renderItalic(a),this._renderMono(a),this._renderLink())},_renderLinkBody:function(){return b("React").createElement(b("LeftRight.react"),{className:"_u4u"},b("React").createElement(b("XUIError.react"),{xuiError:this.state.linkErrorMessage},b("React").createElement("input",{className:"_u4v",type:"text",ref:"linkInput",placeholder:l.linkPlaceholder,value:this.state.linkText,onChange:this._onLinkValueChange,onKeyDown:this._onLinkValueKeydown})),b("React").createElement(b("XUICloseButton.react"),{className:"_u4w",size:"medium",shade:"dark",onClick:this._cancelLink}))},renderLayers:function(){__p&&__p();var a=this,c=!1,d=!1,e=null,f=this.props.editorState;if(this.state.flyoutState==="link")c=!0,e=this.state.bounds;else{var g=!f.getSelection().isCollapsed();e=g?o():null;d=!!(g&&e)}g=d?f.getCurrentInlineStyle():j();return b("ReactFragment").create({style:b("React").createElement(b("XUIContextualDialog.react"),{autoFocus:!1,shown:d,alignment:"center",contextBounds:e,behaviors:k,contextRef:function(){return a.refs.inlineStyle}},this._renderStyleBody(g)),link:b("React").createElement(b("XUIContextualDialog.react"),{hideOnEscape:!1,autoFocus:!1,shown:c,alignment:"center",contextBounds:e,behaviors:k,contextRef:function(){return a.refs.inlineStyle}},this._renderLinkBody())})},render:function(){return b("React").createElement("span",null,b("React").createElement("div",{ref:"inlineStyle"}),this.renderLayers())}});function o(){var c=b("getVisibleSelectionRect")(a);if(c==null)return null;var d=c.top,e=c.right,f=c.bottom;c=c.left;return new(b("Rect"))(d,e,f,c,"viewport").convertTo("document")}function p(a){var b={};b.url=a.toString();return b}e.exports=d}),null); __d("RichComposedTextEditorMenu.react",["cx","fbt","ContextualLayerAutoFlip","EditorState","GroupsComposerActions","GroupsComposerNuxTypes","NotesEmbedDialog","NotesPhotoPickerDialog","NotesVideoPickerDialog","React","ReactComposerGroupStore","ReactComposerStatusStore","ReactDOM","ReactFragment","XUIAmbientNUX.react","XUIContextualDialog.react","XUIContextualDialogBody.react","calculateMenuTop","clearImmediate","keyMirror","setImmediate"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;var i=b("keyMirror")({STYLE:null,ATTACH:null}),j={ContextualLayerAutoFlip:b("ContextualLayerAutoFlip")},k={embed:h._("Embed"),photo:h._("Photo"),video:h._("Video")};c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g300&&b("ReactComposerStatusStore").getRichTextBlocks(this.props.compositionID)===null};d.$10=function(){var a=this.$8(),c={top:this.state.top?this.state.top+"px":void 0},d;this.props.canAttachVideo||this.props.canAttachEmbed?d=b("React").createElement("li",{className:"_15_2",ref:"attach"}):this.props.canAttachPhoto?d=b("React").createElement("li",{className:"_15_4",onClick:this.$11}):d=null;a="_15_5"+(a==="unstyled"?" _15_6":"")+(a==="header-one"?" _15_7":"")+(a==="header-two"?" _15_8":"")+(a==="unordered-list-item"?" _15_9":"")+(a==="ordered-list-item"?" _15_a":"")+(a==="blockquote"?" _15_b":"")+(a==="code-block"?" _15_c":"");return b("React").createElement("ul",{style:c,className:"clearfix _15r2",onMouseDown:this.$9,ref:"format_block_menu"},d,b("React").createElement("li",{className:a,ref:"style"}))};d.$21=function(a){a="_15_7"+(a==="header-one"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$13})};d.$22=function(a){a="_15_8"+(a==="header-two"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$14})};d.$23=function(a){a="_15_9"+(a==="unordered-list-item"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$15})};d.$24=function(a){a="_15_a"+(a==="ordered-list-item"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$16})};d.$25=function(a){a="_15_b"+(a==="blockquote"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$17})};d.$26=function(a){if(this.props.disableCodeBlock)return null;a="_15_c"+(a==="code-block"?" _15_e":"");return b("React").createElement("li",{className:a,onMouseDown:this.$18})};d.$27=function(){return!this.props.canAttachEmbed?null:b("React").createElement("li",{className:"_15_o",onMouseDown:this.$19},k.embed)};d.$28=function(){var a="_15_r";return b("React").createElement("li",{className:a,onMouseDown:this.$11},k.photo)};d.$29=function(){if(!this.props.canAttachVideo)return null;var a="_15_s";return b("React").createElement("li",{className:a,onMouseDown:this.$20},k.video)};d.renderLayers=function(){var a=this,c=this.$12(),d=this.$8();return b("ReactFragment").create({formattingNux:b("React").createElement(b("XUIAmbientNUX.react"),{contextRef:function(){return a.refs.format_block_menu},shown:this.$5(),onCloseButtonClick:function(){a.$4(!1)},position:"left"},h._("Now you can format your post with headlines, bullets, pull quotes and more.")),attach:b("React").createElement(b("XUIContextualDialog.react"),{autoFocus:!1,contextRef:function(){return a.refs.attach},hoverContextRef:function(){return a.refs.attach},hoverHideDelay:0,alignment:"center",offsetY:-2,behaviors:j,shown:c&&this.state.visibleMenu===i.ATTACH},b("React").createElement(b("XUIContextualDialogBody.react"),null,b("React").createElement("ul",{className:"_15_t clearfix"},this.$28(),this.$29(),this.$27()))),style:b("React").createElement(b("XUIContextualDialog.react"),{autoFocus:!1,contextRef:function(){return a.refs.style},hoverContextRef:function(){return a.refs.style},hoverHideDelay:40,alignment:"center",behaviors:j,shown:c&&this.state.visibleMenu===i.STYLE},b("React").createElement(b("XUIContextualDialogBody.react"),null,b("React").createElement("ul",{className:"_15_u clearfix"},this.$21(d),this.$22(d),this.$23(d),this.$24(d),this.$25(d),this.$26(d))))})};d.render=function(){var a="_15_v"+(this.$12()?" _15_w":"");return b("React").createElement("span",null,b("React").createElement("div",{className:a,ref:"container"},b("React").createElement("div",{className:"_40eu"},this.$10())),this.renderLayers())};return c}(b("React").Component);c.propTypes={editorState:a.instanceOf(b("EditorState")).isRequired,compositionID:a.string.isRequired,onToggleBlockType:a.func.isRequired,onAddPhoto:a.func.isRequired,onAddVideo:a.func.isRequired,onCancelPhoto:a.func.isRequired,ownerID:a.string.isRequired,isPageStory:a.bool,disableCodeBlock:a.bool,shouldShowNux:a.bool};function l(a,b){b=b.createEntity("EMBED","IMMUTABLE",a);return b.getLastCreatedEntityKey()}function m(a,b){b=b.createEntity("IMAGE","IMMUTABLE",a);return b.getLastCreatedEntityKey()}function n(a,b){b=b.createEntity("VIDEO","IMMUTABLE",a);return b.getLastCreatedEntityKey()}e.exports=c}),null); __d("RichTextEditorInlineCodeUtil",["DraftModifier","EditorState","RichTextEditorUtil"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){__p&&__p();if(a.getLastChangeType()==="undo")return a;var c=a.getSelection(),d=c.getAnchorOffset(),e=a.getCurrentContent(),f=e.getBlockForKey(c.getAnchorKey()),g=f.getText();if(c.isCollapsed()){var h=e.getSelectionBefore();if(!h.isCollapsed()&&g.charAt(d-1)==="`")return b("RichTextEditorUtil").toggleInlineStyle(b("EditorState").undo(a),"CODE");h=c.merge({anchorOffset:d-1,focusOffset:d-1});f=f.getInlineStyleAt(d-1).includes("CODE");if(d>0&&g.charAt(d-1)==="`"&&f)return b("RichTextEditorUtil").toggleInlineStyle(b("EditorState").forceSelection(b("EditorState").push(a,b("DraftModifier").replaceText(e,c.merge({anchorOffset:d-1}),""),"delete-character"),h),"CODE")||a;if(d>1&&g.charAt(d-2)==="`"&&g.charAt(d-1)!=="`"&&!f&&(d===2||g.charAt(d-3)===" "))return b("EditorState").forceSelection(b("EditorState").push(a,b("DraftModifier").applyInlineStyle(b("DraftModifier").replaceText(e,c.merge({anchorOffset:d-2}),g.charAt(d-1)),c.merge({anchorOffset:d-2,focusOffset:d-1}),"CODE"),"change-inline-style"),h)}return a}e.exports=a}),null); __d("RichTextEditorMarkdownUtil",["CharacterMetadata","ContentBlock","ContentState","DraftModifier","EditorState","SelectionState","distinctArrayBy","filterNulls","flattenArray","generateRandomKey","immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="(?:\\t| {4})",h=/[.*+?^${}()|[\]\\]/g,i=4,j=[{text:"# ",type:"header-one"},{text:"## ",type:"header-two"},{text:"* ",type:"unordered-list-item",isListStart:!0},{text:"- ",type:"unordered-list-item",isListStart:!0},{text:"+ ",type:"unordered-list-item",isListStart:!0},{text:"1. ",type:"ordered-list-item",isListStart:!0},{text:"1) ",type:"ordered-list-item",isListStart:!0},{text:"> ",type:"blockquote"},{text:"```",type:"code-block",isMultilineCodeBlockMarker:!0},{text:" ",type:"code-block"},{text:"[] ",type:"checkbox-list-item",data:{isChecked:!1}},{text:"[ ] ",type:"checkbox-list-item",data:{isChecked:!1}},{text:"[x] ",type:"checkbox-list-item",data:{isChecked:!0}},{text:"[X] ",type:"checkbox-list-item",data:{isChecked:!0}}],k=function(a,b){b===void 0&&(b=[]);var c=j.filter(function(c){return c.isListStart&&c.type===a&&!b.includes(c.text)}).map(function(a){return a.text.replace(h,"\\$&")}).map(function(a){return a.replace(/1/g,"\\d+")});return c.length>0?"(?:"+c.join("|")+")":""},l=function(a){a===void 0&&(a=[]);var b=k("unordered-list-item",a);a=k("ordered-list-item",a);return[{text:"* ",regex:RegExp("^("+b+")"),type:"unordered-list-item",isListStart:!0,isNestedList:!1},{text:"1. ",regex:RegExp("^("+a+")"),type:"ordered-list-item",isListStart:!0,isNestedList:!1},{text:" * ",regex:RegExp("^("+g+"+"+b+")"),type:"unordered-list-item",isListStart:!1,isNestedList:!0},{text:" 1. ",regex:RegExp("^("+g+"+"+a+")"),type:"ordered-list-item",isListStart:!1,isNestedList:!0}]};function m(a,c){var d;c===void 0&&(c=!1);var e=(d=a==null?void 0:a.enableCheckboxes)!=null?d:!1;a=(d=a==null?void 0:a.markdownReplacementOverrides)!=null?d:[];return b("distinctArrayBy")([].concat(a,c?l():[],j),function(a){a=a.text;return a}).filter(function(a){a=a.type;return a!="ignore"&&(e?!0:a!=="checkbox-list-item")})}function n(a,c,d){d===void 0&&(d=c);a=a.getSelection().getAnchorKey();return new(b("SelectionState"))({anchorKey:a,anchorOffset:c,focusKey:a,focusOffset:d,isBackward:!1,hasFocus:!1})}function o(a,c){var d=a.getCurrentContent();a=n(a,0,c.text.length);d=b("DraftModifier").replaceText(b("DraftModifier").setBlockType(d,a,c.type),a,"");return c.type==="checkbox-list-item"?b("DraftModifier").setBlockData(d,a,b("immutable").Map(c.data)):d}var p="replaced-markdown-text-with-block-style";function q(a,c){__p&&__p();var d=a.getSelection(),e=a.getCurrentContent().getBlockForKey(a.getSelection().getStartKey());c=m(c,!1);if(d.isCollapsed()&&d.getStartOffset()<=i&&e.getType()==="unstyled")for(var c=c,f=Array.isArray(c),g=0,c=f?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=c.length)break;h=c[g++]}else{g=c.next();if(g.done)break;h=g.value}h=h;if(d.getStartOffset()===h.text.length&&e.getText().startsWith(h.text))return b("EditorState").forceSelection(b("EditorState").push(a,o(a,h),p),n(a,0))}return null}function a(a,c){__p&&__p();var d=m(c,!0),e=0,f=!1;c=b("flattenArray")(b("filterNulls")(a.getCurrentContent().getBlocksAsArray().map(function(a){__p&&__p();var c=a.getText();if(c===null)return a;for(var h=d,i=Array.isArray(h),j=0,h=i?h:h[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(i){if(j>=h.length)break;k=h[j++]}else{j=h.next();if(j.done)break;k=j.value}k=k;var l=null;if(k.regex&&!f){var m;m=(m=c.match(k.regex))!=null?m:[];if(m.length>0)if(k.isListStart)l=c.replace(m[0],""),e=1;else if(k.isNestedList&&e>0){l=c.replace(m[0],"");e=((m=m[0].split(RegExp(g)))!=null?m:[]).length}}else if(k.text&&c.startsWith(k.text))if(k.isMultilineCodeBlockMarker){f=!f;return null}else f||(l=c.substring(k.text.length),e=k.isListStart?1:0);if(l!==null)return new(b("ContentBlock"))({key:b("generateRandomKey")(),type:k.type,text:l,characterList:b("immutable").List(b("immutable").Repeat(b("CharacterMetadata").EMPTY,l.length)),depth:e>=1?e-1:0,data:b("immutable").Map(k.type==="checkbox-list-item"?k.data:{})})}return f?new(b("ContentBlock"))({key:b("generateRandomKey")(),type:"code-block",text:c,characterList:b("immutable").List(b("immutable").Repeat(b("CharacterMetadata").EMPTY,a.getText().length)),depth:0,data:b("immutable").Map({})}):a})));return b("EditorState").createWithContent(b("ContentState").createFromBlockArray(c))}function c(a,b){return a.getLastChangeType()==="insert-characters"?q(a,b):null}function d(a,c){__p&&__p();a=a==="backspace"||a==="backspace-word"||a==="backspace-to-start-of-line";if(!a)return null;a=c.getLastChangeType()===p;if(!a)return null;a=c.getSelection().isCollapsed()&&c.getSelection().getStartOffset()===0;if(!a)return null;a=c.getUndoStack().size&&c.getSelection().getStartKey()===c.getUndoStack().first().getSelectionAfter().getStartKey();return!a?null:b("EditorState").undo(c)}e.exports={_getReplacements_FOR_TESTING_USE_ONLY:m,_textToBlockStyle_FOR_TESTING_USE_ONLY:q,blockStyleToText:d,formatWithStyles:a,getMarkdownNestedListReplacements:l,textToBlockStyle:c}}),null); __d("RichComposedTextEditor.react",["cssVar","cx","AbstractMentionsTextEditor.react","AtomicBlockUtils","CampfireCharacters","CampfireCommands","DraftModifier","EditorState","MentionsLayer.react","React","RichComposedTextEditorBlock.react","RichComposedTextEditorInlineStyleMenu.react","RichComposedTextEditorMenu.react","RichTextEditorInlineCodeUtil","RichTextEditorMarkdownUtil","RichTextEditorUtil","XUITypeaheadView.react","createMentionEntityForContentState","gkx","isSoftNewlineEvent","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;var i=b("CampfireCharacters").EMBED,j=b("CampfireCharacters").PHOTO,k=b("CampfireCharacters").VIDEO,l=4,m={CODE:{backgroundColor:"#f6f7f9",fontFamily:"Menlo, Consolas, Monaco, monospace",fontSize:"14px",padding:4}};c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g