package com.discord.widgets.servers; import com.discord.api.role.GuildRole; import com.discord.widgets.servers.WidgetServerSettingsRolesList; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: WidgetServerSettingsRolesList.kt */ public final class WidgetServerSettingsRolesList$createRole$2 extends o implements Function1 { public final /* synthetic */ WidgetServerSettingsRolesList.Model $dataSnapshot; public final /* synthetic */ long $guildId; public final /* synthetic */ WidgetServerSettingsRolesList this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetServerSettingsRolesList$createRole$2(WidgetServerSettingsRolesList widgetServerSettingsRolesList, long j, WidgetServerSettingsRolesList.Model model) { super(1); this.this$0 = widgetServerSettingsRolesList; this.$guildId = j; this.$dataSnapshot = model; } /* 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] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(GuildRole guildRole) { invoke(guildRole); return Unit.a; } public final void invoke(GuildRole guildRole) { if (guildRole != null) { WidgetServerSettingsEditRole.Companion.launch(this.$guildId, guildRole.getId(), this.this$0.requireContext()); } else { WidgetServerSettingsRolesList.access$configureUI(this.this$0, this.$dataSnapshot); } } }