package od;

import android.text.Html;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcFragmentContainerView;
import ud.a;

/* loaded from: classes4.dex */
public class z0 extends y0 implements a.InterfaceC0889a {
    private static final n.i G = null;
    private static final SparseIntArray H = null;
    private final CpcFragmentContainerView B;
    private final TextView C;
    private final Button D;
    private final View.OnClickListener E;
    private long F;

    public z0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 3, G, H));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.F = 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 (ld.a.f27862b != i10) {
            return false;
        }
        U((vd.q) obj);
        return true;
    }

    public void U(vd.q qVar) {
        this.A = qVar;
        synchronized (this) {
            this.F |= 1;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // ud.a.InterfaceC0889a
    public final void a(int i10, View view) {
        vd.q qVar = this.A;
        if (qVar != null) {
            qVar.d0();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.F;
            this.F = 0L;
        }
        vd.q qVar = this.A;
        long j11 = 3 & j10;
        if (j11 != 0) {
            r6 = Html.fromHtml(this.C.getResources().getString(ld.m.f28017x0, qVar != null ? qVar.W() : null));
        }
        if (j11 != 0) {
            b4.e.e(this.C, r6);
        }
        if ((j10 & 2) != 0) {
            w8.d0.p(this.D, this.E);
        }
    }

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

    private z0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0);
        this.F = -1L;
        CpcFragmentContainerView cpcFragmentContainerView = (CpcFragmentContainerView) objArr[0];
        this.B = cpcFragmentContainerView;
        cpcFragmentContainerView.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.C = textView;
        textView.setTag(null);
        Button button = (Button) objArr[2];
        this.D = button;
        button.setTag(null);
        P(view);
        this.E = new ud.a(this, 1);
        B();
    }
}
