导航菜单

页面标题

页面副标题

Baubap v3.9.7 - TwoFactorAuthOptionsFragment.java 源代码

正在查看: Baubap v3.9.7 应用的 TwoFactorAuthOptionsFragment.java JAVA 源代码文件

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


package com.baubap.modules.auth.two.factor.presentation;

import android.content.Context;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import cf.o;
import ch.u0;
import com.airbnb.lottie.LottieAnimationView;
import com.google.android.gms.internal.location.zzbi;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textview.MaterialTextView;
import f.c;
import f40.k;
import f6.f1;
import f6.l1;
import ih.b;
import ih.d;
import ih.e;
import ih.f;
import ih.h;
import ih.i;
import ih.r;
import ih.s;
import ih.t;
import ih.u;
import ih.w;
import kotlin.jvm.internal.q;
import kotlin.jvm.internal.y;
import m40.h0;
import m40.r0;
import me.c5;
import mo.j;
import ny.k1;
import p40.b0;
import p40.d0;
import p40.f0;
import rg.g;
import u8.a3;
import ul.a;
import xf.n0;

public final class TwoFactorAuthOptionsFragment extends n0 {

    public static final k[] f9285m;

    public final j f9286h;

    public final l1 f9287i;

    public zzbi f9288j;

    public bh.k f9289k;

    public final c f9290l;

    static {
        q qVar = new q(TwoFactorAuthOptionsFragment.class, "binding", "getBinding()Lcom/baubap/databinding/TwoFactorAuthOptionsFragmentBinding;", 0);
        y.a.getClass();
        f9285m = new k[]{qVar};
    }

    public TwoFactorAuthOptionsFragment() {
        super(2131558894, 28);
        this.f9286h = k1.O(this, b.f16617b);
        this.f9287i = f40.q.K(this, y.a(TwoFactorAuthViewModel.class), new u0(this, 2), new g(this, 12), new u0(this, 3));
        c registerForActivityResult = registerForActivityResult(new g.c(2), new ih.j(this, this, 0));
        xu.b.x(registerForActivityResult, "registerForActivityResult(...)");
        this.f9290l = registerForActivityResult;
    }

    public static final void v0(TwoFactorAuthOptionsFragment twoFactorAuthOptionsFragment, Location location) {
        boolean isChecked = twoFactorAuthOptionsFragment.w0().f20645f.isChecked();
        String obj = isChecked ? twoFactorAuthOptionsFragment.w0().f20645f.getText().toString() : twoFactorAuthOptionsFragment.w0().f20644e.getText().toString();
        TwoFactorAuthViewModel twoFactorAuthViewModel = (TwoFactorAuthViewModel) twoFactorAuthOptionsFragment.f9287i.getValue();
        o r10 = ch.k.r(twoFactorAuthOptionsFragment);
        twoFactorAuthViewModel.getClass();
        xu.b.y(location, "location");
        xu.b.y(obj, "hashedInfo");
        twoFactorAuthViewModel.B = isChecked ? "sms" : "email";
        twoFactorAuthViewModel.C = r10.f8031f;
        twoFactorAuthViewModel.D = r10.f8026a;
        twoFactorAuthViewModel.E = r10.f8027b;
        twoFactorAuthViewModel.F = String.valueOf(location.getLatitude());
        twoFactorAuthViewModel.G = String.valueOf(location.getLongitude());
        twoFactorAuthViewModel.H = obj;
        tx.b.X(f1.Q(twoFactorAuthViewModel), (q30.j) null, (h0) null, new w(twoFactorAuthViewModel, null), 3);
        zzbi zzbiVar = twoFactorAuthOptionsFragment.f9288j;
        if (zzbiVar != null) {
            bh.k kVar = twoFactorAuthOptionsFragment.f9289k;
            if (kVar == null) {
                xu.b.r0("locationCallback");
                throw null;
            }
            zzbiVar.removeLocationUpdates(kVar);
        }
        MaterialButton materialButton = twoFactorAuthOptionsFragment.w0().f20641b;
        xu.b.x(materialButton, "btnSend");
        materialButton.setEnabled(false);
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        requireActivity().getOnBackPressedDispatcher().a(this, new a(3));
        this.f9289k = new bh.k(this, 1);
    }

