package k8;

import androidx.compose.foundation.layout.o;
import ca.canadapost.core.common.more.a;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import dn.l;
import dn.p;
import dn.r;
import f0.y;
import h2.e0;
import j2.g;
import java.util.List;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.h;
import l1.i;
import m2.j;
import net.sqlcipher.database.SQLiteDatabase;
import rm.n0;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.m;
import y0.x2;

/* loaded from: classes.dex */
public abstract class e {

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends v implements l {

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

        a() {
            super(1);
        }

        public final void a(a.b it) {
            t.g(it, "it");
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class b extends v implements l {

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

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* loaded from: classes.dex */
        public static final class a extends v implements p {

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

            a() {
                super(2);
            }

            public final Object a(int i10, ca.canadapost.core.common.more.a aVar) {
                t.g(aVar, "<anonymous parameter 1>");
                return Integer.valueOf(i10);
            }

            @Override // dn.p
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
                return a(((Number) obj).intValue(), (ca.canadapost.core.common.more.a) obj2);
            }
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: k8.e$b$b, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static final class C0537b extends v implements l {

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0537b(l lVar) {
                super(1);
                this.f25490p = lVar;
            }

            public final void a(a.b it) {
                t.g(it, "it");
                this.f25490p.invoke(it);
            }

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

        /* loaded from: classes.dex */
        public static final class c extends v implements l {

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public c(p pVar, List list) {
                super(1);
                this.f25491p = pVar;
                this.f25492q = list;
            }

            public final Object a(int i10) {
                return this.f25491p.invoke(Integer.valueOf(i10), this.f25492q.get(i10));
            }

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

        /* loaded from: classes.dex */
        public static final class d extends v implements l {

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public d(List list) {
                super(1);
                this.f25493p = list;
            }

            public final Object a(int i10) {
                this.f25493p.get(i10);
                return null;
            }

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

        /* renamed from: k8.e$b$e, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static final class C0538e extends v implements r {

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C0538e(List list, l lVar) {
                super(4);
                this.f25494p = list;
                this.f25495q = lVar;
            }

            public final void a(f0.c cVar, int i10, m mVar, int i11) {
                int i12;
                if ((i11 & 6) == 0) {
                    i12 = i11 | (mVar.R(cVar) ? 4 : 2);
                } else {
                    i12 = i11;
                }
                if ((i11 & 48) == 0) {
                    i12 |= mVar.i(i10) ? 32 : 16;
                }
                if ((i12 & 147) == 146 && mVar.v()) {
                    mVar.A();
                    return;
                }
                if (y0.p.H()) {
                    y0.p.Q(-1091073711, i12, -1, "androidx.compose.foundation.lazy.itemsIndexed.<anonymous> (LazyDsl.kt:188)");
                }
                ca.canadapost.core.common.more.a aVar = (ca.canadapost.core.common.more.a) this.f25494p.get(i10);
                if (aVar instanceof a.C0205a) {
                    mVar.e(-1614813468);
                    i.a aVar2 = i.f27362a;
                    n7.a aVar3 = n7.a.f29827a;
                    z1.b(j.b(((a.C0205a) aVar).a(), mVar, 0), androidx.compose.foundation.layout.l.k(aVar2, BitmapDescriptorFactory.HUE_RED, aVar3.b(mVar, 6).I(), 1, null), aVar3.a(mVar, 6).f().g(), 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar3.c(mVar, 6).t(), mVar, 0, 0, 65528);
                    mVar.N();
                } else if (aVar instanceof a.b) {
                    mVar.e(-1614812999);
                    a.b bVar = (a.b) aVar;
                    mVar.e(267477607);
                    boolean m10 = mVar.m(this.f25495q);
                    Object f10 = mVar.f();
                    if (m10 || f10 == m.f51621a.a()) {
                        f10 = new C0537b(this.f25495q);
                        mVar.I(f10);
                    }
                    mVar.N();
                    k8.d.a(bVar, (l) f10, mVar, 8, 0);
                    mVar.N();
                } else {
                    mVar.e(-1614812726);
                    mVar.N();
                }
                if (y0.p.H()) {
                    y0.p.P();
                }
            }

            @Override // dn.r
            public /* bridge */ /* synthetic */ Object j(Object obj, Object obj2, Object obj3, Object obj4) {
                a((f0.c) obj, ((Number) obj2).intValue(), (m) obj3, ((Number) obj4).intValue());
                return n0.f34904a;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(List list, l lVar) {
            super(1);
            this.f25487p = list;
            this.f25488q = lVar;
        }

        public final void a(y LazyColumn) {
            t.g(LazyColumn, "$this$LazyColumn");
            List list = this.f25487p;
            a aVar = a.f25489p;
            LazyColumn.b(list.size(), aVar != null ? new c(aVar, list) : null, new d(list), g1.c.c(-1091073711, true, new C0538e(list, this.f25488q)));
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends v implements p {

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(List list, l lVar, int i10, int i11, int i12) {
            super(2);
            this.f25496p = list;
            this.f25497q = lVar;
            this.f25498r = i10;
            this.f25499s = i11;
            this.f25500t = i12;
        }

        public final void a(m mVar, int i10) {
            e.a(this.f25496p, this.f25497q, this.f25498r, mVar, l2.a(this.f25499s | 1), this.f25500t);
        }

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

    public static final void a(List moreList, l lVar, int i10, m mVar, int i11, int i12) {
        t.g(moreList, "moreList");
        m r10 = mVar.r(-1056134517);
        l lVar2 = (i12 & 2) != 0 ? a.f25486p : lVar;
        int i13 = (i12 & 4) != 0 ? 0 : i10;
        if (y0.p.H()) {
            y0.p.Q(-1056134517, i11, -1, "ca.canadapost.core.common.more.components.MoreNavigationScreen (MoreNavigationScreen.kt:25)");
        }
        i.a aVar = i.f27362a;
        i f10 = o.f(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
        n7.a aVar2 = n7.a.f29827a;
        i d10 = androidx.compose.foundation.b.d(f10, aVar2.a(r10, 6).a().k(), null, 2, null);
        e0 h10 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.o(), false);
        int a10 = y0.j.a(r10, 0);
        y0.y D = r10.D();
        i e10 = h.e(r10, d10);
        g.a aVar3 = g.f23616d;
        dn.a a11 = aVar3.a();
        if (!(r10.w() instanceof y0.f)) {
            y0.j.c();
        }
        r10.u();
        if (r10.n()) {
            r10.o(a11);
        } else {
            r10.F();
        }
        m a12 = d4.a(r10);
        d4.b(a12, h10, aVar3.c());
        d4.b(a12, D, aVar3.e());
        p b10 = aVar3.b();
        if (a12.n() || !t.b(a12.f(), Integer.valueOf(a10))) {
            a12.I(Integer.valueOf(a10));
            a12.l(Integer.valueOf(a10), b10);
        }
        d4.b(a12, e10, aVar3.d());
        androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
        int i14 = i13;
        f0.b.a(o.f(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), null, androidx.compose.foundation.layout.l.e(aVar2.b(r10, 6).H(), BitmapDescriptorFactory.HUE_RED, aVar2.b(r10, 6).H(), c3.h.t(c3.h.t(i13) + aVar2.b(r10, 6).K()), 2, null), false, null, null, null, false, new b(moreList, lVar2), r10, 6, SQLiteDatabase.MAX_SQL_CACHE_SIZE);
        r10.O();
        if (y0.p.H()) {
            y0.p.P();
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new c(moreList, lVar2, i14, i11, i12));
        }
    }
}
