package com.discord.widgets.servers; import com.airbnb.lottie.parser.AnimatableValueParser; import com.discord.api.channel.Channel; import com.discord.utilities.channel.GuildChannelsInfo; import com.discord.utilities.mg_recycler.CategoricalDragAndDropAdapter; import com.discord.widgets.servers.SettingsChannelListAdapter; import d0.z.d.m; import java.util.ArrayList; import java.util.List; import java.util.Map; import rx.functions.Func3; /* compiled from: WidgetServerNotificationsOverrideSelector.kt */ public final class WidgetServerNotificationsOverrideSelector$Companion$get$1 implements Func3, GuildChannelsInfo, String, List> { public static final WidgetServerNotificationsOverrideSelector$Companion$get$1 INSTANCE = new WidgetServerNotificationsOverrideSelector$Companion$get$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, java.lang.Object, java.lang.Object] */ @Override // rx.functions.Func3 public /* bridge */ /* synthetic */ List call(Map map, GuildChannelsInfo guildChannelsInfo, String str) { return call((Map) map, guildChannelsInfo, str); } /* JADX WARNING: Code restructure failed: missing block: B:8:0x0039, code lost: if (d0.g0.w.contains((java.lang.CharSequence) r1, (java.lang.CharSequence) r13, true) != false) goto L_0x003d; */ public final List call(Map map, GuildChannelsInfo guildChannelsInfo, String str) { m.checkNotNullExpressionValue(map, "channels"); List sortedVisibleChannels = guildChannelsInfo.getSortedVisibleChannels(map); ArrayList arrayList = new ArrayList(); for (Object obj : sortedVisibleChannels) { Channel channel = (Channel) obj; boolean z2 = true; if (AnimatableValueParser.z1(channel) || AnimatableValueParser.f1(channel)) { String y0 = AnimatableValueParser.y0(channel); m.checkNotNullExpressionValue(str, "filter"); } z2 = false; if (z2) { arrayList.add(obj); } } ArrayList arrayList2 = new ArrayList(); for (Channel channel2 : arrayList) { Object categoryItem = AnimatableValueParser.f1(channel2) ? new SettingsChannelListAdapter.CategoryItem(AnimatableValueParser.y0(channel2), channel2.h(), channel2.t(), false, false, false) : AnimatableValueParser.z1(channel2) ? new SettingsChannelListAdapter.ChannelItem(channel2, false, channel2.r(), false) : null; if (categoryItem != null) { arrayList2.add(categoryItem); } } return arrayList2; } }