package bf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.utils.widget.ImageFilterView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcFragmentContainerFullView;
import ef.a;

/* loaded from: classes4.dex */
public class n extends m implements a.InterfaceC0370a {
    private static final n.i O = null;
    private static final SparseIntArray P;
    private final CpcFragmentContainerFullView K;
    private final View.OnClickListener L;
    private final View.OnClickListener M;
    private long N;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        P = sparseIntArray;
        sparseIntArray.put(af.c.f340r, 3);
        sparseIntArray.put(af.c.K, 4);
        sparseIntArray.put(af.c.B, 5);
        sparseIntArray.put(af.c.D, 6);
        sparseIntArray.put(af.c.P, 7);
        sparseIntArray.put(af.c.f344v, 8);
        sparseIntArray.put(af.c.I, 9);
    }

    public n(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 10, O, P));
    }

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        return false;
    }

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

    public void U(p003if.a aVar) {
        this.J = aVar;
        synchronized (this) {
            this.N |= 1;
        }
        f(af.a.f317b);
        super.J();
    }

    @Override // ef.a.InterfaceC0370a
    public final void a(int i10, View view) {
        if (i10 == 1) {
            p003if.a aVar = this.J;
            if (aVar != null) {
                aVar.T();
                return;
            }
            return;
        }
        if (i10 != 2) {
            return;
        }
        p003if.a aVar2 = this.J;
        if (aVar2 != null) {
            aVar2.S();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.N;
            this.N = 0L;
        }
        if ((j10 & 2) != 0) {
            this.G.setOnClickListener(this.M);
            this.H.setOnClickListener(this.L);
        }
    }

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

    private n(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (ConstraintLayout) objArr[3], (TextView) objArr[8], (ImageView) objArr[5], (ImageFilterView) objArr[6], (LinearLayout) objArr[9], (CardView) objArr[4], (Button) objArr[1], (Button) objArr[2], (TextView) objArr[7]);
        this.N = -1L;
        CpcFragmentContainerFullView cpcFragmentContainerFullView = (CpcFragmentContainerFullView) objArr[0];
        this.K = cpcFragmentContainerFullView;
        cpcFragmentContainerFullView.setTag(null);
        this.G.setTag(null);
        this.H.setTag(null);
        P(view);
        this.L = new ef.a(this, 2);
        this.M = new ef.a(this, 1);
        B();
    }
}
