Module 122943

1,703 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>T});var i=n(627968),l=n(64700),a=n(503698),r=n.n(a),s=n(311907),o=n(397927),d=n(863439),c=n(465364),u=n(448368),A=n(302031),h=n(253932),_=n(576705),m=n(994500),g=n(978914),p=n(652215),E=n(838541),I=n(985018),f=n(571882),C=n(992595);let T=l.memo(function(e){let{channel:t}=e,{loaded:n,error:a,message:T}=(0,g.I)(t),{isBlocked:N,isIgnored:S}=(0,s.cf)([m.A],()=>({isBlocked:null!=T&&m.A.isBlockedForMessage(T),isIgnored:null!=T&&m.A.isIgnoredForMessage(T)}),[T]),x=(0,s.bG)([_.A],()=>_.A.can(p.xBc.MANAGE_MESSAGES,t)),b=h.gs.useSetting(),{content:v}=l.useMemo(()=>T?.content!=null&&""!==T.content?(0,c.Ay)(T,{formatInline:!0,noStyleAndInteraction:!0}):{content:null},[T]),y=null;if(a)y=(0,i.jsx)(o.Text,{className:f.G4,variant:"text-sm/normal",color:"text-muted",children:I.intl.string(I.t.BZHld2)});else if(n)if(null!=T&&N)y=(0,i.jsx)(o.Text,{className:f.G4,variant:"text-sm/normal",color:"text-muted",children:I.intl.string(I.t["WPe+xL"])});else if(null!=T&&S)y=(0,i.jsx)(o.Text,{className:f.G4,variant:"text-sm/normal",color:"text-muted",children:I.intl.string(I.t.uxrh1O)});else if(null!=T){let{contentPlaceholder:e,renderedContent:t}=(0,u.o)(T,v,N,S,r()(f.BK,C.tZ),{leadingIconClass:f.AF,trailingIconClass:f.AF,iconSize:E.eJ});y=null!=t?(0,i.jsx)(o.Text,{variant:"text-sm/normal",color:"text-muted",className:f.BK,children:t}):(0,i.jsx)(o.Text,{tag:"span",variant:"text-sm/normal",color:"text-muted",className:f.G4,children:e})}else y=(0,i.jsx)(o.Text,{className:f.G4,variant:"text-sm/normal",color:"text-muted",children:I.intl.string(I.t["0KfDxM"])});else y=null;return(0,i.jsx)(A.Bs.Provider,{value:(0,d.A)(b,x),children:(0,i.jsx)(o.M1G,{className:f.JY,children:y})})})}