package gb;

import b3.j;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import e0.b;
import e0.g0;
import h2.e0;
import j2.g;
import java.util.List;
import l1.c;
import l1.i;
import q2.d;
import q2.m0;
import q2.o0;
import rm.n0;
import v0.z1;
import w2.q0;
import wp.h0;
import wp.j0;
import y0.d4;
import y0.l2;
import y0.n3;
import y0.x2;
import y0.y3;

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

    /* renamed from: a, reason: collision with root package name */
    private static final c f19435a = new c();

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

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

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

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

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

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

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

            C0432a() {
                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 b extends kotlin.jvm.internal.v implements dn.a {

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

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

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

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

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

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ q2.d f19442p;

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            c(q2.d dVar, m mVar) {
                super(1);
                this.f19442p = dVar;
                this.f19443q = mVar;
            }

            public final void a(int i10) {
                Object e02;
                e02 = sm.c0.e0(this.f19442p.i("CLICK", i10, i10));
                if (((d.c) e02) != null) {
                    this.f19443q.c().invoke();
                }
            }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(m mVar, y3 y3Var, y3 y3Var2, y3 y3Var3) {
            super(3);
            this.f19436p = mVar;
            this.f19437q = y3Var;
            this.f19438r = y3Var2;
            this.f19439s = y3Var3;
        }

        public final void a(e0.f CpcFullScreen, y0.m mVar, int i10) {
            kotlin.jvm.internal.t.g(CpcFullScreen, "$this$CpcFullScreen");
            if ((i10 & 81) == 16 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(243734942, i10, -1, "ca.canadapost.module.consumerhome.landing.items.EnterTrackPinDescriptionItem.<anonymous> (EnterTrackPinDescriptionItem.kt:65)");
            }
            i.a aVar = l1.i.f27362a;
            l1.i f10 = androidx.compose.foundation.layout.o.f(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
            m mVar2 = this.f19436p;
            y3 y3Var = this.f19437q;
            y3 y3Var2 = this.f19438r;
            y3 y3Var3 = this.f19439s;
            e0.b bVar = e0.b.f16607a;
            b.m h10 = bVar.h();
            c.a aVar2 = l1.c.f27332a;
            e0 a10 = e0.d.a(h10, aVar2.k(), mVar, 0);
            int a11 = y0.j.a(mVar, 0);
            y0.y D = mVar.D();
            l1.i e10 = l1.h.e(mVar, f10);
            g.a aVar3 = j2.g.f23616d;
            dn.a a12 = aVar3.a();
            if (!(mVar.w() instanceof y0.f)) {
                y0.j.c();
            }
            mVar.u();
            if (mVar.n()) {
                mVar.o(a12);
            } else {
                mVar.F();
            }
            y0.m a13 = d4.a(mVar);
            d4.b(a13, a10, aVar3.c());
            d4.b(a13, D, aVar3.e());
            dn.p b10 = aVar3.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, e10, aVar3.d());
            e0.g gVar = e0.g.f16653a;
            ca.canadapost.core.common.customView.t.a(n.b(y3Var).h(), mVar2.d(), androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), m2.j.b(bb.h.f6849h0, mVar, 0), m2.j.b(bb.h.f6852i0, mVar, 0), null, true, 0, 0, null, null, null, true, mVar2.b(), n.c(y3Var2), null, null, mVar, 1573248, 384, 102304);
            g0.a(androidx.compose.foundation.layout.o.i(aVar, c3.h.t(30)), mVar, 6);
            l1.i f11 = androidx.compose.foundation.layout.o.f(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
            e0 a14 = e0.d.a(bVar.h(), aVar2.g(), mVar, 48);
            int a15 = y0.j.a(mVar, 0);
            y0.y D2 = mVar.D();
            l1.i e11 = l1.h.e(mVar, f11);
            dn.a a16 = aVar3.a();
            if (!(mVar.w() instanceof y0.f)) {
                y0.j.c();
            }
            mVar.u();
            if (mVar.n()) {
                mVar.o(a16);
            } else {
                mVar.F();
            }
            y0.m a17 = d4.a(mVar);
            d4.b(a17, a14, aVar3.c());
            d4.b(a17, D2, aVar3.e());
            dn.p b11 = aVar3.b();
            if (a17.n() || !kotlin.jvm.internal.t.b(a17.f(), Integer.valueOf(a15))) {
                a17.I(Integer.valueOf(a15));
                a17.l(Integer.valueOf(a15), b11);
            }
            d4.b(a17, e11, aVar3.d());
            String b12 = m2.j.b(bb.h.W, mVar, 0);
            l1.i h11 = androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
            v2.r a18 = v2.r.f38997q.a();
            n7.a aVar4 = n7.a.f29827a;
            int i11 = n7.a.f29828b;
            long g10 = aVar4.a(mVar, i11).f().g();
            long e12 = c3.w.e(0.5d);
            long g11 = c3.w.g(16);
            j.a aVar5 = b3.j.f6691b;
            z1.b(b12, h11, g10, g11, null, a18, null, e12, null, b3.j.h(aVar5.a()), 0L, 0, false, 1, 0, null, null, mVar, 12782640, 3072, 122192);
            float f12 = 4;
            g0.a(androidx.compose.foundation.layout.o.i(aVar, c3.h.t(f12)), mVar, 6);
            q2.d x10 = mVar2.a().x(m2.j.b(bb.h.X, mVar, 0), n.d(y3Var3), aVar4.a(mVar, i11).f().b(), aVar4.a(mVar, i11).f().d());
            o0 o0Var = new o0(0L, c3.w.g(14), null, null, null, null, null, c3.w.e(0.5d), null, null, null, 0L, null, null, null, aVar5.a(), 0, 0L, null, null, null, 0, 0, null, 16744317, null);
            l1.i d10 = o2.l.d(androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), false, C0432a.f19440p, 1, null);
            mVar.e(1004060861);
            boolean R = mVar.R(mVar2);
            Object f13 = mVar.f();
            if (R || f13 == y0.m.f51621a.a()) {
                f13 = new b(mVar2);
                mVar.I(f13);
            }
            mVar.N();
            l1.i d11 = androidx.compose.foundation.d.d(d10, false, null, null, (dn.a) f13, 7, null);
            mVar.e(1004060981);
            boolean R2 = mVar.R(x10) | mVar.R(mVar2);
            Object f14 = mVar.f();
            if (R2 || f14 == y0.m.f51621a.a()) {
                f14 = new c(x10, mVar2);
                mVar.I(f14);
            }
            mVar.N();
            l0.e.a(x10, d11, o0Var, false, 0, 0, null, (dn.l) f14, mVar, 0, 120);
            g0.a(androidx.compose.foundation.layout.o.i(aVar, c3.h.t(f12)), mVar, 6);
            z.a0.a(m2.e.c(bb.e.f6790c, mVar, 0), m2.j.b(bb.h.N, mVar, 0), androidx.compose.foundation.layout.o.y(aVar, null, false, 3, null), null, null, BitmapDescriptorFactory.HUE_RED, null, mVar, 392, 120);
            mVar.O();
            mVar.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @Override // dn.q
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
            a((e0.f) obj, (y0.m) obj2, ((Number) obj3).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.p {

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(m mVar, int i10) {
            super(2);
            this.f19444p = mVar;
            this.f19445q = i10;
        }

        public final void a(y0.m mVar, int i10) {
            n.a(this.f19444p, mVar, l2.a(this.f19445q | 1));
        }

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

    /* loaded from: classes4.dex */
    public static final class c implements fb.h {

        /* renamed from: a, reason: collision with root package name */
        private final List f19446a;

        /* renamed from: b, reason: collision with root package name */
        private String f19447b;

        c() {
            List k10;
            k10 = sm.u.k();
            this.f19446a = k10;
        }

        @Override // fb.h
        public void F() {
        }

        @Override // fb.h
        public h0 H() {
            return wp.g.b(j0.a(Boolean.FALSE));
        }

        @Override // fb.h
        public h0 b() {
            throw new rm.u("An operation is not implemented: Not yet implemented");
        }

        @Override // fb.h
        public void d(String str) {
            this.f19447b = str;
        }

        @Override // fb.h
        public List getItems() {
            return this.f19446a;
        }

        @Override // fb.h
        public String i() {
            return this.f19447b;
        }

        @Override // fb.h
        public h0 k() {
            return wp.g.b(j0.a(new q0("", 0L, (m0) null, 6, (kotlin.jvm.internal.k) null)));
        }

        @Override // fb.h
        public h0 m() {
            throw new rm.u("An operation is not implemented: Not yet implemented");
        }

        @Override // fb.h
        public h0 n() {
            return wp.g.b(j0.a(new q0("", 0L, (m0) null, 6, (kotlin.jvm.internal.k) null)));
        }

        @Override // fb.h
        public void q() {
        }

        @Override // fb.h
        public q2.d x(String text, int i10, long j10, long j11) {
            boolean C;
            kotlin.jvm.internal.t.g(text, "text");
            d.a aVar = new d.a(0, 1, null);
            C = kotlin.text.y.C(text);
            if (!C) {
                if (i10 >= 0 && i10 <= text.length()) {
                    aVar.k("CLICK", "bold_part_clicked");
                    int l10 = aVar.l(new q2.b0(j10, 0L, v2.r.f38997q.a(), null, null, null, null, 0L, null, null, null, 0L, null, null, null, null, 65530, null));
                    try {
                        String substring = text.substring(0, i10);
                        kotlin.jvm.internal.t.f(substring, "substring(...)");
                        aVar.f(substring);
                        n0 n0Var = n0.f34904a;
                        aVar.j(l10);
                        aVar.i();
                        l10 = aVar.l(new q2.b0(j11, 0L, null, null, null, null, null, 0L, null, null, null, 0L, null, null, null, null, 65534, null));
                        try {
                            String substring2 = text.substring(i10);
                            kotlin.jvm.internal.t.f(substring2, "substring(...)");
                            aVar.f(substring2);
                        } finally {
                        }
                    } finally {
                    }
                }
            }
            return aVar.m();
        }

        @Override // fb.h
        public h0 z() {
            return j0.a(35);
        }
    }

    public static final void a(m itemData, y0.m mVar, int i10) {
        int i11;
        kotlin.jvm.internal.t.g(itemData, "itemData");
        y0.m r10 = mVar.r(1870807917);
        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(1870807917, i11, -1, "ca.canadapost.module.consumerhome.landing.items.EnterTrackPinDescriptionItem (EnterTrackPinDescriptionItem.kt:54)");
            }
            m7.c.a(true, false, n7.a.f29827a.a(r10, n7.a.f29828b).a().d(), null, null, g1.c.b(r10, 243734942, true, new a(itemData, n3.b(itemData.a().k(), null, r10, 8, 1), n3.b(itemData.a().H(), null, r10, 8, 1), n3.b(itemData.a().z(), null, r10, 8, 1))), r10, 196662, 24);
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new b(itemData, i10));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final q0 b(y3 y3Var) {
        return (q0) y3Var.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final boolean c(y3 y3Var) {
        return ((Boolean) y3Var.getValue()).booleanValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final int d(y3 y3Var) {
        return ((Number) y3Var.getValue()).intValue();
    }
}
