package od;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import androidx.databinding.n;
import ca.canadapost.core.common.customView.CpcTextInput;

/* loaded from: classes4.dex */
public class b0 extends a0 {
    private static final n.i H;
    private static final SparseIntArray I;
    private final LinearLayout E;
    private androidx.databinding.g F;
    private long G;

    /* loaded from: classes4.dex */
    class a implements androidx.databinding.g {
        a() {
        }

        @Override // androidx.databinding.g
        public void a() {
            String a10 = ca.canadapost.core.common.customView.u.a(b0.this.C);
            qd.w wVar = b0.this.D;
            if (wVar != null) {
                androidx.lifecycle.f0 V = wVar.V();
                if (V != null) {
                    V.q(a10);
                }
            }
        }
    }

    static {
        n.i iVar = new n.i(4);
        H = iVar;
        iVar.a(1, new String[]{"forgot_password_continue_button"}, new int[]{3}, new int[]{ld.k.f27948h});
        I = null;
    }

    public b0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 4, H, I));
    }

    private boolean V(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != ld.a.f27861a) {
            return false;
        }
        synchronized (this) {
            this.G |= 1;
        }
        return true;
    }

    private boolean W(o oVar, int i10) {
        if (i10 != ld.a.f27861a) {
            return false;
        }
        synchronized (this) {
            this.G |= 2;
        }
        return true;
    }

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

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

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

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

    @Override // od.a0
    public void U(qd.w wVar) {
        this.D = wVar;
        synchronized (this) {
            this.G |= 4;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        qd.w wVar = this.D;
        long j11 = 13 & j10;
        if (j11 != 0) {
            r6 = wVar != null ? wVar.V() : null;
            S(0, r6);
            if (r6 != null) {
            }
        }
        if (j11 != 0) {
            ca.canadapost.core.common.customView.u.b(this.C, r6);
        }
        if ((j10 & 8) != 0) {
            ca.canadapost.core.common.customView.u.e(this.C, this.F);
        }
        androidx.databinding.n.p(this.B);
    }

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

    private b0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (LinearLayout) objArr[1], (o) objArr[3], (CpcTextInput) objArr[2]);
        this.F = new a();
        this.G = -1L;
        this.A.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.E = linearLayout;
        linearLayout.setTag(null);
        N(this.B);
        this.C.setTag(null);
        P(view);
        B();
    }
}
