@zykjcommon/questions 0.0.43 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21723,121 +21723,121 @@ var filerRegs = [{
21723
21723
  const Question_FillBlank_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_FillBlankvue_type_script_lang_js, [['render',Question_FillBlankvue_type_template_id_30505c8d_render]])
21724
21724
 
21725
21725
  /* harmony default export */ var Question_FillBlank = (Question_FillBlank_exports_);
21726
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Programming.vue?vue&type=template&id=5ca287ae
21726
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Programming.vue?vue&type=template&id=b32f6eae
21727
21727
 
21728
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_1 = {
21728
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_1 = {
21729
21729
  class: "zykjcommon-question"
21730
21730
  };
21731
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_2 = {
21731
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_2 = {
21732
21732
  key: 0,
21733
21733
  class: "question-type"
21734
21734
  };
21735
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_3 = {
21735
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_3 = {
21736
21736
  key: 0
21737
21737
  };
21738
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_4 = {
21738
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_4 = {
21739
21739
  key: 1,
21740
21740
  class: "score fr"
21741
21741
  };
21742
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_5 = {
21742
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_5 = {
21743
21743
  class: "question-box"
21744
21744
  };
21745
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_6 = {
21745
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_6 = {
21746
21746
  key: 0,
21747
21747
  class: "question-hint"
21748
21748
  };
21749
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_7 = ["innerHTML"];
21750
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_8 = {
21749
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_7 = ["innerHTML"];
21750
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_8 = {
21751
21751
  key: 2,
21752
21752
  class: "question-analysis"
21753
21753
  };
21754
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21754
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21755
21755
  class: "triangle-top"
21756
21756
  }, null, -1);
21757
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_10 = {
21757
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_10 = {
21758
21758
  class: "question-analysis-item"
21759
21759
  };
21760
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_11 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21760
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_11 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21761
21761
  class: "txt"
21762
21762
  }, "【你的答案】:", -1);
21763
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_12 = ["src"];
21764
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_13 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21763
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_12 = ["src"];
21764
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_13 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21765
21765
  class: "mask-text-box"
21766
21766
  }, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21767
21767
  class: "mask"
21768
21768
  }), /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21769
21769
  class: "mask-text"
21770
21770
  }, "去修改")], -1);
21771
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_14 = {
21771
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_14 = {
21772
21772
  key: 3,
21773
21773
  class: "question-analysis"
21774
21774
  };
21775
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_15 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21775
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_15 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21776
21776
  class: "triangle-top"
21777
21777
  }, null, -1);
21778
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_16 = {
21778
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_16 = {
21779
21779
  class: "question-analysis-item"
21780
21780
  };
21781
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_17 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21781
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_17 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21782
21782
  class: "txt"
21783
21783
  }, "【你的答案】:", -1);
21784
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_18 = ["src"];
21785
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_19 = {
21784
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_18 = ["src"];
21785
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_19 = {
21786
21786
  class: "question-analysis-item"
21787
21787
  };
21788
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_20 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21788
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_20 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21789
21789
  class: "txt"
21790
21790
  }, "【正确答案】:", -1);
21791
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_21 = ["src"];
21792
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_22 = {
21791
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_21 = ["src"];
21792
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_22 = {
21793
21793
  key: 0,
21794
21794
  class: "question-analysis-item"
21795
21795
  };
21796
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_23 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21796
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_23 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21797
21797
  class: "txt"
21798
21798
  }, "【本题解析】:", -1);
21799
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_24 = {
21799
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_24 = {
21800
21800
  class: "txt-box"
21801
21801
  };
21802
- var Question_Programmingvue_type_template_id_5ca287ae_hoisted_25 = ["innerHTML"];
21803
- function Question_Programmingvue_type_template_id_5ca287ae_render(_ctx, _cache, $props, $setup, $data, $options) {
21802
+ var Question_Programmingvue_type_template_id_b32f6eae_hoisted_25 = ["innerHTML"];
21803
+ function Question_Programmingvue_type_template_id_b32f6eae_render(_ctx, _cache, $props, $setup, $data, $options) {
21804
21804
  var _component_MediaLooker = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MediaLooker");
21805
21805
  var _component_IframeComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("IframeComponent");
21806
21806
  var _component_Loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("Loading");
21807
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_1, [!$props.isSub ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.questionIndex) + "、" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.question_type_str), 1), $props.questionInfo.score !== 'null' && $props.showScore ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_Programmingvue_type_template_id_5ca287ae_hoisted_3, "(" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.score) + "分)", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_Programmingvue_type_template_id_5ca287ae_hoisted_4, "得分:" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.answerMap ? $props.questionInfo.answerMap.user_score : '-') + "分", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, !$props.isEnterCodeByInit]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_5, [$props.questionInfo.hint && !$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21807
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_1, [!$props.isSub ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.questionIndex) + "、" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.question_type_str), 1), $props.questionInfo.score !== 'null' && $props.showScore ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_Programmingvue_type_template_id_b32f6eae_hoisted_3, "(" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.score) + "分)", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", Question_Programmingvue_type_template_id_b32f6eae_hoisted_4, "得分:" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.answerMap ? $props.questionInfo.answerMap.user_score : '-') + "分", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, !$props.isEnterCodeByInit]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_5, [$props.questionInfo.hint && !$props.isSub ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.questionInfo.hint), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21808
21808
  class: "editor-content",
21809
21809
  innerHTML: $props.questionInfo.htmlContent
21810
- }, null, 8, Question_Programmingvue_type_template_id_5ca287ae_hoisted_7), $props.mode === 'exam' && !$data.oss_temp_url || $props.mode === 'review' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
21810
+ }, null, 8, Question_Programmingvue_type_template_id_b32f6eae_hoisted_7), $props.mode === 'exam' && !$data.oss_temp_url || $props.mode === 'review' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
21811
21811
  key: 1,
21812
21812
  class: "bcdt-btn",
21813
21813
  onClick: _cache[0] || (_cache[0] = function ($event) {
21814
21814
  return $options.startCode('1');
21815
21815
  })
21816
- }, "进入" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.codeTypeMap[$props.questionInfo.code_type]) + "答题", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'exam' && $data.oss_temp_url ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_8, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_10, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21816
+ }, "进入" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.codeTypeMap[$props.questionInfo.code_type]) + "答题", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'exam' && $data.oss_temp_url ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_8, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_10, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21817
21817
  class: "img-box",
21818
21818
  onClick: _cache[1] || (_cache[1] = function ($event) {
21819
21819
  return $options.startCode('2');
21820
21820
  })
21821
21821
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
21822
21822
  src: $data.codeTypeImgMap[$props.questionInfo.code_type]
21823
- }, null, 8, Question_Programmingvue_type_template_id_5ca287ae_hoisted_12), Question_Programmingvue_type_template_id_5ca287ae_hoisted_13])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_14, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_15, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_16, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_17, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21823
+ }, null, 8, Question_Programmingvue_type_template_id_b32f6eae_hoisted_12), Question_Programmingvue_type_template_id_b32f6eae_hoisted_13])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.mode === 'analysis' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_14, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_15, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_16, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_17, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21824
21824
  class: "img-box",
21825
21825
  onClick: _cache[2] || (_cache[2] = function ($event) {
21826
21826
  return $options.startCode('3');
21827
21827
  })
21828
21828
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
21829
21829
  src: $data.codeTypeImgMap[$props.questionInfo.code_type]
21830
- }, null, 8, Question_Programmingvue_type_template_id_5ca287ae_hoisted_18)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_19, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_20, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21830
+ }, null, 8, Question_Programmingvue_type_template_id_b32f6eae_hoisted_18)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_19, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_20, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
21831
21831
  class: "img-box",
21832
21832
  onClick: _cache[3] || (_cache[3] = function ($event) {
21833
21833
  return $options.startCode('4');
21834
21834
  })
21835
21835
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
21836
21836
  src: $data.codeTypeImgMap[$props.questionInfo.code_type]
21837
- }, null, 8, Question_Programmingvue_type_template_id_5ca287ae_hoisted_21)])]), $props.questionInfo.analysis ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_22, [Question_Programmingvue_type_template_id_5ca287ae_hoisted_23, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_5ca287ae_hoisted_24, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21837
+ }, null, 8, Question_Programmingvue_type_template_id_b32f6eae_hoisted_21)])]), $props.questionInfo.analysis ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_22, [Question_Programmingvue_type_template_id_b32f6eae_hoisted_23, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Programmingvue_type_template_id_b32f6eae_hoisted_24, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
21838
21838
  class: "analysis-txt",
21839
21839
  innerHTML: $props.questionInfo.analysisHtmlContent
21840
- }, null, 8, Question_Programmingvue_type_template_id_5ca287ae_hoisted_25)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, !$props.isEnterCodeByInit]]), _ctx.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MediaLooker, {
21840
+ }, null, 8, Question_Programmingvue_type_template_id_b32f6eae_hoisted_25)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, !$props.isEnterCodeByInit]]), _ctx.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MediaLooker, {
21841
21841
  key: 1,
21842
21842
  visible: _ctx.visible,
21843
21843
  "onUpdate:visible": _cache[4] || (_cache[4] = function ($event) {
@@ -21858,7 +21858,7 @@ function Question_Programmingvue_type_template_id_5ca287ae_render(_ctx, _cache,
21858
21858
  loading: $data.loading
21859
21859
  }, null, 8, ["loading"])]);
21860
21860
  }
21861
- ;// CONCATENATED MODULE: ./src/components/questions/Question_Programming.vue?vue&type=template&id=5ca287ae
21861
+ ;// CONCATENATED MODULE: ./src/components/questions/Question_Programming.vue?vue&type=template&id=b32f6eae
21862
21862
 
21863
21863
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/common/IframeComponent.vue?vue&type=template&id=0d05d84e
21864
21864
 
