package com.scb.phone.view.fragment.transferandpay; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import com.scb.phone.R; import com.scb.phone.view.custom.transferandpay.CustomMovieTicket; import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget; import o.C1191Xp; import o.C6583cXR; import o.XF; import o.fHN; /* loaded from: classes5.dex */ public class ScreenshotFragment extends Hilt_ScreenshotFragment implements fHN { @BindView RecyclerView additionalRecyclerView; @BindView ImageView leftCircleDivider; @BindView CustomMovieTicket movieTicket; @BindView ImageView rightCircleDivider; @BindView ViewGroup ticketDivider; @Override // o.fHN public final void s() { } @Override // com.scb.phone.view.fragment.transferandpay.BaseSuccessFragment public final void a(C1191Xp c1191Xp, View view, Context context) { char c; super.a(c1191Xp, view, context); this.customTarget.setAddFavoriteButtonVisible(false); CustomTransferAndPayTarget customTransferAndPayTarget = this.customTarget; customTransferAndPayTarget.mFavouriteIcon.setVisibility(8); customTransferAndPayTarget.mFavouriteName.setVisibility(8); String j = c1191Xp.p.j(); j.hashCode(); int hashCode = j.hashCode(); char c2 = 65535; if (hashCode == -486974465) { if (j.equals("BILLPAYMENT")) { c = 0; } c = 65535; } else if (hashCode != 1027001327) { if (hashCode == 2063509483 && j.equals("TRANSFER")) { c = 2; } c = 65535; } else { if (j.equals("BNPL_PAYMENT")) { c = 1; } c = 65535; } if (c == 0 || c == 1 || c == 2) { if (c1191Xp.p.P != null) { this.customTarget.setAddFavoriteButtonVisible(false); this.userNote.divider.setVisibility(8); this.userNote.bottomSpace.setVisibility(8); this.movieTicket.setVisibility(0); this.ticketDivider.setVisibility(0); XF xf = c1191Xp.p.P; this.movieTicket.setQrCode(c1191Xp.n); this.movieTicket.setPoster(xf.j); this.movieTicket.setTitle(xf.m); this.movieTicket.setCinemaLocation(xf.e); this.movieTicket.setShowtime(xf.a); this.movieTicket.setCinemaNumber(xf.b); this.movieTicket.setSeat(xf.l); this.movieTicket.setBookingId(c1191Xp.i); } else if (c1191Xp.n != null && !c1191Xp.n.isEmpty()) { this.slipQRSection.setVisibility(0); Bitmap VY_ = C6583cXR.VY_(c1191Xp.n); if (VY_ == null) { this.slipQRCodeImageView.setVisibility(8); if ("TRANSFER".equals(c1191Xp.p.j())) { this.slipQRCodeDescriptionTextView.setText(context.getString(R.string.slip_qr_code_no_qr_code_transfer_header)); } else if ("BILLPAYMENT".equals(c1191Xp.p.j()) || "BNPL_PAYMENT".equals(c1191Xp.p.j())) { this.slipQRCodeDescriptionTextView.setText(context.getString(R.string.slip_qr_code_bill_payment_header)); } } else { if (!"TRANSFER".equals(c1191Xp.p.j())) { if ("BILLPAYMENT".equals(c1191Xp.p.j()) || "BNPL_PAYMENT".equals(c1191Xp.p.j())) { this.slipQRCodeDescriptionTextView.setText(context.getString(R.string.slip_qr_code_bill_payment_header)); } } else if (c1191Xp.q != null) { this.slipQRCodeDescriptionTextView.setText(c1191Xp.q); } else { this.slipQRCodeDescriptionTextView.setText(context.getString(R.string.slip_qr_code_transfer_header)); } this.slipQRCodeImageView.setImageBitmap(VY_); } } } String j2 = c1191Xp.p.j(); j2.hashCode(); switch (j2.hashCode()) { case -2142190485: if (j2.equals("E_DONATION_FUNCTION")) { c2 = 0; break; } break; case -1927841485: if (j2.equals("PP_SCB")) { c2 = 1; break; } break; case -1844260907: if (j2.equals("rtp.payer")) { c2 = 2; break; } break; case -562916618: if (j2.equals("LOANPAYMENT")) { c2 = 3; break; } break; case -486974465: if (j2.equals("BILLPAYMENT")) { c2 = 4; break; } break; case 51621: if (j2.equals("3RD")) { c2 = 5; break; } break; case 80008848: if (j2.equals("TOPUP")) { c2 = 6; break; } break; case 632725409: if (j2.equals("BSCANC_SOURCE_FUNCTION")) { c2 = 7; break; } break; case 739626964: if (j2.equals("PREPAID_CARD_CASHOUT_TARGET")) { c2 = '\b'; break; } break; case 1027001327: if (j2.equals("BNPL_PAYMENT")) { c2 = '\t'; break; } break; case 1988312228: if (j2.equals("PROMPTPAY")) { c2 = '\n'; break; } break; case 2063509483: if (j2.equals("TRANSFER")) { c2 = 11; break; } break; } switch (c2) { case 0: case 2: case 3: case 4: case 6: case 7: case '\b': case '\t': case '\n': case 11: if (b(c1191Xp)) { this.customFees.setVisibility(8); this.customAmount.mDividerView.setVisibility(!TextUtils.isEmpty(c1191Xp.p.aH) || !TextUtils.isEmpty(c1191Xp.p.O) || c1191Xp.p.i() != null || c1191Xp.p.C != null ? 0 : 8); if ("LOANPAYMENT".equalsIgnoreCase(c1191Xp.p.j())) { this.customAmount.mBottomSpace.setVisibility(c1191Xp.p.j == null ? 0 : 8); break; } this.customAmount.mBottomSpace.setVisibility(0); break; } break; case 1: case 5: if (b(c1191Xp)) { this.customFees.setVisibility(8); this.customAmount.mDividerView.setVisibility(0); this.customAmount.mBottomSpace.setVisibility(0); break; } break; default: if (b(c1191Xp)) { this.customFees.setVisibility(8); this.customAmount.mDividerView.setVisibility(TextUtils.isEmpty(c1191Xp.p.aH) ^ true ? 0 : 8); this.customAmount.mBottomSpace.setVisibility(0); break; } break; } if (TextUtils.isEmpty(c1191Xp.n) && c1191Xp.j != null && !c1191Xp.j.b.isEmpty()) { if (!"BILLPAYMENT".equalsIgnoreCase(c1191Xp.p.j()) || !"BNPL_PAYMENT".equals(c1191Xp.p.j())) { boolean d = d(c1191Xp); if (this.customFees.getVisibility() == 0) { this.customFees.mDividerView.setVisibility(this.userNote.getVisibility() != 8 || this.billerNote.getVisibility() != 8 ? 0 : 8); } else { this.customAmount.mDividerView.setVisibility(this.userNote.getVisibility() != 8 || this.billerNote.getVisibility() != 8 ? 0 : 8); this.customAmount.setFullDivider(true); this.customAmount.mBottomSpace.setVisibility(0); this.userNote.divider.setVisibility(8); } this.userNote.divider.setVisibility(d ^ true ? 0 : 8); } e(context, this.additionalRecyclerView, c1191Xp.j.b, this, true); } if (c1191Xp.p.P == null && (c1191Xp.p.aa == null || c1191Xp.p.aa.isEmpty())) { return; } Drawable background = view.getBackground(); if (background instanceof ColorDrawable) { ColorDrawable colorDrawable = (ColorDrawable) background; this.leftCircleDivider.setColorFilter(colorDrawable.getColor()); this.rightCircleDivider.setColorFilter(colorDrawable.getColor()); } } private static boolean b(C1191Xp c1191Xp) { return c1191Xp.p == null || TextUtils.isEmpty(c1191Xp.p.m()) || c1191Xp.p.m().equals("0.00"); } }