package com.discord.stores; import com.discord.models.domain.ModelLibraryApplication; 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: StoreLibrary.kt */ public final class StoreLibrary$fetchApplications$2 extends o implements Function1, Unit> { public final /* synthetic */ StoreLibrary this$0; /* compiled from: StoreLibrary.kt */ /* renamed from: com.discord.stores.StoreLibrary$fetchApplications$2$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ List $libraryApps; public final /* synthetic */ StoreLibrary$fetchApplications$2 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreLibrary$fetchApplications$2 storeLibrary$fetchApplications$2, List list) { super(0); this.this$0 = storeLibrary$fetchApplications$2; this.$libraryApps = list; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { HashMap hashMap = new HashMap(); for (ModelLibraryApplication modelLibraryApplication : this.$libraryApps) { hashMap.put(Long.valueOf(modelLibraryApplication.getSkuId()), modelLibraryApplication); } StoreLibrary.access$getLibraryApplications$p(this.this$0.this$0).clear(); StoreLibrary.access$getLibraryApplications$p(this.this$0.this$0).putAll(hashMap); this.this$0.this$0.markChanged(); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreLibrary$fetchApplications$2(StoreLibrary storeLibrary) { super(1); this.this$0 = storeLibrary; } /* 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) list); return Unit.a; } public final void invoke(List list) { m.checkNotNullParameter(list, "libraryApps"); this.this$0.getDispatcher().schedule(new AnonymousClass1(this, list)); } }