2021-09-18 07:43:22 +00:00
|
|
|
package com.discord.widgets.guildscheduledevent;
|
|
|
|
|
|
|
|
import android.content.Context;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-09-18 07:43:22 +00:00
|
|
|
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 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<Unit> {
|
2021-09-24 06:27:57 +00:00
|
|
|
public final /* synthetic */ Channel $channel;
|
2021-09-18 07:43:22 +00:00
|
|
|
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<Channel, Unit> {
|
|
|
|
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;
|
2021-09-24 06:27:57 +00:00
|
|
|
Channel channel2 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$channel;
|
2021-09-18 07:43:22 +00:00
|
|
|
if (channel2 != null) {
|
|
|
|
channel = channel2;
|
|
|
|
}
|
2021-09-24 06:27:57 +00:00
|
|
|
ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, widgetGuildScheduledEventDetailsBottomSheet, channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$viewState).getGuildScheduledEvent().g()), null, 16, null);
|
2021-09-18 07:43:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
2021-09-24 06:27:57 +00:00
|
|
|
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState, Channel channel) {
|
2021-09-18 07:43:22 +00:00
|
|
|
super(0);
|
|
|
|
this.this$0 = widgetGuildScheduledEventDetailsBottomSheet;
|
|
|
|
this.$viewState = viewState;
|
2021-09-24 06:27:57 +00:00
|
|
|
this.$channel = channel;
|
2021-09-18 07:43:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-10-15 06:18:26 +00:00
|
|
|
public final void mo17invoke() {
|
2021-10-22 06:43:45 +00:00
|
|
|
Observable<Channel> 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);
|
2021-09-18 07:43:22 +00:00
|
|
|
}
|
|
|
|
}
|