package ca.canadapost.module.registration;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.d;
import androidx.databinding.n;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import we.e;
import xe.b;
import xe.b0;
import xe.d0;
import xe.f;
import xe.h;
import xe.j;
import xe.l;
import xe.p;
import xe.r;
import xe.t;
import xe.v;
import xe.x;
import xe.z;

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

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

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

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

        static {
            HashMap hashMap = new HashMap(15);
            f10636a = hashMap;
            hashMap.put("layout/activity_registration_0", Integer.valueOf(e.f49164a));
            hashMap.put("layout/registration_agree_button_0", Integer.valueOf(e.f49165b));
            hashMap.put("layout/registration_continue_button_0", Integer.valueOf(e.f49166c));
            hashMap.put("layout/registration_done_button_0", Integer.valueOf(e.f49167d));
            hashMap.put("layout/registration_resend_email_button_0", Integer.valueOf(e.f49168e));
            hashMap.put("layout/registration_step1_content_0", Integer.valueOf(e.f49169f));
            hashMap.put("layout/registration_step1_fragment_0", Integer.valueOf(e.f49170g));
            hashMap.put("layout/registration_step2_content_0", Integer.valueOf(e.f49171h));
            hashMap.put("layout/registration_step2_fragment_0", Integer.valueOf(e.f49172i));
            hashMap.put("layout/registration_step3_content_0", Integer.valueOf(e.f49173j));
            hashMap.put("layout/registration_step3_fragment_0", Integer.valueOf(e.f49174k));
            hashMap.put("layout/registration_suggested_username_dialog_fragment_0", Integer.valueOf(e.f49175l));
            hashMap.put("layout/registration_terms_condition_dialog_0", Integer.valueOf(e.f49176m));
            hashMap.put("layout/registration_verify_email_content_0", Integer.valueOf(e.f49177n));
            hashMap.put("layout/registration_verify_email_dialog_fragment_0", Integer.valueOf(e.f49178o));
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(15);
        f10635a = sparseIntArray;
        sparseIntArray.put(e.f49164a, 1);
        sparseIntArray.put(e.f49165b, 2);
        sparseIntArray.put(e.f49166c, 3);
        sparseIntArray.put(e.f49167d, 4);
        sparseIntArray.put(e.f49168e, 5);
        sparseIntArray.put(e.f49169f, 6);
        sparseIntArray.put(e.f49170g, 7);
        sparseIntArray.put(e.f49171h, 8);
        sparseIntArray.put(e.f49172i, 9);
        sparseIntArray.put(e.f49173j, 10);
        sparseIntArray.put(e.f49174k, 11);
        sparseIntArray.put(e.f49175l, 12);
        sparseIntArray.put(e.f49176m, 13);
        sparseIntArray.put(e.f49177n, 14);
        sparseIntArray.put(e.f49178o, 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 = f10635a.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_registration_0".equals(tag)) {
                    return new b(eVar, view);
                }
                throw new IllegalArgumentException("The tag for activity_registration is invalid. Received: " + tag);
            case 2:
                if ("layout/registration_agree_button_0".equals(tag)) {
                    return new xe.d(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_agree_button is invalid. Received: " + tag);
            case 3:
                if ("layout/registration_continue_button_0".equals(tag)) {
                    return new f(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_continue_button is invalid. Received: " + tag);
            case 4:
                if ("layout/registration_done_button_0".equals(tag)) {
                    return new h(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_done_button is invalid. Received: " + tag);
            case 5:
                if ("layout/registration_resend_email_button_0".equals(tag)) {
                    return new j(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_resend_email_button is invalid. Received: " + tag);
            case 6:
                if ("layout/registration_step1_content_0".equals(tag)) {
                    return new l(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step1_content is invalid. Received: " + tag);
            case 7:
                if ("layout/registration_step1_fragment_0".equals(tag)) {
                    return new xe.n(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step1_fragment is invalid. Received: " + tag);
            case 8:
                if ("layout/registration_step2_content_0".equals(tag)) {
                    return new p(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step2_content is invalid. Received: " + tag);
            case 9:
                if ("layout/registration_step2_fragment_0".equals(tag)) {
                    return new r(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step2_fragment is invalid. Received: " + tag);
            case 10:
                if ("layout/registration_step3_content_0".equals(tag)) {
                    return new t(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step3_content is invalid. Received: " + tag);
            case 11:
                if ("layout/registration_step3_fragment_0".equals(tag)) {
                    return new v(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_step3_fragment is invalid. Received: " + tag);
            case 12:
                if ("layout/registration_suggested_username_dialog_fragment_0".equals(tag)) {
                    return new x(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_suggested_username_dialog_fragment is invalid. Received: " + tag);
            case 13:
                if ("layout/registration_terms_condition_dialog_0".equals(tag)) {
                    return new z(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_terms_condition_dialog is invalid. Received: " + tag);
            case 14:
                if ("layout/registration_verify_email_content_0".equals(tag)) {
                    return new b0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_verify_email_content is invalid. Received: " + tag);
            case 15:
                if ("layout/registration_verify_email_dialog_fragment_0".equals(tag)) {
                    return new d0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for registration_verify_email_dialog_fragment 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 || f10635a.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.f10636a.get(str)) == null) {
            return 0;
        }
        return num.intValue();
    }
}
