package w8;

import android.app.Activity;
import com.qualtrics.digital.y0;
import java.util.Iterator;
import java.util.Map;
import w8.j0;

/* loaded from: classes.dex */
public abstract class j0 {

    /* renamed from: a, reason: collision with root package name */
    public static final a f40981a = new a(null);

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        private final void b(Activity activity) {
            String simpleName = activity.getClass().getSimpleName();
            com.qualtrics.digital.l0.i().f15421a.g("activity", simpleName);
            com.qualtrics.digital.l0.i().m(simpleName);
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final void e(Activity activity, Map map) {
            kotlin.jvm.internal.t.g(activity, "$activity");
            Iterator it = map.values().iterator();
            while (it.hasNext()) {
                if (((y0) it.next()).a()) {
                    com.qualtrics.digital.l0.i().c(activity);
                }
            }
        }

        public final void c(boolean z10) {
            com.qualtrics.digital.l0.i().f15421a.g("language", z10 ? "en" : "fr");
        }

        public final void d(final Activity activity) {
            kotlin.jvm.internal.t.g(activity, "activity");
            b(activity);
            com.qualtrics.digital.l0.i().e(new com.qualtrics.digital.t() { // from class: w8.i0
                @Override // com.qualtrics.digital.t
                public final void a(Map map) {
                    j0.a.e(activity, map);
                }
            });
        }
    }
}
