package gb;

import android.content.Context;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import b3.j;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import e0.b;
import e0.f0;
import h2.e0;
import j2.g;
import l1.c;
import l1.i;
import q2.o0;
import rm.n0;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.x2;

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(k kVar) {
            super(2);
            this.f19422p = kVar;
        }

        public final void a(y0.m mVar, int i10) {
            if ((i10 & 11) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-1938280870, i10, -1, "ca.canadapost.module.consumerhome.landing.items.CpcInfoCard.<anonymous>.<anonymous> (CpcInfoCard.kt:62)");
            }
            l.b(this.f19422p, mVar, 0);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @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 */
    /* 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 */ k f19423p;

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

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m250invoke() {
            if (this.f19423p.i()) {
                this.f19423p.f().invoke(this.f19423p.b());
            }
        }
    }

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(k kVar, int i10) {
            super(2);
            this.f19424p = kVar;
            this.f19425q = i10;
        }

        public final void a(y0.m mVar, int i10) {
            l.a(this.f19424p, mVar, l2.a(this.f19425q | 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 */
    /* loaded from: classes4.dex */
    public static final class d extends kotlin.jvm.internal.v implements dn.l {

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

        d() {
            super(1);
        }

        public final void a(o2.u semantics) {
            kotlin.jvm.internal.t.g(semantics, "$this$semantics");
            o2.s.f0(semantics, o2.f.f30548b.a());
        }

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        e(Context context, k kVar) {
            super(1);
            this.f19427p = context;
            this.f19428q = kVar;
        }

        public final void a(o2.u clearAndSetSemantics) {
            kotlin.jvm.internal.t.g(clearAndSetSemantics, "$this$clearAndSetSemantics");
            o2.s.Y(clearAndSetSemantics, this.f19427p.getString(this.f19428q.d()) + this.f19427p.getString(this.f19428q.c()));
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((o2.u) 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 */ k f19429p;

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        f(k kVar, int i10) {
            super(2);
            this.f19429p = kVar;
            this.f19430q = i10;
        }

        public final void a(y0.m mVar, int i10) {
            l.b(this.f19429p, mVar, l2.a(this.f19430q | 1));
        }

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

    public static final void a(k itemData, y0.m mVar, int i10) {
        int i11;
        kotlin.jvm.internal.t.g(itemData, "itemData");
        y0.m r10 = mVar.r(-1216490795);
        if ((i10 & 14) == 0) {
            i11 = (r10.R(itemData) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i11 & 11) == 2 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(-1216490795, i11, -1, "ca.canadapost.module.consumerhome.landing.items.CpcInfoCard (CpcInfoCard.kt:45)");
            }
            Context context = (Context) r10.t(AndroidCompositionLocals_androidKt.g());
            if (itemData.g()) {
                l1.i d10 = itemData.i() ? o2.l.d(l1.i.f27362a, false, d.f19426p, 1, null) : o2.l.a(l1.i.f27362a, new e(context, itemData));
                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();
                l1.i e10 = l1.h.e(r10, d10);
                g.a aVar = j2.g.f23616d;
                dn.a a11 = aVar.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, aVar.c());
                d4.b(a12, D, aVar.e());
                dn.p b10 = aVar.b();
                if (a12.n() || !kotlin.jvm.internal.t.b(a12.f(), Integer.valueOf(a10))) {
                    a12.I(Integer.valueOf(a10));
                    a12.l(Integer.valueOf(a10), b10);
                }
                d4.b(a12, e10, aVar.d());
                androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
                c3.h m10 = c3.h.m(n7.a.f29827a.b(r10, n7.a.f29828b).Q());
                g1.a b11 = g1.c.b(r10, -1938280870, true, new a(itemData));
                r10.e(-1256548076);
                boolean R = r10.R(itemData);
                Object f10 = r10.f();
                if (R || f10 == y0.m.f51621a.a()) {
                    f10 = new b(itemData);
                    r10.I(f10);
                }
                r10.N();
                l7.g.a(m10, b11, (dn.a) f10, r10, 48, 0);
                r10.O();
            }
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new c(itemData, i10));
        }
    }

    public static final void b(k itemData, y0.m mVar, int i10) {
        int i11;
        f0 f0Var;
        int i12;
        y0.m mVar2;
        kotlin.jvm.internal.t.g(itemData, "itemData");
        y0.m r10 = mVar.r(-157565656);
        if ((i10 & 14) == 0) {
            i11 = (r10.R(itemData) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i11 & 11) == 2 && r10.v()) {
            r10.A();
            mVar2 = r10;
        } else {
            if (y0.p.H()) {
                y0.p.Q(-157565656, i11, -1, "ca.canadapost.module.consumerhome.landing.items.CpcInfoCardContent (CpcInfoCard.kt:73)");
            }
            i.a aVar = l1.i.f27362a;
            e0.b bVar = e0.b.f16607a;
            b.e g10 = bVar.g();
            c.a aVar2 = l1.c.f27332a;
            e0 b10 = e0.c0.b(g10, aVar2.l(), r10, 0);
            int a10 = y0.j.a(r10, 0);
            y0.y D = r10.D();
            l1.i e10 = l1.h.e(r10, aVar);
            g.a aVar3 = j2.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();
            }
            y0.m a12 = d4.a(r10);
            d4.b(a12, b10, aVar3.c());
            d4.b(a12, D, aVar3.e());
            dn.p b11 = aVar3.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, aVar3.d());
            f0 f0Var2 = f0.f16652a;
            r10.e(-1294456432);
            if (itemData.h()) {
                f0Var = f0Var2;
                i12 = 0;
                z.a0.a(m2.e.c(itemData.e(), r10, 0), "", f0Var2.c(androidx.compose.foundation.layout.l.m(e0.e0.b(f0Var2, aVar, 0.3f, false, 2, null), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, n7.a.f29827a.b(r10, n7.a.f29828b).w(), BitmapDescriptorFactory.HUE_RED, 11, null), aVar2.i()), null, null, BitmapDescriptorFactory.HUE_RED, null, r10, 56, 120);
            } else {
                f0Var = f0Var2;
                i12 = 0;
            }
            r10.N();
            l1.i b12 = e0.e0.b(f0Var, aVar, 0.6f, false, 2, null);
            e0 a13 = e0.d.a(bVar.h(), aVar2.k(), r10, i12);
            int a14 = y0.j.a(r10, i12);
            y0.y D2 = r10.D();
            l1.i e11 = l1.h.e(r10, b12);
            dn.a a15 = aVar3.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, a13, aVar3.c());
            d4.b(a16, D2, aVar3.e());
            dn.p b13 = aVar3.b();
            if (a16.n() || !kotlin.jvm.internal.t.b(a16.f(), Integer.valueOf(a14))) {
                a16.I(Integer.valueOf(a14));
                a16.l(Integer.valueOf(a14), b13);
            }
            d4.b(a16, e11, aVar3.d());
            e0.g gVar = e0.g.f16653a;
            String b14 = m2.j.b(itemData.d(), r10, i12);
            n7.a aVar4 = n7.a.f29827a;
            int i13 = n7.a.f29828b;
            o0 w10 = aVar4.c(r10, i13).w();
            j.a aVar5 = b3.j.f6691b;
            z1.b(b14, null, 0L, 0L, null, null, null, 0L, null, b3.j.h(aVar5.f()), 0L, 0, false, 0, 0, null, w10, r10, 0, 0, 65022);
            l7.n.a(aVar4.b(r10, i13).t(), l7.o.Vertical, r10, 48);
            z1.b(m2.j.b(itemData.c(), r10, 0), null, 0L, 0L, null, null, null, 0L, null, b3.j.h(aVar5.f()), 0L, 0, false, 0, 0, null, aVar4.c(r10, i13).c(), r10, 0, 0, 65022);
            r10.O();
            mVar2 = r10;
            mVar2.e(-87221771);
            if (itemData.i()) {
                z.a0.a(m2.e.c(bb.e.f6800m, mVar2, 0), "", e0.e0.b(f0Var, aVar, 0.1f, false, 2, null), null, null, BitmapDescriptorFactory.HUE_RED, null, mVar2, 56, 120);
            }
            mVar2.N();
            mVar2.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new f(itemData, i10));
        }
    }
}
