Module 302291

1,232 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,{R:()=>E,d:()=>m});var i=n(627968),r=n(64700),l=n(397927),s=n(763754),a=n(447215),o=n(888675),c=n(342296),u=n(486020),d=n(552691),_=n(652215);function A(e,t){let n=r.useRef(null);return r.useCallback(r=>(s,a)=>{let o=u.Ay.getApplicationIconURL({id:r.id,icon:r.icon,bot:r.bot,botIconFirst:!0}),{bot:d}=r;return null==d?s:(0,i.jsx)(c.A,{targetElementRef:n,userId:d.id,avatarUrl:o,guildId:e.guild_id,channelId:e.id,messageId:t.id,clickTrap:!0,children:e=>(0,i.jsx)(l.MzZ,{...e,ref:n,children:s})},a)},[e,t.id])}function E(e){let{message:t,channel:r,compact:l}=e,c=(0,s.Ay)(t),u=t.application,E=(0,a.P)({user:t.author,channelId:r.id,guildId:r.guild_id,messageId:t.id}),m=A(r,t);return(0,i.jsx)(o.A,{icon:n(617184),timestamp:t.timestamp,compact:l,children:(0,d.eu)({application:u,username:c.nick,usernameHook:E(c),applicationNameHook:null!=u?m(u):_.tEg})})}function m(e){let{message:t,channel:r,compact:l}=e,c=(0,s.Ay)(t),u=t.application,E=(0,a.P)({user:t.author,channelId:r.id,guildId:r.guild_id,messageId:t.id}),m=A(r,t);return(0,i.jsx)(o.A,{icon:n(884797),timestamp:t.timestamp,compact:l,children:(0,d.A0)({application:u,username:c.nick,usernameHook:E(c),applicationNameHook:null!=u?m(u):_.tEg})})}}