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

import X.0CB;
import X.0CH;
import X.6Is;
import X.JXD;
import X.KCT;
import X.KT7;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.SmartRoute;
import com.bytedance.router.SmartRouter;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import org.json.JSONObject;

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

    static {
        Covode.recordClassIndex(55086);
    }

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

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

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

    public final void LIZ(JSONObject jSONObject, KCT kct) {
        M12.LIZ(jSONObject, kct);
        SmartRoute buildRoute = SmartRouter.buildRoute(LJ(), "//openVideoEdit");
        buildRoute.withParam("media_path", jSONObject.optString("media_path"));
        buildRoute.withParam("shoot_way", jSONObject.optString("shoot_way"));
        buildRoute.withParam("anchors", jSONObject.optString("anchors"));
        buildRoute.withParam("challenge_id", jSONObject.optString("challenge_id"));
        buildRoute.withParam("creation_id", jSONObject.optString("creation_id"));
        buildRoute.withParam("extra", jSONObject.optString("extra"));
        buildRoute.withParam("from_jsb", true);
        buildRoute.open();
    }
}
