package bf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcDialogFragmentFullView;
import ef.a;

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

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        O = sparseIntArray;
        sparseIntArray.put(af.c.f341s, 2);
        sparseIntArray.put(af.c.C, 3);
        sparseIntArray.put(af.c.f345w, 4);
        sparseIntArray.put(af.c.f336n, 5);
        sparseIntArray.put(af.c.f347y, 6);
        sparseIntArray.put(af.c.f337o, 7);
        sparseIntArray.put(af.c.f348z, 8);
        sparseIntArray.put(af.c.f346x, 9);
    }

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.M = 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((gf.b) obj);
        return true;
    }

    public void U(gf.b bVar) {
        this.K = bVar;
        synchronized (this) {
            this.M |= 1;
        }
        f(af.a.f317b);
        super.J();
    }

    @Override // ef.a.InterfaceC0370a
    public final void a(int i10, View view) {
        gf.b bVar = this.K;
        if (bVar != null) {
            bVar.S();
        }
    }

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

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

    private l(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (TextView) objArr[5], (TextView) objArr[7], (ConstraintLayout) objArr[2], (TextView) objArr[4], (TextView) objArr[9], (TextView) objArr[6], (TextView) objArr[8], (CpcDialogFragmentFullView) objArr[0], (ImageView) objArr[3], (Button) objArr[1]);
        this.M = -1L;
        this.H.setTag(null);
        this.J.setTag(null);
        P(view);
        this.L = new ef.a(this, 1);
        B();
    }
}
