what-the-bank/sources/com/scb/phone/view/fragment/sme/deals/DealsBuySuccessFragment.java

167 lines
5.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.sme.deals;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.activity.landingpage.PartnerWebViewActivity;
import com.scb.phone.view.fragment.sme.deals.DealsBuySuccessFragment;
import o.C0915Rl;
import o.C6126cJg;
import o.EW;
import o.InterfaceC13391fZD;
import o.InterfaceC9091ddF;
import o.ZI;
import o.pug;
import o.pyT;
/* loaded from: classes5.dex */
public class DealsBuySuccessFragment extends Hilt_DealsBuySuccessFragment implements InterfaceC9091ddF {
private ExtraViewHolder d;
@InterfaceC13391fZD
public C6126cJg dealsBuySuccessPresenter;
/* loaded from: classes5.dex */
public class ExtraViewHolder_ViewBinding implements Unbinder {
private ExtraViewHolder e;
public ExtraViewHolder_ViewBinding(ExtraViewHolder extraViewHolder, View view) {
this.e = extraViewHolder;
extraViewHolder.extraButton = (Button) pyT.e(view, R.id.deals_extra_button, "field 'extraButton'", Button.class);
extraViewHolder.extratext = (TextView) pyT.e(view, R.id.deals_extra_text, "field 'extratext'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ExtraViewHolder extraViewHolder = this.e;
if (extraViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
extraViewHolder.extraButton = null;
extraViewHolder.extratext = null;
}
}
public static DealsBuySuccessFragment e(EW ew) {
DealsBuySuccessFragment dealsBuySuccessFragment = new DealsBuySuccessFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.PURCHASE_SUCCESS_DISPLAY", ew);
dealsBuySuccessFragment.setArguments(bundle);
return dealsBuySuccessFragment;
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
ExtraViewHolder extraViewHolder = new ExtraViewHolder(this, LayoutInflater.from(getContext()).inflate(R.layout.2131560080, (ViewGroup) this.extraContainer, true));
this.d = extraViewHolder;
extraViewHolder.extraButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.fBp
private DealsBuySuccessFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DealsBuySuccessFragment.a(this.c);
}
{
this.c = this;
}
});
l();
this.dealsBuySuccessPresenter.e((C6126cJg) this);
C6126cJg c6126cJg = this.dealsBuySuccessPresenter;
int i = c6126cJg.c.d.d().h;
if (i == 0) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cJe
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9091ddF) obj).g();
}
};
if (c6126cJg.f != 0) {
ieS.e(c6126cJg.f);
}
} else if (i == 1) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cJn
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9091ddF) obj).f();
}
};
if (c6126cJg.f != 0) {
ieS2.e(c6126cJg.f);
}
}
return onCreateView;
}
@Override // o.InterfaceC9091ddF
public final void d(C0915Rl c0915Rl) {
Context context = getContext();
if (context != null) {
PartnerWebViewActivity.c(context, c0915Rl);
}
}
@Override // o.InterfaceC9091ddF
public final void g() {
this.d.extratext.setText(R.string.deals_buy_success_extra_text_sme_deals);
}
@Override // o.InterfaceC9091ddF
public final void f() {
this.d.extratext.setText(R.string.deals_buy_success_extra_text_deal_of_the_day);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
this.dealsBuySuccessPresenter.w_();
super.onDestroyView();
}
/* loaded from: classes5.dex */
protected class ExtraViewHolder {
private DealsBuySuccessFragment a;
@BindView
Button extraButton;
@BindView
TextView extratext;
ExtraViewHolder(DealsBuySuccessFragment dealsBuySuccessFragment, View view) {
this.a = dealsBuySuccessFragment;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void a(DealsBuySuccessFragment dealsBuySuccessFragment) {
final C6126cJg c6126cJg = dealsBuySuccessFragment.dealsBuySuccessPresenter;
ZI.IeS ieS = new ZI.IeS(c6126cJg) { // from class: o.cJm
private C6126cJg a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6126cJg.b(this.a, (InterfaceC9091ddF) obj);
}
{
this.a = c6126cJg;
}
};
if (c6126cJg.f != 0) {
ieS.e(c6126cJg.f);
}
dealsBuySuccessFragment.c("billpay_slip", new pug("source", "sme_deal"), new pug("subtype", "deals"), new pug("button", "smedeal_purchase_history"));
}
}