package com.discord.stores; import com.discord.api.guildscheduledevent.GuildScheduledEventUser; import d0.t.u; import d0.z.d.m; import d0.z.d.o; import java.util.ArrayList; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreGuildScheduledEvents.kt */ public final class StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 extends o implements Function1, Unit> { public final /* synthetic */ long $guildId; public final /* synthetic */ StoreGuildScheduledEvents this$0; /* compiled from: StoreGuildScheduledEvents.kt */ /* renamed from: com.discord.stores.StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ List $eventUsers; public final /* synthetic */ StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1 storeGuildScheduledEvents$fetchUserGuildScheduledEvents$1, List list) { super(0); this.this$0 = storeGuildScheduledEvents$fetchUserGuildScheduledEvents$1; this.$eventUsers = list; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { List list = this.$eventUsers; ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(list, 10)); for (GuildScheduledEventUser guildScheduledEventUser : list) { arrayList.add(Long.valueOf(guildScheduledEventUser.a())); } StoreGuildScheduledEvents.access$getUserGuildScheduledEventIds$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$guildId), u.toMutableSet(arrayList)); StoreGuildScheduledEvents.access$getUserGuildScheduledEventsFetches$p(this.this$0.this$0).add(Long.valueOf(this.this$0.$guildId)); this.this$0.this$0.markChanged(); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreGuildScheduledEvents$fetchUserGuildScheduledEvents$1(StoreGuildScheduledEvents storeGuildScheduledEvents, long j) { super(1); this.this$0 = storeGuildScheduledEvents; this.$guildId = j; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(List list) { invoke((List) list); return Unit.a; } public final void invoke(List list) { m.checkNotNullParameter(list, "eventUsers"); StoreGuildScheduledEvents.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, list)); } }