    @Override
    public final void onDestroyView() {
        zzbi zzbiVar = this.f9288j;
        if (zzbiVar != null) {
            bh.k kVar = this.f9289k;
            if (kVar == null) {
                xu.b.r0("locationCallback");
                throw null;
            }
            zzbiVar.removeLocationUpdates(kVar);
        }
        super.onDestroyView();
    }

    @Override
    public final void onResume() {
        super.onResume();
        TwoFactorAuthViewModel twoFactorAuthViewModel = (TwoFactorAuthViewModel) this.f9287i.getValue();
        hh.b bVar = twoFactorAuthViewModel.f9297w;
        bVar.getClass();
        com.bumptech.glide.c.K1(com.bumptech.glide.c.N1(new u(twoFactorAuthViewModel, null), new f0(new b0(new d0(new r(twoFactorAuthViewModel, null), com.bumptech.glide.c.i1(new aa.g(new hh.a(bVar, null)), r0.c)), new s(0, twoFactorAuthViewModel, null)), new t(0, twoFactorAuthViewModel, null))), f1.Q(twoFactorAuthViewModel));
    }

    @Override
    public final void onViewCreated(View view, Bundle bundle) {
        xu.b.y(view, "view");
        androidx.fragment.app.f0 requireActivity = requireActivity();
        xu.b.x(requireActivity, "requireActivity(...)");
        z50.a.K(requireActivity);
        LottieAnimationView lottieAnimationView = w0().f20640a;
        lottieAnimationView.setAnimationFromUrl("https://media.baubap.com/android/security/security_shield.json");
        lottieAnimationView.d();
        TwoFactorAuthViewModel twoFactorAuthViewModel = (TwoFactorAuthViewModel) this.f9287i.getValue();
        a3 N1 = com.bumptech.glide.c.N1(new e(this, null), twoFactorAuthViewModel.f31007j);
        f6.d0 viewLifecycleOwner = getViewLifecycleOwner();
        xu.b.x(viewLifecycleOwner, "getViewLifecycleOwner(...)");
        w4.g.a0(N1, viewLifecycleOwner);
        a3 N12 = com.bumptech.glide.c.N1(new f(ea.f.K(this), null), twoFactorAuthViewModel.f31009l);
        f6.d0 viewLifecycleOwner2 = getViewLifecycleOwner();
        xu.b.x(viewLifecycleOwner2, "getViewLifecycleOwner(...)");
        w4.g.a0(N12, viewLifecycleOwner2);
        a3 N13 = com.bumptech.glide.c.N1(new ih.g(this, null), twoFactorAuthViewModel.f31011n);
        f6.d0 viewLifecycleOwner3 = getViewLifecycleOwner();
        xu.b.x(viewLifecycleOwner3, "getViewLifecycleOwner(...)");
        w4.g.a0(N13, viewLifecycleOwner3);
        a3 N14 = com.bumptech.glide.c.N1(new h(this, null), twoFactorAuthViewModel.K);
        f6.d0 viewLifecycleOwner4 = getViewLifecycleOwner();
        xu.b.x(viewLifecycleOwner4, "getViewLifecycleOwner(...)");
        w4.g.a0(N14, viewLifecycleOwner4);
        a3 N15 = com.bumptech.glide.c.N1(new i(this, null), twoFactorAuthViewModel.M);
        f6.d0 viewLifecycleOwner5 = getViewLifecycleOwner();
        xu.b.x(viewLifecycleOwner5, "getViewLifecycleOwner(...)");
        w4.g.a0(N15, viewLifecycleOwner5);
        c5 w02 = w0();
        MaterialButton materialButton = w02.f20641b;
        xu.b.x(materialButton, "btnSend");
        int i10 = 0;
        z50.a.Z(materialButton, new ih.c(i10, w02, this));
        w02.f20643d.setOnCheckedChangeListener(new ih.a(w02, 0));
        MaterialTextView materialTextView = w02.f20642c;
        xu.b.x(materialTextView, "lblNoMethod");
        z50.a.Z(materialTextView, new d(this, i10));
    }

    public final c5 w0() {
        return (c5) this.f9286h.a(this, f9285m[0]);
    }

    public final void x0() {
        Context requireContext = requireContext();
        xu.b.x(requireContext, "requireContext(...)");
        bh.k kVar = this.f9289k;
        if (kVar != null) {
            this.f9288j = p0.d.d0(requireContext, kVar, new d(this, 1));
        } else {
            xu.b.r0("locationCallback");
            throw null;
        }
    }
}