if (self.CavalryLogger) { CavalryLogger.start_js(["odBar"]); } __d("NotifType",[],(function(a,b,c,d,e,f){e.exports={LIKE:"like",OPEN_GRAPH_ACTION_LIKE:"open_graph_action_like",LIKE_TAGGED:"like_tagged",PAGE_FAN:"page_fan",IG_MEDIA_LIKE:"ig_media_like",FEEDBACK_REACTION_GENERIC:"feedback_reaction_generic",FEEDBACK_REACTION_GENERIC_TAGGED:"feedback_reaction_generic_tagged",MESSENGER_REACTIONS:"messenger_reactions",MARKETPLACE_RECEIVED_RATING:"marketplace_received_rating",MARKETPLACE_RECEIVED_RATING_COMPLETED:"marketplace_received_rating_completed"}}),null); __d("NotificationHiddenState",["NotificationConstants","NotificationUpdates","isEmpty"],(function(a,b,c,d,e,f){__p&&__p();var g={};b("NotificationUpdates").subscribe("update-notifications",function(a,c){a=c.nodes;c=c.payloadsource;if(c===b("NotificationConstants").PayloadSourceType.LIVE_SEND&&a&&a.length){var d={};a.forEach(function(a){a=a.alert_id;g[a]&&(d[a]=!1)});b("isEmpty")(d)||(g=Object.assign(g,d),b("NotificationUpdates").didUpdateHiddenState(Object.keys(d)))}});b("NotificationUpdates").subscribe("update-hidden",function(a,c){if(c.hiddenState){a=c.hiddenState;g=Object.assign(g,a);b("NotificationUpdates").didUpdateHiddenState(Object.keys(a))}});a={isHidden:function(a){return g[a]?g[a]:!1}};e.exports=a}),null); __d("NotificationVPVs",["MarauderLogger","getElementRect"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=new Set();function a(a,c){if(h(a))return;b("MarauderLogger").log("notifications_impression_www",void 0,{notif_tracking:c},"notification",a);g.add(a)}function h(a){return g.has(a)}function c(){g.clear()}function d(a,b){return!a||!b?!1:!(a.bottomb.bottom||a.rightb.right)}function f(a){a=b("getElementRect")(a);return!a||a.top==0&&a.bottom==0&&a.left==0&&a.right==0?null:a}a={logImpression:a,clearImpressions:c,hasLoggedImpression:h,getValidatedRectangle:f,areRectsOverlapping:d};e.exports=a}),null); __d("retry",["regeneratorRuntime","asyncSleep"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=function(b){__p&&__p();babelHelpers.inheritsLoose(a,b);function a(a,c,d,e){var f;f=b.call(this,a)||this;f.message=a;f.values=c;f.errors=d;f.options=e;return f}return a}(babelHelpers.wrapNativeSuper(Error)),h=function(){__p&&__p();function a(b){this.$1=babelHelpers["extends"]({},a.RETRY_OPTION_DEFAULTS,b),this.$2=0,this.$3=!1,this.$4=!1,this.$5=[],this.$6=[],this.$7=null,this.$8=0,this.$9()}var c=a.prototype;c.$9=function(){if(this.$1.interval&&this.$1.interval<0)throw new g("C'mon, interval < 0 makes no sense.",[],[],this.$1);if(this.$1.backoff&&this.$1.backoff<1)throw new g("backoff must be >= 1",[],[],this.$1);if(this.$1.jitter&&(this.$1.jitter<0||this.$1.jitter>1))throw new g("jitter must be in range [0, 1]",[],[],this.$1)};c.onValue=function(){this.$1.retryValues||(this.$1.retryValues=[]);for(var a=arguments.length,b=new Array(a),c=0;c0)){e.next=12;break}c=this.$10();e.next=12;return b("regeneratorRuntime").awrap(b("asyncSleep")(c));case 12:if(!this.$3){e.next=14;break}throw new g("Retry aborted.",this.$5,this.$6,this.$1);case 14:e.prev=14;this.$2++;e.next=18;return b("regeneratorRuntime").awrap(a());case 18:d=e.sent;this.$5.push(d);if(!this.$11(d)){e.next=22;break}return e.abrupt("continue",7);case 22:return e.abrupt("return",d);case 25:e.prev=25;e.t0=e["catch"](14);this.$6.push(e.t0);if(!this.$12(e.t0)){e.next=30;break}return e.abrupt("continue",7);case 30:throw e.t0;case 31:e.next=7;break;case 33:throw new g("Max call count exceeded.",this.$5,this.$6,this.$1);case 34:e.prev=34;this.$4=!1;return e.finish(34);case 37:case"end":return e.stop()}},null,this,[[3,,34,37],[14,25]])};c.$10=function(){return Math.max(0,this.$13(this.$14()))};c.$13=function(a){a=a;this.$1.minInterval&&(a=Math.max(a,this.$1.minInterval));this.$1.maxInterval&&(a=Math.min(a,this.$1.maxInterval));return a};c.$14=function(){return this.$15()+this.$16()};c.$17=function(){return this.$1.interval?this.$1.interval:0};c.$18=function(){return this.$1.backoff?this.$1.backoff:1};c.$15=function(){var a=this.$17(),b=this.$18();return a*Math.pow(b,this.$2-1)};c.$16=function(){var a=this.$19(),b=a-this.$8;this.$8=a;return b};c.$19=function(){var a=this.$1.jitter;if(!a)return 0;var b=Math.random()*2-1;b=b*b*b*a/2;a=this.$17();var c=this.$18(),d=c-1;return d<1e-6?a*Math.pow(c,this.$2)*(b+d*(b*b-b)/2):a*Math.pow(c,this.$2)*(Math.pow(c,b)-1)/(c-1)};c.$11=function(a){return!!this.$1.retryValues&&this.$1.retryValues.indexOf(a)!==-1||!!this.$1.retryValueMatchers&&this.$1.retryValueMatchers.some(function(b){return b(a)})};c.$12=function(a){return!!this.$1.retryErrorClasses&&this.$1.retryErrorClasses.some(function(b){return a instanceof b})||!!this.$1.retryErrorMatchers&&this.$1.retryErrorMatchers.some(function(b){return b(a)})};return a}();h.RETRY_OPTION_DEFAULTS={interval:1e3,backoff:1,jitter:.25};function a(a,c){return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(new h(c).call(a));case 2:return d.abrupt("return",d.sent);case 3:case"end":return d.stop()}},null,this)}a.Retry=h;a.RetryError=g;function c(){var a;return(a=new h()).onValue.apply(a,arguments)}a.onValue=c;function d(){var a;return(a=new h()).untilValue.apply(a,arguments)}a.untilValue=d;function f(){return new h().onFalsy()}a.onFalsy=f;function i(){return new h().onTruthy()}a.onTruthy=i;function j(){return new h().untilTruthy()}a.untilTruthy=j;function k(){return new h().untilFalsy()}a.untilFalsy=k;function l(){return new h().onNull()}a.onNull=l;function m(){return new h().onUndefined()}a.onUndefined=m;function n(){var a;return(a=new h()).onValueMatches.apply(a,arguments)}a.onValueMatches=n;function o(){var a;return(a=new h()).untilValueMatches.apply(a,arguments)}a.untilValueMatches=o;function p(){var a;return(a=new h()).onError.apply(a,arguments)}a.onError=p;function q(){var a;return(a=new h()).onErrorMatches.apply(a,arguments)}a.onErrorMatches=q;function r(a){return new h().limit(a)}a.limit=r;function s(){return new h().once()}a.once=s;function t(){return new h().twice()}a.twice=t;function u(a){return new h().withInterval(a)}a.withInterval=u;function v(a){return new h().withMaxInterval(a)}a.withMaxInterval=v;function w(a){return new h().withMinInterval(a)}a.withMinInterval=w;function x(a){return new h().withBackoff(a)}a.withBackoff=x;function y(a){return new h().withJitter(a)}a.withJitter=y;e.exports=a}),null); __d("NotificationList.react",["regeneratorRuntime","Promise","Arbiter","FunnelLogger","NotificationBucketStoreManager","NotificationConstants","NotificationHiddenState","NotificationJewelFunnelLoggingConstants","NotificationSeenState","NotificationStore","NotificationUpdates","NotificationUserActions","NotificationVPVs","NotifType","React","SubscriptionsHandler","TimeSlice","createCancelableFunction","getObjectValues","isEmpty","mapObject","retry"],(function(a,b,c,d,e,f){__p&&__p();var g=b("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT,h=b("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME;a=b("React").PropTypes;var i=b("NotificationConstants").PayloadSourceType.LIVE_SEND,j=3,k="notification_clicked",l="WebNotificationsPayloadPagelet";function m(a){return{classification:a.classification,endpointControllerName:a.endpoint!=null?a.endpoint:"WebNotificationsPayloadPagelet",readness:a.readness}}c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;for(var e=arguments.length,f=new Array(e>1?e-1:0),i=1;i0&&this.$8(a)};d.$18=function(a){var c=this,d=b("NotificationSeenState").getUnseenIDs(this.props.classification,this.props.unseenNotifsClassificationsMap);b("isEmpty")(this.$1)||(d=d.filter(function(a){return!c.$1[a]}));d.length&&(this.props.paused||this.props.enableHubView)&&b("TimeSlice").guard(function(){return b("NotificationUserActions").markNotificationsAsSeen(d,c.props.sourceView,c.props.classification)},"NotificationList _populateList markNotificationsAsSeen",{propagationType:b("TimeSlice").PropagationType.ORPHAN})();this.props.hasEverBeenOpened&&((!a||!a.hasEverBeenOpened)&&this.$17(d))};c.isReaction=function(a){return a===b("NotifType").LIKE||a===b("NotifType").OPEN_GRAPH_ACTION_LIKE||a===b("NotifType").LIKE_TAGGED||a===b("NotifType").PAGE_FAN||a===b("NotifType").IG_MEDIA_LIKE||a===b("NotifType").FEEDBACK_REACTION_GENERIC||a===b("NotifType").FEEDBACK_REACTION_GENERIC_TAGGED||a===b("NotifType").MESSENGER_REACTIONS};d.componentDidUpdate=function(a){__p&&__p();this.$18(a);if(a.paused&&!this.props.paused){this.$2=!1;var b=window.setTimeout(this.$11,0);this.$3.addSubscriptions({remove:function(){window.clearTimeout(b)}});return}if(this.props.paused&&this.$6(a)){var c=window.setTimeout(this.$11,0);this.$3.addSubscriptions({remove:function(){window.clearTimeout(c)}});return}};d.componentDidMount=function(){this.$18()};d.render=function(){__p&&__p();var a=this,d=this.props.listRenderer,e=this.state,f=e.notifs,g=e.readState,h=e.readWhilePausedOrNavigating,i={};this.props.readness==null?i=f:Object.keys(f).forEach(function(b){b=f[b];var c=b.alert_id,d=g[c];a.props.readness==="UNREAD"&&(d=!d||Object.prototype.hasOwnProperty.call(h,c));d&&(i[c]=b)});if(this.props.hideReactions){var j={};Object.keys(i).forEach(function(a){a=f[a];c.isReaction(a.notif_type)||(j[a.alert_id]=a)});i=j}var k=this.props.classification;k&&Object.keys(f).forEach(function(a){a=f[a];(!a.classifications||!a.classifications.includes(k))&&delete i[a.alert_id]});e=null;if(!this.props.isBucketingDisabled){b("NotificationBucketStoreManager").setActiveClassification(k);var m=this.props.isNotifsBiz?b("NotificationBucketStoreManager").getBucketStoreInstance(this.props.endpoint||l,k):b("NotificationBucketStoreManager").getBucketStoreInstance(l);e=m.isEmptyBucketListData()?null:m.getBucketListData()}return b("React").createElement(d,{emptyState:this.props.emptyState,paused:this.props.paused,isNotifsBiz:this.props.isNotifsBiz,isNotifsIntl:this.props.isNotifsIntl,isFlyoutOpened:this.props.isFlyoutOpened,target:this.props.target,tracking:this.props.tracking,shortenTimestamp:this.props.shortenTimestamp,sourceView:this.props.sourceView,maxHeight:this.props.maxHeight,useChevron:this.props.useChevron,chevronType:this.props.chevronType,buckets:e,notifs:i,afterScroll:this.$12,onChevronShow:this.$15,onChevronHide:this.$16,currentlyFetching:this.state.currentlyFetching,canFetchMore:this.state.canFetchMore,hiddenState:this.state.hiddenState,readState:this.state.readState,showingChevron:this.state.showingChevron,shouldScroll:this.$2,upsell:this.props.upsell||null,isRHC:this.props.isRHC,enableMarkUnread:this.props.enableMarkUnread,onClick:this.$19,onRead:this.$20,onNumNotificationsViewableChange:this.$21,onResetRetryCount:this.$9,retryLimitReached:this.state.retryLimitReached})};return c}(b("React").Component);c.propTypes={hasEverBeenOpened:a.bool,enableHubView:a.bool,enableMarkUnread:a.bool,maxHeight:a.number,paused:a.bool,isFlyoutOpened:a.bool,tracking:a.string,useChevron:a.bool,chevronType:a.string,numPerPage:a.number.isRequired,listRenderer:a.func.isRequired,upsell:a.object,endpoint:a.string,readness:a.string,classification:a.string};e.exports=c}),null); __d("NotificationListItemBaseWrapper.react",["requireCond","cr:830096"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:830096")}),null); __d("notificationListRendererStartTTLMarkers",["FBLogger","NavigationMetrics","QPLTimeToLoadHelper","gkx"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){b("gkx")("678283")&&g(a,c),b("gkx")("678284")&&h(a,c)}function g(a,c){b("QPLTimeToLoadHelper").end({qplMarker:655585,time:a.timeStamp,action:"CANCEL"}),b("QPLTimeToLoadHelper").start({source:"notifications",qplMarker:655585,time:a.timeStamp}),c.notif_type?b("QPLTimeToLoadHelper").annotateString({source:"notifications",qplMarker:655585,annotationKey:"NOTIF_TYPE",annotationValue:c.notif_type}):b("FBLogger")("comet_notifications").addMetadata("COMET_NOTIFICATION","ALERT_ID",c.alert_id||"UNKONWN").mustfix("Missing notification type",c.alert_id)}function h(a,c){b("QPLTimeToLoadHelper").start({source:"notifications",qplMarker:3473453,time:a.timeStamp}),c.notif_type?b("QPLTimeToLoadHelper").annotateString({source:"notifications",qplMarker:3473453,annotationKey:"NOTIF_TYPE",annotationValue:c.notif_type}):b("FBLogger")("comet_notifications").addMetadata("COMET_NOTIFICATION","ALERT_ID",c.alert_id||"UNKONWN").mustfix("Missing notification type"),b("NavigationMetrics").once(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,c){a=c.tti;c.tti||(a=c.e2e,b("QPLTimeToLoadHelper").annotateString({qplMarker:3473453,annotationKey:"TIMESTAMP_ERROR",annotationValue:"NO_TTI"}));b("QPLTimeToLoadHelper").end({qplMarker:3473453,time:a})})}e.exports=a}),null); __d("NotificationListItem.react",["cx","AsyncDialog","AsyncRequest","Bootloader","Event","Keys","NotificationListConfig","NotificationListItemBaseWrapper.react","NotificationURI","NotificationUserActions","PageTransitions","React","SubscriptionsHandler","URI","clearImmediate","notificationListRendererIsStoryOnlyLiveVideoNotification","notificationListRendererOpenNotification","notificationListRendererStartTTLMarkers","setImmediateAcrossTransitions"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g');new(b("AsyncRequest"))().setURI(this.AJAX_URI).setData({profile_id:this.profile_id,get_code:1,carrier:this.carrier,source:this.source,misc:this.misc}).setHandler(this.showShortCode.bind(this)).send();return!1},showShortCode:function(a){a=a.getPayload();this.cb_obj&&this.cb_obj.onShowShortCode?this.cb_obj.onShowShortCode(a):new(b("Dialog"))().setTitle(a.title).setBody(a.html).setHandler(this.activate.bind(this)).setButtons([b("Dialog").NEXT,b("Dialog").CANCEL]).show()},activate:function(){var a=b("$")("sms_code").value;if(!a)return;var c=b("ge")("profile_add");c=c?c.checked:null;var d=b("ge")("message_on");d=d?d.checked:null;new(b("AsyncRequest"))().setURI(this.AJAX_URI).setData({profile_id:this.profile_id,confirm:1,code:a,profile_add:c,message_on:d,source:this.source,misc:this.misc}).setHandler(this.confirmCode.bind(this)).setErrorHandler(this.confirmCode.bind(this)).send()},confirmCode:function(a){__p&&__p();var c=a.getPayload();if(!a.error&&c.success)if(this.cb_obj&&this.cb_obj.onActivationSuccess)this.cb_obj.onActivationSuccess(c);else{if(c.redirect_now){b("goURI")(c.redirect,c.force_redirect);return}if(c.redirect==null)return;this.redirect_uri=c.redirect;new(b("Dialog"))().setTitle(c.title).setBody(c.html).setHandler(this.redirect.bind(this)).setButtons([b("Dialog").OK]).show()}else this.cb_obj&&this.cb_obj.onActivationFailure?this.cb_obj.onActivationFailure(a):b("AsyncResponse").defaultErrorHandler.call(this,a)},redirect:function(){this.redirect_uri=="reload"?b("ReloadPage").now():b("goURI")(this.redirect_uri)},goVerification:function(){new(b("AsyncRequest"))().setURI(this.AJAX_URI).setData({profile_id:this.profile_id,show_verification:1,source:this.source,misc:this.misc}).setHandler(this.displayVerification.bind(this)).send();return!1},displayVerification:function(a){var c=a.getPayload();this.cb_obj&&this.cb_obj.onDisplayVerification?this.cb_obj.onDisplayVerification(c):new(b("Dialog"))().setTitle(c.title).setBody(c.html).setHandler(this.completeVerification.bind(this,a)).setButtons([b("Dialog").OK]).show()},completeVerification:function(a){a=a.getPayload();this.cb_obj&&this.cb_obj.onVerificationComplete(a)}});e.exports=i}),null); __d("legacy:mobile-sms-activation",["MobileSmsActivationController"],(function(a,b,c,d,e,f){a.MobileSmsActivationController=b("MobileSmsActivationController"),a.mobile_activation_show_carriers=b("MobileSmsActivationController").show_carriers,a.mobile_activation_update_carrier=b("MobileSmsActivationController").update_carrier}),3);