Loading
function(e,t,n){"use strict";var i=n(477900),r=n(582128),a=n(855986),s=n(625903),l=n(265872),o=n(688810),d=n(384059),c=n(480890),u=n(573435),_=n(848362),E=n(471993),A=n(734057),f=n(287809),h=n(964989),I=n(448645),p=n(447404),m=n(693409),g=n(806931),T=n(682901),S=n(792996),N=n(138302);function C(e){let{className:t}=e;return(0,i.jsx)(s.SettingsIcon,{size:"md",color:"currentColor",className:t})}function O(e){let{className:t}=e;return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(u.Ay,{className:t,mask:u.Ay.Masks.HEADER_BAR_BADGE_BOTTOM,children:(0,i.jsx)(C,{})}),(0,i.jsx)(h.A,{className:N.s})]})}n.d(t,{},{A:function(e){let{hideBadges:t=!1,stream:n,location:s,...u}=e,h=r.useRef(null),{analyticsLocations:N,parentAnalyticsLocation:R}=(0,o.Ay)(),L=(0,a.bG)([f.default],()=>I.Ay.isPremium(f.default.getCurrentUser(),T.PremiumTypes.TIER_1)),y=(0,a.bG)([A.A],()=>A.A.getChannel(n?.channelId)),D=r.useMemo(()=>null!=n?[n]:[],[n]),b=r.useCallback(()=>{null!=y&&(0,E.A)(y.getGuildId(),y.id,N)},[y,N]);if(null==n||null==y)return null;let v=C;return t||L||(v=O),(0,i.jsx)(l.Y,{targetElementRef:h,position:"top",renderPopout:e=>{let{closePopout:t}=e;return(0,i.jsx)(p.A,{children:(0,i.jsx)(_.A,{channel:y,currentUser:f.default.getCurrentUser(),activeStreams:D,onClose:t,showReportOption:!0,handleGoLive:b,onInteraction:(0,c.s)("ManageStreamsButton",R??s,{entrypoint:g.GK.OTHER_BUTTON})})})},animation:l.Y.Animation.FADE,children:e=>(0,i.jsx)(m.A,{...e,buttonRef:h,label:S.intl.string(S.t.tmiYpF),iconComponent:v,onClick:t=>{(null!=R||null!=s)&&(0,d.XJ)(R??s,d.OP.STREAM_SETTINGS),e?.onClick(t)},...u})})}})}