package ca.canadapost;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.d;
import androidx.databinding.e;
import androidx.databinding.n;
import com.canadapost.android.R;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import va.b;

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

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

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

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

        static {
            HashMap hashMap = new HashMap(1);
            f7526a = hashMap;
            hashMap.put("layout/activity_welcome_0", Integer.valueOf(R.layout.activity_welcome));
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(1);
        f7525a = sparseIntArray;
        sparseIntArray.put(R.layout.activity_welcome, 1);
    }

    @Override // androidx.databinding.d
    public List a() {
        ArrayList arrayList = new ArrayList(22);
        arrayList.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.core.common.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.core.data.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.addresscomplete.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.consumerhome.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.customsform.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.devtools.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.epostprofile.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.findrate.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.flex.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.getsupport.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.homepickup.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.l1auth.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.l2.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.login.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.mymail.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.postal.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.registration.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.selfscan.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.sendingexperience.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.sfsb.DataBinderMapperImpl());
        arrayList.add(new ca.canadapost.module.track.DataBinderMapperImpl());
        return arrayList;
    }

    @Override // androidx.databinding.d
    public n b(e eVar, View view, int i10) {
        int i11 = f7525a.get(i10);
        if (i11 <= 0) {
            return null;
        }
        Object tag = view.getTag();
        if (tag == null) {
            throw new RuntimeException("view must have a tag");
        }
        if (i11 != 1) {
            return null;
        }
        if ("layout/activity_welcome_0".equals(tag)) {
            return new b(eVar, view);
        }
        throw new IllegalArgumentException("The tag for activity_welcome is invalid. Received: " + tag);
    }

    @Override // androidx.databinding.d
    public n c(e eVar, View[] viewArr, int i10) {
        if (viewArr == null || viewArr.length == 0 || f7525a.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.f7526a.get(str)) == null) {
            return 0;
        }
        return num.intValue();
    }
}
