what-the-bank/sources/com/scb/phone/view/fragment/accountDeletion/EasyAppAccountDeletionFragm...

311 lines
12 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.accountDeletion;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.Spanned;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.scb.phone.R;
import com.scb.phone.view.activity.accountDeletion.EasyAppAccountDeletionOtpActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.fragment.accountDeletion.EasyAppAccountDeletionFragment;
import o.AbstractC14961gcz;
import o.C0157Aki;
import o.C10454eEo;
import o.C14866gag;
import o.C14957gcv;
import o.C2308acE;
import o.C3172asW;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9017dbl;
import o.ZI;
import o.fZZ;
import o.gjJ;
import o.qeC;
/* loaded from: classes5.dex */
public final class EasyAppAccountDeletionFragment extends Hilt_EasyAppAccountDeletionFragment implements InterfaceC9017dbl.IeS {
public static final LWm d = new LWm(0);
private final InterfaceC13393fZL c;
@InterfaceC13391fZD
public C2308acE presenter;
public EasyAppAccountDeletionFragment() {
Sts sts = new Sts(this);
C14957gcv.e(sts, "");
this.c = new fZZ(sts);
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<C0157Aki> {
private EasyAppAccountDeletionFragment a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C0157Aki invoke() {
View inflate = this.a.getLayoutInflater().inflate(R.layout.2131559431, (ViewGroup) null, false);
int i = R.id.btn_cancel;
Button button = (Button) qeC.e(inflate, R.id.btn_cancel);
if (button != null) {
i = R.id.btn_continue;
Button button2 = (Button) qeC.e(inflate, R.id.btn_continue);
if (button2 != null) {
i = R.id.ll_bottom_buttons;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_bottom_buttons);
if (linearLayout != null) {
i = R.id.ll_root;
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.ll_root);
if (linearLayout2 != null) {
i = R.id.tv_message;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_message);
if (textView != null) {
i = R.id.tv_title;
TextView textView2 = (TextView) qeC.e(inflate, R.id.tv_title);
if (textView2 != null) {
return new C0157Aki((RelativeLayout) inflate, button, button2, linearLayout, linearLayout2, textView, textView2);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment) {
super(0);
this.a = easyAppAccountDeletionFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
RelativeLayout relativeLayout = ((C0157Aki) this.c.e()).c;
C14957gcv.c(relativeLayout, "");
return relativeLayout;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
C2308acE c2308acE = this.presenter;
if (c2308acE == null) {
C14957gcv.a("");
c2308acE = null;
}
c2308acE.e((C2308acE) this);
ZI.IeS ieS = new ZI.IeS() { // from class: o.acM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9017dbl.IeS) obj).a();
}
};
if (c2308acE.f != 0) {
ieS.e(c2308acE.f);
}
}
@Override // o.InterfaceC9017dbl.IeS
public final void a() {
C0157Aki c0157Aki = (C0157Aki) this.c.e();
Button button = c0157Aki.a;
C14957gcv.c(button, "");
C10454eEo.d(button, new RVV(this));
Button button2 = c0157Aki.d;
C14957gcv.c(button2, "");
C10454eEo.d(button2, new HBt(this));
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private EasyAppAccountDeletionFragment d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
final C2308acE c2308acE = this.d.presenter;
if (c2308acE == null) {
C14957gcv.a("");
c2308acE = null;
}
if (c2308acE.f != 0) {
c2308acE.f.y();
}
ZI.IeS ieS = new ZI.IeS(c2308acE) { // from class: o.acK
private C2308acE c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2308acE.a(this.c, (InterfaceC9017dbl.IeS) obj);
}
{
this.c = c2308acE;
}
};
if (c2308acE.f != 0) {
ieS.e(c2308acE.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment) {
super(0);
this.d = easyAppAccountDeletionFragment;
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private EasyAppAccountDeletionFragment c;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
this.c.k(false);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment) {
super(0);
this.c = easyAppAccountDeletionFragment;
}
}
@Override // o.InterfaceC9017dbl.IeS
public final void e() {
CustomDialog b = CustomDialog.b(requireContext());
String string = getString(R.string.app_account_deletion_schedule_popup_title);
if (gjJ.a(string)) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(string);
}
Spanned qI_ = C3172asW.qI_(getString(R.string.app_account_deletion_schedule_popup_message), 0);
if (gjJ.a(qI_)) {
b.mTextTextView.setVisibility(0);
b.mTextTextView.setText(qI_);
}
((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(R.string.app_account_deletion_schedule_popup_continue, new DialogInterface.OnClickListener(this) { // from class: o.eFf
private EasyAppAccountDeletionFragment b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
EasyAppAccountDeletionFragment.b(this.b);
}
{
this.b = this;
}
}), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener(this) { // from class: o.eFd
private EasyAppAccountDeletionFragment e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
EasyAppAccountDeletionFragment.aqu_(this.e, dialogInterface);
}
{
this.e = this;
}
}})).show();
}
@Override // o.InterfaceC9017dbl.IeS
public final void b() {
CustomDialog b = CustomDialog.b(requireContext());
String string = getString(R.string.app_account_deletion_confirm_popup_title);
if (gjJ.a(string)) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(string);
}
String string2 = getString(R.string.app_account_deletion_confirm_popup_message);
if (gjJ.a(string2)) {
b.mTextTextView.setVisibility(0);
b.mTextTextView.setText(string2);
}
((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(R.string.confirm, new DialogInterface.OnClickListener(this) { // from class: o.eFh
private EasyAppAccountDeletionFragment d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
EasyAppAccountDeletionFragment.a(this.d);
}
{
this.d = this;
}
}), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener(this) { // from class: o.eFe
private EasyAppAccountDeletionFragment d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
EasyAppAccountDeletionFragment.aqt_(this.d, dialogInterface);
}
{
this.d = this;
}
}})).show();
}
@Override // o.InterfaceC9017dbl.IeS
public final void c() {
k(false);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
C2308acE c2308acE = this.presenter;
if (c2308acE == null) {
C14957gcv.a("");
c2308acE = null;
}
c2308acE.w_();
super.onDestroyView();
}
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public static /* synthetic */ void b(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment) {
C14957gcv.e(easyAppAccountDeletionFragment, "");
easyAppAccountDeletionFragment.b();
}
public static /* synthetic */ void aqt_(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment, DialogInterface dialogInterface) {
C14957gcv.e(easyAppAccountDeletionFragment, "");
C14957gcv.e(dialogInterface, "");
easyAppAccountDeletionFragment.k(false);
}
public static /* synthetic */ void a(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment) {
C14957gcv.e(easyAppAccountDeletionFragment, "");
EasyAppAccountDeletionOtpActivity.Sts sts = EasyAppAccountDeletionOtpActivity.b;
easyAppAccountDeletionFragment.startActivity(new Intent(easyAppAccountDeletionFragment.getContext(), (Class<?>) EasyAppAccountDeletionOtpActivity.class));
}
public static /* synthetic */ void aqu_(EasyAppAccountDeletionFragment easyAppAccountDeletionFragment, DialogInterface dialogInterface) {
C14957gcv.e(easyAppAccountDeletionFragment, "");
C14957gcv.e(dialogInterface, "");
easyAppAccountDeletionFragment.k(false);
}
}