;/*FB_PKG_DELIM*/ __d("CometToastNotification_actor.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometToastNotification_actor",selections:[{args:null,kind:"FragmentSpread",name:"CometNotificationsListItem_actor"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Actor",abstractKey:"__isActor"};e.exports=a}),null); __d("CometToastNotification_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometToastNotification_notification",selections:[{args:[{kind:"Literal",name:"isToast",value:!0}],kind:"FragmentSpread",name:"CometNotificationsListItem_notification"},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],type:"Notification",abstractKey:null};e.exports=a}),null); __d("useHandleUpdateSingleNotifSeenState",["CometNotificationsMutationLogger","CometNotificationsUpdateSeenStateMutation","recoverableViolation","useGetCancellableSeenStateCallback"],(function(a,b,c,d,e,f,g){"use strict";var h="MAIN_SURFACE";function i(a){var b=a.environment,e=a.notifId,f=a.seenState;a=a.source;if(e==null||f!=="UNSEEN_AND_UNREAD")return;d("CometNotificationsUpdateSeenStateMutation").CometNotificationsUpdateSeenStateMutation(b,{environment:h,input:{environment:h,is_comet:!0,last_notif_sync_time:0,notif_ids:[e],source:(f=a)!=null?f:"unknown",update_type:"MARK_SEEN"}},{mutationLogger:d("CometNotificationsMutationLogger").notificationMarkAsSeenStart,onError:function(a){c("recoverableViolation")("Update seen state (single) mutation failed with an error: ","Notifications",{error:a})},updater:function(a){d("CometNotificationsUpdateSeenStateMutation").updateSingleNotifSeenState(a,e),d("CometNotificationsUpdateSeenStateMutation").lowerBadgeCountByOne(a)}})}function a(a){return c("useGetCancellableSeenStateCallback")(babelHelpers["extends"]({},a,{updater:i}))}g["default"]=a}),98); __d("CometToastNotification.react",["fbt","CometNotificationsListItem.react","CometRelay","CometToastCard.react","CometToastNotification_actor.graphql","CometToastNotification_notification.graphql","react","recoverableViolation","requireDeferred","useHandleUpdateSingleNotifSeenState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=c("requireDeferred")("NotifBeeperDismissFalcoEvent").__setRef("CometToastNotification.react"),m="comet_toast",n="beeper";function a(a){var e=d("CometRelay").useRelayEnvironment(),f=d("CometRelay").useFragment(i!==void 0?i:i=b("CometToastNotification_actor.graphql"),a.actor),g=d("CometRelay").useFragment(j!==void 0?j:j=b("CometToastNotification_notification.graphql"),a.notification),o=g==null?void 0:g.id,p=g==null?void 0:g.seen_state;e=c("useHandleUpdateSingleNotifSeenState")({accessibilityString:h._("__JHASH__9NjyGJ8VNvp__JHASH__"),environment:e,notifId:o,seenState:p,source:m,timestamp:null,updateType:"MARK_SEEN"});if(g==null){c("recoverableViolation")("Comet Toast should have non-null notification","Notifications");return null}var q=a.onCloseClick;o=h._("__JHASH__tXZ99ZeyFDZ__JHASH__");var r=f==null?void 0:f.id,s=g.notif_id;a=(p=g.body)==null?void 0:p.text;p=s==null||a==null?null:{id:s,text:a};return k.jsx(c("CometToastCard.react"),{accessibilityAnnouncement:p,content:k.jsx("div",{role:"grid",children:k.jsx(c("CometNotificationsListItem.react"),{actor:f,loggerContext:n,notification:g,onClick:q})}),headline:o,onCloseClick:function(){q(),s!=null&&r!=null&&l.onReady(function(a){a=a.log;return a(function(){return{notification_data:{alert_id:s,logger_context:n,user_id:r},ref:"www_tab"}})})},onMouseEnter:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometPayoutHubOverviewRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8372682432773015"}),null);