package com.discord.widgets.chat.input; import com.airbnb.lottie.parser.AnimatableValueParser; import com.discord.api.channel.Channel; import com.discord.models.commands.ApplicationCommand; import com.discord.stores.StoreChannelsSelected; import com.discord.stores.StoreStream; import d0.t.n; import j0.k.b; import j0.l.e.j; import java.util.List; import rx.Observable; /* compiled from: WidgetChatInputAutocomplete.kt */ public final class WidgetChatInputAutocomplete$configureDataSubscriptions$3 implements b>> { public static final WidgetChatInputAutocomplete$configureDataSubscriptions$3 INSTANCE = new WidgetChatInputAutocomplete$configureDataSubscriptions$3(); public final Observable> call(StoreChannelsSelected.ResolvedSelectedChannel resolvedSelectedChannel) { Channel channelOrParent = resolvedSelectedChannel.getChannelOrParent(); return (channelOrParent == null || !(resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.Channel) || AnimatableValueParser.e1(channelOrParent)) ? new j(n.emptyList()) : StoreStream.Companion.getApplicationCommands().observeQueryCommands(channelOrParent.h()); } }