package ca.canadapost.module.mymail.landing;

import ae.o0;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.lifecycle.c1;
import androidx.lifecycle.d1;
import androidx.lifecycle.e1;
import androidx.lifecycle.u;
import androidx.lifecycle.z0;
import ca.canadapost.core.common.navigation.ui.b;
import ca.canadapost.core.common.navigation.ui.d;
import ca.canadapost.core.data.model.ResultWrapper;
import ca.canadapost.core.data.model.ValidationError;
import ca.canadapost.core.data.mymail.model.MyMailStatus;
import ca.canadapost.module.mymail.landing.MyMailLandingFragment;
import com.google.firebase.messaging.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l8.h;
import n8.j;
import n8.k;
import n8.m;
import n8.r;
import n8.w;
import n8.x;
import o8.d0;
import o8.g0;
import o8.h0;
import rm.n0;
import u7.x;
import u8.g;
import w8.p0;

@Metadata(d1 = {"\u0000¸\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\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\u0000\n\u0002\u0018\u0002\n\u0000\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\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u00002\u00020\u00012\b\u0012\u0004\u0012\u00020\u00030\u00022\u00020\u00042\u00020\u00052\u00020\u0006B\u0007¢\u0006\u0004\bY\u0010ZJ\b\u0010\b\u001a\u00020\u0007H\u0002J5\u0010\u0014\u001a\u00020\u00132\u0006\u0010\n\u001a\u00020\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0012\u001a\u00020\u0011H\u0096\u0001J\u0019\u0010\u0019\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020\u00152\u0006\u0010\u0018\u001a\u00020\u0017H\u0096\u0001J\u001b\u0010\u001f\u001a\u00020\u001e2\b\u0010\u001b\u001a\u0004\u0018\u00010\u001a2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J#\u0010\"\u001a\u00020\u001e2\u0006\u0010 \u001a\u00020\u001e2\b\u0010!\u001a\u0004\u0018\u00010\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u001b\u0010#\u001a\u00020\u001e2\b\u0010\u001b\u001a\u0004\u0018\u00010\u001a2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0019\u0010$\u001a\u00020\u001e2\u0006\u0010 \u001a\u00020\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0011\u0010%\u001a\u00020\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0011\u0010&\u001a\u00020\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0011\u0010'\u001a\u00020\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0019\u0010)\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020(2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0019\u0010*\u001a\u00020\u00072\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0016\u001a\u00020(H\u0096\u0001J\u0011\u0010+\u001a\u00020\u00072\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0019\u0010,\u001a\u00020\u00072\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0016\u001a\u00020(H\u0096\u0001J\u001b\u0010.\u001a\u00020\u00072\b\u0010-\u001a\u0004\u0018\u00010\u001a2\u0006\u0010\u001d\u001a\u00020\u001cH\u0096\u0001J\u0019\u00101\u001a\u00020\u00072\u0006\u00100\u001a\u00020/2\u0006\u0010\u0018\u001a\u00020\u0017H\u0096\u0001J\u0019\u00106\u001a\u00020\u00072\u0006\u00103\u001a\u0002022\u0006\u00105\u001a\u000204H\u0096\u0001J\u0019\u00107\u001a\u00020\u00072\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u00105\u001a\u000204H\u0096\u0001J#\u0010<\u001a\u00020\u00072\u0006\u00109\u001a\u0002082\u0006\u0010\u0018\u001a\u00020\u00172\b\b\u0002\u0010;\u001a\u00020:H\u0096\u0001J#\u0010>\u001a\u00020\u00072\u0006\u00109\u001a\u0002082\u0006\u00103\u001a\u00020=2\b\b\u0002\u0010;\u001a\u00020:H\u0096\u0001J\u0012\u0010?\u001a\u00020\u00072\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0016J$\u0010@\u001a\u00020\u00132\u0006\u0010\n\u001a\u00020\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0016J\u001a\u0010B\u001a\u00020\u00072\u0006\u0010A\u001a\u00020\u00132\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0016J\b\u0010C\u001a\u00020\u0007H\u0016R\u001b\u0010\u0012\u001a\u00020D8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bE\u0010F\u001a\u0004\bG\u0010HR\u001b\u0010M\u001a\u00020I8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bJ\u0010F\u001a\u0004\bK\u0010LR\u001c\u0010R\u001a\b\u0012\u0004\u0012\u00020O0N8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bP\u0010QR\u0016\u0010U\u001a\u00020:8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bS\u0010TR\u0014\u0010X\u001a\u00020\u00038\u0016X\u0096\u0005¢\u0006\u0006\u001a\u0004\bV\u0010W¨\u0006["}, d2 = {"Lca/canadapost/module/mymail/landing/MyMailLandingFragment;", "Lu8/b;", "", "Lae/o0;", "Lw8/o;", "Lw8/p0;", "Lca/canadapost/core/common/navigation/ui/d;", "Lrm/n0;", "R", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/os/Bundle;", "savedInstanceState", "Landroidx/lifecycle/u;", "viewLifecycleOwner", "Landroidx/lifecycle/z0;", "viewModel", "Landroid/view/View;", "Q", "Ll8/c;", Constants.IPC_BUNDLE_KEY_SEND_ERROR, "Landroidx/fragment/app/f;", "fragment", "K", "Lca/canadapost/core/data/model/ValidationError;", "validationError", "Landroid/content/Context;", "context", "", "m", "code", "message", "n", "i", "j", "h", "d", "a", "Lca/canadapost/core/data/model/ResultWrapper$Error;", "e", "l", "o", "g", "valError", "k", "Ll8/h;", "spinnerVM", "L", "Landroid/app/Activity;", "activity", "Ll8/h$b;", "event", "c", "p", "Lo8/h0;", "profileNavigationVMHandler", "", "showTwoSv", "f", "Landroidx/fragment/app/k;", "b", "onCreate", "onCreateView", "view", "onViewCreated", "onResume", "Lee/b;", "w", "Lrm/o;", "O", "()Lee/b;", "Lo8/d0;", "x", "N", "()Lo8/d0;", "navViewModel", "Lf/c;", "Landroid/content/Intent;", "y", "Lf/c;", "onActivityResultLauncher", "z", "Z", "isFromActivityResult", "M", "()Lae/o0;", "binding", "<init>", "()V", "mymail_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class MyMailLandingFragment extends u8.b implements w8.o, p0, ca.canadapost.core.common.navigation.ui.d {

    /* renamed from: s, reason: collision with root package name */
    private final /* synthetic */ x f10361s = new x(yd.j.f52331u);

    /* renamed from: t, reason: collision with root package name */
    private final /* synthetic */ w8.k f10362t = new w8.k(Integer.valueOf(yd.k.f52353n), Integer.valueOf(yd.k.f52364y), null, 4, null);

    /* renamed from: u, reason: collision with root package name */
    private final /* synthetic */ pe.a f10363u = new pe.a();

    /* renamed from: v, reason: collision with root package name */
    private final /* synthetic */ g0 f10364v = new g0();

    /* renamed from: w, reason: collision with root package name and from kotlin metadata */
    private final rm.o viewModel = androidx.fragment.app.p0.a(this, kotlin.jvm.internal.p0.b(ee.b.class), new n(new m(this)), new o());

    /* renamed from: x, reason: collision with root package name and from kotlin metadata */
    private final rm.o navViewModel = androidx.fragment.app.p0.a(this, kotlin.jvm.internal.p0.b(d0.class), new l(this), new a());

    /* renamed from: y, reason: collision with root package name and from kotlin metadata */
    private f.c onActivityResultLauncher;

    /* renamed from: z, reason: collision with root package name and from kotlin metadata */
    private boolean isFromActivityResult;

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

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

    /* loaded from: classes4.dex */
    static final class b extends v implements dn.l {
        b() {
            super(1);
        }

        public final void a(n0 n0Var) {
            m.a aVar = n8.m.f29859a;
            androidx.fragment.app.k requireActivity = MyMailLandingFragment.this.requireActivity();
            t.f(requireActivity, "requireActivity(...)");
            m.a.b(aVar, requireActivity, MyMailLandingFragment.this, false, 4, null);
        }

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

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

        public final void a(n0 n0Var) {
            w.a aVar = w.f29869a;
            androidx.fragment.app.k requireActivity = MyMailLandingFragment.this.requireActivity();
            t.f(requireActivity, "requireActivity(...)");
            aVar.a(requireActivity);
        }

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

    /* loaded from: classes4.dex */
    static final class d extends v implements dn.l {
        d() {
            super(1);
        }

        public final void a(MyMailStatus myMailStatus) {
            MyMailLandingFragment.this.O().v0();
        }

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

    /* loaded from: classes4.dex */
    static final class e extends v implements dn.l {
        e() {
            super(1);
        }

        public final void a(n0 n0Var) {
            x.a aVar = n8.x.f29870a;
            f.c cVar = MyMailLandingFragment.this.onActivityResultLauncher;
            if (cVar == null) {
                t.y("onActivityResultLauncher");
                cVar = null;
            }
            Context requireContext = MyMailLandingFragment.this.requireContext();
            t.f(requireContext, "requireContext(...)");
            x.a.d(aVar, cVar, requireContext, null, 4, null);
        }

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

    /* loaded from: classes4.dex */
    static final class f extends v implements dn.l {
        f() {
            super(1);
        }

        public final void a(n0 n0Var) {
            f.c cVar;
            f.c cVar2;
            if (MyMailLandingFragment.this.O().w0().d(p9.a.L2)) {
                k.a aVar = n8.k.f29857a;
                f.c cVar3 = MyMailLandingFragment.this.onActivityResultLauncher;
                if (cVar3 == null) {
                    t.y("onActivityResultLauncher");
                    cVar2 = null;
                } else {
                    cVar2 = cVar3;
                }
                Context requireContext = MyMailLandingFragment.this.requireContext();
                t.f(requireContext, "requireContext(...)");
                k.a.c(aVar, cVar2, requireContext, null, 4, null);
                return;
            }
            j.a aVar2 = n8.j.f29856a;
            f.c cVar4 = MyMailLandingFragment.this.onActivityResultLauncher;
            if (cVar4 == null) {
                t.y("onActivityResultLauncher");
                cVar = null;
            } else {
                cVar = cVar4;
            }
            Context requireContext2 = MyMailLandingFragment.this.requireContext();
            t.f(requireContext2, "requireContext(...)");
            j.a.c(aVar2, cVar, requireContext2, null, 4, null);
        }

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

    /* loaded from: classes4.dex */
    static final class g extends v implements dn.l {
        g() {
            super(1);
        }

        public final void a(n0 n0Var) {
            r.a aVar = r.f29864a;
            f.c cVar = MyMailLandingFragment.this.onActivityResultLauncher;
            if (cVar == null) {
                t.y("onActivityResultLauncher");
                cVar = null;
            }
            Context requireContext = MyMailLandingFragment.this.requireContext();
            t.f(requireContext, "requireContext(...)");
            r.a.b(aVar, cVar, requireContext, null, 4, null);
        }

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

    /* loaded from: classes4.dex */
    static final class h extends v implements dn.l {
        h() {
            super(1);
        }

        public final void a(n0 n0Var) {
            w8.w.d(x4.d.a(MyMailLandingFragment.this), yd.i.f52287e, null, null, 6, null);
        }

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

    /* loaded from: classes4.dex */
    static final class i extends v implements dn.l {
        i() {
            super(1);
        }

        public final void a(n0 n0Var) {
            w8.w.d(x4.d.a(MyMailLandingFragment.this), yd.i.f52285d, null, null, 6, null);
        }

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

    /* loaded from: classes4.dex */
    static final class j extends v implements dn.l {
        j() {
            super(1);
        }

        public final void a(n0 n0Var) {
            g.a aVar = u8.g.f36993k;
            Context requireContext = MyMailLandingFragment.this.requireContext();
            String string = MyMailLandingFragment.this.getString(yd.k.f52358s);
            t.f(string, "getString(...)");
            aVar.j(requireContext, string, MyMailLandingFragment.this.getString(yd.k.f52359t)).x(MyMailLandingFragment.this.requireContext());
        }

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

    /* loaded from: classes4.dex */
    static final class k implements androidx.lifecycle.g0, kotlin.jvm.internal.n {

        /* renamed from: a, reason: collision with root package name */
        private final /* synthetic */ dn.l f10379a;

        k(dn.l function) {
            t.g(function, "function");
            this.f10379a = function;
        }

        @Override // kotlin.jvm.internal.n
        public final rm.i b() {
            return this.f10379a;
        }

        @Override // androidx.lifecycle.g0
        public final /* synthetic */ void d(Object obj) {
            this.f10379a.invoke(obj);
        }

        public final boolean equals(Object obj) {
            if ((obj instanceof androidx.lifecycle.g0) && (obj instanceof kotlin.jvm.internal.n)) {
                return t.b(b(), ((kotlin.jvm.internal.n) obj).b());
            }
            return false;
        }

        public final int hashCode() {
            return b().hashCode();
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.fragment.app.f f10380p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public l(androidx.fragment.app.f fVar) {
            super(0);
            this.f10380p = fVar;
        }

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

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.fragment.app.f f10381p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public m(androidx.fragment.app.f fVar) {
            super(0);
            this.f10381p = fVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final androidx.fragment.app.f invoke() {
            return this.f10381p;
        }
    }

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

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

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

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final d1 invoke() {
            d1 viewModelStore = ((e1) this.f10382p.invoke()).getViewModelStore();
            t.f(viewModelStore, "ownerProducer().viewModelStore");
            return viewModelStore;
        }
    }

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

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

    private final d0 N() {
        return (d0) this.navViewModel.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public final ee.b O() {
        return (ee.b) this.viewModel.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void P(MyMailLandingFragment this$0, f.a aVar) {
        t.g(this$0, "this$0");
        this$0.isFromActivityResult = true;
        if (aVar.b() != -1 && !t.b(this$0.O().y0().h().f(), Boolean.TRUE)) {
            this$0.O().H0();
        } else {
            this$0.O().y0().x(false);
            this$0.O().I0();
        }
    }

    private final void R() {
        ee.b O = O();
        b.a aVar = ca.canadapost.core.common.navigation.ui.b.F;
        O.R0(aVar.a());
        aVar.b(false);
    }

    public void K(l8.c error, androidx.fragment.app.f fragment) {
        t.g(error, "error");
        t.g(fragment, "fragment");
        this.f10362t.b(error, fragment);
    }

    public void L(l8.h spinnerVM, androidx.fragment.app.f fragment) {
        t.g(spinnerVM, "spinnerVM");
        t.g(fragment, "fragment");
        this.f10363u.a(spinnerVM, fragment);
    }

    public o0 M() {
        return (o0) this.f10361s.b();
    }

    public View Q(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState, u viewLifecycleOwner, z0 viewModel) {
        t.g(inflater, "inflater");
        t.g(viewLifecycleOwner, "viewLifecycleOwner");
        t.g(viewModel, "viewModel");
        return this.f10361s.c(inflater, container, savedInstanceState, viewLifecycleOwner, viewModel);
    }

    @Override // w8.o
    public String a(Context context) {
        t.g(context, "context");
        return this.f10362t.a(context);
    }

    @Override // ca.canadapost.core.common.navigation.ui.d
    public void b(h0 profileNavigationVMHandler, androidx.fragment.app.k activity, boolean z10) {
        t.g(profileNavigationVMHandler, "profileNavigationVMHandler");
        t.g(activity, "activity");
        this.f10364v.b(profileNavigationVMHandler, activity, z10);
    }

    @Override // w8.p0
    public void c(Activity activity, h.b event) {
        t.g(activity, "activity");
        t.g(event, "event");
        this.f10363u.c(activity, event);
    }

    @Override // w8.o
    public String d(Context context) {
        t.g(context, "context");
        return this.f10362t.d(context);
    }

    @Override // w8.o
    public void e(ResultWrapper.Error error, Context context) {
        t.g(error, "error");
        t.g(context, "context");
        this.f10362t.e(error, context);
    }

    @Override // ca.canadapost.core.common.navigation.ui.d
    public void f(h0 profileNavigationVMHandler, androidx.fragment.app.f fragment, boolean z10) {
        t.g(profileNavigationVMHandler, "profileNavigationVMHandler");
        t.g(fragment, "fragment");
        this.f10364v.f(profileNavigationVMHandler, fragment, z10);
    }

    @Override // w8.o
    public void g(androidx.fragment.app.f fragment, ResultWrapper.Error error) {
        t.g(fragment, "fragment");
        t.g(error, "error");
        this.f10362t.g(fragment, error);
    }

    @Override // w8.o
    public String h(Context context) {
        t.g(context, "context");
        return this.f10362t.h(context);
    }

    @Override // w8.o
    public String i(ValidationError validationError, Context context) {
        t.g(context, "context");
        return this.f10362t.i(validationError, context);
    }

    @Override // w8.o
    public String j(String code, Context context) {
        t.g(code, "code");
        t.g(context, "context");
        return this.f10362t.j(code, context);
    }

    @Override // w8.o
    public void k(ValidationError validationError, Context context) {
        t.g(context, "context");
        this.f10362t.k(validationError, context);
    }

    @Override // w8.o
    public void l(androidx.fragment.app.f fragment, ResultWrapper.Error error) {
        t.g(fragment, "fragment");
        t.g(error, "error");
        this.f10362t.l(fragment, error);
    }

    @Override // w8.o
    public String m(ValidationError validationError, Context context) {
        t.g(context, "context");
        return this.f10362t.m(validationError, context);
    }

    @Override // w8.o
    public String n(String code, String message, Context context) {
        t.g(code, "code");
        t.g(context, "context");
        return this.f10362t.n(code, message, context);
    }

    @Override // w8.o
    public void o(Context context) {
        t.g(context, "context");
        this.f10362t.o(context);
    }

    @Override // u8.b, androidx.fragment.app.f
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        f.c registerForActivityResult = registerForActivityResult(new g.d(), new f.b() { // from class: ee.a
            @Override // f.b
            public final void a(Object obj) {
                MyMailLandingFragment.P(MyMailLandingFragment.this, (f.a) obj);
            }
        });
        t.f(registerForActivityResult, "registerForActivityResult(...)");
        this.onActivityResultLauncher = registerForActivityResult;
    }

    @Override // androidx.fragment.app.f
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        t.g(inflater, "inflater");
        u viewLifecycleOwner = getViewLifecycleOwner();
        t.f(viewLifecycleOwner, "getViewLifecycleOwner(...)");
        return Q(inflater, container, savedInstanceState, viewLifecycleOwner, O());
    }

    @Override // u8.b, androidx.fragment.app.f
    public void onResume() {
        super.onResume();
        if (this.isFromActivityResult) {
            this.isFromActivityResult = false;
        } else {
            O().Q0();
            R();
        }
    }

    @Override // u8.b, androidx.fragment.app.f
    public void onViewCreated(View view, Bundle bundle) {
        t.g(view, "view");
        super.onViewCreated(view, bundle);
        Button signInButton = M().C;
        t.f(signInButton, "signInButton");
        w8.d0.g(signInButton);
        L(O(), this);
        K(O(), this);
        d.a.a(this, O(), this, false, 4, null);
        N().P0(true);
        O().A0().j(getViewLifecycleOwner(), new k(new b()));
        O().C0().j(getViewLifecycleOwner(), new k(new c()));
        O().W().j(getViewLifecycleOwner(), new k(new d()));
        O().D0().j(getViewLifecycleOwner(), new k(new e()));
        O().z0().j(getViewLifecycleOwner(), new k(new f()));
        O().B0().j(getViewLifecycleOwner(), new k(new g()));
        O().F0().j(getViewLifecycleOwner(), new k(new h()));
        O().E0().j(getViewLifecycleOwner(), new k(new i()));
        O().G0().j(getViewLifecycleOwner(), new k(new j()));
    }

    @Override // w8.p0
    public void p(androidx.fragment.app.f fragment, h.b event) {
        t.g(fragment, "fragment");
        t.g(event, "event");
        this.f10363u.p(fragment, event);
    }
}
