package ca.canadapost.module.customsform;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.n;
import ib.y0;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import jb.b0;
import jb.d0;
import jb.j;
import jb.l;
import jb.p;
import jb.r;
import jb.t;
import jb.v;
import jb.x;
import jb.z;

/* loaded from: classes4.dex */
public class DataBinderMapperImpl extends androidx.databinding.d {

    /* renamed from: a, reason: collision with root package name */
    private static final SparseIntArray f8434a;

    /* loaded from: classes4.dex */
    private static class a {

        /* renamed from: a, reason: collision with root package name */
        static final HashMap f8435a;

        static {
            HashMap hashMap = new HashMap(15);
            f8435a = hashMap;
            hashMap.put("layout/activity_customs_form_0", Integer.valueOf(y0.f23119a));
            hashMap.put("layout/activity_customs_form_enhancement_0", Integer.valueOf(y0.f23120b));
            hashMap.put("layout/customs_form_banner_0", Integer.valueOf(y0.f23125g));
            hashMap.put("layout/customs_form_fragment_0", Integer.valueOf(y0.f23126h));
            hashMap.put("layout/customs_form_generated_qr_code_fragment_0", Integer.valueOf(y0.f23127i));
            hashMap.put("layout/customs_form_marketing_fragment_0", Integer.valueOf(y0.f23128j));
            hashMap.put("layout/customs_form_step1_fragment_0", Integer.valueOf(y0.f23129k));
            hashMap.put("layout/customs_form_step2_fragment_0", Integer.valueOf(y0.f23130l));
            hashMap.put("layout/customs_form_step3_fragment_0", Integer.valueOf(y0.f23131m));
            hashMap.put("layout/customs_form_step4_fragment_0", Integer.valueOf(y0.f23132n));
            hashMap.put("layout/customs_form_step5_fragment_0", Integer.valueOf(y0.f23133o));
            hashMap.put("layout/customs_form_step5_list_footer_0", Integer.valueOf(y0.f23134p));
            hashMap.put("layout/customs_form_step6_fragment_0", Integer.valueOf(y0.f23135q));
            hashMap.put("layout/item_customs_form_generated_list_0", Integer.valueOf(y0.f23136r));
            hashMap.put("layout/item_customs_form_step5_0", Integer.valueOf(y0.f23137s));
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(15);
        f8434a = sparseIntArray;
        sparseIntArray.put(y0.f23119a, 1);
        sparseIntArray.put(y0.f23120b, 2);
        sparseIntArray.put(y0.f23125g, 3);
        sparseIntArray.put(y0.f23126h, 4);
        sparseIntArray.put(y0.f23127i, 5);
        sparseIntArray.put(y0.f23128j, 6);
        sparseIntArray.put(y0.f23129k, 7);
        sparseIntArray.put(y0.f23130l, 8);
        sparseIntArray.put(y0.f23131m, 9);
        sparseIntArray.put(y0.f23132n, 10);
        sparseIntArray.put(y0.f23133o, 11);
        sparseIntArray.put(y0.f23134p, 12);
        sparseIntArray.put(y0.f23135q, 13);
        sparseIntArray.put(y0.f23136r, 14);
        sparseIntArray.put(y0.f23137s, 15);
    }

    @Override // androidx.databinding.d
    public List a() {
        ArrayList arrayList = new ArrayList(3);
        arrayList.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.core.common.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.core.data.DataBinderMapperImpl());
        return arrayList;
    }

    @Override // androidx.databinding.d
    public n b(androidx.databinding.e eVar, View view, int i10) {
        int i11 = f8434a.get(i10);
        if (i11 <= 0) {
            return null;
        }
        Object tag = view.getTag();
        if (tag == null) {
            throw new RuntimeException("view must have a tag");
        }
        switch (i11) {
            case 1:
                if ("layout/activity_customs_form_0".equals(tag)) {
                    return new jb.b(eVar, view);
                }
                throw new IllegalArgumentException("The tag for activity_customs_form is invalid. Received: " + tag);
            case 2:
                if ("layout/activity_customs_form_enhancement_0".equals(tag)) {
                    return new jb.d(eVar, view);
                }
                throw new IllegalArgumentException("The tag for activity_customs_form_enhancement is invalid. Received: " + tag);
            case 3:
                if ("layout/customs_form_banner_0".equals(tag)) {
                    return new jb.f(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_banner is invalid. Received: " + tag);
            case 4:
                if ("layout/customs_form_fragment_0".equals(tag)) {
                    return new jb.h(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_fragment is invalid. Received: " + tag);
            case 5:
                if ("layout/customs_form_generated_qr_code_fragment_0".equals(tag)) {
                    return new j(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_generated_qr_code_fragment is invalid. Received: " + tag);
            case 6:
                if ("layout/customs_form_marketing_fragment_0".equals(tag)) {
                    return new l(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_marketing_fragment is invalid. Received: " + tag);
            case 7:
                if ("layout/customs_form_step1_fragment_0".equals(tag)) {
                    return new jb.n(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step1_fragment is invalid. Received: " + tag);
            case 8:
                if ("layout/customs_form_step2_fragment_0".equals(tag)) {
                    return new p(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step2_fragment is invalid. Received: " + tag);
            case 9:
                if ("layout/customs_form_step3_fragment_0".equals(tag)) {
                    return new r(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step3_fragment is invalid. Received: " + tag);
            case 10:
                if ("layout/customs_form_step4_fragment_0".equals(tag)) {
                    return new t(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step4_fragment is invalid. Received: " + tag);
            case 11:
                if ("layout/customs_form_step5_fragment_0".equals(tag)) {
                    return new v(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step5_fragment is invalid. Received: " + tag);
            case 12:
                if ("layout/customs_form_step5_list_footer_0".equals(tag)) {
                    return new x(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step5_list_footer is invalid. Received: " + tag);
            case 13:
                if ("layout/customs_form_step6_fragment_0".equals(tag)) {
                    return new z(eVar, view);
                }
                throw new IllegalArgumentException("The tag for customs_form_step6_fragment is invalid. Received: " + tag);
            case 14:
                if ("layout/item_customs_form_generated_list_0".equals(tag)) {
                    return new b0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for item_customs_form_generated_list is invalid. Received: " + tag);
            case 15:
                if ("layout/item_customs_form_step5_0".equals(tag)) {
                    return new d0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for item_customs_form_step5 is invalid. Received: " + tag);
            default:
                return null;
        }
    }

    @Override // androidx.databinding.d
    public n c(androidx.databinding.e eVar, View[] viewArr, int i10) {
        if (viewArr == null || viewArr.length == 0 || f8434a.get(i10) <= 0 || viewArr[0].getTag() != null) {
            return null;
        }
        throw new RuntimeException("view must have a tag");
    }

    @Override // androidx.databinding.d
    public int d(String str) {
        Integer num;
        if (str == null || (num = (Integer) a.f8435a.get(str)) == null) {
            return 0;
        }
        return num.intValue();
    }
}
