WeChat.apk(点击下载) / h.java


package b94;

import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import com.tencent.mm.R;
import com.tencent.mm.autogen.mmdata.rpt.WCPayResetPwdClickReportStruct;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.mm.wallet_core.model.g0;
import com.tencent.mm.wallet_core.ui.WalletBaseUI;
import com.tencent.mm.wallet_core.ui.t;
import com.tenpay.android.wechat.TenpaySecureEditText;
import e94.m;
import nf0.u0;
import x84.e;
import yf0.y;

public class h {

    public class a implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11492d;

        public a(WalletBaseUI walletBaseUI) {
            this.f11492d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            t.S(this.f11492d, "https://www.payu.co.za/wechat/contact-us/", true);
            if (this.f11492d.isTransparent() || this.f11492d.getContentViewVisibility() != 0) {
                this.f11492d.finish();
            }
        }
    }

    public class b implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11493d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ int f11494e;

        public b(WalletBaseUI walletBaseUI, int i15) {
            this.f11493d = walletBaseUI;
            this.f11494e = i15;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            WalletBaseUI walletBaseUI = this.f11493d;
            x84.a.c(walletBaseUI, walletBaseUI.getInput(), this.f11494e);
            if (this.f11493d.isTransparent() || this.f11493d.getContentViewVisibility() != 0) {
                this.f11493d.finish();
            }
        }
    }

    public class c implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11495d;

        public c(WalletBaseUI walletBaseUI) {
            this.f11495d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            if (this.f11495d.isTransparent()) {
                this.f11495d.finish();
            }
        }
    }

    public class d implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ y f11496d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11497e;

        public d(y yVar, WalletBaseUI walletBaseUI) {
            this.f11496d = yVar;
            this.f11497e = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            String str;
            y yVar = this.f11496d;
            if (yVar instanceof m) {
                str = ((m) yVar).f206447v;
            } else {
                str = "";
            }
            if (!Util.isNullOrNil(str)) {
                WCPayResetPwdClickReportStruct wCPayResetPwdClickReportStruct = new WCPayResetPwdClickReportStruct();
                wCPayResetPwdClickReportStruct.f71414d = 1;
                wCPayResetPwdClickReportStruct.f71415e = 2;
                wCPayResetPwdClickReportStruct.n();
                Log.i("MicroMsg.WalletErrMgr", "jump to forget_url %s", str);
                t.S(this.f11497e, str, false);
                return;
            }
            WCPayResetPwdClickReportStruct wCPayResetPwdClickReportStruct2 = new WCPayResetPwdClickReportStruct();
            wCPayResetPwdClickReportStruct2.f71414d = 1;
            wCPayResetPwdClickReportStruct2.f71415e = 1;
            wCPayResetPwdClickReportStruct2.n();
            if (u0.J()) {
                x84.a.k(this.f11497e, "wallet_payu", "PayUForgotPwdProcess", null, null);
            } else {
                WalletBaseUI walletBaseUI = this.f11497e;
                x84.b.a().getClass();
                ((qv3.c) yz3.j.c(qv3.c.class)).startResetPwdUseCase(walletBaseUI, null);
            }
            if (this.f11497e.isTransparent()) {
                this.f11497e.finish();
            }
        }
    }

    public class e implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11498d;

        public e(WalletBaseUI walletBaseUI) {
            this.f11498d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            this.f11498d.cleanUiData(1);
        }
    }

    public class f implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11499d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ int f11500e;

        public f(WalletBaseUI walletBaseUI, int i15) {
            this.f11499d = walletBaseUI;
            this.f11500e = i15;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            x84.a.c(this.f11499d, new Bundle(), this.f11500e);
            if (this.f11499d.isTransparent()) {
                this.f11499d.finish();
            }
        }
    }

    public class g implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11501d;

        public g(WalletBaseUI walletBaseUI) {
            this.f11501d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            if (this.f11501d.isTransparent()) {
                this.f11501d.finish();
            }
        }
    }

    /* renamed from: b94.h$h  reason: collision with other inner class name */
    public class DialogInterface$OnClickListenerC0251h implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11502d;

        public DialogInterface$OnClickListenerC0251h(WalletBaseUI walletBaseUI) {
            this.f11502d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            this.f11502d.resend(true);
        }
    }

    public class i implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11503d;

        public class a implements e.a {
            public a(i iVar) {
            }

            @Override // x84.e.a
            public Intent onProcessEnd(int i15, Bundle bundle) {
                return null;
            }
        }

        public i(WalletBaseUI walletBaseUI) {
            this.f11503d = walletBaseUI;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            Bundle bundle = new Bundle();
            bundle.putBoolean("key_is_bind_bankcard", false);
            x84.a.k(this.f11503d, "wallet", "BindCardProcess", bundle, new a(this));
        }
    }

    public class j implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11504d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ int f11505e;

        public j(WalletBaseUI walletBaseUI, int i15) {
            this.f11504d = walletBaseUI;
            this.f11505e = i15;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            WalletBaseUI walletBaseUI = this.f11504d;
            x84.a.c(walletBaseUI, walletBaseUI.getInput(), this.f11505e);
            if (this.f11504d.isTransparent()) {
                this.f11504d.finish();
            }
        }
    }

    public class k implements DialogInterface.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ WalletBaseUI f11506d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ int f11507e;

        public k(WalletBaseUI walletBaseUI, int i15) {
            this.f11506d = walletBaseUI;
            this.f11507e = i15;
        }

        public void onClick(DialogInterface dialogInterface, int i15) {
            WalletBaseUI walletBaseUI = this.f11506d;
            x84.a.c(walletBaseUI, walletBaseUI.getInput(), this.f11507e);
            if (this.f11506d.isTransparent()) {
                this.f11506d.finish();
            }
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:45:0x011c  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x0121  */
    public static boolean a(WalletBaseUI walletBaseUI, y yVar, int i15, int i16, String str) {
        boolean z15;
        boolean z16 = false;
        r0 = null;
        int i17 = 0;
        int i18 = 0;
        Object[] objArr = null;
        if (i15 == 1000) {
            if (Util.isNullOrNil(str)) {
                str = walletBaseUI.getString(R.string.l0g);
            }
            x84.e g15 = x84.a.g(walletBaseUI);
            boolean z17 = true;
            if (i16 != 407) {
                if (i16 != 408) {
                    if (i16 == 412) {
                        i14.j.A(walletBaseUI, str, "", walletBaseUI.getString(R.string.f369571l13), walletBaseUI.getString(R.string.f367394sg), new i(walletBaseUI), null);
                    } else if (i16 != 414) {
                        switch (i16) {
                            case -100869:
                                i14.j.G(walletBaseUI, walletBaseUI.getString(R.string.kll), null, false, new k(walletBaseUI, i16));
                                break;
                            case -100868:
                                i14.j.G(walletBaseUI, walletBaseUI.getString(R.string.klm), null, false, new j(walletBaseUI, i16));
                                break;
                            default:
                                switch (i16) {
                                    case 401:
                                        if (yVar instanceof m) {
                                            i18 = ((m) yVar).f206446u;
                                        }
                                        if (i18 != 1) {
                                            i14.j.K(walletBaseUI, false, str, "", walletBaseUI.getString(R.string.f369501km0), walletBaseUI.getString(R.string.f367597y3), new d(yVar, walletBaseUI), new e(walletBaseUI));
                                            break;
                                        } else {
                                            i14.j.y(walletBaseUI, str, "", walletBaseUI.getString(R.string.klz), new c(walletBaseUI));
                                            break;
                                        }
                                    case 402:
                                    case 403:
                                        break;
                                    case 404:
                                        if (g15 != null) {
                                            z15 = g15.w(walletBaseUI, i16, str);
                                            objArr = 1;
                                            z17 = z15;
                                            break;
                                        }
                                        z17 = false;
                                        objArr = 1;
                                        break;
                                    case 405:
                                        if (yVar instanceof m) {
                                            i17 = ((m) yVar).f206446u;
                                        }
                                        if (i17 != 1) {
                                            i14.j.A(walletBaseUI, str, "", walletBaseUI.getString(R.string.kyh), walletBaseUI.getString(R.string.f367394sg), new DialogInterface$OnClickListenerC0251h(walletBaseUI), null);
                                            break;
                                        } else {
                                            i14.j.y(walletBaseUI, str, "", walletBaseUI.getString(R.string.klz), new g(walletBaseUI));
                                            break;
                                        }
                                    default:
                                        z17 = false;
                                        break;
                                }
                        }
                        if (objArr == null) {
                            walletBaseUI.setmPayResultType(2);
                        } else {
                            walletBaseUI.setmPayResultType(3);
                        }
                        z16 = z17;
                    } else {
                        TenpaySecureEditText.setSalt(t.z());
                        b(walletBaseUI, i16, str);
                    }
                }
                if (g15 != null) {
                    z15 = g15.w(walletBaseUI, i16, str);
                    objArr = 1;
                    z17 = z15;
                    if (objArr == null) {
                    }
                    z16 = z17;
                }
                z17 = false;
                objArr = 1;
                if (objArr == null) {
                }
                z16 = z17;
            } else {
                TenpaySecureEditText.setSalt(t.z());
                if (u0.J()) {
                    b(walletBaseUI, i16, str);
                } else {
                    i14.j.G(walletBaseUI, str, null, false, new f(walletBaseUI, i16));
                }
            }
            objArr = 1;
            if (objArr == null) {
            }
            z16 = z17;
        }
        if (yVar instanceof g0) {
            ((g0) yVar).setHasProcessWalletError(z16);
        }
        return z16;
    }

    public static void b(WalletBaseUI walletBaseUI, int i15, String str) {
        i14.j.K(walletBaseUI, false, str, "", walletBaseUI.getString(R.string.klk), walletBaseUI.getString(R.string.f367394sg), new a(walletBaseUI), new b(walletBaseUI, i15));
    }
}