package ge;

import android.content.res.TypedArray;
import androidx.lifecycle.a0;
import androidx.lifecycle.f0;
import d9.f;
import java.util.ArrayList;
import kotlin.jvm.internal.t;

/* loaded from: classes4.dex */
public final class f extends yd.c {

    /* renamed from: q, reason: collision with root package name */
    private final t7.c f19893q;

    /* renamed from: r, reason: collision with root package name */
    private final fa.a f19894r;

    /* renamed from: s, reason: collision with root package name */
    private final f0 f19895s;

    /* renamed from: t, reason: collision with root package name */
    private final a0 f19896t;

    /* renamed from: u, reason: collision with root package name */
    private final l8.g f19897u;

    /* renamed from: v, reason: collision with root package name */
    private final a0 f19898v;

    /* renamed from: w, reason: collision with root package name */
    private final l8.g f19899w;

    /* renamed from: x, reason: collision with root package name */
    private final a0 f19900x;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public f(ja.d sharedPreferencesService, ka.b userRepository, g9.d sessionRepository, d9.f analyticsService, t7.c contextService, fa.a myMailRepository) {
        super(contextService, myMailRepository, sessionRepository, userRepository, analyticsService);
        t.g(sharedPreferencesService, "sharedPreferencesService");
        t.g(userRepository, "userRepository");
        t.g(sessionRepository, "sessionRepository");
        t.g(analyticsService, "analyticsService");
        t.g(contextService, "contextService");
        t.g(myMailRepository, "myMailRepository");
        this.f19893q = contextService;
        this.f19894r = myMailRepository;
        f0 f0Var = new f0();
        this.f19895s = f0Var;
        this.f19896t = f0Var;
        l8.g gVar = new l8.g();
        this.f19897u = gVar;
        this.f19898v = gVar;
        l8.g gVar2 = new l8.g();
        this.f19899w = gVar2;
        this.f19900x = gVar2;
        i0();
        sharedPreferencesService.putBoolean("MY_MAIL_SHOW_FIRST_TIME", true);
    }

    private final void i0() {
        TypedArray obtainTypedArray = this.f19893q.a().getResources().obtainTypedArray(yd.e.f52266a);
        t.f(obtainTypedArray, "obtainTypedArray(...)");
        ArrayList arrayList = new ArrayList();
        int length = obtainTypedArray.length();
        for (int i10 = 0; i10 < length; i10++) {
            arrayList.add(new h(obtainTypedArray.getResourceId(i10, 0)));
        }
        this.f19895s.q(arrayList);
        obtainTypedArray.recycle();
    }

    public final a0 j0() {
        return this.f19896t;
    }

    public final a0 k0() {
        return this.f19898v;
    }

    public final a0 l0() {
        return this.f19900x;
    }

    public final void m0() {
        if (!t.b(this.f19894r.k().f(), Boolean.TRUE)) {
            this.f19899w.s();
        } else {
            this.f19894r.d(false);
            this.f19897u.s();
        }
    }

    public final void n0(int i10) {
        if (i10 == 0) {
            f.a.c(T(), "Mailbox_Automated_DropOff_Onboarding1", null, 2, null);
        } else if (i10 == 1) {
            f.a.c(T(), "Mailbox_Automated_DropOff_Onboarding2", null, 2, null);
        } else {
            if (i10 != 2) {
                return;
            }
            f.a.c(T(), "Mailbox_Automated_DropOff_Onboarding3", null, 2, null);
        }
    }
}
