package com.ss.android.ugc.aweme.influencer.ecommercelive.bridgemethods;

import X.0CB;
import X.0CH;
import X.6Is;
import X.AnonymousClass4UQ;
import X.C221437e;
import X.C459340r;
import X.KT7;
import X.M12;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import kotlin.h.b.n;
import org.json.JSONObject;

public final class OpenWhatsAppChatMethod extends BaseBridgeMethod implements 6Is {
    public static final C459340r LIZIZ = new C459340r((byte) 0);
    public final String LIZJ = "routeToWhatsapp";

    static {
        Covode.recordClassIndex(88291);
    }

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

    public final String LIZLLL() {
        return this.LIZJ;
    }

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

    public final void LIZ(JSONObject jSONObject, AnonymousClass4UQ r8) {
        M12.LIZ(jSONObject, r8);
        String optString = jSONObject.optString("phone");
        String optString2 = jSONObject.optString("text");
        Context LJ = LJ();
        if (LJ != null) {
            n.LIZIZ(optString, "");
            if (C221437e.LIZ(LJ, optString, optString2)) {
                r8.LIZ((Object) null);
            } else {
                r8.LIZ(0, (String) null);
            }
        } else {
            r8.LIZ(0, (String) null);
        }
    }
}
