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

__d("MessengerDiscoveryEntryPoints",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({BROWSER_PROFILE_ICON:"browser_profile_icon",FB_STORY:"fb_story",CHECKBOX_PLUGIN:"checkbox_plugin",SEARCH:"search",SEARCH_HOME:"search:home",SEARCH_PEOPLE:"search:people",SEARCH_GAMES:"search:games",SEARCH_DISCOVER:"search:discover",FB_PAGE:"fb_page",FB_PAGE_PAGE_HEADER:"fb_page:page_header",FB_PAGE_FB_PAGE_CTA_PAGES_ACTIONS_UNIT:"fb_page:fb_page_cta_pages_actions_unit",FB_PAGE_JEWEL_THREAD:"fb_page:jewel_thread",FB_PAGE_USER_MESSAGE_PROMPT:"fb_page:user_message_prompt",FB_PAGE_PAGES_INFO:"fb_page:pages_info",FB_PAGE_LOADED_FROM_DATA:"fb_page:loaded_from_data",FB_PAGE_HOVER_CARD:"fb_page:hover_card",FB_PAGE_CHAT_SIDEBAR_TYPEAHEAD:"fb_page:chat_sidebar_typeahead",FB_PAGE_DYNAMICHOVERCARD:"fb_page:dynamicHoverCard",FB_PAGE_ABOUT_ROW:"fb_page:about_row",FB_PAGE_PYMM_RHC:"fb_page:pymm_rhc",FB_PAGE_GROUPS_RHC:"fb_page:groups_rhc",FB_PAGE_CONTEXT_CARD:"fb_page:context_card",FB_PAGE_CONTEXTUAL_RECOMMENDATIONS:"fb_page:contextual_recommendations",FB_PAGE_SEARCHENTITYCARD:"fb_page:searchEntityCard",FB_PAGE_MESSAGE_RECEIVED:"fb_page:message_received",FB_PAGE_PAGE_HOVERCARD:"fb_page:page_hovercard",FB_PAGE_QUESTION_TRIGGERED_CONVO:"fb_page:question_triggered_convo",CUSTOMER_CHAT_PLUGIN:"customer_chat_plugin",MDOTME:"mdotme",MDOTME_FBPAGE:"mdotme:fbpage",MDOTME_CHATEXTENSION:"mdotme:chatextension"})}),null);
__d("PagesManagerUserMessagePrompt",["ChatAppStore","ChatOpenTabEventLogger","ChatVisibility","FantaTabActions","MercuryIDs","MessengerDiscoveryEntryPoints","PagesLogger","PagesLoggerEventEnum","PagesLoggerEventTargetEnum","setImmediate"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=2e3,i={openTab:function j(k){__p&&__p();var l=arguments.length<=1||arguments[1]===undefined?c("MessengerDiscoveryEntryPoints").FB_PAGE_USER_MESSAGE_PROMPT:arguments[1],m=arguments.length<=2||arguments[2]===undefined?h:arguments[2];if(!c("ChatVisibility").isOnline())return;setTimeout(function(){__p&&__p();var n;if(c("ChatAppStore").getState().isInitialized)i._openTabAndLog(k,l);else(function(){var o=c("ChatAppStore").addListener(function(){if(c("ChatAppStore").getState().isInitialized){c("setImmediate")(function(){i._openTabAndLog(k,l)});o.remove()}})})()},m)},_openTabAndLog:function j(k,l){var m=c("MercuryIDs").getThreadIDFromUserID(k);c("FantaTabActions").openTab(m,[l]);c("ChatOpenTabEventLogger").logUserAutoOpen(l,k);c("PagesLogger").log(k,c("PagesLoggerEventEnum").IMPRESSION,c("PagesLoggerEventTargetEnum").PAGE_MESSAGE_PROMPT,null,["pages_growth"],{})}};f.exports=i}),null);