package g9;

import ca.canadapost.core.data.auth.api.ITwoSVApi;
import ca.canadapost.core.data.auth.api.IUsernamePasswordResetApi;
import ca.canadapost.core.data.auth.model.GenerateOTPRequest;
import ca.canadapost.core.data.auth.model.TwoSVPhoneRequest;
import ca.canadapost.core.data.aws.model.CategoryEnum;
import ca.canadapost.core.data.aws.model.SubscriptionItem;
import ca.canadapost.core.data.model.RepositoryError;
import ca.canadapost.core.data.model.ResultWrapper;
import ca.canadapost.core.data.profile.api.IOAuthApi;
import ca.canadapost.core.data.profile.api.IProfileApi;
import ca.canadapost.core.data.profile.model.AMSPrerequisitesResponse;
import d9.f;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import ka.b;
import rm.n0;

/* loaded from: classes.dex */
public final class l0 implements l {

    /* renamed from: p, reason: collision with root package name */
    public static final a f19163p = new a(null);

    /* renamed from: a, reason: collision with root package name */
    private final IOAuthApi f19164a;

    /* renamed from: b, reason: collision with root package name */
    private final IProfileApi f19165b;

    /* renamed from: c, reason: collision with root package name */
    private final ITwoSVApi f19166c;

    /* renamed from: d, reason: collision with root package name */
    private final d f19167d;

    /* renamed from: e, reason: collision with root package name */
    private final h f19168e;

    /* renamed from: f, reason: collision with root package name */
    private final i f19169f;

    /* renamed from: g, reason: collision with root package name */
    private final ka.b f19170g;

    /* renamed from: h, reason: collision with root package name */
    private final v9.d f19171h;

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

    /* renamed from: j, reason: collision with root package name */
    private final IUsernamePasswordResetApi f19173j;

    /* renamed from: k, reason: collision with root package name */
    private final ja.d f19174k;

    /* renamed from: l, reason: collision with root package name */
    private final d9.f f19175l;

    /* renamed from: m, reason: collision with root package name */
    private final p9.h f19176m;

    /* renamed from: n, reason: collision with root package name */
    private final j9.c f19177n;

