DEVHorizonNotifsIcon.react",["fbt","CometRelay","DDSIcon.react","DDSIconButton.react","DEVHorizonNotifsIcon_user.graphql","MCDSIconBellOutline.svg.react","OCNotificationSeenState","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.onTrigger;a=a.user;a=d("CometRelay").useFragment(i!==void 0?i:i=b("DEVHorizonNotifsIcon_user.graphql"),a);a=(a=a==null?void 0:(a=a.firstNotifs)==null?void 0:a.nodes)!=null?a:[];a=a.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0;return k.jsx(c("DDSIconButton.react"),{"aria-label":h._("Notification"),icon:k.jsx(c("DDSIcon.react"),{icon:c("MCDSIconBellOutline.svg.react"),size:24}),type:"plain_primary",xstyle:a?l.unread:null,onClick:e})}a.displayName=a.name+" [from "+f.id+"]";var l={unread:{position:"x1n2onr6",":after_backgroundColor":"xdbvhc1",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x1ov1wlf",":after_left":"xzjh0ul",":after_start":null,":after_end":null,":after_position":"x1x824oc",":after_top":"x1cccnb1",":after_width":"x15kld0r",$$css:!0}};g.DEVHorizonNotifsIcon=a}),226);
-----
DEVHorizonNotificationsIcon.react",["fbt","CometRelay","DDSIcon.react","DDSIconButton.react","DEVHorizonNotificationsIcon_user.graphql","MCDSIconBellOutline.svg.react","OCDevManageDevCenterAllowedNotifTypes","OCDevManageNotificationItemRenderer.react","OCNotificationSeenState","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.onTrigger;a=a.user;a=d("CometRelay").useFragment(i!==void 0?i:i=b("DEVHorizonNotificationsIcon_user.graphql"),a);a=(a=a==null?void 0:(a=a.firstNotifs)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||c("OCDevManageDevCenterAllowedNotifTypes").has((b=a.xnotif_type)!=null?b:"")}))!=null?a:[];a=a.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0;return k.jsx(c("DDSIconButton.react"),{"aria-label":h._("__JHASH__yE4DafY-P_i__JHASH__"),icon:k.jsx(c("DDSIcon.react"),{icon:c("MCDSIconBellOutline.svg.react"),size:24}),type:"plain_primary",xstyle:a?l.unread:null,onClick:e})}a.displayName=a.name+" [from "+f.id+"]";var l={unread:{position:"x1n2onr6",":after_backgroundColor":"xdbvhc1",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x1ov1wlf",":after_left":"xzjh0ul",":after_start":null,":after_end":null,":after_position":"x1x824oc",":after_top":"x1cccnb1",":after_width":"x15kld0r",$$css:!0}};g.DEVHorizonNotificationsIcon=a}),226);
-----
OCDevManageNotificationItemContextMenuButton.react",["fbt","GeoButton.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoMenuItem.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSpinner.react","OCDevManageNotificationItemContextMenuButtonQuery.graphql","OCDevManageNotificationItemContextMenuButtonUnsubscribeMutation.graphql","OCNotificationSeenState","OCNotificationToDevelopersPreferenceCategoriesToTitles","asyncToGeneratorRuntime","react","useOCDevUICommitMutation","useOCDevUIQuery"],(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.useState;function a(a){var d=a.notificationCategory,e=a.saveSeenState;a=a.seenState;var f=n(!1),g=f[0],k=f[1];f=n(!1);var o=f[0],p=f[1];f=a===c("OCNotificationSeenState").SEEN_AND_READ;a=c("useOCDevUIQuery")(i!==void 0?i:i=b("OCDevManageNotificationItemContextMenuButtonQuery.graphql"),{});var q=a.viewer,r=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageNotificationItemContextMenuButtonUnsubscribeMutation.graphql")),s=m(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;yield r({input:{actor_id:(b=q==null?void 0:(b=q.user)==null?void 0:b.id)!=null?b:"",category:a,medium:"PUSH"}})});return function(b){return a.apply(this,arguments)}}(),[r,q==null?void 0:(a=q.user)==null?void 0:a.id]);function t(){return u.apply(this,arguments)}function u(){u=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){k(!0),yield e(c("OCNotificationSeenState").SEEN_AND_READ),k(!1)});return u.apply(this,arguments)}function v(){return w.apply(this,arguments)}function w(){w=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){k(!0),yield e(c("OCNotificationSeenState").SEEN_BUT_UNREAD),k(!1)});return w.apply(this,arguments)}function x(){return y.apply(this,arguments)}function y(){y=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){k(!0),yield s(d),k(!1),p(!1)});return y.apply(this,arguments)}a=(a=c("OCNotificationToDevelopersPreferenceCategoriesToTitles").preferences_with_titles.filter(function(a){return a.category===d}))!=null?a:[];a=(a=(a=a[0])==null?void 0:a.title)!=null?a:"this category of";a="Unsubscribe from "+a.toLowerCase()+" notifications?";return l.jsxs(c("GeoFlexbox.react"),{children:[g?l.jsx(c("GeoSpinner.react"),{center:!0,size:"small"}):l.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:"More Items",useEllipsisIcon:!0,children:[f?l.jsx(c("GeoMenuItem.react"),{label:h._("__JHASH__G1RlNy4xyjR__JHASH__"),onClick:v}):l.jsx(c("GeoMenuItem.react"),{label:h._("__JHASH__H8pe0B-j0YR__JHASH__"),onClick:t}),l.jsx(c("GeoMenuItem.react"),{label:h._("__JHASH__gD9fOV__NUj__JHASH__"),onClick:function(){return p(!0)}})]}),o&&l.jsx(c("GeoModal.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{isDisabled:g,isLoading:g,label:h._("__JHASH__JqwOqkm-kJn__JHASH__"),variant:"primary",onClick:x}),secondaryButton:l.jsx(c("GeoButton.react"),{label:h._("__JHASH__LMrp-5eslu6__JHASH__"),onClick:function(){return p(!1)}})}),header:l.jsx(c("GeoModalHeader.react"),{heading:a}),isShown:o,onHide:function(){return p(!1)},children:l.jsx(c("GeoSection.react"),{children:h._("__JHASH__CH9LXStPkz-__JHASH__")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageNotificationItemDropdownButton.react",["fbt","GeoDropdownMenu.react","GeoFlexbox.react","GeoMenuItem.react","GeoSpinner.react","OCNotificationSeenState","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(a){var d=a.saveSeenState;a=a.seenState;var e=k(!1),f=e[0],g=e[1];e=a===c("OCNotificationSeenState").SEEN_AND_READ;function i(){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){g(!0),yield d(c("OCNotificationSeenState").SEEN_AND_READ),g(!1)});return l.apply(this,arguments)}function m(){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){g(!0),yield d(c("OCNotificationSeenState").SEEN_BUT_UNREAD),g(!1)});return n.apply(this,arguments)}return j.jsx(c("GeoFlexbox.react"),{children:f?j.jsx(c("GeoSpinner.react"),{center:!0,size:"small"}):j.jsx(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:"More Items",useEllipsisIcon:!0,children:e?j.jsx(c("GeoMenuItem.react"),{label:h._("Mark as unread"),onClick:m}):j.jsx(c("GeoMenuItem.react"),{label:h._("Mark as read"),onClick:i})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCNotificationsItem.react",["ix","Image.react","OCCoreUtils","OCDSHeading.react","OCDSSpacer.react","OCDSText.react","OCErrorBoundary","OCNotificationSeenStateMutation","OCNotificationsItem_notification.graphql","OCWWWNotificationType","RelayHooks","ShimButton.react","Timestamp.react","goURI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function l(a,b){var c=h("1062946");a=JSON.parse((a=a)!=null?a:"{}");switch(b){case d("OCWWWNotificationType").OCWWWNotificationTypes.OC_FRIEND_RATED_APP:return(b=a.user_photo)!=null?b:c;default:return(b=a.application_photo)!=null?b:c}}function a(a){var e=a.notification;a=a.userID;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCNotificationsItem_notification.graphql"),e),g=f==null?void 0:(e=f.rendered_notification)==null?void 0:e.deeplink_uri;if(g==null||g.length===0||a==null)return null;a=l(f==null?void 0:(e=f.rendered_notification)==null?void 0:e.extra_data,f==null?void 0:f.notification_type);e=function(){var a=f==null?void 0:f.id,b=f==null?void 0:f.seen_state;a!=null&&b!=="SEEN_AND_READ"&&d("OCNotificationSeenStateMutation").commit({new_seen_state:"SEEN_AND_READ",notification_id:a});c("goURI")(g)};return k.jsx(c("OCErrorBoundary"),{fallback:null,children:k.jsx("div",{className:"xso031l x1q0q8m5 x135p29s x6ikm8r x1u8hfhx x13dflua xwji4o3 xodtfm x14tvv71",children:k.jsxs(c("ShimButton.react"),{className:"x1ypdohk x78zum5 x9orja2 x84yb8i xh8yej3 xpu943t xqbx146 x1w6t2hj xe5l7su x3zyd9n xhzu03u",onClick:e,children:[k.jsx("div",{className:"x1qx7dla xxsxjwm",children:k.jsx(c("Image.react"),{className:"x1ok221b xh8yej3",src:a})}),k.jsxs("div",{children:[(f==null?void 0:(e=f.rendered_notification)==null?void 0:e.message)!=null&&k.jsx(c("OCDSHeading.react"),{type:"heading4",children:f==null?void 0:(a=f.rendered_notification)==null?void 0:a.message}),k.jsx(c("OCDSSpacer.react"),{bottomSize:"small"}),k.jsx(c("OCDSText.react"),{color:"gray",type:"legal",children:k.jsx(c("Timestamp.react"),{text:d("OCCoreUtils").formatDate((e=f==null?void 0:f.send_time)!=null?e:Math.round(Date.now()/1e3),"M d, g:iA"),time:f==null?void 0:f.send_time})})]})]},f==null?void 0:f.id)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCNotificationSeenStateMutation",["OCNotificationSeenStateMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("OCNotificationSeenStateMutation.graphql");function a(a){return new(i||(i=b("Promise")))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:j,variables:{input:a},optimisticUpdater:function(b){b=b.get(a.notification_id);if(b==null)return;b.setValue(a.new_seen_state,"seen_state")},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=a}),98);
-----
OCNotificationSeenStateMutation.graphql",["OCNotificationSeenStateMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCNotificationSeenStateMutation",selections:[{alias:null,args:c,concreteType:"SetSeenStateNotificationResponsePayload",kind:"LinkedField",name:"set_seen_state_notification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCNotificationsItem_notification"}],storageKey:null},d],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCNotificationSeenStateMutation",selections:[{alias:null,args:c,concreteType:"SetSeenStateNotificationResponsePayload",kind:"LinkedField",name:"set_seen_state_notification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"send_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notification_type",storageKey:null},{alias:null,args:null,concreteType:"RenderedNotification",kind:"LinkedField",name:"rendered_notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deeplink_uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extra_data",storageKey:null}],storageKey:null}],storageKey:null},d],storageKey:null}]},params:{id:b("OCNotificationSeenStateMutation_oculusRelayOperation"),metadata:{},name:"OCNotificationSeenStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCNotificationSeenStateMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5621785697838526"}),null);
-----
OCDevManageNotificationItemDropdownButton.react",["fbt","GeoDropdownMenu.react","GeoFlexbox.react","GeoMenuItem.react","GeoSpinner.react","OCNotificationSeenState","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState;function a(a){var d=a.saveSeenState;a=a.seenState;var e=k(!1),f=e[0],g=e[1];e=a===c("OCNotificationSeenState").SEEN_AND_READ;function i(){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){g(!0),yield d(c("OCNotificationSeenState").SEEN_AND_READ),g(!1)});return l.apply(this,arguments)}function m(){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){g(!0),yield d(c("OCNotificationSeenState").SEEN_BUT_UNREAD),g(!1)});return n.apply(this,arguments)}return j.jsx(c("GeoFlexbox.react"),{children:f?j.jsx(c("GeoSpinner.react"),{center:!0,size:"small"}):j.jsx(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:"More Items",useEllipsisIcon:!0,children:e?j.jsx(c("GeoMenuItem.react"),{label:h._("Mark as unread"),onClick:m}):j.jsx(c("GeoMenuItem.react"),{label:h._("Mark as read"),onClick:i})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterTopNavNotificationsButton.react",["cx","fbt","ContextualLayer.react","ContextualLayerHideOnScrollOut","ContextualLayerUpdateOnScroll","GeoFlexbox.react","LayerHideOnBlur","LayerHideOnEscape","OCDSButton.react","OCDSHorizontalDivider.react","OCDSText.react","OCDevCenterDesignSystemContext","OCDevCenterTopNavNotificationsButtonQueryRendererQuery.graphql","OCDevCenterTopNavNotificationsButton_user.graphql","OCDevCenterUILink.react","OCDevCenterUIText.react","OCDevManageDevCenterAllowedNotifTypes","OCDevManageNotificationItemRenderer.react","OCDevManageNotificationsRoute","OCNotificationSeenState","OCURIUtil","RelayHooks","geoMargin","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.Suspense,o=e.useRef,p=e.useState;function q(a){var e=a.user;a=a.xstyle;var f=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterTopNavNotificationsButton_user.graphql"),e);e=p(!1);var g=e[0],h=e[1],k=o(),l=(e=f==null?void 0:(e=f.first5Notifs)==null?void 0:(e=e.nodes)==null?void 0:e.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||c("OCDevManageDevCenterAllowedNotifTypes").has((b=a.xnotif_type)!=null?b:"")}))!=null?e:[],n=(e=l.length)!=null?e:0;function q(){return f==null?m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",justifyContent:"center",xstyle:s.loading,children:[m.jsx(c("OCDevCenterUIText.react"),{type:"body",xstyle:c("geoMargin").bottom16,children:i._("You must be logged in to view your notifications.")}),m.jsx(c("OCDSButton.react"),{href:d("OCURIUtil").getLoginURIWithRedirect(),label:i._("u767bu5f55"),size:"small",type:"primary"})]}):n===0?m.jsx(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"center",xstyle:s.loading,children:m.jsx(c("OCDSText.react"),{children:i._("You don"t have any notifications")})}):m.jsxs("div",{children:[m.jsx(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext.Provider,{value:d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.OCDS,children:l.map(function(a,b){return m.jsxs("div",{children:[m.jsx(d("OCDevManageNotificationItemRenderer.react").OCDevManageNotificationItemRenderer,{notification:a},a.id),b!==n-1?m.jsx(c("OCDSHorizontalDivider.react"),{xstyle:[c("geoMargin").horiz16,c("geoMargin").vert0,s.divider]}):null]},a.id)})}),m.jsx(c("GeoFlexbox.react"),{justifyContent:"center",xstyle:s.seeAll,children:m.jsx(c("OCDevCenterUILink.react"),{href:c("OCDevManageNotificationsRoute").getURI(),target:"_blank",children:i._("u67e5u770bu5168u90e8")})})]})}return m.jsxs("div",{children:[m.jsx(c("OCDSButton.react"),{icon:"bell",isLabelHidden:!0,label:i._("u901au77e5"),ref:k,type:"tertiary",xstyle:[l.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0&&s.unread,a],onClick:function(){return h(function(a){return!a})}}),m.jsx(c("ContextualLayer.react"),{alignment:"right",behaviors:{ContextualLayerHideOnScrollOut:c("ContextualLayerHideOnScrollOut"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape")},className:"x131sewu",contextRef:function(){return k.current},offsetY:17,position:"below",shown:g,onToggle:h,children:g&&m.jsx("div",{className:c("joinClasses")("x12peec7 x5g1o6z x2je0ic x1j0jlm x1lj5riy x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x178xt8z xm81vs4 xso031l xy80clv x1n2onr6 x1l2rt3b x2g1qao x1u5tia8 x1up3fal x13o500e","_9vz9"),children:m.jsx("div",{children:q()})})})]})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var c=d("RelayHooks").useLazyLoadQuery(k!==void 0?k:k=b("OCDevCenterTopNavNotificationsButtonQueryRendererQuery.graphql"),{},{fetchPolicy:"network-only",networkCacheConfig:{poll:6e4}});c=c.viewer;return m.jsx(q,babelHelpers["extends"]({user:c==null?void 0:c.user},a))}r.displayName=r.name+" [from "+f.id+"]";function a(a){return m.jsx(n,{fallback:m.jsx(q,babelHelpers["extends"]({},a,{user:null})),children:m.jsx(r,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";var s={divider:{":first-child_display":"xh99ass",$$css:!0},loading:{height:"x1m3v4wt",$$css:!0},seeAll:{paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",$$css:!0},unread:{position:"x1n2onr6",":after_backgroundColor":"x7f94y0",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x180p3mr",":after_left":"xz91bp8",":after_start":null,":after_end":null,":after_position":"x1x824oc",":after_top":"x1nwlx8",":after_width":"xkic36c",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageNotificationItem.react",["fbt","ix","GeoBaseListRow.react","GeoBaseText.react","GeoFlexbox.react","Image.react","OCDevCenterDesignSystemContext","OCDevCenterUIText.react","OCDevManageNotificationItemMutation.graphql","OCDevManageNotificationItemReadStatusButton.react","OCDevUILink.react","OCNotificationSeenState","Timestamp.react","asyncToGeneratorRuntime","geoMargin","gkx","react","stylex","useGeoTheme","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useCallback,o=e.useContext,p=e.useEffect;function a(a){var e,g=a.clickLogger,l=a.href,r=a.imageSrc,s=a.notificationID,t=a.seenState,u=a.sendTime;a=a.title;var v=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageNotificationItemMutation.graphql")),w=n(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield v({input:{notification_id:s,new_seen_state:a}})});return function(b){return a.apply(this,arguments)}}(),[v,s]);p(function(){t===c("OCNotificationSeenState").UNSEEN_AND_UNREAD&&void w(c("OCNotificationSeenState").SEEN_BUT_UNREAD)},[w,t]);var x=o(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext)===d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.GEODESIC;u=h._("{timestamp} ago",[h._param("timestamp",m.jsx(c("Timestamp.react"),{minimize:!0,shorten:!0,time:u,useLargerTimeUnits:!0}))]);e=(e=r)!=null?e:i("9719");function y(){return m.jsx(c("OCDevManageNotificationItemReadStatusButton.react"),{seenState:t,onMarkAsRead:function(){return w(c("OCNotificationSeenState").SEEN_AND_READ)}})}y.displayName=y.name+" [from "+f.id+"]";var z=c("useGeoTheme")();z=z.selectBorderRadius;return m.jsx(m.Fragment,{children:c("gkx")("4579")?m.jsx(c("GeoFlexbox.react"),{alignItems:"center",xstyle:q.container,children:m.jsx(c("OCDevUILink.react"),{href:l,showUnderline:"never",target:"_blank",onClick:function(){g&&g(),void w(c("OCNotificationSeenState").CLICKED)},children:m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[y(),m.jsx(c("Image.react"),{className:(k||(k=c("stylex")))(q.image,r==null&&q.border),height:60,src:e,width:60}),m.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[m.jsx(c("GeoBaseText.react"),{color:"value",display:"block",size:"value",children:a}),m.jsx(c("GeoBaseText.react"),{color:"value",display:"block",size:"accent",children:u})]})]})})}):m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[x?y():null,m.jsx("div",{className:"x1iyjqo2",children:x?m.jsx(c("GeoBaseListRow.react"),{accessibilityRole:"link",description:u,isFocusable:!0,label:a,link:{url:l,target:"_blank"},media:m.jsx(c("Image.react"),{className:(k||(k=c("stylex")))(z({context:"addon"})),height:60,src:e,width:60}),onPress:function(){g&&g(),void w(c("OCNotificationSeenState").CLICKED)}}):m.jsx(c("OCDevUILink.react"),{href:l,target:"_blank",onClick:function(){return w(c("OCNotificationSeenState").CLICKED)},children:m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:q.notification,children:[y(),m.jsx(c("Image.react"),{className:(k||(k=c("stylex")))(q.image,r==null&&q.border),height:60,src:e,width:60}),m.jsxs("div",{children:[m.jsx(c("OCDevCenterUIText.react"),{type:"menu",children:a}),m.jsx(c("OCDevCenterUIText.react"),{type:"legal",xstyle:[c("geoMargin").top4,c("geoMargin").bottom0],children:u})]})]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";var q={border:{borderTopColor:"x18yzn9e",borderEndColor:"x1sdj3jo",borderBottomColor:"x1bjysxg",borderStartColor:"x13z2wwu",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",$$css:!0},container:{flexGrow:"x1iyjqo2",$$css:!0},image:{boxSizing:"x9f619",flexShrink:"x2lah0s",marginRight:"xyo1k6t",marginStart:null,marginEnd:null,$$css:!0},notification:{paddingStart:"x1swvt13",paddingLeft:null,paddingRight:null,paddingEnd:"x1pi30zi",paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageNotificationItemRenderer.react",["fbt","OCDevManageComplianceDashboardNotificationsLogger.react","OCDevManageDevCenterAllowedNotifTypes","OCDevManageDevCenterContentLaunchNotification.react","OCDevManageDevCenterDeveloperQPNotification.react","OCDevManageDeveloperMonthlyReleaseNotification.react","OCDevManageDeveloperNewToolUpdateNotification.react","OCDevManageEventReviewedDeveloperNotification.react","OCDevManageFirstAccessContentLaunchNotification.react","OCDevManageFirstAccessNewAnnouncementNotification.react","OCDevManageFirstAccessNewPostNotification.react","OCDevManageFirstAccessPostUpdateNotification.react","OCDevManageKeysCampaignApprovedDeveloperNotification.react","OCDevManageKeysReadyForDownloadDeveloperNotification.react","OCDevManageMemberAddedToOrgDeveloperNotification.react","OCDevManageNewDeveloperBlogPostNotification.react","OCDevManageNotificationCategoriesEnum","OCDevManageNotificationItem.react","OCDevManageNotificationItemRenderer_notification.graphql","OCDevManagePayoutPaymentActivityNotification.react","OCDevManageSubmissionApprovedDeveloperNotification.react","OCDevManageSubmissionContentReviewCompleteDeveloperNotification.react","OCDevManageSubmissionDevRelClaimNotification.react","OCDevManageSubscribeToAnalyticsEmailNotification.react","OCDeveloperXNotificationType","OCNotificationSeenState","RelayHooks","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=9201,m="oculus_dev_push_notification",n="qp_notifs";function o(a,b){return!a.startsWith(n)?!1:(b==null?void 0:(a=b.qp)==null?void 0:a.nux_id)===l&&(b==null?void 0:(a=b.qp)==null?void 0:a.template_name)===m}function a(a){var c=a.notification;a=a.onRead;c=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageNotificationItemRenderer_notification.graphql"),c);var e=c.id,f=c.seen_state,g=c.send_time,h=c.xnotif_type;c=(c=c==null?void 0:c.rendered_notification)!=null?c:{};var j=c.deeplink_uri,k=c.extra_data;c=c.message;e={id:e,notificationSeenState:f,sendTime:g,notificationType:h,deeplinkURI:j,extraData:k,message:c,onRead:a};return p(e)}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.deeplinkURI,e=a.extraData,f=a.id,g=a.message,i=a.notificationSeenState,j=a.notificationType,l=a.onRead,m=a.sendTime,n=(a=i)!=null?a:c("OCNotificationSeenState").SEEN_BUT_UNREAD;if(e==null||f==null||m==null)return null;var p=JSON.parse(e);a=o((i=j)!=null?i:"",p);if(!a&&!c("OCDevManageDevCenterAllowedNotifTypes").has((e=j)!=null?e:""))return null;i={data:p,deeplinkURI:(i=b)!=null?i:"",seenState:n,message:(e=g)!=null?e:"",notificationID:f,sendTime:m,onRead:l};if(a)return k.jsx(c("OCDevManageDevCenterDeveloperQPNotification.react"),babelHelpers["extends"]({},i));switch(j==null?void 0:j.toLowerCase()){case c("OCDeveloperXNotificationType").DEVELOPER_CONTENT_REVIEW_COMPLETE:return k.jsx(c("OCDevManageSubmissionContentReviewCompleteDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").DEVELOPER_EVENT_REVIEWED:return k.jsx(c("OCDevManageEventReviewedDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").DEVELOPER_KEYS_CAMPAIGN_APPROVED:return k.jsx(c("OCDevManageKeysCampaignApprovedDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").DEVELOPER_KEYS_READY_FOR_DOWNLOAD:return k.jsx(c("OCDevManageKeysReadyForDownloadDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").DEVELOPER_MEMBER_ADDED_TO_ORG:return k.jsx(c("OCDevManageMemberAddedToOrgDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").DEVELOPER_SUBSCRIBE_TO_ANALYTICS_EMAIL:return k.jsx(c("OCDevManageSubscribeToAnalyticsEmailNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_APP_SUBMISSION_APP_APPROVED:return k.jsx(c("OCDevManageSubmissionApprovedDeveloperNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_APP_SUBMISSION_DEV_REL_CLAIM:return k.jsx(c("OCDevManageSubmissionDevRelClaimNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_DEV_CENTER_CONTENT_LAUNCH:return k.jsx(c("OCDevManageDevCenterContentLaunchNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_FIRST_ACCESS_CONTENT_LAUNCH:return k.jsx(c("OCDevManageFirstAccessContentLaunchNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_MONTHLY_RELEASE:return k.jsx(c("OCDevManageDeveloperMonthlyReleaseNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_NEW_DEV_BLOG_POST:return k.jsx(c("OCDevManageNewDeveloperBlogPostNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_NEW_TOOL_UPDATE:return k.jsx(c("OCDevManageDeveloperNewToolUpdateNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_FIRST_ACCESS_NEW_ANNOUNCEMENT:return k.jsx(c("OCDevManageFirstAccessNewAnnouncementNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_FIRST_ACCESS_NEW_POST:return k.jsx(c("OCDevManageFirstAccessNewPostNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_FIRST_ACCESS_POST_UPDATE:return k.jsx(c("OCDevManageFirstAccessPostUpdateNotification.react"),babelHelpers["extends"]({},i));case c("OCDeveloperXNotificationType").OC_DEVELOPER_PAYOUT_PAYMENT_ACTIVITY_LEGAL:return k.jsx(c("OCDevManagePayoutPaymentActivityNotification.react"),babelHelpers["extends"]({},i))}if(b==null||g==null)return null;e=p.bolded_strings;l=[g];e!=null&&e.length>0&&(l=e==null?void 0:e.sort(function(a,b){return b.length-a.length}).reduce(function(a,b){return a.map(function(a){return typeof a==="string"?a.split(b).flatMap(function(a){return[k.jsx("strong",{children:b},c("uniqueID")()),a]}).slice(1):[a]}).flat()},[g]));function q(){var a;if(d("OCDevManageNotificationCategoriesEnum").getCategoryForNotificationType(j)!==d("OCDevManageNotificationCategoriesEnum").OCDevManageNotificationCategoriesEnum.COMPLIANCE)return;var b=p==null?void 0:p.logging_data;d("OCDevManageComplianceDashboardNotificationsLogger.react").logNotificationClick({application:{id:b==null?void 0:(a=b.app)==null?void 0:a.app_id,is_test:b==null?void 0:(a=b.app)==null?void 0:a.is_test,organization:{id:b==null?void 0:b.org_id}},compliance_item_id:b==null?void 0:b.compliance_item_id,compliance_item:b==null?void 0:b.compliance_item,notification_id:f,seen_state:n,send_time:m})}return k.jsx(c("OCDevManageNotificationItem.react"),{clickLogger:q,href:b,imageSrc:p.icon,notificationID:f,seenState:n,sendTime:m,title:h._("{oculus_do_not_translate}",[h._param("oculus_do_not_translate",l)])})}p.displayName=p.name+" [from "+f.id+"]";g.QP_NOTIF_XNOTIF_TYPE_PREFIX=n;g.isQPDevNotif=o;g.OCDevManageNotificationItemRenderer=a;g.OCDevManageNotificationItemForType=p}),226);
-----
OCDevManageNotificationItemReadStatusButton.react",["fbt","ix","GeoButton.react","GeoIcon.react","OCDevCenterDesignSystemContext","OCNotificationSeenState","asyncToGeneratorRuntime","fbicon","geoMargin","react","stylex","useHoverRef"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useState;function a(a){var e=a.onMarkAsRead;a=a.seenState;var f=c("useHoverRef")(),g=f[0];f=f[1];var k=n(!1),p=k[0],q=k[1];k=m(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext)===d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.GEODESIC;function r(a){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.preventDefault(),q(!0),yield e(),q(!1)});return s.apply(this,arguments)}var t=h._("Mark as Read");a=![c("OCNotificationSeenState").SEEN_BUT_UNREAD,c("OCNotificationSeenState").UNSEEN_AND_UNREAD].includes(a);var u=p||a;return k?l.jsx(c("GeoButton.react"),{icon:l.jsx(c("GeoIcon.react"),{color:a?void 0:"error",icon:a?d("fbicon")._(i("621401"),16):d("fbicon")._(i("621398"),16)}),isDisabled:u,isLabelHidden:!0,isLoading:p,label:t,tooltip:t,variant:"flat",xstyle:c("geoMargin").end4,onClick:r}):a?l.jsx("div",{className:"x2lah0s x1xp8n7a"}):l.jsx("button",{className:"x6s0dn4 xjbqb8w x972fbf xcfux6l x1qhh985 xm0m39n x1ypdohk x78zum5 x2lah0s xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd xtgyt42",disabled:u,ref:g,onClick:r,children:l.jsx("div",{className:(j||(j=c("stylex")))(o.buttonCircle,f&&o.buttonCircleHovered)})})}a.displayName=a.name+" [from "+f.id+"]";var o={buttonCircle:{backgroundColor:"xj8q8r0",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxSizing:"x9f619",height:"xdk7pt",marginTop:"x1anpbxc",marginEnd:"xmo9yow",marginBottom:"xyorhqc",marginStart:"x1mh8g0r",width:"x1xc55vz",$$css:!0},buttonCircleHovered:{backgroundColor:"xjbqb8w",borderTopColor:"x1qq0xzo",borderEndColor:"x13bcaex",borderBottomColor:"xd0hwrm",borderStartColor:"x8um2v",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"xamhcws",borderEndWidth:"xol2nv",borderBottomWidth:"xlxy82",borderStartWidth:"x19p7ews",$$css:!0}};g["default"]=a}),226);
-----
OCNotificationSeenState",[],(function(a,b,c,d,e,f){a=Object.freeze({SEEN_AND_READ:"SEEN_AND_READ",UNSEEN_AND_UNREAD:"UNSEEN_AND_UNREAD",SEEN_BUT_UNREAD:"SEEN_BUT_UNREAD",CLICKED:"CLICKED",DISMISSED:"DISMISSED"});f["default"]=a}),66);
-----
useOCDevManageNotificationsQuery",["OCNotificationSeenState","useOCDevManageNotificationsQuery.graphql","useOCDevUIQuery"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,d){a=c("useOCDevUIQuery")(h!==void 0?h:h=b("useOCDevManageNotificationsQuery.graphql"),{userID:(a=a)!=null?a:"",numNotifs:d});a=(d=a==null?void 0:(d=a.node)==null?void 0:(a=d.notifs)==null?void 0:a.nodes)!=null?d:[];d=a.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD||a===c("OCNotificationSeenState").SEEN_BUT_UNREAD});return{notificationCount:a==null?void 0:a.length,notifications:(a=a)!=null?a:[],unreadNotifications:d}}g["default"]=a}),98);
-----
OCDevCenterCometNotificationsIcon.react",["fbt","DDSIcon.react","DDSIconButton.react","MCDSIconBellOutline.svg.react","OCDevCenterCometNotificationsIcon_user.graphql","OCDevManageDevCenterAllowedNotifTypes","OCDevManageNotificationItemRenderer.react","OCNotificationSeenState","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.onTrigger;a=a.user;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterCometNotificationsIcon_user.graphql"),a);a=(a=a==null?void 0:(a=a.firstNotifs)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||c("OCDevManageDevCenterAllowedNotifTypes").has((b=a.xnotif_type)!=null?b:"")}))!=null?a:[];a=a.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0;return k.jsx(c("DDSIconButton.react"),{"aria-label":h._("__JHASH__yE4DafY-P_i__JHASH__"),icon:k.jsx(c("DDSIcon.react"),{icon:c("MCDSIconBellOutline.svg.react"),size:24}),type:"plain_primary",xstyle:a?l.unread:null,onClick:e})}a.displayName=a.name+" [from "+f.id+"]";var l={unread:{position:"x1n2onr6",":after_backgroundColor":"xdbvhc1",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x1ov1wlf",":after_left":"xzjh0ul",":after_start":null,":after_end":null,":after_position":"x1x824oc",":after_top":"x1cccnb1",":after_width":"x15kld0r",$$css:!0}};g.OCDevCenterCometNotificationsIcon=a}),226);
-----
useOCDevManageNotificationsQuery",["OCDevManageDevCenterAllowedNotifTypes","OCDevManageNotificationItemRenderer.react","OCNotificationSeenState","useOCDevManageNotificationsQuery.graphql","useOCDevUIQuery"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e){a=c("useOCDevUIQuery")(h!==void 0?h:h=b("useOCDevManageNotificationsQuery.graphql"),{userID:(a=a)!=null?a:"",numNotifs:e});e=(a=a==null?void 0:(a=a.node)==null?void 0:(a=a.notifs)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){var b,e=a.rendered_notification;a=a.xnotif_type;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a)!=null?b:"",JSON.parse((b=e==null?void 0:e.extra_data)!=null?b:"{}"))||c("OCDevManageDevCenterAllowedNotifTypes").has((b=a)!=null?b:"")&&(e==null?void 0:e.extra_data)!=null}).slice(0,e))!=null?a:[];a=e.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD});return{notificationCount:e==null?void 0:e.length,notifications:(e=e)!=null?e:[],unseenNotifications:a}}g["default"]=a}),98);
-----
OCDevManageTopnavNotificationsButton.react",["fbt","ix","ContextualLayer.react","ContextualLayerHideOnScrollOut","ContextualLayerUpdateOnScroll","GeoButton.react","GeoCard.react","GeoCardHeader.react","GeoFlexbox.react","GeoSection.react","GeoSelectableList.react","GeoSpinner.react","GeoText.react","LayerHideOnBlur","LayerHideOnEscape","OCDevManageDevCenterAllowedNotifTypes","OCDevManageMarkAllNotificationsAsReadButton.react","OCDevManageNotificationItemRenderer.react","OCDevManageNotificationsRoute","OCDevManageTopnavNotificationsButtonQueryRendererQuery.graphql","OCDevManageTopnavNotificationsButton_user.graphql","OCDevManageUserVerificationContext","OCDevUILink.react","OCNotificationSeenState","RelayHooks","Visibility","fbicon","geoMargin","react","stylex","useOCDevUIQuery"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));e=m;var o=e.Suspense,p=e.useContext,q=e.useEffect,r=e.useRef,s=e.useState,t=60*1e3,u=5;function v(a){a=a.user;var e=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageTopnavNotificationsButton_user.graphql"),a);a=s(!1);var f=a[0],g=a[1],k=r(null),m=(a=e==null?void 0:(a=e.first50Notifs)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||c("OCDevManageDevCenterAllowedNotifTypes").has((b=a.xnotif_type)!=null?b:"")}).filter(function(a){return((a=a.rendered_notification)==null?void 0:a.extra_data)!=null}).slice(0,u))!=null?a:[],o=(a=m.length)!=null?a:0;function q(){return e==null?n.jsx(c("GeoFlexbox.react"),{alignContent:"center",justifyContent:"center",xstyle:x.loading,children:n.jsx(c("GeoSpinner.react"),{center:!0})}):o===0?n.jsx(c("GeoFlexbox.react"),{alignContent:"center",justifyContent:"center",xstyle:x.loading,children:n.jsx(c("GeoFlexbox.react"),{alignSelf:"center",children:n.jsx(c("GeoText.react"),{children:h._("You don"t have any notifications")})})}):n.jsxs("div",{children:[n.jsx(c("GeoSelectableList.react"),{selectedItemIDs:[],onSelectionChange:function(){},children:m.map(function(a){return n.jsx(d("OCDevManageNotificationItemRenderer.react").OCDevManageNotificationItemRenderer,{notification:a},a.id)})}),n.jsx(c("GeoFlexbox.react"),{justifyContent:"center",xstyle:c("geoMargin").top20,children:n.jsx(c("OCDevUILink.react"),{href:c("OCDevManageNotificationsRoute").getURI(),onClick:function(){return g(!1)},children:h._("u67e5u770bu5168u90e8")})})]})}a=p(c("OCDevManageUserVerificationContext"));a=a.isVerified;var t=h._("u901au77e5");return n.jsxs("div",{children:[n.jsx("div",{className:(l||(l=c("stylex")))(m.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0&&x.unread),children:n.jsx(c("GeoButton.react"),{containerRef:k,"data-testid":void 0,icon:d("fbicon")._(i("532352"),16),isDepressed:f,isDisabled:!a,isLabelHidden:!0,label:t,variant:"flat",onClick:function(){return g(function(a){return!a})}})}),n.jsx(c("ContextualLayer.react"),{alignment:"right",behaviors:{ContextualLayerHideOnScrollOut:c("ContextualLayerHideOnScrollOut"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape")},contextRef:function(){return k.current},offsetY:6,position:"below",shown:f,onToggle:g,children:f&&n.jsx(c("GeoCard.react"),{"data-testid":void 0,header:n.jsx(c("GeoCardHeader.react"),{action:n.jsx(c("OCDevManageMarkAllNotificationsAsReadButton.react"),{user:e}),heading:t}),isOverflowYAuto:!0,xstyle:x.previewCard,children:n.jsx(c("GeoSection.react"),{children:q()})})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(){var a=s(t),d=a[0],e=a[1];q(function(){var a;(a=c("Visibility")).addListener(a.VISIBLE,function(){return e(t)});a.addListener(a.HIDDEN,function(){return e(0)})},[]);a=c("useOCDevUIQuery")(k!==void 0?k:k=b("OCDevManageTopnavNotificationsButtonQueryRendererQuery.graphql"),{},{fetchPolicy:"network-only",networkCacheConfig:{poll:d}});d=a.viewer;return n.jsx(v,{user:d==null?void 0:d.user})}w.displayName=w.name+" [from "+f.id+"]";function a(){return n.jsx(o,{fallback:n.jsx(v,{user:null}),children:n.jsx(w,{})})}a.displayName=a.name+" [from "+f.id+"]";var x={loading:{height:"x1m3v4wt",$$css:!0},unread:{position:"x1n2onr6",":after_backgroundColor":"x7f94y0",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x180p3mr",":after_left":"x1qibg63",":after_start":null,":after_end":null,":after_position":"x1x824oc",":after_top":"xu3y77m",":after_width":"xkic36c",$$css:!0},previewCard:{maxWidth:"x1ap80js",$$css:!0}};g["default"]=a}),226);
-----
OCNotificationsItem.react",["ix","Image.react","OCCoreUtils","OCDSHeading.react","OCDSSpacer.react","OCDSText.react","OCErrorBoundary","OCNotificationSeenStateMutation","OCNotificationsItem_notification.graphql","OCWWWNotificationType","RelayHooks","ShimButton.react","Timestamp.react","goURI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");function k(a,b){var c=h("1062946");a=JSON.parse((a=a)!=null?a:"{}");switch(b){case d("OCWWWNotificationType").OCWWWNotificationTypes.OC_FRIEND_RATED_APP:return(b=a.user_photo)!=null?b:c;default:return(b=a.application_photo)!=null?b:c}}function a(a){var e=a.notification;a=a.userID;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCNotificationsItem_notification.graphql"),e),g=f==null?void 0:(e=f.rendered_notification)==null?void 0:e.deeplink_uri;if(g==null||g.length===0||a==null)return null;a=k(f==null?void 0:(e=f.rendered_notification)==null?void 0:e.extra_data,f==null?void 0:f.notification_type);e=function(){var a=f==null?void 0:f.id,b=f==null?void 0:f.seen_state;a!=null&&b!=="SEEN_AND_READ"&&d("OCNotificationSeenStateMutation").commit({new_seen_state:"SEEN_AND_READ",notification_id:a});c("goURI")(g)};return j.jsx(c("OCErrorBoundary"),{fallback:null,children:j.jsx("div",{className:"x1wfzsf3 x6ikm8r x1u8hfhx x13dflua xwji4o3 xodtfm x1rix2v9",children:j.jsxs(c("ShimButton.react"),{className:"x1ypdohk x78zum5 x9orja2 x84yb8i xh8yej3 xpu943t xqbx146 x1w6t2hj xe5l7su x3zyd9n xhzu03u",onClick:e,children:[j.jsx("div",{className:"x1qx7dla xxsxjwm",children:j.jsx(c("Image.react"),{className:"x1ok221b xh8yej3",src:a})}),j.jsxs("div",{children:[(f==null?void 0:(e=f.rendered_notification)==null?void 0:e.message)!=null&&j.jsx(c("OCDSHeading.react"),{type:"heading4",children:f==null?void 0:(a=f.rendered_notification)==null?void 0:a.message}),j.jsx(c("OCDSSpacer.react"),{bottomSize:"small"}),j.jsx(c("OCDSText.react"),{color:"gray",type:"legal",children:j.jsx(c("Timestamp.react"),{text:d("OCCoreUtils").formatDate((e=f==null?void 0:f.send_time)!=null?e:Math.round(Date.now()/1e3),"M d, g:iA"),time:f==null?void 0:f.send_time})})]})]},f==null?void 0:f.id)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCNotificationSeenStateMutation",["OCNotificationSeenStateMutation.graphql","OCRelayModern","Promise","RelayFBEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("OCNotificationSeenStateMutation.graphql");function a(a){return new(b("Promise"))(function(b,d){return c("OCRelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:i,variables:{input:a},optimisticUpdater:function(b){b=b.get(a.notification_id);if(b==null)return;b.setValue(a.new_seen_state,"seen_state")},onCompleted:function(a){return b(a)},onError:function(a){return d(a)}})})}g.commit=a}),98);
-----
OCNotificationSeenStateMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5621785697838526"}),null);
-----
OCNotificationSeenStateMutation.graphql",["OCNotificationSeenStateMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCNotificationSeenStateMutation",selections:[{alias:null,args:c,concreteType:"SetSeenStateNotificationResponsePayload",kind:"LinkedField",name:"set_seen_state_notification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCNotificationsItem_notification"}],storageKey:null},d],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCNotificationSeenStateMutation",selections:[{alias:null,args:c,concreteType:"SetSeenStateNotificationResponsePayload",kind:"LinkedField",name:"set_seen_state_notification",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"send_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notification_type",storageKey:null},{alias:null,args:null,concreteType:"RenderedNotification",kind:"LinkedField",name:"rendered_notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deeplink_uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extra_data",storageKey:null}],storageKey:null}],storageKey:null},d],storageKey:null}]},params:{id:b("OCNotificationSeenStateMutation_oculusRelayOperation"),metadata:{},name:"OCNotificationSeenStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCNotificationSeenState",[],(function(a,b,c,d,e,f){a=Object.freeze({SEEN_AND_READ:"SEEN_AND_READ",UNSEEN_AND_UNREAD:"UNSEEN_AND_UNREAD",SEEN_BUT_UNREAD:"SEEN_BUT_UNREAD",CLICKED:"CLICKED",DISMISSED:"DISMISSED"});f["default"]=a}),66);
-----
OCDevManageNotificationItem.react",["fbt","ix","GeoBaseListRow.react","GeoFlexbox.react","Image.react","OCDevCenterDesignSystemContext","OCDevCenterUIText.react","OCDevManageNotificationItemMutation.graphql","OCDevManageNotificationItemReadStatusButton.react","OCNavigatorHooks","OCNotificationSeenState","OCShimLink.react","Timestamp.react","geoMargin","react","regeneratorRuntime","stylex","useGeoTheme","useOCDevManageCommitMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect;function a(a){var e,f=a.href,g=a.imageSrc,p=a.notificationID,q=a.seenState,r=a.sendTime;a=a.title;var s=c("useOCDevManageCommitMutation")(j!==void 0?j:j=b("OCDevManageNotificationItemMutation.graphql")),t=l(function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(s({input:{notification_id:p,new_seen_state:a}}));case 2:case"end":return c.stop()}},null,this)},[s,p]);n(function(){q===c("OCNotificationSeenState").UNSEEN_AND_UNREAD&&t(c("OCNotificationSeenState").SEEN_BUT_UNREAD)},[t,q]);var u=m(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext)===d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.GEODESIC;r=h._("{timestamp} ago",[h._param("timestamp",k.jsx(c("Timestamp.react"),{minimize:!0,shorten:!0,time:r,useLargerTimeUnits:!0}))]);e=(e=g)!=null?e:i("9719");var v=k.jsx(c("OCDevManageNotificationItemReadStatusButton.react"),{seenState:q,onMarkAsRead:function(){return t(c("OCNotificationSeenState").SEEN_AND_READ)}}),w=d("OCNavigatorHooks").useReactRouterLink(f,function(){return t(c("OCNotificationSeenState").CLICKED)}),x=c("useGeoTheme")();x=x.selectBorderRadius;return k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[u?v:null,k.jsx("div",{className:"x1iyjqo2",children:u?k.jsx(c("GeoBaseListRow.react"),{accessibilityRole:"link",description:r,isFocusable:!0,label:a,link:{url:f},media:k.jsx(c("Image.react"),{className:c("stylex")(x({context:"addon"})),height:60,src:e,width:60}),onPress:w}):k.jsx(c("OCShimLink.react"),{href:f,onClick:function(){return t(c("OCNotificationSeenState").CLICKED)},children:k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:o.notification,children:[v,k.jsx(c("Image.react"),{className:"x9f619 x2lah0s xyo1k6t"+(g==null?" x18i27g0 xsasxwm xqhvccd x1oduead":""),height:60,src:e,width:60}),k.jsxs("div",{children:[k.jsx(c("OCDevCenterUIText.react"),{type:"menu",children:a}),k.jsx(c("OCDevCenterUIText.react"),{type:"legal",xstyle:[c("geoMargin").top4,c("geoMargin").bottom0],children:r})]})]})})})]})}a.displayName=a.name+" [from "+f.id+"]";var o={border:{borderTop:"x18i27g0",borderEnd:"xsasxwm",borderBottom:"xqhvccd",borderStart:"x1oduead",$$css:!0},container:{flexGrow:"x1iyjqo2",$$css:!0},image:{boxSizing:"x9f619",flexShrink:"x2lah0s",marginRight:"xyo1k6t",$$css:!0},notification:{paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",$$css:!0}};g["default"]=a}),98);
-----
OCDevManageNotificationItemRenderer.react",["fbt","OCDevManageDevCenterContentLaunchNotification.react","OCDevManageDevCenterDeveloperQPNotification.react","OCDevManageDeveloperMonthlyReleaseNotification.react","OCDevManageDeveloperNewToolUpdateNotification.react","OCDevManageDeveloperReviewedContentViolatingNotification.react","OCDevManageEventReviewedDeveloperNotification.react","OCDevManageFirstAccessContentLaunchNotification.react","OCDevManageFirstAccessNewPostNotification.react","OCDevManageFirstAccessPostUpdateNotification.react","OCDevManageKeysCampaignApprovedDeveloperNotification.react","OCDevManageKeysReadyForDownloadDeveloperNotification.react","OCDevManageMemberAddedToOrgDeveloperNotification.react","OCDevManageNewDeveloperBlogPostNotification.react","OCDevManageNotificationItem.react","OCDevManageNotificationItemRenderer_notification.graphql","OCDevManagePayoutPaymentActivityNotification.react","OCDevManageSubmissionApprovedDeveloperNotification.react","OCDevManageSubmissionContentReviewCompleteDeveloperNotification.react","OCDevManageSubmissionDevRelClaimNotification.react","OCDevManageSubscribeToAnalyticsEmailNotification.react","OCDeveloperConfig","OCDeveloperXNotificationType","OCNotificationSeenState","RelayHooks","gkx","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=c("gkx")("6888");var k=e?[]:[c("OCDeveloperXNotificationType").OC_COMPLIANCE_DASHBOARD_NEW_ACTION],l=new Set(d("OCDeveloperConfig").xNotificationQueryTypes.filter(function(a){return!k.includes(a)})),m=9201,n="oculus_dev_push_notification",o="qp_notifs";function p(a,b){return!a.startsWith(o)?!1:(b==null?void 0:(a=b.qp)==null?void 0:a.nux_id)===m&&(b==null?void 0:(a=b.qp)==null?void 0:a.template_name)===n}function a(a){var e,f,g=a.notification;a=a.onRead;g=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageNotificationItemRenderer_notification.graphql"),g);var k=g.id,m=g.seen_state,n=g.send_time,o=g.xnotif_type;m=(m=m)!=null?m:c("OCNotificationSeenState").SEEN_BUT_UNREAD;g=(g=g==null?void 0:g.rendered_notification)!=null?g:{};var q=g.deeplink_uri,r=g.extra_data;g=g.message;if(r==null||k==null||n==null)return null;r=JSON.parse(r);e=p((e=o)!=null?e:"",r);if(!e&&!l.has((f=o)!=null?f:""))return null;f={data:r,deeplinkURI:(f=q)!=null?f:"",seenState:m,message:(f=g)!=null?f:"",notificationID:k,sendTime:n,onRead:a};if(e)return j.jsx(c("OCDevManageDevCenterDeveloperQPNotification.react"),babelHelpers["extends"]({},f));switch(o==null?void 0:o.toLowerCase()){case c("OCDeveloperXNotificationType").DEVELOPER_CONTENT_REVIEW_COMPLETE:return j.jsx(c("OCDevManageSubmissionContentReviewCompleteDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").DEVELOPER_EVENT_REVIEWED:return j.jsx(c("OCDevManageEventReviewedDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").DEVELOPER_KEYS_CAMPAIGN_APPROVED:return j.jsx(c("OCDevManageKeysCampaignApprovedDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").DEVELOPER_KEYS_READY_FOR_DOWNLOAD:return j.jsx(c("OCDevManageKeysReadyForDownloadDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").DEVELOPER_MEMBER_ADDED_TO_ORG:return j.jsx(c("OCDevManageMemberAddedToOrgDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").DEVELOPER_SUBSCRIBE_TO_ANALYTICS_EMAIL:return j.jsx(c("OCDevManageSubscribeToAnalyticsEmailNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_APP_SUBMISSION_APP_APPROVED:return j.jsx(c("OCDevManageSubmissionApprovedDeveloperNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_APP_SUBMISSION_DEV_REL_CLAIM:return j.jsx(c("OCDevManageSubmissionDevRelClaimNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_DEV_CENTER_CONTENT_LAUNCH:return j.jsx(c("OCDevManageDevCenterContentLaunchNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_FIRST_ACCESS_CONTENT_LAUNCH:return j.jsx(c("OCDevManageFirstAccessContentLaunchNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_MONTHLY_RELEASE:return j.jsx(c("OCDevManageDeveloperMonthlyReleaseNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_NEW_DEV_BLOG_POST:return j.jsx(c("OCDevManageNewDeveloperBlogPostNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_NEW_TOOL_UPDATE:return j.jsx(c("OCDevManageDeveloperNewToolUpdateNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_REVIEWED_CONTENT_VIOLATING:return j.jsx(c("OCDevManageDeveloperReviewedContentViolatingNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_FIRST_ACCESS_NEW_POST:return j.jsx(c("OCDevManageFirstAccessNewPostNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_FIRST_ACCESS_POST_UPDATE:return j.jsx(c("OCDevManageFirstAccessPostUpdateNotification.react"),babelHelpers["extends"]({},f));case c("OCDeveloperXNotificationType").OC_DEVELOPER_PAYOUT_PAYMENT_ACTIVITY:return j.jsx(c("OCDevManagePayoutPaymentActivityNotification.react"),babelHelpers["extends"]({},f))}if(q==null||g==null)return null;a=r.bolded_strings;e=[g];a!=null&&a.length>0&&(e=a==null?void 0:a.sort(function(a,b){return b.length-a.length}).reduce(function(a,b){return a.map(function(a){return typeof a==="string"?a.split(b).flatMap(function(a){return[j.jsx("strong",{children:b},c("uniqueID")()),a]}).slice(1):[a]}).flat()},[g]));return j.jsx(c("OCDevManageNotificationItem.react"),{href:q,imageSrc:r.icon,notificationID:k,seenState:m,sendTime:n,title:h._("{oculus_do_not_translate}",[h._param("oculus_do_not_translate",e)])})}a.displayName=a.name+" [from "+f.id+"]";g.ALLOWED_XNOTIF_TYPES=l;g.QP_NOTIF_XNOTIF_TYPE_PREFIX=o;g.isQPDevNotif=p;g.OCDevManageNotificationItemRenderer=a}),98);
-----
OCDevCenterTopNavNotificationsButton.react",["cx","fbt","ContextualLayer.react","ContextualLayerHideOnScrollOut","ContextualLayerUpdateOnScroll","GeoFlexbox.react","LayerHideOnBlur","LayerHideOnEscape","OCDSButton.react","OCDSHorizontalDivider.react","OCDSText.react","OCDevCenterDesignSystemContext","OCDevCenterTopNavNotificationsButtonQueryRendererQuery.graphql","OCDevCenterTopNavNotificationsButton_user.graphql","OCDevCenterUILink.react","OCDevCenterUIText.react","OCDevManageNotificationItemRenderer.react","OCDevManageNotificationsRoute","OCNotificationSeenState","OCURIUtil","RelayHooks","geoMargin","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react");e=d("react");var m=e.Suspense,n=e.useRef,o=e.useState;function p(a){var e=a.user;a=a.xstyle;var f=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterTopNavNotificationsButton_user.graphql"),e);e=o(!1);var g=e[0],h=e[1],k=n(),m=(e=f==null?void 0:(e=f.first5Notifs)==null?void 0:(e=e.nodes)==null?void 0:e.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||d("OCDevManageNotificationItemRenderer.react").ALLOWED_XNOTIF_TYPES.has((b=a.xnotif_type)!=null?b:"")}))!=null?e:[],p=(e=m.length)!=null?e:0;function q(){return f==null?l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",justifyContent:"center",xstyle:r.loading,children:[l.jsx(c("OCDevCenterUIText.react"),{type:"body",xstyle:c("geoMargin").bottom16,children:i._("You must be logged in to view your notifications.")}),l.jsx(c("OCDSButton.react"),{href:d("OCURIUtil").getLoginURIWithRedirect(),label:i._("u767bu5f55"),size:"small",type:"primary"})]}):p===0?l.jsx(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"center",xstyle:r.loading,children:l.jsx(c("OCDSText.react"),{children:i._("You don"t have any notifications")})}):l.jsxs("div",{children:[l.jsx(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext.Provider,{value:d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.OCDS,children:m.map(function(a,b){return l.jsxs("div",{children:[l.jsx(d("OCDevManageNotificationItemRenderer.react").OCDevManageNotificationItemRenderer,{notification:a},a.id),b!==p-1?l.jsx(c("OCDSHorizontalDivider.react"),{xstyle:[c("geoMargin").horiz16,c("geoMargin").vert0,r.divider]}):null]},a.id)})}),l.jsx(c("GeoFlexbox.react"),{justifyContent:"center",xstyle:r.seeAll,children:l.jsx(c("OCDevCenterUILink.react"),{href:c("OCDevManageNotificationsRoute").getURI(),target:"_blank",children:i._("u67e5u770bu5168u90e8")})})]})}return l.jsxs("div",{children:[l.jsx(c("OCDSButton.react"),{icon:"bell",isLabelHidden:!0,label:i._("u901au77e5"),ref:k,type:"tertiary",xstyle:[m.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0&&r.unread,a],onClick:function(){return h(function(a){return!a})}}),l.jsx(c("ContextualLayer.react"),{alignment:"right",behaviors:{ContextualLayerHideOnScrollOut:c("ContextualLayerHideOnScrollOut"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape")},className:"x131sewu",contextRef:function(){return k.current},offsetY:17,position:"below",shown:g,onToggle:h,children:g&&l.jsx("div",{className:c("joinClasses")("x12peec7 xy7ajty xq8049d x6h2fil x1nxrkau x1n2onr6 x1l2rt3b x2g1qao x1u5tia8 x1up3fal x13o500e","_9vz9"),children:l.jsx("div",{children:q()})})})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var c=d("RelayHooks").useLazyLoadQuery(k!==void 0?k:k=b("OCDevCenterTopNavNotificationsButtonQueryRendererQuery.graphql"),{},{fetchPolicy:"network-only",networkCacheConfig:{poll:6e4}});c=c.viewer;return l.jsx(p,babelHelpers["extends"]({user:c==null?void 0:c.user},a))}q.displayName=q.name+" [from "+f.id+"]";function a(a){return l.jsx(m,{fallback:l.jsx(p,babelHelpers["extends"]({},a,{user:null})),children:l.jsx(q,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";var r={card:{backgroundColor:"x12peec7",borderTop:"xy7ajty",borderEnd:"xq8049d",borderBottom:"x6h2fil",borderStart:"x1nxrkau",position:"x1n2onr6",width:"x1l2rt3b","@media (max-width:483px)_left":"x2g1qao","@media (max-width:483px)_position":"x1u5tia8","@media (max-width:483px)_top":"x1up3fal","@media (max-width:483px)_maxWidth":"x13o500e",$$css:!0},divider:{":first-child_display":"xh99ass",$$css:!0},layer:{right:"x131sewu",$$css:!0},loading:{height:"x1m3v4wt",$$css:!0},seeAll:{paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",$$css:!0},unread:{position:"x1n2onr6",":after_backgroundColor":"x7f94y0",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x180p3mr",":after_left":"xz91bp8",":after_position":"x1x824oc",":after_top":"x1nwlx8",":after_width":"xkic36c",$$css:!0}};g["default"]=a}),98);
-----
OCDevManageNotificationItemReadStatusButton.react",["fbt","ix","GeoButton.react","Image.react","OCDevCenterDesignSystemContext","OCNotificationSeenState","geoMargin","react","regeneratorRuntime","useHoverRef"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useContext,l=e.useState;function a(a){var e=a.onMarkAsRead;a=a.seenState;var f=c("useHoverRef")(),g=f[0];f=f[1];var m=l(!1),n=m[0],o=m[1];m=k(d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystemContext)===d("OCDevCenterDesignSystemContext").OCDevCenterDesignSystem.GEODESIC;function p(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:a.preventDefault();o(!0);c.next=4;return b("regeneratorRuntime").awrap(e());case 4:o(!1);case 5:case"end":return c.stop()}},null,this)}var q=h._("Mark as Read");a=![c("OCNotificationSeenState").SEEN_BUT_UNREAD,c("OCNotificationSeenState").UNSEEN_AND_UNREAD].includes(a);var r=n||a;return m?j.jsx(c("GeoButton.react"),{icon:j.jsx(c("Image.react"),{src:a?i("1617243"):i("1452069")}),isDisabled:r,isLabelHidden:!0,isLoading:n,label:q,tooltip:q,variant:"flat",xstyle:c("geoMargin").end4,onClick:p}):a?j.jsx("div",{className:"x2lah0s x1xp8n7a"}):j.jsx("button",{className:"x6s0dn4 xjbqb8w x6umtig x1b1mbwd xaqea5y xav7gou x1ypdohk x78zum5 x2lah0s xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd xtgyt42",disabled:r,ref:g,onClick:p,children:j.jsx("div",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu x9f619 xdk7pt x1anpbxc xmo9yow xyorhqc x1mh8g0r x1xc55vz"+(f?" xjbqb8w x12nvcgo xbs6rwu x1wpna59 x1437g5f":" xj8q8r0")})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageSidenavFooterNotificationsButton.react",["fbt","ix","ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerHideOnScrollOut","ContextualLayerUpdateOnScroll","GeoButton.react","GeoCard.react","GeoCardHeader.react","GeoFlexbox.react","GeoSection.react","GeoSelectableList.react","GeoSpinner.react","GeoText.react","GeoTooltip.react","LayerHideOnBlur","LayerHideOnEscape","OCDevManageMarkAllNotificationsAsReadButton.react","OCDevManageNotificationItemRenderer.react","OCDevManageNotificationsRoute","OCDevManageSidenavCollapseContext","OCDevManageSidenavFooterNotificationsButtonQueryRendererQuery.graphql","OCDevManageSidenavFooterNotificationsButton_user.graphql","OCDevManageUserVerificationContext","OCDevUILink.react","OCNotificationSeenState","RelayHooks","Visibility","fbicon","geoMargin","react","useOCDevManageQuery"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react");e=d("react");var m=e.Suspense,n=e.useContext,o=e.useEffect,p=e.useRef,q=e.useState,r=60*1e3;function s(a){a=a.user;var e=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageSidenavFooterNotificationsButton_user.graphql"),a);a=q(!1);var f=a[0],g=a[1],k=p(),m=(a=e==null?void 0:(a=e.first5Notifs)==null?void 0:(a=a.nodes)==null?void 0:a.filter(function(a){var b;return d("OCDevManageNotificationItemRenderer.react").isQPDevNotif((b=a.xnotif_type)!=null?b:"",JSON.parse((b=(b=a.rendered_notification)==null?void 0:b.extra_data)!=null?b:"{}"))||d("OCDevManageNotificationItemRenderer.react").ALLOWED_XNOTIF_TYPES.has((b=a.xnotif_type)!=null?b:"")}))!=null?a:[],o=(a=m.length)!=null?a:0;function r(){return e==null?l.jsx(c("GeoFlexbox.react"),{alignContent:"center",justifyContent:"center",xstyle:u.loading,children:l.jsx(c("GeoSpinner.react"),{center:!0})}):o===0?l.jsx(c("GeoFlexbox.react"),{alignContent:"center",justifyContent:"center",xstyle:u.loading,children:l.jsx(c("GeoFlexbox.react"),{alignSelf:"center",children:l.jsx(c("GeoText.react"),{children:h._("You don"t have any notifications")})})}):l.jsxs("div",{children:[l.jsx(c("GeoSelectableList.react"),{selectedItemIDs:[],onSelectionChange:function(){},children:m.map(function(a){return l.jsx(d("OCDevManageNotificationItemRenderer.react").OCDevManageNotificationItemRenderer,{notification:a},a.id)})}),l.jsx(c("GeoFlexbox.react"),{justifyContent:"center",xstyle:c("geoMargin").top20,children:l.jsx(c("OCDevUILink.react"),{to:c("OCDevManageNotificationsRoute").getURI().getPath(),onClick:function(){return g(!1)},children:h._("u67e5u770bu5168u90e8")})})]})}a=n(c("OCDevManageUserVerificationContext"));a=a.isVerified;var s=d("OCDevManageSidenavCollapseContext").useOCDevManageSidenavCollapseContext();s=s.isCollapsed;var t=h._("u901au77e5");return l.jsxs("div",{children:[l.jsx("div",{className:""+(m.filter(function(a){a=a.seen_state;return a===c("OCNotificationSeenState").UNSEEN_AND_UNREAD}).length>0?" x1n2onr6 x7f94y0 xjkghap x5ectqd xxc9fcd x5cpa7z x5l10my x180p3mr x1qibg63 x1x824oc xu3y77m xkic36c":""),children:l.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("fbicon")._(i("532355"),16),isDepressed:f,isDisabled:!a,isLabelHidden:!0,label:t,ref:k,tooltip:l.jsx(c("GeoTooltip.react"),{content:t,position:s?"right":"above"}),variant:"flat",onClick:function(){return g(function(a){return!a})}})}),l.jsx(c("ContextualLayer.react"),{alignment:"left",behaviors:{ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),ContextualLayerHideOnScrollOut:c("ContextualLayerHideOnScrollOut"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape")},contextRef:function(){return k.current},offsetY:-6,position:"above",shown:f,onToggle:g,children:f&&l.jsx(c("GeoCard.react"),{"data-testid":void 0,header:l.jsx(c("GeoCardHeader.react"),{action:l.jsx(c("OCDevManageMarkAllNotificationsAsReadButton.react"),{user:e}),heading:t}),isOverflowYAuto:!0,children:l.jsx(c("GeoSection.react"),{children:r()})})})]})}s.displayName=s.name+" [from "+f.id+"]";function t(){var a=q(r),d=a[0],e=a[1];o(function(){c("Visibility").addListener(c("Visibility").VISIBLE,function(){return e(r)}),c("Visibility").addListener(c("Visibility").HIDDEN,function(){return e(0)})},[]);a=c("useOCDevManageQuery")(k!==void 0?k:k=b("OCDevManageSidenavFooterNotificationsButtonQueryRendererQuery.graphql"),{},{fetchPolicy:"network-only",networkCacheConfig:{poll:d}});d=a.viewer;return l.jsx(s,{user:d==null?void 0:d.user})}t.displayName=t.name+" [from "+f.id+"]";function a(){return l.jsx(m,{fallback:l.jsx(s,{user:null}),children:l.jsx(t,{})})}a.displayName=a.name+" [from "+f.id+"]";var u={loading:{height:"x1m3v4wt",$$css:!0},unread:{position:"x1n2onr6",":after_backgroundColor":"x7f94y0",":after_borderTopStartRadius":"xjkghap",":after_borderTopEndRadius":"x5ectqd",":after_borderBottomEndRadius":"xxc9fcd",":after_borderBottomStartRadius":"x5cpa7z",":after_content":"x5l10my",":after_height":"x180p3mr",":after_left":"x1qibg63",":after_position":"x1x824oc",":after_top":"xu3y77m",":after_width":"xkic36c",$$css:!0}};g["default"]=a}),98);
-----