正在查看: Oolka v2.4.42 应用的 p2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 p2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package one.upswing.sdk;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.CookieManager;
import android.webkit.ValueCallback;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleCoroutineScope;
import in.juspay.hyper.constants.Labels;
import java.lang.ref.WeakReference;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.MapsKt__MapsJVMKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlin.text.StringsKt__StringsKt;
import one.upswing.sdk.location.UpswingGpsHelper;
import one.upswing.sdk.partner.UpswingTheme;
import one.upswing.sdk.webviewcore.webclient.WebViewErrorData;
import one.upswing.sdk.yesbank.data.JsResponseYesBankDeviceToken;
import one.upswing.sdk.yesbank.data.YesBankDeviceTokenResponse;
import one.upswing.sdk.yesbank.data.YesBankErrorResponse;
import one.upswing.sdk.yesbank.data.YesBankRequestDataWrapper;
import org.apache.commons.io.IOUtils;
@Metadata
@SourceDebugExtension({"SMAP\nUpswingWebViewFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UpswingWebViewFragment.kt\none/upswing/sdk/ui/UpswingWebViewFragment\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,721:1\n37#2,2:722\n*S KotlinDebug\n*F\n+ 1 UpswingWebViewFragment.kt\none/upswing/sdk/ui/UpswingWebViewFragment\n*L\n139#1:722,2\n*E\n"})
public final class p2 extends Fragment {
public static final int M = 0;
public c A;
public e0 B;
public int C;
public one.upswing.sdk.util.b D;
public UpswingGpsHelper E;
public r1 F;
public final kotlin.e G;
public final ActivityResultLauncher H;
public final ActivityResultLauncher I;
public final ActivityResultLauncher J;
public final ActivityResultLauncher K;
public final ActivityResultLauncher L;
public final String d = "https://webapp.upswing.one";
public final String e = "UpswingWebViewFragment";
public final List f;
public o6 g;
public m5 h;
public f3 i;
public b0 j;
public s k;
public WebView l;
public LinearLayout o;
public TextView p;
public Button q;
public LinearLayout r;
public String s;
public org.bouncycastle.crypto.params.l0 t;
public org.bouncycastle.crypto.params.m0 u;
public c3 v;
public YesBankRequestDataWrapper w;
public boolean x;
public ValueCallback y;
public v5 z;
public p2() {
List listOf;
kotlin.e lazy;
listOf = CollectionsKt__CollectionsKt.listOf((Object[]) new Integer[]{-6, -2});
this.f = listOf;
lazy = LazyKt__LazyJVMKt.lazy(new e4(this));
this.G = lazy;
this.H = registerForActivityResult(new n1(), new androidx.activity.result.a() {
public final void a(Object obj) {
p2.v(p2.this, (m1) obj);
}
});
this.I = registerForActivityResult(new ActivityResultContracts.PickMultipleVisualMedia(0, 1, (DefaultConstructorMarker) null), new androidx.activity.result.a() {
public final void a(Object obj) {
p2.u(p2.this, (List) obj);
}
});
this.J = registerForActivityResult(new ActivityResultContracts.StartIntentSenderForResult(), new androidx.activity.result.a() {
public final void a(Object obj) {
p2.t(p2.this, (ActivityResult) obj);
}
});
this.K = registerForActivityResult(new H(), new androidx.activity.result.a() {
public final void a(Object obj) {
p2.w(p2.this, (w2) obj);
}
});
this.L = registerForActivityResult(new C0082e1(), new androidx.activity.result.a() {
public final void a(Object obj) {
p2.B(p2.this, (w2) obj);
}
});
}
public static final void B(p2 p2Var, w2 w2Var) {
b0 b0Var = null;
YesBankRequestDataWrapper yesBankRequestDataWrapper = null;
if (w2Var instanceof n6) {
Objects.toString(((n6) w2Var).a);
p2Var.x = true;
YesBankRequestDataWrapper yesBankRequestDataWrapper2 = p2Var.w;
if (yesBankRequestDataWrapper2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("mYesBankRequestDataWrapper");
} else {
yesBankRequestDataWrapper = yesBankRequestDataWrapper2;
}
p2Var.y(yesBankRequestDataWrapper);
return;
}
if (w2Var instanceof k6) {
k6 k6Var = (k6) w2Var;
Objects.toString(k6Var.a);
b0 b0Var2 = p2Var.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var2;
}
b0Var.b(k6Var.a);
}
}
public static final void s(Function0 function0, View view) {
function0.invoke();
}
public static final void t(p2 p2Var, ActivityResult activityResult) {
b0 b0Var = null;
if (activityResult.b() == -1) {
p2Var.requireContext();
b0 b0Var2 = p2Var.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var2;
}
b0Var.a("GPS enabled by the user", true);
return;
}
b0 b0Var3 = p2Var.j;
if (b0Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var3;
}
b0Var.a("User denied GPS enable request", false);
p2Var.requireContext();
}
public static final void u(p2 p2Var, List list) {
List list2 = list;
if (list2.isEmpty()) {
ValueCallback valueCallback = p2Var.y;
if (valueCallback != null) {
valueCallback.onReceiveValue(null);
return;
}
return;
}
ValueCallback valueCallback2 = p2Var.y;
if (valueCallback2 != null) {
valueCallback2.onReceiveValue(list2.toArray(new Uri[0]));
}
}
public static final void v(p2 p2Var, m1 m1Var) {
b0 b0Var = p2Var.j;
if (b0Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var = null;
}
((i0) ((g2) b0Var.d.getValue())).b(k0.t, b0Var.c.toJson(""));
}
public static final void w(p2 p2Var, w2 w2Var) {
b0 b0Var = null;
if (w2Var instanceof n6) {
n6 n6Var = (n6) w2Var;
Objects.toString(n6Var.a);
b0 b0Var2 = p2Var.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var2;
}
YesBankDeviceTokenResponse yesBankDeviceTokenResponse = (YesBankDeviceTokenResponse) n6Var.a;
boolean z = p2Var.x;
b0Var.getClass();
String json = b0Var.c.toJson(new JsResponseYesBankDeviceToken("SUCCESS", yesBankDeviceTokenResponse.getStatusCode(), yesBankDeviceTokenResponse.getDeviceToken(), yesBankDeviceTokenResponse.getYppReferenceNumber(), z, yesBankDeviceTokenResponse.getResult()));
((i0) ((g2) b0Var.d.getValue())).b(k0.e, json);
p2Var.x = false;
return;
}
if (w2Var instanceof k6) {
k6 k6Var = (k6) w2Var;
Objects.toString(k6Var.a);
if (!Intrinsics.areEqual(k6Var.a.getStatusCode(), "DB009")) {
b0 b0Var3 = p2Var.j;
if (b0Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var3;
}
b0Var.b(k6Var.a);
return;
}
ActivityResultLauncher activityResultLauncher = p2Var.L;
?? r10 = p2Var.w;
if (r10 == 0) {
Intrinsics.throwUninitializedPropertyAccessException("mYesBankRequestDataWrapper");
} else {
b0Var = r10;
}
activityResultLauncher.b(b0Var);
}
}
public static final boolean z(View view) {
return true;
}
public final String A() {
WebSettings settings;
String userAgentString;
WebView webView = this.l;
return (webView == null || (settings = webView.getSettings()) == null || (userAgentString = settings.getUserAgentString()) == null) ? "NA" : userAgentString;
}
public final void C() {
b0 b0Var;
c cVar;
WebSettings settings;
WebView webView = this.l;
if (webView != null && (settings = webView.getSettings()) != null) {
settings.setJavaScriptEnabled(true);
settings.setAllowFileAccess(false);
settings.setAllowContentAccess(false);
settings.setDomStorageEnabled(true);
settings.setGeolocationEnabled(true);
settings.setMediaPlaybackRequiresUserGesture(false);
}
WebView webView2 = this.l;
if (webView2 != null) {
Context requireContext = requireContext();
b0 b0Var2 = this.j;
m5 m5Var = null;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var = null;
} else {
b0Var = b0Var2;
}
l4 l4Var = new l4(this);
o4 o4Var = new o4(this);
c cVar2 = this.A;
if (cVar2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingCrashMonitor");
cVar = null;
} else {
cVar = cVar2;
}
webView2.setWebViewClient(new t3(requireContext, b0Var, l4Var, o4Var, cVar));
webView2.setWebChromeClient(new l3(new h4(this), new h6(new WeakReference(requireActivity()))));
m5 m5Var2 = this.h;
if (m5Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("jsEntryPoint");
} else {
m5Var = m5Var2;
}
webView2.addJavascriptInterface(m5Var, "AndroidBridge");
webView2.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public final boolean onLongClick(View view) {
return p2.z(view);
}
});
webView2.setLongClickable(false);
webView2.setHapticFeedbackEnabled(false);
}
WebView.setWebContentsDebuggingEnabled(false);
CookieManager.getInstance().setAcceptThirdPartyCookies(this.l, true);
}
public final void D() {
int parseColor;
int parseColor2;
int parseColor3;
int parseColor4;
UpswingTheme p = p();
c3 c3Var = this.v;
c3 c3Var2 = null;
if (c3Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var = null;
}
try {
parseColor = Color.parseColor(q4.a(((j3) c3Var).e(), p, v4.a));
} catch (IllegalArgumentException unused) {
parseColor = Color.parseColor("#373084");
}
c3 c3Var3 = this.v;
if (c3Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var3 = null;
}
try {
parseColor2 = Color.parseColor(q4.a(((j3) c3Var3).e(), p, v4.b));
} catch (IllegalArgumentException unused2) {
parseColor2 = Color.parseColor("#FFFFFF");
}
c3 c3Var4 = this.v;
if (c3Var4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var4 = null;
}
try {
parseColor3 = Color.parseColor(q4.a(((j3) c3Var4).e(), p, v4.c));
} catch (IllegalArgumentException unused3) {
parseColor3 = Color.parseColor("#FFFFFF");
}
c3 c3Var5 = this.v;
if (c3Var5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
} else {
c3Var2 = c3Var5;
}
try {
parseColor4 = Color.parseColor(q4.a(((j3) c3Var2).e(), p, v4.d));
} catch (IllegalArgumentException unused4) {
parseColor4 = Color.parseColor("#000000");
}
LinearLayout linearLayout = this.r;
if (linearLayout != null) {
linearLayout.setBackgroundTintList(ColorStateList.valueOf(parseColor3));
}
Button button = this.q;
if (button != null) {
button.setBackgroundTintList(ColorStateList.valueOf(parseColor));
}
Button button2 = this.q;
if (button2 != null) {
button2.setTextColor(ColorStateList.valueOf(parseColor2));
}
TextView textView = this.p;
if (textView != null) {
textView.setTextColor(ColorStateList.valueOf(parseColor4));
}
LinearLayout linearLayout2 = this.o;
if (linearLayout2 != null) {
linearLayout2.setBackgroundTintList(ColorStateList.valueOf(parseColor3));
}
WebView webView = this.l;
if (webView != null) {
webView.setBackgroundColor(parseColor3);
}
}
public final void E() {
Map mapOf;
Map mapOf2;
Map mapOf3;
int i = x3.a[p().ordinal()];
b0 b0Var = null;
if (i == 1) {
b0 b0Var2 = this.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var2;
}
b0Var.getClass();
mapOf = MapsKt__MapsJVMKt.mapOf(kotlin.k.a("activeThemeMode", "LIGHT"));
((i0) ((g2) b0Var.d.getValue())).b(k0.s, b0Var.c.toJson(mapOf));
return;
}
if (i != 2) {
b0 b0Var3 = this.j;
if (b0Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var3;
}
b0Var.getClass();
mapOf3 = MapsKt__MapsJVMKt.mapOf(kotlin.k.a("activeThemeMode", "LIGHT"));
((i0) ((g2) b0Var.d.getValue())).b(k0.s, b0Var.c.toJson(mapOf3));
return;
}
b0 b0Var4 = this.j;
if (b0Var4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var4;
}
b0Var.getClass();
mapOf2 = MapsKt__MapsJVMKt.mapOf(kotlin.k.a("activeThemeMode", "DARK"));
((i0) ((g2) b0Var.d.getValue())).b(k0.s, b0Var.c.toJson(mapOf2));
}
public final void onAttach(Context context) {
super.onAttach(context);
requireActivity().setRequestedOrientation(1);
}
public final void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
E();
D();
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.D = new one.upswing.sdk.util.b(requireActivity(), requireActivity().getActivityResultRegistry());
Lifecycle lifecycle = getLifecycle();
one.upswing.sdk.util.b bVar = this.D;
if (bVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("biometricAuthLifecycleObserverProvider");
bVar = null;
}
lifecycle.a(bVar.a);
}
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(i2.f, viewGroup, false);
}
public final void onDestroyView() {
super.onDestroyView();
WebView webView = this.l;
if (webView != null) {
webView.destroy();
}
this.l = null;
this.o = null;
this.p = null;
this.q = null;
this.r = null;
}
public final void onDetach() {
super.onDetach();
requireActivity().setRequestedOrientation(-1);
}
public final void onResume() {
super.onResume();
b0 b0Var = this.j;
if (b0Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var = null;
}
((i0) ((g2) b0Var.d.getValue())).b(k0.o, "{}");
}
public final void onStop() {
super.onStop();
f3 f3Var = this.i;
if (f3Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("smsUtil");
f3Var = null;
}
if (f3Var.e) {
f3Var.a.unregisterReceiver(f3Var.f);
f3Var.a.unregisterReceiver(f3Var.g);
f3Var.e = false;
}
}
public final void onViewCreated(View view, Bundle bundle) {
s sVar;
c3 c3Var;
o6 o6Var;
b0 b0Var;
v5 v5Var;
one.upswing.sdk.util.b bVar;
f3 f3Var;
UpswingGpsHelper upswingGpsHelper;
r1 r1Var;
String str;
boolean equals$default;
super.onViewCreated(view, bundle);
this.v = (c3) j3.f.a(requireContext().getApplicationContext());
this.A = (c) c.b.a(requireContext().getApplicationContext());
this.B = (e0) e0.c.a(requireContext().getApplicationContext());
this.l = (WebView) requireView().findViewById(h2.h);
LinearLayout linearLayout = (LinearLayout) requireView().findViewById(h2.c);
this.o = linearLayout;
this.p = linearLayout != null ? (TextView) linearLayout.findViewById(h2.d) : null;
LinearLayout linearLayout2 = this.o;
this.q = linearLayout2 != null ? (Button) linearLayout2.findViewById(h2.f) : null;
LinearLayout linearLayout3 = this.o;
TextView textView = linearLayout3 != null ? (TextView) linearLayout3.findViewById(h2.b) : null;
if (textView != null) {
textView.setVisibility(8);
}
this.r = (LinearLayout) requireView().findViewById(h2.i);
this.E = new UpswingGpsHelper(getViewLifecycleOwner(), requireActivity(), new h5(this));
this.j = new b0(this, this.l);
this.g = new o6(requireActivity());
c3 c3Var2 = this.v;
if (c3Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var2 = null;
}
this.k = new s(this, c3Var2);
b0 b0Var2 = this.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var2 = null;
}
((i0) ((g2) b0Var2.d.getValue())).b(k0.m, "{}");
c cVar = this.A;
if (cVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingCrashMonitor");
cVar = null;
}
String str2 = this.d;
c3 c3Var3 = this.v;
if (c3Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var3 = null;
}
this.z = new v5(cVar, str2, ((j3) c3Var3).d());
FragmentActivity requireActivity = requireActivity();
b0 b0Var3 = this.j;
if (b0Var3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var3 = null;
}
this.i = new f3(requireActivity, b0Var3);
FragmentActivity requireActivity2 = requireActivity();
s sVar2 = this.k;
if (sVar2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("permissionUtil");
sVar2 = null;
}
this.F = new r1(requireActivity2, sVar2);
FragmentActivity requireActivity3 = requireActivity();
s sVar3 = this.k;
if (sVar3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("permissionUtil");
sVar = null;
} else {
sVar = sVar3;
}
c3 c3Var4 = this.v;
if (c3Var4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var = null;
} else {
c3Var = c3Var4;
}
o6 o6Var2 = this.g;
if (o6Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("deviceInfo");
o6Var = null;
} else {
o6Var = o6Var2;
}
LifecycleCoroutineScope a = androidx.lifecycle.o.a(this);
b0 b0Var4 = this.j;
if (b0Var4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var = null;
} else {
b0Var = b0Var4;
}
v5 v5Var2 = this.z;
if (v5Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("jsInterfaceProxy");
v5Var = null;
} else {
v5Var = v5Var2;
}
one.upswing.sdk.util.b bVar2 = this.D;
if (bVar2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("biometricAuthLifecycleObserverProvider");
bVar = null;
} else {
bVar = bVar2;
}
f3 f3Var2 = this.i;
if (f3Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("smsUtil");
f3Var = null;
} else {
f3Var = f3Var2;
}
r rVar = (r) this.G.getValue();
UpswingGpsHelper upswingGpsHelper2 = this.E;
if (upswingGpsHelper2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("gpsHelper");
upswingGpsHelper = null;
} else {
upswingGpsHelper = upswingGpsHelper2;
}
r1 r1Var2 = this.F;
if (r1Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingLocationManager");
r1Var = null;
} else {
r1Var = r1Var2;
}
this.h = new m5(requireActivity3, this, sVar, c3Var, o6Var, a, b0Var, v5Var, bVar, f3Var, rVar, upswingGpsHelper, r1Var);
D();
C();
c3 c3Var5 = this.v;
if (c3Var5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var5 = null;
}
if (!StringsKt__StringsKt.isBlank(((m2) ((u2) ((j3) c3Var5).b.getValue())).a("pvtKey"))) {
c3 c3Var6 = this.v;
if (c3Var6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var6 = null;
}
j3 j3Var = (j3) c3Var6;
j3Var.getClass();
org.bouncycastle.crypto.params.l0 l0Var = new org.bouncycastle.crypto.params.l0(z6.d(((m2) ((u2) j3Var.b.getValue())).a("pvtKey")), 0);
this.t = l0Var;
this.u = l0Var.g();
}
m5 m5Var = this.h;
if (m5Var == null) {
Intrinsics.throwUninitializedPropertyAccessException("jsEntryPoint");
m5Var = null;
}
if (m5Var.isDeviceRooted()) {
c cVar2 = this.A;
if (cVar2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingCrashMonitor");
cVar2 = null;
}
cVar2.a.b();
r("Rooted device not supported", "Go back", new b4(this));
} else {
Bundle arguments = getArguments();
boolean z = arguments != null ? arguments.getBoolean("is_fromDeep_link", false) : false;
String string = arguments != null ? arguments.getString("deep_link_action") : null;
if (arguments == null || (str = arguments.getString("deep_link_web_route")) == null) {
str = "pciInput";
}
b0 b0Var5 = this.j;
if (b0Var5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
b0Var5 = null;
}
((i0) ((g2) b0Var5.d.getValue())).b(k0.n, "{}");
c3 c3Var7 = this.v;
if (c3Var7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("sharedPreferenceStore");
c3Var7 = null;
}
String d = ((j3) c3Var7).d();
if (z) {
equals$default = StringsKt__StringsJVMKt.equals$default(string, Labels.Android.WEBVIEW, false, 2, null);
if (equals$default) {
WebView webView = this.l;
if (webView != null) {
webView.loadUrl(this.d + IOUtils.DIR_SEPARATOR_UNIX + str);
}
}
}
String str3 = "pciInput?partnerCode=" + d;
WebView webView2 = this.l;
if (webView2 != null) {
webView2.loadUrl(this.d + IOUtils.DIR_SEPARATOR_UNIX + str3);
}
}
try {
requireActivity().getOnBackPressedDispatcher().i(getViewLifecycleOwner(), new u4(this));
} catch (Exception e) {
e.getMessage();
}
}
public final one.upswing.sdk.partner.UpswingTheme p() {
throw new UnsupportedOperationException("Method not decompiled: one.upswing.sdk.p2.p():one.upswing.sdk.partner.UpswingTheme");
}
public final void q(String str) {
WebView webView = this.l;
if (webView != null) {
webView.loadUrl("javascript:document.open();document.close();");
}
WebView webView2 = this.l;
if (webView2 != null) {
webView2.loadUrl(str);
}
}
public final void r(String str, String str2, final Function0 function0) {
WebView webView = this.l;
if (webView != null) {
webView.setVisibility(8);
}
LinearLayout linearLayout = this.o;
if (linearLayout != null) {
linearLayout.setVisibility(0);
}
TextView textView = this.p;
if (textView != null) {
textView.setText(str);
}
Button button = this.q;
if (button != null) {
button.setText(str2);
}
Button button2 = this.q;
if (button2 != null) {
button2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
p2.s(Function0.this, view);
}
});
}
}
public final void x(WebViewErrorData webViewErrorData) {
c cVar = this.A;
if (cVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingCrashMonitor");
cVar = null;
}
cVar.a.b("onReceivedError-> error code: " + webViewErrorData.getErrorCode() + ", errorDesc: " + webViewErrorData.getErrorDesc() + " , url: " + webViewErrorData.getCurrentUrl());
}
public final void y(YesBankRequestDataWrapper yesBankRequestDataWrapper) {
Objects.toString(yesBankRequestDataWrapper);
b0 b0Var = null;
try {
this.w = yesBankRequestDataWrapper;
ActivityResultLauncher activityResultLauncher = this.K;
if (yesBankRequestDataWrapper == null) {
Intrinsics.throwUninitializedPropertyAccessException("mYesBankRequestDataWrapper");
yesBankRequestDataWrapper = null;
}
activityResultLauncher.b(yesBankRequestDataWrapper);
} catch (Exception e) {
e.getMessage();
c cVar = this.A;
if (cVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("upswingCrashMonitor");
cVar = null;
}
cVar.a.c(e);
b0 b0Var2 = this.j;
if (b0Var2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("publishEventHandler");
} else {
b0Var = b0Var2;
}
String message = e.getMessage();
Intrinsics.checkNotNull(message);
b0Var.b(new YesBankErrorResponse(message, ""));
}
}
}