package ca.canadapost.module.homepickup;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.d;
import androidx.databinding.e;
import androidx.databinding.n;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import pc.h;
import rc.b;

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

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

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

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

        static {
            HashMap hashMap = new HashMap(1);
            f9548a = hashMap;
            hashMap.put("layout/activity_home_pickup_0", Integer.valueOf(h.f32588a));
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(1);
        f9547a = sparseIntArray;
        sparseIntArray.put(h.f32588a, 1);
    }

    @Override // androidx.databinding.d
    public List a() {
        ArrayList arrayList = new ArrayList(5);
        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.postal.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 = f9547a.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_home_pickup_0".equals(tag)) {
            return new b(eVar, view);
        }
        throw new IllegalArgumentException("The tag for activity_home_pickup is invalid. Received: " + tag);
    }

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