package h9;

import ca.canadapost.core.data.auth.api.IForgotPasswordApi;
import ca.canadapost.core.data.auth.api.IForgotUsernameApi;
import g9.w;
import km.t;
import or.u;

/* loaded from: classes.dex */
public final class c {
    public final IForgotPasswordApi a(ha.c httpClientBuilderFactory, w tokenInjectInterceptor, jr.a loggingInterceptor, f9.a fireBaseAppCheckInterceptor, t moshi) {
        kotlin.jvm.internal.t.g(httpClientBuilderFactory, "httpClientBuilderFactory");
        kotlin.jvm.internal.t.g(tokenInjectInterceptor, "tokenInjectInterceptor");
        kotlin.jvm.internal.t.g(loggingInterceptor, "loggingInterceptor");
        kotlin.jvm.internal.t.g(fireBaseAppCheckInterceptor, "fireBaseAppCheckInterceptor");
        kotlin.jvm.internal.t.g(moshi, "moshi");
        Object b10 = new u.b().c("https://www.canadapost-postescanada.ca/mgw/").b(qr.a.g(moshi)).g(httpClientBuilderFactory.a().a(fireBaseAppCheckInterceptor).a(tokenInjectInterceptor).a(loggingInterceptor).d()).e().b(IForgotPasswordApi.class);
        kotlin.jvm.internal.t.f(b10, "create(...)");
        return (IForgotPasswordApi) b10;
    }

    public final IForgotUsernameApi b(ha.c httpClientBuilderFactory, w tokenInjectInterceptor, jr.a loggingInterceptor, f9.a fireBaseAppCheckInterceptor) {
        kotlin.jvm.internal.t.g(httpClientBuilderFactory, "httpClientBuilderFactory");
        kotlin.jvm.internal.t.g(tokenInjectInterceptor, "tokenInjectInterceptor");
        kotlin.jvm.internal.t.g(loggingInterceptor, "loggingInterceptor");
        kotlin.jvm.internal.t.g(fireBaseAppCheckInterceptor, "fireBaseAppCheckInterceptor");
        Object b10 = new u.b().c("https://www.canadapost-postescanada.ca/mgw/").b(qr.a.f()).g(httpClientBuilderFactory.a().a(fireBaseAppCheckInterceptor).a(tokenInjectInterceptor).a(loggingInterceptor).d()).e().b(IForgotUsernameApi.class);
        kotlin.jvm.internal.t.f(b10, "create(...)");
        return (IForgotUsernameApi) b10;
    }
}
