2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.content.res.Resources;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.app.AppViewModel;
|
2021-08-13 06:23:11 +00:00
|
|
|
import com.discord.utilities.intent.IntentUtilsKt;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.widgets.guilds.invite.WidgetGuildInviteShareViewModel;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: WidgetGuildInviteShare.kt */
|
|
|
|
public final class WidgetGuildInviteShare$viewModel$2 extends o implements Function0<AppViewModel<WidgetGuildInviteShareViewModel.ViewState>> {
|
|
|
|
public final /* synthetic */ WidgetGuildInviteShare this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetGuildInviteShare$viewModel$2(WidgetGuildInviteShare widgetGuildInviteShare) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = widgetGuildInviteShare;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
2021-10-15 06:18:26 +00:00
|
|
|
public final AppViewModel<WidgetGuildInviteShareViewModel.ViewState> mo17invoke() {
|
2021-08-03 07:33:18 +00:00
|
|
|
long longExtra = this.this$0.getMostRecentIntent().getLongExtra("com.discord.intent.extra.EXTRA_GUILD_ID", 0);
|
2021-08-13 06:23:11 +00:00
|
|
|
Long longExtraOrNull = IntentUtilsKt.getLongExtraOrNull(this.this$0.getMostRecentIntent(), "com.discord.intent.extra.EXTRA_GUILD_SCHEDULED_EVENT_ID");
|
2021-08-31 06:34:54 +00:00
|
|
|
String stringExtra = this.this$0.getMostRecentIntent().getStringExtra(WidgetGuildInviteShare.INTENT_INVITE_STORE_KEY);
|
2021-08-03 07:33:18 +00:00
|
|
|
Resources resources = this.this$0.getResources();
|
|
|
|
m.checkNotNullExpressionValue(resources, "resources");
|
2021-08-31 06:34:54 +00:00
|
|
|
return new WidgetGuildInviteShareViewModel(null, null, null, null, null, null, null, null, null, resources, false, longExtra, longExtraOrNull, stringExtra, 1535, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|