what-the-bank/sources/com/scb/phone/view/fragment/registration/RegistrationSuccessFragment...

137 lines
4.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.registration;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.registration.onboarding.RegistrationOnboardingActivity;
import o.C16565pPd;
import o.C8027czU;
import o.EnumC1279Zn;
import o.InterfaceC13391fZD;
import o.InterfaceC9597dmj;
import o.ZI;
import o.pug;
/* loaded from: classes5.dex */
public class RegistrationSuccessFragment extends Hilt_RegistrationSuccessFragment implements InterfaceC9597dmj {
@BindView
Button buttonNext;
private C16565pPd d = new C16565pPd();
@BindView
ImageView imageLogo;
@InterfaceC13391fZD
public C8027czU presenter;
@BindView
TextView textMessage;
public static RegistrationSuccessFragment j() {
return new RegistrationSuccessFragment();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559865, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((C8027czU) this);
EnumC1279Zn enumC1279Zn = EnumC1279Zn.REGULAR;
if (getActivity() != null && getActivity().getIntent().getSerializableExtra("SUCCESS_PAGE_DYNAMIC_TYPE") != null) {
enumC1279Zn = (EnumC1279Zn) getActivity().getIntent().getSerializableExtra("SUCCESS_PAGE_DYNAMIC_TYPE");
C8027czU c8027czU = this.presenter;
if (enumC1279Zn == EnumC1279Zn.DEAD_CARD) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAd
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9597dmj) obj).d();
}
};
if (c8027czU.f != 0) {
ieS.e(c8027czU.f);
}
}
}
C8027czU c8027czU2 = this.presenter;
if (enumC1279Zn == EnumC1279Zn.DEAD_CARD) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cAb
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9597dmj) obj).b();
}
};
if (c8027czU2.f != 0) {
ieS2.e(c8027czU2.f);
}
} else {
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.cAc
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9597dmj) obj).c();
}
};
if (c8027czU2.f != 0) {
ieS3.e(c8027czU2.f);
}
}
return inflate;
}
/* JADX INFO: Access modifiers changed from: package-private */
@OnClick
public void onNextButtonClicked() {
C8027czU c8027czU = this.presenter;
c8027czU.b.e.b(c8027czU.a.a.c() == 1);
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAa
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9597dmj) obj).e();
}
};
if (c8027czU.f != 0) {
ieS.e(c8027czU.f);
}
}
@Override // o.InterfaceC9597dmj
public final void e() {
if (getContext() != null) {
RegistrationOnboardingActivity.c(getContext());
}
}
@Override // o.InterfaceC9597dmj
public final void d() {
this.textMessage.setText(getResources().getString(R.string.registration_success_cc_activation_completed));
}
@Override // o.InterfaceC9597dmj
public final void b() {
c("registration_success", new pug("feature", "card_activation"));
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
super.onDestroy();
this.presenter.w_();
}
@Override // o.InterfaceC9597dmj
public final void c() {
C16565pPd c16565pPd = this.d;
if (getActivity() != null) {
c16565pPd.c(((BaseActivity) getActivity()).scbAnalytics, "registration_success");
}
}
}