2021-09-18 07:43:22 +00:00
|
|
|
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<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 */
|
|
|
|
public final void mo1invoke() {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|