Loading
function(e,t,n){"use strict";var i=n(607399),r=n(559201),a=n(439372),s=n(5180),l=n(831617),o=n(71393),d=n(576705),c=n(967198),u=n(533993),_=n(645619),E=n(772788),A=n(383272),f=n(363487),h=n(342220);class I extends a.A{handleSelectedGuildChange(){let e=c.A.getGuildId();if(null==e||(0,s.ai)(e))return;let t=o.A.getGuild(e);if(null!=t){if(l.x1.trackExposure({guildId:t.id,location:"GuildPowerupsManager"}),A.g$.trackExposure({guildId:t.id,location:"GuildPowerupsManager"}),E.K.getConfig({guildId:t.id,location:"GuildPowerupsManager"}),!(0,f.G)(d.A,t)){let e=(0,h.X)(),t=i.Fr&&(0,h.X)();if(!(i.Fr?t:e))return}_.A.shouldFetchCatalogForGuild(e)&&(0,u.AK)(e),_.A.shouldFetchPowerupsForGuild(e)&&(0,u.Xd)(e)}}handleEntitlementUpdate(e){let{guildId:t}=e;this.refreshGuildPowerups(t)}handleAppliedBoostUpdate(e){let{guildId:t}=e;this.refreshGuildPowerups(t)}refreshGuildPowerups(e){!0===(0,f.G)(d.A,o.A.getGuild(e))&&((0,u.Xd)(e),(0,r.VU)(e,{includeEnded:!0}))}stores=new Map().set(c.A,this.handleSelectedGuildChange);actions={GUILD_POWERUP_ENTITLEMENTS_CREATE:this.handleEntitlementUpdate.bind(this),GUILD_POWERUP_ENTITLEMENTS_DELETE:this.handleEntitlementUpdate.bind(this),GUILD_APPLIED_BOOSTS_UPDATE:this.handleAppliedBoostUpdate.bind(this)}}let p=new I;n.d(t,{},{A:p})}