正在查看: Dostt v1.0.89 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Dostt v1.0.89 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package Cd;
import Aj.o;
import Bc.h;
import Cc.y;
import Ed.l;
import Fd.i;
import Fd.j;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.webkit.JavascriptInterface;
import com.razorpay.rn.RazorpayModule;
import java.util.Locale;
import java.util.Map;
import jd.AbstractC1663d;
import kotlin.jvm.internal.AbstractC1735t;
import kotlin.jvm.internal.r;
import ld.EnumC1753j;
import ld.GeoLocation;
import org.json.JSONArray;
import org.json.JSONObject;
import vd.C1986b;
public final class b {
private final Activity a;
private final l b;
private final View c;
private final y d;
private final String e;
private final f f;
private final C1986b g;
private final Context h;
private final String i;
static final class A extends AbstractC1735t implements gi.a {
A() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setFirstName() : ";
}
}
static final class B extends AbstractC1735t implements gi.a {
final String b;
B(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setGender() : gender: " + this.b;
}
}
static final class C extends AbstractC1735t implements gi.a {
C() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setGender() : ";
}
}
static final class D extends AbstractC1735t implements gi.a {
final String b;
D(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setLastName() : last name: " + this.b;
}
}
static final class E extends AbstractC1735t implements gi.a {
E() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setLastName() : ";
}
}
static final class F extends AbstractC1735t implements gi.a {
final String b;
F(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setMobileNumber() : mobile number: " + this.b;
}
}
static final class G extends AbstractC1735t implements gi.a {
G() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setMobileNumber() : ";
}
}
static final class H extends AbstractC1735t implements gi.a {
final String b;
H(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setUniqueId() : uniqueId: " + this.b;
}
}
static final class I extends AbstractC1735t implements gi.a {
I() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUniqueId() : ";
}
}
static final class J extends AbstractC1735t implements gi.a {
final String b;
J(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setUserAttribute() : userAttrJson: " + this.b;
}
}
static final class K extends AbstractC1735t implements gi.a {
final String b;
final Object c;
K(String str, Object obj) {
super(0);
this.b = str;
this.c = obj;
}
@Override
public final String invoke() {
return b.this.e + " setUserAttribute() : name: " + this.b + " value: " + this.c + ", unsupported data type.";
}
}
static final class L extends AbstractC1735t implements gi.a {
L() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUserAttribute() : ";
}
}
static final class M extends AbstractC1735t implements gi.a {
final String b;
final String c;
M(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return b.this.e + " setUserAttributeDate() : name: " + this.b + ", iso date: " + this.c;
}
}
static final class N extends AbstractC1735t implements gi.a {
N() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUserAttributeDate() : ";
}
}
static final class O extends AbstractC1735t implements gi.a {
final String b;
O(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setUserAttributeLocation() : " + this.b;
}
}
static final class P extends AbstractC1735t implements gi.a {
P() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUserAttributeLocation() : ";
}
}
static final class Q extends AbstractC1735t implements gi.a {
final String b;
Q(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setUserLocation() : " + this.b;
}
}
static final class R extends AbstractC1735t implements gi.a {
R() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUserLocation() : ";
}
}
static final class S extends AbstractC1735t implements gi.a {
final String b;
S(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setUserName() : username: " + this.b;
}
}
static final class T extends AbstractC1735t implements gi.a {
T() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setUserName() : ";
}
}
static final class U extends AbstractC1735t implements gi.a {
final String b;
U(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " share() : content: " + this.b;
}
}
static final class V extends AbstractC1735t implements gi.a {
V() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " share() : ";
}
}
static final class W extends AbstractC1735t implements gi.a {
final String b;
final String c;
W(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return b.this.e + " sms() : mobile number: " + this.b + ", message: " + this.c;
}
}
static final class X extends AbstractC1735t implements gi.a {
X() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " sms() : ";
}
}
static final class Y extends AbstractC1735t implements gi.a {
final String b;
Y(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " trackClick() : payload: " + this.b;
}
}
static final class Z extends AbstractC1735t implements gi.a {
Z() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " trackClick() : ";
}
}
static final class C0607a extends AbstractC1735t implements gi.a {
final String b;
C0607a(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " call() : mobile number: " + this.b;
}
}
static final class a0 extends AbstractC1735t implements gi.a {
final String b;
a0(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " trackDismiss() : payload: " + this.b;
}
}
static final class C0008b extends AbstractC1735t implements gi.a {
C0008b() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " call() : ";
}
}
static final class b0 extends AbstractC1735t implements gi.a {
b0() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " trackDismiss() : ";
}
}
static final class C0608c extends AbstractC1735t implements gi.a {
final String b;
final String c;
C0608c(String str, String str2) {
super(0);
this.b = str;
this.c = str2;
}
@Override
public final String invoke() {
return b.this.e + " copyText() : text to copy: " + this.b + ", message: " + this.c;
}
}
static final class c0 extends AbstractC1735t implements gi.a {
c0() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " trackDismiss() : ";
}
}
static final class C0609d extends AbstractC1735t implements gi.a {
C0609d() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " copyText() : ";
}
}
static final class d0 extends AbstractC1735t implements gi.a {
final String b;
final String c;
final String d;
final String e;
final boolean f;
final boolean o;
d0(String str, String str2, String str3, String str4, boolean z, boolean z2) {
super(0);
this.b = str;
this.c = str2;
this.d = str3;
this.e = str4;
this.f = z;
this.o = z2;
}
@Override
public final String invoke() {
return b.this.e + " trackEvent() : eventName: " + this.b + ", generalAttrJson: " + this.c + ", locationAttrJson: " + this.d + ", dateAttrJson: " + this.e + ", isNonInteractive: " + this.f + ", shouldAttachCampaignMeta: " + this.o;
}
}
static final class C0610e extends AbstractC1735t implements gi.a {
final String b;
C0610e(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " customAction() : DataJson: " + this.b;
}
}
static final class e0 extends AbstractC1735t implements gi.a {
e0() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " trackEvent() : ";
}
}
static final class C0611f extends AbstractC1735t implements gi.a {
C0611f() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " customAction() : ";
}
}
static final class f0 extends AbstractC1735t implements gi.a {
final String b;
f0(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " trackRating() : " + this.b;
}
}
static final class C0612g extends AbstractC1735t implements gi.a {
C0612g() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " dismissMessage() : ";
}
}
static final class g0 extends AbstractC1735t implements gi.a {
g0() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " trackRating() : ";
}
}
static final class C0613h extends AbstractC1735t implements gi.a {
C0613h() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " navigateToNotificationSettings() : ";
}
}
static final class C0614i extends AbstractC1735t implements gi.a {
C0614i() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " navigateToNotificationSettings() : ";
}
}
static final class C0615j extends AbstractC1735t implements gi.a {
final String b;
C0615j(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " navigateToScreen() : screenName: " + this.b + " is invalid. Not processing.";
}
}
static final class C0616k extends AbstractC1735t implements gi.a {
C0616k() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " navigateToScreen() : ";
}
}
static final class C0617l extends AbstractC1735t implements gi.a {
final String b;
C0617l(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " openDeepLink() : url: " + this.b + " is invalid. Not processing.";
}
}
static final class C0618m extends AbstractC1735t implements gi.a {
C0618m() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " openDeepLink() : ";
}
}
static final class C0619n extends AbstractC1735t implements gi.a {
final String b;
C0619n(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " openRichLanding() : url: " + this.b + " is invalid. Not processing.";
}
}
static final class C0620o extends AbstractC1735t implements gi.a {
C0620o() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " openRichLanding() : ";
}
}
static final class C0621p extends AbstractC1735t implements gi.a {
final String b;
C0621p(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " openWebURL() : " + this.b + " is invalid. Not processing.";
}
}
static final class C0622q extends AbstractC1735t implements gi.a {
C0622q() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " openWebURL() : ";
}
}
static final class C0623r extends AbstractC1735t implements gi.a {
C0623r() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " requestNotificationPermission() : ";
}
}
static final class C0624s extends AbstractC1735t implements gi.a {
C0624s() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " requestNotificationPermission() : ";
}
}
static final class C0625t extends AbstractC1735t implements gi.a {
final String b;
C0625t(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setAlias() : alias " + this.b;
}
}
static final class C0626u extends AbstractC1735t implements gi.a {
C0626u() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setAlias() : ";
}
}
static final class C0627v extends AbstractC1735t implements gi.a {
final String b;
C0627v(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setBirthDate() : birthdate: " + this.b;
}
}
static final class C0628w extends AbstractC1735t implements gi.a {
C0628w() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setBirthDate() : ";
}
}
static final class C0629x extends AbstractC1735t implements gi.a {
final String b;
C0629x(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setEmailId() : emailId: " + this.b;
}
}
static final class C0630y extends AbstractC1735t implements gi.a {
C0630y() {
super(0);
}
@Override
public final String invoke() {
return b.this.e + " setEmailId() : ";
}
}
static final class C0631z extends AbstractC1735t implements gi.a {
final String b;
C0631z(String str) {
super(0);
this.b = str;
}
@Override
public final String invoke() {
return b.this.e + " setFirstName() : first name: " + this.b;
}
}
public b(Activity activity, l payload, View view, y sdkInstance) {
r.f(activity, "activity");
r.f(payload, "payload");
r.f(sdkInstance, "sdkInstance");
this.a = activity;
this.b = payload;
this.c = view;
this.d = sdkInstance;
this.e = "InApp_8.8.1_HtmlJavaScriptInterface";
this.f = new f();
this.g = new C1986b(activity, sdkInstance);
this.h = activity.getApplicationContext();
this.i = sdkInstance.b().a();
}
public static final void c(b this$0) {
r.f(this$0, "this$0");
this$0.d(new Fd.e(Yd.a.a));
}
private final void d(Xd.a aVar) {
View view = this.c;
if (view == null) {
return;
}
this.g.n(view, aVar, this.b);
}
private final Map e(String str) {
if (!vd.O.x(str) || str == null || o.x(str)) {
return null;
}
return Th.L.x(AbstractC1663d.g0(new JSONObject(str)));
}
@JavascriptInterface
public final void call(String str) {
try {
h.d(this.d.d, 0, null, null, new C0607a(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
d(new Fd.a(Yd.a.f, str));
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0008b(), 4, null);
}
}
@JavascriptInterface
public final void copyText(String str, String str2) {
try {
h.d(this.d.d, 0, null, null, new C0608c(str, str2), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Yd.a aVar = Yd.a.e;
if (!vd.O.x(str2)) {
str2 = null;
}
d(new Fd.d(aVar, str2, str));
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0609d(), 4, null);
}
}
@JavascriptInterface
public final void customAction(String str) {
try {
h.d(this.d.d, 0, null, null, new C0610e(str), 7, null);
if (vd.O.x(str)) {
d(new Xd.b(Yd.a.p, e(str)));
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0611f(), 4, null);
}
}
@JavascriptInterface
public final void dismissMessage() {
try {
this.a.runOnUiThread(new Runnable() {
@Override
public final void run() {
b.c(b.this);
}
});
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0612g(), 4, null);
}
}
@JavascriptInterface
public final void navigateToNotificationSettings() {
try {
h.d(this.d.d, 0, null, null, new C0613h(), 7, null);
d(new Fd.f(Yd.a.t));
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0614i(), 4, null);
}
}
@JavascriptInterface
public final void navigateToScreen(String str, String str2) {
if (str != null) {
try {
if (!o.x(str) && vd.O.x(str)) {
d(new Xd.c(Yd.a.c, Yd.c.a, str, e(str2)));
return;
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0616k(), 4, null);
return;
}
}
h.d(this.d.d, 1, null, null, new C0615j(str), 6, null);
}
@JavascriptInterface
public final void openDeepLink(String str, String str2) {
if (str != null) {
try {
if (!o.x(str) && vd.O.x(str)) {
d(new Xd.c(Yd.a.c, Yd.c.b, str, e(str2)));
return;
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0618m(), 4, null);
return;
}
}
h.d(this.d.d, 1, null, null, new C0617l(str), 6, null);
}
@JavascriptInterface
public final void openRichLanding(String str, String str2) {
if (str != null) {
try {
if (!o.x(str) && vd.O.x(str)) {
d(new Xd.c(Yd.a.c, Yd.c.c, str, e(str2)));
return;
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0620o(), 4, null);
return;
}
}
h.d(this.d.d, 1, null, null, new C0619n(str), 6, null);
}
@JavascriptInterface
public final void openWebURL(String str, String str2) {
if (str != null) {
try {
if (!o.x(str) && vd.O.x(str)) {
d(new Xd.c(Yd.a.c, Yd.c.b, str, e(str2)));
return;
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0622q(), 4, null);
return;
}
}
h.d(this.d.d, 1, null, null, new C0621p(str), 6, null);
}
@JavascriptInterface
public final void requestNotificationPermission() {
try {
h.d(this.d.d, 0, null, null, new C0623r(), 7, null);
d(new Xd.d(Yd.a.s, -1));
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0624s(), 4, null);
}
}
@JavascriptInterface
public final void setAlias(String str) {
try {
h.d(this.d.d, 0, null, null, new C0625t(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.g(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0626u(), 4, null);
}
}
@JavascriptInterface
public final void setBirthDate(String str) {
try {
h.d(this.d.d, 0, null, null, new C0627v(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.t(context, "USER_ATTRIBUTE_USER_BDAY", str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0628w(), 4, null);
}
}
@JavascriptInterface
public final void setEmailId(String str) {
try {
h.d(this.d.d, 0, null, null, new C0629x(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.j(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C0630y(), 4, null);
}
}
@JavascriptInterface
public final void setFirstName(String str) {
try {
h.d(this.d.d, 0, null, null, new C0631z(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.k(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new A(), 4, null);
}
}
@JavascriptInterface
public final void setGender(String str) {
try {
h.d(this.d.d, 0, null, null, new B(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
String upperCase = str.toUpperCase(Locale.ROOT);
r.e(upperCase, "toUpperCase(...)");
cVar.l(context, EnumC1753j.valueOf(upperCase), this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new C(), 4, null);
}
}
@JavascriptInterface
public final void setLastName(String str) {
try {
h.d(this.d.d, 0, null, null, new D(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.m(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new E(), 4, null);
}
}
@JavascriptInterface
public final void setMobileNumber(String str) {
try {
h.d(this.d.d, 0, null, null, new F(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.o(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new G(), 4, null);
}
}
@JavascriptInterface
public final void setUniqueId(String str) {
try {
h.d(this.d.d, 0, null, null, new H(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.q(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new I(), 4, null);
}
}
@JavascriptInterface
public final void setUserAttribute(String str) {
try {
h.d(this.d.d, 0, null, null, new J(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && vd.O.y(str)) {
JSONObject jSONObject = new JSONObject(str);
String string = jSONObject.getString(RazorpayModule.MAP_KEY_WALLET_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.d(this.d.d, 1, null, null, new K(string, obj), 6, null);
return;
}
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
r.c(string);
cVar.s(context, string, obj, this.d.b().a());
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new L(), 4, null);
}
}
@JavascriptInterface
public final void setUserAttributeDate(String str, String str2) {
try {
h.d(this.d.d, 0, null, null, new M(str, str2), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && str2 != null && !o.x(str2) && vd.O.x(str2)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.t(context, str, str2, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new N(), 4, null);
}
}
@JavascriptInterface
public final void setUserAttributeLocation(String str) {
JSONObject jSONObject;
String string;
try {
h.d(this.d.d, 0, null, null, new O(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && (string = (jSONObject = new JSONObject(str)).getString(RazorpayModule.MAP_KEY_WALLET_NAME)) != null && !o.x(string) && vd.O.x(string)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
r.c(string);
cVar.s(context, string, new GeoLocation(jSONObject.getDouble("latitude"), jSONObject.getDouble("longitude")), this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new P(), 4, null);
}
}
@JavascriptInterface
public final void setUserLocation(String str) {
try {
h.d(this.d.d, 0, null, null, new Q(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && vd.O.y(str)) {
JSONObject jSONObject = new JSONObject(str);
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.n(context, jSONObject.getDouble("latitude"), jSONObject.getDouble("longitude"), this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new R(), 4, null);
}
}
@JavascriptInterface
public final void setUserName(String str) {
try {
h.d(this.d.d, 0, null, null, new S(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.u(context, str, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new T(), 4, null);
}
}
@JavascriptInterface
public final void share(String str) {
try {
h.d(this.d.d, 0, null, null, new U(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
d(new i(Yd.a.d, str));
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new V(), 4, null);
}
}
@JavascriptInterface
public final void sms(String str, String str2) {
try {
h.d(this.d.d, 0, null, null, new W(str, str2), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && str2 != null && !o.x(str2) && vd.O.x(str2)) {
d(new j(Yd.a.o, str, str2));
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new X(), 4, null);
}
}
@JavascriptInterface
public final void trackClick(String str) {
try {
h.d(this.d.d, 0, null, null, new Y(str), 7, null);
if (vd.O.y(str)) {
Object opt = (str != null ? new JSONObject(str) : new JSONObject()).opt("widgetId");
Context context = this.h;
r.e(context, "context");
vd.J.b(context, this.d, new Wd.b(this.b.b(), this.b.c(), this.b.a()), opt);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new Z(), 4, null);
}
}
@JavascriptInterface
public final void trackDismiss(String str) {
h.d(this.d.d, 0, null, null, new a0(str), 7, null);
Object opt = (str != null ? new JSONObject(str) : new JSONObject()).opt("widgetId");
try {
h.d(this.d.d, 0, null, null, new b0(), 7, null);
Context context = this.h;
r.e(context, "context");
vd.J.c(context, this.d, new Wd.b(this.b.b(), this.b.c(), this.b.a()), opt);
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new c0(), 4, null);
}
}
@JavascriptInterface
public final void trackEvent(String str, String str2, String str3, String str4, boolean z, boolean z2) {
try {
h.d(this.d.d, 0, null, null, new d0(str, str2, str3, str4, z, z2), 7, null);
if (str != null && !o.x(str) && vd.O.x(str)) {
Wb.e d = this.f.d(str2, str3, str4, z);
if (z2) {
vd.O.b(d, this.b.b(), this.b.c(), this.b.a());
}
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.x(context, str, d, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new e0(), 4, null);
}
}
@JavascriptInterface
public final void trackRating(String str) {
try {
h.d(this.d.d, 0, null, null, new f0(str), 7, null);
if (str != null && !o.x(str) && vd.O.x(str) && vd.O.y(str)) {
double d = new JSONObject(str).getDouble("rating");
Wb.e eVar = new Wb.e();
eVar.b("rating", Double.valueOf(d));
vd.O.b(eVar, this.b.b(), this.b.c(), this.b.a());
Xb.c cVar = Xb.c.a;
Context context = this.h;
r.e(context, "context");
cVar.x(context, "MOE_APP_RATED", eVar, this.i);
}
} catch (Throwable th2) {
h.d(this.d.d, 1, th2, null, new g0(), 4, null);
}
}
}