package com.scb.phone.view.fragment.sme.gifting; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import com.huawei.hms.support.feature.result.CommonConstant; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.sme.gifting.GiftingOpenedActivity; import com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter; import java.util.List; import o.C12511ezb; import o.InterfaceC13391fZD; import o.InterfaceC6680cZw; import o.WI; import o.cKJ; import o.cKL; import o.pug; /* loaded from: classes5.dex */ public class ReceiveFragment extends Hilt_ReceiveFragment implements InterfaceC6680cZw, C12511ezb.HBt { @InterfaceC13391fZD public cKL giftsReceivePresenter; @Override // com.scb.phone.view.fragment.sme.gifting.GiftingFragment protected final int d() { return R.string.gifts_receive_empty_msg; } @Override // com.scb.phone.view.fragment.sme.gifting.GiftingFragment protected final GiftingBaseListAdapter e(List list) { return new C12511ezb(getContext(), list, this); } @Override // com.scb.phone.view.fragment.sme.gifting.GiftingFragment public final /* bridge */ /* synthetic */ cKJ g() { return this.giftsReceivePresenter; } @Override // o.C12511ezb.HBt public final void d(WI wi) { String str; if (wi.f8430o != null) { String str2 = ""; if (wi.f8430o.equals("M")) { str = "money"; } else { str = wi.f8430o.equals("P") ? "present" : ""; } if (wi.t.e.equals("OPEN NOW")) { str2 = "not_open"; } else if (wi.t.e.equals("OPENED")) { str2 = "opened"; } if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(wi.g)) { ((BaseActivity) getActivity()).scbAnalytics.e("gift_received_slip", new pug("gift_type", str), new pug(CommonConstant.KEY_STATUS, str2), new pug("gift_id", wi.g)); } } Intent intent = new Intent(getContext(), (Class) GiftingOpenedActivity.class); Bundle bundle = new Bundle(); bundle.putParcelable("EXTRA_GIFT_STATUS_SELECTED", wi); intent.putExtras(bundle); startActivity(intent); } }