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

377 lines
13 KiB
Java

package com.scb.phone.view.fragment.remittance;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.scb.phone.R;
import com.scb.phone.view.custom.transferandpay.CustomNoteItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget;
import o.C1114Vy;
import o.C12891fKc;
import o.C14957gcv;
import o.YHT;
/* loaded from: classes5.dex */
public class BaseRemittanceDetailsFragment extends Hilt_BaseRemittanceDetailsFragment {
private LinearLayout c;
private TextView d;
private TextView f;
private TextView g;
private CustomTransferAndPayItem h;
private LinearLayout i;
private LinearLayout j;
private CustomNoteItem k;
private CustomTransferAndPaySource l;
private CustomNoteItem m;
private CustomNoteItem n;
/* renamed from: o, reason: collision with root package name */
private CustomNoteItem f8070o;
private CustomTransferAndPayTarget p;
private View q;
private ImageView r;
private boolean s;
private CustomNoteItem t;
private View x;
/* JADX INFO: Access modifiers changed from: protected */
public final CustomTransferAndPaySource j() {
CustomTransferAndPaySource customTransferAndPaySource = this.l;
if (customTransferAndPaySource != null) {
return customTransferAndPaySource;
}
C14957gcv.a("");
return null;
}
/* JADX INFO: Access modifiers changed from: protected */
public final CustomTransferAndPayTarget g() {
CustomTransferAndPayTarget customTransferAndPayTarget = this.p;
if (customTransferAndPayTarget != null) {
return customTransferAndPayTarget;
}
C14957gcv.a("");
return null;
}
/* JADX INFO: Access modifiers changed from: protected */
public final CustomNoteItem i() {
CustomNoteItem customNoteItem = this.n;
if (customNoteItem != null) {
return customNoteItem;
}
C14957gcv.a("");
return null;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void axj_(YHT yht, ImageView imageView) {
C14957gcv.e(yht, "");
C14957gcv.e(imageView, "");
CustomTransferAndPaySource customTransferAndPaySource = yht.j;
C14957gcv.c(customTransferAndPaySource, "");
C14957gcv.e(customTransferAndPaySource, "");
this.l = customTransferAndPaySource;
CustomTransferAndPayTarget customTransferAndPayTarget = yht.k;
C14957gcv.c(customTransferAndPayTarget, "");
C14957gcv.e(customTransferAndPayTarget, "");
this.p = customTransferAndPayTarget;
CustomTransferAndPayItem customTransferAndPayItem = yht.c;
C14957gcv.c(customTransferAndPayItem, "");
C14957gcv.e(customTransferAndPayItem, "");
this.h = customTransferAndPayItem;
LinearLayout linearLayout = yht.b;
C14957gcv.c(linearLayout, "");
C14957gcv.e(linearLayout, "");
this.j = linearLayout;
TextView textView = yht.q;
C14957gcv.c(textView, "");
C14957gcv.e(textView, "");
this.g = textView;
LinearLayout linearLayout2 = yht.a;
C14957gcv.c(linearLayout2, "");
C14957gcv.e(linearLayout2, "");
this.c = linearLayout2;
TextView textView2 = yht.f8459o;
C14957gcv.c(textView2, "");
C14957gcv.e(textView2, "");
this.d = textView2;
LinearLayout linearLayout3 = yht.d;
C14957gcv.c(linearLayout3, "");
C14957gcv.e(linearLayout3, "");
this.i = linearLayout3;
TextView textView3 = yht.s;
C14957gcv.c(textView3, "");
C14957gcv.e(textView3, "");
this.f = textView3;
CustomNoteItem customNoteItem = yht.h;
C14957gcv.c(customNoteItem, "");
C14957gcv.e(customNoteItem, "");
this.f8070o = customNoteItem;
CustomNoteItem customNoteItem2 = yht.i;
C14957gcv.c(customNoteItem2, "");
C14957gcv.e(customNoteItem2, "");
this.m = customNoteItem2;
CustomNoteItem customNoteItem3 = yht.f;
C14957gcv.c(customNoteItem3, "");
C14957gcv.e(customNoteItem3, "");
this.k = customNoteItem3;
CustomNoteItem customNoteItem4 = yht.n;
C14957gcv.c(customNoteItem4, "");
C14957gcv.e(customNoteItem4, "");
this.t = customNoteItem4;
CustomNoteItem customNoteItem5 = yht.e;
C14957gcv.c(customNoteItem5, "");
C14957gcv.e(customNoteItem5, "");
this.n = customNoteItem5;
View view = yht.l;
C14957gcv.c(view, "");
C14957gcv.e(view, "");
this.x = view;
View view2 = yht.m;
C14957gcv.c(view2, "");
C14957gcv.e(view2, "");
this.q = view2;
C14957gcv.e(imageView, "");
this.r = imageView;
}
/* JADX INFO: Access modifiers changed from: protected */
public final void e(C1114Vy c1114Vy) {
String str;
String str2;
C14957gcv.e(c1114Vy, "");
CustomTransferAndPayItem customTransferAndPayItem = this.h;
ImageView imageView = null;
if (customTransferAndPayItem == null) {
C14957gcv.a("");
customTransferAndPayItem = null;
}
String str3 = c1114Vy.c;
if (!TextUtils.isEmpty(str3)) {
customTransferAndPayItem.setVisibility(0);
customTransferAndPayItem.setValue(str3);
}
LinearLayout linearLayout = this.j;
if (linearLayout == null) {
C14957gcv.a("");
linearLayout = null;
}
TextView textView = this.g;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
String str4 = c1114Vy.a;
if (!TextUtils.isEmpty(str4)) {
linearLayout.setVisibility(0);
textView.setText(str4);
}
LinearLayout linearLayout2 = this.c;
if (linearLayout2 == null) {
C14957gcv.a("");
linearLayout2 = null;
}
TextView textView2 = this.d;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
String str5 = c1114Vy.e;
if (!TextUtils.isEmpty(str5)) {
linearLayout2.setVisibility(0);
textView2.setText(str5);
}
LinearLayout linearLayout3 = this.i;
if (linearLayout3 == null) {
C14957gcv.a("");
linearLayout3 = null;
}
TextView textView3 = this.f;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
String str6 = c1114Vy.f;
if (!TextUtils.isEmpty(str6)) {
linearLayout3.setVisibility(0);
textView3.setText(str6);
}
CustomNoteItem customNoteItem = this.f8070o;
if (customNoteItem == null) {
C14957gcv.a("");
customNoteItem = null;
}
if (!this.s) {
str = c1114Vy.l;
} else {
str = c1114Vy.k;
}
a(customNoteItem, R.string.remittance_review_recipient_personal_detail, str, !this.s);
CustomNoteItem customNoteItem2 = this.m;
if (customNoteItem2 == null) {
C14957gcv.a("");
customNoteItem2 = null;
}
a(customNoteItem2, R.string.remittance_review_recipient_address, c1114Vy.f8427o, !this.s);
CustomNoteItem customNoteItem3 = this.m;
if (customNoteItem3 == null) {
C14957gcv.a("");
customNoteItem3 = null;
}
customNoteItem3.topSpace.setVisibility(this.s ^ true ? 0 : 8);
CustomNoteItem customNoteItem4 = this.k;
if (customNoteItem4 == null) {
C14957gcv.a("");
customNoteItem4 = null;
}
if (!this.s) {
str2 = c1114Vy.m;
} else {
str2 = c1114Vy.n;
}
a(customNoteItem4, R.string.remittance_review_recipient_contact_details, str2, !this.s);
CustomNoteItem customNoteItem5 = this.k;
if (customNoteItem5 == null) {
C14957gcv.a("");
customNoteItem5 = null;
}
customNoteItem5.topSpace.setVisibility(this.s ^ true ? 0 : 8);
CustomNoteItem customNoteItem6 = this.t;
if (customNoteItem6 == null) {
C14957gcv.a("");
customNoteItem6 = null;
}
a(customNoteItem6, R.string.remittance_review_transaction_details, c1114Vy.v, !this.s);
CustomNoteItem customNoteItem7 = this.t;
if (customNoteItem7 == null) {
C14957gcv.a("");
customNoteItem7 = null;
}
customNoteItem7.topSpace.setVisibility(this.s ^ true ? 0 : 8);
CustomNoteItem customNoteItem8 = this.t;
if (customNoteItem8 == null) {
C14957gcv.a("");
customNoteItem8 = null;
}
customNoteItem8.setFullDivider(this.s);
CustomNoteItem customNoteItem9 = this.n;
if (customNoteItem9 == null) {
C14957gcv.a("");
customNoteItem9 = null;
}
a(customNoteItem9, R.string.remittance_review_note, c1114Vy.h, !this.s);
if (this.s) {
CustomNoteItem customNoteItem10 = this.n;
if (customNoteItem10 == null) {
C14957gcv.a("");
customNoteItem10 = null;
}
customNoteItem10.topSpace.setVisibility(this.s ^ true ? 0 : 8);
CustomTransferAndPayItem customTransferAndPayItem2 = this.h;
if (customTransferAndPayItem2 == null) {
C14957gcv.a("");
customTransferAndPayItem2 = null;
}
customTransferAndPayItem2.mDividerView.setVisibility(8);
CustomTransferAndPayItem customTransferAndPayItem3 = this.h;
if (customTransferAndPayItem3 == null) {
C14957gcv.a("");
customTransferAndPayItem3 = null;
}
customTransferAndPayItem3.mBottomSpace.setVisibility(8);
View view = this.x;
if (view == null) {
C14957gcv.a("");
view = null;
}
view.setVisibility(8);
View view2 = this.q;
if (view2 == null) {
C14957gcv.a("");
view2 = null;
}
view2.setVisibility(8);
LinearLayout linearLayout4 = this.c;
if (linearLayout4 == null) {
C14957gcv.a("");
linearLayout4 = null;
}
linearLayout4.setPadding(0, 0, 0, 0);
LinearLayout linearLayout5 = this.i;
if (linearLayout5 == null) {
C14957gcv.a("");
linearLayout5 = null;
}
linearLayout5.setPadding(0, 0, 0, 0);
CustomNoteItem customNoteItem11 = this.n;
if (customNoteItem11 == null) {
C14957gcv.a("");
customNoteItem11 = null;
}
customNoteItem11.d();
CustomNoteItem customNoteItem12 = this.f8070o;
if (customNoteItem12 == null) {
C14957gcv.a("");
customNoteItem12 = null;
}
customNoteItem12.d();
CustomNoteItem customNoteItem13 = this.m;
if (customNoteItem13 == null) {
C14957gcv.a("");
customNoteItem13 = null;
}
customNoteItem13.d();
CustomNoteItem customNoteItem14 = this.k;
if (customNoteItem14 == null) {
C14957gcv.a("");
customNoteItem14 = null;
}
customNoteItem14.d();
CustomNoteItem customNoteItem15 = this.t;
if (customNoteItem15 == null) {
C14957gcv.a("");
customNoteItem15 = null;
}
customNoteItem15.d();
}
if (TextUtils.isEmpty(c1114Vy.r)) {
return;
}
ImageView imageView2 = this.r;
if (imageView2 == null) {
C14957gcv.a("");
imageView2 = null;
}
imageView2.setVisibility(0);
if (getContext() != null) {
ImageView imageView3 = this.r;
if (imageView3 != null) {
imageView = imageView3;
} else {
C14957gcv.a("");
}
C12891fKc.azE_(imageView, c1114Vy.r);
}
}
private final void a(CustomNoteItem customNoteItem, int i, String str, boolean z) {
if (TextUtils.isEmpty(str)) {
return;
}
customNoteItem.setVisibility(0);
customNoteItem.setTitle(getString(i));
customNoteItem.setText(str);
customNoteItem.divider.setVisibility(z ? 0 : 8);
}
/* JADX INFO: Access modifiers changed from: protected */
public final void h() {
this.s = true;
}
}