导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - P.java 源代码

正在查看: Perplexity v2.48.1 应用的 P.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package Hj;

import Pj.C0286d1;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import d.D0;
import jj.C0921f;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import rk.C1488x0;
import rm.K0;
import rm.u0;
import wj.Q1;

public final class P implements Function0 {
    public final int w;
    public final boolean x;
    public final Object y;
    public final Object z;

    public P(j2.a aVar, boolean z, Object obj, int i) {
        this.w = i;
        this.y = aVar;
        this.x = z;
        this.z = obj;
    }

    @Override
    public final Object invoke() {
        switch (this.w) {
            case 0:
                boolean z = this.x;
                v vVar = (v) this.y;
                if (z) {
                    vVar.q.invoke(C0286d1.a);
                }
                ((D3.H) this.z).invoke();
                vVar.p.invoke(new H2.d(13));
                return Unit.a;
            case 1:
                P1.i iVar = (P1.i) this.z;
                ((j2.a) this.y).b(iVar.d, this.x);
                return Unit.a;
            case 2:
                ((j2.a) this.y).b(((G.b) this.z).b, this.x);
                return Unit.a;
            case 3:
                if (this.x) {
                    i.C c = ((i.i) this.y).c;
                    om.H.o(c.E0, null, null, new i.f(c, (Continuation) null), 3);
                } else {
                    Context context = ((D0) this.z).b;
                    Intent intent = new Intent();
                    intent.setComponent(new ComponentName(context.getPackageName(), "ai.perplexity.app.android.ui.main.MainActivity"));
                    intent.setData(Uri.parse("https://www.perplexity.ai/appwidget/action/start-text-input-with-copilot"));
                    intent.addFlags(268435456);
                    intent.addFlags(67108864);
                    try {
                        context.startActivity(intent);
                    } catch (Exception e) {
                        Jn.c.a.j(e, "Could not open MainActivity login (with copilot intent): %s", e.getLocalizedMessage());
                    }
                }
                return Unit.a;
            default:
                Q1 q1 = (Q1) this.y;
                Ak.d L = com.google.common.util.concurrent.w.L((K0) q1.a, new C1488x0(24));
                u0 u0Var = q1.i.b;
                Ak.d L2 = com.google.common.util.concurrent.w.L((K0) q1.a, new C1488x0(25));
                C0921f c0921f = new C0921f(q1, 22);
                return new Sj.e(L, u0Var, L2, this.z, q1.n, this.x, c0921f);
        }
    }

    public P(Q1 q1, K0 k0, boolean z) {
        this.w = 4;
        this.y = q1;
        this.z = k0;
        this.x = z;
    }

    public P(boolean z, Object obj, Object obj2, int i) {
        this.w = i;
        this.x = z;
        this.y = obj;
        this.z = obj2;
    }
}