Build 533169stable
Module 657331
1,313 characters · in no known chunkDependencies
Required by (62)
10635252873888439407708568140086404866389253496304112753113266113763155486163233171350179242179534189552206835225732243949264140282978322789373966442228442671443064449630456425462463476398497600516259535296561446584904594968610358617514634202634409659242667747673310684018697668712785722868728963762561787331802246806677836501839785841933850457885041925913964395
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.r(t),n.d(t,{closeUserProfileModal:()=>p,openUserProfileModal:()=>f});var r=n(397927),i=n(73153),s=n(803306),a=n(993327),o=n(626584),l=n(287809),u=n(576622);let c=(0,r.FT9)(r._3J.SIZE_120),d=new o.A("UserProfileModalActionCreators"),_=async e=>{try{await (0,a.A)(e)}catch(t){d.log(`Failed to fetch content inventory outbox for ${e}:`,t)}};async function f(e){let{userId:t,guildId:n,originGuildId:r,channelId:a,messageId:o,roleId:d,sessionId:f,joinRequestId:p,tabSection:h,scrollTarget:m,hideRestrictedProfile:E,sourceAnalyticsLocations:g,appContext:A,customStatusPrompt:I=null}=e,T=Date.now(),S=l.default.getUser(t);_(t),null==S?await (0,s.eO)(t,{type:"modal",guildId:n??void 0,withMutualFriendsCount:!0,withMutualFriends:!1,withMutualGuilds:!0,joinRequestId:p}):(0,u.A)(S.id,S.getAvatarURL(void 0,c),{type:"modal",guildId:n??void 0,withMutualFriendsCount:!S.bot,withMutualFriends:!1,withMutualGuilds:!0,joinRequestId:p}),i.h.dispatch({type:"USER_PROFILE_MODAL_OPEN",userId:t,guildId:n??void 0,originGuildId:r??void 0,channelId:a??void 0,messageId:o??void 0,roleId:d??void 0,sessionId:f??void 0,openedAt:T,customStatusPrompt:I,tabSection:h,scrollTarget:m,hideRestrictedProfile:E,sourceAnalyticsLocations:g,appContext:A})}function p(){i.h.dispatch({type:"USER_PROFILE_MODAL_CLOSE"})}}