package ca.canadapost.module.customsform.enhancement;

import android.os.Bundle;
import androidx.databinding.n;
import androidx.fragment.app.FragmentContainerView;
import androidx.fragment.app.f;
import androidx.navigation.fragment.NavHostFragment;
import ca.canadapost.core.common.navigation.ui.b;
import com.google.firebase.analytics.FirebaseAnalytics;
import ib.a1;
import ib.x0;
import ib.y0;
import jb.c;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import m8.i;
import o8.l;
import v4.j;
import v4.p;
import w8.d0;
import y4.d;

@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u000f\u0010\u0010J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0012\u0010\b\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0014J\b\u0010\n\u001a\u00020\tH\u0016R\u0016\u0010\u000e\u001a\u00020\u000b8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\f\u0010\r¨\u0006\u0011"}, d2 = {"Lca/canadapost/module/customsform/enhancement/CustomsFormEnhancementActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "", FirebaseAnalytics.Param.DESTINATION, "Lrm/n0;", "y0", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "Lm8/i;", "d", "Ljb/c;", "I", "Ljb/c;", "binding", "<init>", "()V", "customsform_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class CustomsFormEnhancementActivity extends b {

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

    private final void y0(int i10) {
        f k02 = getSupportFragmentManager().k0(x0.U);
        t.e(k02, "null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment");
        j A = ((NavHostFragment) k02).A();
        p b10 = A.F().b(a1.f22561a);
        b10.b0(i10);
        A.k0(b10);
        A.p(new l(this, k0(), new d.a(A.D()).a()));
    }

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

    /* 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) {
        super.onCreate(bundle);
        n j10 = androidx.databinding.f.j(this, y0.f23120b);
        t.f(j10, "setContentView(...)");
        c cVar = (c) j10;
        this.binding = cVar;
        c cVar2 = null;
        if (cVar == null) {
            t.y("binding");
            cVar = null;
        }
        cVar.O(this);
        c cVar3 = this.binding;
        if (cVar3 == null) {
            t.y("binding");
            cVar3 = null;
        }
        v0(cVar3.A.B);
        N(m0());
        y0(x0.L);
        c cVar4 = this.binding;
        if (cVar4 == null) {
            t.y("binding");
        } else {
            cVar2 = cVar4;
        }
        FragmentContainerView navHostFragment = cVar2.B;
        t.f(navHostFragment, "navHostFragment");
        d0.i(navHostFragment);
    }
}
