导航菜单

页面标题

页面副标题

OVO v3.139.0 - a.java 源代码

正在查看: OVO v3.139.0 应用的 a.java JAVA 源代码文件

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


package com.grab.digibank.ui.common.components;

import android.content.Context;
import android.net.Uri;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;
import androidx.compose.runtime.ParcelableSnapshotMutableState;
import androidx.compose.ui.Modifier;
import com.google.firebase.perf.util.Constants;
import com.vkey.android.support.permission.Const;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import o.i.Composer;
import o.i.Function110;
import o.i.Function23;
import o.i.awi;
import o.i.b22;
import o.i.b52;
import o.i.bd8;
import o.i.c22;
import o.i.cf8;
import o.i.f10;
import o.i.f90;
import o.i.g62;
import o.i.hc;
import o.i.jo3;
import o.i.jqe;
import o.i.kci;
import o.i.kt0;
import o.i.ku1;
import o.i.n3j;
import o.i.nwb;
import o.i.p1g;
import o.i.pqh;
import o.i.pvm;
import o.i.r20;
import o.i.ra3;
import o.i.rm9;
import o.i.rrc;
import o.i.tf8;
import o.i.tgb;
import o.i.tgg;
import o.i.u3k;
import o.i.u5g;
import o.i.ua8;
import o.i.v42;
import o.i.vk7;
import o.i.yvi;
import o.i.zu5;
import o.i.zvi;

public final class a {

    public static final class C0014a extends ua8 implements Function110<Throwable, p1g> {
        public static final C0014a b = new C0014a();

        public C0014a() {
            super(1);
        }

        public final Object invoke(Object obj) {
            vk7.f((Throwable) obj, "it");
            return p1g.a;
        }
    }

    public static final class b extends ua8 implements Function110<Context, z0> {
        public final List<String> b;
        public final Function110<Throwable, p1g> c;

        public final WebViewClient f455d;

        public final rm9<Boolean> f456e;

        public b(List<String> list, Function110<? super Throwable, p1g> function110, WebViewClient webViewClient, rm9<Boolean> rm9Var) {
            super(1);
            this.b = list;
            this.c = function110;
            this.f455d = webViewClient;
            this.f456e = rm9Var;
        }

        public final Object invoke(Object obj) {
            Context context = (Context) obj;
            vk7.f(context, "it");
            z0 z0Var = new z0(context, null);
            List<String> list = this.b;
            vk7.f(list, "whitelist");
            LinkedHashSet linkedHashSet = z0Var.b;
            ArrayList arrayList = new ArrayList(ku1.V(list, 10));
            for (String str : list) {
                String host = Uri.parse(str).getHost();
                if (host != null) {
                    str = host;
                }
                vk7.e(str, "Uri.parse(it).host ?: it");
                arrayList.add(str);
            }
            linkedHashSet.addAll(arrayList);
            z0Var.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
            z0Var.setOnError(this.c);
            WebSettings settings = z0Var.getSettings();
            vk7.e(settings, "settings");
            settings.supportZoom();
            settings.setDomStorageEnabled(true);
            settings.setBuiltInZoomControls(true);
            settings.setLoadWithOverviewMode(true);
            settings.setUseWideViewPort(true);
            z0Var.setWebViewClient(this.f455d);
            z0Var.setWebChromeClient(new kci(new com.grab.digibank.ui.common.components.b(this.f456e), com.grab.digibank.ui.common.components.c.b));
            return z0Var;
        }
    }

    public static final class c extends ua8 implements Function110<z0, p1g> {
        public final String b;

        public c(String str) {
            super(1);
            this.b = str;
        }

        public final Object invoke(Object obj) {
            z0 z0Var = (z0) obj;
            vk7.f(z0Var, "webView");
            String str = this.b;
            if (jqe.J(str, ".pdf", true)) {
                str = "https://docs.google.com/gview?embedded=true&url=".concat(str);
            }
            z0Var.loadUrl(str);
            return p1g.a;
        }
    }

    public static final class d extends ua8 implements Function23<Composer, Integer, p1g> {
        public final String b;
        public final List<String> c;

        public final boolean f457d;

        public final Function110<Throwable, p1g> f458e;
        public final WebViewClient f;
        public final int g;
        public final int h;

        public d(String str, List<String> list, boolean z, Function110<? super Throwable, p1g> function110, WebViewClient webViewClient, int i, int i2) {
            super(2);
            this.b = str;
            this.c = list;
            this.f457d = z;
            this.f458e = function110;
            this.f = webViewClient;
            this.g = i;
            this.h = i2;
        }

        public final Object invoke(Object obj, Object obj2) {
            ((Number) obj2).intValue();
            a.c(this.b, this.c, this.f457d, this.f458e, this.f, (Composer) obj, jo3.e(this.g | 1), this.h);
            return p1g.a;
        }
    }

