forked from Juby210/discord-jadx
59 lines
4.2 KiB
Java
59 lines
4.2 KiB
Java
|
package com.discord.widgets.guildscheduledevent;
|
||
|
|
||
|
import c0.z.d.m;
|
||
|
import c0.z.d.o;
|
||
|
import com.discord.api.channel.Channel;
|
||
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
||
|
import com.discord.api.stageinstance.StageInstance;
|
||
|
import com.discord.models.domain.ModelInvite;
|
||
|
import com.discord.models.guild.Guild;
|
||
|
import com.discord.models.user.MeUser;
|
||
|
import com.discord.stores.StoreInstantInvites;
|
||
|
import com.discord.widgets.guilds.invite.InviteGenerator;
|
||
|
import com.discord.widgets.guilds.invite.WidgetInviteModel;
|
||
|
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventCreateSuccessViewModel;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import kotlin.jvm.functions.Function10;
|
||
|
/* compiled from: WidgetGuildScheduledEventCreateSuccessViewModel.kt */
|
||
|
public final class WidgetGuildScheduledEventCreateSuccessViewModel$observeInvite$1 extends o implements Function10<ModelInvite.Settings, Map<Long, ? extends Channel>, InviteGenerator.InviteGenerationState, MeUser, List<? extends Channel>, Guild, Map<Long, ? extends StageInstance>, GuildScheduledEvent, StoreInstantInvites.InviteState, Channel, WidgetGuildScheduledEventCreateSuccessViewModel.ViewState.Loaded> {
|
||
|
public static final WidgetGuildScheduledEventCreateSuccessViewModel$observeInvite$1 INSTANCE = new WidgetGuildScheduledEventCreateSuccessViewModel$observeInvite$1();
|
||
|
|
||
|
public WidgetGuildScheduledEventCreateSuccessViewModel$observeInvite$1() {
|
||
|
super(10);
|
||
|
}
|
||
|
|
||
|
public final WidgetGuildScheduledEventCreateSuccessViewModel.ViewState.Loaded invoke(ModelInvite.Settings settings, Map<Long, Channel> map, InviteGenerator.InviteGenerationState inviteGenerationState, MeUser meUser, List<Channel> list, Guild guild, Map<Long, StageInstance> map2, GuildScheduledEvent guildScheduledEvent, StoreInstantInvites.InviteState inviteState, Channel channel) {
|
||
|
Long l;
|
||
|
StoreInstantInvites.InviteState inviteState2 = inviteState;
|
||
|
m.checkNotNullParameter(settings, "settings");
|
||
|
m.checkNotNullParameter(map, "invitableChannels");
|
||
|
m.checkNotNullParameter(inviteGenerationState, "inviteGenerationState");
|
||
|
m.checkNotNullParameter(meUser, "me");
|
||
|
m.checkNotNullParameter(list, "dms");
|
||
|
m.checkNotNullParameter(map2, "guildStageInstances");
|
||
|
m.checkNotNullParameter(inviteState2, "storeInvite");
|
||
|
WidgetInviteModel.Companion companion = WidgetInviteModel.Companion;
|
||
|
if (guildScheduledEvent == null || (l = guildScheduledEvent.b()) == null) {
|
||
|
l = channel != null ? Long.valueOf(channel.h()) : null;
|
||
|
}
|
||
|
if (!(inviteState2 instanceof StoreInstantInvites.InviteState.Resolved)) {
|
||
|
inviteState2 = null;
|
||
|
}
|
||
|
StoreInstantInvites.InviteState.Resolved resolved = (StoreInstantInvites.InviteState.Resolved) inviteState2;
|
||
|
WidgetInviteModel create = companion.create(settings, map, inviteGenerationState, l, meUser, list, guild, map2, guildScheduledEvent, resolved != null ? resolved.getInvite() : null);
|
||
|
boolean z2 = true;
|
||
|
if (create.getInvite() != null && (create.getInvite().isStatic() || create.isInviteFromStore())) {
|
||
|
z2 = false;
|
||
|
}
|
||
|
return new WidgetGuildScheduledEventCreateSuccessViewModel.ViewState.Loaded(create, z2);
|
||
|
}
|
||
|
|
||
|
/* 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, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */
|
||
|
@Override // kotlin.jvm.functions.Function10
|
||
|
public /* bridge */ /* synthetic */ WidgetGuildScheduledEventCreateSuccessViewModel.ViewState.Loaded invoke(ModelInvite.Settings settings, Map<Long, ? extends Channel> map, InviteGenerator.InviteGenerationState inviteGenerationState, MeUser meUser, List<? extends Channel> list, Guild guild, Map<Long, ? extends StageInstance> map2, GuildScheduledEvent guildScheduledEvent, StoreInstantInvites.InviteState inviteState, Channel channel) {
|
||
|
return invoke(settings, (Map<Long, Channel>) map, inviteGenerationState, meUser, (List<Channel>) list, guild, (Map<Long, StageInstance>) map2, guildScheduledEvent, inviteState, channel);
|
||
|
}
|
||
|
}
|