package mb;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import h2.e0;
import ib.b1;
import ib.h0;
import j2.g;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.i;
import rm.n0;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.x2;
import y0.y;
import y0.y3;

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(h0 h0Var) {
            super(1);
            this.f28937p = h0Var;
        }

        public final void a(String value) {
            t.g(value, "value");
            this.f28937p.D0(value);
        }

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(h0 h0Var) {
            super(1);
            this.f28938p = h0Var;
        }

        public final void a(String value) {
            t.g(value, "value");
            this.f28938p.F0(value);
        }

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(h0 h0Var) {
            super(1);
            this.f28939p = h0Var;
        }

        public final void a(String value) {
            t.g(value, "value");
            this.f28939p.E0(value);
        }

        @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 d extends v implements dn.a {

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

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

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

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

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

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

        e() {
            super(0);
        }

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        f(h0 h0Var, int i10) {
            super(2);
            this.f28942p = h0Var;
            this.f28943q = i10;
        }

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

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

    public static final void a(h0 viewModel, y0.m mVar, int i10) {
        t.g(viewModel, "viewModel");
        y0.m r10 = mVar.r(-516338692);
        if (y0.p.H()) {
            y0.p.Q(-516338692, i10, -1, "ca.canadapost.module.customsform.enhancement.ui.NewItemScreen (NewItemScreen.kt:31)");
        }
        androidx.compose.foundation.o a10 = androidx.compose.foundation.m.a(0, r10, 0, 1);
        y3 a11 = h1.b.a(viewModel.f0(), "", r10, 56);
        y3 b10 = h1.b.b(viewModel.e0(), r10, 8);
        y3 a12 = h1.b.a(viewModel.x0(), "", r10, 56);
        y3 b11 = h1.b.b(viewModel.w0(), r10, 8);
        y3 a13 = h1.b.a(viewModel.o0(), "", r10, 56);
        y3 b12 = h1.b.b(viewModel.n0(), r10, 8);
        y3 a14 = h1.b.a(viewModel.u0(), "", r10, 56);
        i.a aVar = l1.i.f27362a;
        l1.i d10 = androidx.compose.foundation.m.d(androidx.compose.foundation.layout.o.f(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), a10, false, null, false, 14, null);
        e0 a15 = e0.d.a(e0.b.f16607a.h(), l1.c.f27332a.k(), r10, 0);
        int a16 = y0.j.a(r10, 0);
        y D = r10.D();
        l1.i e10 = l1.h.e(r10, d10);
        g.a aVar2 = j2.g.f23616d;
        dn.a a17 = aVar2.a();
        if (!(r10.w() instanceof y0.f)) {
            y0.j.c();
        }
        r10.u();
        if (r10.n()) {
            r10.o(a17);
        } else {
            r10.F();
        }
        y0.m a18 = d4.a(r10);
        d4.b(a18, a15, aVar2.c());
        d4.b(a18, D, aVar2.e());
        dn.p b13 = aVar2.b();
        if (a18.n() || !t.b(a18.f(), Integer.valueOf(a16))) {
            a18.I(Integer.valueOf(a16));
            a18.l(Integer.valueOf(a16), b13);
        }
        d4.b(a18, e10, aVar2.d());
        e0.g gVar = e0.g.f16653a;
        n7.a aVar3 = n7.a.f29827a;
        int i11 = n7.a.f29828b;
        float i02 = aVar3.b(r10, i11).i0();
        l7.o oVar = l7.o.Vertical;
        l7.n.a(i02, oVar, r10, 48);
        String b14 = b(a11);
        String b15 = m2.j.b(b1.J, r10, 0);
        ca.canadapost.core.common.customView.q.a(b14, new a(viewModel), androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), b15, true, 25, null, 0L, null, 0L, null, null, true, false, null, 25, null, c(b10), ca.canadapost.core.common.customView.k.TEXT, null, r10, 221568, 100860288, 618432);
        l7.n.a(aVar3.b(r10, i11).t(), oVar, r10, 48);
        z1.b(m2.j.b(b1.f22588g0, r10, 0), null, 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar3.c(r10, i11).r(), r10, 0, 0, 65534);
        l7.n.a(aVar3.b(r10, i11).A(), oVar, r10, 48);
        String d11 = d(a12);
        String b16 = m2.j.b(b1.E0, r10, 0);
        ca.canadapost.core.common.customView.q.a(d11, new b(viewModel), androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), b16, false, 0, null, 0L, null, 0L, null, null, true, false, null, null, null, e(b11), ca.canadapost.core.common.customView.k.NUMBER_DECIMAL, null, r10, 384, 100663680, 651248);
        l7.n.a(aVar3.b(r10, i11).q(), oVar, r10, 48);
        String f10 = f(a13);
        String b17 = m2.j.b(b1.f22598l0, r10, 0);
        ca.canadapost.core.common.customView.q.a(f10, new c(viewModel), androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), b17, false, 0, null, 0L, null, 0L, null, null, true, false, null, null, null, g(b12), ca.canadapost.core.common.customView.k.PHONE_DIGITS_ONLY, null, r10, 384, 100663680, 651248);
        l7.n.a(aVar3.b(r10, i11).p(), oVar, r10, 48);
        z1.b(m2.j.b(b1.A0, r10, 0), null, 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar3.c(r10, i11).u(), r10, 0, 0, 65534);
        z1.b(h(a14), null, 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar3.c(r10, i11).l(), r10, 0, 0, 65534);
        l7.n.a(aVar3.b(r10, i11).A(), oVar, r10, 48);
        l1.i h10 = androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
        d dVar = new d(viewModel);
        mb.c cVar = mb.c.f28808a;
        l7.f.b(h10, dVar, cVar.a(), r10, 390, 0);
        l7.f.a(androidx.compose.foundation.layout.l.k(androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), BitmapDescriptorFactory.HUE_RED, aVar3.b(r10, i11).p(), 1, null), e.f28941p, cVar.b(), r10, 432, 0);
        r10.O();
        if (y0.p.H()) {
            y0.p.P();
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new f(viewModel, i10));
        }
    }

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

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

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

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

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

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

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