    public static final class e extends ua8 implements zu5<p1g> {
        public static final e b = new e();

        public e() {
            super(0);
        }

        public final Object invoke() {
            return p1g.a;
        }
    }

    public static final class f extends ua8 implements Function23<Composer, Integer, p1g> {
        public final zu5<p1g> b;
        public final boolean c;

        public final zu5<p1g> f459d;

        public final zu5<p1g> f460e;
        public final rm9<String> f;
        public final String g;
        public final z0 h;
        public final WebViewClient i;
        public final HashMap<String, String> j;

        public f(zu5 zu5Var, boolean z, zu5 zu5Var2, zu5 zu5Var3, rm9 rm9Var, String str, z0 z0Var, WebViewClient webViewClient, HashMap hashMap) {
            super(2);
            this.b = zu5Var;
            this.c = z;
            this.f459d = zu5Var2;
            this.f460e = zu5Var3;
            this.f = rm9Var;
            this.g = str;
            this.h = z0Var;
            this.i = webViewClient;
            this.j = hashMap;
        }

        public final Object invoke(Object obj, Object obj2) {
            Composer composer = (Composer) obj;
            if ((((Number) obj2).intValue() & 11) == 2 && composer.j()) {
                composer.F();
            } else {
                composer.u(1157296644);
                zu5<p1g> zu5Var = this.b;
                boolean L = composer.L(zu5Var);
                Object v = composer.v();
                if (L || v == Composer.a.a) {
                    v = new com.grab.digibank.ui.common.components.d(zu5Var);
                    composer.o(v);
                }
                composer.K();
                f90.a(false, (zu5) v, composer, 0, 1);
                u3k.a(null, false, false, null, c22.b(composer, 1313077233, new com.grab.digibank.ui.common.components.e(this.c, this.f459d, this.f460e, this.f)), null, null, null, 0, false, null, false, null, Constants.MIN_SAMPLING_RATE, 0L, 0L, 0L, 0L, 0L, c22.b(composer, -1121228392, new j(this.g, this.h, this.i, this.j, this.f)), composer, 24576, 805306368, 524271);
            }
            return p1g.a;
        }
    }

    public static final class g extends ua8 implements Function23<Composer, Integer, p1g> {
        public final Function23<Composer, Integer, p1g> b;
        public final int c;

        public g(int i, Function23 function23) {
            super(2);
            this.b = function23;
            this.c = i;
        }

        public final Object invoke(Object obj, Object obj2) {
            Composer composer = (Composer) obj;
            if ((((Number) obj2).intValue() & 11) == 2 && composer.j()) {
                composer.F();
            } else {
                this.b.invoke(composer, Integer.valueOf((this.c >> 9) & 14));
            }
            return p1g.a;
        }
    }

    public static final class h extends ua8 implements Function23<Composer, Integer, p1g> {
        public final z0 b;
        public final pqh c;

        public final zu5<p1g> f461d;

        public final Function23<Composer, Integer, p1g> f462e;
        public final boolean f;
        public final String g;
        public final boolean h;
        public final String i;
        public final HashMap<String, String> j;
        public final zu5<p1g> k;
        public final WebViewClient l;
        public final int m;
        public final int n;

        public final int f463o;

        public h(z0 z0Var, pqh pqhVar, zu5<p1g> zu5Var, Function23<? super Composer, ? super Integer, p1g> function23, boolean z, String str, boolean z2, String str2, HashMap<String, String> hashMap, zu5<p1g> zu5Var2, WebViewClient webViewClient, int i, int i2, int i3) {
            super(2);
            this.b = z0Var;
            this.c = pqhVar;
            this.f461d = zu5Var;
            this.f462e = function23;
            this.f = z;
            this.g = str;
            this.h = z2;
            this.i = str2;
            this.j = hashMap;
            this.k = zu5Var2;
            this.l = webViewClient;
            this.m = i;
            this.n = i2;
            this.f463o = i3;
        }

        public final Object invoke(Object obj, Object obj2) {
            ((Number) obj2).intValue();
            a.b(this.b, this.c, this.f461d, this.f462e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, (Composer) obj, jo3.e(this.m | 1), jo3.e(this.n), this.f463o);
            return p1g.a;
        }
    }

