package od;

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

/* loaded from: classes4.dex */
public class f1 extends e1 implements a.InterfaceC0889a {
    private static final n.i P;
    private static final SparseIntArray Q;
    private final View.OnClickListener N;
    private long O;

    static {
        n.i iVar = new n.i(12);
        P = iVar;
        iVar.a(1, new String[]{"resend_email_transparent_button", "signup_button"}, new int[]{3, 4}, new int[]{ld.k.D, ld.k.E});
        SparseIntArray sparseIntArray = new SparseIntArray();
        Q = sparseIntArray;
        sparseIntArray.put(ld.j.f27940z, 5);
        sparseIntArray.put(ld.j.B, 6);
        sparseIntArray.put(ld.j.C, 7);
        sparseIntArray.put(ld.j.K, 8);
        sparseIntArray.put(ld.j.L, 9);
        sparseIntArray.put(ld.j.f27937w, 10);
        sparseIntArray.put(ld.j.A, 11);
    }

    public f1(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 12, P, Q));
    }

    private boolean U(g1 g1Var, int i10) {
        if (i10 != ld.a.f27861a) {
            return false;
        }
        synchronized (this) {
            this.O |= 1;
        }
        return true;
    }

    private boolean V(i1 i1Var, int i10) {
        if (i10 != ld.a.f27861a) {
            return false;
        }
        synchronized (this) {
            this.O |= 2;
        }
        return true;
    }

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

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

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

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

    public void W(wd.j jVar) {
        this.M = jVar;
        synchronized (this) {
            this.O |= 4;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // ud.a.InterfaceC0889a
    public final void a(int i10, View view) {
        wd.j jVar = this.M;
        if (jVar != null) {
            jVar.W();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.O;
            this.O = 0L;
        }
        if ((j10 & 8) != 0) {
            this.I.setOnClickListener(this.N);
        }
        androidx.databinding.n.p(this.J);
        androidx.databinding.n.p(this.K);
    }

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

    private f1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (TextView) objArr[10], (TextView) objArr[5], (TextView) objArr[11], (TextView) objArr[6], (TextView) objArr[7], (CpcDialogFragmentView) objArr[0], (ImageView) objArr[8], (ImageView) objArr[9], (TextView) objArr[2], (g1) objArr[3], (i1) objArr[4], (LinearLayout) objArr[1]);
        this.O = -1L;
        this.F.setTag(null);
        this.I.setTag(null);
        N(this.J);
        N(this.K);
        this.L.setTag(null);
        P(view);
        this.N = new ud.a(this, 1);
        B();
    }
}
