package ca.canadapost.module.homepickup;

import android.os.Bundle;
import androidx.databinding.f;
import androidx.databinding.n;
import androidx.navigation.fragment.NavHostFragment;
import ca.canadapost.core.common.navigation.ui.b;
import ca.canadapost.core.data.model.CoreConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import m8.i;
import pc.g;
import pc.h;
import rc.a;
import v4.j;

@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\f\u0010\rJ\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\b\u0010\u0007\u001a\u00020\u0006H\u0016R\u0016\u0010\u000b\u001a\u00020\b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\t\u0010\n¨\u0006\u000e"}, d2 = {"Lca/canadapost/module/homepickup/HomePickupActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lrm/n0;", "onCreate", "Lm8/i;", "d", "Lrc/a;", "I", "Lrc/a;", "binding", "<init>", "()V", "homepickup_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class HomePickupActivity extends b {

    /* renamed from: I, reason: from kotlin metadata */
    private a binding;

    @Override // m8.m
    public i d() {
        return i.NAV_HOME_PICKUP;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // ca.canadapost.core.common.navigation.ui.b, androidx.fragment.app.k, androidx.activity.h, androidx.core.app.f, android.app.Activity
    public void onCreate(Bundle bundle) {
        Bundle bundle2;
        super.onCreate(bundle);
        n j10 = f.j(this, h.f32588a);
        t.f(j10, "setContentView(...)");
        a aVar = (a) j10;
        this.binding = aVar;
        String str = null;
        if (aVar == null) {
            t.y("binding");
            aVar = null;
        }
        aVar.O(this);
        a aVar2 = this.binding;
        if (aVar2 == null) {
            t.y("binding");
            aVar2 = null;
        }
        v0(aVar2.A.B);
        N(m0());
        androidx.fragment.app.f k02 = getSupportFragmentManager().k0(g.f32586d);
        t.e(k02, "null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment");
        j A = ((NavHostFragment) k02).A();
        Bundle extras = getIntent().getExtras();
        if (extras != null && (bundle2 = extras.getBundle(CoreConstants.FRAG_ARGS)) != null) {
            str = bundle2.getString("HomePickupActionItem");
        }
        if (str != null) {
            if (t.b(str, n8.h.ADDRESS_ELIGIBLE.getValue())) {
                A.M(g.f32583a);
            } else if (t.b(str, n8.h.ADDRESS_INELIGIBLE.getValue())) {
                A.M(g.f32584b);
            } else if (t.b(str, n8.h.ENTER_TRACKING_NO.getValue())) {
                A.M(g.f32585c);
            }
        }
    }
}
