package com.ss.android.ugc.aweme.account.login.twostep;

import X.7he;
import X.C1633RlF;
import X.C1741Rmz;
import X.C1790Rnm;
import X.C1986Rqw;
import X.C2196RuK;
import X.C2202RuQ;
import X.C2208RuW;
import X.C2212Rua;
import X.C2230Rus;
import X.Crj;
import X.M12;
import X.PgW;
import android.os.Bundle;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.account.login.v2.base.BaseAccountFlowFragment;
import com.ss.android.ugc.aweme.account.login.v2.ui.fragments.InputCodeFragmentV2;
import java.util.HashMap;
import java.util.Map;
import kotlin.h.b.n;

public final class VerifyEmailForTicketFragment extends InputCodeFragmentV2 {
    public final Crj LIZ = 7he.LIZ(new C2212Rua(this));
    public HashMap LIZIZ;

    static {
        Covode.recordClassIndex(51349);
    }

    private String LJIIJJI() {
        return (String) this.LIZ.getValue();
    }

    public final View LIZ(int i) {
        if (this.LIZIZ == null) {
            this.LIZIZ = new HashMap();
        }
        View view = (View) this.LIZIZ.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LIZIZ.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    public final void LJIIJ() {
        HashMap hashMap = this.LIZIZ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    public final /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        LJIIJ();
    }

    public final C2196RuK LJII() {
        C2196RuK ruK = new C2196RuK();
        ruK.LIZ(LJIIJJI());
        ruK.LIZIZ = false;
        ruK.LIZLLL = false;
        return ruK;
    }

    public final void LJIIIZ() {
        LIZJ("resend").LIZLLL(new C2208RuW(this)).LIZLLL();
    }

    public final C2202RuQ LIZLLL() {
        C2202RuQ ruQ = new C2202RuQ((String) null, (String) null, false, (String) null, (String) null, false, (String) null, false, false, 2047);
        ruQ.LJ = getString(2131823119);
        ruQ.LJFF = getString(2131823120, new Object[]{LJIIJJI()});
        ruQ.LIZ = " ";
        ruQ.LJIIIZ = false;
        return ruQ;
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        LIZJ("user_click").LIZLLL();
    }

    public final void LIZ(String str) {
        M12.LIZ(str);
        C1790Rnm.LIZ.LIZIZ(this, str, 6, (Map<String, String>) null).LIZLLL(new C1986Rqw(this)).LIZLLL();
    }

    private PgW<C1633RlF<C1741Rmz>> LIZJ(String str) {
        String str2 = str;
        M12.LIZ(str2);
        PgW<C1633RlF<C1741Rmz>> LIZ2 = C1790Rnm.LIZ(C1790Rnm.LIZ, (BaseAccountFlowFragment) this, LJIIJJI(), 6, str2, (Map) null, (String) null, 112).LIZ(new C2230Rus(this));
        n.LIZIZ(LIZ2, "");
        return LIZ2;
    }
}
