102 lines
3.2 KiB
Java
102 lines
3.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.util.Base64;
|
||
|
import androidx.fragment.app.Fragment;
|
||
|
import com.scb.phone.view.fragment.sme.gifting.GiftSelectionEmptyStateFragment;
|
||
|
import com.scb.phone.view.fragment.sme.gifting.GiftSelectionFragment;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.ezh, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12517ezh extends rgb {
|
||
|
private static int f = 0;
|
||
|
private static int g = 1;
|
||
|
private static byte h = 6;
|
||
|
private List<WM> a;
|
||
|
private Context b;
|
||
|
private List<WM> c;
|
||
|
private int[] d;
|
||
|
private List<Fragment> e;
|
||
|
|
||
|
public C12517ezh(Context context, yRS yrs, List<WM> list, List<WM> list2) {
|
||
|
super(yrs);
|
||
|
InterfaceC16541pFg d;
|
||
|
Fragment d2;
|
||
|
this.d = new int[]{com.scb.phone.R.string.gifts_present_tab, com.scb.phone.R.string.gifts_money_tab};
|
||
|
this.b = context;
|
||
|
this.c = list;
|
||
|
this.a = list2;
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
this.e = arrayList;
|
||
|
List<WM> list3 = this.a;
|
||
|
String string = this.b.getString(com.scb.phone.R.string.choose_present_text);
|
||
|
if (list3 != null && !list3.isEmpty()) {
|
||
|
d = GiftSelectionFragment.c(list3, string);
|
||
|
} else {
|
||
|
d = GiftSelectionEmptyStateFragment.d();
|
||
|
}
|
||
|
arrayList.add(d);
|
||
|
List<Fragment> list4 = this.e;
|
||
|
List<WM> list5 = this.c;
|
||
|
String string2 = this.b.getString(com.scb.phone.R.string.choose_money_text);
|
||
|
if (list5 != null && !list5.isEmpty()) {
|
||
|
d2 = GiftSelectionFragment.c(list5, string2);
|
||
|
} else {
|
||
|
d2 = GiftSelectionEmptyStateFragment.d();
|
||
|
}
|
||
|
list4.add(d2);
|
||
|
}
|
||
|
|
||
|
private void i(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);
|
||
|
}
|
||
|
|
||
|
@Override // o.rgb
|
||
|
public final Fragment e(int i) {
|
||
|
return this.e.get(i);
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final int getCount() {
|
||
|
return this.e.size();
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final CharSequence getPageTitle(int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
String string = this.b.getString(this.d[i]);
|
||
|
Object obj = null;
|
||
|
if (string.startsWith(",*,)")) {
|
||
|
int i3 = f + 125;
|
||
|
g = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
String substring = string.substring(4);
|
||
|
if (i4 == 0) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
i(substring, objArr);
|
||
|
((String) objArr[0]).intern();
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
i(substring, objArr2);
|
||
|
string = ((String) objArr2[0]).intern();
|
||
|
}
|
||
|
int i5 = f + 55;
|
||
|
g = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return string;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|