package ca.canadapost.module.sfsb;

import android.os.Bundle;
import androidx.activity.h;
import androidx.databinding.n;
import androidx.lifecycle.b1;
import androidx.lifecycle.c1;
import androidx.lifecycle.d1;
import kotlin.Metadata;
import kotlin.jvm.internal.p0;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import m8.i;
import rf.f;
import rm.o;

@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\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0012\u0010\u0013J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\b\u0010\u0007\u001a\u00020\u0006H\u0016R\u001b\u0010\r\u001a\u00020\b8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u0016\u0010\u0011\u001a\u00020\u000e8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010¨\u0006\u0014"}, d2 = {"Lca/canadapost/module/sfsb/SfsbActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lrm/n0;", "onCreate", "Lm8/i;", "d", "Lrf/f;", "I", "Lrm/o;", "z0", "()Lrf/f;", "viewModel", "Lsf/a;", "J", "Lsf/a;", "binding", "<init>", "()V", "sfsb_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class SfsbActivity extends ca.canadapost.core.common.navigation.ui.b {

    /* renamed from: I, reason: from kotlin metadata */
    private final o viewModel = new b1(p0.b(f.class), new a(this), new c(), new b(null, this));

    /* renamed from: J, reason: from kotlin metadata */
    private sf.a binding;

    /* loaded from: classes4.dex */
    public static final class a extends v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ h f10841p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public a(h hVar) {
            super(0);
            this.f10841p = hVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final d1 invoke() {
            return this.f10841p.getViewModelStore();
        }
    }

    /* loaded from: classes4.dex */
    public static final class b extends v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.a f10842p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ h f10843q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public b(dn.a aVar, h hVar) {
            super(0);
            this.f10842p = aVar;
            this.f10843q = hVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final s4.a invoke() {
            s4.a aVar;
            dn.a aVar2 = this.f10842p;
            return (aVar2 == null || (aVar = (s4.a) aVar2.invoke()) == null) ? this.f10843q.getDefaultViewModelCreationExtras() : aVar;
        }
    }

    /* loaded from: classes4.dex */
    static final class c extends v implements dn.a {
        c() {
            super(0);
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final c1.c invoke() {
            return SfsbActivity.this.n0();
        }
    }

    private final f z0() {
        return (f) this.viewModel.getValue();
    }

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

    /* 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, rf.c.f34697a);
        t.f(j10, "setContentView(...)");
        sf.a aVar = (sf.a) j10;
        this.binding = aVar;
        sf.a aVar2 = null;
        if (aVar == null) {
            t.y("binding");
            aVar = null;
        }
        aVar.V(z0());
        sf.a aVar3 = this.binding;
        if (aVar3 == null) {
            t.y("binding");
            aVar3 = null;
        }
        aVar3.U(k0());
        sf.a aVar4 = this.binding;
        if (aVar4 == null) {
            t.y("binding");
            aVar4 = null;
        }
        aVar4.O(this);
        sf.a aVar5 = this.binding;
        if (aVar5 == null) {
            t.y("binding");
        } else {
            aVar2 = aVar5;
        }
        v0(aVar2.A.B);
        N(m0());
    }
}
