what-the-bank/sources/com/scb/phone/view/fragment/remittance/RemittanceLandingFragment.java

487 lines
27 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.remittance;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RelativeLayout;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.R;
import com.scb.phone.view.activity.remittance.RemittanceCoachmarkActivity;
import com.scb.phone.view.activity.remittance.RemittanceTermsAndConsActivity;
import com.scb.phone.view.custom.common.ThaiTextView;
import com.scb.phone.view.fragment.remittance.RemittanceLandingFragment;
import o.AbstractC14961gcz;
import o.Biz;
import o.C14957gcv;
import o.C5911cCy;
import o.GXh;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9613dmz;
import o.VD;
import o.ZI;
import o.fSQ;
import o.fZZ;
import o.qeC;
/* loaded from: classes5.dex */
public final class RemittanceLandingFragment extends Hilt_RemittanceLandingFragment implements InterfaceC9613dmz {
public static final LWm d = new LWm(0);
private final InterfaceC13393fZL c;
@InterfaceC13391fZD
public C5911cCy presenter;
public RemittanceLandingFragment() {
RVV rvv = new RVV(this);
C14957gcv.e(rvv, "");
this.c = new fZZ(rvv);
}
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<Biz> {
private RemittanceLandingFragment d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Biz invoke() {
View inflate = this.d.getLayoutInflater().inflate(R.layout.2131559870, (ViewGroup) null, false);
int i = R.id.button_get_started;
Button button = (Button) qeC.e(inflate, R.id.button_get_started);
if (button != null) {
i = R.id.good_to_know_text;
ThaiTextView thaiTextView = (ThaiTextView) qeC.e(inflate, R.id.good_to_know_text);
if (thaiTextView != null) {
i = R.id.root_view;
NestedScrollView nestedScrollView = (NestedScrollView) qeC.e(inflate, R.id.root_view);
if (nestedScrollView != null) {
i = R.id.tv_dot_description_1;
ThaiTextView thaiTextView2 = (ThaiTextView) qeC.e(inflate, R.id.tv_dot_description_1);
if (thaiTextView2 != null) {
i = R.id.tv_dot_description_2;
ThaiTextView thaiTextView3 = (ThaiTextView) qeC.e(inflate, R.id.tv_dot_description_2);
if (thaiTextView3 != null) {
i = R.id.tv_dot_description_3;
ThaiTextView thaiTextView4 = (ThaiTextView) qeC.e(inflate, R.id.tv_dot_description_3);
if (thaiTextView4 != null) {
i = R.id.tv_dot_description_4;
ThaiTextView thaiTextView5 = (ThaiTextView) qeC.e(inflate, R.id.tv_dot_description_4);
if (thaiTextView5 != null) {
i = R.id.tv_good_to_know_description_dot_1;
ThaiTextView thaiTextView6 = (ThaiTextView) qeC.e(inflate, R.id.tv_good_to_know_description_dot_1);
if (thaiTextView6 != null) {
i = R.id.tv_good_to_know_description_dot_2;
ThaiTextView thaiTextView7 = (ThaiTextView) qeC.e(inflate, R.id.tv_good_to_know_description_dot_2);
if (thaiTextView7 != null) {
i = R.id.tv_good_to_know_description_dot_3;
ThaiTextView thaiTextView8 = (ThaiTextView) qeC.e(inflate, R.id.tv_good_to_know_description_dot_3);
if (thaiTextView8 != null) {
i = R.id.tv_good_to_know_description_dot_4;
ThaiTextView thaiTextView9 = (ThaiTextView) qeC.e(inflate, R.id.tv_good_to_know_description_dot_4);
if (thaiTextView9 != null) {
i = R.id.tv_paynow_description_1;
ThaiTextView thaiTextView10 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_description_1);
if (thaiTextView10 != null) {
i = R.id.tv_paynow_description_3;
ThaiTextView thaiTextView11 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_description_3);
if (thaiTextView11 != null) {
i = R.id.tv_paynow_description_4;
ThaiTextView thaiTextView12 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_description_4);
if (thaiTextView12 != null) {
i = R.id.tv_paynow_dot_description_1;
ThaiTextView thaiTextView13 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_dot_description_1);
if (thaiTextView13 != null) {
i = R.id.tv_paynow_dot_description_2;
ThaiTextView thaiTextView14 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_dot_description_2);
if (thaiTextView14 != null) {
i = R.id.tv_paynow_dot_description_3;
ThaiTextView thaiTextView15 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_dot_description_3);
if (thaiTextView15 != null) {
i = R.id.tv_paynow_dot_description_4;
ThaiTextView thaiTextView16 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_dot_description_4);
if (thaiTextView16 != null) {
i = R.id.tv_paynow_remittance_description_2;
ThaiTextView thaiTextView17 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_remittance_description_2);
if (thaiTextView17 != null) {
i = R.id.tv_paynow_topic_remittance;
ThaiTextView thaiTextView18 = (ThaiTextView) qeC.e(inflate, R.id.tv_paynow_topic_remittance);
if (thaiTextView18 != null) {
i = R.id.tv_remittance_description_1;
ThaiTextView thaiTextView19 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_description_1);
if (thaiTextView19 != null) {
i = R.id.tv_remittance_description_2;
ThaiTextView thaiTextView20 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_description_2);
if (thaiTextView20 != null) {
ThaiTextView thaiTextView21 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_description_3);
if (thaiTextView21 != null) {
ThaiTextView thaiTextView22 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_description_4);
if (thaiTextView22 != null) {
ThaiTextView thaiTextView23 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_good_to_know_description_1);
if (thaiTextView23 != null) {
ThaiTextView thaiTextView24 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_good_to_know_description_2);
if (thaiTextView24 != null) {
ThaiTextView thaiTextView25 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_good_to_know_description_3);
if (thaiTextView25 != null) {
ThaiTextView thaiTextView26 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_good_to_know_description_4);
if (thaiTextView26 != null) {
ThaiTextView thaiTextView27 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_head_description);
if (thaiTextView27 != null) {
ThaiTextView thaiTextView28 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_head_line);
if (thaiTextView28 != null) {
ThaiTextView thaiTextView29 = (ThaiTextView) qeC.e(inflate, R.id.tv_remittance_topic_remittance);
if (thaiTextView29 != null) {
return new Biz((RelativeLayout) inflate, button, thaiTextView, nestedScrollView, thaiTextView2, thaiTextView3, thaiTextView4, thaiTextView5, thaiTextView6, thaiTextView7, thaiTextView8, thaiTextView9, thaiTextView10, thaiTextView11, thaiTextView12, thaiTextView13, thaiTextView14, thaiTextView15, thaiTextView16, thaiTextView17, thaiTextView18, thaiTextView19, thaiTextView20, thaiTextView21, thaiTextView22, thaiTextView23, thaiTextView24, thaiTextView25, thaiTextView26, thaiTextView27, thaiTextView28, thaiTextView29);
}
i = R.id.tv_remittance_topic_remittance;
} else {
i = R.id.tv_remittance_head_line;
}
} else {
i = R.id.tv_remittance_head_description;
}
} else {
i = R.id.tv_remittance_good_to_know_description_4;
}
} else {
i = R.id.tv_remittance_good_to_know_description_3;
}
} else {
i = R.id.tv_remittance_good_to_know_description_2;
}
} else {
i = R.id.tv_remittance_good_to_know_description_1;
}
} else {
i = R.id.tv_remittance_description_4;
}
} else {
i = R.id.tv_remittance_description_3;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
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) */
RVV(RemittanceLandingFragment remittanceLandingFragment) {
super(0);
this.d = remittanceLandingFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
RelativeLayout relativeLayout = ((Biz) this.c.e()).e;
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);
C5911cCy c5911cCy = this.presenter;
final C5911cCy c5911cCy2 = null;
if (c5911cCy == null) {
C14957gcv.a("");
c5911cCy = null;
}
c5911cCy.e((C5911cCy) this);
C5911cCy c5911cCy3 = this.presenter;
if (c5911cCy3 != null) {
c5911cCy2 = c5911cCy3;
} else {
C14957gcv.a("");
}
if (c5911cCy2.f != 0) {
c5911cCy2.f.y();
}
GXh gXh = c5911cCy2.c;
gXh.d(gXh.d.g(), new fSQ(c5911cCy2) { // from class: o.cCC
private C5911cCy a;
@Override // o.fSQ
public final void c(Object obj) {
C5911cCy.d(this.a, (Kia) obj);
}
{
this.a = c5911cCy2;
}
}, new fSQ(c5911cCy2) { // from class: o.cCE
private C5911cCy a;
@Override // o.fSQ
public final void c(Object obj) {
C5911cCy.a(this.a, (Throwable) obj);
}
{
this.a = c5911cCy2;
}
});
((Biz) this.c.e()).c.setOnClickListener(new View.OnClickListener(this) { // from class: o.fxU
private RemittanceLandingFragment d;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
RemittanceLandingFragment.a(this.d);
}
{
this.d = this;
}
});
v("outward_remittance_start");
}
@Override // o.InterfaceC9613dmz
public final void d() {
RemittanceTermsAndConsActivity.RVV rvv = RemittanceTermsAndConsActivity.k;
startActivityForResult(new Intent(getContext(), (Class<?>) RemittanceTermsAndConsActivity.class), 1001);
}
/* JADX WARN: Code restructure failed: missing block: B:7:0x001c, code lost:
if (r0 == null) goto L10;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r2v6, types: [android.os.Parcelable] */
@Override // o.InterfaceC9613dmz
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a() {
/*
r7 = this;
android.os.Bundle r0 = r7.getArguments()
r1 = 0
if (r0 == 0) goto L1e
java.lang.String r2 = "STATE"
r3 = -1
int r0 = r0.getInt(r2, r3)
if (r0 < 0) goto L19
o.VD[] r2 = o.VD.values()
r0 = r2[r0]
java.lang.Enum r0 = (java.lang.Enum) r0
goto L1a
L19:
r0 = r1
L1a:
o.VD r0 = (o.VD) r0
if (r0 != 0) goto L20
L1e:
o.VD r0 = o.VD.NORMAL
L20:
int[] r2 = com.scb.phone.view.fragment.remittance.RemittanceLandingFragment.IeS.e
int r3 = r0.ordinal()
r2 = r2[r3]
r3 = 1
if (r2 == r3) goto L8a
r3 = 2
java.lang.String r4 = ""
if (r2 == r3) goto L71
android.os.Bundle r2 = r7.getArguments()
if (r2 == 0) goto L57
int r3 = android.os.Build.VERSION.SDK_INT
r5 = 33
java.lang.String r6 = "INPUT_DISPLAY"
if (r3 < r5) goto L47
java.lang.Class<o.Vz> r1 = o.C1115Vz.class
java.lang.Object r1 = r2.getParcelable(r6, r1)
android.os.Parcelable r1 = (android.os.Parcelable) r1
goto L55
L47:
android.os.Parcelable r2 = r2.getParcelable(r6)
boolean r3 = r2 instanceof o.C1115Vz
if (r3 != 0) goto L50
goto L51
L50:
r1 = r2
L51:
o.Vz r1 = (o.C1115Vz) r1
android.os.Parcelable r1 = (android.os.Parcelable) r1
L55:
o.Vz r1 = (o.C1115Vz) r1
L57:
com.scb.phone.view.activity.remittance.RemittanceInputActivity$IeS r2 = com.scb.phone.view.activity.remittance.RemittanceInputActivity.m
android.content.Context r2 = r7.requireContext()
o.C14957gcv.c(r2, r4)
android.content.Intent r0 = com.scb.phone.view.activity.remittance.RemittanceInputActivity.IeS.aly_(r2, r0, r1)
r7.startActivity(r0)
androidx.fragment.app.FragmentActivity r0 = r7.getActivity()
if (r0 == 0) goto L9e
r0.finish()
return
L71:
com.scb.phone.view.activity.remittance.RemittanceAddFavouriteInputActivity$LWm r0 = com.scb.phone.view.activity.remittance.RemittanceAddFavouriteInputActivity.k
android.content.Context r0 = r7.requireContext()
o.C14957gcv.c(r0, r4)
o.C14957gcv.e(r0, r4)
android.content.Intent r1 = new android.content.Intent
java.lang.Class<com.scb.phone.view.activity.remittance.RemittanceAddFavouriteInputActivity> r2 = com.scb.phone.view.activity.remittance.RemittanceAddFavouriteInputActivity.class
r1.<init>(r0, r2)
r0 = 1002(0x3ea, float:1.404E-42)
r7.startActivityForResult(r1, r0)
return
L8a:
android.content.Context r0 = r7.requireContext()
android.content.Intent r0 = com.scb.phone.view.activity.transferandpay.FavouriteSelectedActivity.ams_(r0)
r7.startActivity(r0)
androidx.fragment.app.FragmentActivity r0 = r7.getActivity()
if (r0 == 0) goto L9e
r0.finish()
L9e:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.remittance.RemittanceLandingFragment.a():void");
}
@Override // o.InterfaceC9613dmz
public final void b() {
RemittanceCoachmarkActivity.HBt hBt = RemittanceCoachmarkActivity.k;
startActivityForResult(new Intent(getContext(), (Class<?>) RemittanceCoachmarkActivity.class), 1000);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityResult(int i, int i2, Intent intent) {
FragmentActivity activity;
switch (i) {
case 1000:
if (i2 == -1) {
C5911cCy c5911cCy = this.presenter;
if (c5911cCy == null) {
C14957gcv.a("");
c5911cCy = null;
}
c5911cCy.b();
break;
}
break;
case 1001:
if (i2 == -1) {
a();
break;
} else if (i2 == 0 && (activity = getActivity()) != null) {
activity.finish();
break;
}
break;
case 1002:
FragmentActivity activity2 = getActivity();
if (activity2 != null) {
activity2.setResult(i2);
}
FragmentActivity activity3 = getActivity();
if (activity3 != null) {
activity3.finish();
break;
}
break;
}
super.onActivityResult(i, i2, intent);
}
@Override // o.InterfaceC9613dmz
public final void c() {
NestedScrollView nestedScrollView = ((Biz) this.c.e()).d;
C14957gcv.c(nestedScrollView, "");
NestedScrollView nestedScrollView2 = nestedScrollView;
C14957gcv.e(nestedScrollView2, "");
nestedScrollView2.setVisibility(0);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
C5911cCy c5911cCy = this.presenter;
if (c5911cCy == null) {
C14957gcv.a("");
c5911cCy = null;
}
c5911cCy.w_();
super.onDestroyView();
}
public static /* synthetic */ void a(RemittanceLandingFragment remittanceLandingFragment) {
C14957gcv.e(remittanceLandingFragment, "");
final C5911cCy c5911cCy = remittanceLandingFragment.presenter;
if (c5911cCy == null) {
C14957gcv.a("");
c5911cCy = null;
}
if (c5911cCy.c.d.f()) {
c5911cCy.b();
return;
}
ZI.IeS ieS = new ZI.IeS(c5911cCy) { // from class: o.cCA
private C5911cCy c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5911cCy.a(this.c, (InterfaceC9613dmz) obj);
}
{
this.c = c5911cCy;
}
};
if (c5911cCy.f != 0) {
ieS.e(c5911cCy.f);
}
}
/* loaded from: classes5.dex */
public final /* synthetic */ class IeS {
public static final int[] e;
static {
int[] iArr = new int[VD.values().length];
try {
iArr[VD.FAVOURITE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[VD.ADD_FAVOURITE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
e = iArr;
}
}
}