package ca.canadapost.module.flex;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.n;
import gc.b2;
import hc.b0;
import hc.d0;
import hc.f0;
import hc.h;
import hc.h0;
import hc.j;
import hc.j0;
import hc.l;
import hc.l0;
import hc.n0;
import hc.p;
import hc.p0;
import hc.r;
import hc.t;
import hc.v;
import hc.x;
import hc.z;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

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

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

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

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

        static {
            HashMap hashMap = new HashMap(21);
            f9368a = hashMap;
            hashMap.put("layout/activity_flex_0", Integer.valueOf(b2.f19559a));
            hashMap.put("layout/apl_banner_0", Integer.valueOf(b2.f19560b));
            hashMap.put("layout/apl_banner_content_0", Integer.valueOf(b2.f19561c));
            hashMap.put("layout/apl_read_agree_button_0", Integer.valueOf(b2.f19562d));
            hashMap.put("layout/apl_read_terms_conditions_dialog_0", Integer.valueOf(b2.f19563e));
            hashMap.put("layout/edit_location_alias_content_0", Integer.valueOf(b2.f19564f));
            hashMap.put("layout/edit_location_alias_fragment_0", Integer.valueOf(b2.f19565g));
            hashMap.put("layout/edit_location_name_continue_button_0", Integer.valueOf(b2.f19566h));
            hashMap.put("layout/find_flex_post_office_fragment_0", Integer.valueOf(b2.f19567i));
            hashMap.put("layout/find_flex_post_office_panel_0", Integer.valueOf(b2.f19568j));
            hashMap.put("layout/flex_onboard_fragment_0", Integer.valueOf(b2.f19569k));
            hashMap.put("layout/flex_po_details_copy_picker_dialog_fragment_0", Integer.valueOf(b2.f19570l));
            hashMap.put("layout/flex_terms_and_conditions_button_0", Integer.valueOf(b2.f19571m));
            hashMap.put("layout/flex_terms_and_conditions_fragment_0", Integer.valueOf(b2.f19572n));
            hashMap.put("layout/item_flex_address_0", Integer.valueOf(b2.f19573o));
            hashMap.put("layout/item_flex_address_count_none_0", Integer.valueOf(b2.f19574p));
            hashMap.put("layout/location_details_ordering_fragment_0", Integer.valueOf(b2.f19575q));
            hashMap.put("layout/location_details_segment_fragment_0", Integer.valueOf(b2.f19576r));
            hashMap.put("layout/post_office_detail_actions_0", Integer.valueOf(b2.f19577s));
            hashMap.put("layout/post_office_detail_fragment_0", Integer.valueOf(b2.f19578t));
            hashMap.put("layout/post_office_detail_step_infographics_0", Integer.valueOf(b2.f19579u));
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(21);
        f9367a = sparseIntArray;
        sparseIntArray.put(b2.f19559a, 1);
        sparseIntArray.put(b2.f19560b, 2);
        sparseIntArray.put(b2.f19561c, 3);
        sparseIntArray.put(b2.f19562d, 4);
        sparseIntArray.put(b2.f19563e, 5);
        sparseIntArray.put(b2.f19564f, 6);
        sparseIntArray.put(b2.f19565g, 7);
        sparseIntArray.put(b2.f19566h, 8);
        sparseIntArray.put(b2.f19567i, 9);
        sparseIntArray.put(b2.f19568j, 10);
        sparseIntArray.put(b2.f19569k, 11);
        sparseIntArray.put(b2.f19570l, 12);
        sparseIntArray.put(b2.f19571m, 13);
        sparseIntArray.put(b2.f19572n, 14);
        sparseIntArray.put(b2.f19573o, 15);
        sparseIntArray.put(b2.f19574p, 16);
        sparseIntArray.put(b2.f19575q, 17);
        sparseIntArray.put(b2.f19576r, 18);
        sparseIntArray.put(b2.f19577s, 19);
        sparseIntArray.put(b2.f19578t, 20);
        sparseIntArray.put(b2.f19579u, 21);
    }

    @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 = f9367a.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_flex_0".equals(tag)) {
                    return new hc.b(eVar, view);
                }
                throw new IllegalArgumentException("The tag for activity_flex is invalid. Received: " + tag);
            case 2:
                if ("layout/apl_banner_0".equals(tag)) {
                    return new hc.d(eVar, view);
                }
                throw new IllegalArgumentException("The tag for apl_banner is invalid. Received: " + tag);
            case 3:
                if ("layout/apl_banner_content_0".equals(tag)) {
                    return new hc.f(eVar, view);
                }
                throw new IllegalArgumentException("The tag for apl_banner_content is invalid. Received: " + tag);
            case 4:
                if ("layout/apl_read_agree_button_0".equals(tag)) {
                    return new h(eVar, view);
                }
                throw new IllegalArgumentException("The tag for apl_read_agree_button is invalid. Received: " + tag);
            case 5:
                if ("layout/apl_read_terms_conditions_dialog_0".equals(tag)) {
                    return new j(eVar, view);
                }
                throw new IllegalArgumentException("The tag for apl_read_terms_conditions_dialog is invalid. Received: " + tag);
            case 6:
                if ("layout/edit_location_alias_content_0".equals(tag)) {
                    return new l(eVar, view);
                }
                throw new IllegalArgumentException("The tag for edit_location_alias_content is invalid. Received: " + tag);
            case 7:
                if ("layout/edit_location_alias_fragment_0".equals(tag)) {
                    return new hc.n(eVar, view);
                }
                throw new IllegalArgumentException("The tag for edit_location_alias_fragment is invalid. Received: " + tag);
            case 8:
                if ("layout/edit_location_name_continue_button_0".equals(tag)) {
                    return new p(eVar, view);
                }
                throw new IllegalArgumentException("The tag for edit_location_name_continue_button is invalid. Received: " + tag);
            case 9:
                if ("layout/find_flex_post_office_fragment_0".equals(tag)) {
                    return new r(eVar, view);
                }
                throw new IllegalArgumentException("The tag for find_flex_post_office_fragment is invalid. Received: " + tag);
            case 10:
                if ("layout/find_flex_post_office_panel_0".equals(tag)) {
                    return new t(eVar, view);
                }
                throw new IllegalArgumentException("The tag for find_flex_post_office_panel is invalid. Received: " + tag);
            case 11:
                if ("layout/flex_onboard_fragment_0".equals(tag)) {
                    return new v(eVar, view);
                }
                throw new IllegalArgumentException("The tag for flex_onboard_fragment is invalid. Received: " + tag);
            case 12:
                if ("layout/flex_po_details_copy_picker_dialog_fragment_0".equals(tag)) {
                    return new x(eVar, view);
                }
                throw new IllegalArgumentException("The tag for flex_po_details_copy_picker_dialog_fragment is invalid. Received: " + tag);
            case 13:
                if ("layout/flex_terms_and_conditions_button_0".equals(tag)) {
                    return new z(eVar, view);
                }
                throw new IllegalArgumentException("The tag for flex_terms_and_conditions_button is invalid. Received: " + tag);
            case 14:
                if ("layout/flex_terms_and_conditions_fragment_0".equals(tag)) {
                    return new b0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for flex_terms_and_conditions_fragment is invalid. Received: " + tag);
            case 15:
                if ("layout/item_flex_address_0".equals(tag)) {
                    return new d0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for item_flex_address is invalid. Received: " + tag);
            case 16:
                if ("layout/item_flex_address_count_none_0".equals(tag)) {
                    return new f0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for item_flex_address_count_none is invalid. Received: " + tag);
            case 17:
                if ("layout/location_details_ordering_fragment_0".equals(tag)) {
                    return new h0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for location_details_ordering_fragment is invalid. Received: " + tag);
            case 18:
                if ("layout/location_details_segment_fragment_0".equals(tag)) {
                    return new j0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for location_details_segment_fragment is invalid. Received: " + tag);
            case 19:
                if ("layout/post_office_detail_actions_0".equals(tag)) {
                    return new l0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for post_office_detail_actions is invalid. Received: " + tag);
            case 20:
                if ("layout/post_office_detail_fragment_0".equals(tag)) {
                    return new n0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for post_office_detail_fragment is invalid. Received: " + tag);
            case 21:
                if ("layout/post_office_detail_step_infographics_0".equals(tag)) {
                    return new p0(eVar, view);
                }
                throw new IllegalArgumentException("The tag for post_office_detail_step_infographics 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 || f9367a.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.f9368a.get(str)) == null) {
            return 0;
        }
        return num.intValue();
    }
}