    /* renamed from: o, reason: collision with root package name */
    private d9.b f19178o;

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class b extends kotlin.coroutines.jvm.internal.d {

        /* renamed from: p, reason: collision with root package name */
        Object f19179p;

        /* renamed from: q, reason: collision with root package name */
        Object f19180q;

        /* renamed from: r, reason: collision with root package name */
        Object f19181r;

        /* renamed from: s, reason: collision with root package name */
        /* synthetic */ Object f19182s;

        /* renamed from: u, reason: collision with root package name */
        int f19184u;

        b(vm.d dVar) {
            super(dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            this.f19182s = obj;
            this.f19184u |= Integer.MIN_VALUE;
            return l0.this.f(null, null, this);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends kotlin.coroutines.jvm.internal.d {

        /* renamed from: p, reason: collision with root package name */
        Object f19185p;

        /* renamed from: q, reason: collision with root package name */
        /* synthetic */ Object f19186q;

        /* renamed from: s, reason: collision with root package name */
        int f19188s;

        c(vm.d dVar) {
            super(dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            this.f19186q = obj;
            this.f19188s |= Integer.MIN_VALUE;
            return l0.this.e(this);
        }
    }

    public l0(IOAuthApi oAuthApi, IProfileApi profileApi, ITwoSVApi twoSVApi, d cpcSessionRepository, h l1AuthRepository, i l2Repository, ka.b userProfileRepository, v9.d flexRepository, fa.a myMailRepository, IUsernamePasswordResetApi usernamePasswordResetApi, ja.d sharedPreferencesService, d9.f analyticsService, p9.h featureFlagRepository, j9.c awsPushService) {
        kotlin.jvm.internal.t.g(oAuthApi, "oAuthApi");
        kotlin.jvm.internal.t.g(profileApi, "profileApi");
        kotlin.jvm.internal.t.g(twoSVApi, "twoSVApi");
        kotlin.jvm.internal.t.g(cpcSessionRepository, "cpcSessionRepository");
        kotlin.jvm.internal.t.g(l1AuthRepository, "l1AuthRepository");
        kotlin.jvm.internal.t.g(l2Repository, "l2Repository");
        kotlin.jvm.internal.t.g(userProfileRepository, "userProfileRepository");
        kotlin.jvm.internal.t.g(flexRepository, "flexRepository");
        kotlin.jvm.internal.t.g(myMailRepository, "myMailRepository");
        kotlin.jvm.internal.t.g(usernamePasswordResetApi, "usernamePasswordResetApi");
        kotlin.jvm.internal.t.g(sharedPreferencesService, "sharedPreferencesService");
        kotlin.jvm.internal.t.g(analyticsService, "analyticsService");
        kotlin.jvm.internal.t.g(featureFlagRepository, "featureFlagRepository");
        kotlin.jvm.internal.t.g(awsPushService, "awsPushService");
        this.f19164a = oAuthApi;
        this.f19165b = profileApi;
        this.f19166c = twoSVApi;
        this.f19167d = cpcSessionRepository;
        this.f19168e = l1AuthRepository;
        this.f19169f = l2Repository;
        this.f19170g = userProfileRepository;
        this.f19171h = flexRepository;
        this.f19172i = myMailRepository;
        this.f19173j = usernamePasswordResetApi;
        this.f19174k = sharedPreferencesService;
        this.f19175l = analyticsService;
        this.f19176m = featureFlagRepository;
        this.f19177n = awsPushService;
        this.f19178o = d9.b.NONE;
    }

    private final void n(String str) {
        if (kotlin.jvm.internal.t.b(str, this.f19174k.getString("LAST_USERNAME", ""))) {
            return;
        }
        this.f19174k.putString("LAST_USERNAME", str);
        this.f19174k.putBoolean("SMS_AT_FIRST_TIME_SUCCESS", true);
        this.f19174k.putBoolean("SELFSCAN_SHOW_FIRST_TIME", true);
    }

    private final void o() {
        tr.a.f36618a.a("AWS-Push", "1.Unsubscribing from SNF ATR Push");
        ArrayList arrayList = new ArrayList();
        arrayList.add(new SubscriptionItem("SFID_" + this.f19167d.g(), CategoryEnum.setForget, null, 4, null));
        arrayList.add(new SubscriptionItem("ATR_" + this.f19167d.g(), CategoryEnum.ATReturns, null, 4, null));
        this.f19177n.d(arrayList, true);
    }

    @Override // g9.l
    public Object a(String str, String str2, vm.d dVar) {
        return this.f19166c.submitOTP(new TwoSVPhoneRequest(null, null, str, str2, 3, null), dVar);
    }

    @Override // g9.l
    public d9.b b() {
        return this.f19178o;
    }

    @Override // g9.l
    public Object c(String str, String str2, vm.d dVar) {
        return this.f19173j.passwordReset1(str, str2, dVar);
    }

    @Override // g9.l
    public Object d(String str, vm.d dVar) {
        return this.f19166c.generateOTP(new TwoSVPhoneRequest(null, null, str, null, 11, null), dVar);
    }

    @Override // g9.l
    public Object deactivateAccount(vm.d dVar) {
        return this.f19165b.deactivateAccount(dVar);
    }

    /* JADX WARN: Removed duplicated region for block: B:22:0x00e5 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:26:0x00c9 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:31:0x00a2  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x007c  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x009d  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x0061  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x0028  */
    @Override // g9.l
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public Object e(vm.d dVar) {
        c cVar;
        Object f10;
        int i10;
        String a10;
        ResultWrapper resultWrapper;
        d dVar2;
        v9.d dVar3;
        if (dVar instanceof c) {
            cVar = (c) dVar;
            int i11 = cVar.f19188s;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                cVar.f19188s = i11 - Integer.MIN_VALUE;
                Object obj = cVar.f19186q;
                f10 = wm.d.f();
                i10 = cVar.f19188s;
                if (i10 != 0) {
                    rm.y.b(obj);
                    o();
                    fa.a aVar = this.f19172i;
                    cVar.f19185p = this;
                    cVar.f19188s = 1;
                    if (aVar.a(cVar) == f10) {
                        return f10;
                    }
                } else {
                    if (i10 != 1) {
                        if (i10 == 2) {
                            this = (l0) cVar.f19185p;
                            rm.y.b(obj);
                            resultWrapper = (ResultWrapper) obj;
                            if (resultWrapper instanceof ResultWrapper.Success) {
                                IOAuthApi iOAuthApi = this.f19164a;
                                String f11 = this.f19167d.f();
                                kotlin.jvm.internal.t.d(f11);
                                cVar.f19185p = this;
                                cVar.f19188s = 3;
                                if (IOAuthApi.a.b(iOAuthApi, f11, null, cVar, 2, null) == f10) {
                                    return f10;
                                }
                            }
                            dVar2 = this.f19167d;
                            cVar.f19185p = this;
                            cVar.f19188s = 4;
                            if (dVar2.logout(cVar) == f10) {
                            }
                            this.f19170g.i();
                            this.f19168e.g();
                            this.f19169f.g();
                            dVar3 = this.f19171h;
                            cVar.f19185p = null;
                            cVar.f19188s = 5;
                            if (dVar3.a(cVar) == f10) {
                            }
                            tr.a.f36618a.a("Authentication", "Epost logout");
                            return n0.f34904a;
                        }
                        if (i10 == 3) {
                            this = (l0) cVar.f19185p;
                            rm.y.b(obj);
                            dVar2 = this.f19167d;
                            cVar.f19185p = this;
                            cVar.f19188s = 4;
                            if (dVar2.logout(cVar) == f10) {
                                return f10;
                            }
                            this.f19170g.i();
                            this.f19168e.g();
                            this.f19169f.g();
                            dVar3 = this.f19171h;
                            cVar.f19185p = null;
                            cVar.f19188s = 5;
                            if (dVar3.a(cVar) == f10) {
                            }
                            tr.a.f36618a.a("Authentication", "Epost logout");
                            return n0.f34904a;
                        }
                        if (i10 != 4) {
                            if (i10 != 5) {
                                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                            }
                            rm.y.b(obj);
                            tr.a.f36618a.a("Authentication", "Epost logout");
                            return n0.f34904a;
                        }
                        this = (l0) cVar.f19185p;
                        rm.y.b(obj);
                        this.f19170g.i();
                        this.f19168e.g();
                        this.f19169f.g();
                        dVar3 = this.f19171h;
                        cVar.f19185p = null;
                        cVar.f19188s = 5;
                        if (dVar3.a(cVar) == f10) {
                            return f10;
                        }
                        tr.a.f36618a.a("Authentication", "Epost logout");
                        return n0.f34904a;
                    }
                    this = (l0) cVar.f19185p;
                    rm.y.b(obj);
                }
                a10 = this.f19167d.a();
                if (a10 != null) {
                    resultWrapper = null;
                    if (resultWrapper instanceof ResultWrapper.Success) {
                    }
                    dVar2 = this.f19167d;
                    cVar.f19185p = this;
                    cVar.f19188s = 4;
                    if (dVar2.logout(cVar) == f10) {
                    }
                    this.f19170g.i();
                    this.f19168e.g();
                    this.f19169f.g();
                    dVar3 = this.f19171h;
                    cVar.f19185p = null;
                    cVar.f19188s = 5;
                    if (dVar3.a(cVar) == f10) {
                    }
                    tr.a.f36618a.a("Authentication", "Epost logout");
                    return n0.f34904a;
                }
                cVar.f19185p = this;
                cVar.f19188s = 2;
                obj = this.f19164a.logout("Bearer " + a10, cVar);
                if (obj == f10) {
                    return f10;
                }
                resultWrapper = (ResultWrapper) obj;
                if (resultWrapper instanceof ResultWrapper.Success) {
                }
                dVar2 = this.f19167d;
                cVar.f19185p = this;
                cVar.f19188s = 4;
                if (dVar2.logout(cVar) == f10) {
                }
                this.f19170g.i();
                this.f19168e.g();
                this.f19169f.g();
                dVar3 = this.f19171h;
                cVar.f19185p = null;
                cVar.f19188s = 5;
                if (dVar3.a(cVar) == f10) {
                }
                tr.a.f36618a.a("Authentication", "Epost logout");
                return n0.f34904a;
            }
        }
        cVar = new c(dVar);
        Object obj2 = cVar.f19186q;
        f10 = wm.d.f();
        i10 = cVar.f19188s;
        if (i10 != 0) {
        }
        a10 = this.f19167d.a();
        if (a10 != null) {
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:14:0x00c8 A[Catch: Exception -> 0x0177, TryCatch #0 {Exception -> 0x0177, blocks: (B:52:0x0045, B:33:0x0128, B:28:0x0113, B:30:0x0119, B:36:0x0138, B:38:0x013c, B:40:0x0146, B:42:0x0156, B:24:0x00f1, B:25:0x0102, B:19:0x00de, B:21:0x00e2, B:11:0x009f, B:12:0x00c4, B:14:0x00c8, B:44:0x0161, B:75:0x00a6), top: B:7:0x0031 }] */
    /* JADX WARN: Removed duplicated region for block: B:21:0x00e2 A[Catch: Exception -> 0x0177, TryCatch #0 {Exception -> 0x0177, blocks: (B:52:0x0045, B:33:0x0128, B:28:0x0113, B:30:0x0119, B:36:0x0138, B:38:0x013c, B:40:0x0146, B:42:0x0156, B:24:0x00f1, B:25:0x0102, B:19:0x00de, B:21:0x00e2, B:11:0x009f, B:12:0x00c4, B:14:0x00c8, B:44:0x0161, B:75:0x00a6), top: B:7:0x0031 }] */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0112 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:30:0x0119 A[Catch: Exception -> 0x0177, TryCatch #0 {Exception -> 0x0177, blocks: (B:52:0x0045, B:33:0x0128, B:28:0x0113, B:30:0x0119, B:36:0x0138, B:38:0x013c, B:40:0x0146, B:42:0x0156, B:24:0x00f1, B:25:0x0102, B:19:0x00de, B:21:0x00e2, B:11:0x009f, B:12:0x00c4, B:14:0x00c8, B:44:0x0161, B:75:0x00a6), top: B:7:0x0031 }] */
    /* JADX WARN: Removed duplicated region for block: B:36:0x0138 A[Catch: Exception -> 0x0177, TryCatch #0 {Exception -> 0x0177, blocks: (B:52:0x0045, B:33:0x0128, B:28:0x0113, B:30:0x0119, B:36:0x0138, B:38:0x013c, B:40:0x0146, B:42:0x0156, B:24:0x00f1, B:25:0x0102, B:19:0x00de, B:21:0x00e2, B:11:0x009f, B:12:0x00c4, B:14:0x00c8, B:44:0x0161, B:75:0x00a6), top: B:7:0x0031 }] */
    /* JADX WARN: Removed duplicated region for block: B:44:0x0161 A[Catch: Exception -> 0x0177, TRY_LEAVE, TryCatch #0 {Exception -> 0x0177, blocks: (B:52:0x0045, B:33:0x0128, B:28:0x0113, B:30:0x0119, B:36:0x0138, B:38:0x013c, B:40:0x0146, B:42:0x0156, B:24:0x00f1, B:25:0x0102, B:19:0x00de, B:21:0x00e2, B:11:0x009f, B:12:0x00c4, B:14:0x00c8, B:44:0x0161, B:75:0x00a6), top: B:7:0x0031 }] */
    /* JADX WARN: Removed duplicated region for block: B:74:0x00a3  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0033  */
    /* JADX WARN: Type inference failed for: r5v0, types: [int] */
    @Override // g9.l
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public Object f(String str, String str2, vm.d dVar) {
        b bVar;
        Object f10;
        ?? r52;
        Exception exc;
        ResultWrapper.Error error;
        Object obj;
        String str3;
        ResultWrapper resultWrapper;
        Object obj2;
        ResultWrapper.Error error2;
        l0 l0Var = this;
        String str4 = str;
        try {
            if (dVar instanceof b) {
                bVar = (b) dVar;
                int i10 = bVar.f19184u;
                if ((i10 & Integer.MIN_VALUE) != 0) {
                    bVar.f19184u = i10 - Integer.MIN_VALUE;
                    Object obj3 = bVar.f19182s;
                    f10 = wm.d.f();
                    r52 = bVar.f19184u;
                    if (r52 != 0) {
                        rm.y.b(obj3);
                        tr.a.f36618a.a("Authentication", "loginUser");
                        d dVar2 = l0Var.f19167d;
                        bVar.f19179p = l0Var;
                        bVar.f19180q = str4;
                        bVar.f19184u = 1;
                        obj3 = dVar2.d(str4, str2, bVar);
                        if (obj3 == f10) {
                            return f10;
                        }
                    } else if (r52 != 1) {
                        try {
                            if (r52 == 2) {
                                error = (ResultWrapper.Error) bVar.f19181r;
                                String str5 = (String) bVar.f19180q;
                                l0 l0Var2 = (l0) bVar.f19179p;
                                rm.y.b(obj3);
                                str3 = str5;
                                l0Var = l0Var2;
                                obj2 = obj3;
                                if (((ResultWrapper.Error) obj2) != null) {
                                    bVar.f19179p = l0Var;
                                    bVar.f19180q = str3;
                                    bVar.f19181r = error;
                                    bVar.f19184u = 3;
                                    if (l0Var.e(bVar) == f10) {
                                        return f10;
                                    }
                                    new ResultWrapper.Error(null, null, RepositoryError.ServiceError, null, 8, null);
                                }
                                ka.b bVar2 = l0Var.f19170g;
                                bVar.f19179p = l0Var;
                                bVar.f19180q = str3;
                                bVar.f19181r = error;
                                bVar.f19184u = 4;
                                obj = b.a.a(bVar2, false, bVar, 1, null);
                                if (obj == f10) {
                                }
                                resultWrapper = (ResultWrapper) obj;
                                if (resultWrapper instanceof ResultWrapper.Error) {
                                }
                            } else {
                                if (r52 != 3) {
                                    if (r52 != 4) {
                                        if (r52 != 5) {
                                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                                        }
                                        error = (ResultWrapper.Error) bVar.f19180q;
                                        rm.y.b(obj3);
                                        new ResultWrapper.Error(null, null, RepositoryError.ServiceError, null, 8, null);
                                        return error;
                                    }
                                    error = (ResultWrapper.Error) bVar.f19181r;
                                    String str6 = (String) bVar.f19180q;
                                    l0 l0Var3 = (l0) bVar.f19179p;
                                    rm.y.b(obj3);
                                    str3 = str6;
                                    l0Var = l0Var3;
                                    obj = obj3;
                                    resultWrapper = (ResultWrapper) obj;
                                    if (resultWrapper instanceof ResultWrapper.Error) {
                                        if (resultWrapper instanceof ResultWrapper.Success) {
                                            AMSPrerequisitesResponse aMSPrerequisitesResponse = (AMSPrerequisitesResponse) ((ResultWrapper.Success) resultWrapper).getData();
                                            if (aMSPrerequisitesResponse != null ? kotlin.jvm.internal.t.b(aMSPrerequisitesResponse.getStatus(), kotlin.coroutines.jvm.internal.b.a(true)) : false) {
                                                l0Var.n(str3);
                                                f.a.a(l0Var.f19175l, "Login_success_event_adobe", null, 2, null);
                                            }
                                        }
                                        return error;
                                    }
                                    bVar.f19179p = l0Var;
                                    bVar.f19180q = error;
                                    bVar.f19181r = null;
                                    bVar.f19184u = 5;
                                    if (l0Var.e(bVar) == f10) {
                                        return f10;
                                    }
                                    new ResultWrapper.Error(null, null, RepositoryError.ServiceError, null, 8, null);
                                    return error;
                                }
                                error = (ResultWrapper.Error) bVar.f19181r;
                                String str7 = (String) bVar.f19180q;
                                l0 l0Var4 = (l0) bVar.f19179p;
                                rm.y.b(obj3);
                                str3 = str7;
                                l0Var = l0Var4;
                                new ResultWrapper.Error(null, null, RepositoryError.ServiceError, null, 8, null);
                                ka.b bVar22 = l0Var.f19170g;
                                bVar.f19179p = l0Var;
                                bVar.f19180q = str3;
                                bVar.f19181r = error;
                                bVar.f19184u = 4;
                                obj = b.a.a(bVar22, false, bVar, 1, null);
                                if (obj == f10) {
                                    return f10;
                                }
                                resultWrapper = (ResultWrapper) obj;
                                if (resultWrapper instanceof ResultWrapper.Error) {
                                }
                            }
                        } catch (Exception e10) {
                            exc = e10;
                            l0Var = r52;
                            tr.a.f36618a.d(exc, exc.getMessage(), new Object[0]);
                            LinkedHashMap linkedHashMap = new LinkedHashMap();
                            if ((exc instanceof UnknownHostException) || (exc instanceof SocketTimeoutException)) {
                                linkedHashMap.put("e.Var13", "NoNetworkError");
                                l0Var.f19175l.b("Login_failure_event_adobe", linkedHashMap);
                                return new ResultWrapper.Error(exc, null, RepositoryError.NoNetworkError, null, 8, null);
                            }
                            linkedHashMap.put("e.Var13", "ClientError");
                            l0Var.f19175l.b("Login_failure_event_adobe", linkedHashMap);
                            return new ResultWrapper.Error(exc, null, RepositoryError.ClientError, null, 8, null);
                        }
                    } else {
                        str4 = (String) bVar.f19180q;
                        l0Var = (l0) bVar.f19179p;
                        rm.y.b(obj3);
                    }
                    error2 = (ResultWrapper.Error) obj3;
                    if (error2 == null) {
                        LinkedHashMap linkedHashMap2 = new LinkedHashMap();
                        linkedHashMap2.put("e.Var13", error2.getError().name());
                        l0Var.f19175l.b("Login_failure_event_adobe", linkedHashMap2);
                        return error2;
                    }
                    ka.b bVar3 = l0Var.f19170g;
                    bVar.f19179p = l0Var;
                    bVar.f19180q = str4;
                    bVar.f19181r = error2;
                    bVar.f19184u = 2;
                    obj2 = bVar3.D(bVar);
                    if (obj2 == f10) {
                        return f10;
                    }
                    str3 = str4;
                    error = error2;
                    if (((ResultWrapper.Error) obj2) != null) {
                    }
                    ka.b bVar222 = l0Var.f19170g;
                    bVar.f19179p = l0Var;
                    bVar.f19180q = str3;
                    bVar.f19181r = error;
                    bVar.f19184u = 4;
                    obj = b.a.a(bVar222, false, bVar, 1, null);
                    if (obj == f10) {
                    }
                    resultWrapper = (ResultWrapper) obj;
                    if (resultWrapper instanceof ResultWrapper.Error) {
                    }
                }
            }
            if (r52 != 0) {
            }
            error2 = (ResultWrapper.Error) obj3;
            if (error2 == null) {
            }
        } catch (Exception e11) {
            exc = e11;
        }
        bVar = new b(dVar);
        Object obj32 = bVar.f19182s;
        f10 = wm.d.f();
        r52 = bVar.f19184u;
    }

    @Override // g9.l
    public Object g(String str, String str2, String str3, vm.d dVar) {
        return this.f19173j.passwordReset2(str, str2, str3, dVar);
    }

    @Override // g9.l
    public Object h(String str, String str2, String str3, vm.d dVar) {
        return this.f19173j.usernameRecovery2(str, str2, str3, dVar);
    }

    @Override // g9.l
    public Object i(String str, String str2, String str3, vm.d dVar) {
        return this.f19173j.generateOtp(new GenerateOTPRequest(str, str2, str3, null, 8, null), dVar);
    }

    @Override // g9.l
    public void j() {
        this.f19178o = d9.b.NONE;
    }

    @Override // g9.l
    public void k(d9.b flow) {
        kotlin.jvm.internal.t.g(flow, "flow");
        this.f19178o = flow;
    }

    @Override // g9.l
    public Object l(String str, String str2, vm.d dVar) {
        return this.f19173j.usernameRecovery1(str, str2, dVar);
    }

    @Override // g9.l
    public Object m(String str, String str2, vm.d dVar) {
        return this.f19173j.generateOtp(new GenerateOTPRequest(null, null, str2, str, 3, null), dVar);
    }
}
