package com.discord.widgets.guildscheduledevent; import android.content.Context; import com.discord.api.channel.Channel; import com.discord.stores.StoreStream; import com.discord.utilities.channel.ChannelInviteLaunchUtils; import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import rx.Observable; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 extends o implements Function0 { public final /* synthetic */ Channel $channel; public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ /* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 widgetGuildScheduledEventDetailsBottomSheet$configureUi$4) { super(1); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4; } /* 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 */ Unit invoke(Channel channel) { invoke(channel); return Unit.a; } public final void invoke(Channel channel) { ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 widgetGuildScheduledEventDetailsBottomSheet$configureUi$4 = this.this$0; WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.this$0; Channel channel2 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$channel; if (channel2 != null) { channel = channel2; } ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, widgetGuildScheduledEventDetailsBottomSheet, channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$viewState).getGuildScheduledEvent().g()), null, 16, null); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState, Channel channel) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; this.$viewState = viewState; this.$channel = channel; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().f()).y(); m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…d)\n .first()"); ObservableExtensionsKt.appSubscribe$default(y2, this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); } }