12 |
- "use strict";(self.webpackChunk_twitter_responsive_web=self.webpackChunk_twitter_responsive_web||[]).push([["ondemand.tweetHandler"],{49482:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var o=n(16742),i=n(19744),r=n(2784),a=n(7896),s=n(78052),c=n(94407),l=n(25686),d=n(73186),u=n(10013),p=n(40027),h=n(11839),m=n(59884),w=n(36934),y=n(85834),g=n(65526),v=n(41601),C=n(81686);const b=({onPress:e,tweet:t,tweetId:n})=>{(0,g.q)((()=>{(0,v.Z)()}));const o=r.useRef(null);o.current&&!o.current.hasAttribute("inert")&&o.current.setAttribute("inert","");const{width:i}=s.Z.get("screen"),a=i>=d.Z.theme.breakpoints.large;if(!t)return null;const b=(e=>{var t,n;const o=null==(t=e.entities)||null==(n=t.media)?void 0:n.find((e=>"photo"===e.type));return o&&"photo"===o.type?o:null})(t),x=(e=>{var t,n;const o=null==(t=e.extended_entities)||null==(n=t.media)?void 0:n.find((e=>"video"===e.type));return o&&"video"===o.type?o:null})(t);if(!b||!x)return null;const _=a?t.permalink:(0,C.PK)(t.permalink),T=u.ZP.getTruncatedCount(p.Z.getViewCount(x)||0);return r.createElement(h.Z,{accessibilityLabel:x.ext_alt_text,accessibilityRole:"link",link:_,onClick:e,style:f.container,testID:`media-tweet-card-${n}`},r.createElement(c.Z,{accessibilityLabel:null==b?void 0:b.ext_alt_text,accessibilityRole:"img",source:null==b?void 0:b.media_url_https,style:f.backgroundImage}),r.createElement(l.Z,{ref:o,style:f.innerContentContainer},r.createElement(m.Z,{accessibilityRole:"button",size:"small"}),r.createElement(l.Z,{style:f.viewCountContainer},r.createElement(y.Z,{size:16,style:f.viewCountIcon}),r.createElement(w.ZP,{style:f.viewCountText},T))))},f=d.Z.create((e=>({container:{width:"162px",height:"207px",marginStart:e.spaces.space12,color:e.colors.whiteOnColor,borderRadius:e.spaces.space12},innerContentContainer:{padding:e.spaces.space12,display:"flex",height:"100%",justifyContent:"center",alignItems:"center"},backgroundImage:{position:"absolute",width:"100%",height:"100%",borderRadius:e.spaces.space12},viewCountContainer:{position:"absolute",display:"block",start:e.spaces.space8,bottom:e.spaces.space8,height:e.spaces.space20,backgroundColor:e.colors.translucentBlack77,borderRadius:e.spaces.space4,padding:e.spaces.space1,paddingStart:e.spaces.space2,paddingEnd:e.spaces.space2,opacity:.7},viewCountIcon:{color:e.colors.whiteOnColor,marginEnd:e.spaces.space8},viewCountText:{color:e.colors.whiteOnColor}})));var x=n(60673),_=n(92160),T=n(30102);const I=(e,t)=>t.tweetId,k=(0,_.Z)().propsFromState((()=>({hydratedTweet:T.ZP.createHydratedTweetSelector(I)})))((({hydratedTweet:e,tweetId:t,...n})=>{const o=(0,x.z)(),i=r.useCallback((e=>{o.scribeAction("click")}),[o]);return r.createElement(b,(0,a.Z)({},n,{onPress:i,tweet:e,tweetId:t}))})),S=({entry:e})=>{const{id:t}=e.content;return r.createElement(k,{tweetId:t})},E=r.memo(S);var Z=n(13403);const P=e=>i.iH({component:E,divider:e.divider||{},defaultScribeNamespace:Z.Oj,getBehavioralEventContextOverride:Z.yY,getScribeDataItem:Z.Hx,isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,Z.QO)(!0)}).getHandler((()=>({...e})))},96750:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var o=n(16742),i=n(19744),r=n(2784),a=n(77089),s=n(73186),c=n(58804);const l={isCarouselItem:()=>!0},d=({entry:e})=>{const{forwardPivot:t,id:n,nudges:o}=e.content;return r.createElement(a.ZP.Provider,{value:l},r.createElement(c.Z,{forwardPivotInfo:t,isCondensed:!0,nudges:o,style:u.carouselQuoteTweet,tweetId:n}))},u=s.Z.create((e=>({carouselQuoteTweet:{marginHorizontal:e.componentDimensions.gutterHorizontal,marginTop:0,marginBottom:0,marginEnd:0,marginStart:e.spaces.space12,height:"172px"}}))),p=r.memo(d);var h=n(13403);const m=e=>i.iH({component:p,divider:e.divider||{},defaultScribeNamespace:h.Oj,getBehavioralEventContextOverride:h.yY,getScribeDataItem:h.Hx,isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,h.QO)(!0)}).getHandler((()=>({...e})))},13403:(e,t,n)=>{n.d(t,{FE:()=>a,Hx:()=>d,Oj:()=>r,P3:()=>u,QO:()=>l,yY:()=>c});var o=n(76275),i=n(37985);const r={component:"tweet"},a={component:"thread"},s={serversideContextType:"tweet"},c=e=>{var t,n,o,r;const a=null!=(t=e.content.retweetedStatusId)?t:e.content.id,c={...s,serversideContextId:a};return{viewType:(null==(n=e.content)?void 0:n.displayType)===i.Z.FocalTweet?"focal_tweet":e.type,token:null==(o=e.itemMetadata)||null==(r=o.clientEventInfo)?void 0:r.entityToken,clientEntity:c}},l=(e=!1)=>t=>{const{conversationPosition:n,conversationTreeMetadata:o}=t;return!(e||n&&!n.isEnd&&(!o||!1!==o.descendantConnector||0!==o.indents.filter((e=>"line"===e.displayType)).length))},d=e=>o.Z.getTweetURTEntryItem(e),u=(e,t,n)=>{const o=["descendant","ancestor"].includes(null==n?void 0:n.position)&&!["profile","me"].includes(e.page)?"descendant"===(null==n?void 0:n.position)?"conversation_descendants":"conversation_ancestors":e.section;return{...e,section:o,component:(null==t?void 0:t.component)||e.component,action:(null==t?void 0:t.action)||e.action,element:(null==t?void 0:t.element)||e.element}}},66750:(e,t,n)=>{n.d(t,{$:()=>r});var o=n(2784),i=n(34124);const r=(e,t,n,r,a)=>{const s=null==r?void 0:r.length,c=a&&!s,l=o.useCallback((()=>{t({entry:n,feedbackKeys:[i.Wb]}),e.scribe({element:i.S4(i.SB,n),action:"click"})}),[e,n,t]);return{onTweetDismiss:c?l:void 0}}},94126:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(16742),i=n(19744),r=n(2784),a=n(77089),s=n(73186),c=n(58804);const l=({entry:e,isCarouselItem:t,isCondensed:n})=>{const{forwardPivot:o,id:i,nudges:s}=e.content,l=r.useMemo((()=>({isCarouselItem:()=>t})),[t]);return r.createElement(a.ZP.Provider,{value:l},r.createElement(c.Z,{forwardPivotInfo:o,isCondensed:n,nudges:s,style:t?d.carouselQuoteTweet:d.quotedTweet,tweetId:i}))},d=s.Z.create((e=>({quotedTweet:{marginHorizontal:e.componentDimensions.gutterHorizontal,marginTop:0,marginBottom:e.componentDimensions.gutterVertical},carouselQuoteTweet:{marginTop:0,marginBottom:0,marginEnd:0,marginStart:e.spaces.space12,width:"312px",height:"172px"}}))),u=r.memo(l);var p=n(13403);const h=e=>i.iH({component:u,divider:e.divider||{},defaultScribeNamespace:p.Oj,getBehavioralEventContextOverride:p.yY,getScribeDataItem:p.Hx,isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,p.QO)(!!e.isCarouselItem)}).getHandler((()=>({...e})))},88491:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var o=n(16742),i=n(19744),r=n(2784),a=n(10013),s=n(50599),c=n(79404),l=n.n(c),d=n(7896),u=(n(6886),n(25686)),p=n(74062),h=n(3188),m=n(73186),w=n(86486),y=n(31735),g=n(1206),v=n(92482),C=n(19313),b=n(46110),f=n(36934),x=n(4642);const _=m.Z.create((e=>({hoverText:{marginHorizontal:e.componentDimensions.gutterHorizontal,marginVertical:e.componentDimensions.gutterVertical},popover:{maxWidth:`calc(${e.spaces.space64} * 4)`,minWidth:e.spaces.space64}}))),T=e=>{const{children:t,hoverText:n}=e;return r.createElement(x.Z,{contentStyle:_.popover,enableHover:!0,renderContent:()=>r.createElement(f.ZP,{style:_.hoverText},n),withArrow:!0},t)};var I=n(22685),k=n(23335),S=n(92160),E=n(30102);const Z=(e,t)=>t.tweetId,P=(0,S.Z)().propsFromState((()=>({tweet:E.ZP.createHydratedTweetSelector(Z)}))).adjustStateProps((({tweet:e})=>({originalTweet:e&&I.Z.getOriginalTweet(e)||e,tweet:e}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,k.createLocalApiErrorHandlerWithContextFactory)("TWEET_SELECT_CONTEXT")}))),O=l().h6beb5fb,F=e=>e&&e.preventDefault();class D extends r.PureComponent{constructor(...e){super(...e),this._renderDisabledTweet=e=>r.createElement(u.Z,{style:R.root},this._renderContent(),r.createElement(u.Z,{style:R.disabledTweetMask}),r.createElement(u.Z,{style:[R.disabledIconWrapper,R.iconMargins]},r.createElement(T,{hoverText:e},r.createElement(w.Z,{style:R.icon}),r.createElement(u.Z,{style:R.disabledTweetMask})))),this._renderContent=()=>{const{replyContext:e,tweet:t,withActions:n}=this.props;if(t){const o=(0,b.D$)(t,this.context.loggedInUserId);return r.createElement(u.Z,{style:R.tweet},r.createElement(v.Z,{linkableQuotedTweet:!0,onAnalyticsClick:g.Z,onAvatarClick:g.Z,onEntityClick:g.Z,onMediaClick:F,onReplyContextClick:g.Z,preventVideoPlayback:!0,replyContext:e,socialContext:o,tweet:t,withActions:n,withActionsDisabled:!0,withSocialContext:!0}))}return null},this._renderSelectIcon=e=>e?r.createElement(y.Z,{style:[R.icon,R.iconMargins,R.iconCheckmark]}):r.createElement(w.Z,{style:[R.icon,R.iconMargins]}),this._handleOnClick=()=>{const{onClick:e,originalTweet:t,tweetId:n}=this.props;if(e){e((null==t?void 0:t.id_str)||n)}}}render(){const{disabledMessage:e,isPartOfDraggedSelection:t,isSelected:n,showDragCount:o,tweet:i,withSelectIcon:a}=this.props;return e?this._renderDisabledTweet(e):i?r.createElement(p.Z,{onPress:this._handleOnClick,style:R.root},this._renderDragCount(o),this._renderContent(),a?this._renderSelectIcon(n):null,t&&r.createElement(u.Z,{style:R.disabledTweetMask})):null}_renderDragCount(e){return e<2?null:r.createElement(u.Z,{style:R.countBadgeContainer},r.createElement(h.Z,{count:e,standalone:!0,style:R.countBadge,truncatedCountFormatter:O,unreadCountLabel:()=>"",withBorder:!1}))}}D.contextType=C.rC,D.defaultProps={replyContext:s.ZP.ReplyContextTypes.Isolated,withActions:!0,withSelectIcon:!0,showDragCount:0,isPartOfDraggedSelection:!1,isSelected:!1};const R=m.Z.create((e=>({root:{backgroundColor:e.colors.cellBackground,flexDirection:"row"},tweet:{flex:1},disabledTweetMask:{...m.Z.absoluteFillObject,backgroundColor:e.colors.navigationBackground,opacity:"50%"},disabledIconWrapper:{height:"100%"},icon:{color:e.colors.gray700},iconMargins:{marginTop:e.spaces.space12,marginEnd:e.spaces.space12},iconCheckmark:{color:e.colors.green500},countBadge:{height:e.spaces.space32,width:e.spaces.space32},countBadgeContainer:{height:e.spaces.space32,width:e.spaces.space32,position:"absolute",end:`-${e.spaces.space16}`,top:`-${e.spaces.space16}`}}))),M=r.forwardRef(((e,t)=>r.createElement(D,(0,d.Z)({},e,{ref:t})))),A=P.forwardRef(M),H=({entry:{content:{id:e},index:t},maxSelection:n,onClick:o,selectedTweetIds:i,withSelectIcon:c})=>{let d="";const u=l().d876b2bd;return void 0!==n&&i&&i.length>=n&&(i.includes(e)||(d=u({count:a.ZP.getFormattedCount(n)}))),r.createElement(A,{disabledMessage:d,index:t,isSelected:null==i?void 0:i.includes(e),onClick:o,replyContext:s.ZP.ReplyContextTypes.None,tweetId:e,withActions:!1,withSelectIcon:c})},B=r.memo(H),N=e=>i.iH({component:B,isClickable:(0,o.Z)(!0),isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,o.Z)(!0)}).getHandler((()=>({...e})))},99093:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var o=n(16742),i=n(19744),r=n(7896),a=(n(85940),n(2784)),s=n(26499),c=n(7267),l=n(58955),d=n(65526),u=n(19313),p=n(45855),h=n(46110),m=n(35210),w=n(60673),y=n(47965),g=n(13403),v=n(66750),C=n(92160),b=n(38926),f=n(73738);const x=(e,{module:t})=>{var n;const o=t.selectMetadata(e);return(null==o||null==(n=o.reader_mode_config)?void 0:n.is_reader_mode_available)||!1},_=(e,{entry:t})=>{var n;return null!=(n=t.content.socialContext)&&n.topicContext?f.Z.select(e,t.content.socialContext.topicContext.topicId):void 0},T=(0,C.Z)().propsFromState((()=>({showReplyFilterInlineCallout:b.fh,readerModeAvailable:x,topic:_}))).propsFromActions((({module:e})=>({applyFeedbackAction:e.applyFeedbackAction})));var I=n(9441),k=n(1206);class S{constructor(e,t){this._cleanup=k.Z,this.schedule=e=>{this._schedule(1e3*e)},this.cancel=()=>{clearTimeout(this._timeoutId),this._cleanup(),this._reset()},this.pause=()=>{if(this._isScheduled){clearTimeout(this._timeoutId);const e=Date.now()-this._startTime;this._remainingTime=this._remainingTime-e,this._startTime=0}},this.resume=()=>{this._isPaused()&&this._schedule(this._remainingTime)},this._schedule=e=>{this._isScheduled=!0,this._startTime=Date.now(),this._remainingTime=e,this._timeoutId=setTimeout(this._fireHandler,this._remainingTime)},this._isPaused=()=>this._isScheduled&&0===this._startTime,this._fireHandler=()=>{this._handler(),this._reset(),this._cleanup()},this._reset=()=>{this._isScheduled=!1,this._startTime=0,this._remainingTime=0},this._handler=e,this._reset(),t&&(this._cleanup=t)}}const E=(0,l.Z)([m.Z.ReplyPin]),Z=T((({allowDownvote:e,applyFeedbackAction:t,createAdditionalProps:n=(0,o.Z)({}),dismissable:i=!1,showReplyFilterInlineCallout:l,entry:m,feedbackItems:C,readerModeAvailable:b,topic:f})=>{const x=(0,c.k6)(),_=(0,w.z)(),{content:{conversation_annotation:T,forwardPivot:k,hasModeratedReplies:Z,id:P,innerForwardPivot:O,innerNudges:F,innerTombstoneInfo:D,nudges:R,replyBadge:M,socialContext:A,topicFollowPrompt:H},conversationPosition:B,referringContext:{contextTweetId:N,contextualClientEventInfo:L,hideMedia:z,promotedContent:Q,socialContext:j,topicFollowPrompt:U}={}}=m,{featureSwitches:K}=a.useContext(u.rC),{clearOnGoodClickReaction:W,onGoodClickReaction:V}=(0,I.Fi)(),G=a.useMemo((()=>new S(V,W)),[W,V]),q=a.useCallback((()=>{G.cancel()}),[G]);(0,d.q)((()=>{if(!K.isTrue("home_timeline_extended_reactivity_tweet_clicks_enabled"))return;const e=e=>{"active"===e?G.resume():"background"===e&&G.pause()},t=s.Z.addEventListener("change",e),n=K.getNumberValue("home_timeline_extended_reactivity_tweet_clicks_trigger_seconds",120);return G.schedule(n),()=>{q(),null==t||t.remove("change",e)}}));const{onTweetDismiss:Y}=(0,v.$)(_,t,m,C,i),$=a.useMemo((()=>(0,g.P3)(_.contextualScribeNamespace,L,B)),[_.contextualScribeNamespace,L,B]),X=a.useMemo((()=>(0,h.Du)({socialContext:A,topic:f})),[A,f]),J=n(m,{applyFeedbackAction:t}),ee=!!X&&E.has(X.contextType);return ee&&(J.socialContext=X||j),a.useEffect((()=>{var e;const{location:t}=x;ee&&null!=(e=t.state)&&e.socialContext&&x.replace({...t,state:{...t.state,socialContext:void 0}})}),[x,ee]),a.createElement(p.nO,{namespace:$},a.createElement(y.Z9,(0,r.Z)({allowDownvote:e,contextTweetId:N,conversationAnnotation:T,feedbackItems:C,forwardPivotInfo:k,hasModeratedReplies:Z,innerForwardPivotInfo:O,innerNudges:F,nudges:R,onTweetDismiss:Y,onTweetReport:q,promotedContent:Q,quotedTweetTombstoneInfo:D,readerModeAvailable:b,replyBadge:M,showReplyFilterInlineCallout:l,socialContext:X||j,topicFollowPrompt:H||U,tweetId:P,withActions:!0,withInlineMedia:!z,withSocialContext:!0},J)))})),P=e=>i.iH({component:Z,divider:e.divider||{},defaultScribeNamespace:g.Oj,getBehavioralEventContextOverride:g.yY,getScribeDataItem:g.Hx,isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,g.QO)(!1)}).getHandler((()=>({...e})))},10866:(e,t,n)=>{n.r(t),n.d(t,{default:()=>D});var o=n(16742),i=n(19744),r=n(7896),a=n(2784),s=n(50599),c=n(68591),l=n(79404),d=n.n(l),u=n(19313),p=n(90560),h=n(45855),m=n(46110),w=n(41994),y=n(37985),g=n(13131),v=n(60673),C=n(13403),b=n(66750),f=n(9441),x=n(92160),_=n(71896),T=n(73738),I=n(44870);const k=(e,{entry:t,module:n})=>n.selectIsUnread(e,t.entryId),S=(e,{entry:t})=>{var n;return null!=(n=t.content.socialContext)&&n.topicContext?T.Z.select(e,t.content.socialContext.topicContext.topicId):void 0},E=(e,t)=>{var n,o;const{entry:i,module:r}=t,a=(null==(n=i.itemMetadata)||null==(o=n.feedbackInfo)?void 0:o.feedbackKeys)||[],s=r.selectFeedbackActions(e);let c=I.C.NotPinnable;return a.forEach((e=>{var t,n;null!=(t=s[e])&&null!=(n=t.richBehavior)&&n.replyPinState&&(c=s[e].richBehavior.replyPinState)})),c},Z=(0,x.Z)().propsFromState((()=>({isUnread:k,topic:S,pinnedReplyState:E}))).propsFromActions((({module:e})=>({saveAsRecentSearch:_.DI,applyFeedbackAction:e.applyFeedbackAction,applyReactionInstructions:e.applyReactionInstructions}))),P=d().e25a0c3a,O=({allowDownvote:e=!1,applyFeedbackAction:t,applyReactionInstructions:n,bookmarkFolderId:i,createAdditionalProps:l=(0,o.Z)({}),dismissable:d=!1,displayBlocked:x,entry:_,feedbackItems:T,hideConversationControlsEducationText:I=!1,hideExclusivityInfoEducationTextInReplies:k=!1,hideTrustedFriendsEducationTextInReplies:S=!1,hideHighlightedUserLabel:E=!1,isReaderMode:Z=!1,isUnread:O,pinnedReplyState:F,saveAsRecentSearch:D,shouldSelfThreadIncludeAvatar:R=!1,shouldStoreTypeaheadItem:M,showWithheldBannerOnMyTweets:A=!1,topic:H,tweetTextSize:B,withActionsDisabled:N=!1,withMuteConversation:L=!1,withRemoveFromBookmarks:z=!1,withSelfThread:Q=!1,withUserPresence:j=!1,withUnreadStyles:U=!1})=>{const K=(0,v.z)(),{content:{conversation_annotation:W,displayType:V,forwardPivot:G,hasModeratedReplies:q,highlights:Y,id:$,innerForwardPivot:X,innerNudges:J,innerTombstoneInfo:ee,nudges:te,promotedMetadata:ne,replyBadge:oe,ruxContext:ie,socialContext:re,topicFollowPrompt:ae},conversationPosition:se,conversationTreeMetadata:ce,itemMetadata:le,referringContext:{contextTweetId:de,contextualClientEventInfo:ue,focalTweetId:pe,hideMedia:he,socialContext:me,topicFollowPrompt:we}={}}=_;let ye;Z&&(ye=s.ZP.ReplyContextTypes.None);const ge=(0,f.ep)(),{featureSwitches:ve}=a.useContext(u.rC),{setOnGoodClickReaction:Ce}=(0,f.Fi)(),be=a.useCallback((e=>{if(e||!ve.isTrue("home_timeline_extended_reactivity_tweet_clicks_enabled")||ge>=ve.getNumberValue("home_timeline_extended_reactivity_tweet_clicks_fatigue",3))return;Ce((()=>{n({entry:_,triggerName:g.K.ON_GOOD_CLICK}),(0,f.iP)(ge+1)}))}),[n,_,ve,ge,Ce]),fe=a.useCallback((()=>n({entry:_,triggerName:g.K.ON_LIKE})),[n,_]),xe=a.useCallback((()=>n({entry:_,triggerName:g.K.ON_BLOCK_AUTHOR})),[n,_]),_e=!!_.conversationPosition&&!_.conversationPosition.isStart,Te=a.useMemo((()=>T&&!Z?{markNotInterestedTopic:T.find((e=>e.feedbackKey===(0,w.aN)(_.entryId)))}:void 0),[T,_.entryId,Z]),{onTweetDismiss:Ie}=(0,b.$)(K,t,_,T,d),ke=a.useMemo((()=>(0,C.P3)(K.contextualScribeNamespace,ue,se)),[K.contextualScribeNamespace,ue,se]),Se=a.useMemo((()=>(0,m.Du)({socialContext:re,topic:H})),[re,H]),Ee=a.useMemo((()=>l(_,{applyFeedbackAction:t})),[t,_,l]);return a.createElement(h.nO,{namespace:ke},a.createElement(a.Fragment,null,V===y.Z.EmphasizedPromotedTweet?a.createElement(c.ZP,{text:P}):null,a.createElement(p.Z9,(0,r.Z)({allowDownvote:e,bookmarkFolderId:i,contextTweetId:de,contextualClientEventInfo:le.clientEventInfo,conversationAnnotation:W,conversationPosition:se,conversationTreeMetadata:ce,displayBlocked:x,displayPromotedContent:!0,feedbackItems:T,focalTweetId:pe,forwardPivotInfo:G,handleBlockTrigger:xe,hasModeratedReplies:q,hideConversationControlsEducationText:I||_e,hideExclusivityInfoEducationTextInReplies:k,hideHighlightedUserLabel:E,hideTrustedFriendsEducationTextInReplies:S,hitHighlights:null==Y?void 0:Y.textHighlights,injectedFeedbackItem:Te,innerForwardPivotInfo:X,innerNudges:J,isReaderMode:Z,isUnread:U?O:void 0,nudges:te,onLike:fe,onTweetClick:be,onTweetDismiss:Ie,pinnedReplyState:F,quotedTweetTombstoneInfo:ee,replyBadge:oe,replyContext:ye,ruxContext:ie,saveAsRecentSearch:D,shouldSelfThreadIncludeAvatar:R,shouldStoreTypeaheadItem:M,showWithheldBannerOnMyTweets:A,socialContext:Se||me,topicFollowPrompt:ae||we,tweetId:$,tweetTextSize:B,urtPromotedContent:ne,withActions:!0,withActionsDisabled:N,withInlineMedia:!he||Z,withMuteConversation:L,withRemoveFromBookmarks:z,withSelfThread:Q,withSocialContext:!0,withUserPresence:j},Ee))))},F=Z(a.memo(O)),D=e=>i.iH({component:F,divider:e.divider||{},defaultScribeNamespace:e.isReaderMode?C.FE:C.Oj,getBehavioralEventContextOverride:C.yY,getScribeDataItem:C.Hx,isFocusable:(0,o.Z)(!0),shouldDisplayBorder:(0,C.QO)(e.isReaderMode)}).getHandler((()=>({...e})))},13131:(e,t,n)=>{n.d(t,{K:()=>o});const o=Object.freeze({ON_BLOCK_AUTHOR:"onBlockAuthor",ON_LINGER:"onLinger",ON_IS_RELEVANT:"onIsRelevant",ON_SHOW_MORE:"onShowMore",ON_LIKE:"onLike",ON_FOLLOW:"onFollow",ON_GOOD_CLICK:"onGoodClick"})},71896:(e,t,n)=>{n.d(t,{DI:()=>b,H$:()=>p,OB:()=>f,Ww:()=>d,YB:()=>u,hj:()=>y,qF:()=>v});n(1951);var o=n(26853),i=n(67935);const r="recentSearches",a="rweb.recentSearches",s=e=>(t,n,{userPersistence:o})=>o.set(a,{recentSearches:e}).catch((()=>{Promise.resolve()})),c=(e,t)=>{let n=[];if(e&&e.user){const o=e.user;n=t.filter((e=>e.keyword||e.topic||e.event||e.user&&e.user.id!==o.id))}else if(e&&e.topic){const o=e.topic;n=t.filter((e=>e.keyword||e.user||e.event||e.topic&&e.topic.id!==o.id))}else if(e&&e.event){const o=e.event;n=t.filter((e=>e.keyword||e.user||e.topic||e.event&&e.event.id!==o.id))}else if(e&&e.keyword){const o=e.keyword;n=t.filter((e=>e.keyword&&e.keyword.query!==o.query||e.user||e.topic||e.event))}return n},l={fetched:!1,recentSearches:[]};const d=e=>e.recentSearches.recentSearches,u=e=>d(e)[0]||null,p=e=>e.recentSearches.fetched,h="rweb/recentSearches/INIT_FROM_CACHE",m=e=>({type:h,payload:e}),w="rweb/recentSearches/REMOVE_QUERY",y=e=>(t,n,{userPersistence:o})=>{t({payload:e,type:w});const r=n().recentSearches;return(0,i.Qb)(n())?t(s(r.recentSearches)):Promise.resolve()},g="rweb/recentSearches/CLEAR_ALL",v=()=>(e,t,{userPersistence:n})=>{e({type:g});const o=t().recentSearches;return(0,i.Qb)(t())?e(s(o.recentSearches)):Promise.resolve()},C="rweb/recentSearches/ADD_QUERY",b=e=>(t,n,{userPersistence:o})=>{t({payload:e,type:C});const r=n().recentSearches;return(0,i.Qb)(n())?t(s(r.recentSearches)):Promise.resolve()},f=()=>(e,t,{userPersistence:n})=>t().recentSearches.fetched?Promise.resolve():e(((e,t,{userPersistence:n})=>{const o=t();return(0,i.Qb)(o)?n.get(a).then((t=>{e(m(t))})).catch((()=>{e(m())})):(e(m()),Promise.resolve())}));o.Z.register({[r]:function(e=l,t){switch(t.type){case C:{const n=t.payload,o=n?c(n,e.recentSearches):[];return o.length>49&&o.splice(49,1),n&&o.unshift(n),{...e,recentSearches:o}}case w:{const n=t.payload,o=n?c(n,e.recentSearches):[];return{...e,recentSearches:o}}case g:return{fetched:!0,recentSearches:[]};case h:return{...e,...t.payload,fetched:!0};default:return e}}})},68591:(e,t,n)=>{n.d(t,{Tu:()=>p,ZP:()=>m});var o=n(2784),i=n(25686),r=n(3655),a=n(36934),s=n(79866),c=n(11839),l=n(73186),d=n(80166);const u=l.Z.create((e=>({icon:{color:e.colors.primary,height:e.fontSizes.title4,paddingEnd:e.spaces.space12,width:e.fontSizes.title4}}))),p=Object.freeze({TopicFilled:"TOPIC_FILLED"});const h=l.Z.create((e=>({root:{justifyContent:"space-between",paddingHorizontal:e.componentDimensions.gutterHorizontal,paddingVertical:e.componentDimensions.gutterVertical},mainContent:{flexDirection:"row"},subtext:{alignSelf:"flex-start"},withSubtext:{alignSelf:"center"},icon:{alignSelf:"flex-start",height:e.spaces.space20,justifyContent:"center"},iconArrow:{color:e.colors.text},rightControlGroup:{flexDirection:"row",justifyContent:"flex-end",flexGrow:1,alignSelf:"center"}}))),m=function({icon:e,landingUrl:t,nativeID:n,rightControl:m,style:w,subtext:y,testID:g,text:v}){const C=(e=>e===p.TopicFilled?o.createElement(d.Z,{style:u.icon}):null)(e),b=y?null:h.withSubtext,f=s.Z.generate({backgroundColor:l.Z.theme.colors.gray0,color:l.Z.theme.colors.cellBackground,customFocusBackgroundColor:l.Z.theme.colors.gray0,customHoverBackgroundColor:l.Z.theme.colors.gray0,customPressedBackgroundColor:l.Z.theme.colors.gray0});return o.createElement(c.Z,{interactiveStyles:t?f:null,link:null==t?void 0:t.url,nativeID:n,style:[h.root,w],testID:g},o.createElement(i.Z,{accessibilityLevel:2,accessibilityRole:"heading",style:h.mainContent},o.createElement(i.Z,{style:h.icon},C),o.createElement(a.ZP,{numberOfLines:3,size:"headline1",style:b,weight:"heavy",withHashflags:!0},v),o.createElement(i.Z,{style:h.rightControlGroup},t?o.createElement(i.Z,{style:b},o.createElement(r.Z,{style:h.iconArrow})):null,m?o.createElement(i.Z,null,m):null)),y?o.createElement(a.ZP,{color:"gray700",numberOfLines:2,size:"subtext2",style:h.subtext,withHashflags:!0},y):null)}},86486:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(2784),i=n(90601),r=n(73569);const a=(e={})=>(0,i.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[r.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.56 0-8.25 3.69-8.25 8.25s3.69 8.25 8.25 8.25 8.25-3.69 8.25-8.25S16.56 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12z"}))});a.metadata={width:24,height:24};const s=a}}]);
- //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/ondemand.tweetHandler.3472001a.js.map
|