Module 442228

1,187 characters · in 48de5e6177b72ccc.js
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>S});var l=n(627968),r=n(64700),a=n(503698),i=n.n(a),s=n(140735),o=n(707554),u=n(123292),c=n(688810),d=n(183555),f=n(975732),h=n(308244),A=n(375708),m=n(851929);let S=r.memo(function(e){let{user:t,onClose:n,bio:a,hidePersonalInformation:S,viewFullBioDisabled:g=!1}=e,{context:x}=(0,d.NJ)(),{analyticsLocations:T}=(0,c.Ay)(),E=r.useId(),[p,R]=r.useState(!1),[v,y]=r.useState(!1),C=r.useRef(null);return S||null==a||""===a?null:(0,l.jsxs)("section",{"aria-labelledby":E,children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(o.H,{id:E,children:A.intl.string(A.t.ZzAR2Y)})}),(0,l.jsx)("div",{ref:e=>{C.current=e,null==e||(R(!v&&e.scrollHeight-e.clientHeight>1),e.getBoundingClientRect().height>57.75&&y(!0))},className:i()(m.mA,v&&m.Em),onBlur:e=>{null==C.current||C.current.contains(e.relatedTarget)||(C.current.scrollTop=0)},children:(0,l.jsx)(h.A,{userBio:a,setLineClamp:!1,textColor:"text-strong"})}),(p||v)&&(0,l.jsx)("div",{className:m.HV,children:(0,l.jsx)(u.Q,{textVariant:"text-xs/normal",size:"sm",variant:"secondary",text:A.intl.string(A.t.YDiPq8),onClick:()=>{n?.(),(0,f.openUserProfileModal)({...x,userId:t.id,sourceAnalyticsLocations:T})},disabled:g})})]})})}