forked from Juby210/discord-jadx
75 lines
7.0 KiB
Java
75 lines
7.0 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.api.directory.DirectoryEntryEvent;
|
|
import com.discord.api.directory.DirectoryEntryGuild;
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
|
import com.discord.api.stageinstance.StageInstance;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.stores.StoreMessageAck;
|
|
import com.discord.stores.StoreNux;
|
|
import com.discord.stores.StoreThreadsActiveJoined;
|
|
import com.discord.stores.StoreThreadsJoined;
|
|
import com.discord.stores.utilities.RestCallState;
|
|
import com.discord.utilities.channel.GuildChannelsInfo;
|
|
import com.discord.widgets.channels.list.WidgetChannelListModel;
|
|
import com.discord.widgets.channels.list.items.ChannelListBottomNavSpaceItem;
|
|
import com.discord.widgets.channels.list.items.ChannelListItemVoiceUser;
|
|
import com.discord.widgets.stage.model.StageChannel;
|
|
import d0.t.u;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.jvm.functions.Function20;
|
|
/* compiled from: WidgetChannelListModel.kt */
|
|
public final class WidgetChannelListModel$Companion$getSelectedGuildChannelList$1 extends o implements Function20<GuildChannelsInfo, Map<Long, ? extends Channel>, Map<Long, ? extends StoreThreadsJoined.JoinedThread>, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>>, Set<? extends Long>, Channel, Long, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>>, Map<Long, ? extends Integer>, Set<? extends Long>, Set<? extends Long>, StoreNux.NuxState, Map<Long, ? extends StageChannel>, Map<Long, ? extends StageInstance>, List<? extends GuildScheduledEvent>, Boolean, Boolean, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>>, Map<Long, ? extends StoreMessageAck.Ack>, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>>, WidgetChannelListModel> {
|
|
public final /* synthetic */ long $selectedGuildId;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelListModel$Companion$getSelectedGuildChannelList$1(long j) {
|
|
super(20);
|
|
this.$selectedGuildId = j;
|
|
}
|
|
|
|
public final WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, Channel> map, Map<Long, StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<Long> set, Channel channel, long j, Map<Long, ? extends List<ChannelListItemVoiceUser>> map4, Map<Long, Integer> map5, Set<Long> set2, Set<Long> set3, StoreNux.NuxState nuxState, Map<Long, StageChannel> map6, Map<Long, StageInstance> map7, List<GuildScheduledEvent> list, boolean z2, boolean z3, Map<Long, ? extends RestCallState<? extends List<DirectoryEntryGuild>>> map8, Map<Long, StoreMessageAck.Ack> map9, Map<Long, ? extends RestCallState<? extends List<DirectoryEntryEvent>>> map10) {
|
|
boolean z4;
|
|
m.checkNotNullParameter(guildChannelsInfo, "guildChannelsInfo");
|
|
m.checkNotNullParameter(map, "guildChannels");
|
|
m.checkNotNullParameter(map2, "joinedThreads");
|
|
m.checkNotNullParameter(map3, "activeJoinedGuildThreads");
|
|
m.checkNotNullParameter(set, "channelsWithActiveThreads");
|
|
m.checkNotNullParameter(map4, "voiceStates");
|
|
m.checkNotNullParameter(map5, "mentionCounts");
|
|
m.checkNotNullParameter(set2, "unreadChannelIds");
|
|
m.checkNotNullParameter(set3, "collapsedCategories");
|
|
m.checkNotNullParameter(nuxState, "nuxState");
|
|
m.checkNotNullParameter(map6, "stageChannels");
|
|
m.checkNotNullParameter(map7, "stageInstances");
|
|
m.checkNotNullParameter(list, "guildScheduledEvents");
|
|
m.checkNotNullParameter(map8, "directories");
|
|
m.checkNotNullParameter(map9, "messageAcks");
|
|
m.checkNotNullParameter(map10, "directoryEvents");
|
|
List plus = u.plus((Collection<? extends ChannelListBottomNavSpaceItem>) WidgetChannelListModel.Companion.access$guildListBuilder(WidgetChannelListModel.Companion, this.$selectedGuildId, guildChannelsInfo, map, map3, map2, set, channel, j, map4, map5, set2, set3, map6, map7, list, z2, z3, map8, map9, map10), new ChannelListBottomNavSpaceItem(this.$selectedGuildId));
|
|
if (nuxState.getPremiumGuildHintGuildId() != null) {
|
|
Long premiumGuildHintGuildId = nuxState.getPremiumGuildHintGuildId();
|
|
Guild guild = guildChannelsInfo.getGuild();
|
|
if (m.areEqual(premiumGuildHintGuildId, guild != null ? Long.valueOf(guild.getId()) : null)) {
|
|
z4 = true;
|
|
return new WidgetChannelListModel(guildChannelsInfo.getGuild(), plus, true, z4, false, false, null, 96, null);
|
|
}
|
|
}
|
|
z4 = false;
|
|
return new WidgetChannelListModel(guildChannelsInfo.getGuild(), plus, true, z4, false, false, null, 96, null);
|
|
}
|
|
|
|
/* 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, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function20
|
|
public /* bridge */ /* synthetic */ WidgetChannelListModel invoke(GuildChannelsInfo guildChannelsInfo, Map<Long, ? extends Channel> map, Map<Long, ? extends StoreThreadsJoined.JoinedThread> map2, Map<Long, ? extends Map<Long, ? extends StoreThreadsActiveJoined.ActiveJoinedThread>> map3, Set<? extends Long> set, Channel channel, Long l, Map<Long, ? extends List<? extends ChannelListItemVoiceUser>> map4, Map<Long, ? extends Integer> map5, Set<? extends Long> set2, Set<? extends Long> set3, StoreNux.NuxState nuxState, Map<Long, ? extends StageChannel> map6, Map<Long, ? extends StageInstance> map7, List<? extends GuildScheduledEvent> list, Boolean bool, Boolean bool2, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryGuild>>> map8, Map<Long, ? extends StoreMessageAck.Ack> map9, Map<Long, ? extends RestCallState<? extends List<? extends DirectoryEntryEvent>>> map10) {
|
|
return invoke(guildChannelsInfo, (Map<Long, Channel>) map, (Map<Long, StoreThreadsJoined.JoinedThread>) map2, (Map<Long, ? extends Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread>>) map3, (Set<Long>) set, channel, l.longValue(), (Map<Long, ? extends List<ChannelListItemVoiceUser>>) map4, (Map<Long, Integer>) map5, (Set<Long>) set2, (Set<Long>) set3, nuxState, (Map<Long, StageChannel>) map6, (Map<Long, StageInstance>) map7, (List<GuildScheduledEvent>) list, bool.booleanValue(), bool2.booleanValue(), (Map<Long, ? extends RestCallState<? extends List<DirectoryEntryGuild>>>) map8, (Map<Long, StoreMessageAck.Ack>) map9, (Map<Long, ? extends RestCallState<? extends List<DirectoryEntryEvent>>>) map10);
|
|
}
|
|
}
|