正在查看: Perplexity v2.48.1 应用的 C1608m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 C1608m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package c3;
import T4.AbstractC0805c;
import ai.perplexity.app.android.assistant.action.PermissionsActivity;
import ai.perplexity.app.android.assistant.settings.AssistantLockScreenSettingsActivity;
import android.content.Context;
import android.content.Intent;
import android.media.session.MediaController;
import android.net.Uri;
import android.os.Build;
import com.google.android.gms.internal.measurement.B1;
import com.google.android.gms.internal.measurement.W1;
import com.google.android.gms.internal.measurement.t1;
import com.google.android.gms.internal.measurement.v1;
import e.C1882d;
import e1.C1908c;
import e3.InterfaceC1952K;
import e3.InterfaceC1975s;
import g.AbstractC2345m;
import g.C2344l;
import i.C2555C;
import i.C2569b;
import i.C2576i;
import i2.C2625b;
import i2.C2627d;
import i2.C2637n;
import j.C2750a;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Locale;
import jk.F1;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import l0.C3125O;
import l0.EnumC3126P;
import p1.C3575c;
import s.AbstractC3964a;
import t5.InterfaceC4113c0;
import u2.AbstractC4227a;
import u6.C4320a;
public final class C1608m implements Function0 {
public final int f24077w;
public final Object f24078x;
public final Object f24079y;
public C1608m(int i10, Object obj, Object obj2) {
this.f24077w = i10;
this.f24078x = obj;
this.f24079y = obj2;
}
public final Object invoke() {
Object value;
Object value2;
C2637n c2637n;
C3125O c3125o;
int i10;
int i11 = 1;
Object obj = this.f24079y;
Object obj2 = this.f24078x;
switch (this.f24077w) {
case 0:
t5.a1 a1Var = (t5.a1) obj;
((Function3) obj2).invoke(((C1610n) a1Var.getValue()).f24084d, ((C1610n) a1Var.getValue()).f24085e, ((C1610n) a1Var.getValue()).f24082b);
return Unit.a;
case 1:
((C3575c) obj2).a();
((InterfaceC4113c0) obj).setValue(i1.p.f31774l);
return Unit.a;
case 2:
om.H.o((om.D) obj2, (CoroutineContext) null, (om.F) null, new F((U4.B) obj, null), 3);
return Unit.a;
case 3:
((InterfaceC4113c0) obj).setValue(Boolean.TRUE);
((Hj.P) ((Qa.J) obj2).f12313y).invoke();
return Unit.a;
case 4:
e0.J.w(((Ck.h) obj2).x);
((Function0) obj).invoke();
return Unit.a;
case 5:
B1.x(((Ck.h) obj2).x);
((Function0) obj).invoke();
return Unit.a;
case 6:
W9.u uVar = (W9.u) obj2;
t1.A((Context) uVar.f16770x, (String) uVar.f16771y, "");
((Function0) obj).invoke();
return Unit.a;
case 7:
W1.r(((J.d) obj2).f5074x);
((Function0) obj).invoke();
return Unit.a;
case 8:
Ck.h hVar = (Ck.h) obj2;
Function0 function0 = (Function0) obj;
Intent intent = new Intent("android.intent.action.VIEW");
intent.addFlags(268435456);
intent.setData(Uri.parse("https://perplexity.ai/assistant/capabilities"));
try {
hVar.x.startActivity(intent);
function0.invoke();
} catch (Exception e10) {
Jn.c.a.j(e10, "[Perplexity Assistant] Could not open notification listener settings: %s", new Object[]{e10});
}
return Unit.a;
case 9:
J.d dVar = (J.d) obj2;
Intent addFlags = new Intent(dVar.f5074x, (Class<?>) AssistantLockScreenSettingsActivity.class).addFlags(268435456);
Intrinsics.g(addFlags, "addFlags(...)");
dVar.f5074x.startActivity(addFlags);
((Function0) obj).invoke();
return Unit.a;
case 10:
d.L0 l02 = (d.L0) obj2;
l02.f(((d.U0) obj).f25434a.a());
l02.f25374d.setValue(Boolean.TRUE);
return Unit.a;
case H7.i.HAS_IMAGE_COLOR_FILTER_FIELD_NUMBER:
Vc.e eVar = (Vc.e) obj2;
d.M0 m02 = (d.M0) eVar.y;
V6.L l4 = m02.f25388c;
if (l4 == null) {
l4 = new V6.L(m02.f25386a);
m02.f25388c = l4;
}
if (l4.f16098b.areNotificationsEnabled() || Build.VERSION.SDK_INT < 33) {
Vc.e.g(eVar);
} else {
Function0 function02 = PermissionsActivity.f19516s0;
v1.J((Context) eVar.x, "android.permission.POST_NOTIFICATIONS", new Rj.y(eVar, 16), new d.B0(i11), false, false);
}
((Function0) obj).invoke();
return Unit.a;
case 12:
Dn.h.K(((Ck.h) obj2).x);
((Function0) obj).invoke();
return Unit.a;
case 13:
e.x xVar = (e.x) obj;
Dn.h.L((C1882d) obj2, xVar.f26031c);
qm.h hVar2 = xVar.f26035g;
Unit unit = Unit.a;
hVar2.m(unit);
return unit;
case 14:
((InterfaceC4113c0) obj2).setValue(Boolean.FALSE);
((gc.f) obj).b();
return Unit.a;
case AbstractC0805c.f13760h:
((Ok.t) obj2).w0("query_progress", (C1908c) obj);
Jn.c.a.b("Done with request", new Object[0]);
return Unit.a;
case 16:
((Ok.t) obj2).w0("audio", (e1.p0) obj);
Jn.c.a.b("Done with tts request", new Object[0]);
return Unit.a;
case 17:
Context context = (Context) obj2;
Intrinsics.h(context, "context");
InterfaceC1952K interfaceC1952K = (InterfaceC1952K) obj;
Intrinsics.h(interfaceC1952K, "charsAndDurationsListener");
b.k kVar = ((b.i) ((b.l) ((InterfaceC1975s) Ce.b.F(context, InterfaceC1975s.class))).f21790U1.get()).f21688a;
return new e3.r(interfaceC1952K, (e1.s0) kVar.f21690a.f21780S1.get(), (e1.o0) kVar.f21690a.f21785T1.get(), AbstractC3964a.a());
case 18:
Ce.b.J(((J.d) obj2).f5074x);
((Function0) obj).invoke();
return Unit.a;
case 19:
((f.v) obj2).k((f.i) obj);
return Unit.a;
case 20:
((C2344l) obj2).e((String) obj, "com.spotify.music");
return Unit.a;
case 21:
ek.F f4 = (ek.F) obj2;
AbstractC2345m.p((Context) f4.y, (String) f4.x);
((Function0) obj).invoke();
return Unit.a;
case 22:
MediaController mediaController = (MediaController) obj2;
g.U u10 = (g.U) obj;
try {
int i12 = Result.x;
mediaController.unregisterCallback(u10);
Unit unit2 = Unit.a;
} catch (Throwable th) {
int i13 = Result.x;
ResultKt.a(th);
}
return Unit.a;
case 23:
Regex.Companion companion = Regex.x;
return ((Regex) obj2).a((CharSequence) obj);
case 24:
rm.M0 m03 = ((C2555C) obj2).f31363G0;
do {
value = m03.getValue();
} while (!m03.i(value, C2569b.a((C2569b) value, null, false, false, 0.0f, false, null, null, null, false, null, null, null, null, null, null, false, false, false, false, null, false, false, false, false, false, false, false, false, -1610612737)));
C2555C c2555c = ((C2576i) obj).f31544c;
if (((C2569b) c2555c.f31363G0.getValue()).f31483A) {
c2555c.u();
}
return Unit.a;
case 25:
InterfaceC4113c0 interfaceC4113c0 = (InterfaceC4113c0) obj;
String str = ((C2637n) interfaceC4113c0.getValue()).f31831b;
String str2 = ((C2637n) interfaceC4113c0.getValue()).f31832c;
i1 i1Var = (i1) obj2;
i1Var.getClass();
Intrinsics.h(str, "frontendUuid");
Intrinsics.h(str2, "backendUuid");
Ha.a aVar = i1Var.f23890A0;
aVar.getClass();
Intrinsics.h(str, "frontendUuid");
Intrinsics.h(str2, "backendUuid");
C2625b c2625b = (C2625b) ((LinkedHashMap) aVar.f4476X).get(str2);
if (c2625b != null) {
rm.M0 m04 = (rm.M0) aVar.f4480z;
if (Intrinsics.c(((C2637n) m04.getValue()).f31831b, c2625b.f31790a)) {
C3125O c3125o2 = c2625b.f31795f;
if (c3125o2.f34753b == EnumC3126P.f34762w) {
do {
value2 = m04.getValue();
c2637n = (C2637n) value2;
c3125o = c2637n.f31833d;
i10 = c3125o2.f34754c;
} while (!m04.i(value2, C2637n.b(c2637n, C3125O.b(c3125o, null, i10 == 0 ? EnumC3126P.f34763x : EnumC3126P.f34764y, 5), 7)));
om.H.o((um.d) aVar.f4479y, (CoroutineContext) null, (om.F) null, new C2627d(aVar, c2625b, i10, null), 3);
}
}
}
return Unit.a;
case 26:
((Ok.t) obj2).w0("assistant_progress", (C2750a) obj);
Jn.c.a.b("Done with request", new Object[0]);
return Unit.a;
case 27:
dn.g gVar = (dn.g) obj2;
if (gVar != null) {
((j.t) obj).getClass();
gVar.b(com.android.volley.toolbox.f.DEFAULT_IMAGE_TIMEOUT_MS, "Normal closure");
}
return Unit.a;
case 28:
((jk.i) obj2).getClass();
C4320a c10 = u6.c.f42613a.q().c();
String language = c10.f42609a.getLanguage();
Locale locale = Locale.ROOT;
String lowerCase = language.toLowerCase(locale);
Intrinsics.g(lowerCase, "toLowerCase(...)");
String upperCase = c10.f42609a.getCountry().toUpperCase(locale);
Intrinsics.g(upperCase, "toUpperCase(...)");
((Context) obj).startActivity(new Intent("android.intent.action.VIEW", Uri.parse(String.format("https://static.afterpay.com/modal/%s.html", Arrays.copyOf(new Object[]{AbstractC4227a.g(lowerCase, "_", upperCase)}, 1)))));
return Unit.a;
default:
return F1.b((E3.k) obj2, (String) obj);
}
}
public C1608m(g.V v2, MediaController mediaController, g.U u10) {
this.f24077w = 22;
this.f24078x = mediaController;
this.f24079y = u10;
}
}