package mb;

import android.content.Context;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.lifecycle.a0;
import ca.canadapost.core.data.addresscomplete.webservice.AddressCompleteFindItem;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import e0.b;
import e0.c0;
import e0.f0;
import e0.g0;
import j2.g;
import java.util.List;
import java.util.Map;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.c;
import l1.i;
import q2.o0;
import rm.n0;
import rm.y;
import sm.q0;
import sm.u;
import tp.m0;
import v0.e0;
import v0.u1;
import v0.v1;
import v0.w;
import v0.w0;
import v0.x0;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.m;
import y0.p0;
import y0.q1;
import y0.s3;
import y0.x2;
import y0.y3;

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

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

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

        a() {
            super(0);
        }

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

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* 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 */ dn.a f28877p;

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

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(AddressCompleteFindItem addressCompleteFindItem, dn.a aVar, int i10, int i11) {
            super(2);
            this.f28878p = addressCompleteFindItem;
            this.f28879q = aVar;
            this.f28880r = i10;
            this.f28881s = i11;
        }

        public final void a(y0.m mVar, int i10) {
            m.a(this.f28878p, this.f28879q, mVar, l2.a(this.f28880r | 1), this.f28881s);
        }

        @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 v implements dn.l {

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

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

        public final void a(String str) {
            this.f28882p.y1(str);
        }

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

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

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28883p.w1(str);
        }

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

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

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28884p.p1(str);
            this.f28884p.B0();
        }

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

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

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28885p.n1(str);
            this.f28885p.A0();
        }

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

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

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28886p.p1(str);
        }

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

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

        /* renamed from: p, reason: collision with root package name */
        int f28887p;

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

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ s8.l f28889r;

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        i(Map map, s8.l lVar, Context context, vm.d dVar) {
            super(2, dVar);
            this.f28888q = map;
            this.f28889r = lVar;
            this.f28890s = context;
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final vm.d create(Object obj, vm.d dVar) {
            return new i(this.f28888q, this.f28889r, this.f28890s, dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            wm.d.f();
            if (this.f28887p != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            y.b(obj);
            if (!this.f28888q.isEmpty()) {
                this.f28889r.v1(this.f28890s.getString(h7.l.Z));
                this.f28889r.s1("US");
            }
            return n0.f34904a;
        }

        @Override // dn.p
        public final Object invoke(m0 m0Var, vm.d dVar) {
            return ((i) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        int f28891p;

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        j(s8.l lVar, y3 y3Var, vm.d dVar) {
            super(2, dVar);
            this.f28892q = lVar;
            this.f28893r = y3Var;
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final vm.d create(Object obj, vm.d dVar) {
            return new j(this.f28892q, this.f28893r, dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            wm.d.f();
            if (this.f28891p != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            y.b(obj);
            String m10 = m.m(this.f28893r);
            t.f(m10, "access$InlineAddressCompleteCompose$lambda$3(...)");
            if (m10.length() > 0) {
                this.f28892q.z0();
            }
            return n0.f34904a;
        }

        @Override // dn.p
        public final Object invoke(m0 m0Var, vm.d dVar) {
            return ((j) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        int f28894p;

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        k(s8.l lVar, y3 y3Var, vm.d dVar) {
            super(2, dVar);
            this.f28895q = lVar;
            this.f28896r = y3Var;
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final vm.d create(Object obj, vm.d dVar) {
            return new k(this.f28895q, this.f28896r, dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            wm.d.f();
            if (this.f28894p != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            y.b(obj);
            String o10 = m.o(this.f28896r);
            t.f(o10, "access$InlineAddressCompleteCompose$lambda$5(...)");
            if (o10.length() > 0) {
                this.f28895q.A0();
            }
            return n0.f34904a;
        }

        @Override // dn.p
        public final Object invoke(m0 m0Var, vm.d dVar) {
            return ((k) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
        }
    }

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        l(s8.l lVar, Map map) {
            super(1);
            this.f28897p = lVar;
            this.f28898q = map;
        }

        public final void a(String str) {
            this.f28897p.v1(str);
            s8.l lVar = this.f28897p;
            String str2 = (String) this.f28898q.get(str);
            if (str2 == null) {
                str2 = "";
            }
            lVar.s1(str2);
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* renamed from: mb.m$m, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static final class C0656m extends v implements dn.p {

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

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

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

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

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ s8.l f28903t;

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

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

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

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

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

            /* renamed from: p, reason: collision with root package name */
            int f28908p;

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            a(y3 y3Var, q1 q1Var, vm.d dVar) {
                super(2, dVar);
                this.f28909q = y3Var;
                this.f28910r = q1Var;
            }

            @Override // kotlin.coroutines.jvm.internal.a
            public final vm.d create(Object obj, vm.d dVar) {
                return new a(this.f28909q, this.f28910r, dVar);
            }

            @Override // kotlin.coroutines.jvm.internal.a
            public final Object invokeSuspend(Object obj) {
                wm.d.f();
                if (this.f28908p != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                y.b(obj);
                if (!t.b(m.d(this.f28909q), C0656m.h(this.f28910r))) {
                    C0656m.i(this.f28910r, m.d(this.f28909q));
                }
                return n0.f34904a;
            }

            @Override // dn.p
            public final Object invoke(m0 m0Var, vm.d dVar) {
                return ((a) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
            }
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: mb.m$m$b */
        /* loaded from: classes4.dex */
        public static final class b extends v implements dn.l {

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            b(s8.l lVar, q1 q1Var) {
                super(1);
                this.f28911p = lVar;
                this.f28912q = q1Var;
            }

            public final void a(String it) {
                t.g(it, "it");
                C0656m.i(this.f28912q, it);
                this.f28911p.M0().q(it);
                this.f28911p.Z0().q(it);
                this.f28911p.y0();
            }

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: mb.m$m$c */
        /* loaded from: classes4.dex */
        public static final class c extends v implements dn.p {

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

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

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: mb.m$m$c$a */
            /* loaded from: classes4.dex */
            public static final class a extends v implements dn.a {

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

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

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            c(y3 y3Var, s8.l lVar) {
                super(2);
                this.f28913p = y3Var;
                this.f28914q = lVar;
            }

            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(-517462730, i10, -1, "ca.canadapost.module.customsform.enhancement.ui.InlineAddressCompleteCompose.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (InlineAddressCompleteCompose.kt:188)");
                }
                if (m.f(this.f28913p)) {
                    e0.a(new a(this.f28914q), null, false, null, null, mb.b.f28805a.a(), mVar, 196608, 30);
                }
                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 */
        /* renamed from: mb.m$m$d */
        /* loaded from: classes4.dex */
        public static final class d extends v implements dn.a {

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

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

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

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: mb.m$m$e */
        /* loaded from: classes4.dex */
        public static final class e extends v implements dn.q {

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            e(p7.a aVar) {
                super(3);
                this.f28917p = aVar;
            }

            public final void a(e0.e0 TextButton, y0.m mVar, int i10) {
                t.g(TextButton, "$this$TextButton");
                if ((i10 & 81) == 16 && mVar.v()) {
                    mVar.A();
                    return;
                }
                if (y0.p.H()) {
                    y0.p.Q(-796771405, i10, -1, "ca.canadapost.module.customsform.enhancement.ui.InlineAddressCompleteCompose.<anonymous>.<anonymous>.<anonymous>.<anonymous> (InlineAddressCompleteCompose.kt:217)");
                }
                c.InterfaceC0608c i11 = l1.c.f27332a.i();
                b.e g10 = e0.b.f16607a.g();
                i.a aVar = l1.i.f27362a;
                l1.i h10 = androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
                p7.a aVar2 = this.f28917p;
                h2.e0 b10 = c0.b(g10, i11, mVar, 54);
                int a10 = y0.j.a(mVar, 0);
                y0.y D = mVar.D();
                l1.i e10 = l1.h.e(mVar, h10);
                g.a aVar3 = j2.g.f23616d;
                dn.a a11 = aVar3.a();
                if (!(mVar.w() instanceof y0.f)) {
                    y0.j.c();
                }
                mVar.u();
                if (mVar.n()) {
                    mVar.o(a11);
                } else {
                    mVar.F();
                }
                y0.m a12 = d4.a(mVar);
                d4.b(a12, b10, aVar3.c());
                d4.b(a12, D, aVar3.e());
                dn.p b11 = aVar3.b();
                if (a12.n() || !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 f0Var = f0.f16652a;
                w1.b c10 = m2.e.c(h7.h.f21015q, mVar, 0);
                n7.a aVar4 = n7.a.f29827a;
                int i12 = n7.a.f29828b;
                v0.f0.a(c10, null, null, aVar4.a(mVar, i12).f().b(), mVar, 56, 4);
                g0.a(androidx.compose.foundation.layout.o.s(aVar, aVar2.O()), mVar, 0);
                z1.b(m2.j.b(h7.l.Z1, mVar, 0), null, aVar4.a(mVar, i12).f().b(), 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar4.c(mVar, i12).c(), mVar, 0, 0, 65530);
                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.e0) obj, (y0.m) obj2, ((Number) obj3).intValue());
                return n0.f34904a;
            }
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: mb.m$m$f */
        /* loaded from: classes4.dex */
        public static final class f extends v implements dn.l {

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            f(q1 q1Var) {
                super(1);
                this.f28918p = q1Var;
            }

            public final void a(q1.l it) {
                t.g(it, "it");
                C0656m.m(this.f28918p, it.isFocused());
            }

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: mb.m$m$g */
        /* loaded from: classes4.dex */
        public static final class g extends v implements dn.l {

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

            /* renamed from: q, reason: collision with root package name */
            final /* synthetic */ p7.a f28920q;

            /* renamed from: r, reason: collision with root package name */
            final /* synthetic */ s8.l f28921r;

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: mb.m$m$g$a */
            /* loaded from: classes4.dex */
            public static final class a extends v implements dn.a {

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

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

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                a(s8.l lVar, AddressCompleteFindItem addressCompleteFindItem) {
                    super(0);
                    this.f28922p = lVar;
                    this.f28923q = addressCompleteFindItem;
                }

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

                /* renamed from: invoke, reason: collision with other method in class */
                public final void m347invoke() {
                    this.f28922p.E0().q(this.f28923q);
                }
            }

            /* renamed from: mb.m$m$g$b */
            /* loaded from: classes4.dex */
            public static final class b extends v implements dn.l {

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

                public b() {
                    super(1);
                }

                @Override // dn.l
                /* renamed from: a, reason: merged with bridge method [inline-methods] */
                public final Void invoke(Object obj) {
                    return null;
                }
            }

            /* renamed from: mb.m$m$g$c */
            /* loaded from: classes4.dex */
            public static final class c extends v implements dn.l {

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

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

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

                public final Object a(int i10) {
                    return this.f28925p.invoke(this.f28926q.get(i10));
                }

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

            /* renamed from: mb.m$m$g$d */
            /* loaded from: classes4.dex */
            public static final class d extends v implements dn.r {

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

                /* renamed from: q, reason: collision with root package name */
                final /* synthetic */ p7.a f28928q;

                /* renamed from: r, reason: collision with root package name */
                final /* synthetic */ s8.l f28929r;

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                public d(List list, p7.a aVar, s8.l lVar) {
                    super(4);
                    this.f28927p = list;
                    this.f28928q = aVar;
                    this.f28929r = lVar;
                }

                public final void a(f0.c cVar, int i10, y0.m mVar, int i11) {
                    int i12;
                    if ((i11 & 6) == 0) {
                        i12 = (mVar.R(cVar) ? 4 : 2) | i11;
                    } 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(-632812321, i12, -1, "androidx.compose.foundation.lazy.items.<anonymous> (LazyDsl.kt:152)");
                    }
                    AddressCompleteFindItem addressCompleteFindItem = (AddressCompleteFindItem) this.f28927p.get(i10);
                    m.a(addressCompleteFindItem, new a(this.f28929r, addressCompleteFindItem), mVar, 8, 0);
                    w.b(androidx.compose.foundation.layout.o.h(l1.i.f27362a, BitmapDescriptorFactory.HUE_RED, 1, null), this.f28928q.o(), 0L, mVar, 6, 4);
                    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(), (y0.m) obj3, ((Number) obj4).intValue());
                    return n0.f34904a;
                }
            }

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            g(y3 y3Var, p7.a aVar, s8.l lVar) {
                super(1);
                this.f28919p = y3Var;
                this.f28920q = aVar;
                this.f28921r = lVar;
            }

            public final void a(f0.y LazyColumn) {
                t.g(LazyColumn, "$this$LazyColumn");
                List i10 = m.i(this.f28919p);
                t.f(i10, "access$InlineAddressCompleteCompose$lambda$14(...)");
                p7.a aVar = this.f28920q;
                s8.l lVar = this.f28921r;
                LazyColumn.b(i10.size(), null, new c(b.f28924p, i10), g1.c.c(-632812321, true, new d(i10, aVar, lVar)));
            }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0656m(p7.a aVar, y3 y3Var, y3 y3Var2, q1 q1Var, s8.l lVar, y3 y3Var3, y3 y3Var4, y3 y3Var5, y3 y3Var6) {
            super(2);
            this.f28899p = aVar;
            this.f28900q = y3Var;
            this.f28901r = y3Var2;
            this.f28902s = q1Var;
            this.f28903t = lVar;
            this.f28904u = y3Var3;
            this.f28905v = y3Var4;
            this.f28906w = y3Var5;
            this.f28907x = y3Var6;
        }

        private static final long g(y3 y3Var) {
            return ((s1.g0) y3Var.getValue()).v();
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final String h(q1 q1Var) {
            return (String) q1Var.getValue();
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final void i(q1 q1Var, String str) {
            q1Var.setValue(str);
        }

        private static final boolean l(q1 q1Var) {
            return ((Boolean) q1Var.getValue()).booleanValue();
        }

        /* JADX INFO: Access modifiers changed from: private */
        public static final void m(q1 q1Var, boolean z10) {
            q1Var.setValue(Boolean.valueOf(z10));
        }

        private static final boolean n(y3 y3Var) {
            return ((Boolean) y3Var.getValue()).booleanValue();
        }

        public final void d(y0.m mVar, int i10) {
            char c10;
            long e10;
            p7.a aVar;
            s8.l lVar;
            n7.a aVar2;
            int i11;
            int i12;
            Object obj;
            long e11;
            if ((i10 & 11) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-1671228571, i10, -1, "ca.canadapost.module.customsform.enhancement.ui.InlineAddressCompleteCompose.<anonymous>.<anonymous> (InlineAddressCompleteCompose.kt:146)");
            }
            p7.a aVar3 = this.f28899p;
            y3 y3Var = this.f28900q;
            y3 y3Var2 = this.f28901r;
            q1 q1Var = this.f28902s;
            s8.l lVar2 = this.f28903t;
            y3 y3Var3 = this.f28904u;
            y3 y3Var4 = this.f28905v;
            y3 y3Var5 = this.f28906w;
            y3 y3Var6 = this.f28907x;
            i.a aVar4 = l1.i.f27362a;
            e0.b bVar = e0.b.f16607a;
            b.m h10 = bVar.h();
            c.a aVar5 = l1.c.f27332a;
            h2.e0 a10 = e0.d.a(h10, aVar5.k(), mVar, 0);
            int a11 = y0.j.a(mVar, 0);
            y0.y D = mVar.D();
            l1.i e12 = l1.h.e(mVar, aVar4);
            g.a aVar6 = j2.g.f23616d;
            dn.a a12 = aVar6.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, aVar6.c());
            d4.b(a13, D, aVar6.e());
            dn.p b10 = aVar6.b();
            if (a13.n() || !t.b(a13.f(), Integer.valueOf(a11))) {
                a13.I(Integer.valueOf(a11));
                a13.l(Integer.valueOf(a11), b10);
            }
            d4.b(a13, e12, aVar6.d());
            e0.g gVar = e0.g.f16653a;
            c.InterfaceC0608c i13 = aVar5.i();
            l1.i h11 = androidx.compose.foundation.layout.o.h(aVar4, BitmapDescriptorFactory.HUE_RED, 1, null);
            h2.e0 b11 = c0.b(bVar.g(), i13, mVar, 48);
            int a14 = y0.j.a(mVar, 0);
            y0.y D2 = mVar.D();
            l1.i e13 = l1.h.e(mVar, h11);
            dn.a a15 = aVar6.a();
            if (!(mVar.w() instanceof y0.f)) {
                y0.j.c();
            }
            mVar.u();
            if (mVar.n()) {
                mVar.o(a15);
            } else {
                mVar.F();
            }
            y0.m a16 = d4.a(mVar);
            d4.b(a16, b11, aVar6.c());
            d4.b(a16, D2, aVar6.e());
            dn.p b12 = aVar6.b();
            if (a16.n() || !t.b(a16.f(), Integer.valueOf(a14))) {
                a16.I(Integer.valueOf(a14));
                a16.l(Integer.valueOf(a14), b12);
            }
            d4.b(a16, e13, aVar6.d());
            f0 f0Var = f0.f16652a;
            Object f10 = mVar.f();
            m.a aVar7 = y0.m.f51621a;
            if (f10 == aVar7.a()) {
                c10 = 2;
                f10 = s3.d(m.d(y3Var), null, 2, null);
                mVar.I(f10);
            } else {
                c10 = 2;
            }
            q1 q1Var2 = (q1) f10;
            String d10 = m.d(y3Var);
            mVar.e(-226149882);
            boolean R = mVar.R(y3Var) | mVar.R(q1Var2);
            Object f11 = mVar.f();
            if (R || f11 == aVar7.a()) {
                f11 = new a(y3Var, q1Var2, null);
                mVar.I(f11);
            }
            mVar.N();
            p0.d(d10, (dn.p) f11, mVar, 64);
            if (m.j(y3Var2) != null) {
                mVar.e(-804428473);
                e10 = n7.a.f29827a.a(mVar, n7.a.f29828b).b().c();
                mVar.N();
            } else if (m.k(q1Var)) {
                mVar.e(-804428406);
                e10 = n7.a.f29827a.a(mVar, n7.a.f29828b).b().d();
                mVar.N();
            } else {
                mVar.e(-804428339);
                e10 = n7.a.f29827a.a(mVar, n7.a.f29828b).b().e();
                mVar.N();
            }
            String h12 = h(q1Var2);
            n7.a aVar8 = n7.a.f29827a;
            int i14 = n7.a.f29828b;
            o0 b13 = aVar8.c(mVar, i14).b();
            l1.i f12 = z.e.f(androidx.compose.foundation.b.c(e0.e0.b(f0Var, aVar4, 1.0f, false, 2, null), aVar8.a(mVar, i14).a().k(), k0.g.c(aVar3.o())), m.k(q1Var) ? aVar3.v() : aVar3.o(), e10, k0.g.c(aVar3.v()));
            v1 d11 = w0.f38633a.d(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, aVar8.a(mVar, i14).d().a(), 0L, null, aVar8.a(mVar, i14).b().e(), aVar8.a(mVar, i14).b().e(), 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, mVar, 0, 0, 0, 0, 3072, 2147477247, 4095);
            t.d(h12);
            x0.a(h12, new b(lVar2, q1Var2), f12, false, false, b13, null, null, null, g1.c.b(mVar, -517462730, true, new c(y3Var3, lVar2)), null, null, null, false, null, null, null, true, 0, 0, null, null, d11, mVar, 805306368, 12582912, 0, 4062680);
            mVar.O();
            mVar.e(-2017497420);
            if (m.h(y3Var4)) {
                aVar = aVar3;
                i11 = i14;
                aVar2 = aVar8;
                lVar = lVar2;
                i12 = 1;
                v0.h.c(new d(lVar2), androidx.compose.foundation.layout.o.k(androidx.compose.foundation.layout.o.h(z.e.f(androidx.compose.foundation.b.d(aVar4, aVar8.a(mVar, i14).a().k(), null, 2, null), aVar3.o(), aVar8.a(mVar, i14).b().e(), k0.g.c(aVar3.v())), BitmapDescriptorFactory.HUE_RED, 1, null), m2.f.a(h7.g.f20981e, mVar, 0), BitmapDescriptorFactory.HUE_RED, 2, null), false, null, null, null, null, null, null, g1.c.b(mVar, -796771405, true, new e(aVar)), mVar, 805306368, 508);
            } else {
                aVar = aVar3;
                lVar = lVar2;
                aVar2 = aVar8;
                i11 = i14;
                i12 = 1;
            }
            mVar.N();
            Object f13 = mVar.f();
            if (f13 == aVar7.a()) {
                obj = null;
                f13 = s3.d(Boolean.FALSE, null, 2, null);
                mVar.I(f13);
            } else {
                obj = null;
            }
            q1 q1Var3 = (q1) f13;
            k0.f c11 = k0.g.c(aVar.v());
            Object f14 = mVar.f();
            if (f14 == aVar7.a()) {
                f14 = d0.k.a();
                mVar.I(f14);
            }
            if (n(d0.o.a((d0.l) f14, mVar, 6))) {
                mVar.e(-2017495215);
                e11 = aVar2.a(mVar, i11).b().e();
                mVar.N();
            } else {
                int i15 = i11;
                n7.a aVar9 = aVar2;
                if (l(q1Var3)) {
                    mVar.e(-2017495143);
                    e11 = aVar9.a(mVar, i15).b().e();
                    mVar.N();
                } else {
                    mVar.e(-2017495076);
                    e11 = aVar9.a(mVar, i15).b().e();
                    mVar.N();
                }
            }
            y3 a17 = x.r.a(e11, null, "borderColor", null, mVar, 384, 10);
            mVar.e(-2027958488);
            if (m.g(y3Var5)) {
                l1.i f15 = z.e.f(p1.e.a(androidx.compose.foundation.layout.o.k(androidx.compose.foundation.layout.o.h(aVar4, BitmapDescriptorFactory.HUE_RED, i12, obj), BitmapDescriptorFactory.HUE_RED, m2.f.a(h7.g.f20979c, mVar, 0), i12, obj), c11), aVar.o(), g(a17), c11);
                mVar.e(-226144465);
                boolean R2 = mVar.R(q1Var3);
                Object f16 = mVar.f();
                if (R2 || f16 == aVar7.a()) {
                    f16 = new f(q1Var3);
                    mVar.I(f16);
                }
                mVar.N();
                f0.b.a(androidx.compose.ui.focus.b.a(f15, (dn.l) f16), null, null, false, null, null, null, false, new g(y3Var6, aVar, lVar), mVar, 0, 254);
            }
            mVar.N();
            mVar.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            d((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 n extends v implements dn.l {

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28930p.j1(str);
        }

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

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

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

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

        public final void a(String str) {
            t.g(str, "new");
            this.f28931p.k1(str);
            this.f28931p.g();
        }

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

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

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

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

        public final void a(String str) {
            this.f28932p.x1(str);
        }

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        q(s8.l lVar, Map map, int i10, int i11) {
            super(2);
            this.f28933p = lVar;
            this.f28934q = map;
            this.f28935r = i10;
            this.f28936s = i11;
        }

        public final void a(y0.m mVar, int i10) {
            m.b(this.f28933p, this.f28934q, mVar, l2.a(this.f28935r | 1), this.f28936s);
        }

        @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(AddressCompleteFindItem item, dn.a aVar, y0.m mVar, int i10, int i11) {
        y0.m mVar2;
        i.a aVar2;
        int i12;
        t.g(item, "item");
        y0.m r10 = mVar.r(1593737175);
        dn.a aVar3 = (i11 & 2) != 0 ? a.f28876p : aVar;
        if (y0.p.H()) {
            y0.p.Q(1593737175, i10, -1, "ca.canadapost.module.customsform.enhancement.ui.AddressSuggestionRow (InlineAddressCompleteCompose.kt:414)");
        }
        n7.a aVar4 = n7.a.f29827a;
        int i13 = n7.a.f29828b;
        p7.a b10 = aVar4.b(r10, i13);
        i.a aVar5 = l1.i.f27362a;
        l1.i k10 = androidx.compose.foundation.layout.l.k(androidx.compose.foundation.b.d(androidx.compose.foundation.layout.o.h(aVar5, BitmapDescriptorFactory.HUE_RED, 1, null), aVar4.a(r10, i13).a().k(), null, 2, null), BitmapDescriptorFactory.HUE_RED, b10.O(), 1, null);
        r10.e(-226138065);
        boolean m10 = r10.m(aVar3);
        Object f10 = r10.f();
        if (m10 || f10 == y0.m.f51621a.a()) {
            f10 = new b(aVar3);
            r10.I(f10);
        }
        r10.N();
        l1.i d10 = androidx.compose.foundation.d.d(k10, false, null, null, (dn.a) f10, 7, null);
        e0.b bVar = e0.b.f16607a;
        b.m h10 = bVar.h();
        c.a aVar6 = l1.c.f27332a;
        h2.e0 a10 = e0.d.a(h10, aVar6.k(), r10, 0);
        int a11 = y0.j.a(r10, 0);
        y0.y D = r10.D();
        l1.i e10 = l1.h.e(r10, d10);
        g.a aVar7 = j2.g.f23616d;
        dn.a a12 = aVar7.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, aVar7.c());
        d4.b(a13, D, aVar7.e());
        dn.p b11 = aVar7.b();
        if (a13.n() || !t.b(a13.f(), Integer.valueOf(a11))) {
            a13.I(Integer.valueOf(a11));
            a13.l(Integer.valueOf(a11), b11);
        }
        d4.b(a13, e10, aVar7.d());
        e0.g gVar = e0.g.f16653a;
        h2.e0 b12 = c0.b(bVar.g(), aVar6.i(), r10, 48);
        int a14 = y0.j.a(r10, 0);
        y0.y D2 = r10.D();
        l1.i e11 = l1.h.e(r10, aVar5);
        dn.a a15 = aVar7.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, b12, aVar7.c());
        d4.b(a16, D2, aVar7.e());
        dn.p b13 = aVar7.b();
        if (a16.n() || !t.b(a16.f(), Integer.valueOf(a14))) {
            a16.I(Integer.valueOf(a14));
            a16.l(Integer.valueOf(a14), b13);
        }
        d4.b(a16, e11, aVar7.d());
        f0 f0Var = f0.f16652a;
        String str = item.Text;
        if (str == null) {
            str = "Some Address";
        } else {
            t.d(str);
        }
        dn.a aVar8 = aVar3;
        z1.b(str, androidx.compose.foundation.layout.l.m(e0.e0.b(f0Var, aVar5, 1.0f, false, 2, null), b10.H(), BitmapDescriptorFactory.HUE_RED, b10.P(), BitmapDescriptorFactory.HUE_RED, 10, null), 0L, b10.o0(), null, null, null, 0L, null, null, b10.q0(), 0, false, 0, 0, null, null, r10, 0, 0, 130036);
        r10.e(571899219);
        if (item.canFindMore()) {
            String addressesCount = item.getAddressesCount();
            if (addressesCount == null) {
                addressesCount = "20 addresses";
            } else {
                t.d(addressesCount);
            }
            z1.b(addressesCount, androidx.compose.foundation.layout.l.j(androidx.compose.foundation.b.c(aVar5, s1.g0.f35254b.e(), k0.g.c(b10.a())), b10.Q(), b10.U()), 0L, b10.m0(), null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, null, r10, 0, 0, 131060);
            mVar2 = r10;
            i12 = 0;
            aVar2 = aVar5;
            v0.f0.a(m2.e.c(h7.h.f21006l0, mVar2, 0), null, androidx.compose.foundation.layout.l.k(aVar2, b10.H(), BitmapDescriptorFactory.HUE_RED, 2, null), 0L, mVar2, 56, 8);
        } else {
            mVar2 = r10;
            aVar2 = aVar5;
            i12 = 0;
        }
        mVar2.N();
        mVar2.O();
        String descriptionWithoutAddressesCount = item.getDescriptionWithoutAddressesCount();
        if (descriptionWithoutAddressesCount == null) {
            descriptionWithoutAddressesCount = "results";
        } else {
            t.d(descriptionWithoutAddressesCount);
        }
        long n02 = b10.n0();
        long a17 = m2.b.a(h7.f.f20967h, mVar2, i12);
        long q02 = b10.q0();
        l1.i m11 = androidx.compose.foundation.layout.l.m(aVar2, b10.H(), b10.P(), b10.H(), BitmapDescriptorFactory.HUE_RED, 8, null);
        y0.m mVar3 = mVar2;
        z1.b(descriptionWithoutAddressesCount, m11, a17, n02, null, null, null, 0L, null, null, q02, 0, false, 0, 0, null, null, mVar3, 0, 0, 130032);
        mVar3.O();
        if (y0.p.H()) {
            y0.p.P();
        }
        x2 y10 = mVar3.y();
        if (y10 != null) {
            y10.a(new c(item, aVar8, i10, i11));
        }
    }

    public static final void b(s8.l viewModel, Map map, y0.m mVar, int i10, int i11) {
        int i12;
        Map map2;
        List k10;
        List S0;
        y0.m mVar2;
        int i13;
        Map map3;
        Map i14;
        t.g(viewModel, "viewModel");
        y0.m r10 = mVar.r(-1789807786);
        if ((i11 & 1) != 0) {
            i12 = i10 | 6;
        } else if ((i10 & 14) == 0) {
            i12 = (r10.R(viewModel) ? 4 : 2) | i10;
        } else {
            i12 = i10;
        }
        int i15 = i11 & 2;
        if (i15 != 0) {
            i12 |= 16;
        }
        if (i15 == 2 && (i12 & 91) == 18 && r10.v()) {
            r10.A();
            map3 = map;
            mVar2 = r10;
        } else {
            if (i15 != 0) {
                i14 = q0.i();
                map2 = i14;
            } else {
                map2 = map;
            }
            if (y0.p.H()) {
                y0.p.Q(-1789807786, i12, -1, "ca.canadapost.module.customsform.enhancement.ui.InlineAddressCompleteCompose (InlineAddressCompleteCompose.kt:63)");
            }
            n7.a aVar = n7.a.f29827a;
            int i16 = n7.a.f29828b;
            p7.a b10 = aVar.b(r10, i16);
            Context context = (Context) r10.t(AndroidCompositionLocals_androidKt.g());
            a0 a12 = viewModel.a1();
            String string = map2.isEmpty() ? context.getString(h7.l.Y) : context.getString(h7.l.Z);
            t.d(string);
            y3 a10 = h1.b.a(a12, string, r10, 8);
            y3 a11 = h1.b.a(viewModel.M0(), "", r10, 56);
            y3 a13 = h1.b.a(viewModel.O0(), "", r10, 56);
            y3 a14 = h1.b.a(viewModel.P0(), "", r10, 56);
            y3 a15 = h1.b.a(viewModel.V0(), z7.a.ALBERTA, r10, 56);
            y3 a16 = h1.b.a(viewModel.Q0(), "", r10, 56);
            y3 a17 = h1.b.a(viewModel.R0(), "", r10, 56);
            y3 a18 = h1.b.a(viewModel.e1(), m2.j.b(h7.l.f21201r2, r10, 0), r10, 8);
            y3 a19 = h1.b.a(viewModel.T0(), "", r10, 56);
            y3 a20 = h1.b.a(viewModel.J0(), null, r10, 56);
            y3 a21 = h1.b.a(viewModel.K0(), null, r10, 56);
            y3 a22 = h1.b.a(viewModel.L0(), null, r10, 56);
            a0 b12 = viewModel.b1();
            Boolean bool = Boolean.FALSE;
            y3 a23 = h1.b.a(b12, bool, r10, 56);
            y3 a24 = h1.b.a(viewModel.c1(), bool, r10, 56);
            y3 a25 = h1.b.a(viewModel.d1(), bool, r10, 56);
            androidx.lifecycle.f0 D0 = viewModel.D0();
            k10 = u.k();
            y3 a26 = h1.b.a(D0, k10, r10, 56);
            y3 a27 = h1.b.a(viewModel.I0(), null, r10, 56);
            Object f10 = r10.f();
            if (f10 == y0.m.f51621a.a()) {
                f10 = s3.d(bool, null, 2, null);
                r10.I(f10);
            }
            q1 q1Var = (q1) f10;
            i.a aVar2 = l1.i.f27362a;
            l1.i h10 = androidx.compose.foundation.layout.o.h(aVar2, BitmapDescriptorFactory.HUE_RED, 1, null);
            e0.b bVar = e0.b.f16607a;
            b.m h11 = bVar.h();
            c.a aVar3 = l1.c.f27332a;
            h2.e0 a28 = e0.d.a(h11, aVar3.k(), r10, 0);
            int a29 = y0.j.a(r10, 0);
            y0.y D = r10.D();
            l1.i e10 = l1.h.e(r10, h10);
            g.a aVar4 = j2.g.f23616d;
            dn.a a30 = aVar4.a();
            if (!(r10.w() instanceof y0.f)) {
                y0.j.c();
            }
            r10.u();
            if (r10.n()) {
                r10.o(a30);
            } else {
                r10.F();
            }
            y0.m a31 = d4.a(r10);
            d4.b(a31, a28, aVar4.c());
            d4.b(a31, D, aVar4.e());
            dn.p b11 = aVar4.b();
            if (a31.n() || !t.b(a31.f(), Integer.valueOf(a29))) {
                a31.I(Integer.valueOf(a29));
                a31.l(Integer.valueOf(a29), b11);
            }
            d4.b(a31, e10, aVar4.d());
            e0.g gVar = e0.g.f16653a;
            p0.d(map2, new i(map2, viewModel, context, null), r10, 72);
            p0.d(m(a14), new j(viewModel, a14, null), r10, 64);
            p0.d(o(a16), new k(viewModel, a16, null), r10, 64);
            int i17 = h7.l.R;
            String b13 = m2.j.b(i17, r10, 0);
            String b14 = m2.j.b(i17, r10, 0);
            String c10 = c(a10);
            S0 = sm.c0.S0(map2.keySet());
            ca.canadapost.core.common.customView.j.a(null, b13, b14, c10, S0, new l(viewModel, map2), !map2.isEmpty(), r10, 32768, 1);
            float p10 = b10.p();
            l7.o oVar = l7.o.Vertical;
            l7.n.a(p10, oVar, r10, 48);
            z1.b(m2.j.b(h7.l.f21227w3, r10, 0), null, aVar.a(r10, i16).f().g(), b10.n0(), null, v2.r.f38997q.d(), null, c3.w.e(0.5d), null, null, b10.s0(), 0, false, 0, 0, null, null, r10, 12779520, 0, 129874);
            Map map4 = map2;
            mVar2 = r10;
            u1.a(androidx.compose.foundation.layout.o.b(androidx.compose.foundation.layout.o.h(aVar2, BitmapDescriptorFactory.HUE_RED, 1, null), BitmapDescriptorFactory.HUE_RED, m2.f.a(h7.g.f20982f, r10, 0), 1, null), null, 0L, 0L, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, null, g1.c.b(r10, -1671228571, true, new C0656m(b10, a11, a27, q1Var, viewModel, a23, a25, a24, a26)), mVar2, 12582912, 126);
            l7.n.a(b10.t(), oVar, mVar2, 48);
            mVar2.e(-736345654);
            if (j(a27) != null) {
                c.InterfaceC0608c l10 = aVar3.l();
                l1.i m10 = androidx.compose.foundation.layout.l.m(androidx.compose.foundation.layout.o.h(aVar2, BitmapDescriptorFactory.HUE_RED, 1, null), BitmapDescriptorFactory.HUE_RED, b10.U(), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 13, null);
                h2.e0 b15 = c0.b(bVar.g(), l10, mVar2, 48);
                i13 = 0;
                int a32 = y0.j.a(mVar2, 0);
                y0.y D2 = mVar2.D();
                l1.i e11 = l1.h.e(mVar2, m10);
                dn.a a33 = aVar4.a();
                if (!(mVar2.w() instanceof y0.f)) {
                    y0.j.c();
                }
                mVar2.u();
                if (mVar2.n()) {
                    mVar2.o(a33);
                } else {
                    mVar2.F();
                }
                y0.m a34 = d4.a(mVar2);
                d4.b(a34, b15, aVar4.c());
                d4.b(a34, D2, aVar4.e());
                dn.p b16 = aVar4.b();
                if (a34.n() || !t.b(a34.f(), Integer.valueOf(a32))) {
                    a34.I(Integer.valueOf(a32));
                    a34.l(Integer.valueOf(a32), b16);
                }
                d4.b(a34, e11, aVar4.d());
                f0 f0Var = f0.f16652a;
                z.a0.a(m2.e.c(h7.h.A, mVar2, 0), null, androidx.compose.foundation.layout.o.o(aVar2, b10.i()), null, null, BitmapDescriptorFactory.HUE_RED, null, mVar2, 56, 120);
                g0.a(androidx.compose.foundation.layout.o.s(aVar2, b10.t()), mVar2, 0);
                String j10 = j(a27);
                z1.b(j10 == null ? "" : j10, null, m2.b.a(h7.f.f20968i, mVar2, 0), 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar.c(mVar2, i16).j(), mVar2, 0, 0, 65530);
                mVar2.O();
            } else {
                i13 = 0;
            }
            mVar2.N();
            l7.n.a(b10.p(), oVar, mVar2, 48);
            String l11 = l(a13);
            t.f(l11, "InlineAddressCompleteCompose$lambda$2(...)");
            ca.canadapost.core.common.customView.q.a(l11, new n(viewModel), null, m2.j.b(h7.l.f21193q, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, null, null, null, null, null, mVar2, 0, 0, 1048564);
            l7.n.a(b10.p(), oVar, mVar2, 48);
            String m11 = m(a14);
            t.f(m11, "InlineAddressCompleteCompose$lambda$3(...)");
            ca.canadapost.core.common.customView.q.a(m11, new o(viewModel), null, m2.j.b(h7.l.K, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, null, null, r(a20), null, null, mVar2, 0, 0, 917492);
            l7.n.a(r(a20) == null ? b10.p() : b10.G(), oVar, mVar2, 48);
            String c11 = c(a10);
            mVar2.e(-736343811);
            mVar2.e(-736343774);
            boolean b17 = t.b(c11, m2.j.b(h7.l.Y, mVar2, i13));
            mVar2.N();
            if (b17) {
                mVar2.e(-736343726);
                int i18 = h7.l.X1;
                String b18 = m2.j.b(i18, mVar2, i13);
                String b19 = m2.j.b(i18, mVar2, i13);
                String W0 = viewModel.W0(n(a15));
                t.d(W0);
                ca.canadapost.core.common.customView.j.a(null, b18, b19, W0, viewModel.G0(), new p(viewModel), false, mVar2, 32768, 65);
                mVar2.N();
            } else {
                mVar2.e(-736343201);
                boolean b20 = t.b(c11, m2.j.b(h7.l.Z, mVar2, i13));
                mVar2.N();
                if (b20) {
                    mVar2.e(-736343147);
                    int i19 = h7.l.f21196q2;
                    ca.canadapost.core.common.customView.j.a(null, m2.j.b(i19, mVar2, i13), m2.j.b(i19, mVar2, i13), q(a18), viewModel.H0(), new d(viewModel), false, mVar2, 32768, 65);
                    mVar2.N();
                } else {
                    mVar2.e(-736342668);
                    ca.canadapost.core.common.customView.q.a((String) a19.getValue(), new e(viewModel), null, m2.j.b(h7.l.f21196q2, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, null, null, null, null, null, mVar2, 0, 12582912, 917492);
                    mVar2.N();
                }
            }
            mVar2.N();
            l7.n.a(b10.p(), oVar, mVar2, 48);
            String c12 = c(a10);
            if (t.b(c12, "United States")) {
                mVar2.e(-736341944);
                String p11 = p(a17);
                t.f(p11, "InlineAddressCompleteCompose$lambda$6(...)");
                ca.canadapost.core.common.customView.q.a(p11, new f(viewModel), null, m2.j.b(h7.l.L3, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, null, null, e(a22), null, null, mVar2, 0, 0, 917492);
                mVar2.N();
            } else if (t.b(c12, "Canada")) {
                mVar2.e(-736341502);
                String o10 = o(a16);
                t.f(o10, "InlineAddressCompleteCompose$lambda$5(...)");
                ca.canadapost.core.common.customView.q.a(o10, new g(viewModel), null, m2.j.b(h7.l.U, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, 7, m2.j.b(h7.l.S, mVar2, i13), s(a21), null, null, mVar2, 0, 196608, 819188);
                mVar2.N();
            } else {
                mVar2.e(-736340898);
                String o11 = o(a16);
                t.f(o11, "InlineAddressCompleteCompose$lambda$5(...)");
                ca.canadapost.core.common.customView.q.a(o11, new h(viewModel), null, m2.j.b(h7.l.U, mVar2, i13), false, 0, null, 0L, null, 0L, null, null, false, false, null, null, null, null, null, null, mVar2, 0, 12582912, 917492);
                mVar2.N();
            }
            mVar2.O();
            if (y0.p.H()) {
                y0.p.P();
            }
            map3 = map4;
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new q(viewModel, map3, i10, i11));
        }
    }

    private static final String c(y3 y3Var) {
        return (String) y3Var.getValue();
    }

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

    private static final String e(y3 y3Var) {
        return (String) y3Var.getValue();
    }

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

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

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

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

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

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

    private static final String l(y3 y3Var) {
        return (String) y3Var.getValue();
    }

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

    private static final z7.a n(y3 y3Var) {
        return (z7.a) y3Var.getValue();
    }

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

    private static final String p(y3 y3Var) {
        return (String) y3Var.getValue();
    }

    private static final String q(y3 y3Var) {
        return (String) y3Var.getValue();
    }

    private static final String r(y3 y3Var) {
        return (String) y3Var.getValue();
    }

    private static final String s(y3 y3Var) {
        return (String) y3Var.getValue();
    }
}
