正在查看: Atlys v4.8.7 应用的 J.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 J.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package D;
import D0.InterfaceC0285d0;
import android.content.Context;
import android.content.IntentFilter;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CaptureFailure;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.CaptureResult;
import android.hardware.camera2.TotalCaptureResult;
import android.nfc.NfcAdapter;
import android.nfc.NfcManager;
import android.text.SpannableStringBuilder;
import android.text.style.RelativeSizeSpan;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import com.cashfree.pg.core.api.utils.AnalyticsUtil;
import com.cashfree.pg.core.api.utils.CFErrorResponse;
import com.cashfree.pg.core.api.utils.CFUtil;
import com.cashfree.pg.core.api.view.CFCircularNetworkImageView;
import com.cashfree.pg.core.hidden.analytics.UserEvents;
import com.cashfree.pg.core.hidden.network.response.models.ConfigResponse;
import com.cashfree.pg.core.hidden.network.response.models.config.MerchantInfo;
import com.cashfree.pg.core.hidden.network.response.models.config.OrderDetails;
import com.cashfree.pg.core.hidden.network.response.models.config.PaymentModes;
import com.cashfree.pg.core.hidden.nfc.NfcCardReader;
import com.cashfree.pg.core.hidden.utils.CFPaymentModes;
import com.cashfree.pg.ui.hidden.checkout.CashfreeNativeCheckoutActivity;
import com.facebook.appevents.suggestedevents.ViewOnClickListener;
import com.facebook.cache.common.CacheKey;
import com.facebook.imagepipeline.cache.BufferedDiskCache;
import com.facebook.imagepipeline.image.EncodedImage;
import com.facebook.react.devsupport.DevSupportManagerBase;
import com.facebook.react.uimanager.ViewGroupManager;
import com.google.android.material.appbar.AppBarLayout;
import com.posthog.internal.PostHogDecideResponse;
import com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager;
import d6.AbstractC1653k;
import e0.AbstractC1742c;
import f.C1830g;
import in.juspay.hypersdk.core.JuspayServices;
import in.juspay.hypersdk.utils.LogType;
import in.juspay.hypersdk.utils.TrackerFallback;
import in.juspay.services.HyperServices;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.logging.Logger;
import o1.n0;
import org.json.JSONObject;
import w.C3759i;
import w.C3768s;
import ye.v0;
public final class J implements Runnable {
public final int f4086a;
public final Object f4087b;
public final Object f4088c;
public final Object f4089d;
public final Object f4090e;
public J(Object obj, Object obj2, Object obj3, Object obj4, int i10) {
this.f4086a = i10;
this.f4087b = obj;
this.f4088c = obj2;
this.f4089d = obj3;
this.f4090e = obj4;
}
@Override
public final void run() {
v1.p semanticsOwner;
Sg.g gVar;
switch (this.f4086a) {
case 0:
((M) this.f4087b).G((Aa.g) this.f4088c, (Executor) this.f4089d, (L) this.f4090e);
return;
case 1:
C0270s c0270s = (C0270s) this.f4088c;
N.j jVar = (N.j) this.f4089d;
P1.i iVar = (P1.i) this.f4090e;
N.g gVar2 = (N.g) this.f4087b;
gVar2.getClass();
try {
gVar2.f8697a.l(c0270s, jVar);
iVar.a(null);
return;
} catch (RuntimeException e4) {
iVar.b(e4);
return;
}
case 2:
CFErrorResponse cFErrorResponse = (View) this.f4087b;
kotlin.jvm.internal.l.h(cFErrorResponse, "$view");
Qg.h hVar = (Qg.h) this.f4088c;
kotlin.jvm.internal.l.h(hVar, "this$0");
Og.b bVar = hVar.b;
kotlin.jvm.internal.l.h((CountDownLatch) this.f4089d, "$latch");
List list = (List) this.f4090e;
kotlin.jvm.internal.l.h(list, "$maskableWidgets");
try {
r1 = cFErrorResponse instanceof n0 ? (n0) cFErrorResponse : null;
} finally {
try {
return;
} finally {
}
}
if (r1 != null && (semanticsOwner = r1.getSemanticsOwner()) != null) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
v1.o o4 = do.c.o(semanticsOwner.f36467a, true);
if (!o4.f36462c.f30859G) {
d3.h.A(linkedHashMap, o4);
}
for (v1.o oVar : xl.n.J1(linkedHashMap.values())) {
boolean containsKey = oVar.i().f36455a.containsKey(v1.r.f36509v);
boolean containsKey2 = oVar.i().f36455a.containsKey(v1.r.f36512y);
boolean containsKey3 = oVar.i().f36455a.containsKey(v1.r.f36484D);
boolean containsKey4 = oVar.i().f36455a.containsKey(v1.r.f36490b);
v1.k i10 = oVar.i();
v1.v vVar = Qg.b.a;
boolean containsKey5 = i10.f36455a.containsKey(vVar);
if (containsKey5 && ((Boolean) oVar.i().b(vVar)).booleanValue()) {
list.add(Qg.h.o(oVar.f()));
} else if (!containsKey5) {
if ((!containsKey && !containsKey2) || (!bVar.F.a && !containsKey3)) {
if (containsKey4 && bVar.F.b) {
list.add(Qg.h.o(oVar.f()));
}
}
list.add(Qg.h.o(oVar.f()));
}
}
return;
}
bVar.n.b("View is not a RootForTest: " + cFErrorResponse);
return;
case 3:
R.t tVar = (R.t) this.f4087b;
tVar.getClass();
v0.w("TextureViewImpl", "Safe to release surface.");
Bf.c cVar = tVar.l;
if (cVar != null) {
cVar.a();
tVar.l = null;
}
((Surface) this.f4088c).release();
if (tVar.f11387g == ((Ld.e) this.f4089d)) {
tVar.f11387g = null;
}
if (tVar.f11388h == ((h0) this.f4090e)) {
tVar.f11388h = null;
return;
}
return;
case 4:
Mc.i iVar2 = (Mc.i) this.f4088c;
Jc.h hVar2 = (Jc.h) this.f4089d;
Mc.h hVar3 = (Mc.h) this.f4090e;
Rc.a aVar = (Rc.a) this.f4087b;
aVar.getClass();
Logger logger = Rc.a.f;
try {
Kc.c a10 = aVar.c.a(iVar2.a);
if (a10 == null) {
String str = "Transport backend '" + iVar2.a + "' is not registered";
logger.warning(str);
hVar2.a(new IllegalArgumentException(str));
} else {
aVar.e.g(new Bf.c(aVar, iVar2, a10.a(hVar3), 6));
hVar2.a((Exception) null);
}
return;
} catch (Exception e10) {
logger.warning("Error scheduling event " + e10.getMessage());
hVar2.a(e10);
return;
}
case 5:
Sg.c cVar2 = (Sg.c) this.f4087b;
String str2 = (String) this.f4088c;
String str3 = (String) this.f4089d;
Map map = (Map) this.f4090e;
kotlin.jvm.internal.l.h(cVar2, "this$0");
kotlin.jvm.internal.l.h(str2, "$distinctId");
Af.d dVar = cVar2.a.w;
if (dVar != null && !dVar.C()) {
cVar2.a.n.b("Network isn't connected.");
return;
}
if (cVar2.d.getAndSet(true)) {
cVar2.a.n.b("Feature flags are being loaded already.");
return;
}
try {
PostHogDecideResponse v10 = cVar2.b.v(str2, str3, map);
if (v10 != null) {
synchronized (cVar2.e) {
List quotaLimited = v10.getQuotaLimited();
if (quotaLimited == null || !quotaLimited.contains("feature_flags")) {
if (v10.getErrorsWhileComputingFlags()) {
xl.w wVar = cVar2.f;
if (wVar == null) {
wVar = xl.w.a;
}
xl.w featureFlags = v10.getFeatureFlags();
if (featureFlags == null) {
featureFlags = xl.w.a;
}
cVar2.f = xl.B.y0(wVar, featureFlags);
LinkedHashMap d10 = cVar2.d(v10.getFeatureFlagPayloads());
xl.w wVar2 = cVar2.g;
if (wVar2 == null) {
wVar2 = xl.w.a;
}
cVar2.g = xl.B.y0(wVar2, d10);
} else {
cVar2.f = v10.getFeatureFlags();
cVar2.g = cVar2.d(v10.getFeatureFlagPayloads());
}
Object sessionRecording = v10.getSessionRecording();
if (sessionRecording instanceof Boolean) {
cVar2.i = ((Boolean) sessionRecording).booleanValue();
if (!((Boolean) sessionRecording).booleanValue() && (gVar = cVar2.a.v) != null) {
gVar.remove("sessionReplay");
}
} else if (sessionRecording instanceof Map) {
Map map2 = sessionRecording instanceof Map ? (Map) sessionRecording : null;
if (map2 != null) {
Og.b bVar2 = cVar2.a;
Object obj = map2.get("endpoint");
r1 = obj instanceof String ? (String) obj : null;
if (r1 == null) {
r1 = cVar2.a.x;
}
bVar2.getClass();
kotlin.jvm.internal.l.h(r1, "<set-?>");
bVar2.x = r1;
xl.w wVar3 = cVar2.f;
if (wVar3 == null) {
wVar3 = xl.w.a;
}
cVar2.i = Sg.c.b(wVar3, map2);
Sg.g gVar3 = cVar2.a.v;
if (gVar3 != null) {
gVar3.a(map2, "sessionReplay");
}
}
}
Sg.g gVar4 = cVar2.a.v;
if (gVar4 != null) {
xl.w wVar4 = cVar2.f;
if (wVar4 == null) {
wVar4 = xl.w.a;
}
gVar4.a(wVar4, "featureFlags");
xl.w wVar5 = cVar2.g;
if (wVar5 == null) {
wVar5 = xl.w.a;
}
gVar4.a(wVar5, "featureFlagsPayload");
}
cVar2.h = true;
} else {
cVar2.a.n.b("Feature flags are quota limited, clearing existing flags.\n Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts");
cVar2.f = null;
cVar2.g = null;
Sg.g gVar5 = cVar2.a.v;
if (gVar5 != null) {
gVar5.remove("featureFlags");
gVar5.remove("featureFlagsPayload");
}
}
}
}
} finally {
try {
} finally {
}
}
return;
case 6:
ViewOnClickListener.a((JSONObject) this.f4087b, (String) this.f4088c, (ViewOnClickListener) this.f4089d, (String) this.f4090e);
return;
case E2.i.DOUBLE_FIELD_NUMBER:
com.cashfree.pg.network.f.a((com.cashfree.pg.network.f) this.f4087b, (String) this.f4088c, (Map) this.f4089d, (com.cashfree.pg.base.e) this.f4090e);
return;
case 8:
CashfreeNativeCheckoutActivity cashfreeNativeCheckoutActivity = (CashfreeNativeCheckoutActivity) this.f4087b;
Hb.d dVar2 = cashfreeNativeCheckoutActivity.f1;
ConfigResponse configResponse = (ConfigResponse) this.f4088c;
MerchantInfo merchantInfo = configResponse.getMerchantInfo();
OrderDetails orderDetails = configResponse.getOrderDetails();
com.cashfree.pg.ui.hidden.checkout.a aVar2 = new com.cashfree.pg.ui.hidden.checkout.a(cashfreeNativeCheckoutActivity, 1);
dVar2.getClass();
Hb.c cVar3 = new Hb.c(dVar2, aVar2, merchantInfo);
CFCircularNetworkImageView cFCircularNetworkImageView = dVar2.b;
cFCircularNetworkImageView.setImageLoadListener(cVar3);
AppBarLayout appBarLayout = dVar2.a;
dVar2.h.setText(String.format(appBarLayout.getContext().getString(2132017257), merchantInfo.getMerchantName()));
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
spannableStringBuilder.append((CharSequence) String.format("USD".equals(orderDetails.getOrderCurrency()) ? appBarLayout.getContext().getString(2132017283) : appBarLayout.getContext().getString(2132017264), Double.valueOf(orderDetails.getOrderAmount())));
spannableStringBuilder.setSpan(new RelativeSizeSpan(0.8f), spannableStringBuilder.length() - 2, spannableStringBuilder.length(), 17);
dVar2.i.setText(spannableStringBuilder);
if (dc.o.P(merchantInfo.getMerchantLogo())) {
dVar2.a(merchantInfo);
aVar2.a();
} else {
cFCircularNetworkImageView.loadUrl(merchantInfo.getMerchantLogo(), 0);
}
List list2 = (List) this.f4089d;
int size = list2.size();
ArrayList arrayList = (ArrayList) this.f4090e;
if (size == 1) {
CFPaymentModes cFPaymentModes = (CFPaymentModes) list2.get(0);
PaymentModes paymentModes = configResponse.getPaymentModes();
int i11 = com.cashfree.pg.ui.hidden.checkout.g.b[cFPaymentModes.ordinal()];
if (i11 != 1) {
if (i11 == 2 && paymentModes.getEMI().isEmpty()) {
r1 = CFUtil.getErrorForNoPaymentMode(cFPaymentModes.name());
}
} else if (paymentModes.getUpi().isEmpty() && (arrayList == null || arrayList.isEmpty())) {
r1 = CFUtil.getErrorForNoPaymentMode(cFPaymentModes.name());
}
if (r1 != null) {
cashfreeNativeCheckoutActivity.p0(r1);
} else {
Rl.I k02 = cashfreeNativeCheckoutActivity.k0(configResponse, (CFPaymentModes) list2.get(0), arrayList);
if (k02 != null) {
k02.q0();
}
}
} else {
Iterator it = list2.iterator();
while (it.hasNext()) {
cashfreeNativeCheckoutActivity.k0(configResponse, (CFPaymentModes) it.next(), arrayList);
}
}
if (cashfreeNativeCheckoutActivity.k1 != null) {
NfcAdapter defaultAdapter = ((NfcManager) cashfreeNativeCheckoutActivity.getSystemService("nfc")).getDefaultAdapter();
if (defaultAdapter == null) {
cashfreeNativeCheckoutActivity.k1.P0(1);
return;
}
AnalyticsUtil.addEvent(UserEvents.NFC_AVAILABLE);
cashfreeNativeCheckoutActivity.r0(defaultAdapter);
cashfreeNativeCheckoutActivity.B1 = new com.cashfree.pg.ui.hidden.checkout.i(cashfreeNativeCheckoutActivity);
cashfreeNativeCheckoutActivity.C1 = new NfcCardReader();
cashfreeNativeCheckoutActivity.registerReceiver(new com.cashfree.pg.ui.hidden.checkout.e(cashfreeNativeCheckoutActivity, defaultAdapter), new IntentFilter("android.nfc.action.ADAPTER_STATE_CHANGED"));
return;
}
return;
case AbstractC1742c.f23923d:
BufferedDiskCache.f(this.f4087b, (BufferedDiskCache) this.f4088c, (CacheKey) this.f4089d, (EncodedImage) this.f4090e);
return;
case AbstractC1742c.f23925f:
DevSupportManagerBase.r((DevSupportManagerBase) this.f4087b, (String) this.f4088c, (File) this.f4089d, (DevSupportManagerBase.CallbackWithBundleLoader) this.f4090e);
return;
case 11:
ReanimatedNativeHierarchyManager.b((ArrayList) this.f4087b, (View) this.f4088c, (ViewGroupManager) this.f4089d, (ViewGroup) this.f4090e);
return;
case 12:
HyperServices.e((HyperServices) this.f4087b, (androidx.fragment.app.K) this.f4088c, (ViewGroup) this.f4089d, (JSONObject) this.f4090e);
return;
case 13:
Context context = (Context) this.f4087b;
kotlin.jvm.internal.l.h(context, "$context");
C1830g c1830g = (C1830g) this.f4089d;
kotlin.jvm.internal.l.h(c1830g, "$requestPermissionLauncher");
InterfaceC0285d0 interfaceC0285d0 = (InterfaceC0285d0) this.f4090e;
kotlin.jvm.internal.l.h(interfaceC0285d0, "$showRationalePermission$delegate");
AbstractC1653k.L((Kl.a) this.f4088c, c1830g, interfaceC0285d0, context);
return;
case 14:
TrackerFallback.a((TrackerFallback) this.f4087b, (JuspayServices) this.f4088c, (JSONObject) this.f4089d, (LogType) this.f4090e);
return;
case AbstractC1742c.f23927h:
C3768s c3768s = (C3768s) this.f4087b;
HashSet hashSet = c3768s.f37074p;
w.T t10 = (w.T) this.f4088c;
hashSet.remove(t10);
Ld.e A5 = c3768s.A(t10);
F.C c10 = (F.C) this.f4089d;
c10.a();
new I.j(new ArrayList(Arrays.asList(A5, I.f.d(c10.f5606e))), false, pp.h.I()).g((Runnable) this.f4090e, pp.h.I());
return;
case 16:
((CameraCaptureSession.CaptureCallback) ((C3759i) this.f4087b).f36977b).onCaptureCompleted((CameraCaptureSession) this.f4088c, (CaptureRequest) this.f4089d, (TotalCaptureResult) this.f4090e);
return;
case 17:
((CameraCaptureSession.CaptureCallback) ((C3759i) this.f4087b).f36977b).onCaptureProgressed((CameraCaptureSession) this.f4088c, (CaptureRequest) this.f4089d, (CaptureResult) this.f4090e);
return;
default:
((CameraCaptureSession.CaptureCallback) ((C3759i) this.f4087b).f36977b).onCaptureFailed((CameraCaptureSession) this.f4088c, (CaptureRequest) this.f4089d, (CaptureFailure) this.f4090e);
return;
}
}
}