package zf;

import android.content.res.Resources;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.n;
import cg.a;

/* loaded from: classes4.dex */
public class d1 extends c1 implements a.InterfaceC0282a {
    private static final n.i W;
    private static final SparseIntArray X;
    private final LinearLayout G;
    private final LinearLayout H;
    private final TextView I;
    private final LinearLayout J;
    private final TextView K;
    private final TextView L;
    private final LinearLayout M;
    private final TextView N;
    private final ImageView O;
    private final TextView P;
    private final LinearLayout Q;
    private final TextView R;
    private final LinearLayout S;
    private final TextView T;
    private final View.OnClickListener U;
    private long V;

    static {
        n.i iVar = new n.i(19);
        W = iVar;
        iVar.a(2, new String[]{"package_duty_taxes_option_tnc_button"}, new int[]{15}, new int[]{yf.e.H});
        SparseIntArray sparseIntArray = new SparseIntArray();
        X = sparseIntArray;
        sparseIntArray.put(yf.d.f52426c1, 16);
        sparseIntArray.put(yf.d.D, 17);
        sparseIntArray.put(yf.d.C, 18);
    }

    public d1(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 19, W, X));
    }

    private boolean V(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 16;
        }
        return true;
    }

    private boolean W(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 32;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 2;
        }
        return true;
    }

    private boolean Y(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 4;
        }
        return true;
    }

    private boolean Z(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 8;
        }
        return true;
    }

    private boolean a0(k1 k1Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.V |= 1;
        }
        return true;
    }

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 == 0) {
            return a0((k1) obj, i11);
        }
        if (i10 == 1) {
            return X((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 == 2) {
            return Y((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 == 3) {
            return Z((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 == 4) {
            return V((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 != 5) {
            return false;
        }
        return W((androidx.lifecycle.f0) obj, i11);
    }

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.u uVar) {
        super.O(uVar);
        this.C.O(uVar);
    }

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

    @Override // zf.c1
    public void U(jg.v0 v0Var) {
        this.F = v0Var;
        synchronized (this) {
            this.V |= 64;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.v0 v0Var = this.F;
        if (v0Var != null) {
            v0Var.U();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        String str;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        int i10;
        String str11;
        String str12;
        synchronized (this) {
            j10 = this.V;
            this.V = 0L;
        }
        jg.v0 v0Var = this.F;
        long j11 = 208;
        if ((254 & j10) != 0) {
            if ((j10 & 194) != 0) {
                androidx.lifecycle.f0 b02 = v0Var != null ? v0Var.b0() : null;
                S(1, b02);
                str3 = b02 != null ? (String) b02.f() : null;
                str11 = this.E.getResources().getString(yf.h.f52667x2, str3);
            } else {
                str3 = null;
                str11 = null;
            }
            if ((j10 & 196) != 0) {
                androidx.lifecycle.f0 d02 = v0Var != null ? v0Var.d0() : null;
                S(2, d02);
                str9 = d02 != null ? (String) d02.f() : null;
                str7 = this.J.getResources().getString(yf.h.f52640s0) + str9;
            } else {
                str7 = null;
                str9 = null;
            }
            if ((j10 & 200) != 0) {
                androidx.lifecycle.f0 i02 = v0Var != null ? v0Var.i0() : null;
                S(3, i02);
                str8 = i02 != null ? (String) i02.f() : null;
                str5 = this.S.getResources().getString(yf.h.f52660w0) + str8;
            } else {
                str5 = null;
                str8 = null;
            }
            if ((j10 & 208) != 0) {
                androidx.lifecycle.f0 V = v0Var != null ? v0Var.V() : null;
                S(4, V);
                str6 = V != null ? (String) V.f() : null;
                str12 = this.H.getResources().getString(yf.h.f52590i0) + str6;
            } else {
                str12 = null;
                str6 = null;
            }
            if ((j10 & 224) != 0) {
                androidx.lifecycle.f0 W2 = v0Var != null ? v0Var.W() : null;
                S(5, W2);
                str10 = W2 != null ? (String) W2.f() : null;
                str = this.Q.getResources().getString(yf.h.f52595j0) + str10;
                str2 = str11;
            } else {
                str2 = str11;
                str = null;
                str10 = null;
            }
            j11 = 208;
            str4 = str12;
        } else {
            str = null;
            str2 = null;
            str3 = null;
            str4 = null;
            str5 = null;
            str6 = null;
            str7 = null;
            str8 = null;
            str9 = null;
            str10 = null;
        }
        if ((j11 & j10) != 0) {
            if (androidx.databinding.n.u() >= 4) {
                this.H.setContentDescription(str4);
            }
            b4.e.e(this.I, str6);
        }
        if ((196 & j10) != 0) {
            if (androidx.databinding.n.u() >= 4) {
                this.J.setContentDescription(str7);
            }
            b4.e.e(this.K, str9);
        }
        if ((128 & j10) != 0) {
            if (androidx.databinding.n.u() >= 4) {
                TextView textView = this.L;
                Resources resources = textView.getResources();
                int i11 = yf.h.I0;
                textView.setContentDescription(resources.getString(i11, this.L.getResources().getString(yf.h.f52635r0)));
                TextView textView2 = this.P;
                textView2.setContentDescription(textView2.getResources().getString(i11, this.P.getResources().getString(yf.h.f52600k0)));
            }
            this.O.setOnClickListener(this.U);
        }
        if ((224 & j10) != 0) {
            b4.e.e(this.N, str10);
            b4.e.e(this.R, str10);
            i10 = 4;
            if (androidx.databinding.n.u() >= 4) {
                this.Q.setContentDescription(str);
            }
        } else {
            i10 = 4;
        }
        if ((200 & j10) != 0) {
            if (androidx.databinding.n.u() >= i10) {
                this.S.setContentDescription(str5);
            }
            b4.e.e(this.T, str8);
        }
        if ((192 & j10) != 0) {
            this.C.U(v0Var);
        }
        if ((j10 & 194) != 0) {
            if (androidx.databinding.n.u() >= 4) {
                this.E.setContentDescription(str2);
            }
            b4.e.e(this.E, str3);
        }
        androidx.databinding.n.p(this.C);
    }

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

    private d1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 6, (ImageView) objArr[18], (LinearLayout) objArr[17], (k1) objArr[15], (Toolbar) objArr[16], (TextView) objArr[1]);
        this.V = -1L;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.G = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[10];
        this.H = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView = (TextView) objArr[11];
        this.I = textView;
        textView.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[12];
        this.J = linearLayout3;
        linearLayout3.setTag(null);
        TextView textView2 = (TextView) objArr[13];
        this.K = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[14];
        this.L = textView3;
        textView3.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[2];
        this.M = linearLayout4;
        linearLayout4.setTag(null);
        TextView textView4 = (TextView) objArr[3];
        this.N = textView4;
        textView4.setTag(null);
        ImageView imageView = (ImageView) objArr[4];
        this.O = imageView;
        imageView.setTag(null);
        TextView textView5 = (TextView) objArr[5];
        this.P = textView5;
        textView5.setTag(null);
        LinearLayout linearLayout5 = (LinearLayout) objArr[6];
        this.Q = linearLayout5;
        linearLayout5.setTag(null);
        TextView textView6 = (TextView) objArr[7];
        this.R = textView6;
        textView6.setTag(null);
        LinearLayout linearLayout6 = (LinearLayout) objArr[8];
        this.S = linearLayout6;
        linearLayout6.setTag(null);
        TextView textView7 = (TextView) objArr[9];
        this.T = textView7;
        textView7.setTag(null);
        N(this.C);
        this.E.setTag(null);
        P(view);
        this.U = new cg.a(this, 1);
        B();
    }
}
