package l7;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import rm.n0;
import s1.g0;
import v0.h0;
import y0.l2;
import y0.x2;

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(l1.i iVar, dn.a aVar, dn.q qVar, int i10, int i11) {
            super(2);
            this.f27589p = iVar;
            this.f27590q = aVar;
            this.f27591r = qVar;
            this.f27592s = i10;
            this.f27593t = i11;
        }

        public final void a(y0.m mVar, int i10) {
            f.a(this.f27589p, this.f27590q, this.f27591r, mVar, l2.a(this.f27592s | 1), this.f27593t);
        }

        @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: classes.dex */
    public static final class b extends v implements dn.p {

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(l1.i iVar, dn.a aVar, dn.q qVar, int i10, int i11) {
            super(2);
            this.f27594p = iVar;
            this.f27595q = aVar;
            this.f27596r = qVar;
            this.f27597s = i10;
            this.f27598t = i11;
        }

        public final void a(y0.m mVar, int i10) {
            f.b(this.f27594p, this.f27595q, this.f27596r, mVar, l2.a(this.f27597s | 1), this.f27598t);
        }

        @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: classes.dex */
    public static final class c extends v implements dn.p {

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(l1.i iVar, dn.a aVar, long j10, dn.q qVar, int i10, int i11) {
            super(2);
            this.f27599p = iVar;
            this.f27600q = aVar;
            this.f27601r = j10;
            this.f27602s = qVar;
            this.f27603t = i10;
            this.f27604u = i11;
        }

        public final void a(y0.m mVar, int i10) {
            f.c(this.f27599p, this.f27600q, this.f27601r, this.f27602s, mVar, l2.a(this.f27603t | 1), this.f27604u);
        }

        @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(l1.i iVar, dn.a onClick, dn.q content, y0.m mVar, int i10, int i11) {
        l1.i iVar2;
        int i12;
        y0.m mVar2;
        l1.i iVar3;
        t.g(onClick, "onClick");
        t.g(content, "content");
        y0.m r10 = mVar.r(-2050551464);
        int i13 = i11 & 1;
        if (i13 != 0) {
            i12 = i10 | 6;
            iVar2 = iVar;
        } else if ((i10 & 14) == 0) {
            iVar2 = iVar;
            i12 = (r10.R(iVar2) ? 4 : 2) | i10;
        } else {
            iVar2 = iVar;
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(onClick) ? 32 : 16;
        }
        if ((i11 & 4) != 0) {
            i12 |= 384;
        } else if ((i10 & 896) == 0) {
            i12 |= r10.m(content) ? 256 : 128;
        }
        int i14 = i12;
        if ((i14 & 731) == 146 && r10.v()) {
            r10.A();
            iVar3 = iVar2;
            mVar2 = r10;
        } else {
            l1.i iVar4 = i13 != 0 ? l1.i.f27362a : iVar2;
            if (y0.p.H()) {
                y0.p.Q(-2050551464, i14, -1, "ca.canadapost.core.common.compose.components.CpcNoOutlinedTextButton (CpcButton.kt:82)");
            }
            n7.a aVar = n7.a.f29827a;
            l1.i iVar5 = iVar4;
            mVar2 = r10;
            v0.h.c(onClick, androidx.compose.foundation.layout.o.b(iVar4, BitmapDescriptorFactory.HUE_RED, aVar.b(r10, 6).e0(), 1, null), false, h0.f38095a.b(r10, h0.f38096b).d(), v0.f.f37990a.r(aVar.a(r10, 6).a().b(), aVar.a(r10, 6).f().b(), 0L, aVar.a(r10, 6).f().h(), r10, v0.f.f38004o << 12, 4), null, null, null, null, content, mVar2, ((i14 >> 3) & 14) | ((i14 << 21) & 1879048192), 484);
            if (y0.p.H()) {
                y0.p.P();
            }
            iVar3 = iVar5;
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new a(iVar3, onClick, content, i10, i11));
        }
    }

    public static final void b(l1.i iVar, dn.a onClick, dn.q content, y0.m mVar, int i10, int i11) {
        l1.i iVar2;
        int i12;
        y0.m mVar2;
        l1.i iVar3;
        t.g(onClick, "onClick");
        t.g(content, "content");
        y0.m r10 = mVar.r(-2127298890);
        int i13 = i11 & 1;
        if (i13 != 0) {
            i12 = i10 | 6;
            iVar2 = iVar;
        } else if ((i10 & 14) == 0) {
            iVar2 = iVar;
            i12 = (r10.R(iVar2) ? 4 : 2) | i10;
        } else {
            iVar2 = iVar;
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(onClick) ? 32 : 16;
        }
        if ((i11 & 4) != 0) {
            i12 |= 384;
        } else if ((i10 & 896) == 0) {
            i12 |= r10.m(content) ? 256 : 128;
        }
        int i14 = i12;
        if ((i14 & 731) == 146 && r10.v()) {
            r10.A();
            iVar3 = iVar2;
            mVar2 = r10;
        } else {
            l1.i iVar4 = i13 != 0 ? l1.i.f27362a : iVar2;
            if (y0.p.H()) {
                y0.p.Q(-2127298890, i14, -1, "ca.canadapost.core.common.compose.components.CpcPrimaryButton (CpcButton.kt:23)");
            }
            l1.i b10 = androidx.compose.foundation.layout.o.b(iVar4, BitmapDescriptorFactory.HUE_RED, c3.h.t(48), 1, null);
            v0.f fVar = v0.f.f37990a;
            n7.a aVar = n7.a.f29827a;
            long a10 = aVar.a(r10, 6).a().a();
            long a11 = aVar.a(r10, 6).f().a();
            long f10 = aVar.a(r10, 6).a().f();
            long e10 = aVar.a(r10, 6).f().e();
            int i15 = v0.f.f38004o;
            l1.i iVar5 = iVar4;
            mVar2 = r10;
            v0.h.a(onClick, b10, false, h0.f38095a.b(mVar2, h0.f38096b).d(), fVar.b(a10, a11, f10, e10, r10, i15 << 12, 0), fVar.c(aVar.b(mVar2, 6).e(), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, mVar2, i15 << 15, 30), null, null, null, content, mVar2, ((i14 >> 3) & 14) | ((i14 << 21) & 1879048192), 452);
            if (y0.p.H()) {
                y0.p.P();
            }
            iVar3 = iVar5;
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new b(iVar3, onClick, content, i10, i11));
        }
    }

    public static final void c(l1.i iVar, dn.a onClick, long j10, dn.q content, y0.m mVar, int i10, int i11) {
        l1.i iVar2;
        int i12;
        long j11;
        l1.i iVar3;
        y0.m mVar2;
        long j12;
        l1.i iVar4;
        int i13;
        t.g(onClick, "onClick");
        t.g(content, "content");
        y0.m r10 = mVar.r(812509979);
        int i14 = i11 & 1;
        if (i14 != 0) {
            i12 = i10 | 6;
            iVar2 = iVar;
        } else if ((i10 & 14) == 0) {
            iVar2 = iVar;
            i12 = (r10.R(iVar2) ? 4 : 2) | i10;
        } else {
            iVar2 = iVar;
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(onClick) ? 32 : 16;
        }
        if ((i10 & 896) == 0) {
            if ((i11 & 4) == 0) {
                j11 = j10;
                if (r10.j(j11)) {
                    i13 = 256;
                    i12 |= i13;
                }
            } else {
                j11 = j10;
            }
            i13 = 128;
            i12 |= i13;
        } else {
            j11 = j10;
        }
        if ((i11 & 8) != 0) {
            i12 |= 3072;
        } else if ((i10 & 7168) == 0) {
            i12 |= r10.m(content) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
        }
        if ((i12 & 5851) == 1170 && r10.v()) {
            r10.A();
            iVar4 = iVar2;
            j12 = j11;
            mVar2 = r10;
        } else {
            r10.q();
            if ((i10 & 1) == 0 || r10.E()) {
                l1.i iVar5 = i14 != 0 ? l1.i.f27362a : iVar2;
                if ((i11 & 4) != 0) {
                    j11 = n7.a.f29827a.a(r10, 6).a().b();
                    i12 &= -897;
                }
                iVar3 = iVar5;
            } else {
                r10.A();
                if ((i11 & 4) != 0) {
                    i12 &= -897;
                }
                iVar3 = iVar2;
            }
            int i15 = i12;
            long j13 = j11;
            r10.P();
            if (y0.p.H()) {
                y0.p.Q(812509979, i15, -1, "ca.canadapost.core.common.compose.components.CpcSecondaryButton (CpcButton.kt:53)");
            }
            l1.i b10 = androidx.compose.foundation.layout.o.b(iVar3, BitmapDescriptorFactory.HUE_RED, c3.h.t(48), 1, null);
            v0.f fVar = v0.f.f37990a;
            n7.a aVar = n7.a.f29827a;
            l1.i iVar6 = iVar3;
            mVar2 = r10;
            v0.h.b(onClick, b10, false, h0.f38095a.b(mVar2, h0.f38096b).d(), fVar.p(j13, aVar.a(r10, 6).f().b(), 0L, g0.f35254b.f(), r10, ((i15 >> 6) & 14) | 3072 | (v0.f.f38004o << 12), 4), null, z.h.a(aVar.b(mVar2, 6).o(), aVar.a(mVar2, 6).b().a()), null, null, content, mVar2, ((i15 >> 3) & 14) | ((i15 << 18) & 1879048192), 420);
            if (y0.p.H()) {
                y0.p.P();
            }
            j12 = j13;
            iVar4 = iVar6;
        }
        x2 y10 = mVar2.y();
        if (y10 != null) {
            y10.a(new c(iVar4, onClick, j12, content, i10, i11));
        }
    }
}
