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

__d("SignalsPageVisibilityUtil",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=Object.freeze({HIDDEN:"hidden",VISIBLE:"visible",PRERENDER:"prerender",UNLOADED:"unloaded"}),i={hidden:"visibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",webkitHidden:"webkitvisibilitychange"},j=null,k=null,l=[];for(var m in i)if(document[m]!==undefined){j=m;k=i[m];break}function n(p){return typeof p==="function"}function o(){return j?document[j]:false}if(document.addEventListener&&k)document.addEventListener(k,function p(){var q=o()?h.HIDDEN:h.VISIBLE;for(var r=0;r<l.length;r++)if(n(l[r]))l[r](q)});g.clearHandler=function(){return l=[]};g.registerHandler=function p(q){l.push(q)}}),null);
__d("HubNavDispatcher",["ExplicitRegistrationDispatcher"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("ExplicitRegistrationDispatcher"));i=h&&h.prototype;function j(){h.apply(this,arguments)}f.exports=new j({strict:true})}),null);
__d("NotificationHubEmptyStory.react",["cx","fbt","CurrentUser","FlexLayout.react","React","Text.react"],(function a(b,c,d,e,f,g,h,i){"use strict";function j(k){var l=c("React").createElement("div",{className:c("CurrentUser").isWorkUser()?"_4w-c _2o1n _4w-b":"_4w-c _2o1n _2miu"},c("React").createElement(c("FlexLayout.react"),{direction:"vertical",align:"center"},c("React").createElement(c("Text.react"),{style:{textAlign:"center",fontSize:20,color:"grey"}},i._("No notification selected."),c("React").createElement("br",null),i._("Click any notification to see it here."))));return l}f.exports=j}),null);
__d("NotificationHubExternalSave.react",["cx","fbt","React","XUIGrayText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";function j(k){return c("React").createElement("div",{className:"_rrw _2o1n _2pi6"},c("React").createElement(c("XUIGrayText.react"),{size:"header3",display:"block",weight:"bold"},i._("External Save")),c("React").createElement(c("XUIGrayText.react"),{display:"block"},i._("The selected save item doesn't have an associated story to preview. The URL has been opened in a separate browser tab.")))}f.exports=j}),null);
__d("NotificationHubShimmeringStory.react",["cx","React","XUICard.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(j){return c("React").createElement(c("XUICard.react"),{id:"workHubNotifSpinner",className:"_2iwp"},c("React").createElement("div",{className:"_2iwo"},c("React").createElement("div",{className:"_2iwq"},c("React").createElement("div",{className:"_2iwr"}),c("React").createElement("div",{className:"_2iws"}),c("React").createElement("div",{className:"_2iwt"}),c("React").createElement("div",{className:"_2iwu"}),c("React").createElement("div",{className:"_2iwv"}),c("React").createElement("div",{className:"_2iww"}),c("React").createElement("div",{className:"_2iwx"}),c("React").createElement("div",{className:"_2iwy"}),c("React").createElement("div",{className:"_2iwz"}),c("React").createElement("div",{className:"_2iw-"}),c("React").createElement("div",{className:"_2iw_"}),c("React").createElement("div",{className:"_2ix0"}))))}f.exports=i}),null);
__d("NotificationHubUnsupportedStory.react",["cx","fbt","CurrentUser","React","WIGButton.react","XUIButton.react","XUIGrayText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";function j(k){var l=k.uri,m=c("CurrentUser").isEmployee()&&c("CurrentUser").isWorkUser()?c("React").createElement(c("XUIGrayText.react"),{display:"block"},i._("Engineers who'd very much like to earn your affection are working around the clock to resolve this issue, crying softly to themselves as they contemplate where, oh where, in their childhood they could have gotten it wrong. This will be fixed. It shall be so.")):null,n=c("CurrentUser").isWorkUser()?c("WIGButton.react"):c("XUIButton.react");return c("React").createElement("div",{className:"_rrw _2o1n _2pi6"},c("React").createElement(c("XUIGrayText.react"),{size:"header3",display:"block",weight:"bold"},i._("Preview Not Available")),c("React").createElement(c("XUIGrayText.react"),{display:"block"},i._("This notification can't be viewed as a preview. So we've opened it for you in a separate browser tab.")),m,c("React").createElement(n,{href:l,target:"_blank",label:i._("Open Notification Link")}))}f.exports=j}),null);
__d("XWorkHubStoryController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/hub/story/",{alert_id:{type:"String"},comment_id:{type:"Int"},encoded_story_token:{type:"String"},id:{type:"Int"},ref:{type:"String"},reply_comment_id:{type:"Int"},story_token:{type:"String"}})}),null);
__d("NotificationHubLoader",["AsyncRequest","NotificationHubExternalSave.react","NotificationHubShimmeringStory.react","NotificationHubEmptyStory.react","NotificationHubUnsupportedStory.react","React","ReactDOM","XWorkHubStoryController","ge"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();h.prototype.setStoryElement=function(i){this.$NotificationHubLoader1=i};h.prototype.emptyPreview=function(){if(this.$NotificationHubLoader1)c("ReactDOM").unmountComponentAtNode(this.$NotificationHubLoader1)};h.prototype.showEmptyPlaceHolder=function(){if(this.$NotificationHubLoader1)c("ReactDOM").render(c("React").createElement(c("NotificationHubEmptyStory.react"),null),this.$NotificationHubLoader1)};h.prototype.showSpinner=function(){if(!c("ge")("workHubNotifSpinner")&&this.$NotificationHubLoader1)c("ReactDOM").render(c("React").createElement(c("NotificationHubShimmeringStory.react"),null),this.$NotificationHubLoader1)};h.prototype.loadPreview=function(i,j){var k=this.$NotificationHubLoader3(j,/comment_id=(\d+)/),l=this.$NotificationHubLoader3(j,/reply_comment_id=(\d+)/),m=c("XWorkHubStoryController").getURIBuilder().setString("alert_id",i).setInt("comment_id",l?null:k).setInt("reply_comment_id",l).getURI();this.$NotificationHubLoader4(m,j)};h.prototype.$NotificationHubLoader3=function(i,j){var k=i.match(j);return k?Number(k[1]):null};h.prototype.loadSavedStory=function(i,j){var k=c("XWorkHubStoryController").getURIBuilder().setString("encoded_story_token",i).getURI();this.$NotificationHubLoader4(k,j)};h.prototype.loadContainerlessSavedStory=function(i){window.open(i);if(this.$NotificationHubLoader1)c("ReactDOM").render(c("React").createElement(c("NotificationHubExternalSave.react"),null),this.$NotificationHubLoader1)};h.prototype.$NotificationHubLoader4=function(i,j){this.showSpinner();this.$NotificationHubLoader2&&this.$NotificationHubLoader2.abort();this.$NotificationHubLoader2=new(c("AsyncRequest"))(i).setErrorHandler(this.$NotificationHubLoader5.bind(this,j));this.$NotificationHubLoader2.send()};h.prototype.$NotificationHubLoader5=function(i){window.open(i);if(this.$NotificationHubLoader1)c("ReactDOM").render(c("React").createElement(c("NotificationHubUnsupportedStory.react"),{uri:i}),this.$NotificationHubLoader1)};function h(){}f.exports=new h()}),null);
__d("WorkHubLogAction",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({COMPOSE_STARTED:"COMPOSE_STARTED",GROUP_STORY_LOAD:"GROUP_STORY_LOAD",HIDE_PANE:"HIDE_PANE",PAGE_LOAD:"PAGE_LOAD",NOTIFICATION_MARK_READ:"NOTIFICATION_MARK_READ",NOTIFICATION_MARK_UNREAD:"NOTIFICATION_MARK_UNREAD",NOTIFICATION_STORY_LOAD:"NOTIFICATION_STORY_LOAD",NOTIFICATION_TAB_CHANGED:"NOTIFICATION_TAB_CHANGED",KEYBOARD_SHORTCUT_COMMENT:"KEYBOARD_SHORTCUT_COMMENT",KEYBOARD_SHORTCUT_LIKE:"KEYBOARD_SHORTCUT_LIKE",KEYBOARD_SHORTCUT_NEXT_TAB:"KEYBOARD_SHORTCUT_NEXT_TAB",KEYBOARD_SHORTCUT_PREV_TAB:"KEYBOARD_SHORTCUT_PREV_TAB",KEYBOARD_SHORTCUT_PREV_ARROW_UP:"KEYBOARD_SHORTCUT_PREV_ARROW_UP",KEYBOARD_SHORTCUT_PREV:"KEYBOARD_SHORTCUT_PREV",KEYBOARD_SHORTCUT_PREV_NOTIF_ONLY:"KEYBOARD_SHORTCUT_PREV_NOTIF_ONLY",KEYBOARD_SHORTCUT_PREV_ARROW_DOWN:"KEYBOARD_SHORTCUT_PREV_ARROW_DOWN",KEYBOARD_SHORTCUT_NEXT:"KEYBOARD_SHORTCUT_NEXT",KEYBOARD_SHORTCUT_NEXT_NOTIF_ONLY:"KEYBOARD_SHORTCUT_NEXT_NOTIF_ONLY",KEYBOARD_SHORTCUT_MARK_AS_READ:"KEYBOARD_SHORTCUT_MARK_AS_READ",KEYBOARD_SHORTCUT_MARK_AS_UNREAD:"KEYBOARD_SHORTCUT_MARK_AS_UNREAD",KEYBOARD_SHORTCUT_OPEN:"KEYBOARD_SHORTCUT_OPEN",KEYBOARD_SHORTCUT_START_GROUP_POST:"KEYBOARD_SHORTCUT_START_GROUP_POST",SAVED_STORY_LOAD:"SAVED_STORY_LOAD",SAVED_STORY_ARCHIVE:"SAVED_STORY_ARCHIVE",SAVED_STORY_UNARCHIVE:"SAVED_STORY_UNARCHIVE",SHOW_PANE:"SHOW_PANE"})}),null);
__d("WorkHubTab",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({ALL:"All",UNREAD:"Unread",CONVERSATIONS:"Tags and Replies",PINNED_GROUPS:"Pinned Groups",SPEEDFEED:"News Feed",MULTICOMPANY:"Multi-Company Groups",SAVED:"Saved",TRENDING:"Trending",NOTES:"Notes",GROUP_FEED:"Group"})}),null);
__d("WorkHubTabSpecs",["WorkHubTab","WorkGKs","gkx"],(function a(b,c,d,e,f,g){"use strict";var h=[{title:c("WorkHubTab").ALL,logName:"all"},{title:c("WorkHubTab").UNREAD,readness:"UNREAD",logName:"unread"},{title:c("WorkHubTab").CONVERSATIONS,classification:"CONVERSATIONS",logName:"conversations"},{title:c("WorkHubTab").PINNED_GROUPS,classification:"FAVORITE_GROUP",logName:"pinned"},{title:c("WorkHubTab").SPEEDFEED,logName:"speedfeed",gk:c("gkx")("AT6pSjtC4Xcz0sYRRAjULrhZ2b-yZ2Ft0SAqGnqKzB2HXq7Q18u9Gu7hDZQMBHodM2LL9Qo2Tc4cvCBGKtwWSuPT")},{title:c("WorkHubTab").MULTICOMPANY,classification:"MULTI_COMPANY_GROUPS",logName:"multicompany"},{title:c("WorkHubTab").SAVED,logName:"saved",gk:c("WorkGKs").work_hub_saved},{title:c("WorkHubTab").TRENDING,logName:"trending",gk:c("WorkGKs").work_hub_trending},{title:c("WorkHubTab").NOTES,logName:"notes",gk:c("gkx")("AT6NonLjYHqCPwGZl14qZrX7F6-g2zbo6vsBXSOZrjF38SESFtGFTbmzi-CK1dHybKjz_90Ja2N3WbkZGvczYvSB")},{title:c("WorkHubTab").GROUP_FEED,logName:"group",gk:c("gkx")("AT6mINUuhcB1gVX96X7auO8BcHol1VneHiduPuMn3LLx7uaXxM4lYc2R122ZNvPImoQcyMHRY62LCREHKg17N2_P")}];f.exports=h}),null);
__d("WorkHubTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:WorkHubLoggerConfig",this.$WorkHubTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:WorkHubLoggerConfig",this.$WorkHubTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$WorkHubTypedLogger1={};return this};h.prototype.updateData=function(j){this.$WorkHubTypedLogger1=babelHelpers["extends"]({},this.$WorkHubTypedLogger1,j);return this};h.prototype.setAction=function(j){this.$WorkHubTypedLogger1.action=j;return this};h.prototype.updateExtraData=function(j){j=c("nullthrows")(c("GeneratedLoggerUtils").serializeMap(j));c("GeneratedLoggerUtils").checkExtraDataFieldNames(j,i);this.$WorkHubTypedLogger1=babelHelpers["extends"]({},this.$WorkHubTypedLogger1,j);return this};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l)};var i={action:true};f.exports=h}),null);
__d("HubNavActions",["HubNavDispatcher","NotificationHubLoader","WorkHubLogAction","WorkHubTabSpecs","WorkHubTypedLogger","keyMirror","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("keyMirror")({TAB_CHANGED:null,NEXT_TAB:null,PREV_TAB:null,HIDE_REACTIONS_CHANGED:null,OPEN_NEW_WINDOW:null,HIDE_TRENDING_TICKER:null}),i={TYPES:h,tabChanged:function j(k){var l=arguments.length<=1||arguments[1]===undefined?true:arguments[1];c("NotificationHubLoader").emptyPreview();var m=c("nullthrows")(c("WorkHubTabSpecs").find(function(n){return n.title===k}));new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").NOTIFICATION_TAB_CHANGED).addToExtraData("tab",m.logName).log();c("HubNavDispatcher").dispatch({tabTitle:k,type:h.TAB_CHANGED,addToHistory:l})},nextTab:function j(k,l){var m=arguments.length<=2||arguments[2]===undefined?true:arguments[2];c("HubNavDispatcher").dispatch({type:h.NEXT_TAB,showPinnedGroups:k,showMultiCompanyGroups:l,addToHistory:m})},prevTab:function j(k,l){var m=arguments.length<=2||arguments[2]===undefined?true:arguments[2];c("HubNavDispatcher").dispatch({type:h.PREV_TAB,showPinnedGroups:k,showMultiCompanyGroups:l,addToHistory:m})},hideReactionsChanged:function j(k){c("HubNavDispatcher").dispatch({type:h.HIDE_REACTIONS_CHANGED,hideReactions:k})},openNewWindowChanged:function j(k){c("HubNavDispatcher").dispatch({type:h.OPEN_NEW_WINDOW,openNewWindow:k})},hideTrendingTickerChanged:function j(k){c("HubNavDispatcher").dispatch({type:h.HIDE_TRENDING_TICKER,hideTrendingTicker:k})}};f.exports=i}),null);
__d("HubNavStore",["CacheStorage","FluxReduceStore","HubNavActions","HubNavDispatcher","immutable","WorkHubTab","WorkHubTabSpecs"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k,l="HubNavStore.selectedTab",m="HubNavStore.hideReactions",n="HubNavStore.openNewWindow",o="HubNavStore.hideTrendingTicker",p=Object.freeze({NEXT:"next",PREV:"prev"});h=babelHelpers.inherits(q,c("immutable").Record({selectedTab:c("WorkHubTab").ALL,addedToHistory:false,hideReactions:false,openNewWindow:false,hideTrendingTicker:false}));i=h&&h.prototype;function q(){h.apply(this,arguments)}j=babelHelpers.inherits(r,c("FluxReduceStore"));k=j&&j.prototype;r.prototype.getInitialState=function(){if(!this.storage)this.storage=new(c("CacheStorage"))("localstorage");return new q({selectedTab:this.storage.get(l,c("WorkHubTab").ALL),addedToHistory:false,hideReactions:this.storage.get(m,false),openNewWindow:this.storage.get(n,false),hideTrendingTicker:this.storage.get(o,false)})};r.prototype.getTargetTab=function(s,t,u){var v=c("WorkHubTabSpecs").filter(function(x){return t||x.title!==c("WorkHubTab").PINNED_GROUPS}).filter(function(x){return u||x.title!==c("WorkHubTab").MULTICOMPANY}),w=v.findIndex(function(x){return x.title===this.getSelectedTab()}.bind(this));if(s===p.NEXT&&w+1<v.length)return v[w+1];else if(s===p.PREV&&w-1>=0)return v[w-1];else return v[w]};r.prototype.getSelectedTab=function(){return this.getState().get("selectedTab")};r.prototype.getHideReactions=function(){return this.getState().get("hideReactions")};r.prototype.getOpenNewWindow=function(){return this.getState().get("openNewWindow")};r.prototype.getHideTrendingTicker=function(){return this.getState().get("hideTrendingTicker")};r.prototype.getStoredTabName=function(){var s=this.getSelectedTab(),t=c("WorkHubTabSpecs").find(function(u){return u.title===s});return t?t.logName:null};r.prototype.reduce=function(s,t){__p&&__p();switch(t.type){case c("HubNavActions").TYPES.TAB_CHANGED:if(t.tabTitle)this.storage.set(l,t.tabTitle);else this.storage.remove(l);return new q({selectedTab:t.tabTitle,addedToHistory:t.addToHistory,hideReactions:this.getHideReactions(),openNewWindow:this.getOpenNewWindow(),hideTrendingTicker:this.getHideTrendingTicker()});case c("HubNavActions").TYPES.NEXT_TAB:var u=this.getTargetTab(p.NEXT,t.showPinnedGroups,t.showMultiCompanyGroups);this.storage.set(l,u.title);return new q({selectedTab:u.title,addedToHistory:t.addToHistory,hideReactions:this.getHideReactions(),openNewWindow:this.getOpenNewWindow(),hideTrendingTicker:this.getHideTrendingTicker()});case c("HubNavActions").TYPES.PREV_TAB:var v=this.getTargetTab(p.PREV,t.showPinnedGroups,t.showMultiCompanyGroups);this.storage.set(l,v.title);return new q({selectedTab:v.title,addedToHistory:t.addToHistory,hideReactions:this.getHideReactions(),openNewWindow:this.getOpenNewWindow(),hideTrendingTicker:this.getHideTrendingTicker()});case c("HubNavActions").TYPES.HIDE_REACTIONS_CHANGED:this.storage.set(m,t.hideReactions);return new q({selectedTab:this.getSelectedTab(),addedToHistory:false,hideReactions:t.hideReactions,openNewWindow:this.getOpenNewWindow(),hideTrendingTicker:this.getHideTrendingTicker()});case c("HubNavActions").TYPES.OPEN_NEW_WINDOW:this.storage.set(n,t.openNewWindow);return new q({selectedTab:this.getSelectedTab(),addedToHistory:false,hideReactions:this.getHideReactions(),openNewWindow:t.openNewWindow,hideTrendingTicker:this.getHideTrendingTicker()});case c("HubNavActions").TYPES.HIDE_TRENDING_TICKER:this.storage.set(o,t.hideTrendingTicker);return new q({selectedTab:this.getSelectedTab(),addedToHistory:false,hideReactions:this.getHideReactions(),openNewWindow:this.getOpenNewWindow(),hideTrendingTicker:t.hideTrendingTicker})}return this.getState()};function r(){j.apply(this,arguments)}f.exports=new r(c("HubNavDispatcher"))}),null);
__d("NotificationsSourceView",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({HUB:"HUB"})}),null);
__d("XWorkHubController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/notifications/hub/{?tab}/{?alert_id}/",{ref:{type:"String"},tab:{type:"String"},selected_key:{type:"String",defaultValue:"app_401904056828201"},alert_id:{type:"String"}})}),null);
__d("WorkHubNotificationListItem.react",["cx","HubNavStore","Link.react","NotificationListConfig","NotificationListItemBaseModule","NotificationsSourceView","NotificationURI","NotificationUserActions","PageTransitions","React","URI","XWorkHubController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("NotificationListItemBaseModule").NotificationListItemBase;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$WorkHubNotificationListItem2=function(r){this.$WorkHubNotificationListItem1=r}.bind(this),this.$WorkHubNotificationListItem6=function(r){var s=this.$WorkHubNotificationListItem4();if(this.props.onRead&&r)this.props.onRead(s);c("NotificationUserActions").markNotificationsAsRead([s],c("NotificationsSourceView").HUB)}.bind(this),this.$WorkHubNotificationListItem7=function(){var r=this.$WorkHubNotificationListItem4();c("NotificationUserActions").markNotificationsAsUnread([r],c("NotificationsSourceView").HUB)}.bind(this),this.$WorkHubNotificationListItem8=function(r){var s=c("NotificationURI").localize(new(c("URI"))(this.props.notification.url));return c("React").createElement(c("Link.react"),{ref:this.$WorkHubNotificationListItem2,href:s,className:"_33e _1_0e",onClick:this.$WorkHubNotificationListItem5.bind(this,s)},r)}.bind(this),n}l.prototype.$WorkHubNotificationListItem3=function(){return c("NotificationListConfig").canMarkUnread||c("NotificationListConfig").canMarkUnreadInHub};l.prototype.$WorkHubNotificationListItem4=function(){return this.props.notification.alert_id};l.prototype.$WorkHubNotificationListItem5=function(m,n){__p&&__p();if(n&&n.metaKey){window.open(m);n&&n.preventDefault()}else{var o=this.$WorkHubNotificationListItem4(),p=c("XWorkHubController").getURIBuilder().setString("tab",c("HubNavStore").getStoredTabName()).setString("alert_id",o).getURI();c("PageTransitions").go(p);this.props.onSelected&&this.props.onSelected(o);n&&n.preventDefault()}this.$WorkHubNotificationListItem6(n)};l.prototype.render=function(){return c("React").createElement(k,babelHelpers["extends"]({},this.props,{canMarkUnread:this.$WorkHubNotificationListItem3(),hasCustomForeground:false,renderLink:this.$WorkHubNotificationListItem8,onMarkItemRead:this.$WorkHubNotificationListItem6,onMarkItemUnread:this.$WorkHubNotificationListItem7,hideIcon:false}))};f.exports=l}),null);
__d("NotificationHubUnsavedChangesWarning",["fbt","Promise","Bootloader","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(){__p&&__p();return new(c("Promise"))(function(k){__p&&__p();c("Bootloader").loadModules(["DialogX","LayerHideOnEscape","PageHooks","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIGrayText.react"],function(l,m,n,o,p,q,r,s){__p&&__p();var t=n.runHooks("onbeforeleavehooks");if(!t){k();return}var u=new l({width:450,addedBehaviors:[m]},c("React").createElement("div",null,c("React").createElement(o,{showCloseButton:false},h._("Leave Story?")),c("React").createElement(p,null,c("React").createElement(s,{shade:"medium",size:"medium"},t)),c("React").createElement(r,null,c("React").createElement(q,{action:"cancel",label:h._("Stay on This Story")}),c("React").createElement(q,{action:"confirm",use:"confirm",label:h._("Leave This Story")}))));u.subscribe("confirm",function(){u.hide();k()});u.show()},"NotificationHubUnsavedChangesWarning")})},j={check:i};f.exports=j}),null);
__d("WorkplaceHubEvents",[],(function a(b,c,d,e,f,g){var h=Object.freeze({NEXT_TAB:"WorkplaceHubEvent/nextTab",PREV_TAB:"WorkplaceHubEvent/prevTab",NEXT_NOTIFICATION:"WorkplaceHubEvent/nextNotification",PREV_NOTIFICATION:"WorkplaceHubEvent/prevNotification",OPEN_NOTIFICATION:"WorkplaceHubEvent/openNotification",MARK_AS_READ:"WorkplaceHubEvent/markAsRead",MARK_AS_UNREAD:"WorkplaceHubEvent/markAsUnread",SELECT_NOTIFICATION:"WorkplaceHubEvent/selectNotification",LATEST_NOTIFICATION:"WorkplaceHubEvent/latestNotification"});f.exports=h}),null);
__d("WorkHubNotificationPageList.react",["Arbiter","NavigationMessage","NotificationHubLoader","NotificationHubUnsavedChangesWarning","NotificationPageList.react","NotificationsSourceView","NotificationURI","NotificationUserActions","React","Run","SubscriptionsHandler","URI","WorkHubNotificationListItem.react","WorkplaceHubEvents","getObjectValues"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(k){i.constructor.call(this,k);this.$WorkHubNotificationPageList3=function(){this.$WorkHubNotificationPageList2&&this.$WorkHubNotificationPageList2.release()}.bind(this);this.state={selectedID:null}}j.prototype.$WorkHubNotificationPageList4=function(k,l){return l.indexOf(k)};j.prototype.$WorkHubNotificationPageList5=function(k){return c("getObjectValues")(this.props.notifs).find(function(l){return l.alert_id==k})};j.prototype.$WorkHubNotificationPageList6=function(k){var l=this.$WorkHubNotificationPageList5(k);return l?c("NotificationURI").localize(new(c("URI"))(l.url)):null};j.prototype.$WorkHubNotificationPageList7=function(){var k=c("getObjectValues")(this.props.notifs).map(function(m){return m.alert_id});if(this.state.selectedID==null)return k[0];var l=this.state.selectedID?this.$WorkHubNotificationPageList4(this.state.selectedID,k):Math.max(0,this.$WorkHubNotificationPageList1);return 0<=l-1?k[l-1]:k[l]};j.prototype.$WorkHubNotificationPageList8=function(){var k=c("getObjectValues")(this.props.notifs).map(function(m){return m.alert_id});if(this.state.selectedID==null)return k[0];var l=this.state.selectedID?this.$WorkHubNotificationPageList4(this.state.selectedID,k):Math.max(0,this.$WorkHubNotificationPageList1);return l+1<k.length?k[l+1]:k[l]};j.prototype.componentDidUpdate=function(){if(!this.state.selectedID)this.displayEmptyPlaceholder()};j.prototype.componentDidMount=function(){__p&&__p();this.$WorkHubNotificationPageList2=new(c("SubscriptionsHandler"))();this.$WorkHubNotificationPageList2.addSubscriptions(c("Run").onLeave(this.$WorkHubNotificationPageList3),c("Arbiter").subscribe(c("NavigationMessage").NAVIGATION_BEGIN,this.$WorkHubNotificationPageList3),c("Arbiter").subscribe(c("WorkplaceHubEvents").NEXT_NOTIFICATION,function(){this.selectAndPreviewNotification(this.$WorkHubNotificationPageList8())}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").PREV_NOTIFICATION,function(){this.selectAndPreviewNotification(this.$WorkHubNotificationPageList7())}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").OPEN_NOTIFICATION,function(){var k=this.$WorkHubNotificationPageList6(this.state.selectedID);if(k)window.open(k)}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").SELECT_NOTIFICATION,function(k,l){var m=l.alertID;this.selectAndPreviewNotification(m)}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").MARK_AS_READ,function(){var k=this.$WorkHubNotificationPageList5(this.state.selectedID);if(k)if(!this.props.readState[k.alert_id])this.$WorkHubNotificationPageList9(k.alert_id,c("NotificationsSourceView").HUB)}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").MARK_AS_UNREAD,function(){if(this.props.enableMarkUnread){var k=this.$WorkHubNotificationPageList5(this.state.selectedID);if(k&&this.props.readState[k.alert_id])c("NotificationUserActions").markNotificationsAsUnread([k.alert_id,c("NotificationsSourceView").HUB])}}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").LATEST_NOTIFICATION,function(){this.displayEmptyPlaceholder()}.bind(this)))};j.prototype.componentWillUnmount=function(){this.$WorkHubNotificationPageList3()};j.prototype.displayEmptyPlaceholder=function(){c("NotificationHubLoader").showEmptyPlaceHolder()};j.prototype.$WorkHubNotificationPageList10=function(k){c("NotificationHubLoader").showSpinner();var l=this.$WorkHubNotificationPageList6(k)||"#";c("NotificationHubLoader").loadPreview(k,l);var m=setTimeout(function(){if(this.state.selectedID==k&&!this.props.readState[k])this.$WorkHubNotificationPageList9(k)}.bind(this),1e3);this.$WorkHubNotificationPageList2.addSubscriptions({remove:function n(){clearTimeout(m)}})};j.prototype.$WorkHubNotificationPageList9=function(k,l){c("NotificationUserActions").markNotificationsAsRead([k],l);if(this.props.onRead)this.props.onRead(k)};j.prototype.selectAndPreviewNotification=function(k){c("NotificationHubUnsavedChangesWarning").check().done(function(){this.onNotificationSelected(k);this.$WorkHubNotificationPageList10(k)}.bind(this))};j.prototype.onNotificationSelected=function(k){var l=c("getObjectValues")(this.props.notifs).map(function(m){return m.alert_id});this.$WorkHubNotificationPageList1=this.$WorkHubNotificationPageList4(k,l);this.setState({selectedID:k})};j.prototype.render=function(){return c("React").createElement(c("NotificationPageList.react"),babelHelpers["extends"]({},this.props,{listItemRenderer:c("WorkHubNotificationListItem.react"),selectedID:this.state.selectedID}))};f.exports=j}),null);
__d("ResizingScrollableArea.react",["Event","React","ScrollableArea.react","debounce","getViewportDimensions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.render=function(){var l=c("getViewportDimensions").withoutScrollbars(),m=Math.max(0,l.height-this.props.heightViewportGap);return c("React").createElement(c("ScrollableArea.react"),{width:this.props.width,height:m,onScroll:this.props.onScroll,fade:true,shadow:false},this.props.children)};k.prototype.componentDidMount=function(){this.$ResizingScrollableArea1()};k.prototype.componentDidUpdate=function(l){this.$ResizingScrollableArea1()};k.prototype.$ResizingScrollableArea1=function(){c("Event").listen(window,"resize",c("debounce")(function(){this.forceUpdate()}.bind(this)))};function k(){h.apply(this,arguments)}k.propTypes={width:j.number,heightViewportGap:j.number,onScroll:j.func};f.exports=k}),null);
__d("HubSavedItemsContainerQuery.graphql",[],(function a(b,c,d,e,f,g){"use strict";var h=function(){var i=[{kind:"LocalArgument",name:"count",type:"Int!",defaultValue:null},{kind:"LocalArgument",name:"cursor",type:"ID",defaultValue:null}],j={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},k=[{kind:"ScalarField",alias:null,name:"text",args:null,storageKey:null}],l={kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},m={kind:"ScalarField",alias:null,name:"url",args:null,storageKey:null};return{kind:"Request",operationKind:"query",name:"HubSavedItemsContainerQuery",id:"1374765879306481",text:null,metadata:{},fragment:{kind:"Fragment",name:"HubSavedItemsContainerQuery",type:"Query",metadata:null,argumentDefinitions:i,selections:[{kind:"LinkedField",alias:"viewer",name:"__viewer_viewer",storageKey:null,args:null,concreteType:"Viewer",plural:false,selections:[{kind:"FragmentSpread",name:"HubSavedItems_viewer",args:null}]}]},operation:{kind:"Operation",name:"HubSavedItemsContainerQuery",argumentDefinitions:i,selections:[{kind:"LinkedField",alias:null,name:"viewer",storageKey:null,args:null,concreteType:"Viewer",plural:false,selections:[{kind:"LinkedField",alias:null,name:"saved_items",storageKey:null,args:[{kind:"Variable",name:"after",variableName:"cursor",type:"ID"},{kind:"Variable",name:"first",variableName:"count",type:"Int"}],concreteType:"UserSavedItemsConnection",plural:false,selections:[{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"UserSavedItemsEdge",plural:true,selections:[{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"TimelineAppCollectionItem",plural:false,selections:[j,{kind:"ScalarField",alias:null,name:"save_seen_state",args:null,storageKey:null},{kind:"LinkedField",alias:null,name:"title",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"attribution_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"source_title_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"image",storageKey:"image(height:32,width:32)",args:[{kind:"Literal",name:"height",value:32,type:"Int"},{kind:"Literal",name:"width",value:32,type:"Int"}],concreteType:"Image",plural:false,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"source_container",storageKey:null,args:null,concreteType:null,plural:false,selections:[l,j,{kind:"InlineFragment",type:"StoryPointer",selections:[{kind:"LinkedField",alias:null,name:"story",storageKey:null,args:null,concreteType:"Story",plural:false,selections:[m,j]}]}]},m,l]},{kind:"ScalarField",alias:null,name:"cursor",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"page_info",storageKey:null,args:null,concreteType:"PageInfo",plural:false,selections:[{kind:"ScalarField",alias:null,name:"has_next_page",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"end_cursor",args:null,storageKey:null}]}]},{kind:"LinkedHandle",alias:null,name:"saved_items",args:[{kind:"Variable",name:"after",variableName:"cursor",type:"ID"},{kind:"Variable",name:"first",variableName:"count",type:"Int"}],handle:"connection",key:"HubSavedItems_saved_items",filters:null}]},{kind:"LinkedHandle",alias:null,name:"viewer",args:null,handle:"viewer",key:"",filters:null}]}}}();f.exports=h}),null);
__d("HubSavedItemsQuery.graphql",[],(function a(b,c,d,e,f,g){"use strict";var h=function(){var i=[{kind:"LocalArgument",name:"count",type:"Int!",defaultValue:null},{kind:"LocalArgument",name:"cursor",type:"ID",defaultValue:null}],j={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},k=[{kind:"ScalarField",alias:null,name:"text",args:null,storageKey:null}],l={kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},m={kind:"ScalarField",alias:null,name:"url",args:null,storageKey:null};return{kind:"Request",operationKind:"query",name:"HubSavedItemsQuery",id:"1254478994663495",text:null,metadata:{},fragment:{kind:"Fragment",name:"HubSavedItemsQuery",type:"Query",metadata:null,argumentDefinitions:i,selections:[{kind:"LinkedField",alias:"viewer",name:"__viewer_viewer",storageKey:null,args:null,concreteType:"Viewer",plural:false,selections:[{kind:"FragmentSpread",name:"HubSavedItems_viewer",args:null}]}]},operation:{kind:"Operation",name:"HubSavedItemsQuery",argumentDefinitions:i,selections:[{kind:"LinkedField",alias:null,name:"viewer",storageKey:null,args:null,concreteType:"Viewer",plural:false,selections:[{kind:"LinkedField",alias:null,name:"saved_items",storageKey:null,args:[{kind:"Variable",name:"after",variableName:"cursor",type:"ID"},{kind:"Variable",name:"first",variableName:"count",type:"Int"}],concreteType:"UserSavedItemsConnection",plural:false,selections:[{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"UserSavedItemsEdge",plural:true,selections:[{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"TimelineAppCollectionItem",plural:false,selections:[j,{kind:"ScalarField",alias:null,name:"save_seen_state",args:null,storageKey:null},{kind:"LinkedField",alias:null,name:"title",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"attribution_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"source_title_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:k},{kind:"LinkedField",alias:null,name:"image",storageKey:"image(height:32,width:32)",args:[{kind:"Literal",name:"height",value:32,type:"Int"},{kind:"Literal",name:"width",value:32,type:"Int"}],concreteType:"Image",plural:false,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"source_container",storageKey:null,args:null,concreteType:null,plural:false,selections:[l,j,{kind:"InlineFragment",type:"StoryPointer",selections:[{kind:"LinkedField",alias:null,name:"story",storageKey:null,args:null,concreteType:"Story",plural:false,selections:[m,j]}]}]},m,l]},{kind:"ScalarField",alias:null,name:"cursor",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"page_info",storageKey:null,args:null,concreteType:"PageInfo",plural:false,selections:[{kind:"ScalarField",alias:null,name:"has_next_page",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"end_cursor",args:null,storageKey:null}]}]},{kind:"LinkedHandle",alias:null,name:"saved_items",args:[{kind:"Variable",name:"after",variableName:"cursor",type:"ID"},{kind:"Variable",name:"first",variableName:"count",type:"Int"}],handle:"connection",key:"HubSavedItems_saved_items",filters:null}]},{kind:"LinkedHandle",alias:null,name:"viewer",args:null,handle:"viewer",key:"",filters:null}]}}}();f.exports=h}),null);
__d("HubSavedItems_viewer.graphql",[],(function a(b,c,d,e,f,g){"use strict";var h=function(){var i={kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},j={kind:"ScalarField",alias:null,name:"url",args:null,storageKey:null};return{kind:"Fragment",name:"HubSavedItems_viewer",type:"Viewer",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:["saved_items"]}]},argumentDefinitions:[{kind:"RootArgument",name:"cursor",type:"ID"},{kind:"RootArgument",name:"count",type:"Int"}],selections:[{kind:"LinkedField",alias:"saved_items",name:"__HubSavedItems_saved_items_connection",storageKey:null,args:null,concreteType:"UserSavedItemsConnection",plural:false,selections:[{kind:"LinkedField",alias:null,name:"edges",storageKey:null,args:null,concreteType:"UserSavedItemsEdge",plural:true,selections:[{kind:"LinkedField",alias:null,name:"node",storageKey:null,args:null,concreteType:"TimelineAppCollectionItem",plural:false,selections:[i,{kind:"FragmentSpread",name:"HubSavedRow_item",args:null},{kind:"LinkedField",alias:null,name:"source_container",storageKey:null,args:null,concreteType:null,plural:false,selections:[{kind:"InlineFragment",type:"StoryPointer",selections:[{kind:"LinkedField",alias:null,name:"story",storageKey:null,args:null,concreteType:"Story",plural:false,selections:[i,j]}]}]},j,{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null}]},{kind:"ScalarField",alias:null,name:"cursor",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"page_info",storageKey:null,args:null,concreteType:"PageInfo",plural:false,selections:[{kind:"ScalarField",alias:null,name:"has_next_page",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"end_cursor",args:null,storageKey:null}]}]}]}}();f.exports=h}),null);
__d("HubSavedRow_item.graphql",[],(function a(b,c,d,e,f,g){"use strict";var h=function(){var i=[{kind:"ScalarField",alias:null,name:"text",args:null,storageKey:null}];return{kind:"Fragment",name:"HubSavedRow_item",type:"TimelineAppCollectionItem",metadata:null,argumentDefinitions:[],selections:[{kind:"ScalarField",alias:null,name:"save_seen_state",args:null,storageKey:null},{kind:"LinkedField",alias:null,name:"title",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:i},{kind:"LinkedField",alias:null,name:"attribution_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:i},{kind:"LinkedField",alias:null,name:"source_title_text",storageKey:null,args:null,concreteType:"TextWithEntities",plural:false,selections:i},{kind:"LinkedField",alias:null,name:"image",storageKey:"image(height:32,width:32)",args:[{kind:"Literal",name:"height",value:32,type:"Int"},{kind:"Literal",name:"width",value:32,type:"Int"}],concreteType:"Image",plural:false,selections:[{kind:"ScalarField",alias:null,name:"uri",args:null,storageKey:null}]},{kind:"LinkedField",alias:null,name:"source_container",storageKey:null,args:null,concreteType:null,plural:false,selections:[{kind:"InlineFragment",type:"StoryPointer",selections:[{kind:"LinkedField",alias:null,name:"story",storageKey:null,args:null,concreteType:"Story",plural:false,selections:[{kind:"ScalarField",alias:null,name:"url",args:null,storageKey:null}]}]}]}]}}();f.exports=h}),null);
__d("StoryList.react",["cx","invariant","ActionList.react","AsyncRequest","AsyncResponse","Event","Image.react","ImageBlock.react","Link.react","ProfileLink.react","LoadingIndicator.react","LiveTimer","MercuryParticipantSilhouettes","React","ReactDOM","ResizingScrollableArea.react","SubscriptionsHandler","Timestamp.react","UFIReactionsBlingTokens.react","URI","Vector","XUIGrayText.react","XUIText.react","debounce","timeString"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=10;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(n){__p&&__p();k.constructor.call(this,n);this.state={requestInFlight:null,endOfList:false,stories:[],excludedStoryCount:0,highlightedStoryID:null,nextCursor:null};this.$StoryList3=function(){if(this.state.requestInFlight||this.state.endOfList||!this.$StoryList4())return;var o=new(c("URI"))(this.props.loadURI).addQueryData({start_index:this.state.stories.length+this.state.excludedStoryCount,max_count:this.props.maxCountPerLoad||l,cursor:this.state.nextCursor}),p=new(c("AsyncRequest"))(o).setHandler(this.$StoryList5).setErrorHandler(function(){return this.setState({requestInFlight:null})}.bind(this));this.setState({requestInFlight:p});p.send()}.bind(this);this.$StoryList5=function(o){o.payload&&o.payload.stories||i(0);var p=o.payload.stories,q=this.props.maxCountPerLoad||l,r=o.payload.loadAttempts?o.payload.loadAttempts<q:p.length<q,s=o.payload.loadAttempts?o.payload.loadAttempts-p.length:0;this.setState(function(t,n){return{requestInFlight:null,endOfList:r,stories:t.stories.concat(p),excludedStoryCount:t.excludedStoryCount+s,nextCursor:o.payload.nextCursor}});if(!r)setTimeout(this.$StoryList3,0);this.props.onPayload&&this.props.onPayload(o.payload)}.bind(this);this.$StoryList6=function(o){this.setState({highlightedStoryID:o});this.props.onStoryClick&&this.props.onStoryClick(o)}.bind(this);this.$StoryList1=null;this.$StoryList2=new(c("SubscriptionsHandler"))();this.$StoryList2.addSubscriptions(c("Event").listen(window,"scroll",c("debounce")(this.$StoryList3,200)));c("LiveTimer").restart(Date.now()/1e3)}m.prototype.componentDidMount=function(){this.$StoryList3()};m.prototype.componentWillUnmount=function(){this.$StoryList2.release()};m.prototype.componentWillReceiveProps=function(n){if(n.loadURI.toString()!=this.props.loadURI.toString()){if(this.state.requestInFlight)this.state.requestInFlight.abort();this.setState({requestInFlight:null,endOfList:false,stories:[],excludedStoryCount:0,highlightedStoryID:null,nextCursor:null});setTimeout(this.$StoryList3,0)}};m.prototype.$StoryList4=function(){if(!this.$StoryList1)return false;var n=c("ReactDOM").findDOMNode(this.$StoryList1);if(!n)return false;n instanceof Element||i(0);var o=c("Vector").getElementPosition(n,"viewport").y;return o<c("Vector").getViewportDimensions().y};m.renderStories=function(n,o,p){__p&&__p();return n.map(function(q){__p&&__p();var r=null,s=null,t=null,u=null;if(q.author){r=c("React").createElement(c("ProfileLink.react"),{uid:q.author.id,className:"_2xjh"},q.author.name);q.author||i(0);if(q.author.imageURI)s=c("React").createElement(c("Image.react"),{src:q.author.imageURI,className:"_24x9",width:40,height:40})}if(!s){typeof c("MercuryParticipantSilhouettes").neutralSilhouette==="string"||i(0);s=c("React").createElement(c("Image.react"),{src:c("MercuryParticipantSilhouettes").neutralSilhouette,className:"_24x9",width:40,height:40})}if(q.reactions&&q.reactions.count>0)t=c("React").createElement("span",null,c("React").createElement(c("UFIReactionsBlingTokens.react"),{feedback:{actorforpost:q.author&&q.author.id,reactioncount:q.reactions.count,reactioncountmap:q.reactions.reactionMap},className:"_24xb _4ar- _ipn",max:3,size:"13"}),c("React").createElement("span",{className:"_1o81"},c("React").createElement(c("XUIGrayText.react"),null,q.reactions&&q.reactions.count)));if(q.extraData&&q.extraData.text.length>0)if(q.extraData.uri)u=c("React").createElement(c("Link.react"),{href:q.extraData.uri,className:"_2d0-"},q.extraData.text);else u=c("React").createElement("div",{className:"_2d0-"},q.extraData.text);var v=p===q.id;return c("React").createElement("li",{className:"_2xji"+(v?" _1p-v":"")+(q.showAsUnread?" _1y9l":""),key:q.id},c("React").createElement(c("ImageBlock.react"),{spacing:"medium",onClick:function w(){q.showAsUnread=false;o&&o(q.id)}},s,c("React").createElement("div",null,c("React").createElement(c("XUIText.react"),{className:"_24xz",size:"body2"},r),c("React").createElement("div",{className:"_2xjj"},q.title),c("React").createElement(c("ActionList.react"),null,t,u)),c("React").createElement("div",null,c("React").createElement("div",null,c("React").createElement(c("Timestamp.react"),{className:"_1o82",minimize:true,shorten:true,time:q.time,text:c("timeString")(q.time*1e3),autoUpdate:true})),c("React").createElement("div",{className:"_6650"}))))})};m.prototype.render=function(){var n=this.state.endOfList?null:c("React").createElement(c("LoadingIndicator.react"),{className:"_2y1h",color:"white",ref:function(q){return this.$StoryList1=q}.bind(this),size:"large"}),o=m.renderStories(this.state.stories,this.$StoryList6,this.state.highlightedStoryID),p=c("React").createElement("div",null,c("React").createElement("ul",{className:"_2xjl"},o),n);if(this.props.heightViewportGap)return c("React").createElement(c("ResizingScrollableArea.react"),{heightViewportGap:this.props.heightViewportGap,onScroll:this.$StoryList3},p);else return p};f.exports=m}),null);
__d("XWorkHubGroupFeedStoryController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/hub/groupfeed/stories/",{group_id:{type:"String",required:true},start_index:{type:"Int"},max_count:{type:"Int"},cursor:{type:"String"}})}),null);
__d("GroupFeedStoryList.react",["cx","fbt","AsyncRequest","Link.react","NotificationHubLoader","React","StoryList.react","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","XUICardSection.react","XUIGrayText.react","XGroupsController","XWorkHubGroupFeedStoryController","XWorkHubStoryController"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.state={groupName:""},this.$GroupFeedStoryList2=function(r){this.setState({groupName:r.groupName||""})}.bind(this),n}l.prototype.$GroupFeedStoryList1=function(m){var n=c("XWorkHubStoryController").getURIBuilder().setString("story_token",m).setString("ref","HubGroupFeedTab").getURI();c("NotificationHubLoader").showSpinner();new(c("AsyncRequest"))(n).send()};l.prototype.$GroupFeedStoryList3=function(){return c("React").createElement(c("XUICard.react"),null,c("React").createElement(c("XUICardHeader.react"),{type:"primary"},c("React").createElement(c("XUICardHeaderTitle.react"),null,i._("No Group Selected"))),c("React").createElement(c("XUICardSection.react"),null,c("React").createElement("div",{className:"_3-8l"},c("React").createElement(c("XUIGrayText.react"),{size:"medium",shade:"light"},i._("Please select a group from the left nav in order to see its stories")))))};l.prototype.render=function(){if(!this.props.groupID)return this.$GroupFeedStoryList3();var m=c("XWorkHubGroupFeedStoryController").getURIBuilder().setString("group_id",this.props.groupID).getURI(),n=c("XGroupsController").getURIBuilder().setString("idorvanity",this.props.groupID).setString("ref","hub_group_feed").getURI(),o=c("React").createElement(c("Link.react"),{href:n},i._("See Full Group")),p=c("React").createElement("span",{className:"_17pd ellipsis"},this.state.groupName)||i._("Stories in Group");return c("React").createElement("div",{className:"_37nl _63yh"},c("React").createElement(c("XUICard.react"),null,c("React").createElement(c("XUICardHeader.react"),{type:"primary",link:o},c("React").createElement(c("XUICardHeaderTitle.react"),null,p)),c("React").createElement(c("XUICardSection.react"),null,c("React").createElement(c("StoryList.react"),{loadURI:m,heightViewportGap:this.props.heightViewportGap,onPayload:this.$GroupFeedStoryList2,onStoryClick:this.$GroupFeedStoryList1}))))};f.exports=l}),null);
__d("HubLoadingResizableScrollableArea.react",["React","ReactDOM","ResizingScrollableArea.react","getScrollPosition","throttle"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(){__p&&__p();var k,l;for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.$HubLoadingResizableScrollableArea2=c("throttle")(function(){if(this.props.isLoading()||!this.props.hasMore())return;var p=this.$HubLoadingResizableScrollableArea3();if(!p)return;var q=p.scrollHeight-p.clientHeight-c("getScrollPosition")(p).y;if(q<=this.props.loadThreshold)this.props.onLoadMore()}.bind(this),400),l}j.prototype.render=function(){return c("React").createElement(c("ResizingScrollableArea.react"),{ref:function(k){return this.$HubLoadingResizableScrollableArea1=k}.bind(this),heightViewportGap:this.props.heightViewportGap,onScroll:this.$HubLoadingResizableScrollableArea2},this.props.children)};j.prototype.$HubLoadingResizableScrollableArea3=function(){var k=c("ReactDOM").findDOMNode(this.$HubLoadingResizableScrollableArea1);return k&&k instanceof HTMLElement&&k.children[0]&&k.children[0].classList.contains("uiScrollableAreaWrap")?k.children[0]:null};f.exports=j}),null);
__d("HubSavedRow.react",["cx","Image.react","React","XUIGrayText.react","XUIText.react","RelayModern","idx","HubSavedRow_item.graphql"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("RelayModern").createFragmentContainer,l=c("RelayModern").graphql;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$HubSavedRow1=function(s){s.preventDefault();this.props.onClick()}.bind(this),o}m.prototype.render=function(){var n,o,p,q,r,s=this.props,t=s.item,u=s.selected,v=t.save_seen_state==="NOT_SEEN",w=(n=t)!=null?(n=n.title)!=null?n.text:n:n,x=(o=t)!=null?(o=o.attribution_text)!=null?o.text:o:o,y=(p=t)!=null?(p=p.source_title_text)!=null?p.text:p:p,z=(q=t)!=null?(q=q.image)!=null?q.uri:q:q,A=((r=t)!=null?(r=r.source_container)!=null?(r=r.story)!=null?r.url:r:r:r)||"#";return c("React").createElement("a",{href:A,onClick:this.$HubSavedRow1,className:"_2z2r"+(v?" _2z2u":"")+(u?" _2z2v":"")},c("React").createElement("div",{className:"_2z2w"},z&&c("React").createElement(c("Image.react"),{width:32,height:32,src:z})),c("React").createElement("div",{className:"_2z2x"},c("React").createElement(c("XUIText.react"),{weight:"bold"},w)," ",y&&c("React").createElement("span",null,"\u2013 ",c("React").createElement(c("XUIText.react"),{weight:"bold"},y)),c("React").createElement(c("XUIGrayText.react"),{display:"block"},x)))};f.exports=k(m,{item:function n(){return c("HubSavedRow_item.graphql")}})}),null);
__d("HubSavedItems.react",["cx","HubLoadingResizableScrollableArea.react","HubSavedRow.react","NotificationHubLoader","React","XUISpinner.react","Arbiter","SubscriptionsHandler","WorkplaceHubEvents","RelayModern","idx","HubSavedItems_viewer.graphql","HubSavedItemsQuery.graphql"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("RelayModern").createPaginationContainer,l=c("RelayModern").graphql;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.state={selectedIndex:null},this.$HubSavedItems6=function(){return this.props.relay.hasMore()}.bind(this),this.$HubSavedItems7=function(){return this.props.relay.isLoading()}.bind(this),this.$HubSavedItems5=function(){this.props.relay.loadMore(10,function(){})}.bind(this),this.$HubSavedItems3=this.$HubSavedItems9(function(s){return s-1}),this.$HubSavedItems2=this.$HubSavedItems9(function(s){return s+1}),o}m.prototype.componentDidMount=function(){this.$HubSavedItems1=new(c("SubscriptionsHandler"))();this.$HubSavedItems1.addSubscriptions(c("Arbiter").subscribe(c("WorkplaceHubEvents").NEXT_NOTIFICATION,this.$HubSavedItems2),c("Arbiter").subscribe(c("WorkplaceHubEvents").PREV_NOTIFICATION,this.$HubSavedItems3))};m.prototype.componentWillUnmount=function(){this.$HubSavedItems1&&this.$HubSavedItems1.release()};m.prototype.componentDidUpdate=function(n,o){var p=this.state.selectedIndex;if(p!=null&&p!==o.selectedIndex){var q,r,s=(q=this.$HubSavedItems4())!=null?(q=q[p])!=null?q.node:q:q,t=(r=s)!=null?(r=r.source_container)!=null?r.story:r:r;if(t&&t.id&&t.url)c("NotificationHubLoader").loadSavedStory(t.id,t.url);else if(s&&s.url)c("NotificationHubLoader").loadContainerlessSavedStory(s.url)}};m.prototype.$HubSavedItems4=function(){var n;return((n=this.props.viewer)!=null?(n=n.saved_items)!=null?n.edges:n:n)||[]};m.prototype.render=function(){return c("React").createElement(c("HubLoadingResizableScrollableArea.react"),{heightViewportGap:this.props.heightViewportGap,onLoadMore:this.$HubSavedItems5,hasMore:this.$HubSavedItems6,isLoading:this.$HubSavedItems7,loadThreshold:200},this.$HubSavedItems4().map(function(n,o){return n.node?c("React").createElement(c("HubSavedRow.react"),{key:n.node.id,item:n.node,onClick:function(){return this.$HubSavedItems8(o)}.bind(this),selected:this.state.selectedIndex===o}):null}.bind(this)),this.$HubSavedItems6()&&c("React").createElement("div",{className:"_2z2y"},c("React").createElement(c("XUISpinner.react"),{size:"large"})))};m.prototype.$HubSavedItems8=function(n){this.setState({selectedIndex:n})};m.prototype.$HubSavedItems9=function(n){__p&&__p();return function(){var o=this.$HubSavedItems4();if(!o.length)return;if(this.state.selectedIndex==null)this.setState({selectedIndex:0});else{var p=n(this.state.selectedIndex);if(o[p])this.setState({selectedIndex:p})}}.bind(this)};f.exports=k(m,{viewer:function n(){return c("HubSavedItems_viewer.graphql")}},{direction:"forward",getVariables:function n(o,p){var q=p.count,r=p.cursor;return{count:q,cursor:r}},query:function n(){return c("HubSavedItemsQuery.graphql")}})}),null);
__d("HubSavedItemsContainer.react",["cx","HubSavedItems.react","LoadingIndicator.react","React","RelayFBEnvironment","RelayModern","nullthrows","HubSavedItemsContainerQuery.graphql"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("RelayModern").graphql,l=c("RelayModern").QueryRenderer,m=function m(){return c("HubSavedItemsContainerQuery.graphql")};i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=j.constructor).call.apply(o,[this].concat(r)),this.$HubSavedItemsContainer1=function(t){var u=t.props;if(!u)return c("React").createElement(c("LoadingIndicator.react"),{color:"white",size:"large",className:"_1nxs"});return c("React").createElement(c("HubSavedItems.react"),babelHelpers["extends"]({},this.props,{viewer:c("nullthrows")(u.viewer)}))}.bind(this),p}n.prototype.render=function(){return c("React").createElement(l,{environment:c("RelayFBEnvironment"),query:m,variables:{count:20},render:this.$HubSavedItemsContainer1})};f.exports=n}),null);
__d("XWorkHubNotesStoryController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/hub/notes/stories/",{start_index:{type:"Int"},max_count:{type:"Int"}})}),null);
__d("NotesStoryList.react",["cx","AsyncRequest","NotificationHubLoader","React","StoryList.react","XWorkHubNotesStoryController","XWorkHubStoryController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.state={selectedStoryID:null},this.$NotesStoryList1=function(q){var r=c("XWorkHubStoryController").getURIBuilder().setInt("id",q).setString("ref","HubNotesTab").getURI();this.setState({selectedStoryID:q});c("NotificationHubLoader").showSpinner();new(c("AsyncRequest"))(r).send()}.bind(this),m}k.prototype.componentDidUpdate=function(){if(!this.state.selectedStoryID)c("NotificationHubLoader").showEmptyPlaceHolder()};k.prototype.render=function(){var l=c("XWorkHubNotesStoryController").getURIBuilder().getURI();return c("React").createElement("div",{className:"_37nl _3aai"},c("React").createElement(c("StoryList.react"),{loadURI:l,heightViewportGap:this.props.heightViewportGap,onStoryClick:this.$NotesStoryList1}))};f.exports=k}),null);
__d("NotificationHubStoryViewer.react",["NotificationHubLoader","React","ResizingScrollableArea.react"],(function a(b,c,d,e,f,g){"use strict";var h=162,i=50;function j(k){return c("React").createElement(c("ResizingScrollableArea.react"),{heightViewportGap:h+(k.redesign?i:0)},c("React").createElement("div",{id:"workHubNotifStories",ref:function l(m){c("NotificationHubLoader").setStoryElement(m)}}))}f.exports=j}),null);
__d("NotificationHubTransitionHandler",["Arbiter","HubNavActions","HubNavStore","PageTransitions","WorkHubTab","WorkHubTabSpecs","WorkplaceHubEvents","XGroupsController","XWorkHubController","gkx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(k){return c("WorkHubTabSpecs").find(function(l){return l.logName===k})},i="WannaBeStartinSumthin";function j(){__p&&__p();this.$NotificationHubTransitionHandler1=function(k){__p&&__p();var l=c("XWorkHubController").getURIBuilder().getURI();if(k.getPath().contains(l.getPath())){var m=k.getPath().replace(l.getPath(),""),n=m.split("/"),o=n[0],p=n[1],q=h(o);c("HubNavActions").tabChanged(q?q.title:c("WorkHubTab").ALL,false);if(p)c("Arbiter").inform(c("WorkplaceHubEvents").SELECT_NOTIFICATION,{alertID:p});else c("Arbiter").inform(c("WorkplaceHubEvents").LATEST_NOTIFICATION);c("PageTransitions").transitionComplete();return true}var r=this.$NotificationHubTransitionHandler3(k);if(r){var s=c("XWorkHubController").getURIBuilder().setString("tab","group").setString("alert_id",r).getURI();c("PageTransitions").go(s,true);c("HubNavActions").tabChanged(c("WorkHubTab").GROUP_FEED,false);this.$NotificationHubTransitionHandler5(s);c("PageTransitions").transitionComplete();return true}var t=k.getPath()==="/";if(c("HubNavStore").getOpenNewWindow()&&!t){var u=c("PageTransitions").getMostRecentURI();window.open(k);this.$NotificationHubTransitionHandler5(u);c("PageTransitions").transitionComplete();return true}return false}.bind(this)}j.prototype.register=function(k){c("PageTransitions").registerHandler(this.$NotificationHubTransitionHandler1);this.$NotificationHubTransitionHandler2(k)};j.prototype.remove=function(){c("PageTransitions").removeHandler(this.$NotificationHubTransitionHandler1)};j.prototype.$NotificationHubTransitionHandler2=function(k){__p&&__p();if(k){var l=h(k);if(l)c("HubNavActions").tabChanged(l.title,false)}else{var m=c("HubNavStore").getStoredTabName();if(m){var n=c("XWorkHubController").getURIBuilder().setString("tab",m).getURI();window.history.replaceState(n.getQualifiedURIBase().toString(),null,n.toString())}}};j.prototype.$NotificationHubTransitionHandler3=function(k){if(!c("gkx")("AT6mINUuhcB1gVX96X7auO8BcHol1VneHiduPuMn3LLx7uaXxM4lYc2R122ZNvPImoQcyMHRY62LCREHKg17N2_P")||k.getQueryData().ref==="hub_group_feed")return null;var l=this.$NotificationHubTransitionHandler4(),m=k.getPath();if(!m.includes(l))return null;var n=m.substring(l.length),o=n.split("/");return o.length>0?o[0]:null};j.prototype.$NotificationHubTransitionHandler4=function(){var k=c("XGroupsController").getURIBuilder().setString("idorvanity",i).getURI().getPath(),l=k.indexOf(i);return k.substring(0,l)};j.prototype.$NotificationHubTransitionHandler5=function(k){setTimeout(function(){return window.history.replaceState(k.getQualifiedURIBase().toString(),null,k.toString())},0)};f.exports=new j()}),null);
__d("WorkplaceHubHelpDialog",["cx","fbt","CurrentUser","WorkGKs","React","SimpleXUIDialog"],(function a(b,c,d,e,f,g,h,i){"use strict";var j=false;function k(){if(j)return;j=true;c("SimpleXUIDialog").show(c("React").createElement("div",null,c("React").createElement("ul",null,c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},c("WorkGKs").work_hub_disable_up_down_shortcuts?"j":"j / down")," ",",",c("React").createElement("span",{className:"_5hbk"},c("WorkGKs").work_hub_disable_up_down_shortcuts?"k":"k / up"),"\xa0-\xa0",i._("Move between notifications")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},c("WorkGKs").work_hub_disable_up_down_shortcuts?"  Shift + j":"  Shift + j / down"),",\xa0",c("React").createElement("span",{className:"_5hbk"},c("WorkGKs").work_hub_disable_up_down_shortcuts?"  Shift + k":"  Shift + k / up"),"\xa0-\xa0",i._("Move between stories")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"r"),"\xa0-\xa0",i._("Mark as read")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"u"),"\xa0-\xa0",i._("Mark as unread")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"l"),"\xa0-\xa0",i._("Like or unlike the selected story")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"c"),"\xa0-\xa0",i._("Comment on the selected story")),c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"o"),"\xa0-\xa0",i._("Open story in new tab"))),c("React").createElement("hr",null),c("React").createElement("ul",null,c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"Alt + j"),",\xa0",c("React").createElement("span",{className:"_5hbk"},"Alt + k"),"\xa0-\xa0",i._("Move between tabs")),c("CurrentUser").isWorkUser()&&c("React").createElement("li",null,c("React").createElement("span",{className:"_5hbk"},"Shift + c"),"\xa0-\xa0",i._("Start a group post")))),c("React").createElement("span",null,"Keyboard Shortcuts Help"),function(){j=false})}f.exports={show:k}}),null);
__d("WorkplaceHubKeyboardShortcuts",["csx","Arbiter","DOMQuery","FbFeedKeyboardController","KeyboardShortcuts","KeyEventController","LikeConfirmer","NavigationMessage","Run","SubscriptionsHandler","WorkplaceHubEvents","WorkplaceHubHelpDialog","WorkGKs","WorkHubTypedLogger","WorkHubLogAction","$"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("FbFeedKeyboardController"));j=i&&i.prototype;function k(){__p&&__p();j.constructor.call(this,document.body);this.$WorkplaceHubKeyboardShortcuts1=function(l){__p&&__p();if(l.shiftKey)new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_NEXT_NOTIF_ONLY).log();else{if(l.key=="ArrowDown")new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_PREV_ARROW_DOWN).log();new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_NEXT).log();var m=this.getStories();if(m.length>1){if(!this.selected)this.selected=m[0];if(m.findIndex(function(n){return n==this.selected}.bind(this))!=m.length-1){this.vert(1);return}}}c("Arbiter").inform(c("WorkplaceHubEvents").NEXT_NOTIFICATION)}.bind(this);this.$WorkplaceHubKeyboardShortcuts2=function(l){__p&&__p();if(l.shiftKey)new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_PREV_NOTIF_ONLY).log();else{if(l.key=="ArrowUp")new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_PREV_ARROW_UP).log();new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_PREV).log();var m=this.getStories();if(m.length>1)if(m.findIndex(function(n){return n==this.selected}.bind(this))>0){this.vert(-1);return}}c("Arbiter").inform(c("WorkplaceHubEvents").PREV_NOTIFICATION)}.bind(this);this.$WorkplaceHubKeyboardShortcuts3=function(){this.subscriptions&&this.subscriptions.release()}.bind(this);this.subscriptions=new(c("SubscriptionsHandler"))();if(!c("WorkGKs").work_hub_disable_up_down_shortcuts)this.subscriptions.addSubscriptions(c("KeyboardShortcuts").register("DOWN",this.$WorkplaceHubKeyboardShortcuts1),c("KeyboardShortcuts").register("UP",this.$WorkplaceHubKeyboardShortcuts2));this.subscriptions.addSubscriptions(c("Arbiter").subscribe(c("NavigationMessage").NAVIGATION_BEGIN,this.$WorkplaceHubKeyboardShortcuts3),c("Run").onLeave(this.$WorkplaceHubKeyboardShortcuts3),c("KeyboardShortcuts").register("SLASH",function(){return c("WorkplaceHubHelpDialog").show()},{filter:function l(event,m){return event.getModifiers().shift}}),c("KeyboardShortcuts").register("j",this.$WorkplaceHubKeyboardShortcuts1),c("KeyboardShortcuts").register("k",this.$WorkplaceHubKeyboardShortcuts2),c("KeyboardShortcuts").register("j",this.$WorkplaceHubKeyboardShortcuts4,{baseFilters:[],filter:this.$WorkplaceHubKeyboardShortcuts5}),c("KeyboardShortcuts").register("k",this.$WorkplaceHubKeyboardShortcuts6,{baseFilters:[],filter:this.$WorkplaceHubKeyboardShortcuts5}),c("KeyboardShortcuts").register("O",this.$WorkplaceHubKeyboardShortcuts7),c("KeyboardShortcuts").register("r",this.$WorkplaceHubKeyboardShortcuts8),c("KeyboardShortcuts").register("u",this.$WorkplaceHubKeyboardShortcuts9),c("KeyboardShortcuts").register("l",function(){this.activateStory();var l=this.getParentStory(this.selected);c("LikeConfirmer").like(function(){this.setSelected(l,false);this.clickLike()}.bind(this),this.selected);new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_LIKE).log()}.bind(this),{filter:this.hasStories.bind(this)}),c("KeyboardShortcuts").register("c",function(){this.activateStory();this.clickComment();new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_COMMENT).log()}.bind(this),{filter:function(event,l){return!event.getModifiers().shift&&this.hasStories()}.bind(this)}),c("KeyboardShortcuts").register("c",function(){this.clickElement(document.body,"._2xdt");new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_START_GROUP_POST).log()}.bind(this),{filter:function l(event,m){return event.getModifiers().shift}}))}k.prototype.init=function(){};k.prototype.$WorkplaceHubKeyboardShortcuts5=function(l,m){if(c("KeyEventController").filterEventTypes(l,m)&&c("KeyEventController").filterEventTargets(l,m)&&l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.repeat)return true;else return false};k.prototype.$WorkplaceHubKeyboardShortcuts4=function(){new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_NEXT_TAB).log();c("Arbiter").inform(c("WorkplaceHubEvents").NEXT_TAB)};k.prototype.$WorkplaceHubKeyboardShortcuts6=function(){new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_PREV_TAB).log();c("Arbiter").inform(c("WorkplaceHubEvents").PREV_TAB)};k.prototype.$WorkplaceHubKeyboardShortcuts7=function(){c("Arbiter").inform(c("WorkplaceHubEvents").OPEN_NOTIFICATION);new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_OPEN).log()};k.prototype.getStories=function(){var l=c("$")("workHubNotifStories"),m=l?c("DOMQuery").scry(l,"._5v9_"):[];return m.length>0?m:l?c("DOMQuery").scry(l,"._5jmm"):[]};k.prototype.$WorkplaceHubKeyboardShortcuts8=function(){c("Arbiter").inform(c("WorkplaceHubEvents").MARK_AS_READ);new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_MARK_AS_READ).log()};k.prototype.$WorkplaceHubKeyboardShortcuts9=function(){c("Arbiter").inform(c("WorkplaceHubEvents").MARK_AS_UNREAD);new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").KEYBOARD_SHORTCUT_MARK_AS_UNREAD).log()};k.prototype.getNextSibling=function(l){var m=this.getStories(),n=m.findIndex(function(o){return o==this.selected}.bind(this));return n!=-1&&n<m.length-1?m[n+1]:this.selected};k.prototype.getPreviousSibling=function(l){var m=this.getStories(),n=m.findIndex(function(o){return o==this.selected}.bind(this));return n!=-1&&n>0?m[n-1]:this.selected};k.prototype.activateStory=function(){var l=this.getStories();if(l.length==0)return;else if(l.length==1||l.findIndex(function(m){return m==this.selected}.bind(this))<0)this.setSelected(l[0],true)};k.prototype.hasStories=function(){var l=this.getStories();return l&&l.length>0};k.init=function(){return new k()};f.exports=k}),null);
__d("XWorkComposerAsyncController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/composer/async/",{})}),null);
__d("NotificationHubComposerButton.react",["cx","fbt","Arbiter","ReactComposerActionTypes","ReactComposerDispatcher","ReactComposerEvents","React","ReactComposerWorkFeedActionTypes","SubscriptionsHandler","WorkHubLogAction","WorkHubTypedLogger","XGroupsController","XUIButton.react","XWorkComposerAsyncController","ge","goURI"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.state={},this.$NotificationHubComposerButton1=new(c("SubscriptionsHandler"))(),n}l.prototype.componentDidMount=function(){__p&&__p();c("ReactComposerDispatcher").register(function(m){__p&&__p();if(m.type===c("ReactComposerActionTypes").INIT_CONFIG)this.$NotificationHubComposerButton1.addSubscriptions(c("Arbiter").subscribeOnce(c("ReactComposerEvents").POST_SUCCEEDED+m.composerID,function(){__p&&__p();var n=c("ge")("hubComposerLayer");if(n===null)return;n.parentNode.removeChild(n);this.$NotificationHubComposerButton1.release();this.$NotificationHubComposerButton1=new(c("SubscriptionsHandler"))();if(this.state.targetID){var o=String(c("XGroupsController").getURIBuilder().setString("idorvanity",this.state.targetID).getURI());c("goURI")(o,window,true)}}.bind(this)));else if(m.type===c("ReactComposerWorkFeedActionTypes").SET_TARGET)this.setState({targetID:m.target.getUniqueID()})}.bind(this))};l.prototype.componentWillUnmount=function(){this.$NotificationHubComposerButton1.release()};l.prototype.$NotificationHubComposerButton2=function(){new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").COMPOSE_STARTED).log()};l.prototype.render=function(){var m=c("XWorkComposerAsyncController").getURIBuilder().getURI();return c("React").createElement(c("XUIButton.react"),{href:m,ajaxify:m,className:"_2xdt",label:i._("Start a Group Post"),onClick:function(){return this.$NotificationHubComposerButton2()}.bind(this),rel:"async",use:"confirm"})};f.exports=l}),null);
__d("WorkplaceHubNav.react",["cx","fbt","Arbiter","CacheStorage","CurrentUser","HubNavActions","HubNavStore","InputLabel.react","Map","NotificationConstants","NotificationList.react","NotificationHubComposerButton.react","NotificationsDefaultEndpointURI","NotificationSeenState","NotificationStore","NotificationUpdates","PageTransitions","React","SubscriptionsHandler","WorkHubTab","WorkHubTabSpecs","XUIAmbientNUX.react","XUIButton.react","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","XUICardSection.react","XUICheckboxInput.react","XUISubNavigation.react","XUISubNavigationItem.react","XWorkHubController","WorkplaceHubEvents","getObjectValues","isEmpty","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("NotificationConstants").PayloadSourceType.LIVE_SEND,m="hubnavshouldshowfeednux",n=new(c("Map"))([[c("WorkHubTab").PINNED_GROUPS,"FAVORITE_GROUP"],[c("WorkHubTab").CONVERSATIONS,"CONVERSATIONS"],[c("WorkHubTab").MULTICOMPANY,"MULTI_COMPANY_GROUPS"]]);j=babelHelpers.inherits(o,c("React").Component);k=j&&j.prototype;function o(){__p&&__p();k.constructor.call(this);this.$WorkplaceHubNav5=function(event){c("HubNavActions").hideReactionsChanged(!c("HubNavStore").getHideReactions());this.$WorkplaceHubNav3()}.bind(this);this.$WorkplaceHubNav2=new(c("CacheStorage"))("localstorage");this.$WorkplaceHubNav1=new(c("SubscriptionsHandler"))();this.$WorkplaceHubNav1.addSubscriptions(c("HubNavStore").addListener(function(q){this.forceUpdate()}.bind(this)));this.$WorkplaceHubNav1.addSubscriptions(c("NotificationUpdates").subscribe("notifications-updated",function(q,r){if(r.source===l&&!c("isEmpty")(r.updates))this.$WorkplaceHubNav3()}.bind(this)),c("NotificationUpdates").subscribe("read-state-updated",function(q,r){this.$WorkplaceHubNav3()}.bind(this)));this.state={feedNuxShown:true,unreadCounts:new(c("Map"))()}}o.prototype.componentWillReceiveProps=function(q){this.setState({feedNuxShown:q.showFeedButton})};o.prototype.componentDidMount=function(){this.$WorkplaceHubNav1.addSubscriptions(c("Arbiter").subscribe(c("WorkplaceHubEvents").NEXT_TAB,function(){c("HubNavActions").nextTab(this.props.showPinnedGroups,this.props.showMultiCompanyGroups)}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").PREV_TAB,function(){c("HubNavActions").prevTab(this.props.showPinnedGroups,this.props.showMultiCompanyGroups)}.bind(this)));this.$WorkplaceHubNav3()};o.prototype.componentWillUnmount=function(){this.$WorkplaceHubNav1.release()};o.prototype.render=function(){__p&&__p();var q=c("WorkHubTabSpecs").filter(function(t){if(t.gk===false)return false;if(t.title===c("WorkHubTab").MULTICOMPANY)return this.props.showMultiCompanyGroups;if(t.title===c("WorkHubTab").PINNED_GROUPS)return this.props.showPinnedGroups;return true}.bind(this)).map(function(t){var u=c("HubNavStore").getSelectedTab()===t.title,v=t.title,w=[c("WorkHubTab").ALL,c("WorkHubTab").UNREAD,c("WorkHubTab").CONVERSATIONS,c("WorkHubTab").PINNED_GROUPS,c("WorkHubTab").MULTICOMPANY];if(w.includes(t.title)&&this.state.unreadCounts.has(t.title)&&c("nullthrows")(this.state.unreadCounts.get(t.title))>0)v+=" ("+c("nullthrows")(this.state.unreadCounts.get(t.title)).toString()+")";return c("React").createElement(c("XUISubNavigationItem.react"),{key:t.logName,selected:u,href:c("XWorkHubController").getURIBuilder().setString("tab",t.logName).getURI()},c("React").createElement("div",null,v))}.bind(this)),r=null;if(this.props.showFeedButton){var s=this.state.feedNuxShown&&this.$WorkplaceHubNav4()==="special";if(s)setTimeout(function(){return this.setState({feedNuxShown:false})}.bind(this),1e4);r=c("React").createElement("div",null,c("React").createElement(c("XUIButton.react"),{className:"_1c3a",href:"/?sk=nf",label:i._("Go to News Feed"),ref:"feedButton",use:this.$WorkplaceHubNav4()}),c("React").createElement(c("XUIAmbientNUX.react"),{contextRef:function(){return this.refs.feedButton}.bind(this),position:"above",shown:s,onCloseButtonClick:function(){this.setState({feedNuxShown:false});this.$WorkplaceHubNav2.set(m,false)}.bind(this),key:"ambientNUX"},"Click here to go to News Feed"))}return c("React").createElement("div",null,c("React").createElement("div",{className:"_4sst"},c("React").createElement(c("XUISubNavigation.react"),null,q)),c("CurrentUser").isWorkUser()?c("React").createElement(c("NotificationHubComposerButton.react"),null):null,r,c("React").createElement(c("XUICard.react"),{className:"_3jj-",background:"light-wash"},c("React").createElement(c("XUICardHeader.react"),{type:"secondary"},c("React").createElement(c("XUICardHeaderTitle.react"),null,i._("Settings"))),c("React").createElement(c("XUICardSection.react"),{className:"_3jj_"},c("React").createElement(c("InputLabel.react"),{label:i._("Hide reactions")},c("React").createElement(c("XUICheckboxInput.react"),{checked:c("HubNavStore").getHideReactions(),onClick:this.$WorkplaceHubNav5})),c("React").createElement(c("InputLabel.react"),{label:i._("Open links in new window")},c("React").createElement(c("XUICheckboxInput.react"),{checked:c("HubNavStore").getOpenNewWindow(),onClick:p})))))};o.prototype.$WorkplaceHubNav3=function(){__p&&__p();var q,r=this,s=new(c("Map"))(this.state.unreadCounts);if(c("HubNavStore").getHideReactions())(function(){var u=c("NotificationStore").getAll({endpointURI:c("NotificationsDefaultEndpointURI"),readness:"UNREAD"}),v=c("NotificationSeenState").getUnreadIDs(),w=0;c("getObjectValues")(u).forEach(function(x){if(v.includes(x.alert_id)&&!c("NotificationList.react").isReaction(x.notif_type))w++});s.set(c("WorkHubTab").ALL,w);s.set(c("WorkHubTab").UNREAD,w);r.setState({unreadCounts:s})})();else{var t=c("NotificationSeenState").getUnreadCount();s.set(c("WorkHubTab").ALL,t);s.set(c("WorkHubTab").UNREAD,t);this.setState({unreadCounts:s})}n.forEach(function(u,v){var w=c("NotificationStore").getAll({classification:u,endpointURI:c("NotificationsDefaultEndpointURI")}),x=c("NotificationSeenState").getUnreadIDs(),y=c("HubNavStore").getHideReactions(),z=0;c("getObjectValues")(w).forEach(function(A){if((!A.classifications||A.classifications.includes(u))&&x.includes(A.alert_id)&&(!y||!c("NotificationList.react").isReaction(A.notif_type)))z++});this.setState(function(A){var s=new(c("Map"))(A.unreadCounts);s.set(v,z);return{unreadCounts:s}})}.bind(this))};o.prototype.$WorkplaceHubNav4=function(){var q=c("PageTransitions").getMostRecentURI();if(q&&q.getPath()==="/"&&q.getQueryData().ref&&this.$WorkplaceHubNav2.get(m,true))return"special";return"default"};function p(event){c("HubNavActions").openNewWindowChanged(!c("HubNavStore").getOpenNewWindow())}f.exports=o}),null);
__d("XWorkHubSpeedFeedStoryController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/hub/speedfeed/stories/",{start_index:{type:"Int"},max_count:{type:"Int"},cursor:{type:"String"}})}),null);
__d("SpeedFeedStoryList.react",["cx","AsyncRequest","NotificationHubLoader","React","StoryList.react","XWorkHubSpeedFeedStoryController","XWorkHubStoryController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.state={selectedStoryID:null},this.$SpeedFeedStoryList1=function(q){var r=c("XWorkHubStoryController").getURIBuilder().setString("story_token",q).setString("ref","HubSpeedFeedTab").getURI();this.setState({selectedStoryID:q});c("NotificationHubLoader").showSpinner();new(c("AsyncRequest"))(r).send()}.bind(this),m}k.prototype.componentDidUpdate=function(){if(!this.state.selectedStoryID)c("NotificationHubLoader").showEmptyPlaceHolder()};k.prototype.render=function(){var l=c("XWorkHubSpeedFeedStoryController").getURIBuilder().getURI();return c("React").createElement("div",{className:"_37nl _63yh"},c("React").createElement(c("StoryList.react"),{loadURI:l,heightViewportGap:this.props.heightViewportGap,onStoryClick:this.$SpeedFeedStoryList1}))};f.exports=k}),null);
__d("StaticStoryList.react",["React","StoryList.react","goURI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").PureComponent);i=h&&h.prototype;j.prototype.render=function(){var k=c("StoryList.react").renderStories(this.props.stories,function(l){if(this.props.onStoryClick)this.props.onStoryClick(l);else c("goURI")("/"+l)}.bind(this));return c("React").createElement("ul",null,k)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("TrendingStoryList.react",["cx","AsyncRequest","FacebuzzConstants","FacebuzzStoryStore","FacebuzzViewActions","LoadingIndicator.react","NotificationHubLoader","React","StaticStoryList.react","SubscriptionsHandler","XWorkHubStoryController"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=5*60*1e3,l=20;i=babelHelpers.inherits(m,c("React").PureComponent);j=i&&i.prototype;function m(n){__p&&__p();j.constructor.call(this,n);this.$TrendingStoryList3=function(){requestAnimationFrame(function(){c("FacebuzzViewActions").fetchMoreStories({offset:0,limit:l,sort:c("FacebuzzConstants").SortType.HOTTEST,category:c("FacebuzzConstants").ALL_CATEGORY,hideRead:true,reload:true});this.$TrendingStoryList1=setTimeout(this.$TrendingStoryList3,k)}.bind(this))}.bind(this);this.$TrendingStoryList4=function(o){var p=c("XWorkHubStoryController").getURIBuilder().setInt("id",o).setString("ref","HubTrendingTab").getURI();this.setState({selectedStoryID:o});c("NotificationHubLoader").showSpinner();new(c("AsyncRequest"))(p).send()}.bind(this);this.state={selectedStoryID:null};this.$TrendingStoryList2=new(c("SubscriptionsHandler"))()}m.prototype.componentDidMount=function(){this.$TrendingStoryList2.addSubscriptions(c("FacebuzzStoryStore").addListener("change",function(n){if(c("FacebuzzStoryStore").getStories().count()==0)this.setState({selectedStoryID:null});else this.forceUpdate()}.bind(this)));this.$TrendingStoryList3()};m.prototype.componentDidUpdate=function(){if(!this.state.selectedStoryID)c("NotificationHubLoader").showEmptyPlaceHolder()};m.prototype.componentWillUnmount=function(){clearTimeout(this.$TrendingStoryList1);this.$TrendingStoryList2.release()};m.facebuzzStoryDataToStoryListData=function(n){return{id:n.id,title:n.title,author:{id:n.authorID,name:n.authorName,imageURI:n.image},reactions:{count:n.reactions,reactionMap:n.reactionsmap},time:n.date}};m.prototype.render=function(){var n=c("FacebuzzStoryStore").getStories();if(n.count()==0)return c("React").createElement("div",{className:"_n7g"},c("React").createElement(c("LoadingIndicator.react"),{color:"white",size:"large",className:"_2qfi"}));var o=[];n.forEach(function(p){o.push(m.facebuzzStoryDataToStoryListData(p))});return c("React").createElement(c("StaticStoryList.react"),{stories:o,onStoryClick:this.$TrendingStoryList4})};f.exports=m}),null);
__d("WorkplaceHubNotificationCard.react",["fbt","invariant","CurrentUser","FavIcon","GroupFeedStoryList.react","HubNavStore","HubSavedItemsContainer.react","Link.react","NotesStoryList.react","NotificationConstants","NotificationList.react","NotificationsDefaultEndpointURI","NotificationSeenState","NotificationsSourceView","NotificationStore","NotificationUpdates","NotificationUserActions","PageTransitions","React","ResizingScrollableArea.react","Run","SignalsPageVisibilityUtil","SpeedFeedStoryList.react","SubscriptionsHandler","TrendingStoryList.react","WorkHubTab","WorkHubTabSpecs","XUICard.react","XUICardHeader.react","XUICardHeaderTitle.react","XUICardSection.react","XWorkHubController","getObjectValues","gkx","isEmpty","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=3e4,m=208,n=m-43,o=50,p=c("NotificationConstants").PayloadSourceType.LIVE_SEND;j=babelHelpers.inherits(q,c("React").Component);k=j&&j.prototype;function q(r){__p&&__p();k.constructor.call(this,r);this.state={shouldPauseUnread:true,shouldScroll:false};this.$WorkplaceHubNotificationCard4=function(){__p&&__p();if(this.$WorkplaceHubNotificationCard5())this.$WorkplaceHubNotificationCard6();else if(this.$WorkplaceHubNotificationCard2){clearTimeout(this.$WorkplaceHubNotificationCard2);this.$WorkplaceHubNotificationCard2=null}var t=c("HubNavStore").getState(),u=c("nullthrows")(c("WorkHubTabSpecs").find(function(w){return w.title===t.selectedTab})),v=c("XWorkHubController").getURIBuilder().setString("tab",u.logName).getURI();if(t.addedToHistory)window.history.pushState(v.getQualifiedURIBase().toString(),null,v);this.forceUpdate()}.bind(this);this.$WorkplaceHubNotificationCard13=function(){__p&&__p();var t,u=this,v=this.$WorkplaceHubNotificationCard10();if(v.classification||this.props.hideReactions)(function(){var w=c("NotificationSeenState").getUnreadIDs(),x=[],y=c("NotificationStore").getAll({classification:v.classification,endpointURI:c("NotificationsDefaultEndpointURI")});c("getObjectValues")(y).forEach(function(z){var A=!v.classification||z.classifications&&z.classifications.includes(v.classification),B=!this.props.hideReactions||!c("NotificationList.react").isReaction(z.notif_type);if(A&&B&&w.includes(z.alert_id))x.push(z.alert_id)}.bind(u));if(x.length>0)c("NotificationUserActions").markNotificationsAsRead(x,c("NotificationsSourceView").HUB)})();else c("NotificationUserActions").markAllNotificationsAsRead()}.bind(this);this.$WorkplaceHubNotificationCard6=function(){if(this.$WorkplaceHubNotificationCard2){clearTimeout(this.$WorkplaceHubNotificationCard2);this.$WorkplaceHubNotificationCard2=null}this.setState({shouldPauseUnread:false});setTimeout(this.setState.bind(this,{shouldPauseUnread:true}),0)}.bind(this);this.$WorkplaceHubNotificationCard12=function(){this.setState({shouldScroll:!this.state.shouldScroll})}.bind(this);this.$WorkplaceHubNotificationCard1=new(c("SubscriptionsHandler"))();this.$WorkplaceHubNotificationCard2=null;var s=c("CurrentUser").isWorkUser()?"/images/work/favicon-workplace-notice.png":"/images/icons/unread_favicon.ico";c("FavIcon").setToggleResources(s);c("Run").onLeave(this.$WorkplaceHubNotificationCard3.bind(this));this.$WorkplaceHubNotificationCard1.addSubscriptions(c("HubNavStore").addListener(this.$WorkplaceHubNotificationCard4))}q.prototype.$WorkplaceHubNotificationCard3=function(){c("FavIcon").toggleSet(false);this.$WorkplaceHubNotificationCard1.release();if(this.$WorkplaceHubNotificationCard2){clearTimeout(this.$WorkplaceHubNotificationCard2);this.$WorkplaceHubNotificationCard2=null}};q.prototype.componentDidMount=function(){__p&&__p();this.$WorkplaceHubNotificationCard1.addSubscriptions(c("NotificationUpdates").subscribe("notifications-updated",function(r,s){if(s.source==p&&!c("isEmpty")(s.updates)){if(this.$WorkplaceHubNotificationCard5())this.$WorkplaceHubNotificationCard6();this.$WorkplaceHubNotificationCard7()}}.bind(this)),c("NotificationUpdates").subscribe("read-state-updated",function(r,s){if(this.$WorkplaceHubNotificationCard5())this.$WorkplaceHubNotificationCard8();this.$WorkplaceHubNotificationCard7()}.bind(this)));if(c("gkx")("AT4MfU4h6lDHacPOigFJsIj58F38UFDB6p5lR8SSz3bL7M3ZXVNR6zZFdF25DYNrUMlON_xhIDyWDt_8ec2me7WtiJ6dZrJYswv_cFWpPlOpcg"))c("SignalsPageVisibilityUtil").registerHandler(this.$WorkplaceHubNotificationCard9)};q.prototype.componentWillUnmount=function(){this.$WorkplaceHubNotificationCard3()};q.prototype.render=function(){__p&&__p();var r=this.$WorkplaceHubNotificationCard10(),s=r.title===c("WorkHubTab").UNREAD&&this.state.shouldPauseUnread,t=(r.title===c("WorkHubTab").SAVED?n:m)+(this.props.redesign?o:0),u=null;switch(r.title){case c("WorkHubTab").SAVED:u=c("React").createElement(c("HubSavedItemsContainer.react"),{heightViewportGap:t});break;case c("WorkHubTab").TRENDING:u=c("React").createElement(c("TrendingStoryList.react"),null);break;case c("WorkHubTab").SPEEDFEED:u=c("React").createElement(c("SpeedFeedStoryList.react"),{heightViewportGap:t});break;case c("WorkHubTab").NOTES:u=c("React").createElement(c("NotesStoryList.react"),{heightViewportGap:t});break;case c("WorkHubTab").GROUP_FEED:u=c("React").createElement(c("GroupFeedStoryList.react"),{groupID:this.$WorkplaceHubNotificationCard11(),heightViewportGap:t});break;default:u=c("React").createElement(c("NotificationList.react"),{key:r.title,classification:r.classification,enableHubView:this.props.notifConfig.enableHubView,enableMarkUnread:this.props.notifConfig.enableMarkUnread,hideReactions:this.props.hideReactions,listRenderer:this.props.notifConfig.listRenderer,numPerPage:this.props.notifConfig.numPerPage,paused:s,readness:r.readness,shouldScroll:this.state.shouldScroll,tracking:this.props.notifConfig.tracking})}var v=c("React").createElement(c("ResizingScrollableArea.react"),{heightViewportGap:t,onScroll:this.$WorkplaceHubNotificationCard12},u);if(r.title===c("WorkHubTab").GROUP_FEED)return v;var w=c("React").createElement(c("Link.react"),{href:"#",onClick:this.$WorkplaceHubNotificationCard13},h._("Mark All as Read")),x=r.title===c("WorkHubTab").NOTES||r.title===c("WorkHubTab").SAVED||r.title===c("WorkHubTab").SPEEDFEED||r.title===c("WorkHubTab").TRENDING?null:c("React").createElement(c("XUICardHeader.react"),{link:w,type:"primary"},c("React").createElement(c("XUICardHeaderTitle.react"),null,h._("Notifications")));return c("React").createElement(c("XUICard.react"),null,x,c("React").createElement(c("XUICardSection.react"),null,v))};q.prototype.$WorkplaceHubNotificationCard10=function(){return c("nullthrows")(c("WorkHubTabSpecs").find(function(r){return r.title===c("HubNavStore").getSelectedTab()})||c("WorkHubTabSpecs")[0])};q.prototype.$WorkplaceHubNotificationCard5=function(){return c("HubNavStore").getSelectedTab()===c("WorkHubTab").UNREAD};q.prototype.$WorkplaceHubNotificationCard11=function(){var r=c("XWorkHubController").getURIBuilder().getURI(),s=c("PageTransitions").getCurrentURI();if(!s.getPath().includes(r.getPath()))return null;var t=s.getPath().replace(r.getPath(),""),u=t.split("/");return u.length>=1?u[1]:null};q.prototype.$WorkplaceHubNotificationCard8=function(){if(this.$WorkplaceHubNotificationCard2)clearTimeout(this.$WorkplaceHubNotificationCard2);this.$WorkplaceHubNotificationCard2=setTimeout(this.$WorkplaceHubNotificationCard6,l)};q.prototype.$WorkplaceHubNotificationCard9=function(r){if(r==="visible")c("FavIcon").toggleSet(false)};q.prototype.$WorkplaceHubNotificationCard7=function(){var r,s=c("NotificationSeenState").getUnreadCount();if(this.props.hideReactions)(function(){var t=c("NotificationSeenState").getUnreadIDs(),u=c("NotificationStore").getAll({endpointURI:c("NotificationsDefaultEndpointURI")});s=0;c("getObjectValues")(u).forEach(function(v){if(!c("NotificationList.react").isReaction(v.notif_type)&&t.includes(v.alert_id))s++})})();c("FavIcon").toggleSet(s>0&&(!c("gkx")("AT4MfU4h6lDHacPOigFJsIj58F38UFDB6p5lR8SSz3bL7M3ZXVNR6zZFdF25DYNrUMlON_xhIDyWDt_8ec2me7WtiJ6dZrJYswv_cFWpPlOpcg")||document.hidden))};f.exports=q}),null);
__d("NotificationHubTopBarComposerButton.react",["ix","fbt","Arbiter","ReactComposerActionTypes","ReactComposerDispatcher","ReactComposerEvents","Image.react","React","SubscriptionsHandler","WorkHubLogAction","WorkHubTypedLogger","XUIButton.react","XWorkComposerAsyncController","fbglyph","ge"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k;j=babelHelpers.inherits(l,c("React").PureComponent);k=j&&j.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=k.constructor).call.apply(m,[this].concat(p)),this.$NotificationHubTopBarComposerButton1=new(c("SubscriptionsHandler"))(),n}l.prototype.componentDidMount=function(){c("ReactComposerDispatcher").register(function(m){if(m.type===c("ReactComposerActionTypes").INIT_CONFIG)this.$NotificationHubTopBarComposerButton1.addSubscriptions(c("Arbiter").subscribeOnce(c("ReactComposerEvents").POST_SUCCEEDED+m.composerID,function(){var n=c("ge")("hubComposerLayer");if(n===null)return;n.parentNode.removeChild(n);this.$NotificationHubTopBarComposerButton1.release();this.$NotificationHubTopBarComposerButton1=new(c("SubscriptionsHandler"))()}.bind(this)))}.bind(this))};l.prototype.componentWillUnmount=function(){this.$NotificationHubTopBarComposerButton1.release()};l.prototype.$NotificationHubTopBarComposerButton2=function(){new(c("WorkHubTypedLogger"))().setAction(c("WorkHubLogAction").COMPOSE_STARTED).log()};l.prototype.render=function(){var m=c("XWorkComposerAsyncController").getURIBuilder().getURI();return c("React").createElement(c("XUIButton.react"),babelHelpers["extends"]({href:m,ajaxify:m,image:c("React").createElement(c("Image.react"),{src:h("114680")}),label:i._("Write Post"),onClick:function(){return this.$NotificationHubTopBarComposerButton2()}.bind(this),rel:"async",size:"large",use:"special"},this.props))};f.exports=l}),null);
__d("XWorkTrendingHovercardController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/work/trending/hovercard/",{id:{type:"Int",required:true}})}),null);
__d("TrendingTicker.react",["ix","cx","fbt","AsyncRequest","FacebuzzConstants","FacebuzzStoryStore","FacebuzzViewActions","Image.react","Link.react","NotificationHubLoader","NotificationHubUnsavedChangesWarning","ProfileLink.react","React","SubscriptionsHandler","Tooltip.react","UFIReactionsBlingTokens.react","XUIGrayText.react","XUIText.react","XWorkHubStoryController","XWorkTrendingHovercardController","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=20*60*1e3,n=120*1e3,o=10;k=babelHelpers.inherits(p,c("React").PureComponent);l=k&&k.prototype;function p(r){__p&&__p();l.constructor.call(this,r);this.$TrendingTicker5=function(){requestAnimationFrame(function(){c("FacebuzzViewActions").fetchMoreStories({offset:0,limit:o,sort:c("FacebuzzConstants").SortType.HOTTEST,category:c("FacebuzzConstants").ALL_CATEGORY,hideRead:true,reload:true});this.$TrendingTicker1=setTimeout(this.$TrendingTicker5,m)}.bind(this))}.bind(this);this.$TrendingTicker4=function(){var s=c("FacebuzzStoryStore").getStories();if(s.count()<2)return;this.setState({currentStoryIndex:(this.state.currentStoryIndex+1)%s.count()})}.bind(this);this.state={currentStoryIndex:0};this.$TrendingTicker3=new(c("SubscriptionsHandler"))()}p.prototype.componentDidMount=function(){this.$TrendingTicker3.addSubscriptions(c("FacebuzzStoryStore").addListener("change",function(r){var s=c("FacebuzzStoryStore").getStories();if(this.state.currentStoryIndex>=s.count)this.setState({currentStoryIndex:0});else this.forceUpdate()}.bind(this)));this.$TrendingTicker2=setInterval(this.$TrendingTicker4,n);this.$TrendingTicker5()};p.prototype.componentWillUnmount=function(){clearTimeout(this.$TrendingTicker1);clearInterval(this.$TrendingTicker2);this.$TrendingTicker3.release()};p.prototype.$TrendingTicker6=function(r){if(!r.reactions)return null;var s=r.groupName?"Posted in "+r.groupName:null;return c("React").createElement(c("Tooltip.react"),{className:"_pwn",tooltip:s},c("React").createElement(c("UFIReactionsBlingTokens.react"),{feedback:{actorforpost:r.authorID,reactioncount:r.reactions,reactioncountmap:r.reactionsmap},className:"_2djj _4ar- _ipn _pwo",max:3}),c("React").createElement("span",{className:"_3-99"},c("React").createElement(c("XUIGrayText.react"),null,"("+r.reactions+")")))};p.prototype.render=function(){var r=c("FacebuzzStoryStore").getStories();if(r.count()==0)return null;var s=r.toArray()[this.state.currentStoryIndex];if(!s)return null;var t=c("XWorkTrendingHovercardController").getURIBuilder().setInt("id",s.id).getURI(),u=c("React").createElement(c("Tooltip.react"),{className:"_63kd",tooltip:j._("Trending stories. You can use the Settings menu to turn this off.")},c("React").createElement(c("Image.react"),{src:h("136514")}));return c("React").createElement("div",{className:this.props.className},u,this.$TrendingTicker6(s),c("React").createElement(c("ProfileLink.react"),{className:"_1wsl",uid:s.authorID},s.authorName),": ",c("React").createElement(c("Link.react"),{className:"_1wsl","data-hovercard":t,onClick:function v(){return q(s.id)}},c("React").createElement(c("XUIText.react"),{weight:"bold"},s.title)))};function q(r){c("NotificationHubUnsavedChangesWarning").check().done(function(){var s=c("XWorkHubStoryController").getURIBuilder().setInt("id",r).setString("ref","HubTrendingTicker").getURI();c("NotificationHubLoader").showSpinner();new(c("AsyncRequest"))(s).send()})}f.exports=p}),null);
__d("WorkplaceHubTopBar.react",["ix","cx","fbt","invariant","Arbiter","ContextualDialogArrow","CurrentUser","goURI","HubNavActions","HubNavStore","ImageBlock.react","Image.react","InputLabel.react","Link.react","Map","NotificationConstants","NotificationList.react","NotificationHubTopBarComposerButton.react","NotificationsDefaultEndpointURI","NotificationSeenState","NotificationStore","NotificationUpdates","PopoverMenu.react","Random","React","ReactXUIMenu","SubscriptionsHandler","TabBar.react","TabBarItem.react","TrendingTicker.react","WorkHubTab","WorkHubTabSpecs","WorkplaceHubEvents","XUICheckboxInput.react","XUIGrayText.react","XUIPopoverButton.react","XUIText.react","XWorkHubController","fbglyph","getObjectValues","isEmpty","nullthrows"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n,o,p=c("ReactXUIMenu").Item,q=c("NotificationConstants").PayloadSourceType.LIVE_SEND,r=new(c("Map"))([[c("WorkHubTab").PINNED_GROUPS,"FAVORITE_GROUP"],[c("WorkHubTab").CONVERSATIONS,"CONVERSATIONS"],[c("WorkHubTab").MULTICOMPANY,"MULTI_COMPANY_GROUPS"]]);l=babelHelpers.inherits(s,c("React").Component);m=l&&l.prototype;function s(){__p&&__p();m.constructor.call(this);this.$WorkplaceHubTopBar6=function(event){c("HubNavActions").hideReactionsChanged(!c("HubNavStore").getHideReactions());this.$WorkplaceHubTopBar2()}.bind(this);this.$WorkplaceHubTopBar1=new(c("SubscriptionsHandler"))();this.$WorkplaceHubTopBar1.addSubscriptions(c("HubNavStore").addListener(function(w){this.forceUpdate()}.bind(this)));this.$WorkplaceHubTopBar1.addSubscriptions(c("NotificationUpdates").subscribe("notifications-updated",function(w,x){if(x.source===q&&!c("isEmpty")(x.updates))this.$WorkplaceHubTopBar2()}.bind(this)),c("NotificationUpdates").subscribe("read-state-updated",function(w,x){this.$WorkplaceHubTopBar2()}.bind(this)));this.state={unreadCounts:new(c("Map"))(),subtitle:null}}s.prototype.componentDidMount=function(){this.$WorkplaceHubTopBar1.addSubscriptions(c("Arbiter").subscribe(c("WorkplaceHubEvents").NEXT_TAB,function(){c("HubNavActions").nextTab(this.props.showPinnedGroups,this.props.showMultiCompanyGroups)}.bind(this)),c("Arbiter").subscribe(c("WorkplaceHubEvents").PREV_TAB,function(){c("HubNavActions").prevTab(this.props.showPinnedGroups,this.props.showMultiCompanyGroups)}.bind(this)));this.$WorkplaceHubTopBar2()};s.prototype.componentWillUnmount=function(){this.$WorkplaceHubTopBar1.release()};s.prototype.render=function(){__p&&__p();var w=c("WorkHubTabSpecs").filter(function(C){if(C.gk===false)return false;if(C.title===c("WorkHubTab").MULTICOMPANY)return this.props.showMultiCompanyGroups;if(C.title===c("WorkHubTab").PINNED_GROUPS)return this.props.showPinnedGroups;return true}.bind(this)),x=w.map(function(C){var D=C.title,E=[c("WorkHubTab").ALL,c("WorkHubTab").UNREAD,c("WorkHubTab").CONVERSATIONS,c("WorkHubTab").PINNED_GROUPS,c("WorkHubTab").MULTICOMPANY];if(E.includes(C.title)&&this.state.unreadCounts.has(C.title)&&c("nullthrows")(this.state.unreadCounts.get(C.title))>0)return c("React").createElement(v,{key:C.logName,countToDisplay:this.state.unreadCounts.get(C.title)},D);return c("React").createElement(v,{key:C.logName},D)}.bind(this));this.$WorkplaceHubTopBar3();var y=c("HubNavStore").getSelectedTab(),z=c("WorkHubTabSpecs").find(function(C){return C.title===y}),A=this.state.subtitle!==null?c("React").createElement(c("XUIGrayText.react"),{display:"block",size:"meta1",shade:"light"},this.state.subtitle):null,B=this.props.isEmployee?"/groups/839451332859626/":"/help/work/contact/1625304927509991";return c("React").createElement("div",{className:"_gdn _2phz"+(this.$WorkplaceHubTopBar4()?" _3bya":"")},c("React").createElement(c("ImageBlock.react"),{className:"_3-8x",spacing:"small"},c("React").createElement(c("Image.react"),{className:"_gdz",src:this.props.logoSource,alt:j._("Notification icon")}),c("React").createElement("div",{className:"_gdm"+(this.$WorkplaceHubTopBar4()?" _3bya":"")},c("React").createElement(c("XUIText.react"),{className:"_3djh"+(A===null?" _2pid":""),display:"block",size:"xlarge_DEPRECATED"},j._("Notifications")),A,this.$WorkplaceHubTopBar4()?c("React").createElement(c("TrendingTicker.react"),{className:"ellipsis _2l-l"}):null),c("React").createElement("div",{className:"_gdm _3-91"+(this.$WorkplaceHubTopBar4()?" _3bya":"")},c("React").createElement(c("Link.react"),{href:B},j._("Give Feedback")))),c("React").createElement(c("TabBar.react"),{alwaysShowActive:true,activeTabKey:z?z.logName:w[0].logName,className:"_gd-",maxTabsVisible:x.length===5?5:4,moreLabel:j._("More"),onTabClick:function C(D){c("goURI")(c("XWorkHubController").getURIBuilder().setString("tab",D).getURI());return true},dropdownTabComponent:v},x),c("CurrentUser").isWorkUser()?c("React").createElement(c("NotificationHubTopBarComposerButton.react"),{className:"_ge9"+(this.$WorkplaceHubTopBar4()?" _3bya":"")}):null,this.props.isEmployee?this.$WorkplaceHubTopBar5():null)};s.prototype.$WorkplaceHubTopBar4=function(){return c("CurrentUser").isEmployee()&&!c("HubNavStore").getHideTrendingTicker()};s.prototype.$WorkplaceHubTopBar5=function(){var w=c("CurrentUser").isEmployee()?c("React").createElement(p,{key:"hide_trending",onClick:u,className:"_42c-"},c("React").createElement(c("InputLabel.react"),{label:j._("Hide Trending ticker")},c("React").createElement(c("XUICheckboxInput.react"),{checked:c("HubNavStore").getHideTrendingTicker()}))):null,x=c("React").createElement(c("ReactXUIMenu"),null,c("React").createElement(p,{key:"hide_reactions",onClick:this.$WorkplaceHubTopBar6,className:"_42c-"},c("React").createElement(c("InputLabel.react"),{label:j._("Hide reactions")},c("React").createElement(c("XUICheckboxInput.react"),{checked:c("HubNavStore").getHideReactions()}))),c("React").createElement(p,{key:"hide_reactions",onClick:t,className:"_42c-"},c("React").createElement(c("InputLabel.react"),{label:j._("Open links in new window")},c("React").createElement(c("XUICheckboxInput.react"),{checked:c("HubNavStore").getOpenNewWindow()}))),w);return c("React").createElement(c("PopoverMenu.react"),{className:"_gcm"+(this.$WorkplaceHubTopBar4()?" _3bya":""),alignv:"baseline",menu:x,layerBehaviors:[c("ContextualDialogArrow")]},c("React").createElement(c("XUIPopoverButton.react"),{size:"large",image:c("React").createElement(c("Image.react"),{src:h("129436")}),label:"Notifications Hub settings",labelIsHidden:true}))};s.prototype.$WorkplaceHubTopBar3=function(){__p&&__p();if(this.state.subtitle!==null)return;if(!this.props.isEmployee||!c("CurrentUser").isWorkUser()){this.setState({subtitle:c("React").createElement("div",null,j._("Product Beta"))});return}var w=this.props.subtitleOptions;w||k(0);var x=Math.floor(c("Random").random()*(w.length+1));this.setState({subtitle:c("React").createElement("div",null,w[x])})};s.prototype.$WorkplaceHubTopBar2=function(){__p&&__p();var w,x=this,y=new(c("Map"))(this.state.unreadCounts);if(c("HubNavStore").getHideReactions())(function(){var A=c("NotificationStore").getAll({endpointURI:c("NotificationsDefaultEndpointURI"),readness:"UNREAD"}),B=c("NotificationSeenState").getUnreadIDs(),C=0;c("getObjectValues")(A).forEach(function(D){if(B.includes(D.alert_id)&&!c("NotificationList.react").isReaction(D.notif_type))C++});y.set(c("WorkHubTab").ALL,C);y.set(c("WorkHubTab").UNREAD,C);x.setState({unreadCounts:y})})();else{var z=c("NotificationSeenState").getUnreadCount();y.set(c("WorkHubTab").ALL,z);y.set(c("WorkHubTab").UNREAD,z);this.setState({unreadCounts:y})}r.forEach(function(A,B){var C=c("NotificationStore").getAll({classification:A,endpointURI:c("NotificationsDefaultEndpointURI")}),D=c("NotificationSeenState").getUnreadIDs(),E=c("HubNavStore").getHideReactions(),F=0;c("getObjectValues")(C).forEach(function(G){if((!G.classifications||G.classifications.includes(A))&&D.includes(G.alert_id)&&(!E||!c("NotificationList.react").isReaction(G.notif_type)))F++});this.setState(function(G){var y=new(c("Map"))(G.unreadCounts);y.set(B,F);return{unreadCounts:y}})}.bind(this))};function t(event){c("HubNavActions").openNewWindowChanged(!c("HubNavStore").getOpenNewWindow())}function u(event){c("HubNavActions").hideTrendingTickerChanged(!c("HubNavStore").getHideTrendingTicker())}n=babelHelpers.inherits(v,c("React").Component);o=n&&n.prototype;v.prototype.render=function(){var w=this.props.countToDisplay?c("React").createElement("div",{className:"_1yd8"},this.props.countToDisplay):null;return c("React").createElement(c("TabBarItem.react"),babelHelpers["extends"]({},this.props,{className:"_gd_"+(this.props.selected?" _3djk":"")}),this.props.children,w)};function v(){n.apply(this,arguments)}f.exports=s}),null);
__d("NotificationHub.react",["cx","HubNavDispatcher","HubNavStore","NotificationHubStoryViewer.react","NotificationHubTransitionHandler","React","SubscriptionsHandler","WorkplaceHubKeyboardShortcuts","WorkModeConfig","WorkplaceHubNav.react","WorkplaceHubTopBar.react","WorkplaceHubNotificationCard.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$NotificationHub1=new(c("SubscriptionsHandler"))(),m}k.prototype.componentWillMount=function(){c("HubNavDispatcher").explicitlyRegisterStore(c("HubNavStore"))};k.prototype.componentDidMount=function(){c("WorkplaceHubKeyboardShortcuts").init();c("NotificationHubTransitionHandler").register(this.props.startingTab);this.$NotificationHub1.addSubscriptions(c("HubNavStore").addListener(function(){this.forceUpdate()}.bind(this)))};k.prototype.componentWillUnmount=function(){c("NotificationHubTransitionHandler").remove()};k.prototype.render=function(){var l=this.props.viewerHasMultiCompanyGroups&&!c("WorkModeConfig").is_in_solo_community;if(this.props.showFaceliftHub)return c("React").createElement("div",{className:"_2pit _r2-"},c("React").createElement(c("WorkplaceHubTopBar.react"),{showFeedButton:this.props.notificationsConfig.showFeedButton,showMultiCompanyGroups:l,showPinnedGroups:this.props.viewerHasPinnedGroups,logoSource:this.props.logoSource,isEmployee:this.props.isEmployee,subtitleOptions:this.props.subtitleOptions}),c("React").createElement("div",{className:"_37nk"},c("React").createElement("div",{className:"_37nl"},c("React").createElement(c("WorkplaceHubNotificationCard.react"),{hideReactions:c("HubNavStore").getHideReactions(),notifConfig:this.props.notificationsConfig,redesign:true})),c("React").createElement("div",{className:"_37nm"},c("React").createElement(c("NotificationHubStoryViewer.react"),{redesign:true}))));return c("React").createElement("div",{className:"_37nk"},c("React").createElement("div",{className:"_10y-"},c("React").createElement(c("WorkplaceHubNav.react"),{showFeedButton:this.props.notificationsConfig.showFeedButton,showMultiCompanyGroups:l,showPinnedGroups:this.props.viewerHasPinnedGroups})),c("React").createElement("div",{className:"_37nl"},c("React").createElement(c("WorkplaceHubNotificationCard.react"),{hideReactions:c("HubNavStore").getHideReactions(),notifConfig:this.props.notificationsConfig})),c("React").createElement("div",{className:"_37nm"},c("React").createElement(c("NotificationHubStoryViewer.react"),null)))};f.exports=k}),null);