Loading
function(t,i,n){n.d(i,{default:()=>B});var s=n(477900),e=n(582128),r=n(613412),l=n(855986),a=n(97808),c=n(778712),o=n(428678),d=n(534514),u=n(834730),m=n(192308),I=n(640238),x=n(49229),E=n(628284),g=n(738188),h=n(754302),j=n(792996);function A(){return(0,s.jsxs)(h.q,{children:[(0,s.jsx)(h.B,{title:j.intl.string(j.t.fjFJFV),description:j.intl.string(j.t["8SIMPz"]),icon:E.y}),(0,s.jsx)(h.B,{title:j.intl.string(j.t.QCrmqS),description:j.intl.string(j.t.TKDMoN),icon:E.y}),(0,s.jsx)(h.B,{title:j.intl.string(j.t["lkm/a8"]),description:j.intl.string(j.t["8j3qaC"]),icon:g.WarningIcon})]})}var N=n(662502),C=n(632738),_=n(994500),f=n(129230),T=n(975571),p=n(562153),O=n(143547),R=n(235627),k=n(652215),v=n(490930);function S(t){let{user:i,onBlock:n,onIgnore:e,location:r,disallowIgnore:I,guildId:x,channelId:E}=t,g=(0,l.bG)([_.A],()=>_.A.isIgnored(i.id));return(0,s.jsxs)("div",{className:v.kL,children:[(0,s.jsxs)("div",{className:v.RS,children:[(0,s.jsxs)("div",{className:v.zc,children:[(0,s.jsx)(a.eu,{size:c._3.SIZE_56,src:i.getAvatarURL(void 0,64),"aria-hidden":!0}),(0,s.jsx)("div",{className:v.Kk,children:(0,s.jsx)(o.K,{})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(d.D,{variant:"heading-xl/semibold",color:"text-strong",children:j.intl.format(j.t.CIbzHR,{username:p.Ay.getName(x,E,i)})}),(0,s.jsx)(u.E,{variant:"body-md/medium",color:"text-default",children:j.intl.string(j.t.S70jou)})]})]}),(0,s.jsx)(A,{}),I||g?null:(0,s.jsxs)("div",{className:v.l_,children:[(0,s.jsx)(C.Y0,{title:j.intl.string(j.t["+BJTcB"]),children:(0,s.jsx)(C.PQ,{title:j.intl.string(j.t.hC8tcc),description:j.intl.string(j.t.If89rE),titleVariant:"body-md/medium",descriptionVariant:"body-xs/medium",buttonText:j.intl.string(j.t.mxJOd9),onButtonPress:()=>{f.default.track(k.HAw.USER_REMEDIATION_ACTION,{action:R.p.GOTO_IGNORE,location:r}),(0,m.s7)(),(0,m.qf)(t=>(0,s.jsx)(O.default,{...t,user:i,guildId:x,channelId:E,onIgnore:e,onBlock:n,location:r}))}})}),(0,s.jsx)(u.E,{variant:"body-sm/medium",className:v.FV,children:j.intl.format(j.t.DJN6eZ,{articleLink:T.A.getArticleURL(k.MVz.STEALTH_REMEDIATION_FEATURE_GUIDE)})})]})]})}function B(t){let{user:i,onBlock:n,onCancel:l,onIgnore:a,location:c="ContextMenu",disallowIgnore:o,guildId:d,channelId:u,...m}=t;return e.useLayoutEffect(()=>()=>{f.default.track(k.HAw.USER_REMEDIATION_ACTION,{action:R.p.DISMISS_BLOCK,location:c})},[c]),(0,s.jsx)(I.a,{confirmText:j.intl.string(j.t.l4Emac),cancelText:j.intl.string(j.t["ETE/oC"]),onCancel:function(){f.default.track(k.HAw.USER_REMEDIATION_ACTION,{action:R.p.CANCEL_BLOCK,location:c}),l?.()},onConfirm:()=>{n?.(),x.A.blockUser(i.id,{location:c},u??void 0).then(()=>{f.default.track(k.HAw.BLOCK_USER_CONFIRMED),N.A.showBlockSuccessToast(i.id,u??void 0)})},impression:{impressionName:r.ImpressionNames.BLOCK_USER_CONFIRMATION},...m,children:(0,s.jsx)(S,{user:i,guildId:d,channelId:u,onBlock:n,onIgnore:a,disallowIgnore:o})})}}