2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.settings.premium;
|
|
|
|
|
|
|
|
import com.discord.app.AppViewModel;
|
|
|
|
import com.discord.widgets.settings.premium.ChoosePlanViewModel;
|
|
|
|
import com.discord.widgets.settings.premium.WidgetChoosePlan;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.Objects;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: WidgetChoosePlan.kt */
|
|
|
|
public final class WidgetChoosePlan$viewModel$2 extends o implements Function0<AppViewModel<ChoosePlanViewModel.ViewState>> {
|
|
|
|
public final /* synthetic */ WidgetChoosePlan this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetChoosePlan$viewModel$2(WidgetChoosePlan widgetChoosePlan) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = widgetChoosePlan;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public final AppViewModel<ChoosePlanViewModel.ViewState> mo1invoke() {
|
2021-07-13 20:23:20 +00:00
|
|
|
String stringExtra = this.this$0.getMostRecentIntent().getStringExtra("result_extra_current_sku_name");
|
|
|
|
Serializable serializableExtra = this.this$0.getMostRecentIntent().getSerializableExtra("result_view_type");
|
2021-06-27 20:44:35 +00:00
|
|
|
Objects.requireNonNull(serializableExtra, "null cannot be cast to non-null type com.discord.widgets.settings.premium.WidgetChoosePlan.ViewType");
|
|
|
|
return new ChoosePlanViewModel((WidgetChoosePlan.ViewType) serializableExtra, stringExtra, null, 4, null);
|
|
|
|
}
|
|
|
|
}
|