package v6;

import android.view.ViewGroup;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.google.android.datatransport.Priority;
import com.google.android.gms.internal.pal.c7;
import java.util.HashMap;
import l.b0;
import xyz.stream.utils.entity.InstallEntity;
import xyz.stream.utils.f0;
import xyz.stream.view.CustomImageView;

/* JADX INFO: loaded from: classes2.dex */
public final class j implements c7, pc.f, xyz.stream.utils.y, vf.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public Object f33700a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f33701b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f33702c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Object f33703d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Object f33704e;

    public j(ConstraintLayout constraintLayout, CustomImageView customImageView, TextView textView, TextView textView2, CustomImageView customImageView2) {
        this.f33700a = constraintLayout;
        this.f33701b = customImageView;
        this.f33704e = textView;
        this.f33703d = textView2;
        this.f33702c = customImageView2;
    }

    public final void d(t6.d dVar) {
        androidx.core.view.n nVar = new androidx.core.view.n(26);
        x xVar = (x) this.f33704e;
        j jVar = new j();
        v vVar = (v) this.f33700a;
        if (vVar == null) {
            throw new NullPointerException("Null transportContext");
        }
        jVar.f33700a = vVar;
        if (dVar == null) {
            throw new NullPointerException("Null event");
        }
        jVar.f33704e = dVar;
        String str = (String) this.f33701b;
        if (str == null) {
            throw new NullPointerException("Null transportName");
        }
        jVar.f33701b = str;
        t6.f fVar = (t6.f) this.f33703d;
        if (fVar == null) {
            throw new NullPointerException("Null transformer");
        }
        jVar.f33703d = fVar;
        t6.c cVar = (t6.c) this.f33702c;
        if (cVar == null) {
            throw new NullPointerException("Null encoding");
        }
        jVar.f33702c = cVar;
        if (!"".isEmpty()) {
            throw new IllegalStateException("Missing required properties:".concat(""));
        }
        v vVar2 = (v) jVar.f33700a;
        String str2 = (String) jVar.f33701b;
        t6.d dVar2 = (t6.d) jVar.f33704e;
        t6.f fVar2 = (t6.f) jVar.f33703d;
        t6.c cVar2 = (t6.c) jVar.f33702c;
        y yVar = (y) xVar;
        yVar.getClass();
        t6.a aVar = (t6.a) dVar2;
        Priority priority = aVar.f32981c;
        vVar2.getClass();
        k kVarA = v.a();
        kVarA.b(((l) vVar2).f33708a);
        kVarA.c(priority);
        l lVarA = kVarA.setExtras(vVar2.getExtras()).a();
        b0 b0Var = new b0(2);
        b0Var.f29644f = new HashMap();
        b0Var.f29642d = Long.valueOf(((e7.c) yVar.f33727a).a());
        b0Var.f29643e = Long.valueOf(((e7.c) yVar.f33728b).a());
        if (str2 == null) {
            throw new NullPointerException("Null transportName");
        }
        b0Var.f29639a = str2;
        b0Var.h(new p(cVar2, (byte[]) fVar2.apply(aVar.f32980b)));
        b0Var.f29640b = dVar2.getCode();
        i iVarD = b0Var.d();
        a7.a aVar2 = (a7.a) yVar.f33729c;
        aVar2.getClass();
        aVar2.f387b.execute(new androidx.media3.exoplayer.audio.j(aVar2, lVarA, nVar, iVarD, 1));
    }

    @Override // pc.f
    public final void f(String str, HashMap map) {
        this.f33701b = "sqlite_error";
        this.f33704e = str;
        this.f33703d = map;
    }

    @Override // xyz.stream.utils.y
    public final void g(int i10) {
        Object obj = this.f33702c;
        if (((xyz.stream.api.z) obj).f36036a != i10) {
            ((xyz.stream.api.z) obj).f36036a = i10;
            ((xyz.stream.api.z) obj).f36037b.post(new ve.b(this, (xyz.stream.api.g) this.f33703d, 16));
        }
    }

    public final void h(boolean z10) {
        ((ViewGroup) this.f33700a).setVisibility(z10 ? 0 : 4);
        ((CustomImageView) this.f33701b).setVisibility(z10 ? 0 : 4);
    }

    @Override // xyz.stream.utils.y
    public final void n(String str) {
        xyz.stream.api.q.g().a((String) this.f33701b);
        f0.o().B(new InstallEntity("", ((String) this.f33700a) + ((String) this.f33704e), ((xyz.stream.api.z) this.f33702c).f36038c.getVersion(), ((xyz.stream.api.z) this.f33702c).f36038c.getFile(), ((xyz.stream.api.z) this.f33702c).f36038c.getForceUpdate().intValue() == 1), "sp_install_entity");
        Object obj = this.f33703d;
        if (((xyz.stream.api.g) obj) != null) {
            ((xyz.stream.api.g) obj).a(((String) this.f33700a) + ((String) this.f33704e));
        }
    }

    @Override // xyz.stream.utils.y
    public final void r(Exception exc) {
        xyz.stream.utils.h.c("updateAppVersion failed: " + exc.toString() + ", url: " + ((String) this.f33701b) + ", filePath: " + ((String) this.f33700a) + ((String) this.f33704e));
        xyz.stream.api.q.g().a((String) this.f33701b);
        xyz.stream.api.g gVar = (xyz.stream.api.g) this.f33703d;
        if (gVar != null) {
            gVar.b("updateAppVersion failed: " + exc);
        }
    }

    @Override // pc.f
    public final void success(Object obj) {
        this.f33700a = obj;
    }
}
