Build 543408stable
Module 366251
717 characters · in 23be1e48389a6bc2.jsDependencies
Source Raw
function(e,t,i){i.d(t,{A:()=>m});var n=i(17928),l=i(228366),s=i(763827);let a={},r=!1,d=null;function o(e){e in a&&delete a[e]}function u(){if(!r&&s.A.isConnected()){let e=s.A.getChannelId();if(null!=e)return o(e),d=e,r=!0,!0}else if(r&&!s.A.isConnected()&&null!=d)return o(d),d=null,r=!1,!0;return!1}class c extends n.Ay.Store{static displayName="VoiceInvitesuggestionsStore ";initialize(){this.waitFor(s.A),this.syncWith([s.A],u)}getIsPopoverDismissed(e){return null!=e&&(a[e]??!1)}getShouldShowPopover(e){return null!=e&&s.A.isConnected()&&s.A.getChannelId()===e&&!this.getIsPopoverDismissed(e)}}let m=new c(l.h,{VOICE_INVITE_SUGGESTIONS_DISMISS_POPOVER:function(e){let{channelId:t}=e;return!a[t]&&(a[t]=!0,!0)}})}