Module 615179

1,646 characters · in ae1ecae76aa0d693.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{QN:()=>I,Z_:()=>m,ez:()=>T});var i=n(627968),r=n(64700),l=n(311907),s=n(447215),a=n(888675),o=n(976860),c=n(961350),u=n(696451),d=n(287809),_=n(654265),A=n(985018);let E=(e,t)=>{let{joinRequest:n,joinRequestGuild:i}=(0,_.A)(t.id),a=(0,l.bG)([d.default],()=>d.default.getUser(n?.userId)),A=(0,s.P)({user:a,channelId:t.id,guildId:t.guild_id,messageId:e.id}),E=(0,l.bG)([u.Ay,c.default],()=>u.Ay.isMember(i?.id,c.default.getId())),m=r.useCallback(()=>{E&&null!=i&&(0,o.uh)(i.id)},[i,E]);return{guild:i,joinRequest:n,usernameHook:A,guildNameClick:m}};function m(e){let{message:t,channel:r,compact:l}=e,{guild:s,joinRequest:o,usernameHook:c,guildNameClick:u}=E(t,r),d=o?.user?.username,_=s?.name;return(0,i.jsx)(a.A,{icon:n(617184),timestamp:t.timestamp,compact:l,children:null!=d&&null!=_?A.intl.format(A.t["21R6Ch"],{username:d,usernameHook:c(),guildName:_,guildNameClick:u}):A.intl.string(A.t["2VLV0d"])})}function I(e){let{message:t,channel:r,compact:l}=e,{guild:s,joinRequest:o,usernameHook:c,guildNameClick:u}=E(t,r),d=o?.user?.username,_=s?.name;return(0,i.jsx)(a.A,{icon:n(884797),timestamp:t.timestamp,compact:l,children:null!=d&&null!=_?A.intl.format(A.t["Bz/QC2"],{username:d,usernameHook:c(),guildName:_,guildNameClick:u}):A.intl.string(A.t.FVF6qU)})}function T(e){let{message:t,channel:r,compact:l}=e,{guild:s,joinRequest:o,usernameHook:c,guildNameClick:u}=E(t,r),d=o?.user?.username,_=s?.name;return(0,i.jsx)(a.A,{icon:n(884797),timestamp:t.timestamp,compact:l,children:null!=d&&null!=_?A.intl.format(A.t.Kpkesg,{username:d,usernameHook:c(),guildName:_,guildNameClick:u}):A.intl.string(A.t.BMlbE7)})}}