@@ -23768,12 +23768,12 @@ var index = {
23768
23768
  this.iframe = node;
23769
23769
  //用于浮动倒计时样式
23770
23770
  this.enterCode = true;
23771
- this.bus.$emit('enterCode', true);
23771
+ this.bus.$emit && this.bus.$emit('enterCode', true);
23772
23772
  },
23773
23773
  //只关闭iframe不保存(考试已经结束)
23774
23774
  closeIframe: function closeIframe() {
23775
23775
  this.enterCode = false;
23776
- this.bus.$emit('enterCode', false);
23776
+ this.bus.$emit && this.bus.$emit('enterCode', false);
23777
23777
  this.showFrame = false;
23778
23778
  },
23779
23779
  //关闭iframe并且保存(考试中)
@@ -23789,7 +23789,7 @@ var index = {
23789
23789
  this.code_file_oss_temp_path = res.codeFileOssTempPath;
23790
23790
  this.oss_temp_url = res.ossTempUrl;
23791
23791
  this.scratch_answer_json = res.scratch_answer_json;
23792
- this.bus.$emit('submitQuestion', {
23792
+ this.bus.$emit && this.bus.$emit('submitQuestion', {
23793
23793
  saveType: 1,
23794
23794
  submitRequestAutoQuit: false,
23795
23795
  needSubmitRequest: false
@@ -23805,7 +23805,7 @@ var index = {
23805
23805
  this.code_file_oss_temp_path = res.codeFileOssTempPath;
23806
23806
  this.oss_temp_url = res.ossTempUrl;
23807
23807
  this.scratch_answer_json = res.scratch_answer_json;
23808
- this.bus.$emit('uploadCodingFileSuccess');
23808
+ this.bus.$emit && this.bus.$emit('uploadCodingFileSuccess');
23809
23809
  }
23810
23810
  }),
23811
23811
  components: {
@@ -23822,61 +23822,61 @@ var index = {
23822
23822
 
23823
23823
 
23824
23824
  ;
23825
- const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_5ca287ae_render]])
23825
+ const Question_Programming_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Programmingvue_type_script_lang_js, [['render',Question_Programmingvue_type_template_id_b32f6eae_render]])
23826
23826
 
23827
23827
  /* harmony default export */ var Question_Programming = (Question_Programming_exports_);
23828
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=d592ab96
23828
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-86.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/questions/Question_Classify.vue?vue&type=template&id=c2dd81ac
23829
23829
 
23830
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_1 = {
23830
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_1 = {
23831
23831
  class: "zykjcommon-question",
23832
23832
  style: {
23833
23833
  "width": "100%",
23834
23834
  "height": "100%"
23835
23835
  }
23836
23836
  };
23837
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_2 = {
23837
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_2 = {
23838
23838
  class: "box"
23839
23839
  };
23840
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_3 = {
23840
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_3 = {
23841
23841
  class: "main-block"
23842
23842
  };
23843
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_4 = ["src"];
23844
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23843
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_4 = ["src"];
23844
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23845
23845
  class: "main-content"
23846
23846
  }, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23847
23847
  class: "main-append"
23848
23848
  })], -1);
23849
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23849
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23850
23850
  class: "prev"
23851
23851
  }, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23852
23852
  class: "prev-main"
23853
23853
  })], -1);
23854
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23854
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23855
23855
  class: "next"
23856
23856
  }, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23857
23857
  class: "next-main"
23858
23858
  })], -1);
23859
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_8 = {
23859
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_8 = {
23860
23860
  class: "list"
23861
23861
  };
23862
- var Question_Classifyvue_type_template_id_d592ab96_hoisted_9 = ["idx"];
23863
- function Question_Classifyvue_type_template_id_d592ab96_render(_ctx, _cache, $props, $setup, $data, $options) {
23864
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_d592ab96_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23862
+ var Question_Classifyvue_type_template_id_c2dd81ac_hoisted_9 = ["idx"];
23863
+ function Question_Classifyvue_type_template_id_c2dd81ac_render(_ctx, _cache, $props, $setup, $data, $options) {
23864
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", Question_Classifyvue_type_template_id_c2dd81ac_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23865
23865
  class: "question-classify",
23866
23866
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bigBgCss)
23867
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_d592ab96_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.bigBoxItemList, function (item, index) {
23867
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_c2dd81ac_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.bigBoxItemList, function (item, index) {
23868
23868
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
23869
23869
  class: "box-item",
23870
23870
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(item.bgUrlCss),
23871
23871
  key: index
23872
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_d592ab96_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
23872
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_c2dd81ac_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
23873
23873
  src: item.imgUrl,
23874
23874
  alt: ""
23875
- }, null, 8, Question_Classifyvue_type_template_id_d592ab96_hoisted_4)]), Question_Classifyvue_type_template_id_d592ab96_hoisted_5], 4);
23875
+ }, null, 8, Question_Classifyvue_type_template_id_c2dd81ac_hoisted_4)]), Question_Classifyvue_type_template_id_c2dd81ac_hoisted_5], 4);
23876
23876
  }), 128))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23877
23877
  class: "list-outter",
23878
23878
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)($data.bottomBgCss)
23879
- }, [Question_Classifyvue_type_template_id_d592ab96_hoisted_6, Question_Classifyvue_type_template_id_d592ab96_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_d592ab96_hoisted_8, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.optionList, function (item, index) {
23879
+ }, [Question_Classifyvue_type_template_id_c2dd81ac_hoisted_6, Question_Classifyvue_type_template_id_c2dd81ac_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", Question_Classifyvue_type_template_id_c2dd81ac_hoisted_8, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($data.optionList, function (item, index) {
23880
23880
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
23881
23881
  class: "list-item",
23882
23882
  idx: item.idx,
@@ -23884,10 +23884,10 @@ function Question_Classifyvue_type_template_id_d592ab96_render(_ctx, _cache, $pr
23884
23884
  key: index
23885
23885
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
23886
23886
  class: "list-item-text"
23887
- }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, item.content_type != 2]])], 12, Question_Classifyvue_type_template_id_d592ab96_hoisted_9);
23887
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.content), 513), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, item.content_type != 2]])], 12, Question_Classifyvue_type_template_id_c2dd81ac_hoisted_9);
23888
23888
  }), 128))])], 4)], 4)]);
23889
23889
  }
23890
- ;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=d592ab96
23890
+ ;// CONCATENATED MODULE: ./src/components/questions/Question_Classify.vue?vue&type=template&id=c2dd81ac
23891
23891
 
23892
23892
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
23893
23893
  var es_array_sort = __webpack_require__(2707);
@@ -24395,10 +24395,10 @@ var env = js_fun.getDeviceEnv();
24395
24395
  this.lazyDragTimer && clearTimeout(this.lazyDragTimer);
24396
24396
  this.lazyDragTimer = null;
24397
24397
  $('.list').css({
24398
- overflow: 'auto'
24398
+ overflowX: 'auto'
24399
24399
  });
24400
24400
  $('.main-append').css({
24401
- overflow: 'auto'
24401
+ overflowY: 'auto'
24402
24402
  });
24403
24403
  },
24404
24404
  //回显答案
@@ -24448,7 +24448,7 @@ var env = js_fun.getDeviceEnv();
24448
24448
 
24449
24449
 
24450
24450
  ;
24451
- const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_d592ab96_render]])
24451
+ const Question_Classify_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(Question_Classifyvue_type_script_lang_js, [['render',Question_Classifyvue_type_template_id_c2dd81ac_render]])
24452
24452
 
24453
24453
  /* harmony default export */ var Question_Classify = (Question_Classify_exports_);
24454
24454
  ;// CONCATENATED MODULE: ./src/components/questions/const.js
