Build 533169stable
Module 15438
863 characters · in 30a277b9d32d70b1.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>A});var i=n(311907),l=n(506774),a=n(73153),r=n(498642),s=n(71393),o=n(576705),d=n(652215);let c={MAX_MEMBER_COUNT:new Set};class u extends i.Ay.Store{static displayName="MaxMemberCountChannelNoticeStore";initialize(){this.waitFor(o.A,s.A,r.A),this.syncWith([o.A,s.A,r.A],d.tEg),l.w.remove(d.n5X.MAX_MEMBER_COUNT_100),l.w.remove(d.n5X.MAX_MEMBER_COUNT_250),c[d.n5X.MAX_MEMBER_COUNT]=new Set(l.w.get(d.n5X.MAX_MEMBER_COUNT))??new Set}isVisible(e){if(null==e)return!1;let t=r.A.getMemberCount(e.id)??0,n=o.A.can(d.xBc.ADMINISTRATOR,e);return!c[d.n5X.MAX_MEMBER_COUNT].has(e.id)&&n&&e.maxMembers>0&&e.maxMembers-t<=1e4}}let A=new u(a.h,{MAX_MEMBER_COUNT_NOTICE_DISMISS:function(e){let t=e.guildId;if(!c[d.n5X.MAX_MEMBER_COUNT].has(t))return c[d.n5X.MAX_MEMBER_COUNT].add(t),l.w.set(d.n5X.MAX_MEMBER_COUNT,c[d.n5X.MAX_MEMBER_COUNT]),!0}})}