package com.ss.android.ugc.aweme.bullet.bridge.common;

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C0700KDz;
import X.KE0;
import X.KFR;
import X.KT7;
import X.M12;
import android.app.Activity;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import com.ss.android.ugc.aweme.sec.SecApiImpl;
import org.json.JSONObject;

public final class BdturingMethod extends BaseBridgeMethod implements 6Is {
    public static final KE0 LIZIZ = new KE0((byte) 0);

    static {
        Covode.recordClassIndex(54982);
    }

    public final String LIZLLL() {
        return "popTuringVerifyView";
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public BdturingMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ((Object) kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r6) {
        Activity activity;
        M12.LIZ((Object) jSONObject, (Object) r6);
        KFR LJFF = LJFF();
        if (LJFF != null) {
            activity = LJFF.LIZ();
        } else {
            activity = null;
        }
        String optString = jSONObject.optString("decision");
        if (optString == null) {
            optString = "";
        }
        if (activity == null || TextUtils.isEmpty(optString)) {
            r6.LIZ(1);
        } else {
            SecApiImpl.LIZ().popCaptchaV2(activity, optString, new C0700KDz(r6));
        }
    }
}
