package com.discord.widgets.guildscheduledevent; import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType; import com.discord.app.AppViewModel; import com.discord.utilities.intent.IntentUtilsKt; import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel; import d0.z.d.o; import java.io.Serializable; import java.util.Objects; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventSettings.kt */ /* loaded from: classes2.dex */ public final class WidgetGuildScheduledEventSettings$viewModel$2 extends o implements Function0> { public final /* synthetic */ WidgetGuildScheduledEventSettings this$0; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public WidgetGuildScheduledEventSettings$viewModel$2(WidgetGuildScheduledEventSettings widgetGuildScheduledEventSettings) { super(0); this.this$0 = widgetGuildScheduledEventSettings; } /* JADX WARN: Can't rename method to resolve collision */ @Override // kotlin.jvm.functions.Function0 public final AppViewModel invoke() { long access$getGuildId$p = WidgetGuildScheduledEventSettings.access$getGuildId$p(this.this$0); Long access$getExistingGuildScheduledEventId$p = WidgetGuildScheduledEventSettings.access$getExistingGuildScheduledEventId$p(this.this$0); Serializable serializableExtra = this.this$0.getMostRecentIntent().getSerializableExtra("EXTRA_ENTITY_TYPE"); Objects.requireNonNull(serializableExtra, "null cannot be cast to non-null type com.discord.api.guildscheduledevent.GuildScheduledEventEntityType"); return new GuildScheduledEventSettingsViewModel(access$getGuildId$p, access$getExistingGuildScheduledEventId$p, (GuildScheduledEventEntityType) serializableExtra, IntentUtilsKt.getLongExtraOrNull(this.this$0.getMostRecentIntent(), "com.discord.intent.extra.EXTRA_CHANNEL_ID"), this.this$0.getMostRecentIntent().getStringExtra("EXTRA_EXTERNAL_LOCATION"), null, 32, null); } }