Module 770904

1,189 characters · in aca7018765200529.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>I});var i=n(627968),l=n(64700),s=n(311907),a=n(554146),r=n(192308),o=n(397927),d=n(932001),c=n(652793),u=n(361158),h=n(976860),A=n(186111),_=n(249584),m=n(652215),p=n(746080),g=n(49999),f=n(576709),E=n(985018),x=n(881190);let I=l.memo(function(e){let{guildId:t,selected:n}=e,I=(0,r.useHasAnyModalOpen)(),C=(0,s.bG)([A.A],()=>A.A.hasLayers()),N=(0,u.xr)(e=>e.fullScreenLayers.length>0),[T,S]=(0,d.ww)([a.M.GAME_SERVER_HOSTING_NEW_BADGE],t),b=T===a.M.GAME_SERVER_HOSTING_NEW_BADGE,[y,v]=(0,d.ww)(I||C||N||!b?[]:[a.M.GAME_SERVER_HOSTING_NEW_COACHMARK],t),R=l.useCallback(e=>{S(e),v(e)},[S,v]),j=l.useCallback(()=>{R(g.i.USER_DISMISS),(0,h.pX)(m.BVt.CHANNEL(t,p.VV.GAME_SERVERS))},[t,R]),O=l.useRef(null),L=y===a.M.GAME_SERVER_HOSTING_NEW_COACHMARK,M=l.useCallback(()=>(0,i.jsx)(_.mn,{channelRowRef:O,guildId:t,markAsDismissed:R}),[t,R]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.G,{ref:O,id:`game-server-${t}`,renderIcon:e=>(0,i.jsx)(o._xR,{size:"md",className:e,color:"currentColor"}),text:E.intl.string(f.default.vCzwM7),selected:n,onClick:j,trailing:b?(0,i.jsx)(o.LpS,{disableColor:!0,text:E.intl.string(E.t.y2b7CA),className:x.q}):null}),L&&M()]})})}