;/*FB_PKG_DELIM*/ __d("CometNotificationsDropdownMenuButton_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"isToast"},{defaultValue:!1,kind:"LocalArgument",name:"menuUseEntryPoint"}],kind:"Fragment",metadata:null,name:"CometNotificationsDropdownMenuButton_notification",selections:[{condition:"menuUseEntryPoint",kind:"Condition",passingValue:!1,selections:[{args:[{kind:"Variable",name:"isToast",variableName:"isToast"}],kind:"FragmentSpread",name:"CometNotificationsDropdownMenu_notification"}]},{alias:null,args:null,kind:"ScalarField",name:"notif_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_type",storageKey:null},{condition:"menuUseEntryPoint",kind:"Condition",passingValue:!0,selections:[{kind:"ClientExtension",selections:[{alias:"id_for_entrypoint",args:null,kind:"ScalarField",name:"__id",storageKey:null}]}]}],type:"Notification",abstractKey:null};e.exports=a}),null); __d("CometNotificationsDropdownMenuContainerQuery$Parameters",["CometNotificationsDropdownMenuContainerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometNotificationsDropdownMenuContainerQuery_facebookRelayOperation"),metadata:{},name:"CometNotificationsDropdownMenuContainerQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometNotificationsListItemAttachment_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"isToast"}],kind:"Fragment",metadata:null,name:"CometNotificationsListItemAttachment_notification",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"notif_attachments",plural:!0,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemFriendRequestAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"FriendRequestNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemInlineCTAAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"InlineCTACometNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemPageInviteAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"PageInviteNotifAttachment",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemQuickPromotionAttachment_notifAttachments",fragmentPropName:"notifAttachments",kind:"ModuleImport"}],type:"QuickPromotionNotifAttachment",abstractKey:null},{condition:"isToast",kind:"Condition",passingValue:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"CometNotificationsListItemAttachment_notification",fragmentName:"CometNotificationsListItemInlineSurveyAttachment_attachment",fragmentPropName:"attachment",kind:"ModuleImport"}],type:"InlineSurveyNotifAttachment",abstractKey:null}]}],storageKey:null}],type:"Notification",abstractKey:null};e.exports=a}),null); __d("CometNotificationsListItem_actor.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometNotificationsListItem_actor",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Actor",abstractKey:"__isActor"};e.exports=a}),null); __d("CometNotificationsListItem_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={kind:"Variable",name:"isToast",variableName:"isToast"};return{argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"hideIcon"},{defaultValue:!1,kind:"LocalArgument",name:"isToast"},{defaultValue:!1,kind:"LocalArgument",name:"menuUseEntryPoint"},{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometNotificationsListItem_notification",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_id",storageKey:null},{args:[a,{kind:"Variable",name:"menuUseEntryPoint",variableName:"menuUseEntryPoint"}],kind:"FragmentSpread",name:"CometNotificationsDropdownMenuButton_notification"},{args:[a],kind:"FragmentSpread",name:"CometNotificationsListItemAttachment_notification"},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"body",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometTextWithEntitiesRelay_textWithEntities"}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"notif_attachments",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StructuredSurveySession",kind:"LinkedField",name:"inline_survey",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],type:"InlineSurveyNotifAttachment",abstractKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:56},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:56}],concreteType:"Image",kind:"LinkedField",name:"notif_image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_type",storageKey:null},{args:null,kind:"FragmentSpread",name:"useCometNotificationURL_notification"},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null},{alias:"creation_time",args:null,concreteType:"CreationTimeWithRelativeText",kind:"LinkedField",name:"creation_time_with_relative_text",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],storageKey:null},{condition:"hideIcon",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"GlyphIconData",kind:"LinkedField",name:"icon_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reaction_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"glyph_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"glyph_icon_url",storageKey:null}],storageKey:null}]},{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null},{condition:"isToast",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"NotificationContextInfo",kind:"LinkedField",name:"context_info",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"short_text",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null}],storageKey:null}]},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_hidden",storageKey:null}]}],type:"Notification",abstractKey:null}}();e.exports=a}),null); __d("CometNotificationsListItem_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometNotificationsListItem_viewer",selections:[{alias:null,args:null,kind:"ScalarField",name:"bizkit_user_opt_in",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inbox_modal_redirect_user_passes_qe",storageKey:null}],type:"Viewer",abstractKey:null};e.exports=a}),null); __d("CometNotificationsUpdateSeenStateMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5264311553579235"}),null); __d("CometNotificationsUpdateSeenStateMutation.graphql",["CometNotificationsUpdateSeenStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"environment"},c={defaultValue:null,kind:"LocalArgument",name:"input"},d=[{kind:"Variable",name:"data",variableName:"input"}],e={alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notifications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"CometNotificationsUpdateSeenStateMutation",selections:[{alias:null,args:d,concreteType:"NotificationsUpdateSeenOrReadResponsePayload",kind:"LinkedField",name:"notifications_update_seen_or_read",plural:!1,selections:[e,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometNotificationsBadgeCountFragment_viewer"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"CometNotificationsUpdateSeenStateMutation",selections:[{alias:null,args:d,concreteType:"NotificationsUpdateSeenOrReadResponsePayload",kind:"LinkedField",name:"notifications_update_seen_or_read",plural:!1,selections:[e,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("CometNotificationsUpdateSeenStateMutation_facebookRelayOperation"),metadata:{},name:"CometNotificationsUpdateSeenStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("getCometNotificationURL_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"getCometNotificationURL_notification"};e.exports=a}),null); __d("useCometNotificationURL_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useCometNotificationURL_notification",selections:[{kind:"InlineDataFragmentSpread",name:"getCometNotificationURL_notification",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"comet"}],kind:"ScalarField",name:"url",storageKey:'url(site:"comet")'}],args:null,argumentDefinitions:[]}],type:"Notification",abstractKey:null};e.exports=a}),null); __d("useNotificationsImpressionLogger",["gkx","react","requireDeferred","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useCallback,i=c("requireDeferred")("NotifImpressionEventsFalcoEvent").__setRef("useNotificationsImpressionLogger");function a(a){var b=a.actorId,d=a.loggerContext,e=a.notifId,f=a.trackingData;a=h(function(a){a=a.visibleDuration;var c={notification_data:{duration:String(a),logger_context:d,notif_id:e,user_id:b},ref:"www_tab",tracking:JSON.stringify(f)};i.onReady(function(a){a=a.log;return a(function(){return c})})},[f,d,e,b]);a=c("usePartialViewImpression")({onImpressionEnd:a});return[a,null]}g["default"]=a}),98); __d("CometNotificationsListItemSeenContext",["react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext(function(){});g["default"]=b}),98); __d("CometNotificationsDropdownMenuContainer.entrypoint",["CometNotificationsDropdownMenuContainerQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var c={encoded_notif_id:a.encodedNotifId,scale:d("WebPixelRatio").get()};return{extraProps:{queryID:a.queryId},queries:{dropdownQueryRef:{parameters:b("CometNotificationsDropdownMenuContainerQuery$Parameters"),variables:c}}}},root:c("JSResourceForInteraction")("CometNotificationsDropdownMenuContainer.react").__setRef("CometNotificationsDropdownMenuContainer.entrypoint")};g["default"]=a}),98); __d("CometNotificationsDropdownMenuButton.react",["fbt","CometListCellHoverButton.react","CometNotificationsDropdownMenuButton_notification.graphql","CometNotificationsDropdownMenuContainer.entrypoint","CometRelay","JSResourceForInteraction","react","requireDeferred"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useCallback,l=c("requireDeferred")("OpenOptionsMenuFalcoEvent").__setRef("CometNotificationsDropdownMenuButton.react"),m=c("JSResourceForInteraction")("CometNotificationsDropdownMenu.react").__setRef("CometNotificationsDropdownMenuButton.react");function a(a){var e=d("CometRelay").useFragment(i!==void 0?i:i=b("CometNotificationsDropdownMenuButton_notification.graphql"),a.notification),f=a.queryId,g=a.userId,n=k(function(){l.onReady(function(a){a=a.log;return a(function(){return{notification_data:{alert_id:e==null?void 0:e.notif_id,logger_context:"www_tab",notif_type:e==null?void 0:e.notif_type,user_id:g},ref:"www_tab"}})})},[e,g]);return(e==null?void 0:e.id_for_entrypoint)==null?j.jsx(c("CometListCellHoverButton.react"),{hidden:a.hidden,label:h._("__JHASH__SJFVJ1HCRT3__JHASH__"),onFocusChange:a.onFocusChange,onHoverChange:a.onHoverChange,onMenuStateChange:a.onMenuStateChange,onPress:n,popoverProps:{notification:e,queryID:f},popoverResource:m,popoverTriggerType:"lazy",popoverType:"menu"}):j.jsx(c("CometListCellHoverButton.react"),{entryPointParams:{encodedNotifId:e.id_for_entrypoint,queryId:a.queryId},hidden:a.hidden,label:h._("__JHASH__SJFVJ1HCRT3__JHASH__"),onFocusChange:a.onFocusChange,onHoverChange:a.onHoverChange,onMenuStateChange:a.onMenuStateChange,onPress:n,popoverEntryPoint:c("CometNotificationsDropdownMenuContainer.entrypoint"),popoverProps:{},popoverTriggerType:"entryPoint",popoverType:"menu"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometNotificationsListItemAttachment.react",["CometErrorBoundary.react","CometNotificationsListItemAttachment_notification.graphql","CometRelay","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=c("requireDeferred")("NotifCtaImpressionFalcoEvent").__setRef("CometNotificationsListItemAttachment.react");function a(a){var b=a.date,d=a.notification,e=a.notificationId;a=a.onPress;return i.jsx(c("CometErrorBoundary.react"),{children:i.jsx(k,{date:b,notification:d,notificationId:e,onPress:a})})}a.displayName=a.name+" [from "+f.id+"]";function k(a){var c=a.date,e=a.notification,f=a.notificationId,g=a.onPress;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometNotificationsListItemAttachment_notification.graphql"),e);var k=function(a){j.onReady(function(b){b=b.log;b(function(){return{cta_type:a,notif_id:f}})})};e=a.notif_attachments;if(e==null)return null;a=e.map(function(a,b){return i.jsx(d("CometRelay").MatchContainer,{match:a,props:{date:c,notifAttachments:a,notificationId:f,onImpression:k,onPress:g}},b)}).filter(Boolean);return a.length===0?null:a}g["default"]=a}),98); __d("cometNotificationsListItemIcon",["ix","ImageIconSource","getReactionSVGSource"],(function(a,b,c,d,e,f,g,h){"use strict";var i={app_facebook:h("958818"),app_instagram:h("958820"),app_messenger:h("958823"),app_pages:h("958824"),app_rooms:h("1395467"),"app-business-suite":h("268798"),"app-oculus":h("20924"),arrows_up_down:h("958826"),badge_heart:h("958827"),ballot_box:h("175937"),bar_chart:h("958828"),bookmark:h("958830"),breaking_news:h("958831"),briefcase:h("958832"),cake:h("958833"),calendar:h("958835"),camcorder_live:h("958836"),card:h("1289629"),caution_triangle:h("958837"),circle_3:h("958838"),"circle-heart-ribbon":h("12810"),comment:h("958852"),comment_star:h("958851"),"default":h("958829"),"desktop-mobile":h("1964681"),direct:h("958854"),friend_add:h("958857"),friends:h("958858"),fundraiser:h("958859"),games:h("958821"),group:h("958860"),headphones:h("2007797"),heart_lock:h("1250959"),high_five_hands:h("958861"),instagram_reels:h("1951540"),marketplace:h("894424"),"messages-spotlight":h("150623"),music:h("232925"),notif_messages_question_live:h("1495236"),"notif-audio-wave-square":h("265477"),"notif-circle-blue-fb-pay":h("290477"),"notif-meta":h("184314"),"notif-note":h("286102"),"notif-star-tip":h("1970274"),pencil:h("958866"),pencil_checkmark:h("958865"),photo:h("958867"),pin:h("958868"),play_circle:h("958869"),poke:h("958870"),politics:h("958871"),polls:h("958872"),posts:h("958873"),profile_circle:h("958874"),relationship:h("958875"),safety_check:h("958876"),share:h("958877"),shield:h("958878"),shops:h("1686153"),spark_ar:h("1079479"),stories:h("1819883"),tag:h("958882"),"tag-star":h("276484"),topics:h("958883"),volunteer:h("1185872"),watch_tv:h("958885"),water:h("958886")};function j(a){return new(c("ImageIconSource"))(i[a]||i["default"],28,28)}function a(a,b,e){if(b!=null){var f=d("getReactionSVGSource").getReactionSVGSource(b);if(f!=null)return new(c("ImageIconSource"))(f,28,28);else if(b===17&&e!=null)return new(c("ImageIconSource"))(e,28,28)}return a!=null?j(a):null}g["default"]=a}),98); __d("isAccountsCenterURI",["isFacebookURI"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("isFacebookURI")(a)&&a.getSubdomain()==="accountscenter"}g["default"]=a}),98); __d("isAppsURI",["isFacebookURI"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("isFacebookURI")(a)&&a.getSubdomain()==="apps"}g["default"]=a}),98); __d("isDevelopersURI",["isFacebookURI"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("isFacebookURI")(a)&&a.getSubdomain()==="developers"}g["default"]=a}),98); __d("getCometNotificationURL",["CometRelay","ConstUriUtils","absoluteToRelative","getCometNotificationURL_notification.graphql","isAccountsCenterURI","isAppsURI","isBulletinDotComURI","isBusinessURI","isDevelopersURI"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){a=d("CometRelay").readInlineData(h!==void 0?h:h=b("getCometNotificationURL_notification.graphql"),a);a=a==null?void 0:a.url;if(a==null)return null;var e=d("ConstUriUtils").getUri(a);if(e==null)return a;if(window.location.hostname.startsWith("www.facebook.com")||c("isBusinessURI")(e)||c("isDevelopersURI")(e)||c("isBulletinDotComURI")(e)||c("isAccountsCenterURI")(e)||c("isAppsURI")(e))return a;else return c("absoluteToRelative")(a)}g["default"]=a}),98); __d("useCometNotificationURL",["CometRelay","getCometNotificationURL","useCometNotificationURL_notification.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){a=d("CometRelay").useFragment(h!==void 0?h:h=b("useCometNotificationURL_notification.graphql"),a);return c("getCometNotificationURL")(a)}g["default"]=a}),98); __d("CometNotificationsUpdateSeenStateMutation",["CometNotificationsThinClientConnectionHandler","CometNotificationsUpdateSeenStateMutation.graphql","CometRelay","relay-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("CometNotificationsUpdateSeenStateMutation.graphql"),j=function(a){return a.get(d("relay-runtime").VIEWER_ID)},k=function(a){return a.getValue("notifications_unseen_count",{environment:"MAIN_SURFACE"})},l=function(a){a=j(a);if(a==null)return;a=d("CometNotificationsThinClientConnectionHandler").getConnection(a,"CometNotificationsList_notifications_page");if(a==null)return;a=a.getLinkedRecords("edges");if(a==null||a.length===0)return;var b=[];a.forEach(function(a){if(a==null)return;a=a.getLinkedRecord("node");if(a==null)return;var c=a.getType();if(c!=="NotifPageNotificationRow"&&c!=="NotifPageCachedNotificationRow")return;c=a.getLinkedRecord("notif");if(c==null)return;b.push(c)});return b};function a(a,b){a=l(a);if(a==null||a.length===0)return;var c=a.findIndex(function(a){return a.getValue("id")===b});if(c<0)return;a[c]!=null&&a[c].setValue("SEEN_BUT_UNREAD","seen_state")}function c(a,b){a=l(a);if(a==null||a.length===0)return;var c=a.findIndex(function(a){return a.getValue("id")===b});if(c<0)return;a[c]!=null&&a[c].setValue("SEEN_AND_READ","seen_state")}var m=function(a,b){a=l(a);if(a==null||a.length===0)return;a.forEach(function(a){return b(a)})};function e(a){var b=function(a){if(a==null)return;a.getValue("seen_state")==="UNSEEN_AND_UNREAD"&&a.setValue("SEEN_BUT_UNREAD","seen_state")};m(a,b)}function f(a){var b=function(a){if(a==null)return;(a.getValue("seen_state")==="UNSEEN_AND_UNREAD"||a.getValue("seen_state")==="SEEN_BUT_UNREAD")&&a.setValue("SEEN_AND_READ","seen_state")};m(a,b)}function n(a){a=j(a);if(a==null)return;var b=k(a);if(b==null)return;b=+b-1;a.setValue(Math.max(0,b),"notifications_unseen_count",{environment:"MAIN_SURFACE"})}function o(a){a=j(a);if(a==null)return;a.setValue(0,"notifications_unseen_count",{environment:"MAIN_SURFACE"})}function p(a,b,c){var e=c.mutationLogger(),f=e.logOnError,g=e.logOnSuccess;return d("CometRelay").commitMutation(a,{mutation:i,onCompleted:function(){g(),c.onSuccess&&c.onSuccess()},onError:function(a){f(a),c.onError&&c.onError(a)},optimisticUpdater:c.updater,variables:b})}g.updateSingleNotifSeenState=a;g.updateSingleNotifReadState=c;g.updateMultiNotifSeenState=e;g.updateMultiNotifReadState=f;g.lowerBadgeCountByOne=n;g.clearBadgeCount=o;g.CometNotificationsUpdateSeenStateMutation=p;g.mutation=i}),98); __d("useGetCancellableSeenStateCallback",["CometRelay","CometThrottle","createCancelableFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useMemo;function a(a){var b=a.accessibilityString,e=a.mutationLogger,f=a.notifId,g=a.queryID,i=a.receivedNotificationIdsRef,j=a.seenState,k=a.timestamp,l=a.triggerAccessibilityAlert,m=a.updater,n=a.updateType,o=d("CometRelay").useRelayEnvironment();return h(function(){var a=c("createCancelableFunction")(function(){return m({accessibilityString:b,environment:o,mutationLogger:e,notifId:f,queryID:g,receivedNotificationIdsRef:i,seenState:j,timestamp:k,triggerAccessibilityAlert:l,updateType:n})}),d=!1,h=c("CometThrottle")(function(){d=!1,a()},1e3,{leading:!0}),p=function(){d=!0,h()};p.dispose=function(){d&&a(),a.cancel()};return p},[m,b,o,e,f,g,i,j,k,l,n])}g["default"]=a}),98); __d("useHandleUpdateSingleNotifReadState",["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.mutationLogger,f=a.notifId,g=a.queryID,i=a.seenState;a=a.updateType;if(f==null||e==null||i==null||a==null)return;d("CometNotificationsUpdateSeenStateMutation").CometNotificationsUpdateSeenStateMutation(b,{environment:h,input:{environment:h,is_comet:!0,last_notif_sync_time:0,notif_ids:[f],query_id:g,source:"unknown",update_type:a}},{mutationLogger:function(){return e(i)},onError:function(a){c("recoverableViolation")("Update read state (single) mutation failed with an error: ","Notifications",{error:a})},updater:function(a){d("CometNotificationsUpdateSeenStateMutation").updateSingleNotifReadState(a,f)}})}function a(a){return c("useGetCancellableSeenStateCallback")(babelHelpers["extends"]({},a,{updater:i}))}g["default"]=a}),98); __d("useScrollToNotif",["CometRouteMatch","XCometNotificationsControllerRouteBuilder","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useRef;a=function(a){var b=d("CometRouteMatch").useCurrentRouteMatcher(d("CometRouteMatch").MatchFunctions.urlMatchFunction),e=d("CometRouteMatch").useHostedRouteMatcher(d("CometRouteMatch").MatchFunctions.urlMatchFunction);e=a!=null?e(a):!1;a=b(c("XCometNotificationsControllerRouteBuilder").buildURL({}).toString());b=h(e&&!a);return[e,b]};g.useScrollToNotif=a}),98); __d("CometNotificationsListItem.react",["fbt","CometBadge.react","CometBoldedEntityRenderer","CometEmojiTransform","CometEmoticonTransform","CometFocusTableContext","CometNotificationsDropdownMenuButton.react","CometNotificationsListItemAttachment.react","CometNotificationsListItemSeenContext","CometNotificationsListItem_actor.graphql","CometNotificationsListItem_notification.graphql","CometNotificationsListItem_viewer.graphql","CometNotificationsMutationLogger","CometNotificationsTimestamp.react","CometPassiveGetRouterStateContext","CometPressable.react","CometProductAttribution","CometRelay","CometTextWithEntitiesRelay.react","FocusWithinHandler.react","TetraAccessoryListCell.react","TetraIcon.react","cometNotificationsListItemIcon","mergeRefs","qex","react","requireDeferred","scrollIntoView","useBusinessSuiteRedirectHook","useCometNotificationURL","useHandleUpdateSingleNotifReadState","useMenuButtonVisibilityState","useNotificationsImpressionLogger","useScrollToNotif","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useCallback,n=e.useContext,o=e.useLayoutEffect,p=e.useMemo,q=e.useRef,r=c("requireDeferred")("NotifClickEventsFalcoEvent").__setRef("CometNotificationsListItem.react"),s={dot:{marginEnd:"xw3qccf",marginStart:"xsgj6o6",$$css:!0},hiddenLabel:{clip:"xzpqnlu",clipPath:"x179tack",position:"x10l6tqk",wordBreak:"xdnwjd9",$$css:!0},listItemContainer:{position:"x1n2onr6",$$css:!0},pressable:{alignItems:"x6s0dn4",display:"x78zum5",height:"xsdox4t",justifyContent:"xl56j7k",paddingStart:"x1e558r4",width:"xw4jnvo",$$css:!0},spacer:{height:"x1kpxq89",width:"xsmyaan",$$css:!0}},t={"*":[c("CometBoldedEntityRenderer")]},aa=[c("CometEmoticonTransform")(),c("CometEmojiTransform")()],ba=i!==void 0?i:i=b("CometNotificationsListItem_actor.graphql"),ca=j!==void 0?j:j=b("CometNotificationsListItem_viewer.graphql"),da=k!==void 0?k:k=b("CometNotificationsListItem_notification.graphql");function a(a){var b=a.actor,e=a.hideMenuButton,f=e===void 0?!1:e;e=a.isFromPageNotification;var g=a.isNotificationsRoute,i=g===void 0?!1:g;g=a.loggerContext;var j=g===void 0?"www_tab":g;g=a.notification;var k=a.onClick,u=a.onClose,v=a.preventLocalNavigation,w=a.queryID,x=a.replace,y=a.routeTarget,z=a.shouldOpenInBlankTarget,A=a.shouldPrefetch;A=A===void 0?!1:A;var B=a.showSelectedState,ea=B===void 0?!1:B,C=a.trackingData;B=a.viewer;a=d("CometRelay").useFragment(ba,b);b=d("CometRelay").useFragment(ca,B);var D=d("CometRelay").useFragment(da,g),E=c("useCometNotificationURL")(D),F=E!=null&&E.includes("inbox"),G=!((B=b==null?void 0:b.bizkit_user_opt_in)!=null?B:!0)&&((g=b==null?void 0:b.inbox_modal_redirect_user_passes_qe)!=null?g:!1),fa=c("useBusinessSuiteRedirectHook")();B=D.body;b=D.context_info;g=D.creation_time;var H=D.id,ga=D.notif_attachments,I=D.notif_id,J=D.notif_image,K=D.notif_type,L=D.seen_state,M=D.tracking,N=q(null),O=a==null?void 0:a.id,P=(a=e)!=null?a:!1;e=D.notif_type==="community_presence_invited_to_post";a=babelHelpers["extends"]({navigation_source:"notifications_click"},K!=null?{notif_type:K}:null);var Q=p(function(){var a;return(a=C)!=null?a:{notif_tracking:M}},[M,C]),ha={onNavigate:u,passthroughProps:{initialTracePolicy:"comet.notifications",notification_id:(u=I)!=null?u:void 0,notificationTracking:Q,notificationType:K,ref:"notification"},prefetchQueriesOnHover:A,preventLocalNavigation:(u=v)!=null?u:!1,productAttribution:{tap_point:"via_notification"},replace:(A=x)!=null?A:void 0,routeTarget:P?"content":(v=y)!=null?v:void 0,target:z===!0?"_blank":void 0,traceParams:a,url:(u=E)!=null?u:void 0};x=d("useScrollToNotif").useScrollToNotif(E);var ia=x[0],R=x[1],S=R.current;A=n(c("CometFocusTableContext"));y=A.FocusCell;v=A.FocusRow;var ja=(z=y)!=null?z:l.Fragment,ka=(a=v)!=null?a:l.Fragment;o(function(){N.current!=null&&S&&(c("scrollIntoView")(N.current,{behavior:"auto",verticalAlign:"center"}),R.current=!1)},[S,R]);var T=c("useHandleUpdateSingleNotifReadState")({accessibilityString:h._("__JHASH__c_y3p8iLeMa__JHASH__"),mutationLogger:d("CometNotificationsMutationLogger").notificationMarkAsReadStart,notifId:H,queryID:w,seenState:L,timestamp:null,updateType:"MARK_READ"}),U=n(c("CometPassiveGetRouterStateContext")),la=m(function(){H!=null&&O!=null&&(k&&k(),r.onReady(function(a){a=a.log;return a(function(){var a;return{navigation_chain_minified:d("CometProductAttribution").getMinifiedTopMostRouteProductAttribution(U),notification_data:{alert_id:(a=I)!=null?a:"",logger_context:(a=j)!=null?a:"",to_user:O},ref:i?"notifications_route":"www_tab",tracking:JSON.stringify(C)}})}),T())},[O,T,i,j,I,H,k,U,C,e]),V=B;u=g==null?void 0:g.timestamp;x=J==null?void 0:J.uri;A=c("useMenuButtonVisibilityState")();var ma=A[0];y=A[1];var W=y.setListItemHovered,na=y.setMenuBtnFocused,oa=y.setMenuBtnHovered,pa=y.setMenuOpened,qa=m(function(){W(!1)},[W]),ra=m(function(){W(!0)},[W]);z=c("useNotificationsImpressionLogger")({actorId:O,loggerContext:j,notifId:I,trackingData:Q});var X=z[0],sa=z[1],ta=n(c("CometNotificationsListItemSeenContext")),Y=c("useVisibilityObserver")({onVisible:function(){ta(H)}}),ua=p(function(){if(j==="www_tab"||j==="beeper")return c("mergeRefs")(X,N,Y);else return N},[Y,j,X]);if(H==null||V==null||x==null||L==null||u==null)return null;v=new Date(u*1e3);var Z=L==="SEEN_AND_READ";e=(a=D.icon_data)==null?void 0:a.reaction_type;g=(B=D.icon_data)==null?void 0:B.glyph_name;A=(J=D.icon_data)==null?void 0:J.glyph_icon_url;y=c("cometNotificationsListItemIcon")(g,e,A);Q=y!=null?{backgroundColor:"transparent",icon:l.jsx(c("TetraIcon.react"),{color:"white",icon:y}),size:28,type:"activityBadge"}:null;e===17&&(Q.overflow="visible");z=l.jsx(c("CometNotificationsTimestamp.react"),{date:v,seenAndRead:Z});var va={addOn:Q,shape:"circle",size:56,source:{uri:x},type:"profile-photo"},wa={component:l.jsx(c("CometNotificationsListItemAttachment.react"),{date:v,notification:D,notificationId:(u=D.notif_id)!=null?u:"",onPress:T}),type:"override-column"};L=D==null?void 0:D.is_hidden;if(L===!0)return null;var $=ga.find(function(a){return a.inline_survey!=null})!=null;B=b==null?void 0:(a=b.short_text)==null?void 0:a.text;var xa=l.jsxs(l.Fragment,{children:[z,B!=null&&B!==""&&l.jsxs(l.Fragment,{children:[l.jsx("span",{"aria-hidden":"true",className:"xw3qccf xsgj6o6",children:"\xb7"}),B]})]}),ya=function(){fa({uri:E})},za=function(){la();if(F){c("qex")._("982");if(G){ya();return}}};return l.jsx(c("FocusWithinHandler.react"),{children:function(a,b){return l.jsx(ka,{children:l.jsxs("div",{className:"x1n2onr6",onMouseEnter:ra,onMouseLeave:qa,ref:ua,role:"row",children:[sa,l.jsx(c("TetraAccessoryListCell.react"),{addOnBottom:wa,addOnPrimary:va,addOnSecondary:{addOn:Z?l.jsx("div",{className:"x1kpxq89 xsmyaan"}):l.jsx(c("CometPressable.react"),{expanding:!0,onPress:T,overlayDisabled:!0,role:"none",testid:void 0,xstyle:s.pressable,children:l.jsx(c("CometBadge.react"),{color:"blue",isProfileBadge:!0,size:12})}),type:"body"},addOnSecondaryVerticalAlign:$?"top":"center",body:l.jsxs(l.Fragment,{children:[Z?null:l.jsx("div",{className:"xzpqnlu x179tack x10l6tqk xdnwjd9",children:h._("__JHASH__0NXUkEu5yQv__JHASH__")}),l.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:t,textWithEntities:V,transforms:aa})]}),bodyColor:Z?"secondary":"primary",bodyLineLimit:3,linkProps:!F||!G?ha:void 0,meta:xa,metaLineLimit:1,onPress:za,role:"none",selected:ia&&ea,testid:void 0}),K!=="friend"&&K!=="page_invite"&&!$?l.jsx(ja,{children:l.jsx(c("CometNotificationsDropdownMenuButton.react"),{hidden:f||P||!(a&&b)&&!ma,notification:D,onFocusChange:na,onHoverChange:oa,onMenuStateChange:pa,queryId:w,userId:O})}):null]})})}})}a.displayName=a.name+" [from "+f.id+"]";e=l.memo(a);g["default"]=e}),98);