package ca.canadapost.module.customsform.enhancement;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.p0;
import androidx.lifecycle.c1;
import androidx.lifecycle.d1;
import androidx.lifecycle.e1;
import dn.p;
import dn.q;
import e0.f;
import ib.a0;
import ib.b1;
import ib.x0;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import n8.e0;
import rm.n0;
import rm.o;
import y0.m;

@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\u0000\n\u0002\u0018\u0002\n\u0002\b\b\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0010\u0010\u0011J$\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016R\u001b\u0010\u000f\u001a\u00020\n8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000e¨\u0006\u0012"}, d2 = {"Lca/canadapost/module/customsform/enhancement/CustomsFormStep2FragmentCompose;", "Lu8/b;", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/os/Bundle;", "savedInstanceState", "Landroid/view/View;", "onCreateView", "Lib/a0;", "s", "Lrm/o;", "I", "()Lib/a0;", "viewModel", "<init>", "()V", "customsform_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes4.dex */
public final class CustomsFormStep2FragmentCompose extends u8.b {

    /* renamed from: s, reason: collision with root package name and from kotlin metadata */
    private final o viewModel = p0.a(this, kotlin.jvm.internal.p0.b(a0.class), new c(new b(this)), new d());

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose$a$a, reason: collision with other inner class name */
        /* loaded from: classes4.dex */
        public static final class C0229a extends v implements q {

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

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose$a$a$a, reason: collision with other inner class name */
            /* loaded from: classes4.dex */
            public static final class C0230a extends v implements dn.a {

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

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                C0230a(CustomsFormStep2FragmentCompose customsFormStep2FragmentCompose) {
                    super(0);
                    this.f8472p = customsFormStep2FragmentCompose;
                }

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

                /* renamed from: invoke, reason: collision with other method in class */
                public final void m78invoke() {
                    e0.a aVar = e0.f29852a;
                    Context requireContext = this.f8472p.requireContext();
                    t.f(requireContext, "requireContext(...)");
                    String string = this.f8472p.getString(b1.I0);
                    t.f(string, "getString(...)");
                    aVar.a(requireContext, string);
                }
            }

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose$a$a$b */
            /* 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 */ CustomsFormStep2FragmentCompose f8473p;

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                b(CustomsFormStep2FragmentCompose customsFormStep2FragmentCompose) {
                    super(0);
                    this.f8473p = customsFormStep2FragmentCompose;
                }

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

                /* renamed from: invoke, reason: collision with other method in class */
                public final void m79invoke() {
                    x4.d.a(this.f8473p).M(x0.f23100i);
                }
            }

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose$a$a$c */
            /* loaded from: classes4.dex */
            public static final class c extends v implements dn.a {

                /* renamed from: p, reason: collision with root package name */
                public static final c f8474p = new c();

                c() {
                    super(0);
                }

                /* renamed from: invoke, reason: collision with other method in class */
                public final void m80invoke() {
                }

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0229a(CustomsFormStep2FragmentCompose customsFormStep2FragmentCompose) {
                super(3);
                this.f8471p = customsFormStep2FragmentCompose;
            }

            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(-1494243948, i10, -1, "ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose.onCreateView.<anonymous>.<anonymous> (CustomsFormStep2FragmentCompose.kt:30)");
                }
                mb.p.a(new C0230a(this.f8471p), new b(this.f8471p), c.f8474p, this.f8471p.I(), mVar, 4480, 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;
            }
        }

        a() {
            super(2);
        }

        public final void a(m mVar, int i10) {
            if ((i10 & 11) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-1596448605, i10, -1, "ca.canadapost.module.customsform.enhancement.CustomsFormStep2FragmentCompose.onCreateView.<anonymous> (CustomsFormStep2FragmentCompose.kt:26)");
            }
            m7.c.a(true, true, 0L, null, null, g1.c.b(mVar, -1494243948, true, new C0229a(CustomsFormStep2FragmentCompose.this)), 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;
        }
    }

    /* 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 */ androidx.fragment.app.f f8475p;

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

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

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

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

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

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

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

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

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

    @Override // androidx.fragment.app.f
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        t.g(inflater, "inflater");
        return k7.a.a(this, g1.c.c(-1596448605, true, new a()));
    }
}
