package xe;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcDialogFragmentView;
import we.v0;
import ze.a;

/* loaded from: classes4.dex */
public class d0 extends c0 implements a.InterfaceC1058a {
    private static final n.i K;
    private static final SparseIntArray L;
    private final LinearLayout G;
    private final TextView H;
    private final View.OnClickListener I;
    private long J;

    static {
        n.i iVar = new n.i(7);
        K = iVar;
        iVar.a(1, new String[]{"registration_resend_email_button"}, new int[]{4}, new int[]{we.e.f49168e});
        SparseIntArray sparseIntArray = new SparseIntArray();
        L = sparseIntArray;
        sparseIntArray.put(we.d.f49162x, 5);
        sparseIntArray.put(we.d.f49155q, 6);
    }

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

    private boolean V(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.J |= 2;
        }
        return true;
    }

    private boolean W(i iVar, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.J |= 1;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.u uVar) {
        super.O(uVar);
        this.D.O(uVar);
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (we.a.f49131b != i10) {
            return false;
        }
        U((v0) obj);
        return true;
    }

    @Override // xe.c0
    public void U(v0 v0Var) {
        this.F = v0Var;
        synchronized (this) {
            this.J |= 4;
        }
        f(we.a.f49131b);
        super.J();
    }

    @Override // ze.a.InterfaceC1058a
    public final void a(int i10, View view) {
        v0 v0Var = this.F;
        if (v0Var != null) {
            v0Var.b0();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.J;
            this.J = 0L;
        }
        v0 v0Var = this.F;
        long j11 = 14 & j10;
        String str = null;
        if (j11 != 0) {
            androidx.lifecycle.a0 U = v0Var != null ? v0Var.U() : null;
            S(1, U);
            if (U != null) {
                str = (String) U.f();
            }
        }
        if ((j10 & 8) != 0) {
            this.H.setOnClickListener(this.I);
        }
        if (j11 != 0) {
            b4.e.e(this.B, str);
        }
        androidx.databinding.n.p(this.D);
    }

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

    private d0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (CpcDialogFragmentView) objArr[0], (TextView) objArr[2], (TextView) objArr[6], (i) objArr[4], (LinearLayout) objArr[5]);
        this.J = -1L;
        this.A.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[1];
        this.G = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[3];
        this.H = textView;
        textView.setTag(null);
        this.B.setTag(null);
        N(this.D);
        P(view);
        this.I = new ze.a(this, 1);
        B();
    }
}
