正在查看: Bhakti v5.4.0 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Bhakti v5.4.0 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package yg;
import Ag.j;
import Bg.d;
import Bg.f;
import Ic.C0;
import Je.t;
import Ug.a;
import Ug.c;
import Yf.e;
import Zf.i;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.webkit.JavascriptInterface;
import com.smartlook.android.core.BWDH.igLdNtYIwz;
import com.vlv.aravali.network.data.mDsu.rpdvnbM;
import com.vlv.aravali.views.activities.B;
import java.util.LinkedHashMap;
import java.util.Locale;
import kotlin.collections.S;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import mf.h;
import nf.F;
import org.json.JSONArray;
import org.json.JSONObject;
import qg.b0;
public final class g {
public final Activity f594a;
public final j f595b;
public final View c;
public final F d;
public final B e;
public final Context f;
public final String g;
public g(Activity activity, j jVar, View view, F f) {
Intrinsics.checkNotNullParameter(activity, "activity");
Intrinsics.checkNotNullParameter(jVar, "payload");
Intrinsics.checkNotNullParameter(f, "sdkInstance");
this.f594a = activity;
this.f595b = jVar;
this.c = view;
this.d = f;
this.e = new B(activity, f);
this.f = activity.getApplicationContext();
this.g = f.a.a;
}
public static LinkedHashMap b(String str) {
if (!b0.n(str) || str == null || StringsKt.H(str)) {
return null;
}
return S.m(e.S(new JSONObject(str)));
}
public final void a(a aVar) {
View view = this.c;
if (view == null) {
return;
}
this.e.q(view, aVar, this.f595b);
}
@JavascriptInterface
public final void call(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 0), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
a(new Bg.a(Vg.a.CALL, str));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 0), 4);
}
}
@JavascriptInterface
public final void copyText(String str, String str2) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new c(this, str, str2, 0), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Vg.a aVar = Vg.a.COPY_TEXT;
if (!b0.n(str2)) {
str2 = null;
}
a(new d(aVar, str2, str));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 1), 4);
}
}
@JavascriptInterface
public final void customAction(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 1), 7);
if (b0.n(str)) {
a(new Ug.b(Vg.a.CUSTOM_ACTION, b(str)));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 2), 4);
}
}
@JavascriptInterface
public final void dismissMessage() {
try {
this.f594a.runOnUiThread(new y3.d(this, 2));
} catch (Throwable th) {
h.a(this.d.d, 1, th, (Function0) null, new b(this, 3), 4);
}
}
@JavascriptInterface
public final void navigateToNotificationSettings() {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new b(this, 4), 7);
Vg.a aVar = Vg.a.NAVIGATE_SETTINGS_NOTIFICATIONS;
Intrinsics.checkNotNullParameter(aVar, "actionType");
a(new f(aVar));
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 5), 4);
}
}
@JavascriptInterface
public final void navigateToScreen(String str, String str2) {
F f = this.d;
if (str != null) {
try {
if (!StringsKt.H(str) && b0.n(str)) {
a(new c(Vg.a.NAVIGATE, Vg.c.SCREEN, str, b(str2)));
return;
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 6), 4);
return;
}
}
h.a(f.d, 1, (Throwable) null, (Function0) null, new a(this, str, 2), 6);
}
@JavascriptInterface
public final void openDeepLink(String str, String str2) {
F f = this.d;
if (str != null) {
try {
if (!StringsKt.H(str) && b0.n(str)) {
a(new c(Vg.a.NAVIGATE, Vg.c.DEEP_LINKING, str, b(str2)));
return;
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 7), 4);
return;
}
}
h.a(f.d, 1, (Throwable) null, (Function0) null, new a(this, str, 3), 6);
}
@JavascriptInterface
public final void openRichLanding(String str, String str2) {
F f = this.d;
if (str != null) {
try {
if (!StringsKt.H(str) && b0.n(str)) {
a(new c(Vg.a.NAVIGATE, Vg.c.RICH_LANDING, str, b(str2)));
return;
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 8), 4);
return;
}
}
h.a(f.d, 1, (Throwable) null, (Function0) null, new a(this, str, 4), 6);
}
@JavascriptInterface
public final void openWebURL(String str, String str2) {
F f = this.d;
if (str != null) {
try {
if (!StringsKt.H(str) && b0.n(str)) {
a(new c(Vg.a.NAVIGATE, Vg.c.DEEP_LINKING, str, b(str2)));
return;
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 9), 4);
return;
}
}
h.a(f.d, 1, (Throwable) null, (Function0) null, new a(this, str, 5), 6);
}
@JavascriptInterface
public final void requestNotificationPermission() {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new b(this, 10), 7);
a(new Ug.d(Vg.a.REQUEST_NOTIFICATION_PERMISSION, -1));
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 11), 4);
}
}
@JavascriptInterface
public final void setAlias(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 6), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "alias");
Intrinsics.checkNotNullParameter(str2, "appId");
F c = t.c(str2);
if (c == null) {
return;
}
Ea.h.r(context, str, c);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 12), 4);
}
}
@JavascriptInterface
public final void setBirthDate(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 7), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
Ea.h.z(context, "USER_ATTRIBUTE_USER_BDAY", str, this.g);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 13), 4);
}
}
@JavascriptInterface
public final void setFirstName(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 9), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "value");
Intrinsics.checkNotNullParameter(str2, "appId");
Ea.h.w(context, "USER_ATTRIBUTE_USER_FIRST_NAME", str, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 15), 4);
}
}
@JavascriptInterface
public final void setGender(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 10), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
Locale locale = Locale.ROOT;
String upperCase = str.toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
i valueOf = i.valueOf(upperCase);
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(valueOf, "gender");
Intrinsics.checkNotNullParameter(str2, "appId");
String lowerCase = valueOf.toString().toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
Ea.h.w(context, "USER_ATTRIBUTE_USER_GENDER", lowerCase, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 16), 4);
}
}
@JavascriptInterface
public final void setLastName(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 11), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "value");
Intrinsics.checkNotNullParameter(str2, "appId");
Ea.h.w(context, "USER_ATTRIBUTE_USER_LAST_NAME", str, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 17), 4);
}
}
@JavascriptInterface
public final void setMobileNumber(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 12), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "value");
Intrinsics.checkNotNullParameter(str2, "appId");
if (StringsKt.H(str)) {
return;
}
Ea.h.w(context, "USER_ATTRIBUTE_USER_MOBILE", str, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 18), 4);
}
}
@JavascriptInterface
public final void setUniqueId(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 13), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "uniqueId");
Intrinsics.checkNotNullParameter(str2, "appId");
F c = t.c(str2);
if (c == null) {
return;
}
Ea.h.v(context, str, c);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 19), 4);
}
}
@JavascriptInterface
public final void setUserAttribute(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 14), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && b0.o(str)) {
JSONObject jSONObject = new JSONObject(str);
String string = jSONObject.getString("name");
Object obj = jSONObject.get("value");
boolean z = true;
if (!(obj instanceof Integer ? true : obj instanceof Boolean ? true : obj instanceof Double ? true : obj instanceof Float ? true : obj instanceof Long ? true : obj instanceof String ? true : obj instanceof JSONObject)) {
z = obj instanceof JSONArray;
}
if (!z) {
h.a(f.d, 1, (Throwable) null, (Function0) null, new d(this, string, obj, 0), 6);
return;
}
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
Intrinsics.e(string);
Ea.h.w(context, string, obj, f.a.a);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 20), 4);
}
}
@JavascriptInterface
public final void setUserAttributeDate(String str, String str2) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new c(this, str, str2, 1), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && str2 != null && !StringsKt.H(str2) && b0.n(str2)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
Ea.h.z(context, str, str2, this.g);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 21), 4);
}
}
@JavascriptInterface
public final void setUserAttributeLocation(String str) {
JSONObject jSONObject;
String string;
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 15), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && (string = (jSONObject = new JSONObject(str)).getString("name")) != null && !StringsKt.H(string) && b0.n(string)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
Ea.h.w(context, string, new Zf.d(jSONObject.getDouble("latitude"), jSONObject.getDouble("longitude")), this.g);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 22), 4);
}
}
@JavascriptInterface
public final void setUserName(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 17), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "value");
Intrinsics.checkNotNullParameter(str2, "appId");
Ea.h.w(context, "USER_ATTRIBUTE_USER_NAME", str, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 24), 4);
}
}
@JavascriptInterface
public final void share(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 18), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
a(new Bg.i(Vg.a.SHARE, str));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 25), 4);
}
}
@JavascriptInterface
public final void sms(String str, String str2) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new c(this, str, str2, 2), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && str2 != null && !StringsKt.H(str2) && b0.n(str2)) {
a(new Bg.j(Vg.a.SMS, str, str2));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 26), 4);
}
}
@JavascriptInterface
public final void trackClick(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 19), 7);
if (b0.o(str)) {
Object opt = (str != null ? new JSONObject(str) : new JSONObject()).opt("widgetId");
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
j jVar = this.f595b;
C0.e0(context, f, new uo.a(((Ag.f) jVar).f, ((Ag.f) jVar).a, ((Ag.f) jVar).b), opt);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 27), 4);
}
}
@JavascriptInterface
public final void trackDismiss(String str) {
F f = this.d;
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 20), 7);
Object opt = (str != null ? new JSONObject(str) : new JSONObject()).opt("widgetId");
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new b(this, 28), 7);
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
j jVar = this.f595b;
C0.f0(context, f, new uo.a(((Ag.f) jVar).f, ((Ag.f) jVar).a, ((Ag.f) jVar).b), opt);
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 29), 4);
}
}
@JavascriptInterface
public final void trackEvent(String str, String str2, String str3, String str4, boolean z, boolean z2) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new e(this, str, str2, str3, str4, z, z2), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Fe.e i = Wg.a.i(str2, str3, str4, z);
if (z2) {
j jVar = this.f595b;
b0.a(i, ((Ag.f) jVar).a, ((Ag.f) jVar).b, ((Ag.f) jVar).f);
}
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str5 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "eventName");
Intrinsics.checkNotNullParameter(i, "properties");
Intrinsics.checkNotNullParameter(str5, "appId");
F c = t.c(str5);
if (c == null) {
return;
}
c.f.h(new df.e("TRACK_EVENT", false, new Ge.a(c, context, str, i)));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new f(this, 0), 4);
}
}
@JavascriptInterface
public final void trackRating(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 21), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && b0.o(str)) {
double d = new JSONObject(str).getDouble("rating");
Fe.e eVar = new Fe.e();
eVar.c(Double.valueOf(d), "rating");
j jVar = this.f595b;
b0.a(eVar, ((Ag.f) jVar).a, ((Ag.f) jVar).b, ((Ag.f) jVar).f);
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter("MOE_APP_RATED", "eventName");
Intrinsics.checkNotNullParameter(eVar, "properties");
Intrinsics.checkNotNullParameter(str2, "appId");
F c = t.c(str2);
if (c == null) {
return;
}
c.f.h(new df.e("TRACK_EVENT", false, new Ge.a(c, context, "MOE_APP_RATED", eVar)));
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new f(this, 1), 4);
}
}
@JavascriptInterface
public final void setEmailId(String str) {
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 8), 7);
if (str != null && !StringsKt.H(str) && b0.n(str)) {
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, "context");
String str2 = this.g;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(str, "value");
Intrinsics.checkNotNullParameter(str2, "appId");
Ea.h.w(context, igLdNtYIwz.gKLYl, str, str2);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 14), 4);
}
}
@JavascriptInterface
public final void setUserLocation(String str) {
String str2 = rpdvnbM.ochthLOMDKivmh;
F f = this.d;
try {
h.a(f.d, 0, (Throwable) null, (Function0) null, new a(this, str, 16), 7);
if (str != null && !StringsKt.H(str) && b0.n(str) && b0.o(str)) {
JSONObject jSONObject = new JSONObject(str);
Context context = this.f;
Intrinsics.checkNotNullExpressionValue(context, str2);
double d = jSONObject.getDouble("latitude");
double d2 = jSONObject.getDouble("longitude");
String str3 = this.g;
Intrinsics.checkNotNullParameter(context, str2);
Intrinsics.checkNotNullParameter(str3, "appId");
Ea.h.w(context, "last_known_location", new Zf.d(d, d2), str3);
}
} catch (Throwable th) {
h.a(f.d, 1, th, (Function0) null, new b(this, 23), 4);
}
}
}