ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155
以下内容为反编译后的 SettingsViewModel$onSettingsClick$1.java 源代码,内容仅作参考
package com.aiby.feature_settings.presentation;
import android.app.Activity;
import android.net.Uri;
import android.util.Log;
import androidx.activity.n;
import bc.b0;
import bc.l0;
import bc.m;
import bc.o0;
import com.google.android.gms.internal.consent_sdk.zzg;
import com.google.android.ump.ConsentInformation$PrivacyOptionsRequirementStatus;
import com.itextpdf.text.pdf.PdfObject;
import eb.h;
import java.util.concurrent.Executor;
import jk.w;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.coroutines.intrinsics.CoroutineSingletons;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import l0.r1;
import ph.c;
import ud.d;
import z5.i;
@c(c = "com.aiby.feature_settings.presentation.SettingsViewModel$onSettingsClick$1", f = "SettingsViewModel.kt", l = {101}, m = "invokeSuspend")
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Ljk/w;", PdfObject.NOTHING, "<anonymous>"}, k = 3, mv = {1, 9, 0})
final class SettingsViewModel$onSettingsClick$1 extends SuspendLambda implements Function2<w, nh.a<? super Unit>, Object> {
public int f4513d;
public final SettingItem f4514e;
public final b f4515i;
public SettingsViewModel$onSettingsClick$1(SettingItem settingItem, b bVar, nh.a aVar) {
super(2, aVar);
this.f4514e = settingItem;
this.f4515i = bVar;
}
@Override
public final nh.a create(Object obj, nh.a aVar) {
return new SettingsViewModel$onSettingsClick$1(this.f4514e, this.f4515i, aVar);
}
@Override
public final Object invoke(Object obj, Object obj2) {
return ((SettingsViewModel$onSettingsClick$1) create((w) obj, (nh.a) obj2)).invokeSuspend(Unit.f14034a);
}
@Override
public final Object invokeSuspend(Object obj) {
boolean z8;
boolean z10;
Object a10;
CoroutineSingletons coroutineSingletons = CoroutineSingletons.f14087d;
int i10 = this.f4513d;
b bVar = this.f4515i;
if (i10 == 0) {
kotlin.b.b(obj);
int ordinal = this.f4514e.ordinal();
if (ordinal == 0) {
bVar.f4535j.a("settings_manage_subscription_tap", new Pair[0]);
Uri parse = Uri.parse("https://aiby.mobi/chat_android/subscriptions/en/");
Intrinsics.checkNotNullExpressionValue(parse, "parsed(...)");
bVar.d(new i(parse, null));
} else if (ordinal == 1) {
bVar.getClass();
Uri parse2 = Uri.parse("https://aiby.mobi/chat_android/terms");
Intrinsics.checkNotNullExpressionValue(parse2, "access$parsed(...)");
bVar.d(new i(parse2, null));
} else if (ordinal == 2) {
bVar.getClass();
Uri parse3 = Uri.parse("https://aiby.mobi/chat_android/privacy");
Intrinsics.checkNotNullExpressionValue(parse3, "access$parsed(...)");
bVar.d(new i(parse3, null));
} else if (ordinal == 3) {
s7.c cVar = (s7.c) bVar.f4543r;
q7.a aVar = cVar.f19306d;
aVar.getClass();
((u6.c) aVar.f18416a).c(new x6.a("dma_consent_show"));
Activity activity = cVar.f19308i;
if (activity == null) {
Intrinsics.k("activity");
throw null;
}
final s7.b bVar2 = new s7.b(cVar, 1);
m mVar = (m) ((l0) bc.c.d(activity).f1896f).a();
mVar.getClass();
b0.a();
o0 o0Var = (o0) ((l0) bc.c.d(activity).f1902l).a();
if (o0Var == null) {
b0.f1888a.post(new Runnable() {
@Override
public final void run() {
int i11 = r2;
ud.a aVar2 = bVar2;
switch (i11) {
case 0:
((s7.b) aVar2).a(new zzg(1, "No consentInformation.").a());
return;
case 1:
((s7.b) aVar2).a(new zzg(3, "No valid response received yet.").a());
return;
case 2:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is not required.").a());
return;
default:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is being loading. Please try again later.").a());
return;
}
}
});
} else {
Object obj2 = o0Var.f1954c.f1945c.get();
ConsentInformation$PrivacyOptionsRequirementStatus consentInformation$PrivacyOptionsRequirementStatus = ConsentInformation$PrivacyOptionsRequirementStatus.f8160e;
if (obj2 == null && o0Var.a() != consentInformation$PrivacyOptionsRequirementStatus) {
b0.f1888a.post(new Runnable() {
@Override
public final void run() {
int i11 = r2;
ud.a aVar2 = bVar2;
switch (i11) {
case 0:
((s7.b) aVar2).a(new zzg(1, "No consentInformation.").a());
return;
case 1:
((s7.b) aVar2).a(new zzg(3, "No valid response received yet.").a());
return;
case 2:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is not required.").a());
return;
default:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is being loading. Please try again later.").a());
return;
}
}
});
if (o0Var.b()) {
synchronized (o0Var.f1956e) {
z10 = o0Var.f1958g;
}
if (!z10) {
synchronized (o0Var.f1956e) {
o0Var.f1958g = true;
}
d dVar = o0Var.f1959h;
eg.c cVar2 = new eg.c(17, o0Var);
n9.b bVar3 = new n9.b(19, o0Var);
h hVar = o0Var.f1953b;
hVar.getClass();
((Executor) hVar.f9564n).execute(new r1(hVar, activity, dVar, cVar2, bVar3, 1, 0));
}
}
boolean b2 = o0Var.b();
synchronized (o0Var.f1956e) {
z8 = o0Var.f1958g;
}
Log.w("UserMessagingPlatform", "Retry request is not executed. consentInfoUpdateHasBeenCalled=" + b2 + ", retryRequestIsInProgress=" + z8);
} else if (o0Var.a() == consentInformation$PrivacyOptionsRequirementStatus) {
b0.f1888a.post(new Runnable() {
@Override
public final void run() {
int i11 = r2;
ud.a aVar2 = bVar2;
switch (i11) {
case 0:
((s7.b) aVar2).a(new zzg(1, "No consentInformation.").a());
return;
case 1:
((s7.b) aVar2).a(new zzg(3, "No valid response received yet.").a());
return;
case 2:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is not required.").a());
return;
default:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is being loading. Please try again later.").a());
return;
}
}
});
} else {
bc.h hVar2 = (bc.h) mVar.f1946d.get();
if (hVar2 == null) {
b0.f1888a.post(new Runnable() {
@Override
public final void run() {
int i11 = r2;
ud.a aVar2 = bVar2;
switch (i11) {
case 0:
((s7.b) aVar2).a(new zzg(1, "No consentInformation.").a());
return;
case 1:
((s7.b) aVar2).a(new zzg(3, "No valid response received yet.").a());
return;
case 2:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is not required.").a());
return;
default:
((s7.b) aVar2).a(new zzg(3, "Privacy options form is being loading. Please try again later.").a());
return;
}
}
});
} else {
hVar2.a(activity, bVar2);
mVar.f1944b.execute(new n(19, mVar));
}
}
}
} else if (ordinal == 4) {
u3.a aVar2 = bVar.f4536k;
this.f4513d = 1;
a10 = ((com.aiby.feature_html_webview.domain.impl.a) aVar2).a(this);
if (a10 == coroutineSingletons) {
return coroutineSingletons;
}
} else if (ordinal == 5) {
String str = bVar.f4532g;
Uri parse4 = Uri.parse("market://details?id=" + str);
Intrinsics.checkNotNullExpressionValue(parse4, "access$parsed(...)");
String str2 = bVar.f4532g;
bVar.d(new i(parse4, Uri.parse("https://play.google.com/store/apps/details?id=" + str2)));
}
return Unit.f14034a;
} else if (i10 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
kotlin.b.b(obj);
a10 = obj;
}
boolean booleanValue = ((Boolean) a10).booleanValue();
String str3 = bVar.f4533h;
String str4 = ((z5.n) bVar.a().getValue()).f21770d;
StringBuilder q10 = androidx.activity.h.q("https://aiby.mobi/chat_android/support//?devname=", str3, "&osver=");
q10.append(bVar.f4534i);
q10.append("&appver=");
q10.append(str4);
q10.append("&isfree=");
q10.append(!booleanValue);
Uri parse5 = Uri.parse(q10.toString());
Intrinsics.checkNotNullExpressionValue(parse5, "access$parsed(...)");
bVar.d(new i(parse5, null));
return Unit.f14034a;
}
}