APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Breathe - People Portal
版本号:2.19.0
包名称:com.elmo.rta.breathe

MD5 校验值:2a432003868ccf5f53c7a8e745fc59ec

反编译源代码说明

g.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package x8;

import bm.m0;
import com.elmo.rta.breathe.data.dto.MfaCredentialsDtoApi;
import com.elmo.rta.breathe.data.dto.RefreshTokenRequest;
import com.elmo.rta.breathe.data.dto.RefreshTokenResponse;
import com.elmo.rta.breathe.data.dto.Token;
import com.elmo.rta.breathe.data.dto.Tokens;
import cq.l;
import java.util.Arrays;
import p9.e0;
import pp.h;
import rs.k;
import ss.z;
import t8.b;
import x8.a;
import x9.b;

public final class g implements d {

    public final g8.a f17234a;

    public final k8.a f17235b;

    public final k8.c f17236c;

    public final t8.a f17237d;

    public final y9.c f17238e;

    public final z f17239f;

    public g(g8.a aVar, k8.a aVar2, k8.c cVar, t8.a aVar3, y9.c cVar2, kotlinx.coroutines.scheduling.b bVar) {
        l.f(aVar, "authService");
        l.f(aVar2, "mapper");
        l.f(cVar, "tokenResponseMapper");
        l.f(aVar3, "apiErrorHandler");
        l.f(cVar2, "environmentConfigProvider");
        this.f17234a = aVar;
        this.f17235b = aVar2;
        this.f17236c = cVar;
        this.f17237d = aVar3;
        this.f17238e = cVar2;
        this.f17239f = bVar;
    }

    public static String d(Tokens tokens) {
        String str;
        String str2;
        Object[] objArr = new Object[3];
        Token token = tokens.f3864a;
        String str3 = null;
        if (token != null) {
            str = token.f3859a;
        } else {
            str = null;
        }
        objArr[0] = str;
        Token token2 = tokens.f3865b;
        if (token2 != null) {
            str2 = token2.f3859a;
        } else {
            str2 = null;
        }
        objArr[1] = str2;
        Token token3 = tokens.f3866c;
        if (token3 != null) {
            str3 = token3.f3859a;
        }
        objArr[2] = str3;
        String format = String.format("breathe_id_token=%s; breathe_access_token=%s; breathe_refresh_token=%s", Arrays.copyOf(objArr, 3));
        l.e(format, "format(format, *args)");
        return format;
    }

    @Override
    public final Object a(MfaCredentialsDtoApi mfaCredentialsDtoApi, a.c cVar) {
        return er.c.L(cVar, this.f17239f, new f(this, mfaCredentialsDtoApi, null));
    }

    @Override
    public final wi.c<Tokens, x9.b> b(Tokens tokens) {
        String str;
        boolean z10;
        Object f10;
        String str2;
        l.f(tokens, "tokens");
        Token token = tokens.f3866c;
        if (token != null) {
            str = token.f3859a;
        } else {
            str = null;
        }
        if (str != null && !k.F(str)) {
            z10 = false;
        } else {
            z10 = true;
        }
        if (z10) {
            return new wi.a(b.a.f17248a);
        }
        try {
            k8.c cVar = this.f17236c;
            g8.a aVar = this.f17234a;
            this.f17238e.f();
            String d10 = d(tokens);
            if (token != null) {
                str2 = token.f3859a;
            } else {
                str2 = null;
            }
            RefreshTokenResponse refreshTokenResponse = aVar.c("https://loginapi.breathehr.com", d10, new RefreshTokenRequest(str2)).d().f14659b;
            cVar.getClass();
            f10 = k8.c.a(refreshTokenResponse, tokens);
        } catch (Throwable th2) {
            f10 = m0.f(th2);
        }
        Throwable a10 = h.a(f10);
        if (a10 == null) {
            return new wi.b((Tokens) f10);
        }
        return new wi.a(b.a.a(this.f17237d, a10, null, 6));
    }

    @Override
    public final Object c(e0 e0Var, a.C0694a c0694a) {
        return er.c.L(c0694a, this.f17239f, new e(this, e0Var, null));
    }
}