package com.discord.stores; import com.discord.models.domain.ModelBan; import d0.z.d.m; import d0.z.d.o; import java.util.HashMap; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreBans.kt */ public final class StoreBans$observeBans$1 extends o implements Function1, Unit> { public final /* synthetic */ long $guildId; public final /* synthetic */ StoreBans this$0; /* compiled from: StoreBans.kt */ /* renamed from: com.discord.stores.StoreBans$observeBans$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ List $bans; public final /* synthetic */ StoreBans$observeBans$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreBans$observeBans$1 storeBans$observeBans$1, List list) { super(0); this.this$0 = storeBans$observeBans$1; this.$bans = list; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { HashMap access$getBannedUsers$p = StoreBans.access$getBannedUsers$p(this.this$0.this$0); Long valueOf = Long.valueOf(this.this$0.$guildId); Object obj = access$getBannedUsers$p.get(valueOf); if (obj == null) { obj = new HashMap(); access$getBannedUsers$p.put(valueOf, obj); } HashMap hashMap = (HashMap) obj; for (ModelBan modelBan : this.$bans) { hashMap.put(Long.valueOf(modelBan.getUser().i()), modelBan); } this.this$0.this$0.markChanged(); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreBans$observeBans$1(StoreBans storeBans, long j) { super(1); this.this$0 = storeBans; this.$guildId = j; } /* 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(List list) { invoke(list); return Unit.a; } public final void invoke(List list) { m.checkNotNullParameter(list, "bans"); StoreBans.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, list)); } }