package fb;

import gb.b0;
import gb.c0;
import gb.d0;
import gb.r;
import gb.s;
import gb.w;
import gb.x;
import gb.y;
import gb.z;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import rm.n0;
import y0.l2;
import y0.x2;

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

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

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

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ d9.f f18081q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ p9.h f18082r;

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(d dVar, d9.f fVar, p9.h hVar, int i10) {
            super(2);
            this.f18080p = dVar;
            this.f18081q = fVar;
            this.f18082r = hVar;
            this.f18083s = i10;
        }

        public final void a(y0.m mVar, int i10) {
            g.a(this.f18080p, this.f18081q, this.f18082r, mVar, l2.a(this.f18083s | 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 /* synthetic */ class b {

        /* renamed from: a, reason: collision with root package name */
        public static final /* synthetic */ int[] f18084a;

        static {
            int[] iArr = new int[e.values().length];
            try {
                iArr[e.ATTENTION_MESSAGE.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[e.HELLO.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[e.WELCOME.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr[e.AT_HOME_PICKUP_PROMO.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                iArr[e.TRACKING_PROMO.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                iArr[e.MAIL_PROMO.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                iArr[e.SMS_PROMO.ordinal()] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                iArr[e.HOLD_MAIL_PROMO.ordinal()] = 8;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                iArr[e.MAIL_FORWARDING_PROMO.ordinal()] = 9;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                iArr[e.HOLD_MAIL_STATUS.ordinal()] = 10;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                iArr[e.MAIL_FORWARDING_STATUS.ordinal()] = 11;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                iArr[e.NO_PACKAGES.ordinal()] = 12;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                iArr[e.MY_MAILS.ordinal()] = 13;
            } catch (NoSuchFieldError unused13) {
            }
            try {
                iArr[e.TRACK_PACKAGE.ordinal()] = 14;
            } catch (NoSuchFieldError unused14) {
            }
            try {
                iArr[e.CUSTOMS_FORM_INFO_CARD.ordinal()] = 15;
            } catch (NoSuchFieldError unused15) {
            }
            f18084a = iArr;
        }
    }

    public static final void a(d item, d9.f analyticsService, p9.h featureFlagRepository, y0.m mVar, int i10) {
        t.g(item, "item");
        t.g(analyticsService, "analyticsService");
        t.g(featureFlagRepository, "featureFlagRepository");
        y0.m r10 = mVar.r(-1108223126);
        if (y0.p.H()) {
            y0.p.Q(-1108223126, i10, -1, "ca.canadapost.module.consumerhome.landing.LandingItem (LandingItemsFactory.kt:60)");
        }
        switch (b.f18084a[item.a().ordinal()]) {
            case 1:
                r10.e(-515228790);
                gb.d.b((gb.c) item, r10, 0);
                r10.N();
                break;
            case 2:
                r10.e(-515228706);
                r.a((gb.q) item, r10, 0);
                r10.N();
                break;
            case 3:
                r10.e(-515228627);
                d0.a(r10, 0);
                r10.N();
                break;
            case 4:
                r10.e(-515228565);
                if (featureFlagRepository.d(p9.a.AT_HOME_PICKUP)) {
                    gb.l.a((gb.k) item, r10, 0);
                }
                r10.N();
                break;
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
                r10.e(-515228227);
                x.b((w) item, r10, 0);
                r10.N();
                break;
            case 10:
            case 11:
                r10.e(-515228076);
                z.a((y) item, r10, 0);
                r10.N();
                break;
            case 12:
                r10.e(-515227968);
                gb.v.a(r10, 0);
                r10.N();
                break;
            case 13:
                r10.e(-515227915);
                gb.t.a((s) item, r10, 0);
                r10.N();
                break;
            case 14:
                r10.e(-515227826);
                c0.a((b0) item, analyticsService, featureFlagRepository, r10, 576, 0);
                r10.N();
                break;
            case 15:
                r10.e(-515227588);
                gb.l.a((gb.k) item, r10, 0);
                r10.N();
                break;
            default:
                r10.e(-515227531);
                r10.N();
                break;
        }
        if (y0.p.H()) {
            y0.p.P();
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new a(item, analyticsService, featureFlagRepository, i10));
        }
    }
}
