导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - H.java 源代码

正在查看: Bhakti v5.4.0 应用的 H.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package S9;

import P9.C0088t;
import Zn.y0;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.FragmentActivity;
import com.google.android.gms.internal.ads.zzbbz;
import com.google.android.gms.internal.ads.zzbci;
import com.google.android.material.chip.ChipGroup;
import com.vlv.aravali.views.activities.l0;
import easypay.appinvoke.manager.Constants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.WeakHashMap;
import xb.InterfaceC0517f;

public final class H {
    public boolean a;
    public boolean b;
    public final Object c;
    public final Object d;
    public Object e;

    public H(int i) {
        switch (i) {
            case 2:
                this.c = new HashMap();
                this.d = new HashSet();
                break;
            default:
                this.a = false;
                this.d = new WeakHashMap();
                this.c = new Pb.k(this, 1);
                break;
        }
    }

    public static String d(Activity activity) {
        try {
            return activity.getPackageManager().getPackageInfo("net.one97.paytm", 0).versionName;
        } catch (Exception e) {
            com.paytm.pgsdk.a.b().c("AppInvoke", e.getMessage());
            com.paytm.pgsdk.g.p("Paytm app not installed");
            return null;
        }
    }

    public static int n(String str, String str2) {
        if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
            return 1;
        }
        String[] split = str.split("\\.");
        String[] split2 = str2.split("\\.");
        int i = 0;
        while (i < split.length && i < split2.length && split[i].equalsIgnoreCase(split2[i])) {
            i++;
        }
        return (i >= split.length || i >= split2.length) ? Integer.signum(split.length - split2.length) : Integer.signum(Integer.valueOf(split[i]).compareTo(Integer.valueOf(split2[i])));
    }

    public void a(int i) {
        InterfaceC0517f interfaceC0517f = (InterfaceC0517f) ((HashMap) this.c).get(Integer.valueOf(i));
        if (interfaceC0517f != null && b(interfaceC0517f)) {
            g();
        }
    }

    public boolean b(InterfaceC0517f interfaceC0517f) {
        int id = interfaceC0517f.getId();
        HashSet hashSet = (HashSet) this.d;
        if (hashSet.contains(Integer.valueOf(id))) {
            return false;
        }
        InterfaceC0517f interfaceC0517f2 = (InterfaceC0517f) ((HashMap) this.c).get(Integer.valueOf(e()));
        if (interfaceC0517f2 != null) {
            m(interfaceC0517f2, false);
        }
        boolean add = hashSet.add(Integer.valueOf(id));
        if (!interfaceC0517f.isChecked()) {
            interfaceC0517f.setChecked(true);
        }
        return add;
    }

    public ArrayList c(ViewGroup viewGroup) {
        HashSet hashSet = new HashSet((HashSet) this.d);
        ArrayList arrayList = new ArrayList();
        for (int i = 0; i < viewGroup.getChildCount(); i++) {
            View childAt = viewGroup.getChildAt(i);
            if ((childAt instanceof InterfaceC0517f) && hashSet.contains(Integer.valueOf(childAt.getId()))) {
                arrayList.add(Integer.valueOf(childAt.getId()));
            }
        }
        return arrayList;
    }

    public int e() {
        if (this.a) {
            HashSet hashSet = (HashSet) this.d;
            if (!hashSet.isEmpty()) {
                return ((Integer) hashSet.iterator().next()).intValue();
            }
        }
        return -1;
    }

    public boolean f() {
        return this.a;
    }

    public void g() {
        l0 l0Var = (l0) this.e;
        if (l0Var != null) {
            new HashSet((HashSet) this.d);
            ViewGroup viewGroup = (ChipGroup) l0Var.b;
            g2.x xVar = ((ChipGroup) viewGroup).g;
            if (xVar != null) {
                ((ChipGroup) viewGroup).h.c(viewGroup);
                ChipGroup chipGroup = (ChipGroup) xVar.a;
                if (chipGroup.h.a) {
                    chipGroup.getCheckedChipId();
                    throw null;
                }
            }
        }
    }

    public void h(l0 l0Var) {
        this.e = l0Var;
    }

    public void i(boolean z) {
        this.b = z;
    }

    public void j(boolean z) {
        if (this.a != z) {
            this.a = z;
            boolean isEmpty = ((HashSet) this.d).isEmpty();
            Iterator it = ((HashMap) this.c).values().iterator();
            while (it.hasNext()) {
                m((InterfaceC0517f) it.next(), false);
            }
            if (isEmpty) {
                return;
            }
            g();
        }
    }

    public void k(Activity activity) {
        com.paytm.pgsdk.d c;
        y0 y0Var = (y0) this.d;
        synchronized (com.paytm.pgsdk.d.class) {
            HashMap hashMap = (HashMap) y0Var.b;
            TextUtils.isEmpty("https://securegw.paytm.in/theia/api/v1/showPaymentPage");
            String str = (String) hashMap.get("ORDER_ID");
            String str2 = (String) hashMap.get("MID");
            c = com.paytm.pgsdk.d.c();
            c.b = "https://securegw.paytm.in/theia/api/v1/showPaymentPage?mid=" + str2 + "&orderId=" + str;
            com.paytm.pgsdk.l.p().getClass();
        }
        c.e((y0) this.d);
        c.h = this.b;
        c.f(activity, (com.paytm.pgsdk.f) this.c);
    }

    public void l(FragmentActivity fragmentActivity, int i) {
        double d;
        String str;
        String str2;
        com.paytm.pgsdk.a b = com.paytm.pgsdk.a.b();
        com.paytm.pgsdk.a b2 = com.paytm.pgsdk.a.b();
        y0 y0Var = (y0) this.d;
        b.e("SDK_initialized", "", b2.a(y0Var), "");
        String d2 = d(fragmentActivity);
        if (!com.paytm.pgsdk.g.w(fragmentActivity) || n(d2, "0.0.0") < 0) {
            com.paytm.pgsdk.a.b().d("Paytm_App_invoke", "AppInvoke", "status", "fail");
            com.paytm.pgsdk.a.b().e("webview-bridge", "Redirection", com.paytm.pgsdk.a.b().a(y0Var), "");
            k(fragmentActivity);
            return;
        }
        if (this.a && n(d2, "8.10.8") < 0) {
            k(fragmentActivity);
            return;
        }
        Intent intent = new Intent();
        Bundle bundle = new Bundle();
        HashMap hashMap = (HashMap) y0Var.b;
        String str3 = (String) hashMap.get("TXN_AMOUNT");
        try {
            d = Double.parseDouble(str3);
        } catch (NumberFormatException e) {
            com.paytm.pgsdk.a.b().c("AppInvoke", e.getMessage());
            d = 0.0d;
        }
        bundle.putBoolean("nativeSdkEnabled", true);
        bundle.putString("orderid", (String) hashMap.get("ORDER_ID"));
        bundle.putString("txnToken", (String) hashMap.get("TXN_TOKEN"));
        bundle.putString(Constants.EXTRA_MID, (String) hashMap.get("MID"));
        bundle.putDouble("nativeSdkForMerchantAmount", d);
        String d3 = d(fragmentActivity);
        com.paytm.pgsdk.a.b().e("app-invoke-bridge", "AppInvoke", com.paytm.pgsdk.a.b().a(y0Var), d3);
        try {
            if (n(d3, "8.6.0") < 0) {
                intent.setComponent(new ComponentName("net.one97.paytm", "net.one97.paytm.AJRJarvisSplash"));
            } else {
                intent.setComponent(new ComponentName("net.one97.paytm", "net.one97.paytm.AJRRechargePaymentActivity"));
                intent.putExtra("enable_paytm_invoke", true);
                intent.putExtra("paytm_invoke", true);
                intent.putExtra("price", str3);
                intent.putExtra("nativeSdkEnabled", true);
                intent.putExtra("orderid", (String) hashMap.get("ORDER_ID"));
                intent.putExtra("txnToken", (String) hashMap.get("TXN_TOKEN"));
                intent.putExtra(Constants.EXTRA_MID, (String) hashMap.get("MID"));
                intent.addFlags(134217728);
            }
            intent.putExtra("isFromAIO", true);
            intent.putExtra("paymentmode", 2);
            intent.putExtra("bill", bundle);
            intent.putExtra("isFromAIO", true);
            HashMap hashMap2 = new HashMap();
            if (hashMap2.isEmpty()) {
                hashMap2 = null;
            }
            if (hashMap2 != null) {
                intent.putExtra("extraParams", hashMap2);
            }
            com.paytm.pgsdk.a b3 = com.paytm.pgsdk.a.b();
            b3.getClass();
            str2 = "status=";
            try {
                str = "Paytm_App_invoke";
                try {
                    b3.e(str, "AppInvoke", str2.concat("success"), d3);
                    try {
                        fragmentActivity.startActivityForResult(intent, i);
                    } catch (Exception unused) {
                        com.paytm.pgsdk.a b4 = com.paytm.pgsdk.a.b();
                        b4.getClass();
                        b4.e(str, "AppInvoke", str2.concat("fail"), d3);
                        k(fragmentActivity);
                    }
                } catch (Exception unused2) {
                }
            } catch (Exception unused3) {
                str = "Paytm_App_invoke";
            }
        } catch (Exception unused4) {
            str = "Paytm_App_invoke";
            str2 = "status=";
        }
    }

    public boolean m(InterfaceC0517f interfaceC0517f, boolean z) {
        int id = interfaceC0517f.getId();
        HashSet hashSet = (HashSet) this.d;
        if (!hashSet.contains(Integer.valueOf(id))) {
            return false;
        }
        if (z && hashSet.size() == 1 && hashSet.contains(Integer.valueOf(id))) {
            interfaceC0517f.setChecked(true);
            return false;
        }
        boolean remove = hashSet.remove(Integer.valueOf(id));
        if (interfaceC0517f.isChecked()) {
            interfaceC0517f.setChecked(false);
        }
        return remove;
    }

    public synchronized void o(Context context) {
        try {
            if (this.a) {
                return;
            }
            Context applicationContext = context.getApplicationContext();
            this.e = applicationContext;
            if (applicationContext == null) {
                this.e = context;
            }
            zzbci.zza((Context) this.e);
            zzbbz zzbbzVar = zzbci.zzeb;
            C0088t c0088t = C0088t.d;
            this.b = ((Boolean) c0088t.c.zzb(zzbbzVar)).booleanValue();
            IntentFilter intentFilter = new IntentFilter();
            intentFilter.addAction("android.intent.action.SCREEN_ON");
            intentFilter.addAction("android.intent.action.SCREEN_OFF");
            intentFilter.addAction("android.intent.action.USER_PRESENT");
            if (!((Boolean) c0088t.c.zzb(zzbci.zzld)).booleanValue() || Build.VERSION.SDK_INT < 33) {
                ((Context) this.e).registerReceiver((Pb.k) this.c, intentFilter);
            } else {
                Kj.C.A((Context) this.e, (Pb.k) this.c, intentFilter);
            }
            this.a = true;
        } catch (Throwable th) {
            throw th;
        }
    }

    public synchronized void p(Context context, BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) {
        if (this.b) {
            ((WeakHashMap) this.d).put(broadcastReceiver, intentFilter);
            return;
        }
        zzbci.zza(context);
        if (!((Boolean) C0088t.d.c.zzb(zzbci.zzld)).booleanValue() || Build.VERSION.SDK_INT < 33) {
            context.registerReceiver(broadcastReceiver, intentFilter);
        } else {
            Kj.C.p(context, broadcastReceiver, intentFilter);
        }
    }

    public synchronized void q(Context context, BroadcastReceiver broadcastReceiver) {
        if (this.b) {
            ((WeakHashMap) this.d).remove(broadcastReceiver);
        } else {
            context.unregisterReceiver(broadcastReceiver);
        }
    }

    public H(y0 y0Var, com.paytm.pgsdk.f fVar) {
        this.a = false;
        this.e = new Pb.k(this, 6);
        this.b = true;
        this.c = fVar;
        this.d = y0Var;
    }
}