正在查看: Empower MX v1.29.4.340 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package finance.empower.android.app.web;
import F0.c;
import Ff.n;
import M0.c2;
import Nd.z0;
import X.Q;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import androidx.compose.foundation.layout.q;
import androidx.compose.foundation.layout.t;
import androidx.compose.ui.e;
import androidx.compose.ui.node.c;
import bc.h1;
import c1.F;
import finance.empower.android.app.web.b;
import java.util.Locale;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import l1.W;
import p0.B;
import p0.B0;
import p0.C0;
import p0.D;
import p0.n0;
import p0.o0;
import q1.w;
import s0.E1;
import s0.K;
import s0.L;
import s0.L0;
import s0.O;
import s0.X0;
import s0.j;
import s0.l;
import s0.n1;
import s0.o;
import s0.o1;
import s0.q0;
import s0.x;
import w1.k;
public final class b {
public static final b a = new b();
public static final class a extends WebViewClient {
final String a;
final Function1 b;
a(String str, Function1 function1) {
this.a = str;
this.b = function1;
}
@Override
public void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
this.b.invoke(h1.a.a);
}
@Override
public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
super.onPageStarted(webView, str, bitmap);
this.b.invoke(h1.d.a);
}
@Override
public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
super.onReceivedError(webView, webResourceRequest, webResourceError);
if (webResourceError != null) {
this.b.invoke(new h1.b(webResourceError.getDescription().toString()));
}
}
@Override
public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
super.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
if (webResourceResponse != null) {
this.b.invoke(new h1.c(String.valueOf(webResourceResponse.getStatusCode())));
}
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
Uri url;
if (webResourceRequest != null && (url = webResourceRequest.getUrl()) != null) {
String str = this.a;
String uri = url.toString();
Intrinsics.checkNotNullExpressionValue(uri, "toString(...)");
String lowerCase = uri.toLowerCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
if (StringsKt.x(lowerCase, ".pdf", false, 2, null)) {
if (!StringsKt.L(str, "https://docs.google.com", false, 2, null)) {
str = "https://docs.google.com/gview?embedded=true&url=" + Uri.encode(str);
}
if (webView == null) {
return true;
}
webView.loadUrl(str);
return true;
}
}
return false;
}
}
public static final class C0494b implements K {
final q0 a;
public C0494b(q0 q0Var) {
this.a = q0Var;
}
public void b() {
WebView g = b.g(this.a);
if (g != null) {
g.destroy();
}
}
}
public static final class c {
private final String a;
private final String b;
public c(String str, String str2) {
this.a = str;
this.b = str2;
}
public final String a() {
return this.a;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof c)) {
return false;
}
c cVar = (c) obj;
return Intrinsics.d(this.a, cVar.a) && Intrinsics.d(this.b, cVar.b);
}
public int hashCode() {
String str = this.a;
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
String str2 = this.b;
return hashCode + (str2 != null ? str2.hashCode() : 0);
}
public String toString() {
return "HeaderData(title=" + this.a + ", details=" + this.b + ")";
}
}
public static final class d {
private final Function0 a;
public d(Function0 onExit) {
Intrinsics.checkNotNullParameter(onExit, "onExit");
this.a = onExit;
}
public final Function0 a() {
return this.a;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof d) && Intrinsics.d(this.a, ((d) obj).a);
}
public int hashCode() {
return this.a.hashCode();
}
public String toString() {
return "WebViewNavigation(onExit=" + this.a + ")";
}
}
static final class e implements Function2 {
final d d;
static final class a implements Function2 {
final d d;
a(d dVar) {
this.d = dVar;
}
public final void a(l lVar, int i) {
if ((i & 3) == 2 && lVar.w()) {
lVar.F();
return;
}
if (o.H()) {
o.Q(-2111236506, i, -1, "finance.empower.android.app.web.UiWebViewScreen.WebViewScreen.<anonymous>.<anonymous> (UiWebViewScreen.kt:57)");
}
D.a(this.d.a(), (androidx.compose.ui.e) null, false, (B) null, (W.l) null, Kd.a.a.b(), lVar, 196608, 30);
if (o.H()) {
o.P();
}
}
@Override
public Object invoke(Object obj, Object obj2) {
a((l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
e(d dVar) {
this.d = dVar;
}
public final void a(l lVar, int i) {
if ((i & 3) == 2 && lVar.w()) {
lVar.F();
return;
}
if (o.H()) {
o.Q(-1410592916, i, -1, "finance.empower.android.app.web.UiWebViewScreen.WebViewScreen.<anonymous> (UiWebViewScreen.kt:53)");
}
p0.a.d(Kd.a.a.a(), (androidx.compose.ui.e) null, A0.c.e(-2111236506, true, new a(this.d), lVar, 54), (n) null, 0.0f, (Q) null, B0.a.e(z0.m(), 0L, 0L, 0L, 0L, lVar, B0.g << 15, 30), (C0) null, lVar, 390, 186);
if (o.H()) {
o.P();
}
}
@Override
public Object invoke(Object obj, Object obj2) {
a((l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
static final class f implements Function2 {
final o0 d;
f(o0 o0Var) {
this.d = o0Var;
}
public final void a(l lVar, int i) {
if ((i & 3) == 2 && lVar.w()) {
lVar.F();
return;
}
if (o.H()) {
o.Q(-743211026, i, -1, "finance.empower.android.app.web.UiWebViewScreen.WebViewScreen.<anonymous> (UiWebViewScreen.kt:64)");
}
n0.b(this.d, (androidx.compose.ui.e) null, Kd.a.a.c(), lVar, 390, 2);
if (o.H()) {
o.P();
}
}
@Override
public Object invoke(Object obj, Object obj2) {
a((l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
static final class g implements n {
final androidx.compose.ui.e d;
final c e;
final h i;
final q0 v;
g(androidx.compose.ui.e eVar, c cVar, h hVar, q0 q0Var) {
this.d = eVar;
this.e = cVar;
this.i = hVar;
this.v = q0Var;
}
public static final Unit d(q0 q0Var, h1 state) {
Intrinsics.checkNotNullParameter(state, "state");
b.p(q0Var, state);
return Unit.a;
}
public final void c(X.B paddingValues, l lVar, int i) {
int i2;
Intrinsics.checkNotNullParameter(paddingValues, "paddingValues");
if ((i & 6) == 0) {
i2 = i | (lVar.U(paddingValues) ? 4 : 2);
} else {
i2 = i;
}
if ((i2 & 19) == 18 && lVar.w()) {
lVar.F();
return;
}
if (o.H()) {
o.Q(2115481335, i2, -1, "finance.empower.android.app.web.UiWebViewScreen.WebViewScreen.<anonymous> (UiWebViewScreen.kt:74)");
}
androidx.compose.ui.e h = q.h(t.f(androidx.compose.foundation.b.d(this.d, z0.m(), (c2) null, 2, (Object) null), 0.0f, 1, (Object) null), paddingValues);
c cVar = this.e;
h hVar = this.i;
final q0 q0Var = this.v;
c.a aVar = F0.c.a;
F h2 = androidx.compose.foundation.layout.f.h(aVar.o(), false);
int a = j.a(lVar, 0);
x I = lVar.I();
androidx.compose.ui.e e = androidx.compose.ui.c.e(lVar, h);
c.a aVar2 = androidx.compose.ui.node.c.k;
Function0 a2 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a2);
} else {
lVar.K();
}
l a3 = E1.a(lVar);
E1.b(a3, h2, aVar2.e());
E1.b(a3, I, aVar2.g());
Function2 b = aVar2.b();
if (a3.n() || !Intrinsics.d(a3.f(), Integer.valueOf(a))) {
a3.M(Integer.valueOf(a));
a3.E(Integer.valueOf(a), b);
}
E1.b(a3, e, aVar2.f());
androidx.compose.foundation.layout.h hVar2 = androidx.compose.foundation.layout.h.a;
e.a aVar3 = androidx.compose.ui.e.a;
F a4 = X.g.a(X.b.a.g(), aVar.k(), lVar, 0);
int a5 = j.a(lVar, 0);
x I2 = lVar.I();
androidx.compose.ui.e e2 = androidx.compose.ui.c.e(lVar, aVar3);
Function0 a6 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a6);
} else {
lVar.K();
}
l a7 = E1.a(lVar);
E1.b(a7, a4, aVar2.e());
E1.b(a7, I2, aVar2.g());
Function2 b2 = aVar2.b();
if (a7.n() || !Intrinsics.d(a7.f(), Integer.valueOf(a5))) {
a7.M(Integer.valueOf(a5));
a7.E(Integer.valueOf(a5), b2);
}
E1.b(a7, e2, aVar2.f());
X.j jVar = X.j.a;
b bVar = b.a;
bVar.l(cVar, null, lVar, 390, 2);
androidx.compose.ui.e f = t.f(aVar3, 0.0f, 1, (Object) null);
F h3 = androidx.compose.foundation.layout.f.h(aVar.o(), false);
int a8 = j.a(lVar, 0);
x I3 = lVar.I();
androidx.compose.ui.e e3 = androidx.compose.ui.c.e(lVar, f);
Function0 a9 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a9);
} else {
lVar.K();
}
l a10 = E1.a(lVar);
E1.b(a10, h3, aVar2.e());
E1.b(a10, I3, aVar2.g());
Function2 b3 = aVar2.b();
if (a10.n() || !Intrinsics.d(a10.f(), Integer.valueOf(a8))) {
a10.M(Integer.valueOf(a8));
a10.E(Integer.valueOf(a8), b3);
}
E1.b(a10, e3, aVar2.f());
String b4 = hVar.b();
lVar.V(-2004693414);
Object f2 = lVar.f();
if (f2 == l.a.a()) {
f2 = new Function1() {
@Override
public final Object invoke(Object obj) {
Unit d;
d = b.g.d(q0Var, (h1) obj);
return d;
}
};
lVar.M(f2);
}
lVar.L();
bVar.f(b4, (Function1) f2, t.f(aVar3, 0.0f, 1, (Object) null), lVar, 3504, 0);
h1 o = b.o(q0Var);
if (o instanceof h1.d) {
lVar.V(-2015671278);
androidx.compose.ui.e d = androidx.compose.foundation.b.d(t.f(aVar3, 0.0f, 1, (Object) null), z0.m(), (c2) null, 2, (Object) null);
F h4 = androidx.compose.foundation.layout.f.h(aVar.e(), false);
int a11 = j.a(lVar, 0);
x I4 = lVar.I();
androidx.compose.ui.e e4 = androidx.compose.ui.c.e(lVar, d);
Function0 a12 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a12);
} else {
lVar.K();
}
l a13 = E1.a(lVar);
E1.b(a13, h4, aVar2.e());
E1.b(a13, I4, aVar2.g());
Function2 b5 = aVar2.b();
if (a13.n() || !Intrinsics.d(a13.f(), Integer.valueOf(a11))) {
a13.M(Integer.valueOf(a11));
a13.E(Integer.valueOf(a11), b5);
}
E1.b(a13, e4, aVar2.f());
Od.d.a.d(null, lVar, Od.d.b << 3, 1);
lVar.S();
lVar.L();
} else if (o instanceof h1.c) {
lVar.V(-2015170349);
androidx.compose.ui.e d2 = androidx.compose.foundation.b.d(t.f(aVar3, 0.0f, 1, (Object) null), z0.m(), (c2) null, 2, (Object) null);
F h5 = androidx.compose.foundation.layout.f.h(aVar.e(), false);
int a14 = j.a(lVar, 0);
x I5 = lVar.I();
androidx.compose.ui.e e5 = androidx.compose.ui.c.e(lVar, d2);
Function0 a15 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a15);
} else {
lVar.K();
}
l a16 = E1.a(lVar);
E1.b(a16, h5, aVar2.e());
E1.b(a16, I5, aVar2.g());
Function2 b6 = aVar2.b();
if (a16.n() || !Intrinsics.d(a16.f(), Integer.valueOf(a14))) {
a16.M(Integer.valueOf(a14));
a16.E(Integer.valueOf(a14), b6);
}
E1.b(a16, e5, aVar2.f());
h1 o2 = b.o(q0Var);
Intrinsics.g(o2, "null cannot be cast to non-null type finance.empower.android.app.WebViewController.WebPageState.ErrorStatusCode");
p0.z0.b("Error " + ((h1.c) o2).a(), (androidx.compose.ui.e) null, 0L, 0L, (w) null, (q1.B) null, (q1.l) null, 0L, (k) null, (w1.j) null, 0L, 0, false, 0, 0, (Function1) null, (W) null, lVar, 0, 0, 131070);
lVar.S();
lVar.L();
} else if (o instanceof h1.b) {
lVar.V(-2014608164);
androidx.compose.ui.e d3 = androidx.compose.foundation.b.d(t.f(aVar3, 0.0f, 1, (Object) null), z0.m(), (c2) null, 2, (Object) null);
F h6 = androidx.compose.foundation.layout.f.h(aVar.e(), false);
int a17 = j.a(lVar, 0);
x I6 = lVar.I();
androidx.compose.ui.e e6 = androidx.compose.ui.c.e(lVar, d3);
Function0 a18 = aVar2.a();
if (lVar.z() == null) {
j.c();
}
lVar.v();
if (lVar.n()) {
lVar.C(a18);
} else {
lVar.K();
}
l a19 = E1.a(lVar);
E1.b(a19, h6, aVar2.e());
E1.b(a19, I6, aVar2.g());
Function2 b7 = aVar2.b();
if (a19.n() || !Intrinsics.d(a19.f(), Integer.valueOf(a17))) {
a19.M(Integer.valueOf(a17));
a19.E(Integer.valueOf(a17), b7);
}
E1.b(a19, e6, aVar2.f());
h1 o3 = b.o(q0Var);
Intrinsics.g(o3, "null cannot be cast to non-null type finance.empower.android.app.WebViewController.WebPageState.ErrorDescription");
p0.z0.b(((h1.b) o3).a(), (androidx.compose.ui.e) null, 0L, 0L, (w) null, (q1.B) null, (q1.l) null, 0L, (k) null, (w1.j) null, 0L, 0, false, 0, 0, (Function1) null, (W) null, lVar, 0, 0, 131070);
lVar.S();
lVar.L();
} else {
if (!Intrinsics.d(o, h1.a.a)) {
lVar.V(-2004685554);
lVar.L();
throw new NoWhenBranchMatchedException();
}
lVar.V(-2014075212);
lVar.L();
}
lVar.S();
lVar.S();
lVar.S();
if (o.H()) {
o.P();
}
}
@Override
public Object e(Object obj, Object obj2, Object obj3) {
c((X.B) obj, (l) obj2, ((Number) obj3).intValue());
return Unit.a;
}
}
public static final class h {
private final String a;
private final String b;
public h(String title, String url) {
Intrinsics.checkNotNullParameter(title, "title");
Intrinsics.checkNotNullParameter(url, "url");
this.a = title;
this.b = url;
}
public final String a() {
return this.a;
}
public final String b() {
return this.b;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof h)) {
return false;
}
h hVar = (h) obj;
return Intrinsics.d(this.a, hVar.a) && Intrinsics.d(this.b, hVar.b);
}
public int hashCode() {
return (this.a.hashCode() * 31) + this.b.hashCode();
}
public String toString() {
return "WebViewText(title=" + this.a + ", url=" + this.b + ")";
}
}
private b() {
}
public static final WebView g(q0 q0Var) {
return (WebView) q0Var.getValue();
}
private static final void h(q0 q0Var, WebView webView) {
q0Var.setValue(webView);
}
public static final K i(q0 q0Var, L DisposableEffect) {
Intrinsics.checkNotNullParameter(DisposableEffect, "$this$DisposableEffect");
return new C0494b(q0Var);
}
public static final WebView j(String str, Function1 function1, q0 q0Var, Context context) {
Intrinsics.checkNotNullParameter(context, "context");
WebView webView = new WebView(context);
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);
settings.setLoadWithOverviewMode(true);
settings.setUseWideViewPort(true);
settings.setSupportZoom(true);
settings.setAllowFileAccess(true);
settings.setAllowContentAccess(true);
settings.setMixedContentMode(0);
webView.setWebViewClient(new a(str, function1));
h(q0Var, webView);
webView.loadUrl(str);
return webView;
}
public static final Unit k(b bVar, String str, Function1 function1, androidx.compose.ui.e eVar, int i, int i2, l lVar, int i3) {
bVar.f(str, function1, eVar, lVar, L0.a(i | 1), i2);
return Unit.a;
}
public static final Unit m(b bVar, c cVar, androidx.compose.ui.e eVar, int i, int i2, l lVar, int i3) {
bVar.l(cVar, eVar, lVar, L0.a(i | 1), i2);
return Unit.a;
}
public static final h1 o(q0 q0Var) {
return (h1) q0Var.getValue();
}
public static final void p(q0 q0Var, h1 h1Var) {
q0Var.setValue(h1Var);
}
public static final Unit q(b bVar, h hVar, d dVar, androidx.compose.ui.e eVar, int i, int i2, l lVar, int i3) {
bVar.n(hVar, dVar, eVar, lVar, L0.a(i | 1), i2);
return Unit.a;
}
public boolean equals(Object obj) {
return this == obj || (obj instanceof b);
}
public final void f(final String url, final Function1 onStateChanged, androidx.compose.ui.e eVar, l lVar, final int i, final int i2) {
int i3;
Intrinsics.checkNotNullParameter(url, "url");
Intrinsics.checkNotNullParameter(onStateChanged, "onStateChanged");
l t = lVar.t(-720484098);
if ((i2 & 1) != 0) {
i3 = i | 6;
} else if ((i & 6) == 0) {
i3 = (t.U(url) ? 4 : 2) | i;
} else {
i3 = i;
}
if ((i2 & 2) != 0) {
i3 |= 48;
} else if ((i & 48) == 0) {
i3 |= t.l(onStateChanged) ? 32 : 16;
}
int i4 = i2 & 4;
if (i4 != 0) {
i3 |= 384;
} else if ((i & 384) == 0) {
i3 |= t.U(eVar) ? 256 : 128;
}
if ((i3 & 147) == 146 && t.w()) {
t.F();
} else {
if (i4 != 0) {
eVar = androidx.compose.ui.e.a;
}
if (o.H()) {
o.Q(-720484098, i3, -1, "finance.empower.android.app.web.UiWebViewScreen.CustomWebView (UiWebViewScreen.kt:151)");
}
t.V(-631866229);
Object f2 = t.f();
l.a aVar = l.a;
if (f2 == aVar.a()) {
f2 = o1.i((Object) null, (n1) null, 2, (Object) null);
t.M(f2);
}
final q0 q0Var = (q0) f2;
t.L();
Unit unit = Unit.a;
t.V(-631863756);
Object f3 = t.f();
if (f3 == aVar.a()) {
f3 = new Function1() {
@Override
public final Object invoke(Object obj) {
K i5;
i5 = finance.empower.android.app.web.b.i(q0Var, (L) obj);
return i5;
}
};
t.M(f3);
}
t.L();
O.c(unit, (Function1) f3, t, 54);
t.V(-631856260);
boolean z = ((i3 & 14) == 4) | ((i3 & 112) == 32);
Object f4 = t.f();
if (z || f4 == aVar.a()) {
f4 = new Function1() {
@Override
public final Object invoke(Object obj) {
WebView j;
j = finance.empower.android.app.web.b.j(url, onStateChanged, q0Var, (Context) obj);
return j;
}
};
t.M(f4);
}
t.L();
androidx.compose.ui.viewinterop.f.b((Function1) f4, eVar, (Function1) null, t, (i3 >> 3) & 112, 4);
if (o.H()) {
o.P();
}
}
final androidx.compose.ui.e eVar2 = eVar;
X0 B = t.B();
if (B != null) {
B.a(new Function2() {
@Override
public final Object invoke(Object obj, Object obj2) {
Unit k;
k = finance.empower.android.app.web.b.k(finance.empower.android.app.web.b.this, url, onStateChanged, eVar2, i, i2, (l) obj, ((Integer) obj2).intValue());
return k;
}
});
}
}
public int hashCode() {
return 1004854406;
}
public final void l(final finance.empower.android.app.web.b.c r16, androidx.compose.ui.e r17, s0.l r18, final int r19, final int r20) {
throw new UnsupportedOperationException("Method not decompiled: finance.empower.android.app.web.b.l(finance.empower.android.app.web.b$c, androidx.compose.ui.e, s0.l, int, int):void");
}
public final void n(final finance.empower.android.app.web.b.h r22, final finance.empower.android.app.web.b.d r23, androidx.compose.ui.e r24, s0.l r25, final int r26, final int r27) {
throw new UnsupportedOperationException("Method not decompiled: finance.empower.android.app.web.b.n(finance.empower.android.app.web.b$h, finance.empower.android.app.web.b$d, androidx.compose.ui.e, s0.l, int, int):void");
}
public String toString() {
return "UiWebViewScreen";
}
}