UNPKG

equicord-companion

Version:

Equicord Companion is a vscode extension to test Equicord patches & webpack finds right from the comfort of your IDE

43 lines (42 loc) 1.27 kB
// Webpack Module 400271 - Patched by 0, function(e, t, n) { n.d(t, { Z: () => b }), n(388685); var r, i, l, a = n(442837), o = n(433517), s = n(570140), c = n(650774), u = n(430824), d = n(496675), p = n(135899), h = n(981631); let f = "publicUpsellChannelNoticeGuilds" , g = new Set; class m extends (r = a.ZP.Store) { initialize() { var e; this.waitFor(d.Z, u.Z, c.Z), this.syncWith([d.Z, u.Z, c.Z], h.dG4), g = (e = new Set(o.K.get(f)), e) } isVisible(e) { if (null == e) return; let t = c.Z.getMemberCount(e.id); return !g.has(e.id) && null != t && t >= p.U3 && d.Z.can(h.Plq.ADMINISTRATOR, e) && !e.hasFeature(h.oNc.COMMUNITY) } } l = "EnablePublicGuildUpsellNoticeStore", (i = "displayName")in m ? Object.defineProperty(m, i, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : m[i] = l; let b = new m(s.Z,{ PUBLIC_UPSELL_NOTICE_DISMISS: function(e) { let t = e.guildId; if (!g.has(t)) return g.add(t), o.K.set(f, g), !0 } }) }