(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"88ay":function(e,t,o){"use strict";o.d(t,"c",(function(){return F})),o.d(t,"e",(function(){return M})),o.d(t,"f",(function(){return H})),o.d(t,"d",(function(){return z})),o.d(t,"a",(function(){return V}));var r=o("97Jx"),n=o.n(r),i=(o("kYxP"),o("ERkP")),a=o.n(i),s=o("6rlp"),l=o("zh9S"),c=o("G6rE"),d=o("rxPX"),p=o("0KEI");const h=(e,t)=>c.e.select(e,t.userId),m=(e,t)=>t.promotedContent;var u=Object(d.a)().propsFromState((()=>({promotedContent:m,user:h}))).adjustStateProps((({promotedContent:e,user:t})=>({promotedContent:e||(t?t.promoted_content:void 0),user:t}))).propsFromActions((()=>({createLocalApiErrorHandler:Object(p.createLocalApiErrorHandlerWithContextFactory)("USER_CELL_CONTAINER"),log:s.a,scribeAction:l.c}))),C=o("I57f"),b=o("vMjK"),y=o("MWbm"),g=o("IG7M"),_=o("rHpw");const v=e=>{const{children:t,promotedContent:o,user:r}=e;return a.a.createElement(y.a,{style:w.decorationWrapper},t,a.a.createElement(g.a,{renderActionMenu:e=>a.a.createElement(b.b,{onClose:e,promotedContent:o,user:r,view:"follower"}),style:w.actionMenu}))},w=_.a.create((e=>({decorationWrapper:{flexDirection:"row"},actionMenu:{marginLeft:e.spaces.space12}})));var k=o("uIZp"),f=o("mN6z"),E=o("caTy"),I=o("3IPs"),S=o("Rp9C"),x=o("X04g"),T=o("Re5t"),L=o("TnY3"),P=o("hxu0"),U=o("v6aA"),A=o("7JQg"),R=o("nBUg"),B=o("IMA+"),D=o("cFuS");const N=e=>{const{user:t}=e;return t&&t.profile_image_url_https?a.a.createElement(j,n()({},e,{avatarUri:t.profile_image_url_https,description:t.description,entities:t.entities,followRequestReceived:t.follow_request_received,highlightedLabel:t.highlightedLabel,isAutoblocking:t.smart_blocking,isBlockedBy:t.blocked_by,isBlocking:t.blocking,isDeviceFollowing:t.notifications,isFollowedBy:t.followed_by,isFollowing:t.following,isProtected:t.protected,isVerified:t.verified,name:t.name,screenName:t.screen_name,translatorType:t.translator_type,user:t,withheldDescription:t.withheld_description,withheldEntities:t.withheld_entities})):null};N.defaultProps={cellClickable:!0,decoration:null,displayMode:T.a.UserCompact,followRequestReceived:!1,hideBlocked:!1,promotedItemType:D.c.USER,shouldScribeProfileClick:!0,shouldScribeImpression:!1,withFollowsYou:!1};const F=({isDeviceFollowing:e,userId:t})=>a.a.createElement(C.a,{isFollowing:e,style:O.followButton,userId:t}),M=({loggedInUserId:e,onFollowClick:t,promotedContent:o,userId:r})=>e!==r?a.a.createElement(k.a,{onFollowClick:t,promotedContent:o,size:"small",style:O.followButton,userId:r}):null,H=e=>a.a.createElement(v,{promotedContent:e.promotedContent,user:e.user},M(e)),z=e=>a.a.createElement(g.a,{renderActionMenu:t=>a.a.createElement(b.b,{onClose:t,promotedContent:e.promotedContent,user:e.user,view:"rito_flagged_accounts"})});class j extends a.a.Component{constructor(...e){super(...e),this._handleAvatarClick=()=>{const{shouldScribeProfileClick:e}=this.props;this._handleSaveAsRecentSearch(),e&&this._scribeAction({element:"avatar",action:"profile_click"}),this._handleAsyncPromotedEvent(D.b.PROFILE_IMAGE_CLICK)},this._handleCellClick=()=>{const{history:e,onClick:t,screenName:o,user:r}=this.props,n=this._getPromotedTweetState();this._handleSaveAsRecentSearch(),this._handleScreenNameClick(),t?t({user:r,state:n}):e.push({pathname:`/${o}`,state:n||void 0})},this._handleScreenNameClick=()=>{const{shouldScribeProfileClick:e}=this.props;this._handleSaveAsRecentSearch(),e&&this._scribeAction({action:"profile_click"}),this._handleAsyncPromotedEvent(D.b.SCREEN_NAME_CLICK)},this._handleSaveAsRecentSearch=()=>{const{saveAsRecentSearch:e,shouldStoreTypeaheadItem:t,userId:o}=this.props;e&&t&&t(x.a.ItemType.USER)&&e({user:{id:o,type:I.a.User}})},this._scribeAction=e=>{var t;const{promotedContent:o,scribeAction:r,scribeData:n,scribeNamespace:i,user:a,userId:s}=this.props,l=null==n||null==(t=n.items)?void 0:t.find((e=>e.item_type===x.a.ItemType.USER&&e.id===s)),c=n.search_details;r({...i,...e},{items:[{...l,...S.a.getUserItem(a,o)}],profile_id:s,search_details:c})}}componentDidMount(){this._shouldRender()&&this._handleImpression()}shouldComponentUpdate(e){return!Object(f.a)(this.props,e)}render(){const{avatarDecoration:e,bottomControl:t,cellClickable:o,createLocalApiErrorHandler:r,decoration:i,followRequestReceived:s,hideBlocked:l,history:c,isAutoblocking:d,isBlockedBy:p,isBlocking:h,isDeviceFollowing:m,isFollowing:u,isInSidebar:C,location:b,log:y,onClick:g,onFollowClick:_,promotedItemId:v,saveAsRecentSearch:w,scribeAction:k,scribeData:f,scribeNamespace:I,shouldScribeImpression:S,shouldScribeProfileClick:x,shouldStoreTypeaheadItem:T,socialContext:L,user:P,...U}=this.props;return this._shouldRender()?a.a.createElement(R.b.Provider,{value:{socialContextRefreshEnabled:()=>this.context.featureSwitches.isTrue("social_context_and_topic_context_refresh_alignment_enabled")}},a.a.createElement(B.a,n()({},U,{avatarDecoration:e,bottomControl:this._renderBottomControl(),decoration:this._renderDecoration(),highlightedLabel:this._getHighlightedLabel(),isBlocking:P.blocking,onAvatarClick:this._handleAvatarClick,onCellClick:o?this._handleCellClick:void 0,onScreenNameClick:this._handleScreenNameClick,socialContext:L?{contextType:L.contextType,text:L.text,link:L.landingUrl?Object(E.b)(L.landingUrl):void 0}:void 0,withDarkerInteractiveBackground:C}))):null}_renderBottomControl(){return this._renderControl(this.props.bottomControl||null)}_renderDecoration(){const{decoration:e,onFollowClick:t}=this.props;return this._renderControl(e,t)}_renderControl(e,t){const{loggedInUserId:o}=this.context,{displayMode:r,followRequestReceived:n,isAutoblocking:i,isBlocking:a,isDeviceFollowing:s,isFollowing:l,promotedContent:c,screenName:d,user:p,userId:h}=this.props;return"function"==typeof e?e({displayMode:r,followRequestReceived:n,isAutoblocking:i,isBlocking:a,isDeviceFollowing:!!s,isFollowing:!!l,loggedInUserId:o,promotedContent:c,screenName:d,user:p,userId:h,onFollowClick:t}):e}_shouldRender(){const{hideBlocked:e,isBlockedBy:t,isBlocking:o,screenName:r,userId:n}=this.props;return n&&r&&!(e&&(t||o))}_getHighlightedLabel(){const{highlightedLabel:e}=this.props.user,t="AutomatedLabel"===(null==e?void 0:e.userLabelType),o=!!t&&this.context.featureSwitches.isTrue("account_taxonomy_automated_label_enabled");return!t||o?e:void 0}_getPromotedTweetState(){const{promotedContent:e,promotedItemType:t}=this.props;return e&&t===D.c.TWEET?{promotedTweetState:e}:null}_handleAsyncPromotedEvent(e){const{createLocalApiErrorHandler:t,log:o,promotedContent:r,promotedItemId:n,promotedItemType:i,userId:a}=this.props;if(r){const{disclosure_type:s,impression_id:l}=r;o({disclosureType:s,itemId:n||a,itemType:i,params:{event:e,impression_id:l}}).catch(t())}}_handleImpression(){const{createLocalApiErrorHandler:e,log:t,promotedContent:o,promotedItemType:r,shouldScribeImpression:n,userId:i}=this.props;if(o&&r===D.c.USER){const{disclosure_type:r,impression_id:n}=o;t({disclosureType:r,itemId:i,itemType:D.c.USER,params:{event:D.b.IMPRESSION,impression_id:n}}).catch(e())}else n&&this._scribeAction({action:"impression"})}}j.contextType=U.a,j.defaultProps=N.defaultProps;const O=_.a.create((e=>({followButton:{marginLeft:e.spaces.space12}}))),V=Object(L.a)(Object(P.a)(u(N)));t.b=Object(A.a)({element:"user"})(V)},"IMA+":function(e,t,o){"use strict";var r=o("97Jx"),n=o.n(r),i=(o("kYxP"),o("SV7d")),a=o("ERkP"),s=o.n(a),l=o("TIdA"),c=o("t62R"),d=o("5mJL"),p=o("DNho"),h=o("nBUg"),m=o("qjak"),u=o("ir4X"),C=o("htQn"),b=o("e5HP"),y=o("FBXD"),g=o("Nqmc"),_=o("rHpw"),v=o("oSwX"),w=o("1I0O"),k=o("pBrB"),f=o("jV+4"),E=o("MWbm");const I=Object.freeze({TWEET:"tweets",USER:"users"}),S=Object.freeze({UserCompact:"UserCompact",UserConcise:"UserConcise",UserDetailed:"UserDetailed",ExperimentalUserTypeahead:"ExperimentalUserTypeahead"}),x=l.a.createLayoutCache(),T={viewType:"user_cell"};class L extends s.a.PureComponent{constructor(...e){super(...e),this._renderUserName=()=>{const{badgeContext:e,disabledMessage:t,displayNameLabel:o,isBlocking:r,isDisabled:n,isFollowedBy:i,isProtected:a,isVerified:l,name:d,onScreenNameClick:p,promotedContent:h,promotedItemType:m,screenName:u,screenNameSuffix:C,translatorType:b,withFollowsYou:y,withLink:g}=this.props,_=s.a.createElement(f.a,{badgeContext:e,displayNameLabel:o,isProtected:a,isVerified:l,name:d,onLinkClick:p,promotedContent:m===I.TWEET?h:void 0,screenName:u,screenNameSuffix:C,translatorType:b,withFollowsYou:y&&i,withHoverCard:!r&&!n&&g,withLink:!n&&g,withScreenName:!t,withStackedLayout:!0});return t?s.a.createElement(E.a,{style:P.disabledMessageContainer},_,s.a.createElement(c.b,{color:"gray700"},t)):_},this._renderSocialContext=()=>{const{avatarSize:e,displayMode:t,socialContext:o}=this.props;return o?s.a.createElement(h.b.UseProps,null,(r=>s.a.createElement(g.a,{avatarSize:e,contextType:o.contextType,iconSize:"large",link:o.link,style:P.socialContext,text:o.text,weight:"bold",withLeftPadding:!r.socialContextRefreshEnabled()&&t!==S.ExperimentalUserTypeahead}))):null},this._renderUserTypeaheadSocialContext=()=>{const{socialContext:e}=this.props,{Icon:t,text:o}=e&&Object(m.a)({link:e.link,text:e.text,iconSize:"small",contextType:e.contextType})||{};return e?s.a.createElement(E.a,{style:P.userTypeaheadSocialContext},s.a.createElement(E.a,{style:P.userTypeaheadSocialContextIcon},t),s.a.createElement(c.b,{color:"gray700",numberOfLines:1,style:P.userTypeaheadSocialContextText},o)):null},this._renderHighlightedUserLabel=()=>{const{highlightedLabel:e}=this.props;return e?s.a.createElement(u.a,{label:e}):null},this._isEligibleForBio=()=>{const{displayMode:e}=this.props;return-1!==[S.UserDetailed,S.UserConcise].indexOf(e)},this._handleKeyPress=e=>{e.defaultPrevented||"Enter"!==e.key||this._handleClick(e)},this._handleClick=Object(y.a)((e=>{const{onCellClick:t}=this.props;e.preventDefault(),t&&t()}))}render(){const{accessibilityLabel:e,accessibilityState:t,avatarDecoration:o,avatarSize:r,avatarUri:a,bottomControl:l,decoration:c,displayMode:h,isBlocking:m,isDisabled:u,onAvatarClick:y,onCellClick:g,onScreenNameClick:_,presenceIndicator:k,promotedContent:f,promotedItemType:L,screenName:U,style:A,testID:R,userId:B,withDarkerInteractiveBackground:D,withInteractiveStyling:N,withLink:F,withUsernameCenterAligned:M}=this.props,H=F&&!m,z=h===S.UserCompact||M,j=h===S.ExperimentalUserTypeahead,O=f&&L===I.USER&&"earned"!==(f.disclosure_type&&f.disclosure_type.toLowerCase())?s.a.createElement(b.a,{contentAuthorId:B,promotedContent:f,style:P.promotedIndicator}):null,V={accessibilityHidden:!0,decoration:o,focusable:!1,imageLayoutCache:x,onClick:y,onHoverCardScreenNameClick:_,promotedContent:f,screenName:U,style:P.avatar,uri:a,withHoverCard:H,withLink:F},q=s.a.createElement(p.a.Consumer,null,(({avatarSize:e})=>k?s.a.createElement(w.a,n()({},V,k,{size:e})):s.a.createElement(v.default,n()({size:e},V)))),K=t&&"boolean"==typeof t.checked,W=void 0!==g,Y=(K?"radio":W&&"button")||"listitem",J=this._renderUserName(),X=this._renderHighlightedUserLabel(),G=this._renderBio(),Q=X||G||O||l,Z=s.a.createElement(s.a.Fragment,null,X,G,O,l?s.a.createElement(E.a,{style:P.bottomControl},l):null);return s.a.createElement(i.a,{behavioralEventContext:T},s.a.createElement(C.a,{accessibilityLabel:e,accessibilityRole:Y,accessibilityState:t,disabled:!!u,focusable:K||W,onClick:this._handleClick,onKeyPress:this._handleKeyPress,pointerEvents:u?"none":void 0,style:[P.root,A],testID:R,withDarkerInteractiveBackground:D,withInteractiveStyling:null!=N?N:!!g},j?null:this._renderSocialContext(),s.a.createElement(d.a,{avatarCell:q,avatarCellStyle:[P.avatarColumn,z&&P.bodyColumnCentered],avatarSize:j?"xxxLarge":r,cellStyle:[P.bodyColumn,z&&P.bodyColumnCentered]},s.a.createElement(E.a,{style:P.body},J,c),z?null:Z,j?this._renderUserTypeaheadSocialContext():null),Q&&z?s.a.createElement(d.a,{avatarCell:null,avatarCellStyle:P.avatarColumn,cellStyle:P.bodyColumn},Z):null))}_renderBio(){const{description:e,displayMode:t,entities:o,userId:r,withheldDescription:n,withheldEntities:i}=this.props;return o&&e&&this._isEligibleForBio()?s.a.createElement(k.a,{description:e,entities:o,isConcise:t===S.UserConcise,style:P.bio,userId:r,withheldDescription:n,withheldEntities:i}):null}}L.defaultProps={testID:"UserCell",withLink:!0};const P=_.a.create((e=>({root:{paddingHorizontal:e.componentDimensions.gutterHorizontal,paddingVertical:e.componentDimensions.gutterVertical},avatarColumn:{justifyContent:"flex-start"},bodyColumn:{flexGrow:1},bodyColumnCentered:{justifyContent:"center"},avatar:{display:"block",width:"100%"},bio:{paddingTop:e.spaces.space4,whiteSpace:"normal"},socialContext:{marginBottom:e.spaces.space4},userTypeaheadSocialContext:{alignItems:"center",flexDirection:"row",textColor:e.colors.gray700},userTypeaheadSocialContextIcon:{flexShrink:0},userTypeaheadSocialContextText:{paddingLeft:e.spaces.space2},body:{alignItems:"center",flexDirection:"row",justifyContent:"space-between"},promotedIndicator:{margin:0,paddingTop:e.spaces.space4,paddingBottom:0,paddingHorizontal:0},bottomControl:{paddingTop:e.spaces.space4},disabledMessageContainer:{flexShrink:1}})));t.a=L},e5HP:function(e,t,o){"use strict";o.d(t,"a",(function(){return w}));var r=o("ERkP"),n=o.n(r),i=o("t62R"),a=o("3XMw"),s=o.n(a),l=o("rHpw"),c=o("MWbm"),d=o("Lsrn"),p=o("k/Ka");const h=(e={})=>Object(p.a)("svg",{...e,accessibilityHidden:void 0===e.accessibilityLabel,style:[d.a.root,e.style],viewBox:"0 0 24 24"},n.a.createElement("g",null,n.a.createElement("path",{d:"M12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1zm5.05 12.48c0 .48-.39.87-.88.87-.477 0-.87-.393-.87-.87V9.94l-6.85 6.85c-.163.166-.387.26-.62.26-.233 0-.457-.094-.62-.26-.338-.341-.338-.899 0-1.24l6.85-6.85h-3.54c-.477 0-.87-.393-.87-.87 0-.49.39-.88.87-.88h5.65c.11 0 .23.03.33.07.11.04.2.1.29.19.09.09.15.18.19.29.04.1.07.22.07.33v5.65z"})));h.metadata={width:24,height:24};var m=h,u=o("uFYP");const C=s.a.f1a1b791,b=s.a.if2bf8b4,y=s.a.f3624b5c,g=s.a.b4b3b113,_=s.a.be222050,v=s.a.hcbbe447;class w extends n.a.Component{render(){const{color:e,nativeID:t,style:o,withCircleIcon:r}=this.props,a=r?m:u.a;return n.a.createElement(c.a,{style:[k.root,o]},n.a.createElement(a,{style:[k.icon,e&&k[e]]}),n.a.createElement(i.b,{color:e,nativeID:t,size:"subtext2"},this._getPromotedLabel()))}_getPromotedLabel(){const{contentAuthorId:e,label:t,promotedContent:o}=this.props,{adMetadataContainer:r,advertiser:n,advertiser_name:i,disclosure_type:a}=o,s=e&&n&&e===n.id_str,l="string"==typeof a&&"political"===a.toLowerCase(),c="string"==typeof a&&"issue"===a.toLowerCase(),d=!(!r||"POLITICAL"!==r.disclaimerType)||l,p=!(!r||"ISSUE"!==r.disclaimerType)||c,{removePromotedAttributionForPreroll:h}=r||{};let m;return m=t||(!i||s||h?d?y:p?_:b:d?g({fullName:i}):p?v({fullName:i}):C({fullName:i})),m}}w.defaultProps={color:"gray700",withCircleIcon:!1};const k=l.a.create((e=>({root:{alignItems:"center",flexDirection:"row"},icon:{color:e.colors.gray700,height:"1em",marginRight:e.spaces.space4,flexShrink:0},gray700:{color:e.colors.gray700},white:{color:e.colors.white}})))},hxu0:function(e,t,o){"use strict";var r=o("97Jx"),n=o.n(r),i=o("ERkP"),a=o.n(i),s=o("vqbU");t.a=e=>t=>a.a.createElement(s.a.Consumer,null,(o=>a.a.createElement(e,n()({},t,{isInSidebar:o}))))},uFYP:function(e,t,o){"use strict";var r=o("ERkP"),n=o.n(r),i=o("Lsrn"),a=o("k/Ka");const s=(e={})=>Object(a.a)("svg",{...e,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.a.root,e.style],viewBox:"0 0 24 24"},n.a.createElement("g",null,n.a.createElement("path",{d:"M20.75 2H3.25C2.007 2 1 3.007 1 4.25v15.5C1 20.993 2.007 22 3.25 22h17.5c1.243 0 2.25-1.007 2.25-2.25V4.25C23 3.007 21.993 2 20.75 2zM17.5 13.504c0 .483-.392.875-.875.875s-.875-.393-.875-.876V9.967l-7.547 7.546c-.17.17-.395.256-.62.256s-.447-.086-.618-.257c-.342-.342-.342-.896 0-1.237l7.547-7.547h-3.54c-.482 0-.874-.393-.874-.876s.392-.875.875-.875h5.65c.483 0 .875.39.875.874v5.65z"})));s.metadata={width:24,height:24},t.a=s}}]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/shared~bundle.AudioSpacePeek~bundle.DirectMessages~ondemand.SettingsRevamp~ondemand.SettingsInternals~bundle..ec017596.js.map