package sd;

import ca.canadapost.core.data.model.CoreConstants;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import rm.q;

/* loaded from: classes4.dex */
public final class a extends xd.b {

    /* renamed from: n, reason: collision with root package name */
    private final g9.l f35608n;

    /* renamed from: o, reason: collision with root package name */
    private final String f35609o;

    /* renamed from: p, reason: collision with root package name */
    private final ld.n f35610p;

    /* renamed from: q, reason: collision with root package name */
    private final boolean f35611q;

    /* renamed from: r, reason: collision with root package name */
    private final rm.o f35612r;

    /* renamed from: sd.a$a, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    static final class C0837a extends v implements dn.a {

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0837a(t7.c cVar) {
            super(0);
            this.f35614q = cVar;
        }

        @Override // dn.a
        public final String invoke() {
            if (t.b(a.this.f35609o, CoreConstants.VERIFICATION_METHOD_PHONE)) {
                return this.f35614q.d(ld.m.f27973b0, a.this.f35610p.Q());
            }
            return this.f35614q.d(ld.m.f27975c0, a.this.f35610p.P());
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public a(t7.c contextService, g9.l userAuthenticationRepository, String verificationMethod, ld.n sharedViewModel) {
        super(contextService);
        rm.o a10;
        t.g(contextService, "contextService");
        t.g(userAuthenticationRepository, "userAuthenticationRepository");
        t.g(verificationMethod, "verificationMethod");
        t.g(sharedViewModel, "sharedViewModel");
        this.f35608n = userAuthenticationRepository;
        this.f35609o = verificationMethod;
        this.f35610p = sharedViewModel;
        a10 = q.a(new C0837a(contextService));
        this.f35612r = a10;
        super.c0();
    }

    @Override // xd.b
    public Object S(vm.d dVar) {
        g9.l lVar = this.f35608n;
        String P = this.f35610p.P();
        if (P == null) {
            P = "";
        }
        String R = this.f35610p.R();
        return lVar.i(P, R != null ? R : "", this.f35609o, dVar);
    }

    @Override // xd.b
    public String V() {
        Object value = this.f35612r.getValue();
        t.f(value, "getValue(...)");
        return (String) value;
    }

    @Override // xd.b
    public boolean Z() {
        return this.f35611q;
    }

    @Override // xd.b
    public Object g0(String str, vm.d dVar) {
        g9.l lVar = this.f35608n;
        String P = this.f35610p.P();
        if (P == null) {
            P = "";
        }
        String R = this.f35610p.R();
        return lVar.h(P, R != null ? R : "", str, dVar);
    }
}
