package u7;

import android.content.res.Resources;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.databinding.n;
import androidx.fragment.app.FragmentContainerView;
import com.google.android.material.button.MaterialButton;
import f8.b;

/* loaded from: classes.dex */
public class n0 extends m0 implements b.a {
    private static final n.i O;
    private static final SparseIntArray P;
    private final ScrollView H;
    private final LinearLayout I;
    private final TextView J;
    private final TextView K;
    private final MaterialButton L;
    private final View.OnClickListener M;
    private long N;

    static {
        n.i iVar = new n.i(11);
        O = iVar;
        iVar.a(1, new String[]{"parcel_detail_step_infographics", "post_office_detail_address", "post_office_services", "post_office_languages_supported", "operating_hours_section"}, new int[]{5, 6, 7, 8, 9}, new int[]{h7.j.T, h7.j.U, h7.j.W, h7.j.V, h7.j.S});
        SparseIntArray sparseIntArray = new SparseIntArray();
        P = sparseIntArray;
        sparseIntArray.put(h7.i.N, 10);
    }

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

    private boolean U(i1 i1Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 2;
        }
        return true;
    }

    private boolean V(e1 e1Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 1;
        }
        return true;
    }

    private boolean W(k1 k1Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 32;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 64;
        }
        return true;
    }

    private boolean Y(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 4;
        }
        return true;
    }

    private boolean Z(m1 m1Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 8;
        }
        return true;
    }

    private boolean a0(g1 g1Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.N |= 16;
        }
        return true;
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.N = 256L;
        }
        this.F.B();
        this.A.B();
        this.E.B();
        this.C.B();
        this.B.B();
        J();
    }

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        switch (i10) {
            case 0:
                return V((e1) obj, i11);
            case 1:
                return U((i1) obj, i11);
            case 2:
                return Y((androidx.lifecycle.a0) obj, i11);
            case 3:
                return Z((m1) obj, i11);
            case 4:
                return a0((g1) obj, i11);
            case 5:
                return W((k1) obj, i11);
            case 6:
                return X((androidx.lifecycle.a0) obj, i11);
            default:
                return false;
        }
    }

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (h7.a.f20948e != i10) {
            return false;
        }
        b0((e8.d) obj);
        return true;
    }

    @Override // f8.b.a
    public final void a(int i10, View view) {
        e8.d dVar = this.G;
        if (dVar != null) {
            dVar.T();
        }
    }

    public void b0(e8.d dVar) {
        this.G = dVar;
        synchronized (this) {
            this.N |= 128;
        }
        f(h7.a.f20948e);
        super.J();
    }

    /* JADX WARN: Removed duplicated region for block: B:46:0x00c1  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00d5  */
    /* JADX WARN: Removed duplicated region for block: B:52:0x00e8  */
    /* JADX WARN: Removed duplicated region for block: B:55:0x0102  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        String str;
        d8.b bVar;
        int i10;
        int i11;
        int i12;
        int i13;
        d8.b bVar2;
        Resources resources;
        int i14;
        long j11;
        long j12;
        synchronized (this) {
            j10 = this.N;
            this.N = 0L;
        }
        e8.d dVar = this.G;
        if ((452 & j10) != 0) {
            long j13 = j10 & 388;
            if (j13 != 0) {
                androidx.lifecycle.a0 X = dVar != null ? dVar.X() : null;
                S(2, X);
                bVar2 = X != null ? (d8.b) X.f() : null;
                boolean z10 = bVar2 != null;
                if (j13 != 0) {
                    j10 |= z10 ? 16384L : 8192L;
                }
                i13 = z10 ? 0 : 8;
            } else {
                i13 = 0;
                bVar2 = null;
            }
            long j14 = j10 & 448;
            if (j14 != 0) {
                androidx.lifecycle.a0 k02 = dVar != null ? dVar.k0() : null;
                S(6, k02);
                boolean M = androidx.databinding.n.M(k02 != null ? (Boolean) k02.f() : null);
                if (j14 != 0) {
                    if (M) {
                        j11 = j10 | 1024 | 4096;
                        j12 = 65536;
                    } else {
                        j11 = j10 | 512 | 2048;
                        j12 = 32768;
                    }
                    j10 = j11 | j12;
                }
                int i15 = M ? 8 : 0;
                int i16 = M ? 0 : 8;
                if (M) {
                    resources = this.J.getResources();
                    i14 = h7.l.U1;
                } else {
                    resources = this.J.getResources();
                    i14 = h7.l.f21184o0;
                }
                String string = resources.getString(i14);
                i11 = i15;
                i10 = i13;
                str = string;
                bVar = bVar2;
                i12 = i16;
                if ((384 & j10) != 0) {
                    this.A.U(dVar);
                    this.C.U(dVar);
                    this.E.U(dVar);
                }
                if ((388 & j10) != 0) {
                    this.B.x().setVisibility(i10);
                    this.B.U(bVar);
                }
                if ((448 & j10) != 0) {
                    b4.e.e(this.J, str);
                    this.K.setVisibility(i11);
                    this.F.x().setVisibility(i12);
                }
                if ((j10 & 256) != 0) {
                    this.L.setOnClickListener(this.M);
                }
                androidx.databinding.n.p(this.F);
                androidx.databinding.n.p(this.A);
                androidx.databinding.n.p(this.E);
                androidx.databinding.n.p(this.C);
                androidx.databinding.n.p(this.B);
            }
            i10 = i13;
            bVar = bVar2;
            str = null;
        } else {
            str = null;
            bVar = null;
            i10 = 0;
        }
        i11 = 0;
        i12 = 0;
        if ((384 & j10) != 0) {
        }
        if ((388 & j10) != 0) {
        }
        if ((448 & j10) != 0) {
        }
        if ((j10 & 256) != 0) {
        }
        androidx.databinding.n.p(this.F);
        androidx.databinding.n.p(this.A);
        androidx.databinding.n.p(this.E);
        androidx.databinding.n.p(this.C);
        androidx.databinding.n.p(this.B);
    }

    @Override // androidx.databinding.n
    public boolean z() {
        synchronized (this) {
            if (this.N != 0) {
                return true;
            }
            return this.F.z() || this.A.z() || this.E.z() || this.C.z() || this.B.z();
        }
    }

    private n0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 7, (i1) objArr[6], (e1) objArr[9], (k1) objArr[8], (FragmentContainerView) objArr[10], (m1) objArr[7], (g1) objArr[5]);
        this.N = -1L;
        N(this.A);
        N(this.B);
        N(this.C);
        ScrollView scrollView = (ScrollView) objArr[0];
        this.H = scrollView;
        scrollView.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[1];
        this.I = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[2];
        this.J = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[3];
        this.K = textView2;
        textView2.setTag(null);
        MaterialButton materialButton = (MaterialButton) objArr[4];
        this.L = materialButton;
        materialButton.setTag(null);
        N(this.E);
        N(this.F);
        P(view);
        this.M = new f8.b(this, 1);
        B();
    }
}
