package cb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.databinding.n;
import bb.j;
import ca.canadapost.core.common.ui.CpcDialogFragmentFullView;
import eb.a;

/* loaded from: classes4.dex */
public class f extends e implements a.InterfaceC0368a {
    private static final n.i I = null;
    private static final SparseIntArray J;
    private final View.OnClickListener G;
    private long H;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        J = sparseIntArray;
        sparseIntArray.put(bb.f.f6817d, 2);
        sparseIntArray.put(bb.f.f6815b, 3);
        sparseIntArray.put(bb.f.f6814a, 4);
    }

    public f(androidx.databinding.e eVar, View view) {
        this(eVar, view, n.E(eVar, view, 5, I, J));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.H = 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 (bb.a.f6783b != i10) {
            return false;
        }
        U((j) obj);
        return true;
    }

    public void U(j jVar) {
        this.F = jVar;
        synchronized (this) {
            this.H |= 1;
        }
        f(bb.a.f6783b);
        super.J();
    }

    @Override // eb.a.InterfaceC0368a
    public final void a(int i10, View view) {
        j jVar = this.F;
        if (jVar != null) {
            jVar.R();
        }
    }

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

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

    private f(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (Button) objArr[1], (TextView) objArr[4], (CpcDialogFragmentFullView) objArr[0], (TextView) objArr[3], (ImageView) objArr[2]);
        this.H = -1L;
        this.A.setTag(null);
        this.C.setTag(null);
        P(view);
        this.G = new eb.a(this, 1);
        B();
    }
}
