package ca.canadapost.core.common.maintenance.presentation;

import android.os.Bundle;
import ca.canadapost.core.common.navigation.ui.b;
import ca.canadapost.core.data.model.CoreConstants;
import dn.p;
import dn.q;
import e0.f;
import h7.l;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import m7.c;
import m8.i;
import n8.e0;
import rm.n0;
import y0.m;

@Metadata(d1 = {"\u0000\u001c\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\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\t\u0010\nJ\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\b\u001a\u00020\u0004H\u0016¨\u0006\u000b"}, d2 = {"Lca/canadapost/core/common/maintenance/presentation/MaintenanceActivity;", "Lca/canadapost/core/common/navigation/ui/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lrm/n0;", "onCreate", "Lm8/i;", "d", "onBackPressed", "<init>", "()V", "core_common_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes.dex */
public final class MaintenanceActivity extends b {

    /* loaded from: classes.dex */
    static final class a extends v implements p {

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

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: ca.canadapost.core.common.maintenance.presentation.MaintenanceActivity$a$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static final class C0203a extends v implements q {

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

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

            /* renamed from: r, reason: collision with root package name */
            final /* synthetic */ String f7830r;

            /* renamed from: s, reason: collision with root package name */
            final /* synthetic */ MaintenanceActivity f7831s;

            /* renamed from: t, reason: collision with root package name */
            final /* synthetic */ String f7832t;

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: ca.canadapost.core.common.maintenance.presentation.MaintenanceActivity$a$a$a, reason: collision with other inner class name */
            /* loaded from: classes.dex */
            public static final class C0204a extends v implements dn.a {

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

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

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                C0204a(MaintenanceActivity maintenanceActivity, String str) {
                    super(0);
                    this.f7833p = maintenanceActivity;
                    this.f7834q = str;
                }

                @Override // dn.a
                public /* bridge */ /* synthetic */ Object invoke() {
                    m44invoke();
                    return n0.f34904a;
                }

                /* renamed from: invoke, reason: collision with other method in class */
                public final void m44invoke() {
                    e0.f29852a.a(this.f7833p, this.f7834q);
                }
            }

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0203a(String str, String str2, String str3, MaintenanceActivity maintenanceActivity, String str4) {
                super(3);
                this.f7828p = str;
                this.f7829q = str2;
                this.f7830r = str3;
                this.f7831s = maintenanceActivity;
                this.f7832t = str4;
            }

            public final void a(f CpcFullScreen, m mVar, int i10) {
                t.g(CpcFullScreen, "$this$CpcFullScreen");
                if ((i10 & 81) == 16 && mVar.v()) {
                    mVar.A();
                    return;
                }
                if (y0.p.H()) {
                    y0.p.Q(-1322892660, i10, -1, "ca.canadapost.core.common.maintenance.presentation.MaintenanceActivity.onCreate.<anonymous>.<anonymous> (MaintenanceActivity.kt:50)");
                }
                String str = this.f7828p;
                String str2 = this.f7829q;
                String str3 = this.f7830r;
                mVar.e(1824595767);
                boolean R = mVar.R(this.f7831s) | mVar.R(this.f7832t);
                MaintenanceActivity maintenanceActivity = this.f7831s;
                String str4 = this.f7832t;
                Object f10 = mVar.f();
                if (R || f10 == m.f51621a.a()) {
                    f10 = new C0204a(maintenanceActivity, str4);
                    mVar.I(f10);
                }
                mVar.N();
                i8.a.a(str, str2, str3, (dn.a) f10, mVar, 0);
                if (y0.p.H()) {
                    y0.p.P();
                }
            }

            @Override // dn.q
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
                a((f) obj, (m) obj2, ((Number) obj3).intValue());
                return n0.f34904a;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(Bundle bundle, MaintenanceActivity maintenanceActivity) {
            super(2);
            this.f7826p = bundle;
            this.f7827q = maintenanceActivity;
        }

        public final void a(m mVar, int i10) {
            String string;
            String string2;
            String string3;
            String string4;
            if ((i10 & 11) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(2144220827, i10, -1, "ca.canadapost.core.common.maintenance.presentation.MaintenanceActivity.onCreate.<anonymous> (MaintenanceActivity.kt:37)");
            }
            Bundle bundle = this.f7826p;
            if (bundle == null || (string = bundle.getString(CoreConstants.MAINTENANCE_TITLE)) == null) {
                string = this.f7827q.getString(l.A0);
            }
            String str = string;
            t.d(str);
            Bundle bundle2 = this.f7826p;
            if (bundle2 == null || (string2 = bundle2.getString(CoreConstants.MAINTENANCE_DESC)) == null) {
                string2 = this.f7827q.getString(l.f21229x0);
            }
            String str2 = string2;
            t.d(str2);
            Bundle bundle3 = this.f7826p;
            if (bundle3 == null || (string3 = bundle3.getString(CoreConstants.MAINTENANCE_LINK_TEXT)) == null) {
                string3 = this.f7827q.getString(l.f21234y0);
            }
            String str3 = string3;
            t.d(str3);
            Bundle bundle4 = this.f7826p;
            if (bundle4 == null || (string4 = bundle4.getString(CoreConstants.MAINTENANCE_LINK_URL)) == null) {
                string4 = this.f7827q.getString(l.f21239z0);
            }
            String str4 = string4;
            t.d(str4);
            c.a(false, false, 0L, null, null, g1.c.b(mVar, -1322892660, true, new C0203a(str, str2, str3, this.f7827q, str4)), mVar, 196662, 28);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((m) obj, ((Number) obj2).intValue());
            return n0.f34904a;
        }
    }

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

    @Override // androidx.activity.h, android.app.Activity
    public void onBackPressed() {
        super.onBackPressed();
        j0().a(true);
    }

    /* 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);
        i.a E = E();
        if (E != null) {
            E.l();
        }
        d.b.b(this, null, g1.c.c(2144220827, true, new a(getIntent().getBundleExtra(CoreConstants.FRAG_ARGS), this)), 1, null);
    }
}
