package com.discord.widgets.guildscheduledevent; import c0.f0.q; import c0.t.i0; import c0.z.d.m; import c0.z.d.o; import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.guildscheduledevent.GuildScheduledEventStatus; import com.discord.stores.StoreGuildScheduledEvents; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: GuildIdsWithActiveEventsModel.kt */ public final class GuildIdsWithActiveEventsModel$observe$1 extends o implements Function0> { public final /* synthetic */ StoreGuildScheduledEvents $storeGuildScheduledEvents; /* compiled from: GuildIdsWithActiveEventsModel.kt */ /* renamed from: com.discord.widgets.guildscheduledevent.GuildIdsWithActiveEventsModel$observe$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1>, Boolean> { public static final AnonymousClass1 INSTANCE = new AnonymousClass1(); public AnonymousClass1() { super(1); } /* 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 */ Boolean invoke(Map.Entry> entry) { return Boolean.valueOf(invoke((Map.Entry>) entry)); } public final boolean invoke(Map.Entry> entry) { boolean z2; m.checkNotNullParameter(entry, ""); List list = (List) entry.getValue(); if (!(list instanceof Collection) || !list.isEmpty()) { for (GuildScheduledEvent guildScheduledEvent : list) { if (guildScheduledEvent.k() == GuildScheduledEventStatus.ACTIVE) { z2 = true; continue; } else { z2 = false; continue; } if (z2) { return true; } } } return false; } } /* compiled from: GuildIdsWithActiveEventsModel.kt */ /* renamed from: com.discord.widgets.guildscheduledevent.GuildIdsWithActiveEventsModel$observe$1$2 reason: invalid class name */ public static final class AnonymousClass2 extends o implements Function1>, Long> { public static final AnonymousClass2 INSTANCE = new AnonymousClass2(); public AnonymousClass2() { super(1); } public final long invoke(Map.Entry> entry) { m.checkNotNullParameter(entry, "entry"); return entry.getKey().longValue(); } /* 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 */ Long invoke(Map.Entry> entry) { return Long.valueOf(invoke((Map.Entry>) entry)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public GuildIdsWithActiveEventsModel$observe$1(StoreGuildScheduledEvents storeGuildScheduledEvents) { super(0); this.$storeGuildScheduledEvents = storeGuildScheduledEvents; } /* Return type fixed from 'java.util.Set' to match base method */ @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final Set mo17invoke() { return q.toSet(q.map(q.filter(i0.asSequence(this.$storeGuildScheduledEvents.getAllGuildScheduledEvents()), AnonymousClass1.INSTANCE), AnonymousClass2.INSTANCE)); } }