!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/vendor/Paper/",n(n.s=257)}({257:function(t,e,n){(function(t){n(258).init();var e=t(".pb-paper-exam-panel");e.find(".questions").on("click","a[data-alias]",(function(){var e=t(this).attr("data-alias"),n=t("[data-question-alias="+e+"]"),a=0;return n.length||e.indexOf("-")>0&&(e=e.split("-"),n=t("[data-question-alias="+e[0]+"]")),n.length>0&&(a=n.offset().top-50,t("html,body").animate({scrollTop:a+"px"},200)),!1})),t("[data-question-type]").on("QuestionAnswer",(function(){var n=t(this);if(!n.is("[data-question-type=group]")){var a=n.attr("data-question-alias");e.find(".questions").find("a").each((function(e,n){var i=t(n);0===i.attr("data-alias").indexOf(a)&&i.addClass("filled")}))}})),e.find(".trigger-area").on("click",(function(){return e.is(".visible")?e.removeClass("visible"):e.addClass("visible"),!1})),t(window).on("scroll",(function(){e.is(".visible")&&e.removeClass("visible")})),t((function(){const e=t(".pb-paper-exam-sticky");e.css("width",e.width()+"px");const n=e.offset().top;t(window).on("scroll",(function(){t(window).scrollTop()>n?e.css({position:"fixed",top:"0"}):e.css({position:"static",top:"0"})}))}))}).call(this,n(57))},258:function(t,e,n){(function(e){const n=window.api.base;function a(t,a,i){if(t.data("done"))return!1;t.addClass("locked"),t.data("done",!0),n.post("/question/answer/"+t.attr("data-question-alias"),{answer:a},(function(a){n.defaultFormCallback(a,{success:function(a){t.trigger("QuestionAnswer"),t.find(".answer-result").html(a.data.html);let o=t.closest('[data-question-type="group"]');if(o.length>0){let t=!0;o.find("[data-question]").each((function(n,a){e(a).data("done")||(t=!1)})),t&&n.post("/question/answer/"+o.attr("data-question-alias"),{},(function(t){n.defaultFormCallback(t,{success:function(t){o.find(">.question-analysis>.answer-result").html(t.data.html)}})}))}i&&i()}})}))}t.exports={init:function(){e("[data-question-type=singleChoice]").on("click","[data-choice]",(function(){let t=e(this).closest("[data-question-type]");return t.data("done")||a(t,e(this).attr("data-choice"),()=>{e(this).addClass("selected")}),!1})),e("[data-question-type=multiChoices]").on("click","[data-choice]",(function(){return e(this).closest("[data-question-type]").data("done")||(e(this).hasClass("selected")?e(this).removeClass("selected"):e(this).addClass("selected")),!1})),e("[data-question-type=multiChoices]").on("click","[data-choice-confirm]",(function(){let t=e(this).closest("[data-question-type]");if(t.data("done"))return!1;let n=[];return t.find("[data-choice].selected").each((function(t,a){n.push(e(a).attr("data-choice"))})),n.length?(a(t,n),!1):(window.api.dialog.tipError("请选择选项"),!1)})),e("[data-question-type=trueFalse]").on("click","[data-choice]",(function(){let t=e(this).closest("[data-question-type]");return t.data("done")||a(t,e(this).attr("data-choice"),()=>{e(this).addClass("selected")}),!1})),e("[data-question-type=fill]").on("click","[data-answer-show]",(function(){let t=e(this).closest("[data-question-type]");return t.data("done")||a(t,null),!1})),e("[data-question-type=text]").on("click","[data-answer-show]",(function(){let t=e(this).closest("[data-question-type]");return t.data("done")||a(t,null),!1})),e("[data-question-type]").on("click","*",(function(){let t=!0;e("[data-question-type]").each((function(n,a){e(a).data("done")||(t=!1)})),t&&e("[data-group-analysis]").show()}))}}}).call(this,n(57))},57:function(t,e){t.exports=window.$}});