63 lines
3.2 KiB
Java
63 lines
3.2 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.models.experiments.dto.UnauthenticatedUserExperimentsDto;
|
||
|
import com.discord.models.experiments.dto.UserExperimentDto;
|
||
|
import d0.d0.f;
|
||
|
import d0.t.g0;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.LinkedHashMap;
|
||
|
import java.util.List;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: StoreExperiments.kt */
|
||
|
public final class StoreExperiments$tryInitializeExperiments$1 extends o implements Function1<UnauthenticatedUserExperimentsDto, Unit> {
|
||
|
public final /* synthetic */ StoreExperiments this$0;
|
||
|
|
||
|
/* compiled from: StoreExperiments.kt */
|
||
|
/* renamed from: com.discord.stores.StoreExperiments$tryInitializeExperiments$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
||
|
public final /* synthetic */ UnauthenticatedUserExperimentsDto $it;
|
||
|
public final /* synthetic */ StoreExperiments$tryInitializeExperiments$1 this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass1(StoreExperiments$tryInitializeExperiments$1 storeExperiments$tryInitializeExperiments$1, UnauthenticatedUserExperimentsDto unauthenticatedUserExperimentsDto) {
|
||
|
super(0);
|
||
|
this.this$0 = storeExperiments$tryInitializeExperiments$1;
|
||
|
this.$it = unauthenticatedUserExperimentsDto;
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
StoreExperiments.access$getStoreAuthentication$p(this.this$0.this$0).setFingerprint(this.$it.getFingerprint(), false);
|
||
|
StoreExperiments storeExperiments = this.this$0.this$0;
|
||
|
List<UserExperimentDto> assignments = this.$it.getAssignments();
|
||
|
LinkedHashMap linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(d0.t.o.collectionSizeOrDefault(assignments, 10)), 16));
|
||
|
for (Object obj : assignments) {
|
||
|
linkedHashMap.put(Long.valueOf(((UserExperimentDto) obj).getNameHash()), obj);
|
||
|
}
|
||
|
StoreExperiments.access$handleLoadedUserExperiments(storeExperiments, linkedHashMap, true);
|
||
|
StoreExperiments.access$setInitialized(this.this$0.this$0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreExperiments$tryInitializeExperiments$1(StoreExperiments storeExperiments) {
|
||
|
super(1);
|
||
|
this.this$0 = storeExperiments;
|
||
|
}
|
||
|
|
||
|
/* 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(UnauthenticatedUserExperimentsDto unauthenticatedUserExperimentsDto) {
|
||
|
invoke(unauthenticatedUserExperimentsDto);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(UnauthenticatedUserExperimentsDto unauthenticatedUserExperimentsDto) {
|
||
|
StoreExperiments.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, unauthenticatedUserExperimentsDto));
|
||
|
}
|
||
|
}
|