what-the-bank/sources/o/jXq.java

130 lines
3.9 KiB
Java

package o;
import android.content.Context;
import android.os.Bundle;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import o.gaG;
@fZH
/* loaded from: classes.dex */
public class jXq {
public FirebaseAnalytics a;
public Collection<pug> b;
private final pan c;
private final C16652pxr d;
private final CS e;
@InterfaceC13391fZD
public jXq(Context context, C16652pxr c16652pxr, CS cs, pan panVar) {
this.a = FirebaseAnalytics.getInstance(context);
this.d = c16652pxr;
this.e = cs;
this.c = panVar;
}
public final void c(String str) {
if (gjJ.b((CharSequence) str)) {
return;
}
Bundle bundle = new Bundle();
Qr_(bundle);
bundle.putString("user_mode", this.c.d().mode.toUpperCase());
Qq_(bundle);
this.a.logEvent(str, bundle);
gjJ.b((CharSequence) str);
}
public final void e(String str, pug... pugVarArr) {
if (gjJ.b((CharSequence) str)) {
return;
}
Bundle bundle = new Bundle();
for (pug pugVar : pugVarArr) {
bundle.putString(pugVar.e, pugVar.c);
}
Qs_(str, bundle);
}
public final void c(String str, Collection<pug> collection) {
if (gjJ.b((CharSequence) str)) {
return;
}
Bundle bundle = new Bundle();
for (pug pugVar : collection) {
bundle.putString(pugVar.e, pugVar.c);
}
Qs_(str, bundle);
}
private void Qs_(String str, Bundle bundle) {
if (gjJ.b((CharSequence) str)) {
return;
}
Qr_(bundle);
bundle.putString("user_mode", this.c.d().mode.toUpperCase());
Qq_(bundle);
this.a.logEvent(str, bundle);
gjJ.b((CharSequence) str);
}
private void Qr_(Bundle bundle) {
List c;
C16652pxr c16652pxr = this.d;
List<Alf> e = c16652pxr.d.e();
ArrayList arrayList = new ArrayList();
for (Object obj : e) {
if (((Alf) obj).e()) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = arrayList;
c16652pxr.d.b(arrayList2);
ArrayList arrayList3 = arrayList2;
C14957gcv.e(arrayList3, "");
if (arrayList3.size() <= 1) {
c = C14881gav.d((Iterable) arrayList3);
} else {
c = C14881gav.c(arrayList3);
C14957gcv.e(c, "");
Collections.reverse(c);
}
List list = c;
C14957gcv.e(list, "");
gdE e2 = C14964gdG.e(new gaG.IeS(list), 10);
C14957gcv.e(e2, "");
gdC gdc = new gdC(e2);
LinkedHashMap linkedHashMap = new LinkedHashMap();
Iterator<C14852gaK<? extends T>> e3 = gdc.e();
while (e3.hasNext()) {
C14852gaK c14852gaK = (C14852gaK) e3.next();
C13396fZU c13396fZU = new C13396fZU("sticky_param_".concat(String.valueOf(c14852gaK.d)), ((Alf) c14852gaK.e).a());
linkedHashMap.put(c13396fZU.d, c13396fZU.e);
}
C14957gcv.e(linkedHashMap, "");
ArrayList arrayList4 = new ArrayList(linkedHashMap.size());
for (Map.Entry entry : linkedHashMap.entrySet()) {
arrayList4.add(new pug((String) entry.getKey(), (String) entry.getValue()));
}
for (pug pugVar : (pug[]) arrayList4.toArray(new pug[0])) {
bundle.putString(pugVar.e, pugVar.c);
}
}
private void Qq_(Bundle bundle) {
Collection<pug> collection = this.b;
if (collection == null || collection.isEmpty()) {
return;
}
for (pug pugVar : this.b) {
bundle.putString(pugVar.e, pugVar.c);
}
}
}