package ca.canadapost.module.mymail.tnc;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import androidx.activity.p;
import androidx.activity.q;
import androidx.activity.s;
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.d;
import ca.canadapost.core.data.model.CoreConstants;
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.tnc.MyMailTncFragment;
import com.google.firebase.messaging.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l8.h;
import o8.d0;
import o8.g0;
import o8.h0;
import rm.n0;
import u7.x;
import u8.g;
import w8.p0;
import w8.w;
import w8.y;

@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\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u00012\b\u0012\u0004\u0012\u00020\u00030\u00022\u00020\u00042\u00020\u00052\u00020\u0006B\u0007¢\u0006\u0004\bP\u0010QJ\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$\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\u0010A\u001a\u00020\u00072\u0006\u0010@\u001a\u00020\u00132\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0016J\b\u0010B\u001a\u00020:H\u0016R\u001b\u0010\u0012\u001a\u00020C8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bD\u0010E\u001a\u0004\bF\u0010GR\u001b\u0010L\u001a\u00020H8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bI\u0010E\u001a\u0004\bJ\u0010KR\u0014\u0010O\u001a\u00020\u00038\u0016X\u0096\u0005¢\u0006\u0006\u001a\u0004\bM\u0010N¨\u0006R"}, d2 = {"Lca/canadapost/module/mymail/tnc/MyMailTncFragment;", "Lu8/b;", "", "Lae/i;", "Lw8/o;", "Lw8/p0;", "Lca/canadapost/core/common/navigation/ui/d;", "Lrm/n0;", "S", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/os/Bundle;", "savedInstanceState", "Landroidx/lifecycle/u;", "viewLifecycleOwner", "Landroidx/lifecycle/z0;", "viewModel", "Landroid/view/View;", "P", "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", "onCreateView", "view", "onViewCreated", "E", "Lne/g;", "w", "Lrm/o;", "O", "()Lne/g;", "Lo8/d0;", "x", "N", "()Lo8/d0;", "navViewModel", "M", "()Lae/i;", "binding", "<init>", "()V", "mymail_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class MyMailTncFragment 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 f10545s = new x(yd.j.f52315e);

    /* renamed from: t, reason: collision with root package name */
    private final /* synthetic */ w8.k f10546t = 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 */ w8.l f10547u = new w8.l();

    /* renamed from: v, reason: collision with root package name */
    private final /* synthetic */ g0 f10548v = 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(ne.g.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());

    /* 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 MyMailTncFragment.this.y();
        }
    }

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

        public final void a(String str) {
            if (t.b(str, CoreConstants.AGREE.TRUE.getValue())) {
                MyMailTncFragment.this.M().A.setChecked(true);
            } else {
                MyMailTncFragment.this.O().r0();
            }
        }

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

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

        public final void a(MyMailStatus myMailStatus) {
            if (myMailStatus == MyMailStatus.LOGGED_OUT) {
                MyMailTncFragment.this.requireActivity().finish();
            }
        }

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

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

        public final void a(n0 n0Var) {
            w.d(x4.d.a(MyMailTncFragment.this), yd.i.f52296l, 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 e extends v implements dn.l {
        e() {
            super(1);
        }

        public final void a(n0 n0Var) {
            w.d(x4.d.a(MyMailTncFragment.this), yd.i.f52295k, 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 f extends v implements dn.l {
        f() {
            super(1);
        }

        public final void a(n0 n0Var) {
            MyMailTncFragment.this.requireActivity().setResult(-1, new Intent());
            MyMailTncFragment.this.requireActivity().finish();
        }

        @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(p addCallback) {
            t.g(addCallback, "$this$addCallback");
            MyMailTncFragment.this.E();
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((p) 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) {
            MyMailTncFragment.this.requireActivity().finish();
        }

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

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

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

        i(dn.l function) {
            t.g(function, "function");
            this.f10559a = function;
        }

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

        @Override // androidx.lifecycle.g0
        public final /* synthetic */ void d(Object obj) {
            this.f10559a.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();
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class j extends v implements dn.a {
        j() {
            super(0);
        }

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m167invoke() {
            MyMailTncFragment.this.M().A.setChecked(true);
            MyMailTncFragment.this.O().g0("mailboxTermsConditions_ModalAcceptClick_Adobe", "Mailbox_Automated_DropOff_Terms_and_Conditions");
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class k extends v implements dn.a {
        k() {
            super(0);
        }

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m168invoke() {
            MyMailTncFragment.this.O().g0("mailboxTermsConditions_ModalCancelClick_Adobe", "Mailbox_Automated_DropOff_Terms_and_Conditions");
        }
    }

    /* 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 f10562p;

        /* 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.f10562p = fVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final d1 invoke() {
            d1 viewModelStore = this.f10562p.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 f10563p;

        /* 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.f10563p = fVar;
        }

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

    /* 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 f10564p;

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

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final d1 invoke() {
            d1 viewModelStore = ((e1) this.f10564p.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 MyMailTncFragment.this.y();
        }
    }

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

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

    /* JADX INFO: Access modifiers changed from: private */
    public static final void Q(MyMailTncFragment this$0, CompoundButton compoundButton, boolean z10) {
        t.g(this$0, "this$0");
        this$0.M().A.setChecked(z10);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void R(MyMailTncFragment this$0, View view) {
        t.g(this$0, "this$0");
        if (this$0.M().A.isChecked()) {
            this$0.O().i0();
        } else {
            this$0.S();
        }
    }

    private final void S() {
        g.a aVar = u8.g.f36993k;
        androidx.fragment.app.k requireActivity = requireActivity();
        String string = getString(yd.k.N);
        t.f(string, "getString(...)");
        u8.g l10 = aVar.l(requireActivity, string, getString(yd.k.O));
        l10.n(getString(yd.k.f52345f));
        l10.p(getString(yd.k.f52341d));
        l10.o(new j());
        l10.q(new k());
        l10.x(requireActivity());
    }

    @Override // u8.b
    public boolean E() {
        O().r0();
        return true;
    }

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

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

    public ae.i M() {
        return (ae.i) this.f10545s.b();
    }

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

    @Override // w8.o
    public String a(Context context) {
        t.g(context, "context");
        return this.f10546t.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.f10548v.b(profileNavigationVMHandler, activity, z10);
    }

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

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

    @Override // w8.o
    public void e(ResultWrapper.Error error, Context context) {
        t.g(error, "error");
        t.g(context, "context");
        this.f10546t.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.f10548v.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.f10546t.g(fragment, error);
    }

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

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

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

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

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

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

    @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 P(inflater, container, savedInstanceState, viewLifecycleOwner, O());
    }

    @Override // u8.b, androidx.fragment.app.f
    public void onViewCreated(View view, Bundle bundle) {
        t.g(view, "view");
        super.onViewCreated(view, bundle);
        L(O(), this);
        K(O(), this);
        d.a.a(this, O(), this, false, 4, null);
        N().P0(false);
        M().A.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { // from class: ne.c
            @Override // android.widget.CompoundButton.OnCheckedChangeListener
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z10) {
                MyMailTncFragment.Q(MyMailTncFragment.this, compoundButton, z10);
            }
        });
        M().C.setOnClickListener(new View.OnClickListener() { // from class: ne.d
            @Override // android.view.View.OnClickListener
            public final void onClick(View view2) {
                MyMailTncFragment.R(MyMailTncFragment.this, view2);
            }
        });
        int i10 = yd.i.O;
        y.b(this, i10, CoreConstants.ONCLICKAGREE);
        y.a(this, i10, CoreConstants.ONCLICKAGREE).j(getViewLifecycleOwner(), new i(new b()));
        O().W().j(getViewLifecycleOwner(), new i(new c()));
        O().q0().j(getViewLifecycleOwner(), new i(new d()));
        O().p0().j(getViewLifecycleOwner(), new i(new e()));
        O().n0().j(getViewLifecycleOwner(), new i(new f()));
        q onBackPressedDispatcher = requireActivity().getOnBackPressedDispatcher();
        t.f(onBackPressedDispatcher, "<get-onBackPressedDispatcher>(...)");
        s.a(onBackPressedDispatcher, getViewLifecycleOwner(), true, new g());
        O().o0().j(getViewLifecycleOwner(), new i(new h()));
    }

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