Build 533169stable
Module 217356
973 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(627968),i=n(64700),s=n(503698),a=n.n(s),o=n(770178),l=n(765548),u=n(685073),c=n(534400),d=n(329157);let _=i.memo(function(e){let{children:t,isOverlay:n,contextGuildId:s,..._}=e,[f,p]=i.useState({maskImage:"none"}),h=i.useRef(null),m=(0,l.A)(()=>{let e=E.current?.getBoundingClientRect()??null,t=h.current?.getBoundingClientRect()??null;if(n||null==e||null==t)return void p({maskImage:"none"});let r=t.right-e.right,i=t.width-r;i>t.width?p({maskImage:"none"}):p({maskImage:`linear-gradient(to right, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 0) ${i}px)`})}),E=(0,o.w)(m),g=(0,u.Wb)(_.userId,s);return(0,r.jsxs)("div",{className:a()(d.kL,n&&d.ur),ref:E,children:[(0,r.jsx)("div",{className:d.QV,children:t}),(0,r.jsx)("div",{className:d.Qz,children:(0,r.jsx)("span",{className:a()(d.Tm,!g&&n&&d.pN),ref:h,style:f,children:(0,r.jsx)(c.Ay,{..._,contextGuildId:s,className:a()(_.className,n&&d.ZW),disableGuildProfile:!0})})})]})})}