what-the-bank/sources/com/scb/phone/view/fragment/investment/onboarding/FundOnboardingTermsAndCondi...

189 lines
7.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.investment.onboarding;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.TermsAndConditionsFragment;
import com.scb.phone.view.fragment.investment.onboarding.FundOnboardingTermsAndConditionsFragment;
import o.AbstractC13482fbE;
import o.C0371Fd;
import o.C14957gcv;
import o.CQ;
import o.InterfaceC12853fJD;
import o.InterfaceC13391fZD;
import o.InterfaceC9380die;
import o.ZI;
import o.bED;
import o.fIE;
/* loaded from: classes5.dex */
public final class FundOnboardingTermsAndConditionsFragment extends Hilt_FundOnboardingTermsAndConditionsFragment implements InterfaceC9380die.RVV, InterfaceC12853fJD {
private fIE c;
@InterfaceC13391fZD
public bED mPresenter;
@Override // o.InterfaceC9652dno
public final void A() {
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559673, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
bED bed = this.mPresenter;
bED bed2 = null;
if (bed == null) {
C14957gcv.a("");
bed = null;
}
bed.e((bED) this);
bED bed3 = this.mPresenter;
if (bed3 != null) {
bed2 = bed3;
} else {
C14957gcv.a("");
}
final C0371Fd d = CQ.d(bed2.c, null, "mutual_funds_onboard", null, null, true, false, false, null, null, null, 0, 1992);
ZI.IeS ieS = new ZI.IeS(d) { // from class: o.bEB
private C0371Fd d;
@Override // o.ZI.IeS
public final void e(Object obj) {
bED.e(this.d, (InterfaceC9380die.RVV) obj);
}
{
this.d = d;
}
};
if (bed2.f != 0) {
ieS.e(bed2.f);
}
}
@Override // com.scb.phone.view.fragment.investment.onboarding.Hilt_FundOnboardingTermsAndConditionsFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public final void onAttach(Context context) {
C14957gcv.e(context, "");
super.onAttach(context);
Fragment parentFragment = getParentFragment();
boolean z = context instanceof fIE;
Object obj = context;
if (!z) {
obj = parentFragment instanceof fIE ? parentFragment : null;
}
this.c = (fIE) obj;
}
@Override // androidx.fragment.app.Fragment
public final void onDetach() {
this.c = null;
super.onDetach();
}
@Override // o.InterfaceC9652dno
public final void a(C0371Fd c0371Fd) {
C14957gcv.e(c0371Fd, "");
TermsAndConditionsFragment.HBt hBt = TermsAndConditionsFragment.c;
TermsAndConditionsFragment c = TermsAndConditionsFragment.HBt.c(c0371Fd);
AbstractC13482fbE a = getChildFragmentManager().a();
C14957gcv.c(a, "");
a.b(R.id.frame_layout_terms_and_conditions, c, null, 2);
a.b();
}
@Override // o.InterfaceC12853fJD
public final void d(String str) {
C14957gcv.e(str, "");
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.mf_onboarding_term_condition_accept_confirm_popup_title).d(R.string.mf_onboarding_term_condition_accept_confirm_popup_description), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.fhH
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}})).aoT_(R.string.mf_onboarding_term_condition_accept, new DialogInterface.OnClickListener(this) { // from class: o.fhL
private FundOnboardingTermsAndConditionsFragment e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
FundOnboardingTermsAndConditionsFragment.auW_(this.e, dialogInterface);
}
{
this.e = this;
}
}).show();
}
@Override // o.InterfaceC12853fJD
public final void e(String str) {
C14957gcv.e(str, "");
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.mf_onboarding_term_condition_decline_confirm_popup_title).d(R.string.mf_onboarding_term_condition_decline_confirm_popup_description), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.fhC
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}})).aoT_(R.string.mf_onboarding_term_condition_decline, new DialogInterface.OnClickListener(this) { // from class: o.fhD
private FundOnboardingTermsAndConditionsFragment c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
FundOnboardingTermsAndConditionsFragment.auV_(this.c, dialogInterface);
}
{
this.c = this;
}
}).show();
}
@Override // o.InterfaceC12828fIc
public final void h() {
requireActivity().finish();
}
public static /* synthetic */ void auV_(FundOnboardingTermsAndConditionsFragment fundOnboardingTermsAndConditionsFragment, DialogInterface dialogInterface) {
C14957gcv.e(fundOnboardingTermsAndConditionsFragment, "");
dialogInterface.dismiss();
fundOnboardingTermsAndConditionsFragment.k(false);
}
public static /* synthetic */ void auW_(FundOnboardingTermsAndConditionsFragment fundOnboardingTermsAndConditionsFragment, DialogInterface dialogInterface) {
C14957gcv.e(fundOnboardingTermsAndConditionsFragment, "");
dialogInterface.dismiss();
fIE fie = fundOnboardingTermsAndConditionsFragment.c;
if (fie != null) {
fie.s();
}
}
static {
new Sts((byte) 0);
}
}