84 lines
5.7 KiB
Java
84 lines
5.7 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.utilities.channel.GuildChannelsInfo;
|
|
import com.discord.utilities.permissions.PermissionUtils;
|
|
import com.discord.widgets.channels.list.WidgetChannelListModel;
|
|
import com.discord.widgets.channels.list.items.ChannelListItemTextChannel;
|
|
import d0.z.d.o;
|
|
import java.util.ArrayList;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetChannelListModel.kt */
|
|
public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3 extends o implements Function0<ChannelListItemTextChannel> {
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$4 $areAllChildThreadsRead$4$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$5 $areAnyChildThreadsSelected$5$inlined;
|
|
public final /* synthetic */ Channel $channel;
|
|
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
|
|
public final /* synthetic */ Set $collapsedCategories$inlined;
|
|
public final /* synthetic */ HashSet $forceViewCategories$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 $getTextLikeChannelData$1;
|
|
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
|
|
public final /* synthetic */ List $guildScheduledEvents$inlined;
|
|
public final /* synthetic */ HashSet $hiddenChannelsIds$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined;
|
|
public final /* synthetic */ ArrayList $items$inlined;
|
|
public final /* synthetic */ Map $mentionCounts$inlined;
|
|
public final /* synthetic */ boolean $muted;
|
|
public final /* synthetic */ Long $permissions;
|
|
public final /* synthetic */ Channel $selectedChannel$inlined;
|
|
public final /* synthetic */ long $selectedGuildId$inlined;
|
|
public final /* synthetic */ long $selectedVoiceChannelId$inlined;
|
|
public final /* synthetic */ Map $stageChannels$inlined;
|
|
public final /* synthetic */ Map $stageInstances$inlined;
|
|
public final /* synthetic */ Map $threadParentMap$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$2 $tryRemoveEmptyCategory$2$inlined;
|
|
public final /* synthetic */ Set $unreadChannelIds$inlined;
|
|
public final /* synthetic */ Map $voiceStates$inlined;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3(Channel channel, Long l, WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) {
|
|
super(0);
|
|
this.$channel = channel;
|
|
this.$permissions = l;
|
|
this.$getTextLikeChannelData$1 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;
|
|
this.$muted = z2;
|
|
this.$guild$inlined = guildChannelsInfo;
|
|
this.$forceViewCategories$inlined = hashSet;
|
|
this.$selectedChannel$inlined = channel2;
|
|
this.$mentionCounts$inlined = map;
|
|
this.$unreadChannelIds$inlined = set;
|
|
this.$selectedGuildId$inlined = j;
|
|
this.$areAnyChildThreadsSelected$5$inlined = widgetChannelListModel$Companion$guildListBuilder$5;
|
|
this.$collapsedCategories$inlined = set2;
|
|
this.$isThreadUnread$3$inlined = widgetChannelListModel$Companion$guildListBuilder$3;
|
|
this.$hiddenChannelsIds$inlined = hashSet2;
|
|
this.$areAllChildThreadsRead$4$inlined = widgetChannelListModel$Companion$guildListBuilder$4;
|
|
this.$selectedVoiceChannelId$inlined = j2;
|
|
this.$voiceStates$inlined = map2;
|
|
this.$channelsWithActiveThreads$inlined = set3;
|
|
this.$guildScheduledEvents$inlined = list;
|
|
this.$stageInstances$inlined = map3;
|
|
this.$stageChannels$inlined = map4;
|
|
this.$threadParentMap$inlined = map5;
|
|
this.$items$inlined = arrayList;
|
|
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final ChannelListItemTextChannel mo1invoke() {
|
|
if (!PermissionUtils.INSTANCE.hasAccess(this.$channel, this.$permissions)) {
|
|
return null;
|
|
}
|
|
WidgetChannelListModel.Companion.TextLikeChannelData invoke$default = WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1.invoke$default(this.$getTextLikeChannelData$1, this.$channel, this.$muted, null, 4, null);
|
|
if (invoke$default.getHide()) {
|
|
return null;
|
|
}
|
|
return new ChannelListItemTextChannel(this.$channel, invoke$default.getSelected(), invoke$default.getMentionCount(), invoke$default.getUnread(), this.$muted, invoke$default.getLocked(), this.$channelsWithActiveThreads$inlined.contains(Long.valueOf(this.$channel.h())));
|
|
}
|
|
}
|