webpackJsonp([22],[function(a,t,e){var s=e(1);s("[data-question=singleChoice]").on("click","[data-choice]",function(){if(!__app.isLogin)return window.api.base.defaultFormCallback({code:-1,msg:"请先登录",redirect:"/login?redirect="+__app.loginRedirect}),!1;var a=s(this).closest("[data-question]");return!a.data("done")&&(a.data("done",!0),a.find("[data-choice]").removeClass("selected"),s(this).addClass("selected"),"true"==s(this).attr("data-choice-is-answer")?(a.find("[data-answer-correct]").show(),a.attr("data-alias")&&s.post("/question/stat_correct/"+a.attr("data-alias"),{},function(a){})):(a.find("[data-answer-incorrect]").show(),a.attr("data-alias")&&s.post("/question/stat_incorrect/"+a.attr("data-alias"),{},function(a){})),a.find("[data-answer]").show(),a.find("[data-analysis]").show(),a.addClass("locked"),!1)}),s("[data-question=multiChoices]").on("click","[data-choice]",function(){var a=s(this).closest("[data-question]");return!a.data("done")&&(s(this).hasClass("selected")?s(this).removeClass("selected"):s(this).addClass("selected"),!1)}),s("[data-question=multiChoices]").on("click","[data-choice-confirm]",function(){if(!__app.isLogin)return window.api.base.defaultFormCallback({code:-1,msg:"请先登录",redirect:"/login?redirect="+__app.loginRedirect}),!1;var a=s(this).closest("[data-question]");if(a.data("done"))return!1;a.data("done",!0);var t=!0;return a.find("[data-choice]").each(function(a,e){"true"==s(e).attr("data-choice-is-answer")?s(e).is(".selected")||(t=!1):s(e).is(".selected")&&(t=!1)}),t?(a.find("[data-answer-correct]").show(),a.attr("data-alias")&&s.post("/question/stat_correct/"+a.attr("data-alias"),{},function(a){})):(a.find("[data-answer-incorrect]").show(),a.attr("data-alias")&&s.post("/question/stat_incorrect/"+a.attr("data-alias"),{},function(a){})),a.find("[data-answer]").show(),a.find("[data-analysis]").show(),a.addClass("locked"),!1}),s("[data-question=trueFalse]").on("click","[data-choice]",function(){if(!__app.isLogin)return window.api.base.defaultFormCallback({code:-1,msg:"请先登录",redirect:"/login?redirect="+__app.loginRedirect}),!1;var a=s(this).closest("[data-question]");return!a.data("done")&&(a.data("done",!0),a.find("[data-choice]").removeClass("selected"),s(this).addClass("selected"),"true"==s(this).attr("data-choice-is-answer")?(a.find("[data-answer-correct]").show(),a.attr("data-alias")&&s.post("/question/stat_correct/"+a.attr("data-alias"),{},function(a){})):(a.find("[data-answer-incorrect]").show(),a.attr("data-alias")&&s.post("/question/stat_incorrect/"+a.attr("data-alias"),{},function(a){})),a.find("[data-answer]").show(),a.find("[data-analysis]").show(),a.addClass("locked"),!1)}),s("[data-question=fill]").on("click","[data-answer-show]",function(){if(!__app.isLogin)return window.api.base.defaultFormCallback({code:-1,msg:"请先登录",redirect:"/login?redirect="+__app.loginRedirect}),!1;var a=s(this).closest("[data-question]");return!a.data("done")&&(a.data("done",!0),a.find("[data-answer]").show(),a.find("[data-analysis]").show(),a.addClass("locked"),!1)}),s("[data-question=text]").on("click","[data-answer-show]",function(){if(!__app.isLogin)return window.api.base.defaultFormCallback({code:-1,msg:"请先登录",redirect:"/login?redirect="+__app.loginRedirect}),!1;var a=s(this).closest("[data-question]");return!a.data("done")&&(a.data("done",!0),a.find("[data-answer]").show(),a.find("[data-analysis]").show(),a.addClass("locked"),!1)}),s("[data-question]").on("click","*",function(){var a=!0;s("[data-question]").each(function(t,e){s(e).data("done")||(a=!1)}),a&&s("[data-group-analysis]").show()})}]);