discord-jadx/app/src/main/java/com/discord/stores/StoreStageChannels$observeS...

64 lines
2.8 KiB
Java

package com.discord.stores;
import com.discord.widgets.stage.model.StageChannel;
import d0.f0.q;
import d0.t.h0;
import d0.t.u;
import d0.z.d.o;
import java.util.Iterator;
import java.util.Map;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreStageChannels.kt */
public final class StoreStageChannels$observeStageChannels$1 extends o implements Function0<Map<Long, ? extends StageChannel>> {
public final /* synthetic */ StoreStageChannels this$0;
/* compiled from: StoreStageChannels.kt */
/* renamed from: com.discord.stores.StoreStageChannels$observeStageChannels$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function1<Long, Map<Long, ? extends StageChannel>> {
public final /* synthetic */ StoreStageChannels$observeStageChannels$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreStageChannels$observeStageChannels$1 storeStageChannels$observeStageChannels$1) {
super(1);
this.this$0 = storeStageChannels$observeStageChannels$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 */ Map<Long, ? extends StageChannel> invoke(Long l) {
return invoke(l.longValue());
}
public final Map<Long, StageChannel> invoke(long j) {
return StoreStageChannels.getStageChannelsInGuild$default(this.this$0.this$0, j, null, 0, null, null, 30, null);
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreStageChannels$observeStageChannels$1(StoreStageChannels storeStageChannels) {
super(0);
this.this$0 = storeStageChannels;
}
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.widgets.stage.model.StageChannel>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<Long, ? extends StageChannel> mo1invoke() {
Object obj;
Iterator it = q.map(u.asSequence(StoreStageChannels.access$getGuildsStore$p(this.this$0).getGuilds().keySet()), new AnonymousClass1(this)).iterator();
if (!it.hasNext()) {
obj = null;
} else {
Object next = it.next();
while (it.hasNext()) {
next = h0.plus((Map) next, (Map) it.next());
}
obj = next;
}
Map<Long, ? extends StageChannel> map = (Map) obj;
return map != null ? map : h0.emptyMap();
}
}