    public static final void a(int i, int i2, Composer composer, Modifier modifier, String str) {
        int i3;
        vk7.f(str, "htmlContent");
        b52 h2 = composer.h(-1553240013);
        int i4 = i2 & 1;
        if (i4 != 0) {
            i3 = i | 6;
        } else if ((i & 14) == 0) {
            i3 = (h2.L(modifier) ? 4 : 2) | i;
        } else {
            i3 = i;
        }
        if ((i2 & 2) != 0) {
            i3 |= 48;
        } else if ((i & 112) == 0) {
            i3 |= h2.L(str) ? 32 : 16;
        }
        if ((i3 & 91) == 18 && h2.j()) {
            h2.F();
        } else {
            if (i4 != 0) {
                modifier = Modifier.a.b;
            }
            yvi yviVar = yvi.b;
            h2.u(1157296644);
            boolean L = h2.L(str);
            Object v = h2.v();
            if (L || v == Composer.a.a) {
                v = new zvi(str);
                h2.o(v);
            }
            h2.X(false);
            androidx.compose.ui.viewinterop.b.a(yviVar, modifier, (Function110) v, h2, ((i3 << 3) & 112) | 6, 0);
        }
        rrc b0 = h2.b0();
        if (b0 == null) {
            return;
        }
        b0.d = new awi(modifier, str, i, i2);
    }

    public static final void b(com.grab.digibank.ui.common.components.z0 r26, o.i.pqh r27, o.i.zu5<o.i.p1g> r28, o.i.Function23<? super o.i.Composer, ? super java.lang.Integer, o.i.p1g> r29, boolean r30, java.lang.String r31, boolean r32, java.lang.String r33, java.util.HashMap<java.lang.String, java.lang.String> r34, o.i.zu5<o.i.p1g> r35, android.webkit.WebViewClient r36, o.i.Composer r37, int r38, int r39, int r40) {
        throw new UnsupportedOperationException("Method not decompiled: com.grab.digibank.ui.common.components.a.b(com.grab.digibank.ui.common.components.z0, o.i.pqh, o.i.zu5, o.i.Function23, boolean, java.lang.String, boolean, java.lang.String, java.util.HashMap, o.i.zu5, android.webkit.WebViewClient, o.i.Composer, int, int, int):void");
    }

    public static final void c(String str, List<String> list, boolean z, Function110<? super Throwable, p1g> function110, WebViewClient webViewClient, Composer composer, int i, int i2) {
        WebViewClient webViewClient2;
        Function110<? super Throwable, p1g> function1102;
        vk7.f(str, "url");
        vk7.f(list, "whitelistedDomains");
        b52 h2 = composer.h(199074130);
        boolean z2 = (i2 & 4) != 0 ? true : z;
        Function110<? super Throwable, p1g> function1103 = (i2 & 8) != 0 ? C0014a.b : function110;
        WebViewClient webViewClient3 = (i2 & 16) != 0 ? new WebViewClient() : webViewClient;
        h2.u(-492369756);
        Object v = h2.v();
        Composer.a.a aVar = Composer.a.a;
        Object obj = v;
        if (v == aVar) {
            ParcelableSnapshotMutableState I = pvm.I(Boolean.TRUE);
            h2.o(I);
            obj = I;
        }
        h2.X(false);
        rm9 rm9Var = (rm9) obj;
        h2.u(733328855);
        Modifier.a aVar2 = Modifier.a.b;
        kt0 c2 = tgb.c(h2);
        ra3 ra3Var = (ra3) h2.C(g62.f);
        bd8 bd8Var = (bd8) h2.C(g62.l);
        tgg tggVar = (tgg) h2.C(g62.q);
        v42.a aVar3 = v42.c0;
        aVar3.getClass();
        tf8.a aVar4 = v42.a.b;
        b22 b2 = cf8.b(aVar2);
        if (!(h2.a instanceof f10)) {
            hc.o();
            throw null;
        }
        h2.A();
        if (h2.O) {
            h2.q(aVar4);
        } else {
            h2.n();
        }
        h2.x = false;
        u5g.a(h2, bd8Var, hc.b(aVar3, h2, c2, h2, ra3Var));
        nwb.g(0, b2, r20.d(aVar3, h2, tggVar, h2, h2), h2);
        b bVar = new b(list, function1103, webViewClient3, rm9Var);
        h2.u(1157296644);
        boolean L = h2.L(str);
        Object v2 = h2.v();
        Object obj2 = v2;
        if (L || v2 == aVar) {
            c cVar = new c(str);
            h2.o(cVar);
            obj2 = cVar;
        }
        h2.X(false);
        androidx.compose.ui.viewinterop.b.a(bVar, (Modifier) null, (Function110) obj2, h2, 0, 2);
        h2.u(143863391);
        if (((Boolean) rm9Var.getValue()).booleanValue() && z2) {
            webViewClient2 = webViewClient3;
            function1102 = function1103;
            n3j.c(null, 0L, 0L, null, null, null, null, h2, 0, Const.DEFAULT_CODE);
        } else {
            webViewClient2 = webViewClient3;
            function1102 = function1103;
        }
        nwb.h(h2);
        rrc b0 = h2.b0();
        if (b0 == null) {
            return;
        }
        b0.d = new d(str, list, z2, function1102, webViewClient2, i, i2);
    }
}