bundle.Notifications.cff7cbaa.js 21 KB

12
  1. "use strict";(self.webpackChunk_twitter_responsive_web=self.webpackChunk_twitter_responsive_web||[]).push([["bundle.Notifications"],{47877:(e,t,n)=>{n.d(t,{Z:()=>D});var i=n(2784),a=n(25686),o=n(36934),s=n(88990),l=n(73186),r=n(79404),c=n.n(r),d=n(60790),u=n(73952),p=n(6816),b=n(60673);const m=c().aed79c54,h=c().h12044a4,y=c().f100e566,g=c().f094f6d6,f=c().b00255b6,_=c().geea29ee,w=c().c54678e8,E=c().ga4fa180,S=c().h8dde772,v=c().i859a9d4,Z=()=>i.createElement(i.Fragment,null,i.createElement(o.ZP,null,h),i.createElement(a.Z,{style:T.details},i.createElement(d.Z,{style:T.icon}),i.createElement(a.Z,null,i.createElement(o.ZP,{style:T.title},y),i.createElement(o.ZP,null,g)),i.createElement(u.Z,{style:T.icon}),i.createElement(a.Z,null,i.createElement(o.ZP,{style:T.title},f),i.createElement(o.ZP,null,_)),i.createElement(p.Z,{style:T.icon}),i.createElement(a.Z,null,i.createElement(o.ZP,{style:T.title},w),i.createElement(o.ZP,null,E)))),A=()=>i.createElement(a.Z,{style:T.footerContainer},i.createElement(o.ZP,{align:"center"},S," ",i.createElement(o.ZP,{color:"text",link:"https://help.twitter.com/using-twitter/mentions-and-replies#mention-control",style:T.footerLearnMoreLink,withUnderline:!0},v))),C=()=>i.createElement(o.ZP,{style:T.headline},m),T=l.Z.create((e=>({details:{display:"grid",gridTemplateColumns:"auto auto",gridColumnGap:e.spaces.space24,gridRowGap:e.spaces.space24,paddingTop:e.spaces.space32},footerContainer:{display:"flex",alignItems:"center"},footerLearnMoreLink:{whiteSpace:"nowrap"},headline:{fontSize:e.fontSizes.title2},icon:{color:e.colors.text,width:e.spaces.space24,height:e.spacesPx.space24},image:{width:"100%"},title:{color:e.colors.text,fontSize:e.fontSizes.headline2,fontWeight:e.fontWeights.medium,paddingBottom:e.spaces.space4}}))),D=e=>{const{actionLabel:t,onAction:n,onClose:a,onSecondaryAction:o,secondaryActionLabel:l}=e,r=(0,b.z)();i.useEffect((()=>{r.scribeAction("impression")}),[r]);const c=o?e=>{r.scribeAction("secondary_cta"),null==o||o(e)}:void 0,d=a?()=>{r.scribeAction("close"),a()}:void 0;return i.createElement(s.Z,{actionLabel:t,footer:i.createElement(A,null),graphicDisplayMode:"none",headline:i.createElement(C,null),isFullHeightOnMobile:!0,onAction:e=>{r.scribeAction("primary_cta"),n(e)},onClose:d,onSecondaryAction:c,secondaryActionLabel:l,subtext:i.createElement(Z,null),withBottomPadding:!0})}},7765:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(2784),a=n(79404),o=n.n(a),s=n(47636),l=(n(6886),n(36728),n(18578)),r=n(2607);const c="/compose/tweet";class d extends i.PureComponent{constructor(...e){super(...e),this._handlePress=e=>{e.preventDefault();const{getLocationState:t,history:n}=this.props,i={pathname:c,state:t&&t()||{}};n.push(i)}}render(){const{accessibilityLabel:e,icon:t,label:n,scribeComponent:a}=this.props;return i.createElement(l.Z,{accessibilityLabel:e,href:c,icon:t,label:n,onPress:this._handlePress,scribeComponent:a,testID:r.Z.tweet})}}const u=d,p=o().ee8589ae,b=o().g34f2c63({verb:""}),m=({getLocationState:e,history:t})=>i.createElement(u,{accessibilityLabel:p,getLocationState:e,history:t,icon:i.createElement(s.Z,null),label:b,scribeComponent:"floating_compose_button"})},1451:(e,t,n)=>{n.d(t,{Z:()=>d});var i=n(2784),a=n(44173),o=n(73186);n(6886);const s=(0,n(56499).Z)({loader:()=>n.e("loader.FeedbackSheet").then(n.bind(n,68767))});var l=n(60673),r=n(60007);const c=o.Z.create((e=>({curationControl:{marginStart:e.spaces.space20}}))),d=(0,l.Z)((e=>{const{analytics:t,feedbackItems:n,isDisplayedOnMedia:o}=e,l=i.useCallback((e=>n?i.createElement(s,{actionItems:n,onClose:e}):null),[n]),d=i.useCallback((()=>t.scribe({element:"caret",action:"click"})),[t]);return n&&n.length>0?i.createElement(a.Z,{onClick:d,renderActionMenu:l,style:c.curationControl,testID:r.Z.caret,withDarkBackground:o}):null}))},86095:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p,notificationsModule:()=>d,updateLastSeenCursor:()=>u});var i=n(1206),a=n(63140),o=n(23335),s=n(30264),l=n(62104),r=n(87204),c=n(10286);const d=(e=c.l.All)=>(0,l.Z)({timelineId:`notifications-${e}`,network:{getEndpoint:e=>e.URT.fetchNotifications,getEndpointParams:t=>{const{polling:n,...i}=t;return{type:e,...i}}},context:"FETCH_NOTIFICATIONS_TIMELINE",perfKey:"notifications",postFetchAction:r.Z,staleIntervalMs:5e3}),u=(e=c.l.All)=>(t,n,{api:l})=>{const r=d(e),c=r&&s.getTopCursor(r.selectEntries(n()));if(c){const n={cursor:s.getValue(c),type:e},r=t((0,o.createLocalApiErrorHandlerWithContextFactory)("APP_UPDATE_NOTIFICATION_LAST_READ")({[a.ZP.AppInReadOnlyMode]:{customAction:i.Z}}));l.URT.updateNotificationsLastSeenCursor(n).catch(r)}},p=d(c.l.All)},33570:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(10286);const a=(0,n(95714).p)({notificationsType:i.l.All})},35850:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(10286);const a=(0,n(95714).p)({notificationsType:i.l.Mentions})},54088:(e,t,n)=>{n.r(t),n.d(t,{NotificationsScreen:()=>I,default:()=>V});n(6886);var i=n(2784),a=n(7267),o=n(41441),s=n(96797),l=n(79404),r=n.n(l),c=n(24101),d=n(90876),u=n(9082),p=n(43467),b=n(19313),m=n(7765),h=n(46253),y=n(20941),g=n(59824),f=n(85300),_=n(7581),w=n(2632);const E=r().eb75875e,S=r().f8321d82,v=r().cdb53d7a,Z=r().h3290872,A=r().a98ba778,C=i.createElement(c.Z,{pullRight:!0,to:"/settings/notifications"}),T=r().eb75875e,D=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,33570))))),M=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,35850))))),P=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,27276))))),x={to:w._N,key:S,label:S,retainScrollPosition:!1},L={to:w.JV,key:v,label:v,retainScrollPosition:!1},k={to:w.JK,key:Z,label:Z,retainScrollPosition:!1},N=()=>i.createElement(g.Z,{to:w._N}),I=e=>{const{featureSwitches:t}=i.useContext(b.rC),{history:n,isLoggedInUserVerified:l,location:r}=e,c=t.isTrue("responsive_web_ntab_verified_mentions_vit_internal_dogfood"),y=t.getNumberValue("responsive_web_twitter_blue_verified_badge_ntab_verified_tab_index"),f=l||c,_=i.useMemo((()=>{if(!f)return[x,L];switch(y){case 1:return[k,x,L];case 2:return[x,k,L];default:return[x,L,k]}}),[f,y]),S=i.createElement(a.rs,null,i.createElement(a.AW,{component:D,exact:!0,path:w._N}),i.createElement(a.AW,{component:M,exact:!0,path:w.JV}),i.createElement(a.AW,{component:P,exact:!0,path:w.JK}),i.createElement(a.AW,{component:N,exact:!0,path:w.Im})),v=i.useMemo((()=>i.createElement(s.Z,{accessibilityLabel:A,links:_})),[_]);return r.pathname!==w.JK||f?i.createElement(h.Z,null,i.createElement(p.Z,{documentTitle:E,history:n,primaryContent:(()=>{const e=i.createElement(m.Z,{history:n});return i.createElement(u.Z,{component:o.Z,fab:e},S)})(),rightControl:C,secondaryBar:v,sidebarContent:i.createElement(d.Z,null),title:T})):i.createElement(g.Z,{to:w._N})},V=(0,_.Z)(I)},95714:(e,t,n)=>{n.d(t,{p:()=>ue});var i=n(7896),a=(n(6886),n(2784)),o=n(36934),s=n(8352),l=n(79404),r=n.n(l),c=n(25686),d=n(25684),u=n(73186),p=n(1451),b=n(45855),m=n(60673);const h=n.p+"illustration_unmention_1200w.a6d67a6a.png",y=n.p+"illustration_unmention_1800w.6250707a.png",g=600,f=175,_={image:{url:y,width:1800,height:525},customVariants:[{uri:n.p+"illustration_unmention_600w.b146e2ea.png",width:g,height:f},{uri:h,width:1200,height:350},{uri:y,width:1800,height:525}]};var w=n(47877);const E="leave_this_conversation_inline_education",S=r().j24c37b2,v=r().e839db3a,Z=r().eba8b1c8,A=r().i859a9d4,C=r().ac1daf50,T=({onClose:e})=>a.createElement(b.nO,{namespace:{element:"leave_this_conversation_education_sheet"}},a.createElement(w.Z,{actionLabel:S,onAction:e,onClose:e})),D=u.Z.create((e=>({footerLearnMoreLink:{whiteSpace:"nowrap"},wrapper:{borderBottomColor:e.colors.borderColor,borderBottomWidth:e.borderWidths.small}}))),M=e=>{const{onDismiss:t}=e,[n,i]=a.useState(!1),s=(0,m.z)();a.useEffect((()=>{s.scribe({element:E,action:"impression"})}),[s]);const l=[{text:v,onClick:()=>{s.scribe({element:E,action:"dismiss"}),t()}}];return a.createElement(a.Fragment,null,n&&a.createElement(T,{onClose:()=>{i(!1)}}),a.createElement(c.Z,{style:D.wrapper},a.createElement(d.Z,{headline:Z,image:_.image,imageVariants:_.customVariants,rightControl:a.createElement(p.Z,{feedbackItems:l,isDisplayedOnMedia:!0}),subtext:a.createElement(a.Fragment,null,C," ",a.createElement(o.ZP,{color:"text",onClick:()=>{i(!0)},size:"subtext1",style:D.footerLearnMoreLink,weight:"bold",withInteractiveStyling:!0,withUnderline:!0},A))})))};var P=n(19313),x=n(46253),L=n(76293),k=n(85699),N=n(36374),I=n(58711),V=n(10034),B=n(10286),R=n(16587),U=n(52612),H=n(92160),F=n(29170),z=n(80045);const O=(0,R.Z)(((e,t)=>t&&t.notificationsModule(e))),W={notifications_alt_a:[{height:200,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/rooster-head-400x200.v1.png",width:400},{height:400,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/rooster-head-800x400.v1.png",width:800},{height:600,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/rooster-head-1200x600.v1.png",width:1200}],notifications_alt_b:[{height:200,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/bell-400x200.v1.png",width:400},{height:400,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/bell-800x400.v1.png",width:800},{height:600,uri:"https://abs.twimg.com/sticky/illustrations/empty-states/bell-1200x600.v1.png",width:1200}]},J={notifications_alt_a:{[B.l.All]:{headerMessage:r().b6a43e78,bodyMessage:r().f269c47e,buttonText:r().g6871092},[B.l.Mentions]:{headerMessage:r().e577e1a2,bodyMessage:r().b91e5a3a}},notifications_alt_b:{[B.l.All]:{headerMessage:r().g264f126,bodyMessage:r().a3420a9c,buttonText:r().g6871092},[B.l.Mentions]:{headerMessage:r().ef0b8028,bodyMessage:r().b91e5a3a}}},K=e=>["control","notifications_alt_a","notifications_alt_b"].includes(e),Q=(e,t,n)=>{var i,a;return null==(i=J[t])||null==(a=i[n])?void 0:a[e]},j=(e,t)=>Q("bodyMessage",e,t);var G=n(19744),$=n(76831),q=n(44895),X=n(37985);const Y={...(0,q.G)({tweetDismissable:!0,withMuteConversation:!0}),[U.ZP.Tweet]:G.ov({selectDisplayType:e=>e.content.displayType,handlers:{[X.Z.Tweet]:(0,$.Cw)({allowDownvote:!0,withMuteConversation:!0,withUnreadStyles:!0}),[X.Z.QuotedTweet]:(0,$.$Q)({isCondensed:!0})}})},ee=r().eb75875e,te=r().e9f1fbcc,ne=r().f287bb3a,ie=r().h994ec40,ae=r().c06d4306,oe=a.createElement(r().I18NFormatMessage,{$i18n:"a1300021"},a.createElement(o.ZP,{color:"text",link:"https://help.twitter.com/managing-your-account/about-twitter-verified-accounts",weight:"bold",withUnderline:!0},r().b0648adb)),se=r().bfdb3c12,le=r().h1d919ec,re=r().ib4510fe;class ce extends a.Component{constructor(...e){super(...e),this._getNewItemsPillLabel=()=>{if(this.props.notificationsType===B.l.All)return re},this._getEmptyMessageBody=()=>{const e=this.context.featureSwitches.isTrue("responsive_web_reactions_enabled");switch(this.props.notificationsType){case B.l.Mentions:return K(this._emptyStateVariant)&&"control"!==this._emptyStateVariant?j(this._emptyStateVariant,this.props.notificationsType):ae;case B.l.Verified:return e?le:se;default:return K(this._emptyStateVariant)&&"control"!==this._emptyStateVariant?j(this._emptyStateVariant,this.props.notificationsType):e?ie:ne}},this._getEmptyMessageHeader=()=>{return K(this._emptyStateVariant)&&"control"!==this._emptyStateVariant?(e=this._emptyStateVariant,t=this.props.notificationsType,Q("headerMessage",e,t)):te;var e,t},this._renderTwitterBlueVerifiedEmptyState=()=>a.createElement(s.Z,{header:te,imageVariants:I.P.VerificationCheck,message:oe,onButtonPress:this._handleEmptyTimelineButtonPress,onImpression:this._handleEmptyTimelineImpression}),this._renderEmptyTimeline=()=>{const{notificationsType:e}=this.props;if(e===B.l.Verified&&this.context.featureSwitches.isTrue("responsive_web_twitter_blue_verified_badge_ntab_empty_state_enabled"))return this._renderTwitterBlueVerifiedEmptyState();if(this._emptyStateVariant=this.context.featureSwitches.getStringValue("responsive_web_notifications_empty_state_redesign_variant"),K(this._emptyStateVariant)&&"control"!==this._emptyStateVariant){const e=((e,t)=>Q("buttonText",e,t))(this._emptyStateVariant,this.props.notificationsType);return a.createElement(s.Z,(0,i.Z)({},e&&{buttonLink:"/i/connect_people",buttonText:e},{header:this._getEmptyMessageHeader(),imageVariants:(t=this._emptyStateVariant,W[t]),message:this._getEmptyMessageBody(),onButtonPress:this._handleEmptyTimelineButtonPress,onImpression:this._handleEmptyTimelineImpression}))}var t;return a.createElement(s.Z,{header:this._getEmptyMessageHeader(),message:this._getEmptyMessageBody(),onImpression:this._handleEmptyTimelineImpression})},this._handleEmptyTimelineImpression=()=>{const{analytics:e}=this.props;e.scribe({component:"empty_message",action:"impression"})},this._handleEmptyTimelineButtonPress=()=>{const{analytics:e}=this.props;e.scribe({component:"empty_message",element:"primary_cta",action:"click"})},this._handleAtTop=()=>{this._updateLastReadIfNeeded()},this._renderTimelineHeader=()=>{const{addLeaveThisConversationEducationFlag:e,notificationsType:t,shouldShowUnmentionEducation:n,timelineHasTweets:i}=this.props;return n&&t===B.l.Mentions&&i&&this.context.featureSwitches.isTrue("dont_mention_me_mentions_tab_education_enabled")?a.createElement(M,{onDismiss:e}):void 0}}componentDidMount(){const{notificationsType:e,setNotificationsType:t}=this.props;t(e)}componentWillUnmount(){const{markAllAsRead:e,notificationsType:t}=this.props;this._updateLastReadIfNeeded(),t===B.l.All&&e()}render(){const{notificationsModule:e}=this.props;return e?a.createElement(x.Z,null,a.createElement(L.Z,{entryConfiguration:Y,header:this._renderTimelineHeader(),key:"notification-timeline",module:e,newTweetsPillLabel:this._getNewItemsPillLabel(),newTweetsPillMode:k.Q.CLIENT,onAtTop:this._handleAtTop,renderEmptyState:this._renderEmptyTimeline,title:ee})):null}_updateLastReadIfNeeded(){const{notificationsType:e,unreadCount:t,updateLastRead:n}=this.props;t&&n(e)}}ce.contextType=P.rC;const de=e=>(0,V.C)((e=>{const t=(0,R.Z)(O);return(0,H.Z)().propsFromState((()=>({shouldShowUnmentionEducation:e=>(0,F.t5)(e,F.QV),unreadCount:(n,{ntabData:i})=>{var a;return null==(a=t(e,i))?void 0:a.selectUnreadEntriesCount(n)},timelineHasTweets:(n,{ntabData:i})=>{const a=t(e,i),o=null==a?void 0:a.selectEntries(n);return!!(null==o?void 0:o.some((e=>e.type===U.ZP.Tweet)))}}))).adjustStateProps((({shouldShowUnmentionEducation:n,timelineHasTweets:i,unreadCount:a},{ntabData:o})=>({ntabData:null,notificationsModule:t(e,o),notificationsType:e,shouldShowUnmentionEducation:n,timelineHasTweets:i,unreadCount:a}))).propsFromActions((({ntabData:n})=>{var i;return{addLeaveThisConversationEducationFlag:()=>(0,F.pj)(F.QV),markAllAsRead:null==(i=t(e,n))?void 0:i.markAllAsRead,updateLastRead:n&&n.updateLastSeenCursor,setNotificationsType:z.BZ}})).withAnalytics({page:"ntab",section:e})})(e)(ce),{ntabData:N.Z}),ue=({notificationsType:e})=>de(e)},41074:(e,t,n)=>{n.r(t),n.d(t,{NotificationsVerifiedFirst:()=>V,default:()=>B});n(6886);var i=n(2784),a=n(7267),o=n(41441),s=n(96797),l=n(79404),r=n.n(l),c=n(24101),d=n(90876),u=n(9082),p=n(43467),b=n(19313),m=n(7765),h=n(46253),y=n(20941),g=n(59824),f=n(85300),_=n(7581),w=n(2632);const E=r().eb75875e,S=r().f8321d82,v=r().cdb53d7a,Z=r().h3290872,A=r().a98ba778,C=i.createElement(d.Z,null),T=i.createElement(c.Z,{pullRight:!0,to:"/settings/notifications"}),D=r().eb75875e,M=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,33570))))),P=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,35850))))),x=(0,y.Z)((0,f.p)((()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B"),n.e("shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle."),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.DirectMessages~bundle.Notifications"),n.e("bundle.Notifications")]).then(n.bind(n,27276))))),L={to:w._N,key:Z,label:Z,retainScrollPosition:!1},k={badgeCount:0,to:w.Im,key:S,label:S,retainScrollPosition:!1},N={to:w.JV,key:v,label:v,retainScrollPosition:!1},I=()=>i.createElement(g.Z,{to:w._N}),V=e=>{const{featureSwitches:t}=i.useContext(b.rC),n=t.isTrue("responsive_web_twitter_blue_verified_badge_ntab_all_badge_is_enabled"),{allNotificationsUnreadCount:l,history:r}=e,c=i.useMemo((()=>[L,{...k,badgeCount:n?l:0},N]),[l,n]),d=i.createElement(a.rs,null,i.createElement(a.AW,{component:x,exact:!0,path:w._N}),i.createElement(a.AW,{component:M,exact:!0,path:w.Im}),i.createElement(a.AW,{component:P,exact:!0,path:w.JV}),i.createElement(a.AW,{component:I,exact:!0,path:w.JK})),y=i.createElement(m.Z,{history:r});return i.createElement(h.Z,null,i.createElement(p.Z,{documentTitle:E,history:r,primaryContent:i.createElement(u.Z,{component:o.Z,fab:y},d),rightControl:T,secondaryBar:i.createElement(s.Z,{accessibilityLabel:A,links:c}),sidebarContent:C,title:D}))},B=(0,_.Z)(V)},27276:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(10286);const a=(0,n(95714).p)({notificationsType:i.l.Verified})},7581:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(92160),a=n(60420),o=n(57659);const s=(0,i.Z)().propsFromState((()=>({loggedInUser:o.ZP.selectLoggedInUser,allNotificationsUnreadCount:a.pm}))).adjustStateProps((({allNotificationsUnreadCount:e,loggedInUser:t})=>({isLoggedInUserVerified:!!t&&t.verified,allNotificationsUnreadCount:e}))).withAnalytics({page:"ntab"})},60790:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(2784),a=n(90601),o=n(73569);const s=(e={})=>(0,a.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[o.Z.root,e.style],viewBox:"0 0 24 24",children:i.createElement("g",null,i.createElement("path",{d:"M20.29 2.293L18.5 4.081C16.73 2.625 14.47 1.75 12 1.75 6.33 1.75 1.75 6.339 1.75 12c0 2.471.87 4.739 2.33 6.509l-1.79 1.784 1.42 1.414 18-18-1.42-1.414zM9.21 13.377c-.2-.498-.28-1.086-.19-1.725.25-1.769 1.65-2.798 2.89-2.623.41.057.79.242 1.12.525l-3.82 3.823zm5.24-5.245c-.6-.567-1.37-.958-2.26-1.083-2.58-.363-4.79 1.719-5.15 4.325-.18 1.243.08 2.487.68 3.487L5.5 17.086C4.4 15.685 3.75 13.919 3.75 12c0-4.556 3.69-8.25 8.25-8.25 1.91 0 3.68.655 5.08 1.754l-2.63 2.628zM7.2 21.06l1.49-1.497c1.02.442 2.13.687 3.31.687 1.59 0 3.08-.451 4.34-1.233l1.05 1.7c-1.57.972-3.42 1.533-5.39 1.533-1.74 0-3.37-.43-4.8-1.19zm4.07-4.069l4.72-4.722-.03.321c.03 1.145.92 2.122 2.1 2.23.91.083 1.62-.357 1.84-.99.2-.585.35-1.224.35-1.83 0-1.174-.25-2.29-.69-3.301l1.5-1.497c.76 1.432 1.19 3.065 1.19 4.798 0 .901-.21 1.77-.46 2.477-.59 1.731-2.34 2.478-3.91 2.334-1.24-.112-2.29-.729-3-1.626-.87 1.125-2.16 1.847-3.61 1.806z"}))});s.metadata={width:24,height:24};const l=s},47636:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(2784),a=n(90601),o=n(73569);const s=(e={})=>(0,a.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[o.Z.root,e.style],viewBox:"0 0 24 24",children:i.createElement("g",null,i.createElement("path",{d:"M23 3c-6.62-.1-10.38 2.421-13.05 6.03C7.29 12.61 6 17.331 6 22h2c0-1.007.07-2.012.19-3H12c4.1 0 7.48-3.082 7.94-7.054C22.79 10.147 23.17 6.359 23 3zm-7 8h-1.5v2H16c.63-.016 1.2-.08 1.72-.188C16.95 15.24 14.68 17 12 17H8.55c.57-2.512 1.57-4.851 3-6.78 2.16-2.912 5.29-4.911 9.45-5.187C20.95 8.079 19.9 11 16 11zM4 9V6H1V4h3V1h2v3h3v2H6v3H4z"}))});s.metadata={width:24,height:24};const l=s}}]);
  2. //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/bundle.Notifications.cff7cbaa.js.map