package o; import android.content.Context; import android.util.Base64; import androidx.fragment.app.Fragment; import com.scb.phone.view.fragment.creditcard.InformationTabFragment; import com.scb.phone.view.fragment.creditcard.PointTabFragment; import com.scb.phone.view.fragment.creditcard.SettingTabFragment; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; /* renamed from: o.esu, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12159esu extends MoT { private static int f = 1; private static int g = 0; private static byte h = 6; private Context a; private boolean b; private List c; private String d; private C0367Fb e; private int[] i; private List j; @Override // o.WYJ public final int getCount() { return 3; } private void k(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ h); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } public C12159esu(yRS yrs, Context context, C0367Fb c0367Fb, List list, String str, List list2, boolean z) { super(yrs); this.i = new int[]{com.scb.phone.R.string.credit_card_detail_tab, com.scb.phone.R.string.credit_card_point_tab, com.scb.phone.R.string.credit_card_setting_tab}; this.a = context; this.e = c0367Fb; this.c = list; this.d = str; this.j = list2; this.b = z; } @Override // o.MoT public final Fragment b(int i) { if (i == 0) { return InformationTabFragment.a(this.e, this.d); } if (i == 1) { return PointTabFragment.a(this.e, new ArrayList(this.c)); } if (i != 2) { return null; } return SettingTabFragment.b(this.e, new ArrayList(this.c), new ArrayList(this.j), this.b); } @Override // o.WYJ public final CharSequence getPageTitle(int i) { int i2 = 2 % 2; String string = this.a.getString(this.i[i]); if (!string.startsWith(",*,)")) { return string; } int i3 = g + 77; f = i3 % 128; int i4 = i3 % 2; Object[] objArr = new Object[1]; k(string.substring(4), objArr); String intern = ((String) objArr[0]).intern(); int i5 = f + 85; g = i5 % 128; int i6 = i5 % 2; return intern; } }