package gb;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import e0.f0;
import fb.q;
import h2.e0;
import j2.g;
import java.util.List;
import l1.c;
import l1.i;
import rm.n0;
import s1.y;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.x2;

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.a {

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

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

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m244invoke() {
            this.f19368p.invoke(q.b.f18219a);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class b extends kotlin.jvm.internal.v implements dn.a {

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

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

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m245invoke() {
            this.f19369p.invoke(q.c.f18220a);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class c extends kotlin.jvm.internal.v implements dn.a {

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

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

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m246invoke() {
            this.f19370p.invoke(q.a.f18218a);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class d extends kotlin.jvm.internal.v implements dn.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ l1.i f19371p;

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        d(l1.i iVar, dn.l lVar, int i10) {
            super(2);
            this.f19371p = iVar;
            this.f19372q = lVar;
            this.f19373r = i10;
        }

        public final void a(y0.m mVar, int i10) {
            e.a(this.f19371p, this.f19372q, mVar, l2.a(this.f19373r | 1));
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* renamed from: gb.e$e, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static final class C0431e extends kotlin.jvm.internal.v implements dn.l {

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0431e(long j10) {
            super(1);
            this.f19374p = j10;
        }

        public final void a(u1.f Canvas) {
            kotlin.jvm.internal.t.g(Canvas, "$this$Canvas");
            u1.f.C0(Canvas, this.f19374p, BitmapDescriptorFactory.HUE_RED, 0L, BitmapDescriptorFactory.HUE_RED, null, null, 0, 126, null);
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes4.dex */
    public static final class f extends kotlin.jvm.internal.v implements dn.p {

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        f(int i10, String str, dn.a aVar, int i11) {
            super(2);
            this.f19375p = i10;
            this.f19376q = str;
            this.f19377r = aVar;
            this.f19378s = i11;
        }

        public final void a(y0.m mVar, int i10) {
            e.b(this.f19375p, this.f19376q, this.f19377r, mVar, l2.a(this.f19378s | 1));
        }

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

    /* JADX WARN: Multi-variable type inference failed */
    public static final void a(l1.i modifier, dn.l onClickAction, y0.m mVar, int i10) {
        int i11;
        List n10;
        kotlin.jvm.internal.t.g(modifier, "modifier");
        kotlin.jvm.internal.t.g(onClickAction, "onClickAction");
        y0.m r10 = mVar.r(769152033);
        if ((i10 & 14) == 0) {
            i11 = (r10.R(modifier) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i10 & 112) == 0) {
            i11 |= r10.m(onClickAction) ? 32 : 16;
        }
        if ((i11 & 91) == 18 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(769152033, i11, -1, "ca.canadapost.module.consumerhome.landing.items.QuickAccessBar (CommonComposables.kt:35)");
            }
            l1.i w10 = androidx.compose.foundation.layout.o.w(androidx.compose.foundation.layout.o.h(modifier, BitmapDescriptorFactory.HUE_RED, 1, null), null, false, 3, null);
            y.a aVar = s1.y.f35383b;
            n7.a aVar2 = n7.a.f29827a;
            int i12 = n7.a.f29828b;
            n10 = sm.u.n(aVar2.a(r10, i12).a().g().a().d(), aVar2.a(r10, i12).a().g().a().c());
            l1.i b10 = androidx.compose.foundation.b.b(w10, y.a.c(aVar, n10, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0, 14, null), null, BitmapDescriptorFactory.HUE_RED, 6, null);
            c.a aVar3 = l1.c.f27332a;
            e0 h10 = androidx.compose.foundation.layout.b.h(aVar3.o(), false);
            int a10 = y0.j.a(r10, 0);
            y0.y D = r10.D();
            l1.i e10 = l1.h.e(r10, b10);
            g.a aVar4 = j2.g.f23616d;
            dn.a a11 = aVar4.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a11);
            } else {
                r10.F();
            }
            y0.m a12 = d4.a(r10);
            d4.b(a12, h10, aVar4.c());
            d4.b(a12, D, aVar4.e());
            dn.p b11 = aVar4.b();
            if (a12.n() || !kotlin.jvm.internal.t.b(a12.f(), Integer.valueOf(a10))) {
                a12.I(Integer.valueOf(a10));
                a12.l(Integer.valueOf(a10), b11);
            }
            d4.b(a12, e10, aVar4.d());
            androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
            l1.i k10 = androidx.compose.foundation.layout.l.k(androidx.compose.foundation.layout.o.h(l1.i.f27362a, BitmapDescriptorFactory.HUE_RED, 1, null), BitmapDescriptorFactory.HUE_RED, aVar2.b(r10, i12).T(), 1, null);
            e0 b12 = e0.c0.b(e0.b.f16607a.f(), aVar3.l(), r10, 54);
            int a13 = y0.j.a(r10, 0);
            y0.y D2 = r10.D();
            l1.i e11 = l1.h.e(r10, k10);
            dn.a a14 = aVar4.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a14);
            } else {
                r10.F();
            }
            y0.m a15 = d4.a(r10);
            d4.b(a15, b12, aVar4.c());
            d4.b(a15, D2, aVar4.e());
            dn.p b13 = aVar4.b();
            if (a15.n() || !kotlin.jvm.internal.t.b(a15.f(), Integer.valueOf(a13))) {
                a15.I(Integer.valueOf(a13));
                a15.l(Integer.valueOf(a13), b13);
            }
            d4.b(a15, e11, aVar4.d());
            f0 f0Var = f0.f16652a;
            int i13 = bb.e.f6805r;
            String b14 = m2.j.b(bb.h.f6860m, r10, 0);
            r10.e(-660621872);
            boolean m10 = r10.m(onClickAction);
            Object f10 = r10.f();
            if (m10 || f10 == y0.m.f51621a.a()) {
                f10 = new a(onClickAction);
                r10.I(f10);
            }
            r10.N();
            b(i13, b14, (dn.a) f10, r10, 0);
            int i14 = bb.e.f6809v;
            String b15 = m2.j.b(bb.h.f6862n, r10, 0);
            r10.e(-660621702);
            boolean m11 = r10.m(onClickAction);
            Object f11 = r10.f();
            if (m11 || f11 == y0.m.f51621a.a()) {
                f11 = new b(onClickAction);
                r10.I(f11);
            }
            r10.N();
            b(i14, b15, (dn.a) f11, r10, 0);
            int i15 = bb.e.f6799l;
            String b16 = m2.j.b(bb.h.f6848h, r10, 0);
            r10.e(-660621475);
            boolean m12 = r10.m(onClickAction);
            Object f12 = r10.f();
            if (m12 || f12 == y0.m.f51621a.a()) {
                f12 = new c(onClickAction);
                r10.I(f12);
            }
            r10.N();
            b(i15, b16, (dn.a) f12, r10, 0);
            r10.O();
            r10.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new d(modifier, onClickAction, i10));
        }
    }

    public static final void b(int i10, String footerText, dn.a onClickAction, y0.m mVar, int i11) {
        int i12;
        y0.m mVar2;
        kotlin.jvm.internal.t.g(footerText, "footerText");
        kotlin.jvm.internal.t.g(onClickAction, "onClickAction");
        y0.m r10 = mVar.r(475932817);
        if ((i11 & 14) == 0) {
            i12 = (r10.i(i10) ? 4 : 2) | i11;
        } else {
            i12 = i11;
        }
        if ((i11 & 112) == 0) {
            i12 |= r10.R(footerText) ? 32 : 16;
        }
        if ((i11 & 896) == 0) {
            i12 |= r10.m(onClickAction) ? 256 : 128;
        }
        int i13 = i12;
        if ((i13 & 731) == 146 && r10.v()) {
            r10.A();
            mVar2 = r10;
        } else {
            if (y0.p.H()) {
                y0.p.Q(475932817, i13, -1, "ca.canadapost.module.consumerhome.landing.items.QuickAccessItem (CommonComposables.kt:80)");
            }
            n7.a aVar = n7.a.f29827a;
            int i14 = n7.a.f29828b;
            long e10 = aVar.a(r10, i14).a().e();
            i.a aVar2 = l1.i.f27362a;
            l1.i d10 = androidx.compose.foundation.d.d(aVar2, false, null, null, onClickAction, 7, null);
            c.a aVar3 = l1.c.f27332a;
            e0 a10 = e0.d.a(e0.b.f16607a.b(), aVar3.g(), r10, 54);
            int a11 = y0.j.a(r10, 0);
            y0.y D = r10.D();
            l1.i e11 = l1.h.e(r10, d10);
            g.a aVar4 = j2.g.f23616d;
            dn.a a12 = aVar4.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a12);
            } else {
                r10.F();
            }
            y0.m a13 = d4.a(r10);
            d4.b(a13, a10, aVar4.c());
            d4.b(a13, D, aVar4.e());
            dn.p b10 = aVar4.b();
            if (a13.n() || !kotlin.jvm.internal.t.b(a13.f(), Integer.valueOf(a11))) {
                a13.I(Integer.valueOf(a11));
                a13.l(Integer.valueOf(a11), b10);
            }
            d4.b(a13, e11, aVar4.d());
            e0.g gVar = e0.g.f16653a;
            l1.i m10 = androidx.compose.foundation.layout.l.m(androidx.compose.foundation.layout.o.y(aVar2, null, false, 3, null), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, aVar.b(r10, i14).M(), 7, null);
            e0 h10 = androidx.compose.foundation.layout.b.h(aVar3.e(), false);
            int a14 = y0.j.a(r10, 0);
            y0.y D2 = r10.D();
            l1.i e12 = l1.h.e(r10, m10);
            dn.a a15 = aVar4.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a15);
            } else {
                r10.F();
            }
            y0.m a16 = d4.a(r10);
            d4.b(a16, h10, aVar4.c());
            d4.b(a16, D2, aVar4.e());
            dn.p b11 = aVar4.b();
            if (a16.n() || !kotlin.jvm.internal.t.b(a16.f(), Integer.valueOf(a14))) {
                a16.I(Integer.valueOf(a14));
                a16.l(Integer.valueOf(a14), b11);
            }
            d4.b(a16, e12, aVar4.d());
            androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
            l1.i o10 = androidx.compose.foundation.layout.o.o(aVar2, aVar.b(r10, i14).g());
            r10.e(-660620672);
            boolean j10 = r10.j(e10);
            Object f10 = r10.f();
            if (j10 || f10 == y0.m.f51621a.a()) {
                f10 = new C0431e(e10);
                r10.I(f10);
            }
            r10.N();
            z.i.a(o10, (dn.l) f10, r10, 0);
            z.a0.a(m2.e.c(i10, r10, i13 & 14), null, null, null, null, BitmapDescriptorFactory.HUE_RED, null, r10, 56, 124);
            r10.O();
            mVar2 = r10;
            z1.b(footerText, androidx.compose.foundation.layout.o.s(aVar2, aVar.b(r10, i14).c0()), 0L, 0L, null, null, null, 0L, null, b3.j.h(b3.j.f6691b.a()), 0L, b3.t.f6735a.c(), false, 0, 0, null, aVar.c(r10, i14).e(), mVar2, (i13 >> 3) & 14, 48, 62972);
            mVar2.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new f(i10, footerText, onClickAction, i11));
        }
    }
}
