package n7;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.google.android.gms.internal.ads.fs;
import com.google.android.gms.internal.ads.h20;
import com.google.android.gms.internal.ads.iy;
import com.google.android.gms.internal.ads.my;
import com.google.android.gms.internal.ads.py;
import com.google.android.gms.internal.ads.wv;

/* JADX INFO: loaded from: classes2.dex */
public final class u {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final y3 f31041a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final w3 f31042b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final g3 f31043c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final fs f31044d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final my f31045e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final z3 f31046f;

    public u(y3 y3Var, w3 w3Var, g3 g3Var, fs fsVar, my myVar, z3 z3Var) {
        this.f31041a = y3Var;
        this.f31042b = w3Var;
        this.f31043c = g3Var;
        this.f31044d = fsVar;
        this.f31045e = myVar;
        this.f31046f = z3Var;
    }

    public static void a(Context context, String str) {
        Bundle bundle = new Bundle();
        bundle.putString("action", "no_ads_fallback");
        bundle.putString("flow", str);
        x xVar = x.f31085g;
        xVar.f31086a.zzh(context, xVar.f31089d.f32212a, "gmob-apps", bundle, true);
    }

    @Nullable
    public final py zzh(Activity activity) {
        c cVar = new c(this, activity);
        Intent intent = activity.getIntent();
        boolean booleanExtra = false;
        if (intent.hasExtra("com.google.android.gms.ads.internal.overlay.useClientJar")) {
            booleanExtra = intent.getBooleanExtra("com.google.android.gms.ads.internal.overlay.useClientJar", false);
        } else {
            q7.j.b("useClientJar flag not found in activity intent extras.");
        }
        return (py) cVar.a(activity, booleanExtra);
    }

    @Nullable
    public final h2 zzi(Context context, wv wvVar) {
        return (h2) new d(this, context, wvVar).a(context, false);
    }

    @Nullable
    public final h20 zzj(Context context, wv wvVar) {
        return (h20) new f(this, context, wvVar).a(context, false);
    }

    @Nullable
    public final iy zzk(Context context, wv wvVar) {
        return (iy) new h(this, context, wvVar).a(context, false);
    }
}
