package u7;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.customView.CpcDropdownInput;
import ca.canadapost.core.common.customView.CpcTextInput;
import ca.canadapost.core.common.ui.CpcFragmentContainerView;
import f8.b;

/* loaded from: classes.dex */
public class s extends r implements b.a {
    private static final n.i P = null;
    private static final SparseIntArray Q;
    private final CpcFragmentContainerView G;
    private final TextView H;
    private final View.OnClickListener I;
    private androidx.databinding.g J;
    private androidx.databinding.g K;
    private androidx.databinding.g L;
    private androidx.databinding.g M;
    private androidx.databinding.g N;
    private long O;

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

        @Override // androidx.databinding.g
        public void a() {
            ca.canadapost.core.common.customView.u.a(s.this.A);
            s.this.getClass();
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            ca.canadapost.core.common.customView.u.a(s.this.B);
            s.this.getClass();
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            ca.canadapost.core.common.customView.u.a(s.this.C);
            s.this.getClass();
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            ca.canadapost.core.common.customView.u.a(s.this.D);
            s.this.getClass();
        }
    }

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

        @Override // androidx.databinding.g
        public void a() {
            ca.canadapost.core.common.customView.u.a(s.this.F);
            s.this.getClass();
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        Q = sparseIntArray;
        sparseIntArray.put(h7.i.f21080x, 7);
    }

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

    private boolean U(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 8;
        }
        return true;
    }

    private boolean V(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 4;
        }
        return true;
    }

    private boolean W(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 2;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 16;
        }
        return true;
    }

    private boolean Y(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 128;
        }
        return true;
    }

    private boolean Z(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 32;
        }
        return true;
    }

    private boolean a0(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 1;
        }
        return true;
    }

    private boolean b0(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.O |= 64;
        }
        return true;
    }

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        switch (i10) {
            case 0:
                return a0((androidx.lifecycle.f0) obj, i11);
            case 1:
                return W((androidx.lifecycle.a0) obj, i11);
            case 2:
                return V((androidx.lifecycle.a0) obj, i11);
            case 3:
                return U((androidx.lifecycle.f0) obj, i11);
            case 4:
                return X((androidx.lifecycle.a0) obj, i11);
            case 5:
                return Z((androidx.lifecycle.f0) obj, i11);
            case 6:
                return b0((androidx.lifecycle.f0) obj, i11);
            case 7:
                return Y((androidx.lifecycle.f0) obj, i11);
            default:
                return false;
        }
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (h7.a.f20948e != i10) {
            return false;
        }
        android.support.v4.media.session.b.a(obj);
        c0(null);
        return true;
    }

    @Override // f8.b.a
    public final void a(int i10, View view) {
    }

    public void c0(s8.r rVar) {
        synchronized (this) {
            this.O |= 256;
        }
        f(h7.a.f20948e);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.O;
            this.O = 0L;
        }
        if ((1023 & j10) != 0) {
            if ((j10 & 769) != 0) {
                S(0, null);
            }
            if ((j10 & 770) != 0) {
                S(1, null);
            }
            if ((j10 & 772) != 0) {
                S(2, null);
            }
            if ((j10 & 776) != 0) {
                S(3, null);
            }
            if ((j10 & 784) != 0) {
                S(4, null);
            }
            if ((j10 & 800) != 0) {
                S(5, null);
            }
            if ((j10 & 832) != 0) {
                S(6, null);
            }
            if ((j10 & 896) != 0) {
                S(7, null);
            }
        }
        if ((j10 & 772) != 0) {
            ca.canadapost.core.common.customView.u.d(this.A, null);
        }
        if ((j10 & 896) != 0) {
            ca.canadapost.core.common.customView.u.b(this.A, null);
        }
        if ((j10 & 512) != 0) {
            ca.canadapost.core.common.customView.u.e(this.A, this.J);
            ca.canadapost.core.common.customView.u.e(this.B, this.K);
            ca.canadapost.core.common.customView.u.e(this.C, this.L);
            ca.canadapost.core.common.customView.u.e(this.D, this.M);
            this.H.setOnClickListener(this.I);
            ca.canadapost.core.common.customView.u.e(this.F, this.N);
        }
        if ((800 & j10) != 0) {
            ca.canadapost.core.common.customView.u.b(this.B, null);
        }
        if ((j10 & 770) != 0) {
            ca.canadapost.core.common.customView.u.d(this.C, null);
        }
        if ((j10 & 769) != 0) {
            ca.canadapost.core.common.customView.u.b(this.C, null);
        }
        if ((776 & j10) != 0) {
            ca.canadapost.core.common.customView.u.b(this.D, null);
        }
        if ((j10 & 784) != 0) {
            ca.canadapost.core.common.customView.u.d(this.F, null);
        }
        if ((j10 & 832) != 0) {
            ca.canadapost.core.common.customView.u.b(this.F, null);
        }
    }

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

    private s(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 8, (CpcTextInput) objArr[1], (CpcTextInput) objArr[2], (CpcTextInput) objArr[3], (CpcTextInput) objArr[5], (CpcDropdownInput) objArr[7], (CpcTextInput) objArr[4]);
        this.J = new a();
        this.K = new b();
        this.L = new c();
        this.M = new d();
        this.N = new e();
        this.O = -1L;
        this.A.setTag(null);
        this.B.setTag(null);
        this.C.setTag(null);
        this.D.setTag(null);
        CpcFragmentContainerView cpcFragmentContainerView = (CpcFragmentContainerView) objArr[0];
        this.G = cpcFragmentContainerView;
        cpcFragmentContainerView.setTag(null);
        TextView textView = (TextView) objArr[6];
        this.H = textView;
        textView.setTag(null);
        this.F.setTag(null);
        P(view);
        this.I = new f8.b(this, 1);
        B();
    }
}
