package ca.canadapost.module.registration;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.lifecycle.c1;
import androidx.lifecycle.g0;
import ca.canadapost.core.common.customView.CpcTextInput;
import ca.canadapost.core.data.model.Event;
import ca.canadapost.core.data.model.ResultWrapper;
import ca.canadapost.core.data.model.ValidationError;
import ca.canadapost.module.registration.RegistrationStep1Fragment;
import com.google.firebase.messaging.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l8.h;
import rm.n0;
import u8.g;
import w8.d0;
import w8.k;
import w8.l;
import w8.o;
import w8.p0;
import w8.w;
import w8.y;
import we.n;
import xe.m;

@Metadata(d1 = {"\u0000\u0088\u0001\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\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\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u0003B\u0007¢\u0006\u0004\bC\u0010DJ\u0019\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0096\u0001J\u001b\u0010\u000f\u001a\u00020\u000e2\b\u0010\u000b\u001a\u0004\u0018\u00010\n2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J#\u0010\u0012\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u000e2\b\u0010\u0011\u001a\u0004\u0018\u00010\u000e2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u001b\u0010\u0013\u001a\u00020\u000e2\b\u0010\u000b\u001a\u0004\u0018\u00010\n2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0019\u0010\u0014\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0011\u0010\u0015\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0011\u0010\u0016\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0011\u0010\u0017\u001a\u00020\u000e2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0019\u0010\u0019\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00182\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0019\u0010\u001a\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0018H\u0096\u0001J\u0011\u0010\u001b\u001a\u00020\b2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0019\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0018H\u0096\u0001J\u001b\u0010\u001e\u001a\u00020\b2\b\u0010\u001d\u001a\u0004\u0018\u00010\n2\u0006\u0010\r\u001a\u00020\fH\u0096\u0001J\u0019\u0010!\u001a\u00020\b2\u0006\u0010 \u001a\u00020\u001f2\u0006\u0010\u0007\u001a\u00020\u0006H\u0096\u0001J\u0019\u0010&\u001a\u00020\b2\u0006\u0010#\u001a\u00020\"2\u0006\u0010%\u001a\u00020$H\u0096\u0001J\u0019\u0010'\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010%\u001a\u00020$H\u0096\u0001J\u0012\u0010*\u001a\u00020\b2\b\u0010)\u001a\u0004\u0018\u00010(H\u0016J$\u00100\u001a\u00020/2\u0006\u0010,\u001a\u00020+2\b\u0010.\u001a\u0004\u0018\u00010-2\b\u0010)\u001a\u0004\u0018\u00010(H\u0016J\u001a\u00102\u001a\u00020\b2\u0006\u00101\u001a\u00020/2\b\u0010)\u001a\u0004\u0018\u00010(H\u0016R\"\u0010:\u001a\u0002038\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b6\u00107\"\u0004\b8\u00109R\u0016\u0010>\u001a\u00020;8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b<\u0010=R\u0016\u0010B\u001a\u00020?8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b@\u0010A¨\u0006E"}, d2 = {"Lca/canadapost/module/registration/RegistrationStep1Fragment;", "Lu8/b;", "Lw8/o;", "Lw8/p0;", "Ll8/c;", Constants.IPC_BUNDLE_KEY_SEND_ERROR, "Landroidx/fragment/app/f;", "fragment", "Lrm/n0;", "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", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/view/View;", "onCreateView", "view", "onViewCreated", "Landroidx/lifecycle/c1$c;", "u", "Landroidx/lifecycle/c1$c;", "M", "()Landroidx/lifecycle/c1$c;", "setViewModeFactory", "(Landroidx/lifecycle/c1$c;)V", "viewModeFactory", "Lxe/m;", "v", "Lxe/m;", "binding", "Lwe/n;", "w", "Lwe/n;", "viewModel", "<init>", "()V", "registration_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class RegistrationStep1Fragment extends u8.b implements o, p0 {

    /* renamed from: s, reason: collision with root package name */
    private final /* synthetic */ k f10644s = new k(null, null, null, 7, null);

    /* renamed from: t, reason: collision with root package name */
    private final /* synthetic */ l f10645t = new l();

    /* renamed from: u, reason: collision with root package name and from kotlin metadata */
    public c1.c viewModeFactory;

    /* renamed from: v, reason: collision with root package name and from kotlin metadata */
    private m binding;

    /* renamed from: w, reason: collision with root package name and from kotlin metadata */
    private n viewModel;

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

        public final void a(Event event) {
            Boolean bool = (Boolean) event.getContentIfNotHandled();
            if (bool != null) {
                RegistrationStep1Fragment registrationStep1Fragment = RegistrationStep1Fragment.this;
                if (bool.booleanValue()) {
                    n nVar = registrationStep1Fragment.viewModel;
                    if (nVar == null) {
                        t.y("viewModel");
                        nVar = null;
                    }
                    String str = (String) nVar.f0().f();
                    if (str != null) {
                        g.a aVar = u8.g.f36993k;
                        androidx.fragment.app.k requireActivity = registrationStep1Fragment.requireActivity();
                        t.d(str);
                        aVar.j(requireActivity, str, registrationStep1Fragment.getString(we.f.f49188i)).x(registrationStep1Fragment.requireContext());
                    }
                }
            }
        }

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

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

        public final void a(n0 n0Var) {
            RegistrationStep1Fragment.this.C();
        }

        @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(Boolean bool) {
            m mVar = RegistrationStep1Fragment.this.binding;
            m mVar2 = null;
            if (mVar == null) {
                t.y("binding");
                mVar = null;
            }
            CpcTextInput cpcTextInput = mVar.A.D;
            t.d(bool);
            cpcTextInput.setErrorEnabled(bool.booleanValue());
            if (bool.booleanValue()) {
                m mVar3 = RegistrationStep1Fragment.this.binding;
                if (mVar3 == null) {
                    t.y("binding");
                } else {
                    mVar2 = mVar3;
                }
                mVar2.A.D.setError(RegistrationStep1Fragment.this.getString(we.f.f49205z));
            }
        }

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

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

        public final void a(Boolean bool) {
            m mVar = RegistrationStep1Fragment.this.binding;
            m mVar2 = null;
            if (mVar == null) {
                t.y("binding");
                mVar = null;
            }
            CpcTextInput cpcTextInput = mVar.A.C;
            t.d(bool);
            cpcTextInput.setErrorEnabled(bool.booleanValue());
            if (bool.booleanValue()) {
                m mVar3 = RegistrationStep1Fragment.this.binding;
                if (mVar3 == null) {
                    t.y("binding");
                } else {
                    mVar2 = mVar3;
                }
                mVar2.A.C.setError(RegistrationStep1Fragment.this.getString(we.f.f49201v));
            }
        }

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

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

        public final void a(Boolean bool) {
            m mVar = RegistrationStep1Fragment.this.binding;
            m mVar2 = null;
            if (mVar == null) {
                t.y("binding");
                mVar = null;
            }
            CpcTextInput cpcTextInput = mVar.A.A;
            t.d(bool);
            cpcTextInput.setErrorEnabled(bool.booleanValue());
            if (bool.booleanValue()) {
                n nVar = RegistrationStep1Fragment.this.viewModel;
                if (nVar == null) {
                    t.y("viewModel");
                    nVar = null;
                }
                if (nVar.U().f() == null) {
                    m mVar3 = RegistrationStep1Fragment.this.binding;
                    if (mVar3 == null) {
                        t.y("binding");
                    } else {
                        mVar2 = mVar3;
                    }
                    mVar2.A.A.setError(RegistrationStep1Fragment.this.getString(we.f.f49183d));
                    return;
                }
                m mVar4 = RegistrationStep1Fragment.this.binding;
                if (mVar4 == null) {
                    t.y("binding");
                } else {
                    mVar2 = mVar4;
                }
                mVar2.A.A.setError(RegistrationStep1Fragment.this.getString(we.f.f49196q));
            }
        }

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

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

        public final void a(Boolean bool) {
            t.d(bool);
            m mVar = null;
            if (bool.booleanValue()) {
                m mVar2 = RegistrationStep1Fragment.this.binding;
                if (mVar2 == null) {
                    t.y("binding");
                    mVar2 = null;
                }
                mVar2.A.C.getTextInputEditText().setInputType(129);
                m mVar3 = RegistrationStep1Fragment.this.binding;
                if (mVar3 == null) {
                    t.y("binding");
                    mVar3 = null;
                }
                mVar3.A.C.setEndIconDrawable(we.c.f49136a);
                m mVar4 = RegistrationStep1Fragment.this.binding;
                if (mVar4 == null) {
                    t.y("binding");
                    mVar4 = null;
                }
                CpcTextInput cpcTextInput = mVar4.A.C;
                String string = RegistrationStep1Fragment.this.getString(we.f.f49192m);
                t.f(string, "getString(...)");
                cpcTextInput.setEndIconContentDescription(string);
            } else {
                m mVar5 = RegistrationStep1Fragment.this.binding;
                if (mVar5 == null) {
                    t.y("binding");
                    mVar5 = null;
                }
                mVar5.A.C.getTextInputEditText().setInputType(145);
                m mVar6 = RegistrationStep1Fragment.this.binding;
                if (mVar6 == null) {
                    t.y("binding");
                    mVar6 = null;
                }
                mVar6.A.C.setEndIconDrawable(we.c.f49137b);
                m mVar7 = RegistrationStep1Fragment.this.binding;
                if (mVar7 == null) {
                    t.y("binding");
                    mVar7 = null;
                }
                CpcTextInput cpcTextInput2 = mVar7.A.C;
                String string2 = RegistrationStep1Fragment.this.getString(we.f.C);
                t.f(string2, "getString(...)");
                cpcTextInput2.setEndIconContentDescription(string2);
            }
            m mVar8 = RegistrationStep1Fragment.this.binding;
            if (mVar8 == null) {
                t.y("binding");
                mVar8 = null;
            }
            Editable text = mVar8.A.C.getTextInputEditText().getText();
            if (text != null) {
                int length = text.length();
                m mVar9 = RegistrationStep1Fragment.this.binding;
                if (mVar9 == null) {
                    t.y("binding");
                } else {
                    mVar = mVar9;
                }
                mVar.A.C.getTextInputEditText().setSelection(length);
            }
        }

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

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

        public final void a(Event event) {
            Boolean bool = (Boolean) event.getContentIfNotHandled();
            if (bool != null) {
                RegistrationStep1Fragment registrationStep1Fragment = RegistrationStep1Fragment.this;
                if (bool.booleanValue()) {
                    registrationStep1Fragment.C();
                    w.d(x4.d.a(registrationStep1Fragment), we.d.f49142d, null, null, 6, null);
                }
            }
        }

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

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

        public final void a(Event event) {
            Boolean bool = (Boolean) event.getContentIfNotHandled();
            if (bool != null) {
                RegistrationStep1Fragment registrationStep1Fragment = RegistrationStep1Fragment.this;
                if (bool.booleanValue()) {
                    registrationStep1Fragment.C();
                    x4.d.a(registrationStep1Fragment).M(we.d.f49151m);
                }
            }
        }

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

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

        public final void a(String str) {
            n nVar = RegistrationStep1Fragment.this.viewModel;
            if (nVar == null) {
                t.y("viewModel");
                nVar = null;
            }
            t.d(str);
            nVar.j0(str);
        }

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

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

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

        j(dn.l function) {
            t.g(function, "function");
            this.f10658a = function;
        }

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

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

        public final boolean equals(Object obj) {
            if ((obj instanceof 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();
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void N(RegistrationStep1Fragment this$0, View view) {
        t.g(this$0, "this$0");
        n nVar = this$0.viewModel;
        if (nVar == null) {
            t.y("viewModel");
            nVar = null;
        }
        nVar.k0();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void O(RegistrationStep1Fragment this$0, View view) {
        t.g(this$0, "this$0");
        n nVar = this$0.viewModel;
        if (nVar == null) {
            t.y("viewModel");
            nVar = null;
        }
        nVar.i0();
    }

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

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

    public final c1.c M() {
        c1.c cVar = this.viewModeFactory;
        if (cVar != null) {
            return cVar;
        }
        t.y("viewModeFactory");
        return null;
    }

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

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

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

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

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

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

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

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

    @Override // w8.o
    public void k(ValidationError validationError, Context context) {
        t.g(context, "context");
        this.f10644s.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.f10644s.l(fragment, error);
    }

    @Override // w8.o
    public String m(ValidationError validationError, Context context) {
        t.g(context, "context");
        return this.f10644s.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.f10644s.n(code, message, context);
    }

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

    @Override // u8.b, androidx.fragment.app.f
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setRetainInstance(true);
        setHasOptionsMenu(true);
        this.viewModel = (n) new c1(this, M()).a(n.class);
    }

    @Override // androidx.fragment.app.f
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        t.g(inflater, "inflater");
        androidx.databinding.n h10 = androidx.databinding.f.h(inflater, we.e.f49170g, container, false);
        t.f(h10, "inflate(...)");
        m mVar = (m) h10;
        this.binding = mVar;
        m mVar2 = null;
        if (mVar == null) {
            t.y("binding");
            mVar = null;
        }
        mVar.O(getViewLifecycleOwner());
        m mVar3 = this.binding;
        if (mVar3 == null) {
            t.y("binding");
            mVar3 = null;
        }
        n nVar = this.viewModel;
        if (nVar == null) {
            t.y("viewModel");
            nVar = null;
        }
        mVar3.U(nVar);
        m mVar4 = this.binding;
        if (mVar4 == null) {
            t.y("binding");
        } else {
            mVar2 = mVar4;
        }
        View x10 = mVar2.x();
        t.f(x10, "getRoot(...)");
        return x10;
    }

    @Override // u8.b, androidx.fragment.app.f
    public void onViewCreated(View view, Bundle bundle) {
        t.g(view, "view");
        super.onViewCreated(view, bundle);
        n nVar = this.viewModel;
        n nVar2 = null;
        if (nVar == null) {
            t.y("viewModel");
            nVar = null;
        }
        L(nVar, this);
        n nVar3 = this.viewModel;
        if (nVar3 == null) {
            t.y("viewModel");
            nVar3 = null;
        }
        K(nVar3, this);
        androidx.fragment.app.k activity = getActivity();
        if (activity != null) {
            activity.setTitle(getString(we.f.f49195p));
        }
        n nVar4 = this.viewModel;
        if (nVar4 == null) {
            t.y("viewModel");
            nVar4 = null;
        }
        nVar4.X().j(getViewLifecycleOwner(), new j(new c()));
        n nVar5 = this.viewModel;
        if (nVar5 == null) {
            t.y("viewModel");
            nVar5 = null;
        }
        nVar5.W().j(getViewLifecycleOwner(), new j(new d()));
        n nVar6 = this.viewModel;
        if (nVar6 == null) {
            t.y("viewModel");
            nVar6 = null;
        }
        nVar6.V().j(getViewLifecycleOwner(), new j(new e()));
        n nVar7 = this.viewModel;
        if (nVar7 == null) {
            t.y("viewModel");
            nVar7 = null;
        }
        nVar7.Z().j(getViewLifecycleOwner(), new j(new f()));
        m mVar = this.binding;
        if (mVar == null) {
            t.y("binding");
            mVar = null;
        }
        mVar.A.C.setEndIconClickListener(new View.OnClickListener() { // from class: we.k
            @Override // android.view.View.OnClickListener
            public final void onClick(View view2) {
                RegistrationStep1Fragment.N(RegistrationStep1Fragment.this, view2);
            }
        });
        n nVar8 = this.viewModel;
        if (nVar8 == null) {
            t.y("viewModel");
            nVar8 = null;
        }
        nVar8.a0().j(getViewLifecycleOwner(), new j(new g()));
        n nVar9 = this.viewModel;
        if (nVar9 == null) {
            t.y("viewModel");
            nVar9 = null;
        }
        nVar9.b0().j(getViewLifecycleOwner(), new j(new h()));
        m mVar2 = this.binding;
        if (mVar2 == null) {
            t.y("binding");
            mVar2 = null;
        }
        Button nextActionButton = mVar2.A.B.A;
        t.f(nextActionButton, "nextActionButton");
        d0.p(nextActionButton, new View.OnClickListener() { // from class: we.l
            @Override // android.view.View.OnClickListener
            public final void onClick(View view2) {
                RegistrationStep1Fragment.O(RegistrationStep1Fragment.this, view2);
            }
        });
        int i10 = we.d.f49139a;
        y.b(this, i10, "ONCLICK");
        y.a(this, i10, "ONCLICK").j(getViewLifecycleOwner(), new j(new i()));
        n nVar10 = this.viewModel;
        if (nVar10 == null) {
            t.y("viewModel");
            nVar10 = null;
        }
        nVar10.e0().j(getViewLifecycleOwner(), new j(new a()));
        n nVar11 = this.viewModel;
        if (nVar11 == null) {
            t.y("viewModel");
        } else {
            nVar2 = nVar11;
        }
        nVar2.Y().j(getViewLifecycleOwner(), new j(new b()));
    }

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