@@ -24,4 +24,4 @@ return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=o.create(
24
24
  * (c) 2022 Evan You
25
25
  * @license MIT
26
26
  */
27
- var Vr="store";function Rr(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function _r(e){return null!==e&&"object"===typeof e}function jr(e){return e&&"function"===typeof e.then}function Fr(e,t){return function(){return e(t)}}function qr(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Ur(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Wr(e,n,[],e._modules.root,!0),Qr(e,n,t)}function Qr(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},c={},u=(0,i.effectScope)(!0);u.run((function(){Rr(a,(function(t,n){s[n]=Fr(t,e),c[n]=(0,i.computed)((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),e._state=(0,i.reactive)({data:t}),e._scope=u,e.strict&&Zr(e),r&&n&&e._withCommit((function(){r.data=null})),o&&o.stop()}function Wr(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=$r(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){s[c]=r.state}))}var u=r.context=Xr(e,a,n);r.forEachMutation((function(t,n){var r=a+n;Kr(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;Yr(e,r,o,u)})),r.forEachGetter((function(t,n){var r=a+n;Jr(e,r,t,u)})),r.forEachChild((function(r,i){Wr(e,t,n.concat(i),r,o)}))}function Xr(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=eo(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,o){var i=eo(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return zr(e,t)}},state:{get:function(){return $r(e.state,n)}}}),o}function zr(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Kr(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function Yr(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return jr(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function Jr(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function Zr(e){(0,i.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function $r(e,t){return t.reduce((function(e,t){return e[t]}),e)}function eo(e,t,n){return _r(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var to="vuex bindings",no="vuex:mutations",ro="vuex:actions",oo="vuex",io=0;function ao(e,t){Lr({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[to]},(function(n){n.addTimelineLayer({id:no,label:"Vuex Mutations",color:so}),n.addTimelineLayer({id:ro,label:"Vuex Actions",color:so}),n.addInspector({id:oo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===oo)if(n.filter){var r=[];po(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[ho(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===oo){var r=n.nodeId;zr(t,r),n.state=mo(Ao(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===oo){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(oo),n.sendInspectorState(oo),n.addTimelineEvent({layerId:no,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=io++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:ro,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:ro,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var so=8702998,co=6710886,uo=16777215,lo={label:"namespaced",textColor:uo,backgroundColor:co};function fo(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function ho(e,t){return{id:t||"root",label:fo(t),tags:e.namespaced?[lo]:[],children:Object.keys(e._children).map((function(n){return ho(e._children[n],t+n+"/")}))}}function po(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[lo]:[]}),Object.keys(t._children).forEach((function(o){po(e,t._children[o],n,r+o+"/")}))}function mo(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var i=vo(t);o.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?fo(e):e,editable:!1,value:go((function(){return i[e]}))}}))}return o}function vo(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var o=t,i=r.pop();r.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[i]=go((function(){return e[n]}))}else t[n]=go((function(){return e[n]}))})),t}function Ao(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,o){var i=e[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children}),"root"===t?e:e.root._children)}function go(e){try{return e()}catch(t){return t}}var bo=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},So={namespaced:{configurable:!0}};So.namespaced.get=function(){return!!this._rawModule.namespaced},bo.prototype.addChild=function(e,t){this._children[e]=t},bo.prototype.removeChild=function(e){delete this._children[e]},bo.prototype.getChild=function(e){return this._children[e]},bo.prototype.hasChild=function(e){return e in this._children},bo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},bo.prototype.forEachChild=function(e){Rr(this._children,e)},bo.prototype.forEachGetter=function(e){this._rawModule.getters&&Rr(this._rawModule.getters,e)},bo.prototype.forEachAction=function(e){this._rawModule.actions&&Rr(this._rawModule.actions,e)},bo.prototype.forEachMutation=function(e){this._rawModule.mutations&&Rr(this._rawModule.mutations,e)},Object.defineProperties(bo.prototype,So);var To=function(e){this.register([],e,!1)};function yo(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;yo(e.concat(r),t.getChild(r),n.modules[r])}}To.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},To.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},To.prototype.update=function(e){yo([],this.root,e)},To.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new bo(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&Rr(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},To.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},To.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var Mo=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new To(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;Wr(this,u,[],this._modules.root),Qr(this,u),n.forEach((function(e){return e(t)}))},wo={state:{configurable:!0}};Mo.prototype.install=function(e,t){e.provide(t||Vr,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&ao(e,this)},wo.state.get=function(){return this._state.data},wo.state.set=function(e){0},Mo.prototype.commit=function(e,t,n){var r=this,o=eo(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},Mo.prototype.dispatch=function(e,t){var n=this,r=eo(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},Mo.prototype.subscribe=function(e,t){return qr(e,this._subscribers,t)},Mo.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return qr(n,this._actionSubscribers,t)},Mo.prototype.watch=function(e,t,n){var r=this;return(0,i.watch)((function(){return e(r.state,r.getters)}),t,Object.assign({},n))},Mo.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Mo.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Wr(this,this.state,e,this._modules.get(e),n.preserveState),Qr(this,this.state)},Mo.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=$r(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),Ur(this)},Mo.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},Mo.prototype.hotUpdate=function(e){this._modules.update(e),Ur(this,!0)},Mo.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Mo.prototype,wo);var Co=xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=Io(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),Bo=(xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=Io(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||Io(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=Io(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})));function Po(e){return Eo(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Eo(e){return Array.isArray(e)||_r(e)}function xo(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Io(e,t,n){var r=e._modulesNamespaceMap[n];return r}var Go={name:"Question_Programming",props:{isEnterCodeByInit:{type:Boolean,default:!1},urlQuery:{type:String,default:""},isSub:{type:Boolean,default:!1},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"},showScore:{type:Boolean,default:!1}},mounted:function(){var e=this;X(this),this.$watch("oss_temp_url",(function(t){if(t){var n=e.isAnswered();e.$emit("getIsAnswered",n),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:n})}}),{immediate:!0})},created:function(){this.isEnterCodeByInit&&(this.oss_temp_url?this.startCode("2"):this.startCode("1"))},data:function(){return Q({iframe:null,showFrame:!1,analyCorrectAnswer:"",iframeUrl:"",code_file_oss_temp_path:"",oss_temp_url:"",scratch_answer_json:"",loading:!1,enterCode:!1,codeTypeMap:{1:"Scratch",2:"Python",3:"PyGame",4:"C++"},codeTypeImgMap:{1:r(3031),2:r(3843),3:r(6543),4:r(2657)},answerMap:{}},JSON.parse(W))},watch:{questionInfo:{handler:function(e,t){if(e){this.answerMap=e.answerMap;var n=e.answerMap;n&&(this.code_file_oss_temp_path=n.code_file_oss_temp_path,this.oss_temp_url=n.oss_temp_url)}},immediate:!0}},computed:Q({},Co("zykjcommonQuestions",["pythonCodeWebPath","scratchCodeWebPath","cplusCodeWebPath"])),methods:Q(Q({},Bo("zykjcommonQuestions",["getEditorUrlActions"])),{},{getAnswer:function(){return{code_file_oss_temp_path:this.code_file_oss_temp_path,oss_temp_url:this.oss_temp_url,scratch_answer_json:this.scratch_answer_json}},isAnswered:function(){var e=""!==this.oss_temp_url;return e},isCorrect:function(){var e="1"===this.questionInfo.answerMap.is_correct;return e},getCodeWebPath:function(e){var t=this;this.pythonCodeWebPath||this.scratchCodeWebPath||this.cplusCodeWebPath?e&&e():(this.loading=!0,this.getEditorUrlActions().then((function(){t.loading=!1,e&&e()}),(function(){t.loading=!1})))},startCode:function(e){var t=this;this.loading||(this.getCodeWebPath((function(){var n={1:t.questionInfo.template_file_full_url,2:t.oss_temp_url,3:t.oss_temp_url,4:t.questionInfo.reference_file_full_url},r="",o=t.questionInfo.code_type,i=n[e],a=t.urlQuery+"&codeUrl=".concat(i);switch(o){case 1:r="".concat(t.scratchCodeWebPath,"/?").concat(a);break;case 2:r="".concat(t.pythonCodeWebPath,"/?").concat(a);break;case 3:r="".concat(t.pythonCodeWebPath,"/?").concat(a,"&pygame=true");break;case 4:r="".concat(t.cplusCodeWebPath,"/?").concat(a);break}t.iframeUrl=r})),this.showFrame=!0)},getQuestionInfo:function(){var e=this,t={type:"getQuestionInfo",data:e.questionInfo.htmlContent};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(t),"*")},submitCodeQuestionByTimeover:function(){var e={type:"submitCodeQuestionByTimeover"};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(e),"*")},iframeLoaded:function(e){this.iframe=e,this.enterCode=!0,this.bus.$emit("enterCode",!0)},closeIframe:function(){this.enterCode=!1,this.bus.$emit("enterCode",!1),this.showFrame=!1},closeAndSave:function(e){this.saveCodeOnly(e),this.isEnterCodeByInit||this.closeIframe(),this.$emit("closeAndSave",e)},saveCodeOnly:function(e){var t=this;this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("submitQuestion",{saveType:1,submitRequestAutoQuit:!1,needSubmitRequest:!1});var n=this.isAnswered();"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:t.questionInfo.questionIndex-1,answered:n}),this.$emit("saveCodeOnly",e)},uploadCodingFileSuccess:function(e){this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit("uploadCodingFileSuccess")}}),components:{IframeComponent:Br,MediaLooker:Je,Loading:Mr}};const ko=(0,Ke.Z)(Go,[["render",hr]]);var Do=ko,Ho={class:"zykjcommon-question",style:{width:"100%",height:"100%"}},Oo={class:"box"},No={class:"main-block"},Lo=["src"],Vo=(0,i.createElementVNode)("div",{class:"main-content"},[(0,i.createElementVNode)("div",{class:"main-append"})],-1),Ro=(0,i.createElementVNode)("div",{class:"prev"},[(0,i.createElementVNode)("div",{class:"prev-main"})],-1),_o=(0,i.createElementVNode)("div",{class:"next"},[(0,i.createElementVNode)("div",{class:"next-main"})],-1),jo={class:"list"},Fo=["idx"];function qo(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",Ho,[(0,i.createElementVNode)("div",{class:"question-classify",style:(0,i.normalizeStyle)(o.bigBgCss)},[(0,i.createElementVNode)("div",Oo,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.bigBoxItemList,(function(e,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"box-item",style:(0,i.normalizeStyle)(e.bgUrlCss),key:t},[(0,i.createElementVNode)("div",No,[(0,i.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,Lo)]),Vo],4)})),128))]),(0,i.createElementVNode)("div",{class:"list-outter",style:(0,i.normalizeStyle)(o.bottomBgCss)},[Ro,_o,(0,i.createElementVNode)("div",jo,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.optionList,(function(e,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"list-item",idx:e.idx,style:(0,i.normalizeStyle)(e.bgUrlCss),key:t},[(0,i.withDirectives)((0,i.createElementVNode)("div",{class:"list-item-text"},(0,i.toDisplayString)(e.content),513),[[i.vShow,2!=e.content_type]])],12,Fo)})),128))])],4)],4)])}r(2707),r(4553),r(561);var Uo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1440,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=100,i=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight;a-=t;var s=4.3/3,c=s/(i/a),u=parseInt(i*c);r.style.fontSize=u/e*o*n+"px"},Qo=Xe.getDeviceEnv(),Wo={name:"Question_Classify",props:{questionInfo:{type:Object,default:{}},bus:{type:Object,default:function(){return{}}},mode:{type:String,default:"exam"},screenRepairH:{type:Number,default:0},screenScale:{type:Number,default:1}},created:function(){},unmounted:function(){this.unmountedDo()},destroyed:function(){this.unmountedDo()},mounted:function(){var e=this;this.setRootFontSize(),window.addEventListener("resize",this.setRootFontSize),this.init(),this.$watch("optionList",(function(t){t&&t.length&&e.$nextTick((function(){e.dothings()}))}),{immediate:!0,deep:!0})},data:function(){return{animationing:!1,analyCorrectAnswer:"",classify_question_info:{},answerMap:{},optionList:[],bigBoxItemList:[],bigBgCss:"",bottomBgCss:"",listItemBgCss:"",env:Qo,p1:{},p2:{},listItem:null,moveDiv:null,timer:null,mousedown:"mobile"===Qo?"touchstart":"mousedown",mousemove:"mobile"===Qo?"touchmove":"mousemove",mouseup:"mobile"===Qo?"touchend":"mouseup",dragWay:"",flag:!1,scrollDistance:3e3,lazyDragTimer:null,dragingStart:!1}},watch:{questionInfo:{handler:function(e,t){e&&(console.log(e,33),this.parseLists(e),this.answerMap=e.answerMap,e.answerMap&&this.mode)},immediate:!0}},computed:{},methods:{getAnswer:function(){var e=[];return $(this.$el).find(".box-item").each((function(t,n){var r=$(this),o=[];r.find(".append-item").each((function(e,t){o.push(Number($(t).attr("idx")))})),o=o.sort((function(e,t){return e-t})),console.log(o,345),e.push({big_type_index:t+1,small_type_index_list:o})})),{classify_mapping_list:e}},isAnswered:function(){var e=$(this.$el).find(".list .list-item").length,t=0===e;return t},isCorrect:function(){var e="1"===this.questionInfo.answerMap.is_correct;return e},parseLists:function(e){this.classify_question_info=e.classify_question_info;var t=e.exam_options_data;if(this.classify_question_info){this.classify_question_info.background_file&&(this.bigBgCss="background-image: url(".concat(this.classify_question_info.background_file.file_url,");")),this.classify_question_info.bottom_img_file&&(this.bottomBgCss="background-image: url(".concat(this.classify_question_info.bottom_img_file.file_url,");"));var n=[];this.optionList=[],t.forEach((function(e){n.push({content_type:e.data.content_type,content:e.data.option_content,bgUrlCss:"background-image: url(".concat(e.data.file_url,");color:").concat(e.data.font_color),idx:e.index})})),this.optionList=n,this.listItemBgCss=n[0]?n[0].bgUrlCss:"";var r=[],o=this.classify_question_info.big_type_box_image_list,i=this.classify_question_info.big_type_option_list;o.forEach((function(e,t){r.push({imgUrl:i[t].file_url,bgUrl:e.file_url,bgUrlCss:"background-image: url(".concat(e.file_url,");")})})),this.bigBoxItemList=r}},setRootFontSize:function(){Uo(1e3,this.screenRepairH,this.screenScale,this.$el)},unmountedDo:function(){window.removeEventListener("resize",this.setRootFontSize),document.removeEventListener("gesturestart",this.gesturestartListener),$(this.$el).find(".question-classify .append-item").off(this.mousedown),$(this.$el).find(".question-classify .list-item").off(this.mousedown),$(this.$el).find(".question-classify .next").off("click"),$(this.$el).find(".question-classify .prev").off("click"),$(document).off(this.mouseup),document.onselectstart=null},answeredNotify:function(){var e=this,t=e.isAnswered();e.$emit("getIsAnswered",t),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:t})},gesturestartListener:function(e){e.preventDefault()},init:function(){"mobile"===Qo&&document.addEventListener("gesturestart",this.gesturestartListener)},getSpecArr:function(){var e=this,t=[],n=e.moveDiv.offset().left,r=n+e.moveDiv.width(),o=e.moveDiv.offset().top,i=o+e.moveDiv.height();return $(this.$el).find(".box-item").each((function(e,a){var s=$(a),c=s.offset().left,u=c+s.width(),l=s.offset().top,f=l+s.height();n>c&&r<u&&o>l&&i<f&&t.push({dom:s})})),t},bindDragDomEvent:function(e,t){var n=this;function r(e,r){if(!n.moveDiv){"mobile"===Qo&&n.startLazyDrag(),n.flag=!1,n.dragWay=t,console.log(e),e.stopPropagation(),e.preventDefault(),n.listItem=$(r),n.listItem.addClass("drag"),n.p1.moveX=n.listItem.offset().left,n.p1.moveY=n.listItem.offset().top-30;var o=n.listItem.attr("idx"),i="".concat(n.listItem.get(0).style.backgroundImage),a="".concat(n.listItem.get(0).style.color),s=n.listItem.find(".list-item-text").get(0).style.display;console.log(i,1234),n.moveDiv=$('<div class="question-classify-moveDiv" idx="'.concat(o,'"><div class="list-item-text" style="').concat(s?"display:"+s:"",'">').concat(n.listItem.find(".list-item-text").text(),"</div></div>")),n.moveDiv.css({left:"".concat(n.p1.moveX,"px"),top:"".concat(n.p1.moveY,"px"),backgroundImage:i,color:a}),$(n.$el).append(n.moveDiv),$(document).on(n.mousemove,(function(e){e.stopPropagation(),n.p2.moveX=e.clientX||e.originalEvent.touches&&e.originalEvent.touches[0].clientX,n.p2.moveY=e.clientY||e.originalEvent.touches&&e.originalEvent.touches[0].clientY;var t=n.p2.moveX-n.moveDiv.width()/2,r=n.p2.moveY-n.moveDiv.height()/2;n.moveDiv.css({left:t+"px",top:r+"px"})}))}}e.off(this.mousedown),e.on(this.mousedown,(function(e){var t=this;"mobile"===Qo?n.lazyDragTimer=setTimeout((function(){r(e,t)}),100):r(e,this)}))},appendMoveDiv:function(e){var t=this;t.listItem.remove();var n=t.moveDiv.attr("idx"),r="".concat(t.moveDiv.get(0).style.backgroundImage),o="".concat(t.moveDiv.get(0).style.color),i=t.moveDiv.find(".list-item-text").get(0).style.display,a=$('<div class="'.concat(e.appendItemClassName,'" idx="').concat(n,'"><div class="list-item-text" style="').concat(i?"display:"+i:"",'">').concat(t.moveDiv.find(".list-item-text").text(),"</div></div>"));a.css({opacity:0,backgroundImage:r,color:o}),e.targetList.append(a),e.targetList[e.scrollDirection](t.scrollDistance);var s=a.offset().left,c=a.offset().top;t.animationing=!0,t.moveDiv.css({transition:"all 0.5s",left:s,top:c}).on("transitionend",(function(){t.flag||(t.moveDiv.remove(),t.moveDiv.off("transitionend"),t.moveDiv=null,a.css({opacity:1}),t.answeredNotify(),t.bindDragDomEvent(a,e.op),t.animationing=!1),t.flag=!0}))},bindNextPrevEvent:function(e){var t=this;$(this.$el).find(".question-classify .".concat(e)).off("click"),$(this.$el).find(".question-classify .".concat(e)).on("click",(function(n){n.stopPropagation(),n.preventDefault();var r=$(t.$el).find(".question-classify .list-item"),o=$(t.$el).find(".question-classify .list"),i=r.outerWidth()*("next"===e?1:-1),a=o.scrollLeft();console.log(a),$(t.$el).find(".question-classify .list").stop(!0).animate({scrollLeft:a+i},500)}))},dothings:function(){var e=this;this.answerMap&&this.answerMap.classify_mapping_list&&this.answerMap.classify_mapping_list.length&&this.setAnswerDo(),e.bindDragDomEvent($(this.$el).find(".question-classify .list-item"),"go"),$(document).off(e.mouseup),$(document).on(e.mouseup,(function(t){if("mobile"===Qo&&e.stopLazyDrag(),!e.animationing)if("go"===e.dragWay){if($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv){var n=e.getSpecArr();if(0===n.length)e.moveDiv&&(e.moveDiv.remove(),e.moveDiv=null);else{var r=n[0].dom;e.appendMoveDiv({targetList:r.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"})}}}else if("back"===e.dragWay&&($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv)){var o=e.getSpecArr();if(0===o.length)e.appendMoveDiv({targetList:$(e.$el).find(".question-classify .list"),appendItemClassName:"list-item",op:"go",scrollDirection:"scrollLeft"});else{var i=o[0].dom,a=e.listItem.parents(".question-classify .box-item");i.get(0)===a.get(0)?(console.log("自己"),e.moveDiv.remove(),e.moveDiv=null,e.listItem&&e.listItem.removeClass("drag")):(console.log("不是自己"),e.appendMoveDiv({targetList:i.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"}),console.log("不是自己"))}console.log(o.length)}})),document.onselectstart=function(){return!1},"mobile"===Qo&&($(".list").off("scroll"),$(".list").on("scroll",(function(){e.dragingStart||e.stopLazyDrag()})).addClass("noScrollBar"),$(".main-append").off("scroll"),$(".main-append").on("scroll",(function(t){e.dragingStart||e.stopLazyDrag()})).addClass("noScrollBar")),e.bindNextPrevEvent("next"),e.bindNextPrevEvent("prev")},startLazyDrag:function(){this.dragingStart=!0,$(".list").css({overflow:"hidden"}),$(".main-append").css({overflow:"hidden"})},stopLazyDrag:function(){this.dragingStart=!1,this.lazyDragTimer&&clearTimeout(this.lazyDragTimer),this.lazyDragTimer=null,$(".list").css({overflow:"auto"}),$(".main-append").css({overflow:"auto"})},setAnswerDo:function(){var e=this,t=this,n=[];$(this.$el).find(".question-classify .list-item").each((function(e,t){n.push(Number($(t).attr("idx")))})),$(this.$el).find(".main-append").empty(),this.answerMap.classify_mapping_list.forEach((function(r,o){r.small_type_index_list.forEach((function(r){var i=n.findIndex((function(e){return e==r}));if(i>-1){n.splice(i,1);var a=$(e.$el).find(".question-classify .list-item").eq(i),s="".concat(a.get(0).style.backgroundImage),c="".concat(a.get(0).style.color),u=a.find(".list-item-text").get(0).style.display,l=a.attr("idx"),f=$('<div class="append-item" idx="'.concat(l,'"><div class="list-item-text" style="').concat(u?"display:"+u:"",'">').concat(a.find(".list-item-text").text(),"</div></div>"));f.css({backgroundImage:s,color:c}),t.bindDragDomEvent(f,"back"),$(e.$el).find(".main-append").eq(o).append(f),a.remove()}}))})),this.answeredNotify()}},components:{}};const Xo=(0,Ke.Z)(Wo,[["render",qo]]);var zo=Xo,Ko={1:"Question_SingleChoice",2:"Question_MultipleChoice",3:"Question_SingleChoice",7:"Question_BriefAnswer",16:"Question_Programming",11:"Question_Reading",4:"Question_FillBlank",17:"Question_Classify"},Yo=(r(8674),r(1354)),Jo=r(9669),Zo=r.n(Jo),$o=r(7631),ei=r.n($o),ti="piw38kulfozrea7ydmjnvbc965q1gt2x",ni=function(e,t,n,r){void 0!=n&&"undefined"!==typeof n["password"]&&(n["password"]=ei().hex_md5(ei().hex_md5(n["password"]+"FE605C9343A3A47764598FDC184EC66F").toUpperCase()+"FE605C9343A3A47764598FDC184EC66F").toUpperCase());var o=e+"\n/student-web"+t+"\n"+r+"\n"+(n?JSON.stringify(n):""),i=Yo.enc.Base64.stringify((0,Yo.HmacSHA256)(o,ti)),a=function(e){var t=e.replace(/\+/g,"-");t=t.replace(/\//g,"_");var n=t.length%4,r="====";return t+=r.substring(0,n),t};return a(i)};Zo().defaults.baseURL="https://jsl-api.thedeer.cn/student-web/",Zo().defaults.timeout=6e4,Zo().defaults.withCredentials=!0;var ri=function(e,t){if(t&&-1!=t["Content-Type"].indexOf("multipart/form-data")){var n=new FormData;for(var r in e)n.append(r,e[r]);return n}return JSON.stringify(e)},oi=function(e){e=JSON.parse(e),e.hasOwnProperty("errorCode")&&(e.error_code=e.errorCode);var t=e,n=t.error_code,r=t.message;if(n){var o=[39002,39003];if(o.indexOf(n)<=-1){var i=r||"系统异常";Xe.messageTip("warning",i)}}return e};function ii(e,t,n,r,o){var i=void 0,a=void 0;e=e.toUpperCase(),t+=0===n.indexOf("/")?n.substr(1):n;var s=window.isMock;"undefined"!==typeof o&&"undefined"!==typeof o.isMock&&(s=o.isMock,delete o.isMock),s&&o&&o.onUploadProgress&&delete o.onUploadProgress;var c=n;"/"!==n[0]&&(c="/"+n);var u=(new Date).getTime(),l={ts:u,sign:ni(e,c,r,u),token:Xe.getToken()};switch(e){case"Get":a=r||{};break;default:case"POST":i=r||{},l["Content-Type"]=o&&o.contentType?o.contentType:"application/json";break}return t instanceof Array?Zo().all([]).then(Zo().spread((function(){}))):Zo()(Object.assign({headers:l,method:e,url:t,data:i,params:a,transformRequest:ri,transformResponse:oi},o)).then((function(e){return e.data})).catch((function(e){return console.log("服务端请求/响应错误:",e,e.config),Promise.reject(e)}))}var ai=function(e,t,n){return ii("GET","",e,t,n)},si={editorUrl:"/open/editor-url"},ci={pythonCodeWebPath:"",scratchCodeWebPath:"",cplusCodeWebPath:""},ui={namespaced:!0,state:ci,getters:{},mutations:{setCodeWebPath:function(e,t){e.pythonCodeWebPath=t.pythonCodeWebPath,e.scratchCodeWebPath=t.scratchCodeWebPath,e.cplusCodeWebPath=t.cplusCodeWebPath}},actions:{getEditorUrlActions:function(e){var t=e.commit;e.dispatch;return new Promise((function(e,n){ai("".concat(si.editorUrl)).then((function(n){var r=n.error_code,o=n.data;if(!r){var i=o.pythonCodeWebPath,a=o.scratchCodeWebPath,s=o.cplusCodeWebPath;t("setCodeWebPath",{pythonCodeWebPath:i,scratchCodeWebPath:a,cplusCodeWebPath:s})}e(n)}),(function(e){n(e)}))}))}}},li=function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;function i(e,t){e.forEach((function(e){if("img"===e["<>"]&&e.hasOwnProperty("width")){var n=Number(e.width);n>t&&(e.width=Math.floor(t),e.height&&delete e.height)}e.html&&e.html.length&&i(e.html,t)}))}t.forEach((function(t,a){if(t.questionComponent=Ko[t.question_type],void 0===o?t.questionIndex=a+1:(t.questionIndex=o+1+"-"+(a+1),t.questionIndex2=a+1),n&&n.hasOwnProperty(t.question_id)){if(t.answerMap=n[t.question_id],"analysis"===e){t.answerMap.user_coding_file&&(t.answerMap.oss_temp_url=t.answerMap.user_coding_file),t.score=t.answerMap.question_max_score;var s=Object.keys(t.answerMap),c=/^user_/gi;s.forEach((function(e){if(c.test(e)){var n=e.replace(c,"");t.answerMap[n]=t.answerMap[e]}}))}}else t.answerMap=null;var u=t.question_type;3==u?t.exam_options_data=[{index:1,data:{name:"正确"}},{index:2,data:{name:"错误"}}]:t.exam_options_data&&t.exam_options_data.length&&t.exam_options_data.forEach((function(e,t){e.enIndex=Xe.indexToEnIndex(t+1)}));try{var l=JSON.parse(t.content),f=jQuery(".question-list").width()-30;i(l,f),t.htmlContent=$.json2html({},l)}catch(d){t.htmlContent=t.content}try{t.analysis?t.analysisHtmlContent=$.json2html({},JSON.parse(t.analysis)):t.analysisHtmlContent=""}catch(d){t.analysisHtmlContent=t.analysis}t.sub_questions&&t.sub_questions.length&&r.parseQuestionListItem(e,t.sub_questions,n,a)}))};function fi(e){return e.registerModule("zykjcommonQuestions",ui),{install:function(e){Xe.getVueVersion();e.mixin({methods:{parseQuestionListItem:li}}),e.component("Question_SingleChoice",et),e.component("Question_MultipleChoice",Nt),e.component("Question_Reading",Jt),e.component("Question_BriefAnswer",xn),e.component("Question_FillBlank",jn),e.component("Question_Programming",Do),e.component("Question_Classify",zo)},parseQuestionListItem:li,questionMapper:Ko,Question_SingleChoice:et,Question_MultipleChoice:Nt,Question_Reading:Jt,Question_BriefAnswer:xn,Question_FillBlank:jn,Question_Programming:Do,Question_Classify:zo}}var di=fi}(),o}()}));
27
+ var Vr="store";function Rr(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function _r(e){return null!==e&&"object"===typeof e}function jr(e){return e&&"function"===typeof e.then}function Fr(e,t){return function(){return e(t)}}function qr(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Ur(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Wr(e,n,[],e._modules.root,!0),Qr(e,n,t)}function Qr(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},c={},u=(0,i.effectScope)(!0);u.run((function(){Rr(a,(function(t,n){s[n]=Fr(t,e),c[n]=(0,i.computed)((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),e._state=(0,i.reactive)({data:t}),e._scope=u,e.strict&&Zr(e),r&&n&&e._withCommit((function(){r.data=null})),o&&o.stop()}function Wr(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=$r(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){s[c]=r.state}))}var u=r.context=Xr(e,a,n);r.forEachMutation((function(t,n){var r=a+n;Kr(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;Yr(e,r,o,u)})),r.forEachGetter((function(t,n){var r=a+n;Jr(e,r,t,u)})),r.forEachChild((function(r,i){Wr(e,t,n.concat(i),r,o)}))}function Xr(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=eo(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,o){var i=eo(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return zr(e,t)}},state:{get:function(){return $r(e.state,n)}}}),o}function zr(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Kr(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function Yr(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return jr(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function Jr(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function Zr(e){(0,i.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function $r(e,t){return t.reduce((function(e,t){return e[t]}),e)}function eo(e,t,n){return _r(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var to="vuex bindings",no="vuex:mutations",ro="vuex:actions",oo="vuex",io=0;function ao(e,t){Lr({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[to]},(function(n){n.addTimelineLayer({id:no,label:"Vuex Mutations",color:so}),n.addTimelineLayer({id:ro,label:"Vuex Actions",color:so}),n.addInspector({id:oo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===oo)if(n.filter){var r=[];po(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[ho(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===oo){var r=n.nodeId;zr(t,r),n.state=mo(Ao(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===oo){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(oo),n.sendInspectorState(oo),n.addTimelineEvent({layerId:no,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=io++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:ro,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:ro,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var so=8702998,co=6710886,uo=16777215,lo={label:"namespaced",textColor:uo,backgroundColor:co};function fo(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function ho(e,t){return{id:t||"root",label:fo(t),tags:e.namespaced?[lo]:[],children:Object.keys(e._children).map((function(n){return ho(e._children[n],t+n+"/")}))}}function po(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[lo]:[]}),Object.keys(t._children).forEach((function(o){po(e,t._children[o],n,r+o+"/")}))}function mo(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var i=vo(t);o.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?fo(e):e,editable:!1,value:go((function(){return i[e]}))}}))}return o}function vo(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var o=t,i=r.pop();r.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[i]=go((function(){return e[n]}))}else t[n]=go((function(){return e[n]}))})),t}function Ao(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,o){var i=e[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children}),"root"===t?e:e.root._children)}function go(e){try{return e()}catch(t){return t}}var bo=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},So={namespaced:{configurable:!0}};So.namespaced.get=function(){return!!this._rawModule.namespaced},bo.prototype.addChild=function(e,t){this._children[e]=t},bo.prototype.removeChild=function(e){delete this._children[e]},bo.prototype.getChild=function(e){return this._children[e]},bo.prototype.hasChild=function(e){return e in this._children},bo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},bo.prototype.forEachChild=function(e){Rr(this._children,e)},bo.prototype.forEachGetter=function(e){this._rawModule.getters&&Rr(this._rawModule.getters,e)},bo.prototype.forEachAction=function(e){this._rawModule.actions&&Rr(this._rawModule.actions,e)},bo.prototype.forEachMutation=function(e){this._rawModule.mutations&&Rr(this._rawModule.mutations,e)},Object.defineProperties(bo.prototype,So);var To=function(e){this.register([],e,!1)};function yo(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;yo(e.concat(r),t.getChild(r),n.modules[r])}}To.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},To.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},To.prototype.update=function(e){yo([],this.root,e)},To.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new bo(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&Rr(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},To.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},To.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var Mo=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new To(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;Wr(this,u,[],this._modules.root),Qr(this,u),n.forEach((function(e){return e(t)}))},wo={state:{configurable:!0}};Mo.prototype.install=function(e,t){e.provide(t||Vr,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&ao(e,this)},wo.state.get=function(){return this._state.data},wo.state.set=function(e){0},Mo.prototype.commit=function(e,t,n){var r=this,o=eo(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},Mo.prototype.dispatch=function(e,t){var n=this,r=eo(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},Mo.prototype.subscribe=function(e,t){return qr(e,this._subscribers,t)},Mo.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return qr(n,this._actionSubscribers,t)},Mo.prototype.watch=function(e,t,n){var r=this;return(0,i.watch)((function(){return e(r.state,r.getters)}),t,Object.assign({},n))},Mo.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Mo.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),Wr(this,this.state,e,this._modules.get(e),n.preserveState),Qr(this,this.state)},Mo.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=$r(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),Ur(this)},Mo.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},Mo.prototype.hotUpdate=function(e){this._modules.update(e),Ur(this,!0)},Mo.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Mo.prototype,wo);var Co=xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=Io(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),Bo=(xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=Io(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||Io(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0})),n})),xo((function(e,t){var n={};return Po(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=Io(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})));function Po(e){return Eo(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Eo(e){return Array.isArray(e)||_r(e)}function xo(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Io(e,t,n){var r=e._modulesNamespaceMap[n];return r}var Go={name:"Question_Programming",props:{isEnterCodeByInit:{type:Boolean,default:!1},urlQuery:{type:String,default:""},isSub:{type:Boolean,default:!1},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"},showScore:{type:Boolean,default:!1}},mounted:function(){var e=this;X(this),this.$watch("oss_temp_url",(function(t){if(t){var n=e.isAnswered();e.$emit("getIsAnswered",n),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:n})}}),{immediate:!0})},created:function(){this.isEnterCodeByInit&&(this.oss_temp_url?this.startCode("2"):this.startCode("1"))},data:function(){return Q({iframe:null,showFrame:!1,analyCorrectAnswer:"",iframeUrl:"",code_file_oss_temp_path:"",oss_temp_url:"",scratch_answer_json:"",loading:!1,enterCode:!1,codeTypeMap:{1:"Scratch",2:"Python",3:"PyGame",4:"C++"},codeTypeImgMap:{1:r(3031),2:r(3843),3:r(6543),4:r(2657)},answerMap:{}},JSON.parse(W))},watch:{questionInfo:{handler:function(e,t){if(e){this.answerMap=e.answerMap;var n=e.answerMap;n&&(this.code_file_oss_temp_path=n.code_file_oss_temp_path,this.oss_temp_url=n.oss_temp_url)}},immediate:!0}},computed:Q({},Co("zykjcommonQuestions",["pythonCodeWebPath","scratchCodeWebPath","cplusCodeWebPath"])),methods:Q(Q({},Bo("zykjcommonQuestions",["getEditorUrlActions"])),{},{getAnswer:function(){return{code_file_oss_temp_path:this.code_file_oss_temp_path,oss_temp_url:this.oss_temp_url,scratch_answer_json:this.scratch_answer_json}},isAnswered:function(){var e=""!==this.oss_temp_url;return e},isCorrect:function(){var e="1"===this.questionInfo.answerMap.is_correct;return e},getCodeWebPath:function(e){var t=this;this.pythonCodeWebPath||this.scratchCodeWebPath||this.cplusCodeWebPath?e&&e():(this.loading=!0,this.getEditorUrlActions().then((function(){t.loading=!1,e&&e()}),(function(){t.loading=!1})))},startCode:function(e){var t=this;this.loading||(this.getCodeWebPath((function(){var n={1:t.questionInfo.template_file_full_url,2:t.oss_temp_url,3:t.oss_temp_url,4:t.questionInfo.reference_file_full_url},r="",o=t.questionInfo.code_type,i=n[e],a=t.urlQuery+"&codeUrl=".concat(i);switch(o){case 1:r="".concat(t.scratchCodeWebPath,"/?").concat(a);break;case 2:r="".concat(t.pythonCodeWebPath,"/?").concat(a);break;case 3:r="".concat(t.pythonCodeWebPath,"/?").concat(a,"&pygame=true");break;case 4:r="".concat(t.cplusCodeWebPath,"/?").concat(a);break}t.iframeUrl=r})),this.showFrame=!0)},getQuestionInfo:function(){var e=this,t={type:"getQuestionInfo",data:e.questionInfo.htmlContent};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(t),"*")},submitCodeQuestionByTimeover:function(){var e={type:"submitCodeQuestionByTimeover"};this.iframe&&this.iframe.contentWindow.postMessage(JSON.stringify(e),"*")},iframeLoaded:function(e){this.iframe=e,this.enterCode=!0,this.bus.$emit&&this.bus.$emit("enterCode",!0)},closeIframe:function(){this.enterCode=!1,this.bus.$emit&&this.bus.$emit("enterCode",!1),this.showFrame=!1},closeAndSave:function(e){this.saveCodeOnly(e),this.isEnterCodeByInit||this.closeIframe(),this.$emit("closeAndSave",e)},saveCodeOnly:function(e){var t=this;this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit&&this.bus.$emit("submitQuestion",{saveType:1,submitRequestAutoQuit:!1,needSubmitRequest:!1});var n=this.isAnswered();"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:t.questionInfo.questionIndex-1,answered:n}),this.$emit("saveCodeOnly",e)},uploadCodingFileSuccess:function(e){this.code_file_oss_temp_path=e.codeFileOssTempPath,this.oss_temp_url=e.ossTempUrl,this.scratch_answer_json=e.scratch_answer_json,this.bus.$emit&&this.bus.$emit("uploadCodingFileSuccess")}}),components:{IframeComponent:Br,MediaLooker:Je,Loading:Mr}};const ko=(0,Ke.Z)(Go,[["render",hr]]);var Do=ko,Ho={class:"zykjcommon-question",style:{width:"100%",height:"100%"}},Oo={class:"box"},No={class:"main-block"},Lo=["src"],Vo=(0,i.createElementVNode)("div",{class:"main-content"},[(0,i.createElementVNode)("div",{class:"main-append"})],-1),Ro=(0,i.createElementVNode)("div",{class:"prev"},[(0,i.createElementVNode)("div",{class:"prev-main"})],-1),_o=(0,i.createElementVNode)("div",{class:"next"},[(0,i.createElementVNode)("div",{class:"next-main"})],-1),jo={class:"list"},Fo=["idx"];function qo(e,t,n,r,o,a){return(0,i.openBlock)(),(0,i.createElementBlock)("div",Ho,[(0,i.createElementVNode)("div",{class:"question-classify",style:(0,i.normalizeStyle)(o.bigBgCss)},[(0,i.createElementVNode)("div",Oo,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.bigBoxItemList,(function(e,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"box-item",style:(0,i.normalizeStyle)(e.bgUrlCss),key:t},[(0,i.createElementVNode)("div",No,[(0,i.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,Lo)]),Vo],4)})),128))]),(0,i.createElementVNode)("div",{class:"list-outter",style:(0,i.normalizeStyle)(o.bottomBgCss)},[Ro,_o,(0,i.createElementVNode)("div",jo,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.optionList,(function(e,t){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"list-item",idx:e.idx,style:(0,i.normalizeStyle)(e.bgUrlCss),key:t},[(0,i.withDirectives)((0,i.createElementVNode)("div",{class:"list-item-text"},(0,i.toDisplayString)(e.content),513),[[i.vShow,2!=e.content_type]])],12,Fo)})),128))])],4)],4)])}r(2707),r(4553),r(561);var Uo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1440,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=100,i=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight;a-=t;var s=4.3/3,c=s/(i/a),u=parseInt(i*c);r.style.fontSize=u/e*o*n+"px"},Qo=Xe.getDeviceEnv(),Wo={name:"Question_Classify",props:{questionInfo:{type:Object,default:{}},bus:{type:Object,default:function(){return{}}},mode:{type:String,default:"exam"},screenRepairH:{type:Number,default:0},screenScale:{type:Number,default:1}},created:function(){},unmounted:function(){this.unmountedDo()},destroyed:function(){this.unmountedDo()},mounted:function(){var e=this;this.setRootFontSize(),window.addEventListener("resize",this.setRootFontSize),this.init(),this.$watch("optionList",(function(t){t&&t.length&&e.$nextTick((function(){e.dothings()}))}),{immediate:!0,deep:!0})},data:function(){return{animationing:!1,analyCorrectAnswer:"",classify_question_info:{},answerMap:{},optionList:[],bigBoxItemList:[],bigBgCss:"",bottomBgCss:"",listItemBgCss:"",env:Qo,p1:{},p2:{},listItem:null,moveDiv:null,timer:null,mousedown:"mobile"===Qo?"touchstart":"mousedown",mousemove:"mobile"===Qo?"touchmove":"mousemove",mouseup:"mobile"===Qo?"touchend":"mouseup",dragWay:"",flag:!1,scrollDistance:3e3,lazyDragTimer:null,dragingStart:!1}},watch:{questionInfo:{handler:function(e,t){e&&(console.log(e,33),this.parseLists(e),this.answerMap=e.answerMap,e.answerMap&&this.mode)},immediate:!0}},computed:{},methods:{getAnswer:function(){var e=[];return $(this.$el).find(".box-item").each((function(t,n){var r=$(this),o=[];r.find(".append-item").each((function(e,t){o.push(Number($(t).attr("idx")))})),o=o.sort((function(e,t){return e-t})),console.log(o,345),e.push({big_type_index:t+1,small_type_index_list:o})})),{classify_mapping_list:e}},isAnswered:function(){var e=$(this.$el).find(".list .list-item").length,t=0===e;return t},isCorrect:function(){var e="1"===this.questionInfo.answerMap.is_correct;return e},parseLists:function(e){this.classify_question_info=e.classify_question_info;var t=e.exam_options_data;if(this.classify_question_info){this.classify_question_info.background_file&&(this.bigBgCss="background-image: url(".concat(this.classify_question_info.background_file.file_url,");")),this.classify_question_info.bottom_img_file&&(this.bottomBgCss="background-image: url(".concat(this.classify_question_info.bottom_img_file.file_url,");"));var n=[];this.optionList=[],t.forEach((function(e){n.push({content_type:e.data.content_type,content:e.data.option_content,bgUrlCss:"background-image: url(".concat(e.data.file_url,");color:").concat(e.data.font_color),idx:e.index})})),this.optionList=n,this.listItemBgCss=n[0]?n[0].bgUrlCss:"";var r=[],o=this.classify_question_info.big_type_box_image_list,i=this.classify_question_info.big_type_option_list;o.forEach((function(e,t){r.push({imgUrl:i[t].file_url,bgUrl:e.file_url,bgUrlCss:"background-image: url(".concat(e.file_url,");")})})),this.bigBoxItemList=r}},setRootFontSize:function(){Uo(1e3,this.screenRepairH,this.screenScale,this.$el)},unmountedDo:function(){window.removeEventListener("resize",this.setRootFontSize),document.removeEventListener("gesturestart",this.gesturestartListener),$(this.$el).find(".question-classify .append-item").off(this.mousedown),$(this.$el).find(".question-classify .list-item").off(this.mousedown),$(this.$el).find(".question-classify .next").off("click"),$(this.$el).find(".question-classify .prev").off("click"),$(document).off(this.mouseup),document.onselectstart=null},answeredNotify:function(){var e=this,t=e.isAnswered();e.$emit("getIsAnswered",t),"exam"===e.mode&&e.bus.$emit("questionCardChange",{questionIndex:e.questionInfo.questionIndex-1,answered:t})},gesturestartListener:function(e){e.preventDefault()},init:function(){"mobile"===Qo&&document.addEventListener("gesturestart",this.gesturestartListener)},getSpecArr:function(){var e=this,t=[],n=e.moveDiv.offset().left,r=n+e.moveDiv.width(),o=e.moveDiv.offset().top,i=o+e.moveDiv.height();return $(this.$el).find(".box-item").each((function(e,a){var s=$(a),c=s.offset().left,u=c+s.width(),l=s.offset().top,f=l+s.height();n>c&&r<u&&o>l&&i<f&&t.push({dom:s})})),t},bindDragDomEvent:function(e,t){var n=this;function r(e,r){if(!n.moveDiv){"mobile"===Qo&&n.startLazyDrag(),n.flag=!1,n.dragWay=t,console.log(e),e.stopPropagation(),e.preventDefault(),n.listItem=$(r),n.listItem.addClass("drag"),n.p1.moveX=n.listItem.offset().left,n.p1.moveY=n.listItem.offset().top-30;var o=n.listItem.attr("idx"),i="".concat(n.listItem.get(0).style.backgroundImage),a="".concat(n.listItem.get(0).style.color),s=n.listItem.find(".list-item-text").get(0).style.display;console.log(i,1234),n.moveDiv=$('<div class="question-classify-moveDiv" idx="'.concat(o,'"><div class="list-item-text" style="').concat(s?"display:"+s:"",'">').concat(n.listItem.find(".list-item-text").text(),"</div></div>")),n.moveDiv.css({left:"".concat(n.p1.moveX,"px"),top:"".concat(n.p1.moveY,"px"),backgroundImage:i,color:a}),$(n.$el).append(n.moveDiv),$(document).on(n.mousemove,(function(e){e.stopPropagation(),n.p2.moveX=e.clientX||e.originalEvent.touches&&e.originalEvent.touches[0].clientX,n.p2.moveY=e.clientY||e.originalEvent.touches&&e.originalEvent.touches[0].clientY;var t=n.p2.moveX-n.moveDiv.width()/2,r=n.p2.moveY-n.moveDiv.height()/2;n.moveDiv.css({left:t+"px",top:r+"px"})}))}}e.off(this.mousedown),e.on(this.mousedown,(function(e){var t=this;"mobile"===Qo?n.lazyDragTimer=setTimeout((function(){r(e,t)}),100):r(e,this)}))},appendMoveDiv:function(e){var t=this;t.listItem.remove();var n=t.moveDiv.attr("idx"),r="".concat(t.moveDiv.get(0).style.backgroundImage),o="".concat(t.moveDiv.get(0).style.color),i=t.moveDiv.find(".list-item-text").get(0).style.display,a=$('<div class="'.concat(e.appendItemClassName,'" idx="').concat(n,'"><div class="list-item-text" style="').concat(i?"display:"+i:"",'">').concat(t.moveDiv.find(".list-item-text").text(),"</div></div>"));a.css({opacity:0,backgroundImage:r,color:o}),e.targetList.append(a),e.targetList[e.scrollDirection](t.scrollDistance);var s=a.offset().left,c=a.offset().top;t.animationing=!0,t.moveDiv.css({transition:"all 0.5s",left:s,top:c}).on("transitionend",(function(){t.flag||(t.moveDiv.remove(),t.moveDiv.off("transitionend"),t.moveDiv=null,a.css({opacity:1}),t.answeredNotify(),t.bindDragDomEvent(a,e.op),t.animationing=!1),t.flag=!0}))},bindNextPrevEvent:function(e){var t=this;$(this.$el).find(".question-classify .".concat(e)).off("click"),$(this.$el).find(".question-classify .".concat(e)).on("click",(function(n){n.stopPropagation(),n.preventDefault();var r=$(t.$el).find(".question-classify .list-item"),o=$(t.$el).find(".question-classify .list"),i=r.outerWidth()*("next"===e?1:-1),a=o.scrollLeft();console.log(a),$(t.$el).find(".question-classify .list").stop(!0).animate({scrollLeft:a+i},500)}))},dothings:function(){var e=this;this.answerMap&&this.answerMap.classify_mapping_list&&this.answerMap.classify_mapping_list.length&&this.setAnswerDo(),e.bindDragDomEvent($(this.$el).find(".question-classify .list-item"),"go"),$(document).off(e.mouseup),$(document).on(e.mouseup,(function(t){if("mobile"===Qo&&e.stopLazyDrag(),!e.animationing)if("go"===e.dragWay){if($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv){var n=e.getSpecArr();if(0===n.length)e.moveDiv&&(e.moveDiv.remove(),e.moveDiv=null);else{var r=n[0].dom;e.appendMoveDiv({targetList:r.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"})}}}else if("back"===e.dragWay&&($(document).off(e.mousemove),e.listItem&&e.listItem.removeClass("drag"),e.moveDiv)){var o=e.getSpecArr();if(0===o.length)e.appendMoveDiv({targetList:$(e.$el).find(".question-classify .list"),appendItemClassName:"list-item",op:"go",scrollDirection:"scrollLeft"});else{var i=o[0].dom,a=e.listItem.parents(".question-classify .box-item");i.get(0)===a.get(0)?(console.log("自己"),e.moveDiv.remove(),e.moveDiv=null,e.listItem&&e.listItem.removeClass("drag")):(console.log("不是自己"),e.appendMoveDiv({targetList:i.find(".main-append"),appendItemClassName:"append-item",op:"back",scrollDirection:"scrollTop"}),console.log("不是自己"))}console.log(o.length)}})),document.onselectstart=function(){return!1},"mobile"===Qo&&($(".list").off("scroll"),$(".list").on("scroll",(function(){e.dragingStart||e.stopLazyDrag()})).addClass("noScrollBar"),$(".main-append").off("scroll"),$(".main-append").on("scroll",(function(t){e.dragingStart||e.stopLazyDrag()})).addClass("noScrollBar")),e.bindNextPrevEvent("next"),e.bindNextPrevEvent("prev")},startLazyDrag:function(){this.dragingStart=!0,$(".list").css({overflow:"hidden"}),$(".main-append").css({overflow:"hidden"})},stopLazyDrag:function(){this.dragingStart=!1,this.lazyDragTimer&&clearTimeout(this.lazyDragTimer),this.lazyDragTimer=null,$(".list").css({overflowX:"auto"}),$(".main-append").css({overflowY:"auto"})},setAnswerDo:function(){var e=this,t=this,n=[];$(this.$el).find(".question-classify .list-item").each((function(e,t){n.push(Number($(t).attr("idx")))})),$(this.$el).find(".main-append").empty(),this.answerMap.classify_mapping_list.forEach((function(r,o){r.small_type_index_list.forEach((function(r){var i=n.findIndex((function(e){return e==r}));if(i>-1){n.splice(i,1);var a=$(e.$el).find(".question-classify .list-item").eq(i),s="".concat(a.get(0).style.backgroundImage),c="".concat(a.get(0).style.color),u=a.find(".list-item-text").get(0).style.display,l=a.attr("idx"),f=$('<div class="append-item" idx="'.concat(l,'"><div class="list-item-text" style="').concat(u?"display:"+u:"",'">').concat(a.find(".list-item-text").text(),"</div></div>"));f.css({backgroundImage:s,color:c}),t.bindDragDomEvent(f,"back"),$(e.$el).find(".main-append").eq(o).append(f),a.remove()}}))})),this.answeredNotify()}},components:{}};const Xo=(0,Ke.Z)(Wo,[["render",qo]]);var zo=Xo,Ko={1:"Question_SingleChoice",2:"Question_MultipleChoice",3:"Question_SingleChoice",7:"Question_BriefAnswer",16:"Question_Programming",11:"Question_Reading",4:"Question_FillBlank",17:"Question_Classify"},Yo=(r(8674),r(1354)),Jo=r(9669),Zo=r.n(Jo),$o=r(7631),ei=r.n($o),ti="piw38kulfozrea7ydmjnvbc965q1gt2x",ni=function(e,t,n,r){void 0!=n&&"undefined"!==typeof n["password"]&&(n["password"]=ei().hex_md5(ei().hex_md5(n["password"]+"FE605C9343A3A47764598FDC184EC66F").toUpperCase()+"FE605C9343A3A47764598FDC184EC66F").toUpperCase());var o=e+"\n/student-web"+t+"\n"+r+"\n"+(n?JSON.stringify(n):""),i=Yo.enc.Base64.stringify((0,Yo.HmacSHA256)(o,ti)),a=function(e){var t=e.replace(/\+/g,"-");t=t.replace(/\//g,"_");var n=t.length%4,r="====";return t+=r.substring(0,n),t};return a(i)};Zo().defaults.baseURL="https://jsl-api.thedeer.cn/student-web/",Zo().defaults.timeout=6e4,Zo().defaults.withCredentials=!0;var ri=function(e,t){if(t&&-1!=t["Content-Type"].indexOf("multipart/form-data")){var n=new FormData;for(var r in e)n.append(r,e[r]);return n}return JSON.stringify(e)},oi=function(e){e=JSON.parse(e),e.hasOwnProperty("errorCode")&&(e.error_code=e.errorCode);var t=e,n=t.error_code,r=t.message;if(n){var o=[39002,39003];if(o.indexOf(n)<=-1){var i=r||"系统异常";Xe.messageTip("warning",i)}}return e};function ii(e,t,n,r,o){var i=void 0,a=void 0;e=e.toUpperCase(),t+=0===n.indexOf("/")?n.substr(1):n;var s=window.isMock;"undefined"!==typeof o&&"undefined"!==typeof o.isMock&&(s=o.isMock,delete o.isMock),s&&o&&o.onUploadProgress&&delete o.onUploadProgress;var c=n;"/"!==n[0]&&(c="/"+n);var u=(new Date).getTime(),l={ts:u,sign:ni(e,c,r,u),token:Xe.getToken()};switch(e){case"Get":a=r||{};break;default:case"POST":i=r||{},l["Content-Type"]=o&&o.contentType?o.contentType:"application/json";break}return t instanceof Array?Zo().all([]).then(Zo().spread((function(){}))):Zo()(Object.assign({headers:l,method:e,url:t,data:i,params:a,transformRequest:ri,transformResponse:oi},o)).then((function(e){return e.data})).catch((function(e){return console.log("服务端请求/响应错误:",e,e.config),Promise.reject(e)}))}var ai=function(e,t,n){return ii("GET","",e,t,n)},si={editorUrl:"/open/editor-url"},ci={pythonCodeWebPath:"",scratchCodeWebPath:"",cplusCodeWebPath:""},ui={namespaced:!0,state:ci,getters:{},mutations:{setCodeWebPath:function(e,t){e.pythonCodeWebPath=t.pythonCodeWebPath,e.scratchCodeWebPath=t.scratchCodeWebPath,e.cplusCodeWebPath=t.cplusCodeWebPath}},actions:{getEditorUrlActions:function(e){var t=e.commit;e.dispatch;return new Promise((function(e,n){ai("".concat(si.editorUrl)).then((function(n){var r=n.error_code,o=n.data;if(!r){var i=o.pythonCodeWebPath,a=o.scratchCodeWebPath,s=o.cplusCodeWebPath;t("setCodeWebPath",{pythonCodeWebPath:i,scratchCodeWebPath:a,cplusCodeWebPath:s})}e(n)}),(function(e){n(e)}))}))}}},li=function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;function i(e,t){e.forEach((function(e){if("img"===e["<>"]&&e.hasOwnProperty("width")){var n=Number(e.width);n>t&&(e.width=Math.floor(t),e.height&&delete e.height)}e.html&&e.html.length&&i(e.html,t)}))}t.forEach((function(t,a){if(t.questionComponent=Ko[t.question_type],void 0===o?t.questionIndex=a+1:(t.questionIndex=o+1+"-"+(a+1),t.questionIndex2=a+1),n&&n.hasOwnProperty(t.question_id)){if(t.answerMap=n[t.question_id],"analysis"===e){t.answerMap.user_coding_file&&(t.answerMap.oss_temp_url=t.answerMap.user_coding_file),t.score=t.answerMap.question_max_score;var s=Object.keys(t.answerMap),c=/^user_/gi;s.forEach((function(e){if(c.test(e)){var n=e.replace(c,"");t.answerMap[n]=t.answerMap[e]}}))}}else t.answerMap=null;var u=t.question_type;3==u?t.exam_options_data=[{index:1,data:{name:"正确"}},{index:2,data:{name:"错误"}}]:t.exam_options_data&&t.exam_options_data.length&&t.exam_options_data.forEach((function(e,t){e.enIndex=Xe.indexToEnIndex(t+1)}));try{var l=JSON.parse(t.content),f=jQuery(".question-list").width()-30;i(l,f),t.htmlContent=$.json2html({},l)}catch(d){t.htmlContent=t.content}try{t.analysis?t.analysisHtmlContent=$.json2html({},JSON.parse(t.analysis)):t.analysisHtmlContent=""}catch(d){t.analysisHtmlContent=t.analysis}t.sub_questions&&t.sub_questions.length&&r.parseQuestionListItem(e,t.sub_questions,n,a)}))};function fi(e){return e.registerModule("zykjcommonQuestions",ui),{install:function(e){Xe.getVueVersion();e.mixin({methods:{parseQuestionListItem:li}}),e.component("Question_SingleChoice",et),e.component("Question_MultipleChoice",Nt),e.component("Question_Reading",Jt),e.component("Question_BriefAnswer",xn),e.component("Question_FillBlank",jn),e.component("Question_Programming",Do),e.component("Question_Classify",zo)},parseQuestionListItem:li,questionMapper:Ko,Question_SingleChoice:et,Question_MultipleChoice:Nt,Question_Reading:Jt,Question_BriefAnswer:xn,Question_FillBlank:jn,Question_Programming:Do,Question_Classify:zo}}var di=fi}(),o}()}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykjcommon/questions",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "main": "src/components/questions/entry.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -41,6 +41,8 @@ $greenItemFontSize:0.13em;
41
41
  color:#fff;
42
42
  background: #FFBC00;
43
43
  font-size: 12px;
44
+ border:none;
45
+ outline: none;
44
46
  }
45
47
  .question-option-list{
46
48
  margin-top: 30px;
@@ -391,19 +393,21 @@ $greenItemFontSize:0.13em;
391
393
  padding: 0 0.28em 0.15em 0.35em;
392
394
  flex: 1;
393
395
  .main-append{
394
- height: 2.74em;
396
+ height: 2.8em;
395
397
  overflow: auto;
396
- display: flex;
398
+ //display: flex;
397
399
  flex-wrap: wrap;
398
- justify-content: space-between;
400
+ //justify-content: space-between;
399
401
  align-content: start;
400
402
  &.noScrollBar::-webkit-scrollbar {
401
- width: 0;
402
- height: 0;
403
+ width: 7px;
404
+ height: 7px;
403
405
  }
404
406
  }
405
407
  }
406
408
  .append-item{
409
+ margin-left: 0.2em;
410
+ float: left;
407
411
  /*background: url("../../img/classify-green-item.png") no-repeat center;*/
408
412
  background-repeat: no-repeat;
409
413
  background-position: center;
@@ -434,12 +438,12 @@ $greenItemFontSize:0.13em;
434
438
  display: -webkit-box;
435
439
  -webkit-box-orient: vertical;
436
440
  }
437
- &:nth-child(2n+1){
441
+ /*&:nth-child(2n+1){
438
442
  margin-left: 0.2em;
439
443
  }
440
444
  &:nth-child(2n){
441
445
  margin-right: 0.2em;
442
- }
446
+ }*/
443
447
  }
444
448
  .list-outter{
445
449
  padding: 0 0.33em;
@@ -466,10 +466,10 @@ export default {
466
466
  this.lazyDragTimer && clearTimeout(this.lazyDragTimer)
467
467
  this.lazyDragTimer = null
468
468
  $('.list').css({
469
- overflow:'auto'
469
+ overflowX:'auto'
470
470
  })
471
471
  $('.main-append').css({
472
- overflow:'auto'
472
+ overflowY:'auto'
473
473
  })
474
474
  },
475
475
  //回显答案