;/*FB_PKG_DELIM*/

__d("CometNotificationsDropdownMenuButton_actor.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometNotificationsDropdownMenuButton_actor",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},action:"THROW",path:"name"}],type:"Actor",abstractKey:"__isActor"};e.exports=a}),null);
__d("CometNotificationsDropdownMenuButton_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometNotificationsDropdownMenuButton_notification",selections:[{alias:null,args:null,kind:"ScalarField",name:"notif_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notif_type",storageKey:null},{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_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7549184515205706"}),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("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,environment:a.environment,notif_type:a.notifType,scale:d("WebPixelRatio").get()};return{extraProps:{menuID:a.menuID,queryID:a.queryId},queries:{dropdownQueryRef:{parameters:b("CometNotificationsDropdownMenuContainerQuery$Parameters"),variables:c}}}},root:c("JSResourceForInteraction")("CometNotificationsDropdownMenuContainer.react").__setRef("CometNotificationsDropdownMenuContainer.entrypoint")};e=a;g["default"]=e}),98);
__d("FDSListCellHoverActions.react",["react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={menuButtonContainer:{display:"x78zum5",pointerEvents:"x67bb7w",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",$$css:!0},menuButtonContainerFar:{end:"x84fkku",$$css:!0},menuButtonContainerNear:{end:"x1923su1",$$css:!0},visuallyHidden:{WebkitClipPath:"x11adwwt",clip:"x1qvwoe0",clipPath:"x1vzd84k",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"x1i1rx1s",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(8),e=a.children,f=a.hidden;a=a.showNear;var g;b[0]!==f||b[1]!==a?(g=(h||(h=c("stylex"))).props(k.menuButtonContainer,a===!0?k.menuButtonContainerNear:k.menuButtonContainerFar,f&&k.visuallyHidden),b[0]=f,b[1]=a,b[2]=g):g=b[2];b[3]!==e?(f=Array.isArray(e)?e.filter(m).map(l):e,b[3]=e,b[4]=f):f=b[4];b[5]!==g||b[6]!==f?(a=j.jsx("div",babelHelpers["extends"]({},g,{children:f})),b[5]=g,b[6]=f,b[7]=a):a=b[7];return a}function l(a,b){return j.createElement("div",babelHelpers["extends"]({className:"x1i64zmx"},{key:b}),a)}l.displayName=l.name+" [from "+f.id+"]";function m(a){return a!=null}g["default"]=a}),98);
__d("FDSListCellHoverButton.react",["fbt","ix","FDSCircleButton.react","FDSDeferredPopoverTrigger.react","FDSEntryPointPopoverTrigger.react","FDSLazyPopoverTrigger.react","FocusWithinHandler.react","fbicon","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));b=k;var m=b.useCallback,n=b.useState,o={buttonShadow:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"x10xjkym",$$css:!0}};function a(a){var b=a.label,e=a.menuID,f=a.onFocusChange,g=a.onHoverChange,k=a.onMenuStateChange,p=a.onPress,q=a.size,r=a.testid,s=n(!1),t=s[0],u=s[1];s=m(function(a){k!=null&&k(a),u(a)},[k]);var v=m(function(a,k,m,n,r){return l.jsx("div",{ref:a,children:l.jsx(c("FocusWithinHandler.react"),{onFocusChange:f,children:function(a){return l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(!a&&o.buttonShadow),{children:l.jsx(c("FDSCircleButton.react"),{"aria-controls":e,"aria-expanded":t,color_DEPRECATED:"secondary",icon:d("fbicon")._(i("484387"),20),label:b!=null?b:h._(/*BTDS*/"__JHASH__oYmrdmuxyrt__JHASH__"),onHoverIn:function(a){m&&m(a),g&&g(!0)},onHoverOut:function(){n&&n(),g&&g(!1)},onPress:function(){p&&p(),k()},onPressIn:r,size:(a=q)!=null?a:36,testid:void 0,type_DEPRECATED:"overlay"})}))}})})},[f,b,g,p,r,q]);r={align:"middle",fallback:a.popoverFallback,onVisibilityChange:s,popoverProps:a.popoverProps,position:"below"};if(a.popoverTriggerType==="lazy")return l.jsx(c("FDSLazyPopoverTrigger.react"),babelHelpers["extends"]({},r,{popoverResource:a.popoverResource,children:function(a,b){return v(a,b)}}));if(a.popoverTriggerType==="entryPoint"){s=r.popoverProps;var w=babelHelpers.objectWithoutPropertiesLoose(r,["popoverProps"]);return l.jsx(c("FDSEntryPointPopoverTrigger.react"),babelHelpers["extends"]({},w,{entryPointParams:a.entryPointParams,otherProps:s,popoverEntryPoint:a.popoverEntryPoint,preloadTrigger:"button_aggressive",children:function(a,b,c,d,e,f){return v(a,b,d,e,f)}}))}return l.jsx(c("FDSDeferredPopoverTrigger.react"),babelHelpers["extends"]({},r,{popoverResource:a.popoverResource,children:function(a,b){return v(a,b)}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("CometNotificationsDropdownMenuButton.react",["fbt","CometNotificationsDropdownMenuButton_actor.graphql","CometNotificationsDropdownMenuButton_notification.graphql","CometNotificationsDropdownMenuContainer.entrypoint","CometRelay","FDSListCellHoverActions.react","FDSListCellHoverButton.react","react","react-compiler-runtime","requireDeferred","useNotificationsEnvironmentFromContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;e.useCallback;var m=e.useId,n=c("requireDeferred")("OpenOptionsMenuFalcoEvent").__setRef("CometNotificationsDropdownMenuButton.react");function a(a){var e=d("react-compiler-runtime").c(24),f=a.actor$key,g=a.hidden,k=a.notification$key,o=a.onFocusChange,p=a.onHoverChange,q=a.onMenuStateChange,r=a.queryId,s=a.userId;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometNotificationsDropdownMenuButton_actor.graphql"),f);var t=d("CometRelay").useFragment(j!==void 0?j:j=b("CometNotificationsDropdownMenuButton_notification.graphql"),k);e[0]!==(t==null?void 0:t.notif_id)||e[1]!==(t==null?void 0:t.notif_type)||e[2]!==s?(f=function(){n.onReady(function(a){a=a.log;return a(function(){return{notification_data:{alert_id:t==null?void 0:t.notif_id,logger_context:"www_tab",notif_type:t==null?void 0:t.notif_type,user_id:s},ref:"www_tab"}})})},e[0]=t==null?void 0:t.notif_id,e[1]=t==null?void 0:t.notif_type,e[2]=s,e[3]=f):f=e[3];k=f;f=m();var u=c("useNotificationsEnvironmentFromContext")(),v=t==null?void 0:t.id_for_entrypoint,w=t==null?void 0:t.notif_type,x;e[4]!==u||e[5]!==f||e[6]!==r||e[7]!==v||e[8]!==w?(x={encodedNotifId:v,environment:u,menuID:f,notifType:w,queryId:r},e[4]=u,e[5]=f,e[6]=r,e[7]=v,e[8]=w,e[9]=x):x=e[9];e[10]!==(a==null?void 0:a.name)?(u=h._(/*BTDS*/"__JHASH__3pUDE4N6fxL__JHASH__",[h._param("entity name",a==null?void 0:a.name)]),e[10]=a==null?void 0:a.name,e[11]=u):u=e[11];e[12]===Symbol["for"]("react.memo_cache_sentinel")?(r={},e[12]=r):r=e[12];e[13]!==k||e[14]!==f||e[15]!==o||e[16]!==p||e[17]!==q||e[18]!==x||e[19]!==u?(v=l.jsx(c("FDSListCellHoverButton.react"),{entryPointParams:x,label:u,menuID:f,onFocusChange:o,onHoverChange:p,onMenuStateChange:q,onPress:k,popoverEntryPoint:c("CometNotificationsDropdownMenuContainer.entrypoint"),popoverProps:r,popoverTriggerType:"entryPoint",popoverType:"menu"}),e[13]=k,e[14]=f,e[15]=o,e[16]=p,e[17]=q,e[18]=x,e[19]=u,e[20]=v):v=e[20];e[21]!==g||e[22]!==v?(w=l.jsx(c("FDSListCellHoverActions.react"),{hidden:g,children:v}),e[21]=g,e[22]=v,e[23]=w):w=e[23];return w}g["default"]=a}),226);
__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("CometNotificationsListItemAttachment.react",["CometErrorBoundary.react","CometNotificationsListItemAttachment_notification.graphql","CometRelay","react","react-compiler-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=c("requireDeferred")("NotifCtaImpressionFalcoEvent").__setRef("CometNotificationsListItemAttachment.react");function a(a){var b=d("react-compiler-runtime").c(5),e=a.date,f=a.notification,g=a.notificationId;a=a.onPress;var h;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==a?(h=j.jsx(c("CometErrorBoundary.react"),{children:j.jsx(l,{date:e,notification:f,notificationId:g,onPress:a})}),b[0]=e,b[1]=f,b[2]=g,b[3]=a,b[4]=h):h=b[4];return h}function l(a){var c=d("react-compiler-runtime").c(8),e=a.date,f=a.notification,g=a.notificationId,i=a.onPress;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometNotificationsListItemAttachment_notification.graphql"),f);c[0]!==g?(f=function(a){k.onReady(function(b){b=b.log;b(function(){return{cta_type:a,notif_id:g}})})},c[0]=g,c[1]=f):f=c[1];var l=f;f=a.notif_attachments;if(f==null)return null;c[2]!==f||c[3]!==e||c[4]!==g||c[5]!==l||c[6]!==i?(a=f.map(function(a,b){return j.jsx(d("CometRelay").MatchContainer,{match:a,props:{date:e,notifAttachments:a,notificationId:g,onImpression:l,onPress:i}},b)}).filter(Boolean),c[2]=f,c[3]=e,c[4]=g,c[5]=l,c[6]=i,c[7]=a):a=c[7];f=a;return f.length===0?null:f}g["default"]=a}),98);
__d("CometNotificationsListItemSeenContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext(function(){});g["default"]=b}),98);
__d("CometNotificationsListItemSnippet_ufiIconsAndCounts.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometNotificationsListItemSnippet_ufiIconsAndCounts",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},{alias:null,args:null,concreteType:"XFBUfiIconsAndCounts",kind:"LinkedField",name:"ufi_icons_and_counts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"ufi_counts",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ufi_icon_name",storageKey:null}],storageKey:null}],type:"NotificationContextInfo",abstractKey:null};e.exports=a}),null);
__d("FBNucleusCommentOutline16Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M8 .5a7.5 7.5 0 0 1 6.638 10.994.341.341 0 0 0-.041.236l.534 2.193a1 1 0 0 1-1.208 1.208l-2.193-.534a.341.341 0 0 0-.236.04A7.5 7.5 0 1 1 8 .5zM14 8a6 6 0 1 0-3.206 5.311 1.838 1.838 0 0 1 1.29-.171l1.395.34-.34-1.395a1.836 1.836 0 0 1 .172-1.29A5.97 5.97 0 0 0 14 8z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBNucleusLikeOutline16Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M7.75.5A1.75 1.75 0 0 0 6 2.25v.196a5.23 5.23 0 0 1-.662 2.546l-.737 1.323a4.751 4.751 0 0 0-.098.185H2.25A1.75 1.75 0 0 0 .5 8.25v5c0 .966.784 1.75 1.75 1.75h9.02a3.25 3.25 0 0 0 3.164-2.506l.968-4.114A2.75 2.75 0 0 0 12.725 5H10.5V3.25A2.75 2.75 0 0 0 7.75.5zM4 13.5H2.25a.25.25 0 0 1-.25-.25v-5A.25.25 0 0 1 2.25 8H4v5.5zm1.5 0V8.628c0-.554.142-1.099.411-1.583l.738-1.322A6.73 6.73 0 0 0 7.5 2.446V2.25A.25.25 0 0 1 7.75 2C8.44 2 9 2.56 9 3.25v2c0 .69.56 1.25 1.25 1.25h2.475a1.25 1.25 0 0 1 1.217 1.536l-.968 4.115A1.75 1.75 0 0 1 11.27 13.5H5.5z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBNucleusPlayOutline16Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M13.125 9.949c1.5-.866 1.5-3.031 0-3.897l-6.75-3.898C4.875 1.288 3 2.371 3 4.103v7.794c0 1.732 1.875 2.815 3.375 1.949l6.75-3.897zm-.75-2.598a.75.75 0 0 1 0 1.299l-6.75 3.897a.75.75 0 0 1-1.125-.65V4.103a.75.75 0 0 1 1.125-.65l6.75 3.898z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBNucleusReactionCountsOutline24Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M13.801 5.366c0-.386.313-.698.698-.698.674 0 1.22.547 1.22 1.22v1.747c0 .056.046.101.102.101h1.795c.992 0 1.723.928 1.492 1.892l-.457 1.905a2.301 2.301 0 0 1-2.238 1.764h-2.995a.575.575 0 0 1-.575-.575V9.238c0-.417.097-.828.284-1.2l.285-.572a3.68 3.68 0 0 0 .39-1.65v-.45zM10.867 8.5a.767.767 0 0 0-.767.767v3.26c0 .424.343.767.767.767h.767a.384.384 0 0 0 .383-.383V8.884a.384.384 0 0 0-.383-.384h-.767z"}),i.jsx("path",{d:"M5.501 9.5a9 9 0 1 1 18 0 9 9 0 0 1-18 0zm9-7a7 7 0 1 0 0 14 7 7 0 0 0 0-14z"}),i.jsx("path",{d:"M3.59 9.017a1 1 0 0 1 .227 1.396 7 7 0 0 0 9.77 9.772 1 1 0 0 1 1.169 1.622A9 9 0 0 1 2.195 9.243a1 1 0 0 1 1.395-.226z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBNucleusShareOutline16Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M8.429 2.082A.25.25 0 0 0 8 2.257v2.991a.75.75 0 0 1-.75.75c-1.733 0-3.15.832-4.157 2.132-.89 1.149-1.444 2.653-1.567 4.21.557-.676 1.19-1.214 1.963-1.602 1.039-.522 2.262-.74 3.761-.74a.75.75 0 0 1 .75.75v3.003a.25.25 0 0 0 .43.174l5.602-5.75a.25.25 0 0 0 0-.35L8.43 2.083l.537-.523-.537.523zM6.5 2.257C6.5.687 8.407-.09 9.503 1.035l5.603 5.743a1.75 1.75 0 0 1 0 2.444l-5.603 5.75c-1.095 1.125-3.003.349-3.003-1.221v-2.23c-.98.062-1.727.25-2.338.557-.75.377-1.36.965-1.95 1.86-.329.498-.897.602-1.32.493C.466 14.32 0 13.936 0 13.304v-.306c0-2.088.672-4.19 1.907-5.786C3.01 5.786 4.577 4.754 6.5 4.54V2.257z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("CometNotificationsListItemSnippet.react",["CometNotificationsListItemSnippet_ufiIconsAndCounts.graphql","CometNotificationsTimestamp.react","CometRelay","FBNucleusCommentOutline16Icon.react","FBNucleusLikeOutline16Icon.react","FBNucleusPlayOutline16Icon.react","FBNucleusReactionCountsOutline24Icon.react","FBNucleusShareOutline16Icon.react","FDSIcon.react","FDSText.react","isStringNullOrEmpty","qex","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=Object.freeze({COMMENT:"COMMENT",LIKE:"LIKE",PLAY:"PLAY",REACTION:"REACTION",SHARE:"SHARE"}),l=h!==void 0?h:h=b("CometNotificationsListItemSnippet_ufiIconsAndCounts.graphql");function m(a){var b;if(a==null)return null;b=(b=c("qex")._("3239"))!=null?b:!1;switch(a){case k.REACTION:return b?c("FBNucleusReactionCountsOutline24Icon.react"):c("FBNucleusLikeOutline16Icon.react");case k.LIKE:return c("FBNucleusLikeOutline16Icon.react");case k.COMMENT:return c("FBNucleusCommentOutline16Icon.react");case k.SHARE:return c("FBNucleusShareOutline16Icon.react");case k.PLAY:return c("FBNucleusPlayOutline16Icon.react");default:return null}}function n(a){var b=d("react-compiler-runtime").c(11),e=a.ufiCount;a=a.ufiIcon;var f;b[0]!==a?(f=m(a),b[0]=a,b[1]=f):f=b[1];a=f;if(a==null||e==null||e<1)return null;f=(f=c("qex")._("3240"))!=null?f:!1;if(!f)return null;var g;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x6s0dn4 x3nfvp2 xvg3j5b"},g={className:"x4qyb0f"},b[2]=f,b[3]=g):(f=b[2],g=b[3]);b[4]!==a?(g=j.jsx("div",babelHelpers["extends"]({},g,{children:j.jsx(c("FDSIcon.react"),{color:"placeholder",icon:a,size:16})})),b[4]=a,b[5]=g):g=b[5];b[6]!==e?(a=j.jsx(c("FDSText.react"),{color:"placeholder",type:"body4",children:e}),b[6]=e,b[7]=a):a=b[7];b[8]!==g||b[9]!==a?(e=j.jsxs("div",babelHelpers["extends"]({},f,{children:[g,a]})),b[8]=g,b[9]=a,b[10]=e):e=b[10];return e}function o(a){var b=d("react-compiler-runtime").c(4),e=a.seenAndRead,f=a.showBoldSnippets;a=a.snippet;var g;b[0]!==e||b[1]!==f||b[2]!==a?(g=f?e?j.jsx(c("FDSText.react"),{color:"secondary",testid:void 0,type:"body4",children:a}):j.jsx(c("FDSText.react"),{color:"highlight",testid:void 0,type:"bodyLink4",children:a}):a,b[0]=e,b[1]=f,b[2]=a,b[3]=g):g=b[3];e=g;return e}function a(a){var b=d("react-compiler-runtime").c(25),e=a.contextInfo,f=a.date,g=a.seenAndRead;a=a.showBoldSnippets;e=d("CometRelay").useFragment(l,e);var h=e.short_text;e=e.ufi_icons_and_counts;h=h==null?void 0:h.text;var i;b[0]!==f||b[1]!==g?(i=j.jsx(c("CometNotificationsTimestamp.react"),{date:f,format:"minimized",seenAndRead:g}),b[0]=f,b[1]=g,b[2]=i):i=b[2];f=i;i=e.length<1;var k;b[3]!==g||b[4]!==a||b[5]!==h?(k=c("isStringNullOrEmpty")(h)?null:j.jsx(o,{seenAndRead:g,showBoldSnippets:a,snippet:h}),b[3]=g,b[4]=a,b[5]=h,b[6]=k):k=b[6];g=k;if(i){b[7]!==g||b[8]!==h?(a=!c("isStringNullOrEmpty")(h)&&j.jsxs(j.Fragment,{children:[j.jsx("span",babelHelpers["extends"]({"aria-hidden":"true"},{className:"xw3qccf xsgj6o6"},{children:"\xb7"})),g]}),b[7]=g,b[8]=h,b[9]=a):a=b[9];b[10]!==f||b[11]!==a?(k=j.jsxs(j.Fragment,{children:[f,a]}),b[10]=f,b[11]=a,b[12]=k):k=b[12];return k}b[13]!==e?(i=e.map(p),b[13]=e,b[14]=i):i=b[14];h=i;if(h.length<1)return f;b[15]===Symbol["for"]("react.memo_cache_sentinel")?(a={className:"x6s0dn4 x3nfvp2 xvg3j5b"},k={className:"x6s0dn4 x3nfvp2 xvg3j5b"},b[15]=a,b[16]=k):(a=b[15],k=b[16]);b[17]!==f?(e=j.jsx("span",babelHelpers["extends"]({},k,{children:f})),b[17]=f,b[18]=e):e=b[18];b[19]===Symbol["for"]("react.memo_cache_sentinel")?(i={className:"x6s0dn4 x3nfvp2 xvg3j5b"},b[19]=i):i=b[19];f=(k=h)!=null?k:g;b[20]!==f?(h=j.jsx("div",babelHelpers["extends"]({},i,{children:f})),b[20]=f,b[21]=h):h=b[21];b[22]!==e||b[23]!==h?(k=j.jsxs("div",babelHelpers["extends"]({},a,{children:[e,h]})),b[22]=e,b[23]=h,b[24]=k):k=b[24];return k}function p(a,b){return j.jsx(n,{ufiCount:a==null?void 0:a.ufi_counts,ufiIcon:a==null?void 0:a.ufi_icon_name},b)}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98);
__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},{args:null,kind:"FragmentSpread",name:"CometNotificationsDropdownMenuButton_actor"}],type:"Actor",abstractKey:"__isActor"};e.exports=a}),null);
__d("CometNotificationsListItem_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"hideIcon"},{defaultValue:!1,kind:"LocalArgument",name:"isToast"},{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:null,kind:"FragmentSpread",name:"CometNotificationsDropdownMenuButton_notification"},{args:[{kind:"Variable",name:"isToast",variableName:"isToast"}],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:[{args:null,kind:"FragmentSpread",name:"CometNotificationsListItemSnippet_ufiIconsAndCounts"}],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("cometNotificationsListItemIcon",["ix","ImageIconSource","getReactionSVGSource"],(function(a,b,c,d,e,f,g,h){"use strict";var i={alarm_clock:h("377559"),app_facebook:h("958818"),app_facebook_avatars_face:h("394258"),app_facebook_reels:h("157566"),app_instagram:h("958820"),app_messenger:h("958823"),app_pages:h("958824"),app_rooms:h("1395467"),"app-business-suite":h("268798"),"app-horizon":h("382687"),"app-oculus":h("20924"),"app-threads":h("396852"),arrows_left_right:h("2004500"),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"),"camcorder-cross":h("305625"),card:h("1289629"),caution_triangle:h("958837"),"caution-triangle":h("958837"),"checkmark-circle":h("353184"),circle_3:h("958838"),"circle-heart-ribbon":h("12810"),comment:h("958852"),comment_star:h("958851"),coupon:h("372864"),"default":h("958829"),"desktop-mobile":h("1964681"),diamond:h("380351"),"diamond-rise":h("110482"),direct:h("958854"),friend_add:h("958857"),friends:h("958858"),fundraiser:h("958859"),games:h("958821"),"gift-box":h("255360"),group:h("958860"),headphones:h("2007797"),heart_lock:h("1250959"),high_five_hands:h("958861"),instagram_reels:h("1951540"),link:h("421159"),marketplace:h("894424"),"messages-spotlight":h("150623"),monetization:h("339655"),music:h("232925"),notif_messages_question_live:h("1495236"),"notif-audio-wave-square":h("265477"),"notif-circle-blue-fb-pay":h("290477"),"notif-hex-star":h("340390"),"notif-megaphone-slider":h("110071"),"notif-messenger-breaking-news":h("396950"),"notif-meta":h("184314"),"notif-mp-megaphone":h("427558"),"notif-note":h("286102"),"notif-star-tip":h("1970274"),"notif-unlink":h("389964"),pencil:h("958866"),pencil_checkmark:h("958865"),"phone-cross":h("305627"),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"),"profile-professional":h("352978"),relationship:h("958875"),safety_check:h("958876"),send:h("402864"),share:h("958877"),shield:h("958878"),shops:h("1686153"),spark_ar:h("1079479"),stop:h("353186"),stories:h("1819883"),tag:h("958882"),"tag-star":h("276484"),topics:h("958883"),trending:h("152296"),trophy_star:h("158332"),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,f){if(b!=null){var g=d("getReactionSVGSource").getReactionSVGSource(b);if(g!=null)return new(c("ImageIconSource"))(g,28,28);else if(b===17&&e!=null)return new(c("ImageIconSource"))(e,28,28)}return a!=null?f===!0&&a==="app_messenger"?j("send"):j(a):null}g["default"]=a}),98);
__d("getCometNotificationURL_notification.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"getCometNotificationURL_notification"};e.exports=a}),null);
__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","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("isAccountsCenterURI")(e)||c("isAppsURI")(e))return a;else return c("absoluteToRelative")(a)}g["default"]=a}),98);
__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("useCometNotificationURL",["CometRelay","getCometNotificationURL","react-compiler-runtime","useCometNotificationURL_notification.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var e=d("react-compiler-runtime").c(2);a=d("CometRelay").useFragment(h!==void 0?h:h=b("useCometNotificationURL_notification.graphql"),a);var f;e[0]!==a?(f=c("getCometNotificationURL")(a),e[0]=a,e[1]=f):f=e[1];return f}g["default"]=a}),98);
__d("CometNotificationsUpdateSeenStateMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9689526877756190"}),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("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,i=(h||d("react")).useMemo;function a(a){var b=a.accessibilityString,e=a.mutationLogger,f=a.notifId,g=a.queryEnvironment,h=a.queryID,j=a.receivedNotificationIdsRef,k=a.seenState,l=a.timestamp,m=a.triggerAccessibilityAlert,n=a.updater,o=a.updateType,p=d("CometRelay").useRelayEnvironment();return i(function(){var a=c("createCancelableFunction")(function(){return n({accessibilityString:b,environment:p,mutationLogger:e,notifId:f,queryEnvironment:g,queryID:h,receivedNotificationIdsRef:j,seenState:k,timestamp:l,triggerAccessibilityAlert:m,updateType:o})}),d=!1,i=c("CometThrottle")(function(){d=!1,a()},1e3,{leading:!0}),q=function(){d=!0,i()};q.dispose=function(){d&&a(),a.cancel()};return q},[n,b,p,e,f,g,h,j,k,l,m,o])}g["default"]=a}),98);
__d("useHandleUpdateSingleNotifReadState",["CometNotificationsUpdateSeenStateMutation","react-compiler-runtime","recoverableViolation","useGetCancellableSeenStateCallback"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=a.environment,e=a.mutationLogger,f=a.notifId,g=a.queryEnvironment,h=a.queryID,i=a.seenState;a=a.updateType;if(f==null||e==null||i==null||a==null)return;d("CometNotificationsUpdateSeenStateMutation").CometNotificationsUpdateSeenStateMutation(b,{environment:g,input:{environment:g,is_comet:!0,last_notif_sync_time:0,notif_ids:[f],query_id:h,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){var b=d("react-compiler-runtime").c(2),e;b[0]!==a?(e=babelHelpers["extends"]({},a,{updater:h}),b[0]=a,b[1]=e):e=b[1];return c("useGetCancellableSeenStateCallback")(e)}g["default"]=a}),98);
__d("useNotificationsImpressionLogger",["gkx","react","react-compiler-runtime","requireDeferred","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;var i=c("requireDeferred")("NotifImpressionEventsFalcoEvent").__setRef("useNotificationsImpressionLogger");function a(a){var b=d("react-compiler-runtime").c(9),e=a.actorId,f=a.loggerContext,g=a.notifId,h=a.trackingData;b[0]!==e||b[1]!==f||b[2]!==g||b[3]!==h?(a=function(a){a=a.visibleDuration;var b={notification_data:{duration:String(a),logger_context:f,notif_id:g,user_id:e},ref:"www_tab",tracking:JSON.stringify(h)};i.onReady(function(a){a=a.log;return a(function(){return b})})},b[0]=e,b[1]=f,b[2]=g,b[3]=h,b[4]=a):a=b[4];a=a;var j;b[5]!==a?(j={onImpressionEnd:a},b[5]=a,b[6]=j):j=b[6];a=c("usePartialViewImpression")(j);b[7]!==a?(j=[a,null],b[7]=a,b[8]=j):j=b[8];return j}g["default"]=a}),98);
__d("useScrollToNotif",["CometRouteMatch","XCometNotificationsControllerRouteBuilder","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useRef;function a(a){var b,e=d("react-compiler-runtime").c(5),f=(b=d("CometRouteMatch")).useCurrentRouteMatcher(b.MatchFunctions.urlMatchFunction);b=b.useHostedRouteMatcher(b.MatchFunctions.urlMatchFunction);var g;e[0]!==b||e[1]!==a?(g=a!=null?b(a):!1,e[0]=b,e[1]=a,e[2]=g):g=e[2];b=g;a=f(c("XCometNotificationsControllerRouteBuilder").buildURL({}).toString());g=i(b&&!a);e[3]!==b?(f=[b,g],e[3]=b,e[4]=f):f=e[4];return f}g.useScrollToNotif=a}),98);
__d("CometNotificationsListItem.react",["fbt","CometBoldedEntityRenderer","CometEmojiTransform","CometEmoticonTransform","CometFocusTableContext","CometListCellStrict_DEPRECATED.react","CometNotificationsDropdownMenuButton.react","CometNotificationsListItemAttachment.react","CometNotificationsListItemSeenContext","CometNotificationsListItemSnippet.react","CometNotificationsListItem_actor.graphql","CometNotificationsListItem_notification.graphql","CometNotificationsMutationLogger","CometNotificationsTimestamp.react","CometPassiveGetRouterStateContext","CometPressable.react","CometProductAttribution","CometRelay","CometTextWithEntitiesRelay.react","FDSBadge.react","FDSIcon.react","FocusWithinHandler.react","MWFacebookUserWithoutMessengerAccess","cometNotificationsListItemIcon","mergeRefs","qex","react","requireDeferred","scrollIntoView","useCometNotificationURL","useHandleUpdateSingleNotifReadState","useMenuButtonVisibilityState","useNotificationsEnvironmentFromContext","useNotificationsImpressionLogger","useScrollToNotif","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useLayoutEffect,p=e.useMemo,q=e.useRef,r=c("requireDeferred")("NotifClickEventsFalcoEvent").__setRef("CometNotificationsListItem.react"),s={pressable:{alignItems:"x6s0dn4",display:"x78zum5",height:"xsdox4t",justifyContent:"xl56j7k",paddingStart:"x1e558r4",width:"xw4jnvo",$$css:!0}},t={"*":[c("CometBoldedEntityRenderer")]},u=[c("CometEmoticonTransform")(),c("CometEmojiTransform")()],aa=i!==void 0?i:i=b("CometNotificationsListItem_actor.graphql"),ba=j!==void 0?j:j=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,v=a.onClose,w=a.preventLocalNavigation,x=a.queryID,y=a.replace,z=a.routeTarget,A=a.shouldOpenInBlankTarget,B=a.shouldPrefetch;B=B===void 0?!1:B;var C=a.showSelectedState,ca=C===void 0?!1:C,D=a.trackingData,E=d("CometRelay").useFragment(aa,b),F=d("CometRelay").useFragment(ba,g);C=c("useCometNotificationURL")(F);a=F.body;b=F.context_info;g=F.creation_time;var G=F.id,da=F.notif_attachments,H=F.notif_id,I=F.notif_image,J=F.notif_type,K=F.seen_state,L=F.tracking,M=q(null),N=E==null?void 0:E.id,O=(e=e)!=null?e:!1;e=babelHelpers["extends"]({navigation_source:"notifications_click"},J!=null?{notif_type:J}:null);var P=p(function(){var a;return(a=D)!=null?a:{notif_tracking:L}},[L,D]),ea={onNavigate:v,passthroughProps:{initialTracePolicy:"comet.notifications",notification_id:(v=H)!=null?v:void 0,notificationTracking:P,notificationType:J,ref:"notification"},prefetchQueriesOnHover:B,preventLocalNavigation:(v=w)!=null?v:!1,productAttribution:{tap_point:"via_notification"},replace:(B=y)!=null?B:void 0,routeTarget:O?"content":(w=z)!=null?w:void 0,target:A===!0?"_blank":void 0,traceParams:e,url:(v=C)!=null?v:void 0};y=d("useScrollToNotif").useScrollToNotif(C);var fa=y[0],Q=y[1],R=Q.current;B=n(c("CometFocusTableContext"));var S=B.FocusCell;z=B.FocusRow;var ga=(w=z)!=null?w:l.Fragment;o(function(){M.current!=null&&R&&(c("scrollIntoView")(M.current,{behavior:"auto",verticalAlign:"center"}),Q.current=!1)},[R,Q]);A=c("useNotificationsEnvironmentFromContext")();var T=c("useHandleUpdateSingleNotifReadState")({accessibilityString:h._(/*BTDS*/"__JHASH__c_y3p8iLeMa__JHASH__"),mutationLogger:d("CometNotificationsMutationLogger").notificationMarkAsReadStart,notifId:G,queryEnvironment:A,queryID:x,seenState:K,timestamp:null,updateType:"MARK_READ"}),U=n(c("CometPassiveGetRouterStateContext")),ha=m(function(){G!=null&&N!=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=H)!=null?a:"",logger_context:(a=j)!=null?a:"",to_user:N},ref:i?"notifications_route":"www_tab",tracking:JSON.stringify(D)}})}),T())},[N,T,i,j,H,G,k,U,D]),V=a;e=g==null?void 0:g.timestamp;v=I==null?void 0:I.uri;C=c("useMenuButtonVisibilityState")();var ia=C[0];y=C[1];var W=y.setListItemHovered,ja=y.setMenuBtnFocused,ka=y.setMenuBtnHovered,la=y.setMenuOpened,ma=m(function(){W(!1)},[W]),na=m(function(){W(!0)},[W]);B=c("useNotificationsImpressionLogger")({actorId:N,loggerContext:j,notifId:H,trackingData:P});var X=B[0],oa=B[1],pa=n(c("CometNotificationsListItemSeenContext")),Y=c("useVisibilityObserver")({onVisible:function(){pa(G)}}),qa=p(function(){if(j==="www_tab"||j==="beeper")return c("mergeRefs")(X,M,Y);else return M},[Y,j,X]);z=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess();if(G==null||V==null||v==null||K==null||e==null)return null;w=new Date(e*1e3);var Z=K==="SEEN_AND_READ";a=(A=F.icon_data)==null?void 0:A.reaction_type;I=(g=F.icon_data)==null?void 0:g.glyph_name;y=(C=F.icon_data)==null?void 0:C.glyph_icon_url;P=c("cometNotificationsListItemIcon")(I,a,y,z);B=P!=null?{backgroundColor:"transparent",icon:l.jsx(c("FDSIcon.react"),{color:"white",icon:P}),size:28,type:"activityBadge"}:null;a===17&&(B.overflow="visible");K=(e=c("qex")._("570"))!=null?e:!1;var ra={addOn:B,shape:"circle",size:56,source:{uri:v},type:"profile-photo"},sa={component:l.jsx(c("CometNotificationsListItemAttachment.react"),{date:w,notification:F,notificationId:(A=F.notif_id)!=null?A:"",onPress:T}),type:"override-column"};g=F==null?void 0:F.is_hidden;if(g===!0)return null;var $=da.find(function(a){return a.inline_survey!=null})!=null,ta=b!=null?l.jsx(c("CometNotificationsListItemSnippet.react"),{contextInfo:b,date:w,seenAndRead:Z,showBoldSnippets:K}):l.jsx(c("CometNotificationsTimestamp.react"),{date:w,format:"minimized",seenAndRead:Z});return l.jsx(c("FocusWithinHandler.react"),{children:function(a,b){a=J!=="friend"&&J!=="page_invite"&&!$?l.jsx(c("CometNotificationsDropdownMenuButton.react"),{actor$key:E,hidden:f||O||!(a&&b)&&!ia,notification$key:F,onFocusChange:ja,onHoverChange:ka,onMenuStateChange:la,queryId:x,userId:N}):null;return l.jsx(ga,{children:l.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6"},{onMouseEnter:na,onMouseLeave:ma,ref:qa,role:"listitem",children:[oa,l.jsx(c("CometListCellStrict_DEPRECATED.react"),{addOnBottom:sa,addOnEnd:{addOn:Z?l.jsx("div",{className:"x1kpxq89 xsmyaan"}):l.jsx(c("CometPressable.react"),{expanding:!0,onPress:T,overlayDisabled:!0,role:"button",testid:void 0,xstyle:s.pressable,children:l.jsx(c("FDSBadge.react"),{accessibilityText:h._(/*BTDS*/"__JHASH__FMcS03S-vzX__JHASH__"),color:"blue",isProfileBadge:!0,size:12})}),type:"body"},addOnEndVerticalAlign:$?"top":"center",addOnStart:ra,body:l.jsxs(l.Fragment,{children:[Z?null:l.jsx("div",babelHelpers["extends"]({className:"xzpqnlu x179tack x10l6tqk xdnwjd9"},{children:h._(/*BTDS*/"__JHASH__0NXUkEu5yQv__JHASH__")})),l.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:t,textWithEntities:V,transforms:u})]}),bodyColor:Z?"secondary":"primary",bodyLineLimit:3,linkProps:ea,meta:ta,metaLineLimit:1,onPress:ha,role:"none",selected:fa&&ca,testid:void 0}),S?l.jsx(S,{"aria-label":h._(/*BTDS*/"__JHASH__SJFVJ1HCRT3__JHASH__"),children:a}):a]}))})}})}a.displayName=a.name+" [from "+f.id+"]";e=l.memo(a);g["default"]=e}),226);