package xe;

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

/* loaded from: classes4.dex */
public class l extends k {
    private static final n.i L;
    private static final SparseIntArray M;
    private final RelativeLayout F;
    private final LinearLayout G;
    private androidx.databinding.g H;
    private androidx.databinding.g I;
    private androidx.databinding.g J;
    private long K;

    /* 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(l.this.A);
            we.n nVar = l.this.E;
            if (nVar != null) {
                f0 T = nVar.T();
                if (T != null) {
                    T.q(a10);
                }
            }
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            String a10 = ca.canadapost.core.common.customView.u.a(l.this.C);
            we.n nVar = l.this.E;
            if (nVar != null) {
                f0 c02 = nVar.c0();
                if (c02 != null) {
                    c02.q(a10);
                }
            }
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            String a10 = ca.canadapost.core.common.customView.u.a(l.this.D);
            we.n nVar = l.this.E;
            if (nVar != null) {
                f0 d02 = nVar.d0();
                if (d02 != null) {
                    d02.q(a10);
                }
            }
        }
    }

    static {
        n.i iVar = new n.i(6);
        L = iVar;
        iVar.a(1, new String[]{"registration_continue_button"}, new int[]{5}, new int[]{we.e.f49166c});
        M = null;
    }

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

    private boolean V(f0 f0Var, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.K |= 8;
        }
        return true;
    }

    private boolean W(f0 f0Var, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.K |= 4;
        }
        return true;
    }

    private boolean X(f0 f0Var, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.K |= 1;
        }
        return true;
    }

    private boolean Y(e eVar, int i10) {
        if (i10 != we.a.f49130a) {
            return false;
        }
        synchronized (this) {
            this.K |= 2;
        }
        return true;
    }

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 == 0) {
            return X((f0) obj, i11);
        }
        if (i10 == 1) {
            return Y((e) obj, i11);
        }
        if (i10 == 2) {
            return W((f0) obj, i11);
        }
        if (i10 != 3) {
            return false;
        }
        return V((f0) 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 (we.a.f49131b != i10) {
            return false;
        }
        U((we.n) obj);
        return true;
    }

    @Override // xe.k
    public void U(we.n nVar) {
        this.E = nVar;
        synchronized (this) {
            this.K |= 16;
        }
        f(we.a.f49131b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        f0 f0Var;
        f0 f0Var2;
        synchronized (this) {
            j10 = this.K;
            this.K = 0L;
        }
        we.n nVar = this.E;
        if ((61 & j10) != 0) {
            if ((j10 & 49) != 0) {
                f0Var = nVar != null ? nVar.d0() : null;
                S(0, f0Var);
                if (f0Var != null) {
                }
            } else {
                f0Var = null;
            }
            if ((j10 & 52) != 0) {
                f0Var2 = nVar != null ? nVar.c0() : null;
                S(2, f0Var2);
                if (f0Var2 != null) {
                }
            } else {
                f0Var2 = null;
            }
            if ((j10 & 56) != 0) {
                r13 = nVar != null ? nVar.T() : null;
                S(3, r13);
                if (r13 != null) {
                }
            }
        } else {
            f0Var = null;
            f0Var2 = null;
        }
        if ((56 & j10) != 0) {
            ca.canadapost.core.common.customView.u.b(this.A, r13);
        }
        if ((32 & j10) != 0) {
            ca.canadapost.core.common.customView.u.e(this.A, this.H);
            ca.canadapost.core.common.customView.u.e(this.C, this.I);
            ca.canadapost.core.common.customView.u.e(this.D, this.J);
        }
        if ((52 & j10) != 0) {
            ca.canadapost.core.common.customView.u.b(this.C, f0Var2);
        }
        if ((j10 & 49) != 0) {
            ca.canadapost.core.common.customView.u.b(this.D, f0Var);
        }
        androidx.databinding.n.p(this.B);
    }

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

    private l(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 4, (CpcTextInput) objArr[4], (e) objArr[5], (CpcTextInput) objArr[3], (CpcTextInput) objArr[2]);
        this.H = new a();
        this.I = new b();
        this.J = new c();
        this.K = -1L;
        this.A.setTag(null);
        RelativeLayout relativeLayout = (RelativeLayout) objArr[0];
        this.F = relativeLayout;
        relativeLayout.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[1];
        this.G = linearLayout;
        linearLayout.setTag(null);
        N(this.B);
        this.C.setTag(null);
        this.D.setTag(null);
        P(view);
        B();
    }
}
