You are on page 1of 4

.directed_target_id=c);h.addQueryData({extragetparams:JSON.

stringify(i)});return
h}};e.exports=g}),null);
__d("ChatPerfTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],
(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a()
{this.$1={}}var c=a.prototype;c.log=function()
{b("GeneratedLoggerUtils").log("logger:ChatPerfLoggerConfig",this.
$1,b("Banzai").BASIC)};c.logVital=function()
{b("GeneratedLoggerUtils").log("logger:ChatPerfLoggerConfig",this.
$1,b("Banzai").VITAL)};c.logImmediately=function()
{b("GeneratedLoggerUtils").log("logger:ChatPerfLoggerConfig",this.$1,{signal:!
0})};c.clear=function(){this.$1={};return this};c.getData=function(){return
babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.
$1=babelHelpers["extends"]({},this.$1,a);return this};c.setDuration=function(a)
{this.$1.duration=a;return this};c.setEndpoint=function(a){this.
$1.endpoint=a;return this};c.setEvent=function(a){this.$1.event=a;return
this};c.setTabsOpen=function(a){this.$1.tabs_open=a;return
this};c.setTime=function(a){this.$1.time=a;return this};c.setWeight=function(a)
{this.$1.weight=a;return this};return a}();c={duration:!0,endpoint:!0,event:!
0,tabs_open:!0,time:!0,weight:!0};e.exports=a}),null);
__d("ChatPerfEvent",[],(function(a,b,c,d,e,f)
{e.exports=Object.freeze({ASYNC_REQUEST:"async_request",SIDEBAR_FROM_CLIENT_TTI:"si
debar_from_client_tti",SIDEBAR_FROM_SERVER_TTI:"sidebar_from_server_tti",SIDEBAR_DI
SPLAY_DONE:"sidebar_display_done",TTI:"tti",CHAT_CONVERSATION_TTI:"chat_conversatio
n_tti",CHAT_INIT_STORES:"chat_init_stores",CHAT_INIT_DATA:"chat_init_data",CHAT_INI
T_UI:"chat_init_ui",CHAT_INIT_SOUND:"chat_init_sound",CHAT_DISPLAY_DONE:"chat_displ
ay_done"})}),null);
__d("ChatPerfInstrumentation",
["Promise","BaseEventEmitter","ChatPerfEvent","ChatPerfTypedLogger","CurrentUser","
FantaConst","PresenceState","emptyFunction","performanceAbsoluteNow"],
(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("CurrentUser").isWorkUser();c=a?
b("FantaConst").cookieIDs.WORK_COOKIE_ID:b("FantaConst").cookieIDs.PERSONAL_COOKIE_
ID;d=b("PresenceState").getInitial();var g=d&&d[c]?
d[c].length:0,h;f={_startTime:Number,_sidebarStartTime:Number,init:function()
{this._startTime=b("performanceAbsoluteNow")();return new(b("Promise"))(function(a)
{return a()})},initDivebar:function()
{this._sidebarStartTime=b("performanceAbsoluteNow")()},_log:function(a,c)
{c=b("performanceAbsoluteNow")()-(c||this._startTime);h&&h.emit(a,c);var
d=new(b("ChatPerfTypedLogger"))
();d.setEvent(a).setDuration(c);d.setTabsOpen(g);d.log()},addPerfTimingsListener:fu
nction(a,c){h||(h=new(b("BaseEventEmitter"))());return
h.once(a,c)},logInitStores:function()
{this.logInitStores=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT_INIT_STORE
S)},logInitData:function()
{this.logInitData=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT_INIT_DATA)},
logInitUI:function()
{this.logInitUI=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT_INIT_UI)},logI
nitSound:function()
{this.logInitSound=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT_INIT_SOUND)
},logDisplayDone:function()
{this.logDisplayDone=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT_DISPLAY_D
ONE)},logTTI:function()
{this.logTTI=b("emptyFunction"),this._log(b("ChatPerfEvent").TTI)},logCHAT_CONVERSA
TION_TTI:function()
{this.logCHAT_CONVERSATION_TTI=b("emptyFunction"),this._log(b("ChatPerfEvent").CHAT
_CONVERSATION_TTI)},logSIDEBAR_FROM_CLIENT_TTI:function()
{this.logSIDEBAR_FROM_CLIENT_TTI=b("emptyFunction"),this._log(b("ChatPerfEvent").SI
DEBAR_FROM_CLIENT_TTI,this._sidebarStartTime)},logSIDEBAR_DISPLAY_DONE:function()
{this.logSIDEBAR_DISPLAY_DONE=b("emptyFunction"),this._log(b("ChatPerfEvent").SIDEB
AR_DISPLAY_DONE,this._sidebarStartTime)}};e.exports=f}),null);
__d("FacebarPlaceholderShortcut",["fbt","KeyboardShortcuts","translateKey"],
(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(){__p&&__p();function
a(a){this._input=a,this._listener=null}var c=a.prototype;c.enable=function()
{this._registerListener()};c._registerListener=function()
{this._listener&&this._listener.remove(),this._listener=b("KeyboardShortcuts").regi
ster("SLASH",this._handleKeydown.bind(this),{filter:function(a,b){return!
a.getModifiers().shift},persistOnTransition:!0,shortcutInfo:{displayKeys:
[b("translateKey")("/")],description:g._("Buscar")}})};c.disable=function()
{this._listener&&this._listener.remove(),this._listener=null};c._handleKeydown=func
tion(a){this._input.focus();return!1};return a}();e.exports=a}),null);
__d("XFacebarBootloadController",["XController"],(function(a,b,c,d,e,f)
{e.exports=b("XController").create("/typeahead/search/facebar/bootload/",
{placeholder_id:{type:"String"}})}),null);
__d("FacebarBootloader",
["AsyncRequest","BanzaiODS","CSS","Event","FacebarPlaceholderShortcut","Run","Subsc
riptionsHandler","XFacebarBootloadController","getActiveElement"],
(function(a,b,c,d,e,f){"use strict";__p&&__p();var
g="facebar_bootloader",h=g+"_";a={isRequested:!1,isFocused:!1,isInitialized:!
1,init:function(a,c,d,e){__p&&__p();var
f=this;this.reset();this.subscriptions=new(b("SubscriptionsHandler"))
();this.placeholder=d;this.searchInput=a;this.shortcutHandler=new(b("FacebarPlaceho
lderShortcut"))
(a);this.loadingIndicator=c;this.shortcutHandler.enable();this.subscriptions.addSub
scriptions(b("Event").listen(a,"focus",function()
{f.requestSearch(),f.showLoadingIndicator()}),b("Event").listen(d,"mouseover",this.
requestSearch.bind(this)),b("Event").listen(a,"invalid",function(a){return
a.preventDefault()}));e&&this.subscriptions.addSubscriptions(b("Event").listen(wind
ow,"load",this.requestSearch.bind(this)));b("Run").onUnload(this.reset.bind(this));
this.isInitialized=!0;(a.value||b("getActiveElement")
()==a)&&(this.requestSearch(),this.showLoadingIndicator())},showLoadingIndicator:fu
nction()
{this.loadingIndicator&&b("CSS").show(this.loadingIndicator)},reset:function()
{this.subscriptions&&this.subscriptions.release(),this.shortcutHandler&&this.shortc
utHandler.disable(),this.searchInput=this.subscriptions=this.shortcutHandler=null,t
his.loadingIndicator=null,this.isRequested=!1,this.isFocused=!
1,this.isInitialized=!1},requestSearch:function(){b("getActiveElement")
()==this.searchInput&&!this.isFocused&&(this.isFocused=!
0,this.focusTime=Date.now());if(this.isRequested||!
this.isInitialized)return;this.isRequested=!0;var
a=b("XFacebarBootloadController").getURIBuilder().setString("placeholder_id",this.p
laceholder.getAttribute("id")).getURI(),c=new(b("AsyncRequest"))
();c.setURI(a).setMethod("GET").setReadOnly(!0).setAllowCrossPageTransition(!
0).setErrorHandler(function(a)
{b("BanzaiODS").bumpEntityKey(2966,g,h+"request_failed"),a&&a.errorSummary?
b("BanzaiODS").bumpEntityKey(2966,g,h+"request_failed_"+a.errorSummary):b("BanzaiOD
S").bumpEntityKey(2966,g,h+"request_failed_no_error_summary"),this.isRequested=!
1}).send()},setFocus:function(a,c,d){if(!
this.searchInput)return;b("BanzaiODS").bumpEntityKey(2966,g,h+"response_arrived");
(this.searchInput.value||this.isFocused)&&(a.getCore().isFocused=!
0,a.getCore().input.setValue(d.fromString(this.searchInput.value),!
0),a.getCore().setStartTime(this.focusTime),c.focus(),c.setSelection({length:this.s
earchInput.selectionEnd-
this.searchInput.selectionStart,offset:this.searchInput.selectionStart}),c.togglePl
aceHolder&&c.togglePlaceholder());this.reset()}};e.exports=a}),null);
__d("BadgeHelper",["cx","fbt","DOM","WorkOfficialGroupsFBTs","joinClasses"],
(function(a,b,c,d,e,f,g,h){__p&&__p();var
i={xsmall:"_5dzz",small:"_5dz-",medium:"_5dz_",large:"_5d-0",xlarge:"_5d-
1"},j={bot:"_64nf",verified:"_56_f",trending:"_1gop",topcommenter:"_59t2",page_gray
_check:"_5n3t",page_gray_check_solid:"_6w81",work:"_5d62",game_blue:"_59c6",work_no
n_coworker:"_2ad7",work_official_badge:"_8b0y",work_official_badge_gray:"_8b-
m",interest_community:"_3qcr",subscription:"_4fvy",inactive_user:"_7xv0"},k={bot:h.
_("Bot"),work_non_coworker:h._("No forma parte de tu
empresa"),work_official_badge:b("WorkOfficialGroupsFBTs").officialGroupLabel,work_o
fficial_badge_gray:b("WorkOfficialGroupsFBTs").officialGroupLabel};function l(a,c)
{return b("joinClasses")(i[a],j[c],"_5dzy")}function m(a){return k[a]}function
a(a,c){a=l(a,c);if(a){c=m(c);return b("DOM").create("span",{className:a},c?
b("DOM").create("span",
{className:"accessible_elem"},c):null)}}e.exports={getClasses:l,getAlt:m,renderBadg
e:a,sizes:Object.keys(i),types:Object.keys(j)}}),null);
__d("Badge.react",["BadgeHelper","React"],(function(a,b,c,d,e,f)
{__p&&__p();a=b("React").PropTypes;c=function(a){"use
strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return
a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var
a=b("BadgeHelper").getAlt(this.props.type);a=a?b("React").createElement("span",
{className:"accessible_elem"},a):null;return b("React").createElement("span",
{className:b("BadgeHelper").getClasses(this.props.size,this.props.type)},a)};return
c}
(b("React").Component);c.propTypes={size:a.oneOf(b("BadgeHelper").sizes),type:a.one
Of(b("BadgeHelper").types)};c.defaultProps={size:"xsmall",type:"verified"};e.export
s=c}),null);
__d("cssURL",[],(function(a,b,c,d,e,f){function a(a){return"url('"+a.replace(/
[\ud800-\udfff].|[^-a-zA-Z0-9./_?]/g,function(a)
{return"\\"+a.codePointAt(0).toString(16)+" "})+"')"}e.exports=a}),null);
__d("StoreBasedStateMixinHelper",["invariant","SubscriptionsHandler"],
(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(){__p&&__p();function
a(a){this.$1=a,this.$2=new(b("SubscriptionsHandler"))()}var
c=a.prototype;c.subscribeCallback=function(a,b){__p&&__p();var c=this.
$1.map(function(c){__p&&__p();var d=b!=null?function(d){b&&b(c);return
a(d)}:a;if(c.hasChanged&&c.getDispatchToken&&c.addListener)return
c.addListener(d);else if(c.subscribe)return c.subscribe("change",d);else
if(c.addListener)return c.addListener("change",d);else g(0,574)});this.
$1.length>0&&this.$2.addSubscriptions.apply(this.$2,c)};c.release=function(){this.
$2.release()};return a}();e.exports=a}),null);
__d("isDevelopersURI",["isFacebookURI"],(function(a,b,c,d,e,f){"use
strict";function a(a){return b("isFacebookURI")
(a)&&a.getSubdomain()==="developers"}e.exports=a}),null);
__d("WorkForeignEntityType",[],(function(a,b,c,d,e,f)
{e.exports=Object.freeze({FOREIGN:"FOREIGN",NOT_FOREIGN:"NOT_FOREIGN"})}),null);
__d("LoadOnRender.react",["React","createCancelableFunction"],
(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use
strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var
d;d=a.call(this,c)||this;d.$1=!1;d.$2=null;d.$3=!0;d.$4=function(a){d.$2=a,d.
$1&&d.forceUpdate()};d.state={cancelableOnComponentLoad:b("createCancelableFunction
")(d.$4)};c.loader(d.state.cancelableOnComponentLoad);return d}var
d=c.prototype;d.componentDidMount=function(){this.$1=!0,this.$3&&this.$2!
=null&&this.forceUpdate()};d.componentWillUnmount=function(){this.$1=!
1,this.state.cancelableOnComponentLoad.cancel()};d.render=function(){var a=this.
$2;this.$3=a==null;return!a||this.props.forcePlaceholder?
this.props.placeholder:b("React").cloneElement(this.props.component,
{LazyLoadedComponent:a})};return c}
(b("React").Component);a.defaultProps={forcePlaceholder:!1};e.exports=a}),null);
__d("BootloadOnRender.react",["JSResource","LoadOnRender.react","React"],
(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use
strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var
e=arguments.length,f=new Array(e),g=0;g<e;g+
+)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.
$1=function(a){b("JSResource").loadAll([d.props.loader],a)},c)||
babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){return
b("React").createElement(b("LoadOnRender.react"),
{placeholder:this.props.placeholder,loader:this.
$1,component:this.props.component})};return c}
(b("React").Component);e.exports=a}),null);
__d("LazyComponent.react",["React","isReactClassComponent"],(function(a,b,c,d,e,f)
{__p&&__p();a=function(a){"use
strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return
a.apply(this,arguments)||this}var d=c.prototype;d.getComponent=function(){return
this.$1};d.render=function(){var
a=this,c=this.props,d=c.LazyLoadedComponent;c=babelHelpers.objectWithoutPropertiesL
oose(c,["LazyLoadedComponent"]);var e=b("isReactClassComponent")(d)?function(b)
{return a.$1=b}:null;return b("React").createElement(d,babelHelpers["extends"]
({ref:e},c))};return c}
(b("React").Component);a.defaultProps={LazyLoadedComponent:function(){return
null}};e.exports=a}),null);
__d("MercuryIDs",["gkx"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var
g={isValid:function(a){return a==null||a===""||typeof a!=="string"?!1:/^\w{3,12}:.
+/.test(a)},isValidThreadID:function(a){if(!g.isValid(a))return!
1;a=g.tokenize(a);switch(a.type)
{case"user":case"support":case"thread":case"root":return!
0;default:return(a.type==="pending"||a.type==="group")&&!b("gkx")("863760")?!0:!
1}},tokenize:function(a){if(a==null||a===""||!g.isValid(a))throw new
Error("bad_id_format "+String(a));var
b=a.indexOf(":");return{type:a.substr(0,b),value:a.substr(b+1)}},getUserIDFromParti
cipantID:function(a){if(!g.isValid(a))throw new Error("bad_id_format
"+a);a=g.tokenize(a);var b=a.type;a=a.value;return b==="fbid"?
a:null},getParticipantIDFromUserID:function(a){if(isNaN(a))throw new Error("Not a
user ID: "+a);return"fbid:"+a},getUserIDFromThreadID:function(a){return!
this.isCanonical(a)?null:this.tokenize(a).value},getThreadIDFromUserID:function(a)
{return"user:"+a},getThreadIDFromThreadFBID:function(a)
{return"thread:"+a},getThreadIDFromSupportInboxItemID:function(a)
{return"support:"+a},getThreadFBIDFromThreadID:function(a){return
this.tokenize(a).value},getThreadKeyfromThreadIDUserID:function(a,b)
{__p&&__p();if(a==null||a===""||!g.isValid(a))throw new Error("bad_id_format
"+String(a));var c=this.tokenize(a).type;a=this.tokenize(a).value;if(c!
=="user")return"g"+a;c="";var d="";if(a.length!==b.length)a.length>b.length?
(c=a,d=b):(c=b,d=a);else if(b===a)return b+"u"+a;else{var
e=0;while(e<a.length&&e<b.length)if(a[e]===b[e])e++;else{a[e]>b[e]?(c=a,d=b):
(c=b,d=a);break}}return d+"u"+c},getThreadIDFromParticipantID:function(a)
{a=this.getUserIDFromParticipantID(a);return a?
this.getThreadIDFromUserID(a):null},getParticipantIDFromFromThreadID:function(a)
{a=this.getUserIDFromThreadID(a);return a?
this.getParticipantIDFromUserID(a):null},getSupportInboxItemIDFromThreadID:function
(a){return this.tokenize(a).value},isCanonical:function(a){return
this.isValid(a)&&this.tokenize(a).type==="user"},isGroupChat:function(a){return
this.isValid(a)&&this.tokenize(a).type!=="user"},isLocalThread:function(a){return
this.isValid(a)&&this.tokenize(a).type==="root"}};e.exports=g}),null);
__d("onAfterDisplay",["NavigationMetrics","TimeSlice","requestIdleCallback"],
(function(a,b,c,d,e,f){"use strict";var g=[],h=!1;function a(a)
{a=b("TimeSlice").guard(a,"onAfterDisplay invocation",
{propagationType:b("TimeSlice").PropagationType.ORPHAN});h?b("requestIdleCallback")
(a):g.push(a)}b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").
Events.EVENT_OCCURRED,function(a,c)
{["all_pagelets_displayed","e2e"].indexOf(c.event)>-1&&!h&&(h=!
0,g.forEach(function(a){b("requestIdleCallback")(a)}))});e.exports=a}),null);
__d("TokenizeUtil",["nullthrows"],(function(a,b,c,d,e,f){__p&&__p();var g=/[ ]
+/g,h=/[^ ]+/g,i=n

You might also like