package xyz.stream.api.viewmodel;

import com.google.android.gms.measurement.internal.u1;
import com.pichillilorenzo.flutter_inappwebview_android.credential_database.URLCredentialContract;
import java.util.HashMap;
import xyz.stream.utils.e0;

/* JADX INFO: loaded from: classes3.dex */
public class ParentalLockViewModel extends ApiViewModel {
    public androidx.lifecycle.v liveInitPassword;
    public androidx.lifecycle.v liveSendEmail;
    public androidx.lifecycle.v liveSetPassword;
    public androidx.lifecycle.v liveVerifyCode;

    public void getUserLock() {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveInitPassword = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        xyz.stream.api.o.g("user/lock", oVarF.n(), new HashMap(), new e0(oVarF, new r(wVar, 0), 24));
    }

    public void sendEmail(String str) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveSendEmail = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        r rVar = new r(wVar, 1);
        oVarF.getClass();
        HashMap mapO = u1.o("email", str);
        xyz.stream.api.o.v("user/send/email", oVarF.n(), xyz.stream.utils.m.a(mapO), new xyz.stream.api.j(oVarF, "user/send/email", mapO, rVar, 27));
    }

    public void setPassword(String str, String str2, String str3) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveSetPassword = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        r rVar = new r(wVar, 2);
        oVarF.getClass();
        HashMap mapU = defpackage.e.u(URLCredentialContract.FeedEntry.COLUMN_NAME_PASSWORD, str2, "code", str3);
        mapU.put("email", str);
        xyz.stream.api.o.v("user/lock/set", oVarF.n(), xyz.stream.utils.m.a(mapU), new xyz.stream.api.j(oVarF, "user/lock/set", mapU, rVar, 26));
    }

    public void verifyCode(String str) {
        androidx.lifecycle.w wVar = new androidx.lifecycle.w();
        this.liveVerifyCode = wVar;
        xyz.stream.api.o oVarF = xyz.stream.api.o.f();
        r rVar = new r(wVar, 3);
        oVarF.getClass();
        HashMap mapO = u1.o(URLCredentialContract.FeedEntry.COLUMN_NAME_PASSWORD, str);
        xyz.stream.api.o.v("user/lock", oVarF.n(), xyz.stream.utils.m.a(mapO), new xyz.stream.api.j(oVarF, "user/lock", mapO, rVar, 25));
    }
}
