Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 f.java 源代码,内容仅作参考
package com.sumsub.sns.domain;
import android.content.Context;
import android.provider.Settings;
import co.q;
import co.s;
import co.w;
import com.inappstory.sdk.stories.api.models.Image;
import com.sumsub.log.LoggerType;
import com.sumsub.log.logger.Logger;
import com.sumsub.sns.core.analytics.GlobalStatePayload;
import com.sumsub.sns.core.analytics.SdkEvent;
import com.sumsub.sns.core.common.b0;
import com.sumsub.sns.core.common.f0;
import com.sumsub.sns.core.common.g0;
import com.sumsub.sns.core.common.v;
import com.sumsub.sns.core.data.listener.SNSIconHandler;
import com.sumsub.sns.core.data.model.Action;
import com.sumsub.sns.core.data.model.AppConfig;
import com.sumsub.sns.core.data.model.Applicant;
import com.sumsub.sns.core.data.model.DocumentType;
import com.sumsub.sns.core.data.model.FlowType;
import com.sumsub.sns.core.data.model.LogParams;
import com.sumsub.sns.core.data.model.LogType;
import com.sumsub.sns.core.data.model.SNSApplicantNotFoundException;
import com.sumsub.sns.core.data.model.SNSInvalidParametersException;
import com.sumsub.sns.core.data.model.SNSSDKState;
import com.sumsub.sns.core.data.model.SNSSupportItem;
import com.sumsub.sns.core.data.source.dynamic.b;
import com.sumsub.sns.core.domain.model.a;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.o0;
import kotlin.jvm.internal.u;
import net.sf.scuba.smartcards.ISO7816;
import org.jetbrains.annotations.NotNull;
import p029do.c0;
import p029do.t;
import p029do.u0;
import sinet.startup.inDriver.core.data.data.ReasonData;
import wo.p;
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001:\u0002\n\rB7\u0012\u0006\u0010\u000f\u001a\u00020\f\u0012\u0006\u0010'\u001a\u00020&\u0012\u0006\u0010\u0013\u001a\u00020\u0010\u0012\u0006\u0010\u0016\u001a\u00020\u0014\u0012\u0006\u0010\u001a\u001a\u00020\u0017\u0012\u0006\u0010\u001e\u001a\u00020\u001b¢\u0006\u0004\b(\u0010)B\u0011\b\u0016\u0012\u0006\u0010+\u001a\u00020*¢\u0006\u0004\b(\u0010,J\b\u0010\u0005\u001a\u00020\u0004H\u0002J+\u0010\n\u001a\u0012\u0012\b\u0012\u00060\bj\u0002`\t\u0012\u0004\u0012\u00020\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003H\u0096@ø\u0001\u0000¢\u0006\u0004\b\n\u0010\u000bR\u0014\u0010\u000f\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010\u000eR\u0014\u0010\u0013\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0016\u001a\u00020\u00148\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0015R\u0014\u0010\u001a\u001a\u00020\u00178\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\u0014\u0010\u001e\u001a\u00020\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001c\u0010\u001dR\u001b\u0010#\u001a\u00020\u001f8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b \u0010!\u001a\u0004\b\r\u0010\"R\u001b\u0010%\u001a\u00020\u001f8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b$\u0010!\u001a\u0004\b\u0011\u0010\"\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006-"}, d2 = {"Lcom/sumsub/sns/domain/f;", "Lcom/sumsub/sns/core/domain/base/b;", "Lcom/sumsub/sns/domain/f$b;", "Lcom/sumsub/sns/domain/f$a;", "Lco/g0;", "d", "params", "Lcom/sumsub/sns/core/domain/model/a;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "a", "(Lcom/sumsub/sns/domain/f$a;Lho/d;)Ljava/lang/Object;", "Landroid/content/Context;", "b", "Landroid/content/Context;", "context", "Lcom/sumsub/sns/core/data/source/settings/b;", "c", "Lcom/sumsub/sns/core/data/source/settings/b;", "settingsRepository", "Lcom/sumsub/sns/core/data/source/log/a;", "Lcom/sumsub/sns/core/data/source/log/a;", "logRepository", "Lcom/sumsub/sns/core/data/source/analythic/a;", "e", "Lcom/sumsub/sns/core/data/source/analythic/a;", "analyticRepository", "Lcom/sumsub/sns/core/data/source/dynamic/b;", "f", "Lcom/sumsub/sns/core/data/source/dynamic/b;", "dataRepository", "", "g", "Lco/k;", "()Z", "isRooted1", Image.TYPE_HIGH, "isRooted2", "Lcom/sumsub/sns/core/data/source/common/a;", "commonRepository", "<init>", "(Landroid/content/Context;Lcom/sumsub/sns/core/data/source/common/a;Lcom/sumsub/sns/core/data/source/settings/b;Lcom/sumsub/sns/core/data/source/log/a;Lcom/sumsub/sns/core/data/source/analythic/a;Lcom/sumsub/sns/core/data/source/dynamic/b;)V", "Lcom/sumsub/sns/core/a;", "serviceLocator", "(Lcom/sumsub/sns/core/a;)V", "idensic-mobile-sdk-internal_release"}, k = 1, mv = {1, 7, 1})
public final class f extends com.sumsub.sns.core.domain.base.b<Result, a> {
@NotNull
private final Context context;
@NotNull
private final com.sumsub.sns.core.data.source.settings.b settingsRepository;
@NotNull
private final com.sumsub.sns.core.data.source.log.a logRepository;
@NotNull
private final com.sumsub.sns.core.data.source.analythic.a analyticRepository;
@NotNull
private final com.sumsub.sns.core.data.source.dynamic.b dataRepository;
@NotNull
private final co.k isRooted1;
@NotNull
private final co.k isRooted2;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/sumsub/sns/domain/f$a;", "", "<init>", "()V", "idensic-mobile-sdk-internal_release"}, k = 1, mv = {1, 7, 1})
public static final class a {
}
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\b\u0086\b\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u000e\u001a\u00020\t\u0012\u0006\u0010\u0014\u001a\u00020\u000f¢\u0006\u0004\b\u0015\u0010\u0016J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\u0017\u0010\u000e\u001a\u00020\t8\u0006¢\u0006\f\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\rR\u0017\u0010\u0014\u001a\u00020\u000f8\u0006¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013¨\u0006\u0017"}, d2 = {"Lcom/sumsub/sns/domain/f$b;", "", "", "toString", "", "hashCode", ReasonData.TYPE_OTHER, "", "equals", "Lcom/sumsub/sns/core/data/model/e;", "a", "Lcom/sumsub/sns/core/data/model/e;", "c", "()Lcom/sumsub/sns/core/data/model/e;", "config", "Lcom/sumsub/sns/core/data/source/dynamic/b$c;", "b", "Lcom/sumsub/sns/core/data/source/dynamic/b$c;", "d", "()Lcom/sumsub/sns/core/data/source/dynamic/b$c;", "strings", "<init>", "(Lcom/sumsub/sns/core/data/model/e;Lcom/sumsub/sns/core/data/source/dynamic/b$c;)V", "idensic-mobile-sdk-internal_release"}, k = 1, mv = {1, 7, 1})
public static final class Result {
@NotNull
private final AppConfig config;
@NotNull
private final b.Strings strings;
public Result(@NotNull AppConfig appConfig, @NotNull b.Strings strings) {
this.config = appConfig;
this.strings = strings;
}
@NotNull
public final AppConfig getConfig() {
return this.config;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Result)) {
return false;
}
Result result = (Result) other;
return Intrinsics.g(this.config, result.config) && Intrinsics.g(this.strings, result.strings);
}
public int hashCode() {
return (this.config.hashCode() * 31) + this.strings.hashCode();
}
@NotNull
public String toString() {
return "Result(config=" + this.config + ", strings=" + this.strings + ')';
}
}
@Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
public class c {
public static final int[] f38470a;
static {
int[] iArr = new int[FlowType.values().length];
iArr[FlowType.Standalone.ordinal()] = 1;
iArr[FlowType.Module.ordinal()] = 2;
iArr[FlowType.Actions.ordinal()] = 3;
f38470a = iArr;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "a", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 7, 1})
static final class d extends u implements qo.a<Boolean> {
d() {
super(0);
}
@Override
@NotNull
public final Boolean invoke() {
return Boolean.valueOf(new f0(f.this.context).getIsRooted());
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "a", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 7, 1})
static final class e extends u implements qo.a<Boolean> {
e() {
super(0);
}
@Override
@NotNull
public final Boolean invoke() {
boolean z15;
Boolean f15;
com.sumsub.sns.core.common.f fVar = new com.sumsub.sns.core.common.f();
if (!new g0(f.this.context, fVar).f() && ((f15 = fVar.f()) == null || !f15.booleanValue())) {
z15 = false;
} else {
z15 = true;
}
return Boolean.valueOf(z15);
}
}
@kotlin.coroutines.jvm.internal.f(c = "com.sumsub.sns.domain.PrepareSDKUseCase", f = "PrepareSDKUseCase.kt", l = {72, 79, 96, 109, 116, 119, ISO7816.TAG_SM_STATUS_WORD}, m = "run")
@Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
public static final class C1166f extends kotlin.coroutines.jvm.internal.d {
Object f38473a;
Object f38474b;
Object f38475c;
Object f38476d;
Object f38477e;
int f38479g;
C1166f(ho.d<? super C1166f> dVar) {
super(dVar);
}
@Override
public final Object invokeSuspend(@NotNull Object obj) {
this.f38477e = obj;
this.f38479g |= Integer.MIN_VALUE;
return f.this.a((a) null, (ho.d<? super com.sumsub.sns.core.domain.model.a<? extends Exception, Result>>) this);
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/sumsub/sns/core/data/model/DocumentType;", "it", "", "a", "(Lcom/sumsub/sns/core/data/model/DocumentType;)Ljava/lang/CharSequence;"}, k = 3, mv = {1, 7, 1})
public static final class g extends u implements qo.l<DocumentType, CharSequence> {
public static final g f38480a = new g();
g() {
super(1);
}
@Override
@NotNull
public final CharSequence invoke(@NotNull DocumentType documentType) {
return documentType.getValue();
}
}
public f(@NotNull Context context, @NotNull com.sumsub.sns.core.data.source.common.a aVar, @NotNull com.sumsub.sns.core.data.source.settings.b bVar, @NotNull com.sumsub.sns.core.data.source.log.a aVar2, @NotNull com.sumsub.sns.core.data.source.analythic.a aVar3, @NotNull com.sumsub.sns.core.data.source.dynamic.b bVar2) {
super(aVar);
co.k b15;
co.k b16;
this.context = context;
this.settingsRepository = bVar;
this.logRepository = aVar2;
this.analyticRepository = aVar3;
this.dataRepository = bVar2;
b15 = co.m.b(new d());
this.isRooted1 = b15;
b16 = co.m.b(new e());
this.isRooted2 = b16;
}
private final boolean c() {
return ((Boolean) this.isRooted2.getValue()).booleanValue();
}
private final void d() {
boolean z15;
boolean z16;
Map<String, ? extends Object> p15;
if (!b() && !c()) {
z15 = false;
} else {
z15 = true;
}
if (Settings.System.getInt(this.context.getContentResolver(), "always_finish_activities", 0) == 1) {
z16 = true;
} else {
z16 = false;
}
p15 = u0.p(w.a("isDKAEnabled", Boolean.valueOf(z16)), w.a("isRooted", Boolean.valueOf(z15)), w.a("isVideoIdentAvailable", Boolean.valueOf(b0.f36997a.isModuleAvailable("com.sumsub.sns.videoident.SNSVideoIdent"))));
com.sumsub.sns.core.analytics.l.a(com.sumsub.sns.core.analytics.f.a(0L, 1, null).a(SdkEvent.Init).a(p15), false, 1, null);
}
@Override
public Object b(a aVar, ho.d<? super com.sumsub.sns.core.domain.model.a<? extends Exception, ? extends Result>> dVar) {
return a(aVar, (ho.d<? super com.sumsub.sns.core.domain.model.a<? extends Exception, Result>>) dVar);
}
private final boolean b() {
return ((Boolean) this.isRooted1.getValue()).booleanValue();
}
public Object a(@NotNull a aVar, @NotNull ho.d<? super com.sumsub.sns.core.domain.model.a<? extends Exception, Result>> dVar) {
C1166f c1166f;
Object d15;
f fVar;
a.Left left;
Object obj;
f fVar2;
v vVar;
AppConfig appConfig;
AppConfig appConfig2;
v vVar2;
v vVar3;
String levelName;
co.g0 g0Var;
Applicant.Info info;
co.g0 g0Var2;
ArrayList arrayList;
Iterator<T> it;
String x05;
String country;
AppConfig appConfig3;
b.Strings strings;
?? r05;
String str;
SNSSupportItem sNSSupportItem;
List<SNSSupportItem> e15;
boolean I;
List S0;
wo.j z15;
Object B0;
?? x15;
q a15;
if (dVar instanceof C1166f) {
c1166f = (C1166f) dVar;
int i15 = c1166f.f38479g;
if ((i15 & Integer.MIN_VALUE) != 0) {
c1166f.f38479g = i15 - Integer.MIN_VALUE;
Object obj2 = c1166f.f38477e;
d15 = io.d.d();
switch (c1166f.f38479g) {
case 0:
s.b(obj2);
try {
com.sumsub.sns.core.analytics.b bVar = com.sumsub.sns.core.analytics.b.f36910a;
bVar.a(this.analyticRepository);
bVar.c();
d();
v vVar4 = new v(this.logRepository, "<UNKNOWN>", this.context.getCacheDir(), null, 8, null);
com.sumsub.log.a.a(com.sumsub.log.a.f35976a, LoggerType.KIBANA, vVar4, false, 4, null);
com.sumsub.sns.core.data.source.dynamic.b bVar2 = this.dataRepository;
c1166f.f38473a = this;
c1166f.f38474b = vVar4;
c1166f.f38479g = 1;
Object c15 = com.sumsub.sns.core.data.source.dynamic.b.c(bVar2, false, c1166f, 1, null);
if (c15 == d15) {
return d15;
}
fVar2 = this;
vVar = vVar4;
obj2 = c15;
appConfig = (AppConfig) obj2;
if (appConfig.getApplicantId().length() != 0) {
throw new SNSApplicantNotFoundException(null, 1, null);
}
int i16 = c.f38470a[appConfig.getFlowType().ordinal()];
if (i16 != 1 && i16 != 2) {
if (i16 == 3) {
com.sumsub.sns.core.data.source.common.a commonRepository = fVar2.getCommonRepository();
String actionId = appConfig.getActionId();
if (actionId == null) {
actionId = "<unknown>";
}
c1166f.f38473a = fVar2;
c1166f.f38474b = vVar;
c1166f.f38475c = appConfig;
c1166f.f38479g = 4;
if (commonRepository.a(actionId, true, (ho.d<? super Action>) c1166f) == d15) {
return d15;
}
vVar3 = vVar;
appConfig2 = appConfig;
fVar = fVar2;
vVar2 = vVar3;
com.sumsub.sns.core.data.source.dynamic.b bVar3 = fVar.dataRepository;
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig2;
c1166f.f38479g = 5;
obj2 = bVar3.d(c1166f);
if (obj2 == d15) {
}
appConfig3 = appConfig2;
strings = (b.Strings) obj2;
if (b0.f36997a.getSupportItems() == null) {
}
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
}
throw new IllegalArgumentException("Unknown flow type " + appConfig.getFlowType());
}
com.sumsub.sns.core.data.source.dynamic.b bVar4 = fVar2.dataRepository;
String applicantId = appConfig.getApplicantId();
c1166f.f38473a = fVar2;
c1166f.f38474b = vVar;
c1166f.f38475c = appConfig;
c1166f.f38479g = 2;
Object a16 = bVar4.a(applicantId, true, c1166f);
if (a16 == d15) {
return d15;
}
v vVar5 = vVar;
appConfig2 = appConfig;
obj2 = a16;
fVar = fVar2;
vVar2 = vVar5;
Applicant applicant = (Applicant) obj2;
levelName = applicant.getReview().getLevelName();
if (levelName == null) {
com.sumsub.sns.core.analytics.b.f36910a.a(GlobalStatePayload.LevelName, levelName);
g0Var = co.g0.f25238a;
} else {
g0Var = null;
}
if (g0Var == null) {
com.sumsub.sns.core.analytics.b.f36910a.a(GlobalStatePayload.LevelName);
}
info = applicant.getInfo();
if (info != null || (country = info.getCountry()) == null) {
g0Var2 = null;
} else {
com.sumsub.sns.core.analytics.b.f36910a.a(GlobalStatePayload.Country, country);
g0Var2 = co.g0.f25238a;
}
if (g0Var2 == null) {
com.sumsub.sns.core.analytics.b.f36910a.a(GlobalStatePayload.Country);
}
List<Applicant.RequiredIdDocs.DocSetsItem> g15 = applicant.getRequiredIdDocs().g();
arrayList = new ArrayList();
it = g15.iterator();
while (it.hasNext()) {
DocumentType idDocSetType = ((Applicant.RequiredIdDocs.DocSetsItem) it.next()).getIdDocSetType();
if (!(!idDocSetType.l())) {
idDocSetType = null;
}
if (idDocSetType != null) {
arrayList.add(idDocSetType);
}
}
fVar.settingsRepository.c(applicant.getExternalUserId());
if (!arrayList.isEmpty()) {
String a17 = fVar.settingsRepository.a();
com.sumsub.sns.core.data.source.log.a aVar2 = fVar.logRepository;
LogType logType = LogType.Warn;
StringBuilder sb5 = new StringBuilder();
sb5.append("Unknown idDocSetType type: ");
x05 = c0.x0(arrayList, null, null, null, 0, null, g.f38480a, 31, null);
sb5.append(x05);
LogParams logParams = new LogParams((String) null, "", (String) null, "PrepareSDKUseCase.kt", a17, sb5.toString(), (String) null, "", 65, (kotlin.jvm.internal.k) null);
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig2;
c1166f.f38479g = 3;
if (aVar2.a(logType, logParams, c1166f) == d15) {
return d15;
}
vVar3 = vVar2;
fVar2 = fVar;
fVar = fVar2;
vVar2 = vVar3;
}
com.sumsub.sns.core.data.source.dynamic.b bVar32 = fVar.dataRepository;
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig2;
c1166f.f38479g = 5;
obj2 = bVar32.d(c1166f);
if (obj2 == d15) {
return d15;
}
appConfig3 = appConfig2;
strings = (b.Strings) obj2;
if (b0.f36997a.getSupportItems() == null) {
com.sumsub.sns.core.data.source.common.a commonRepository2 = fVar.getCommonRepository();
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig3;
c1166f.f38476d = strings;
c1166f.f38479g = 6;
obj2 = commonRepository2.a(c1166f);
if (obj2 == d15) {
return d15;
}
r05 = (Map) obj2;
if (r05 != 0) {
S0 = kotlin.text.w.S0("supportEmail", new char[]{(char) 47}, false, 0, 6, null);
o0 o0Var = new o0();
o0Var.f85779c = r05;
z15 = p.z(0, S0.size() - 1);
Iterator<Integer> it4 = z15.iterator();
while (it4.hasNext()) {
Object obj3 = ((Map) o0Var.f85779c).get(S0.get(((p029do.o0) it4).a()));
Map map = obj3 instanceof Map ? (Map) obj3 : null;
if (map != null) {
ArrayList arrayList2 = new ArrayList();
for (Map.Entry entry : map.entrySet()) {
Object key = entry.getKey();
if (!(key instanceof String)) {
key = null;
}
String str2 = (String) key;
if (str2 != null) {
Object value = entry.getValue();
if (!(value instanceof Object)) {
value = null;
}
if (value != null) {
a15 = w.a(str2, value);
if (a15 == null) {
arrayList2.add(a15);
}
}
}
a15 = null;
if (a15 == null) {
}
}
x15 = u0.x(arrayList2);
if (x15 != 0) {
o0Var.f85779c = x15;
}
}
}
Map map2 = (Map) o0Var.f85779c;
B0 = c0.B0(S0);
Object obj4 = map2.get(B0);
if (!(obj4 instanceof String)) {
obj4 = null;
}
str = (String) obj4;
b0 b0Var = b0.f36997a;
if (str != null) {
I = kotlin.text.v.I(str);
if (!I) {
sNSSupportItem = new SNSSupportItem(strings.a("sns_support_EMAIL_title"), strings.a("sns_support_EMAIL_description"), SNSSupportItem.Type.Email, str, null, SNSIconHandler.SNSCommonIcons.MAIL.getImageName(), null, 80, null);
e15 = t.e(sNSSupportItem);
b0Var.setSupportItems(e15);
}
}
sNSSupportItem = new SNSSupportItem(strings.a("sns_support_URL_title"), strings.a("sns_support_URL_description"), SNSSupportItem.Type.Url, "https://support.sumsub.com/hc/", null, SNSIconHandler.SNSCommonIcons.MAIL.getImageName(), null, 80, null);
e15 = t.e(sNSSupportItem);
b0Var.setSupportItems(e15);
}
str = null;
b0 b0Var2 = b0.f36997a;
if (str != null) {
}
sNSSupportItem = new SNSSupportItem(strings.a("sns_support_URL_title"), strings.a("sns_support_URL_description"), SNSSupportItem.Type.Url, "https://support.sumsub.com/hc/", null, SNSIconHandler.SNSCommonIcons.MAIL.getImageName(), null, 80, null);
e15 = t.e(sNSSupportItem);
b0Var2.setSupportItems(e15);
}
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
} catch (SNSApplicantNotFoundException e16) {
e = e16;
fVar = this;
obj = null;
c1166f.f38473a = obj;
c1166f.f38474b = obj;
c1166f.f38475c = obj;
c1166f.f38476d = obj;
c1166f.f38479g = 7;
obj2 = fVar.a((Exception) e, (ho.d<? super Exception>) c1166f);
if (obj2 == d15) {
}
left = new a.Left(obj2);
return left;
} catch (Exception e17) {
e = e17;
fVar = this;
fVar.getCommonRepository().a(e instanceof SNSInvalidParametersException ? new SNSSDKState.Failed.InvalidParameters(((SNSInvalidParametersException) e).getMessages()) : new SNSSDKState.Failed.InitialLoadingFailed(e));
left = new a.Left(e);
return left;
}
case 1:
vVar = (v) c1166f.f38474b;
fVar2 = (f) c1166f.f38473a;
s.b(obj2);
appConfig = (AppConfig) obj2;
if (appConfig.getApplicantId().length() != 0) {
}
break;
case 2:
appConfig2 = (AppConfig) c1166f.f38475c;
vVar2 = (v) c1166f.f38474b;
fVar = (f) c1166f.f38473a;
try {
s.b(obj2);
Applicant applicant2 = (Applicant) obj2;
levelName = applicant2.getReview().getLevelName();
if (levelName == null) {
}
if (g0Var == null) {
}
info = applicant2.getInfo();
if (info != null) {
break;
}
g0Var2 = null;
if (g0Var2 == null) {
}
List<Applicant.RequiredIdDocs.DocSetsItem> g152 = applicant2.getRequiredIdDocs().g();
arrayList = new ArrayList();
it = g152.iterator();
while (it.hasNext()) {
}
fVar.settingsRepository.c(applicant2.getExternalUserId());
if (!arrayList.isEmpty()) {
}
com.sumsub.sns.core.data.source.dynamic.b bVar322 = fVar.dataRepository;
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig2;
c1166f.f38479g = 5;
obj2 = bVar322.d(c1166f);
if (obj2 == d15) {
}
appConfig3 = appConfig2;
strings = (b.Strings) obj2;
if (b0.f36997a.getSupportItems() == null) {
}
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
} catch (SNSApplicantNotFoundException e18) {
e = e18;
obj = null;
c1166f.f38473a = obj;
c1166f.f38474b = obj;
c1166f.f38475c = obj;
c1166f.f38476d = obj;
c1166f.f38479g = 7;
obj2 = fVar.a((Exception) e, (ho.d<? super Exception>) c1166f);
if (obj2 == d15) {
}
left = new a.Left(obj2);
return left;
}
case 3:
case 4:
appConfig2 = (AppConfig) c1166f.f38475c;
vVar3 = (v) c1166f.f38474b;
fVar2 = (f) c1166f.f38473a;
s.b(obj2);
fVar = fVar2;
vVar2 = vVar3;
com.sumsub.sns.core.data.source.dynamic.b bVar3222 = fVar.dataRepository;
c1166f.f38473a = fVar;
c1166f.f38474b = vVar2;
c1166f.f38475c = appConfig2;
c1166f.f38479g = 5;
obj2 = bVar3222.d(c1166f);
if (obj2 == d15) {
}
appConfig3 = appConfig2;
strings = (b.Strings) obj2;
if (b0.f36997a.getSupportItems() == null) {
}
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
case 5:
appConfig2 = (AppConfig) c1166f.f38475c;
v vVar6 = (v) c1166f.f38474b;
f fVar3 = (f) c1166f.f38473a;
s.b(obj2);
fVar = fVar3;
vVar2 = vVar6;
appConfig3 = appConfig2;
strings = (b.Strings) obj2;
if (b0.f36997a.getSupportItems() == null) {
}
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
case 6:
strings = (b.Strings) c1166f.f38476d;
appConfig3 = (AppConfig) c1166f.f38475c;
vVar2 = (v) c1166f.f38474b;
fVar = (f) c1166f.f38473a;
try {
s.b(obj2);
r05 = (Map) obj2;
if (r05 != 0) {
}
str = null;
b0 b0Var22 = b0.f36997a;
if (str != null) {
}
sNSSupportItem = new SNSSupportItem(strings.a("sns_support_URL_title"), strings.a("sns_support_URL_description"), SNSSupportItem.Type.Url, "https://support.sumsub.com/hc/", null, SNSIconHandler.SNSCommonIcons.MAIL.getImageName(), null, 80, null);
e15 = t.e(sNSSupportItem);
b0Var22.setSupportItems(e15);
vVar2.a(appConfig3.getApplicantId());
fVar.settingsRepository.b(appConfig3.getApplicantId());
fVar.getCommonRepository().a(SNSSDKState.Ready.INSTANCE);
Logger.d$default(com.sumsub.log.a.f35976a, com.sumsub.log.c.a(fVar), "SDK got the following data: Config is " + appConfig3 + ", Flow type is " + appConfig3.getFlowType(), null, 4, null);
return new a.Right(new Result(appConfig3, strings));
} catch (SNSApplicantNotFoundException e19) {
e = e19;
obj = null;
c1166f.f38473a = obj;
c1166f.f38474b = obj;
c1166f.f38475c = obj;
c1166f.f38476d = obj;
c1166f.f38479g = 7;
obj2 = fVar.a((Exception) e, (ho.d<? super Exception>) c1166f);
if (obj2 == d15) {
return d15;
}
left = new a.Left(obj2);
return left;
}
case 7:
s.b(obj2);
left = new a.Left(obj2);
return left;
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
}
c1166f = new C1166f(dVar);
Object obj22 = c1166f.f38477e;
d15 = io.d.d();
switch (c1166f.f38479g) {
}
}
public f(@NotNull com.sumsub.sns.core.a aVar) {
this(aVar.g(), aVar.k(), aVar.x(), aVar.q(), aVar.c(), aVar.m());
}
}