what-the-bank/sources/com/scb/phone/view/fragment/hml/submission/HmlDocumentKofaxInstruction...

249 lines
7.5 KiB
Java

package com.scb.phone.view.fragment.hml.submission;
import android.content.Context;
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.ImageView;
import androidx.fragment.app.FragmentActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.VideoPlaybackActivity;
import o.C0779Ok;
import o.C12891fKc;
import o.C14957gcv;
import o.C16157lj;
import o.C17176ua;
import o.C5738byi;
import o.InterfaceC13391fZD;
import o.InterfaceC17396wQp;
import o.InterfaceC9313dhQ;
import o.ZI;
/* loaded from: classes5.dex */
public final class HmlDocumentKofaxInstructionFragment extends Hilt_HmlDocumentKofaxInstructionFragment implements InterfaceC9313dhQ.RVV {
public static final IeS d = new IeS(0);
@BindView
public ImageView instructionVideoImage;
@BindView
public Button nextButton;
@InterfaceC13391fZD
public C5738byi presenter;
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@OnClick
public final void onNextButtonClicked() {
C5738byi c5738byi = this.presenter;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
if (c5738byi.d) {
c5738byi.b();
} else {
if (c5738byi.c) {
return;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.byf
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9313dhQ.RVV) obj).e();
}
};
if (c5738byi.f != 0) {
ieS.e(c5738byi.f);
}
}
}
@OnClick
public final void onVideoImageClicked() {
C5738byi c5738byi = this.presenter;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
c5738byi.b();
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
String b_;
String b_2;
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559571, viewGroup, false);
ButterKnife.c(this, inflate);
C5738byi c5738byi = this.presenter;
final C5738byi c5738byi2 = null;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
c5738byi.e((C5738byi) this);
C5738byi c5738byi3 = this.presenter;
if (c5738byi3 != null) {
c5738byi2 = c5738byi3;
} else {
C14957gcv.a("");
}
C17176ua c17176ua = c5738byi2.b;
if ("th".equalsIgnoreCase((String) C16157lj.c(new Object[]{c17176ua}, 1165015125, -1165015124, System.identityHashCode(c17176ua)))) {
b_ = c17176ua.b_("/10X1/salarySlipKofax/instruction/videocover_th.png");
} else {
b_ = c17176ua.b_("/10X1/salarySlipKofax/instruction/videocover_en.png");
}
C14957gcv.c((Object) b_, "");
if ("th".equalsIgnoreCase((String) C16157lj.c(new Object[]{c17176ua}, 1165015125, -1165015124, System.identityHashCode(c17176ua)))) {
b_2 = c17176ua.b_("/10X1/salarySlipKofax/instruction/instruction_th.mp4");
} else {
b_2 = c17176ua.b_("/10X1/salarySlipKofax/instruction/instruction_en.mp4");
}
C14957gcv.c((Object) b_2, "");
c5738byi2.e = new C0779Ok(b_, b_2);
ZI.IeS ieS = new ZI.IeS(c5738byi2) { // from class: o.bye
private C5738byi a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5738byi.c(this.a, (InterfaceC9313dhQ.RVV) obj);
}
{
this.a = c5738byi2;
}
};
if (c5738byi2.f != 0) {
ieS.e(c5738byi2.f);
}
return inflate;
}
@Override // o.InterfaceC9313dhQ.LWm
public final void b() {
C5738byi c5738byi = this.presenter;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.byn
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9313dhQ.RVV) obj).c();
}
};
if (c5738byi.f != 0) {
ieS.e(c5738byi.f);
}
}
@Override // o.InterfaceC9313dhQ.RVV
public final void d(C0779Ok c0779Ok) {
C14957gcv.e(c0779Ok, "");
ImageView imageView = this.instructionVideoImage;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
C12891fKc.azm_(R.drawable.instruction_video_cover, imageView, c0779Ok.b);
}
@Override // o.InterfaceC9313dhQ.RVV
public final void c() {
FragmentActivity activity = getActivity();
if (activity != null) {
activity.finish();
}
}
@Override // o.InterfaceC9313dhQ.RVV
public final void e() {
InterfaceC17396wQp activity = getActivity();
InterfaceC9313dhQ.jbe jbeVar = activity instanceof InterfaceC9313dhQ.jbe ? (InterfaceC9313dhQ.jbe) activity : null;
if (jbeVar != null) {
jbeVar.e();
}
}
@Override // o.InterfaceC9313dhQ.LWm
public final void d() {
InterfaceC17396wQp activity = getActivity();
InterfaceC9313dhQ.jbe jbeVar = activity instanceof InterfaceC9313dhQ.jbe ? (InterfaceC9313dhQ.jbe) activity : null;
if (jbeVar != null) {
jbeVar.d("p10x1_document_salaryslip_kofax_instruction");
}
}
@Override // o.InterfaceC9313dhQ.RVV
public final void d(String str) {
C14957gcv.e(str, "");
Context context = getContext();
if (context != null) {
VideoPlaybackActivity.RVV rvv = VideoPlaybackActivity.f6543o;
C14957gcv.e(context, "");
C14957gcv.e(str, "");
Intent intent = new Intent(context, (Class<?>) VideoPlaybackActivity.class);
intent.putExtra("VIDEO_URL", str);
startActivity(intent);
}
}
@Override // o.InterfaceC9313dhQ.RVV
public final void h() {
Button button = this.nextButton;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setText(R.string.auto_kofax_instruction_watch);
}
@Override // o.InterfaceC9313dhQ.RVV
public final void a() {
Button button = this.nextButton;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setText(R.string.auto_kofax_instruction_next);
}
@Override // androidx.fragment.app.Fragment
public final void onResume() {
C5738byi c5738byi = this.presenter;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
c5738byi.c = false;
super.onResume();
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
C5738byi c5738byi = this.presenter;
if (c5738byi == null) {
C14957gcv.a("");
c5738byi = null;
}
c5738byi.w_();
super.onDestroy();
}
}