package od;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import ud.a;

/* loaded from: classes4.dex */
public class p1 extends o1 implements a.InterfaceC0889a {
    private static final n.i L = null;
    private static final SparseIntArray M;
    private final ConstraintLayout G;
    private final ConstraintLayout H;
    private final View.OnClickListener I;
    private final View.OnClickListener J;
    private long K;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        M = sparseIntArray;
        sparseIntArray.put(ld.j.f27916d, 4);
        sparseIntArray.put(ld.j.f27918e, 5);
        sparseIntArray.put(ld.j.f27914c, 6);
    }

    public p1(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 7, L, M));
    }

    private boolean U(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != ld.a.f27861a) {
            return false;
        }
        synchronized (this) {
            this.K |= 1;
        }
        return true;
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.K = 4L;
        }
        J();
    }

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 != 0) {
            return false;
        }
        return U((androidx.lifecycle.a0) obj, i11);
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (ld.a.f27862b != i10) {
            return false;
        }
        V((xd.m) obj);
        return true;
    }

    public void V(xd.m mVar) {
        this.F = mVar;
        synchronized (this) {
            this.K |= 2;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // ud.a.InterfaceC0889a
    public final void a(int i10, View view) {
        if (i10 == 1) {
            xd.m mVar = this.F;
            if (mVar != null) {
                mVar.U();
                return;
            }
            return;
        }
        if (i10 != 2) {
            return;
        }
        xd.m mVar2 = this.F;
        if (mVar2 != null) {
            mVar2.V();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.K;
            this.K = 0L;
        }
        xd.m mVar = this.F;
        long j11 = 7 & j10;
        String str = null;
        if (j11 != 0) {
            androidx.lifecycle.a0 R = mVar != null ? mVar.R() : null;
            S(0, R);
            if (R != null) {
                str = (String) R.f();
            }
        }
        if ((j10 & 4) != 0) {
            this.D.setOnClickListener(this.I);
            this.H.setOnClickListener(this.J);
        }
        if (j11 != 0) {
            b4.e.e(this.E, str);
        }
    }

    @Override // androidx.databinding.n
    public boolean z() {
        synchronized (this) {
            return this.K != 0;
        }
    }

    private p1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (TextView) objArr[6], (TextView) objArr[4], (TextView) objArr[5], (Button) objArr[1], (TextView) objArr[3]);
        this.K = -1L;
        this.D.setTag(null);
        ConstraintLayout constraintLayout = (ConstraintLayout) objArr[0];
        this.G = constraintLayout;
        constraintLayout.setTag(null);
        ConstraintLayout constraintLayout2 = (ConstraintLayout) objArr[2];
        this.H = constraintLayout2;
        constraintLayout2.setTag(null);
        this.E.setTag(null);
        P(view);
        this.I = new ud.a(this, 1);
        this.J = new ud.a(this, 2);
        B();
    }
}
