2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import com.discord.api.channel.Channel;
|
2021-08-13 06:23:11 +00:00
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.api.stageinstance.StageInstance;
|
|
|
|
import com.discord.models.domain.ModelInvite;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
|
|
import com.discord.models.user.MeUser;
|
2021-08-31 06:34:54 +00:00
|
|
|
import com.discord.stores.StoreInstantInvites;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.widgets.guilds.invite.InviteGenerator;
|
|
|
|
import com.discord.widgets.guilds.invite.WidgetInviteModel;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
2021-08-31 06:34:54 +00:00
|
|
|
import kotlin.jvm.functions.Function10;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: WidgetGuildInviteShareViewModel.kt */
|
2021-08-31 06:34:54 +00:00
|
|
|
public final class WidgetGuildInviteShareViewModel$observeWidgetInviteViewModel$1 extends o implements Function10<ModelInvite.Settings, Map<Long, ? extends Channel>, InviteGenerator.InviteGenerationState, Long, MeUser, List<? extends Channel>, Guild, Map<Long, ? extends StageInstance>, GuildScheduledEvent, StoreInstantInvites.InviteState, WidgetInviteModel> {
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final WidgetGuildInviteShareViewModel$observeWidgetInviteViewModel$1 INSTANCE = new WidgetGuildInviteShareViewModel$observeWidgetInviteViewModel$1();
|
|
|
|
|
2021-08-31 06:34:54 +00:00
|
|
|
public WidgetGuildInviteShareViewModel$observeWidgetInviteViewModel$1() {
|
|
|
|
super(10);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final WidgetInviteModel invoke(ModelInvite.Settings settings, Map<Long, Channel> map, InviteGenerator.InviteGenerationState inviteGenerationState, Long l, MeUser meUser, List<Channel> list, Guild guild, Map<Long, StageInstance> map2, GuildScheduledEvent guildScheduledEvent, StoreInstantInvites.InviteState inviteState) {
|
|
|
|
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");
|
2021-08-03 07:33:18 +00:00
|
|
|
WidgetInviteModel.Companion companion = WidgetInviteModel.Companion;
|
2021-08-31 06:34:54 +00:00
|
|
|
if (!(inviteState2 instanceof StoreInstantInvites.InviteState.Resolved)) {
|
|
|
|
inviteState2 = null;
|
|
|
|
}
|
|
|
|
StoreInstantInvites.InviteState.Resolved resolved = (StoreInstantInvites.InviteState.Resolved) inviteState2;
|
|
|
|
return companion.create(settings, map, inviteGenerationState, l, meUser, list, guild, map2, guildScheduledEvent, resolved != null ? resolved.getInvite() : null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
2021-08-31 06:34:54 +00:00
|
|
|
/* 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 */ WidgetInviteModel invoke(ModelInvite.Settings settings, Map<Long, ? extends Channel> map, InviteGenerator.InviteGenerationState inviteGenerationState, Long l, MeUser meUser, List<? extends Channel> list, Guild guild, Map<Long, ? extends StageInstance> map2, GuildScheduledEvent guildScheduledEvent, StoreInstantInvites.InviteState inviteState) {
|
|
|
|
return invoke(settings, (Map<Long, Channel>) map, inviteGenerationState, l, meUser, (List<Channel>) list, guild, (Map<Long, StageInstance>) map2, guildScheduledEvent, inviteState);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|