@zykjcommon/questions 0.0.3 → 0.0.4
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.
|
@@ -1842,7 +1842,7 @@ if (typeof window !== 'undefined') {
|
|
|
1842
1842
|
|
|
1843
1843
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1844
1844
|
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
1845
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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_SingleChoice.vue?vue&type=template&id=
|
|
1845
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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_SingleChoice.vue?vue&type=template&id=3f4368c6
|
|
1846
1846
|
|
|
1847
1847
|
const _hoisted_1 = {
|
|
1848
1848
|
class: "zykjcommon-question"
|
|
@@ -1967,7 +1967,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1967
1967
|
mediaLookerList: _ctx.mediaLookerList
|
|
1968
1968
|
}, null, 8, ["visible", "mediaCount", "mediaLookerList"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
1969
1969
|
}
|
|
1970
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_SingleChoice.vue?vue&type=template&id=
|
|
1970
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_SingleChoice.vue?vue&type=template&id=3f4368c6
|
|
1971
1971
|
|
|
1972
1972
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
1973
1973
|
var es_array_push = __webpack_require__(7658);
|
|
@@ -3113,8 +3113,9 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(MediaLookervue_
|
|
|
3113
3113
|
this.$watch('radio', nv => {
|
|
3114
3114
|
let self = this;
|
|
3115
3115
|
let isSub = this.isSub;
|
|
3116
|
+
let answered = this.isAnswered();
|
|
3117
|
+
this.$emit('getIsAnswered', answered);
|
|
3116
3118
|
if (!isSub) {
|
|
3117
|
-
let answered = this.isAnswered();
|
|
3118
3119
|
this.mode === 'exam' && this.bus.$emit('questionCardChange', {
|
|
3119
3120
|
questionIndex: this.questionInfo.questionIndex - 1,
|
|
3120
3121
|
answered
|
|
@@ -1860,7 +1860,7 @@ if (typeof window !== 'undefined') {
|
|
|
1860
1860
|
|
|
1861
1861
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1862
1862
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
1863
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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_SingleChoice.vue?vue&type=template&id=
|
|
1863
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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_SingleChoice.vue?vue&type=template&id=3f4368c6
|
|
1864
1864
|
|
|
1865
1865
|
const _hoisted_1 = {
|
|
1866
1866
|
class: "zykjcommon-question"
|
|
@@ -1985,7 +1985,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1985
1985
|
mediaLookerList: _ctx.mediaLookerList
|
|
1986
1986
|
}, null, 8, ["visible", "mediaCount", "mediaLookerList"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
1987
1987
|
}
|
|
1988
|
-
;// CONCATENATED MODULE: ./src/components/questions/Question_SingleChoice.vue?vue&type=template&id=
|
|
1988
|
+
;// CONCATENATED MODULE: ./src/components/questions/Question_SingleChoice.vue?vue&type=template&id=3f4368c6
|
|
1989
1989
|
|
|
1990
1990
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
1991
1991
|
var es_array_push = __webpack_require__(7658);
|
|
@@ -3131,8 +3131,9 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(MediaLookervue_
|
|
|
3131
3131
|
this.$watch('radio', nv => {
|
|
3132
3132
|
let self = this;
|
|
3133
3133
|
let isSub = this.isSub;
|
|
3134
|
+
let answered = this.isAnswered();
|
|
3135
|
+
this.$emit('getIsAnswered', answered);
|
|
3134
3136
|
if (!isSub) {
|
|
3135
|
-
let answered = this.isAnswered();
|
|
3136
3137
|
this.mode === 'exam' && this.bus.$emit('questionCardChange', {
|
|
3137
3138
|
questionIndex: this.questionInfo.questionIndex - 1,
|
|
3138
3139
|
answered
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["zykjcommon-questions"]=t(require("vue")):e["zykjcommon-questions"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={9662:function(e,t,n){var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},9670:function(e,t,n){var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u),l=o(a,c);if(e&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(1694),o=n(614),i=n(4326),a=n(5112),s=a("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=u(e),s))?n:c?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=o(t),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7045:function(e,t,n){var r=n(6339),o=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},8052:function(e,t,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:function(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},8113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,f,d,p,m,h=e.target,g=e.global,v=e.stat;if(l=g?r:v?r[h]||s(h,{}):(r[h]||{}).prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(m=o(l,f),d=m&&m.value):d=l[f],n=c(g?f:h+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var r,o,i,a=n(4811),s=n(7854),u=n(111),c=n(8880),l=n(2597),f=n(5465),d=n(6200),p=n(3501),m="Object already initialized",h=s.TypeError,g=s.WeakMap,v=function(e){return i(e)?o(e):r(e,{})},y=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw h("Incompatible receiver, "+e+" required");return n}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw h(m);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=d("state");p[w]=!0,r=function(e,t){if(l(e,w))throw h(m);return t.facade=e,c(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:r,get:o,has:i,enforce:v,getterFor:y}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e,t,n){var r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==l||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),o=n(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(1702),o=n(7293),i=n(614),a=n(2597),s=n(9781),u=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,d=l.get,p=String,m=Object.defineProperty,h=r("".slice),g=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==m((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===h(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?m(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=f(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:function(e,t,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(n){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);while(t.length>c)o(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:function(e,t,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},4488:function(e,t,n){var r=n(8554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),o=n(7293),i=n(7854),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},4811:function(e,t,n){var r=n(7854),o=n(614),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(6293),u=n(3307),c=r.Symbol,l=o("wks"),f=u?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(c,e)?c[e]:f("Symbol."+e)),l[e]}},7658:function(e,t,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),a=n(3658),s=n(7207),u=n(7293),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},6229:function(e,t,n){"use strict";var r=n(8052),o=n(1702),i=n(1340),a=n(8053),s=URLSearchParams,u=s.prototype,c=o(u.append),l=o(u["delete"]),f=o(u.forEach),d=o([].push),p=new s("a=1&a=2");p["delete"]("a",1),p+""!=="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);var o,s=i(e),u=i(n),p=0,m=0,h=!1,g=r.length;while(p<g)o=r[p++],h||o.key===s?(h=!0,l(this,o.key)):m++;while(m<g)o=r[m++],o.key===s&&o.value===u||c(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7330:function(e,t,n){"use strict";var r=n(8052),o=n(1702),i=n(1340),a=n(8053),s=URLSearchParams,u=s.prototype,c=o(u.getAll),l=o(u.has),f=new s("a=1");f.has("a",2)&&r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);a(t,1);var o=i(n),s=0;while(s<r.length)if(r[s++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},2062:function(e,t,n){"use strict";var r=n(9781),o=n(1702),i=n(7045),a=URLSearchParams.prototype,s=o(a.forEach);r&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},7203:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{default:function(){return Te}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(7203);const i={class:"zykjcommon-question"},a={key:0,class:"question-type"},s={key:0},u={key:1,class:"score fr"},c={class:"question-box"},l=["innerHTML"],f={class:"question-option"},d=["disabled","id","value"],p=(0,n.createElementVNode)("div",{class:"radio-bg"},null,-1),m={class:"label-box"},h=["for"],g=["for"],v={key:0},y={key:0,class:"img-box"},b=["src"],w={key:1,class:"question-analysis"},x=(0,n.createElementVNode)("div",{class:"triangle-top"},null,-1),A={class:"question-analysis-item"},C=(0,n.createElementVNode)("span",{class:"txt"},"【你的回答】:",-1),O={class:"txt-box"},S={class:"question-analysis-item"},j=(0,n.createElementVNode)("span",{class:"txt"},"【正确答案】:",-1),k={class:"txt-box"},V={key:0,class:"question-analysis-item"},E=(0,n.createElementVNode)("span",{class:"txt"},"【本题解析】:",-1),M={class:"txt-box"},N=["innerHTML"];function q(e,t,r,o,q,I){const T=(0,n.resolveComponent)("MediaLooker");return(0,n.openBlock)(),(0,n.createElementBlock)("div",i,[r.isSub?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createTextVNode)((0,n.toDisplayString)(r.questionInfo.questionIndex)+"、"+(0,n.toDisplayString)(r.questionInfo.hint?r.questionInfo.hint:r.questionInfo.question_type_str),1),"null"!==r.questionInfo.score?((0,n.openBlock)(),(0,n.createElementBlock)("span",s)):(0,n.createCommentVNode)("",!0),"analysis"===r.mode?((0,n.openBlock)(),(0,n.createElementBlock)("span",u,"得分:"+(0,n.toDisplayString)(r.questionInfo.answerMap?r.questionInfo.answerMap.user_score:"-")+"分",1)):(0,n.createCommentVNode)("",!0)])),(0,n.createElementVNode)("div",c,[r.questionInfo.htmlContent?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"editor-content",innerHTML:r.questionInfo.htmlContent},null,8,l)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"question-option-list",style:(0,n.normalizeStyle)(r.questionInfo.htmlContent||r.questionInfo.hint?{}:{"margin-top":0})},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(q.exam_options_data,((e,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["radio-box",{checked:q.radio==e.index}])},[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",disabled:"analysis"===r.mode||"review"===r.mode,class:"radio","onUpdate:modelValue":t[0]||(t[0]=e=>q.radio=e),name:"judge",id:"radio-"+r.questionInfo.questionIndex+"-"+o,value:e.index},null,8,d),[[n.vModelRadio,q.radio]]),p],2),(0,n.createElementVNode)("div",m,[3==r.questionInfo.question_type?((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:0,for:"radio-"+r.questionInfo.questionIndex+"-"+o},(0,n.toDisplayString)(e.data.name),9,h)):(0,n.createCommentVNode)("",!0),1==r.questionInfo.question_type?((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:1,for:"radio-"+r.questionInfo.questionIndex+"-"+o},[(0,n.createElementVNode)("span",null,[(0,n.createTextVNode)((0,n.toDisplayString)(e.enIndex)+".",1),0==e.data.file_type?((0,n.openBlock)(),(0,n.createElementBlock)("span",v,(0,n.toDisplayString)(e.data.option_content),1)):(0,n.createCommentVNode)("",!0)]),0!=e.data.file_type?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,[(0,n.createElementVNode)("img",{src:e.data.file_url},null,8,b)])):(0,n.createCommentVNode)("",!0)],8,g)):(0,n.createCommentVNode)("",!0)])])))),256))],4),"analysis"===r.mode?((0,n.openBlock)(),(0,n.createElementBlock)("div",w,[x,(0,n.createElementVNode)("div",A,[C,(0,n.createElementVNode)("div",O,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)({wrong:"1"!==r.questionInfo.answerMap.is_correct,right:"1"===r.questionInfo.answerMap.is_correct})},(0,n.toDisplayString)("1"!==r.questionInfo.answerMap.is_correct?"错误":"正确"),3)])]),(0,n.createElementVNode)("div",S,[j,(0,n.createElementVNode)("div",k,[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(q.analyCorrectAnswer),1)])]),r.questionInfo.analysis?((0,n.openBlock)(),(0,n.createElementBlock)("div",V,[E,(0,n.createElementVNode)("div",M,[(0,n.createElementVNode)("span",{class:"analysis-txt",innerHTML:r.questionInfo.analysisHtmlContent},null,8,N)])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)]),e.visible?((0,n.openBlock)(),(0,n.createBlock)(T,{key:1,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=t=>e.visible=t),mediaCount:e.curMediaCount,mediaLookerList:e.mediaLookerList},null,8,["visible","mediaCount","mediaLookerList"])):(0,n.createCommentVNode)("",!0)])}r(7658);let I=JSON.stringify({mediaLookerList:[],mediaCount:0,curMediaCount:0,visible:!1});function T(e){let t={img(t){let r=t.getAttribute("src");t.setAttribute("media-index",e.mediaCount+""),e.mediaCount++,e.mediaLookerList.push({url:r,mediaType:1}),t.addEventListener("click",(t=>{let r=t.target,o=Number(r.getAttribute("media-index"));e.curMediaCount=o,n()}))}};function n(){e.visible=!0}function r(){let n=e.$el.querySelector(".question-box");function r(e){let n=e.childNodes;n.forEach((function(e){if(1===e.nodeType){let n=e.nodeName.toLowerCase();"img"===n?t[n](e):e.className.indexOf("question-analysis")<0&&e.childNodes&&e.childNodes.length&&r(e)}}))}e.$nextTick((()=>{r(n)}))}r()}var L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACcBAMAAAB4lt9+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAVUExURQAAAP////////////7+/v7+/v///3vp7x0AAAAGdFJOUwAPHoDe4XWzkRMAAAF7SURBVGje7ZmxkcJADEUX0wAlEPhyIhdA4AIuuAYA9V8CAdxhG6/GWr25Ifg/XX/xPDa70ncpkiRJkiRJkiT9ow7+8i5WbX/21/tTqNxwPXrL3XgJwZm5eL1ZBG8w8/C60ewSgnPxerMI3mDm4XWjWQBvb+bi9Y/1UwSujveA24y3e15ew3vC2fWwrd7f9UcPzs4bb9Y3+D8WdYThfEsczvM0wHmmFri6qwmubmuDq/ka4WrGVrh1ZzPcurUdbs2bgFszZ+De3Sm4d3sObulPwi0LZOHmFdJw8xJ5uGkNAG6KR8C98G4/ANwED4F74SFwS7ws3AIvCzfHy8PN8PJwUzwCrpSv33Lf5fPKwTfLPgr4RWFfY/hPxm4B8AbFbp/w5s4ePfDByB7bcFPBtjxwQ8a2i3Azy7ba8CDAjinwEMWOePAAyo7H8PDORgtw8MHGMnBoxEZadODGxoF0WAlHqXTQC8fQdEgOR/j0Bwb484ckSZIkSZIkSTndAZo6yxBSf1SNAAAAAElFTkSuQmCC";const P={key:0,class:"dialog imgLookerDialog"},D=(0,n.createElementVNode)("div",{class:"mask"},null,-1),B=(0,n.createElementVNode)("img",{src:L,alt:""},null,-1),F=[B],_=["src"];function U(e,t,r,o,i,a){return r.visible?((0,n.openBlock)(),(0,n.createElementBlock)("div",P,[D,(0,n.createElementVNode)("div",{class:"close",onClick:t[0]||(t[0]=(...e)=>a.cancel&&a.cancel(...e))},F),(0,n.createElementVNode)("div",{class:"prev",onClick:t[1]||(t[1]=(...e)=>a.prev&&a.prev(...e))}),(0,n.createElementVNode)("div",{class:"next",onClick:t[2]||(t[2]=(...e)=>a.next&&a.next(...e))}),1==i.curMediaObj.mediaType?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["imgLooker",{in:"in"===i.enlargeStatus,out:"out"===i.enlargeStatus}]),onClick:t[3]||(t[3]=(...e)=>a.enlarge&&a.enlarge(...e))},[(0,n.createElementVNode)("img",{src:i.curMediaObj.url,style:(0,n.normalizeStyle)({width:i.curMediaObj.width+"px",height:i.curMediaObj.height+"px"}),alt:""},null,12,_)],2)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)}r(6229),r(7330),r(2062);function z(e){let t={},n=Object.keys(e),r=n.length;for(let o=0;o<r;o++)t[n[o]]=e[n[o]];return t}function R(){let e="";for(let t=1;t<=32;t++){let t=Math.floor(16*Math.random()).toString(16);e+=t}return e}function H(e){let t=e.replace(/\+/g,"-");return t=t.replace(/\//g,"_"),t=t.replace(/\=/g,""),t}function W(e){let t=e.replace(/\-/g,"+");t=t.replace(/\_/g,"/");let n=t.length%4,r="====";return t+=r.substring(0,n),t}function G(e){var t=null;return void 0!=window.createObjectURL?t=window.createObjectURL(e):void 0!=window.URL?t=window.URL.createObjectURL(e):void 0!=window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}function J(e){let t=e.substring(e.lastIndexOf(".")+1,e.indexOf("?"));return t}function Z(e,t){let n=null;return e instanceof Date?n=e:(n=new Date(e),10===e.length&&(n=new Date(1e3*e)),13===e.length&&(n=new Date(+e))),n instanceof Date&&!isNaN(n.valueOf())?n.format(t||"yyyy-MM-dd hh:mm:ss"):""}function Q(e,t,n,r){var o,i,a=+new Date,s=0,u=0,c=null,l=this,f=function(){u=a,e.bind(l,...i)()};return function(){a=+new Date,l=this,i=arguments,o=a-(r?s:u)-t,clearTimeout(c),r?n?o>=0&&f():c=setTimeout(f,t):o>=0?f():n||(c=setTimeout(f,-o)),s=a}}function X(e,t,n=!1){return Q(e,t,n,!0)}function Y(e){let t;if("[object Object]"===Object.prototype.toString.call(e)){t={};for(let n in e)"object"==typeof e[n]?t[n]=Y(e[n]):t[n]=e[n]}else"[object Array]"===Object.prototype.toString.call(e)&&(t=[],e.forEach((e=>{"object"==typeof e?t.push(Y(e)):t.push(e)})));return t}function K(e){return String.fromCharCode(64+parseInt(e))}function ee(e,t){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(let n in e)return!!t.hasOwnProperty(n)&&!!Object.is(e[n],t[n])}function te(e,t){if(e.length!=t.length)return!1;let n=!0;return e.forEach(((e,r)=>{Object.is(e,t[r])||(n=!1)})),n}function ne(e){const t=Array.from(arguments);4===t.length&&(e=t[2]);try{e=JSON.parse(e),e=$.json2html({},e)}catch(n){warnZYKJ("json2html转化出错:",n)}return e}function re(e){const t=Array.from(arguments);4===t.length&&(e=t[2]);try{e=$.html2json($(e)),e=JSON.stringify(e)}catch(n){warnZYKJ("html2json转化出错:",n)}return e}function oe(e){let t=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/60/60),o=[];return r&&o.push(r+"时"),n&&o.push(n+"分"),t&&o.push(t+"秒"),o.join(" ")}function ie(e){return parseFloat(e).toString()}function ae(e,t,n){if(!e)return;let r=t.match(/(\w+)/gi),o=null;return o=e instanceof Array?e.slice(0):Object.assign({},e),r.forEach(((e,t)=>{"undefined"!==typeof o&&(o=o instanceof Array?o.slice(e-1,1):o[e])})),o||n}function se(e){if("undefined"===typeof e||null===e)return!0;let t=!1;return t="object"===typeof e?e instanceof Array?0===e.length:0===Object.keys(e).length:"string"===typeof e?0===e.trim().length:isNaN(+e),t}function ue(e){return!se(e)}function ce(e,t,n,r,o,i){var a=this;if(a.version=function(){return"1.9.2"},a.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:d,formattingFn:f,prefix:"",suffix:"",numerals:[]},i&&"object"===typeof i)for(var s in a.options)i.hasOwnProperty(s)&&null!==i[s]&&(a.options[s]=i[s]);""===a.options.separator?a.options.useGrouping=!1:a.options.separator=""+a.options.separator;for(var u=0,c=["webkit","moz","ms","o"],l=0;l<c.length&&!window.requestAnimationFrame;++l)window.requestAnimationFrame=window[c[l]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[l]+"CancelAnimationFrame"]||window[c[l]+"CancelRequestAnimationFrame"];function f(e){var t,n,r,o,i,s;if(e=e.toFixed(a.decimals),e+="",t=e.split("."),n=t[0],r=t.length>1?a.options.decimal+t[1]:"",a.options.useGrouping){for(o="",i=0,s=n.length;i<s;++i)0!==i&&i%3===0&&(o=a.options.separator+o),o=n[s-i-1]+o;n=o}return a.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]})),r=r.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]}))),a.options.prefix+n+r+a.options.suffix}function d(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t}function p(e){return"number"===typeof e&&!isNaN(e)}window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-u)),o=window.setTimeout((function(){e(n+r)}),r);return u=n+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),a.initialize=function(){return!!a.initialized||(a.error="",a.d="string"===typeof e?document.getElementById(e):e,a.d?(a.startVal=Number(t),a.endVal=Number(n),p(a.startVal)&&p(a.endVal)?(a.decimals=Math.max(0,r||0),a.dec=Math.pow(10,a.decimals),a.duration=1e3*Number(o)||2e3,a.countDown=a.startVal>a.endVal,a.frameVal=a.startVal,a.initialized=!0,!0):(a.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",!1)):(a.error="[CountUp] target is null or undefined",!1))},a.printValue=function(e){var t=a.options.formattingFn(e);"INPUT"===a.d.tagName?this.d.value=t:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=t:this.d.innerHTML=t},a.count=function(e){a.startTime||(a.startTime=e),a.timestamp=e;var t=e-a.startTime;a.remaining=a.duration-t,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(t,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(t,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(t/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(t/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),t<a.duration?a.rAF=requestAnimationFrame(a.count):a.callback&&a.callback()},a.start=function(e){a.initialize()&&(a.callback=e,a.rAF=requestAnimationFrame(a.count))},a.pauseResume=function(){a.paused?(a.paused=!1,delete a.startTime,a.duration=a.remaining,a.startVal=a.frameVal,requestAnimationFrame(a.count)):(a.paused=!0,cancelAnimationFrame(a.rAF))},a.reset=function(){a.paused=!1,delete a.startTime,a.initialized=!1,a.initialize()&&(cancelAnimationFrame(a.rAF),a.printValue(a.startVal))},a.update=function(e){a.initialize()&&(e=Number(e),p(e)?(a.error="",e!==a.frameVal&&(cancelAnimationFrame(a.rAF),a.paused=!1,delete a.startTime,a.startVal=a.frameVal,a.endVal=e,a.countDown=a.startVal>a.endVal,a.rAF=requestAnimationFrame(a.count))):a.error="[CountUp] update() - new endVal is not a number: "+e)},a.initialize()&&a.printValue(a.startVal)}function le(){let e="";return e=/(iPhone|iPad|iPhone OS|Phone|iPod|iOS|Mac|Android)/i.test(navigator.userAgent)?/Android/i.test(navigator.userAgent)?"mobile":/Safari/i.test(navigator.userAgent)?"pc":"mobile":"pc",e}function fe(e,t){window._czc&&_czc.push(["_trackEvent",e,t])}function de(e,t){for(var n=0;n<e.length;n++)if(e[n]==t)return n}function pe(e=1024,t=768){let n=document.body.clientWidth,r=document.body.clientHeight;return n<=e&&r<=t}function me(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))}function he(e,t){let n=e.lastIndexOf("?"),r=e.substring(n+1,e.length),o="",i=r.split("&");for(var a=0;a<i.length;a++){let e=i[a].split("="),t="a";o+=""+(0==a?"?":"&")+String.fromCharCode(t.charCodeAt()+a)+"="+e[1]}return o}function ge(e,t,n,r,o){let i,a,s=new Image,u=t,c=n,l=12*n,f=12*t;return s.src=e,o>l&&r<=f?(a=u*(r/o)+"rem",i=`${c}rem`):o<=l&&r>f?(a=`${rewBoxW}rem`,i=c*(r/o)+"rem"):o>l&&o>f?r>o?(a=`${rewBoxW}rem`,i=c*(r/o)+"rem"):(a=u*(r/o)+"rem",i=`${c}rem`):(a=r/12+"rem",i=o/12+"rem"),{width:a,height:i}}function ve(e){window.parent.postMessage(e,"*")}function ye(){window.contentDialogs.forEach((e=>{e.scope.closeContentDialog()}))}function be(e){let t=window.contentDialogs.find((t=>t.uid===e));t&&t.scope.closeContentDialog()}let we=function(){};function xe(e){for(var t=window.location.search.substring(1),n=t.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");if(o[0]==e)return o[1]}return!1}function Ae(e,t,n=3e3){let r=document.createElement("div");r.className="dialog";let o=`<div class="dialog">\n <div class="message-box ${e}">\n <i class="ico"></i>\n <p class="content">${t}</p>\n </div>\n </div>`,i=$(o);$("body").append(i),setTimeout((()=>{i.remove()}),n+500)}function Ce(e,t){var n="offset"+t[0].toUpperCase()+t.substring(1),r=e[n],o=e.offsetParent;while(null!=o)r+=o[n],o=o.offsetParent;return r}function Oe(e,t,n,r,o){}var Se={getToken:we,getQueryVariable:xe,debounce2:X,throttle:Q,sortDict:z,GUID:R,urlsafe_b64encode:H,urlsafe_b64decode:W,getObjectURL:G,getExtName:J,fmtDateTime:Z,fmtJSON2HTML:ne,fmtHTML2JSON:re,fmtSecond:oe,fmtFloatNumber:ie,copyDeepObject:Y,indexToEnIndex:K,diffObject:ee,diffArray:te,getDeepData:ae,isEmpty2:se,nonEmpty:ue,CountUp:ce,getEnvironment:le,recordCountFn:fe,findListIndex:de,getScreen:pe,whatBrowser:me,getUrlQueryVariable:he,setImgAuto:ge,postMessageByType:ve,closeAllContentDialog:ye,closeContentDialogByUid:be,messageTip:Ae,offset:Ce,fbError:Oe},je={props:{visible:{type:Boolean,default:!1},mediaLookerList:{type:Array,default(){return[]}},mediaCount:{type:Number,default:0}},mounted(){},data(){return{curMediaObj:{},curMediaCount:0,imgCompressWidth:0,imgCompressHeight:0,imgNativeWidth:0,imgNativeHeight:0,enlargeStatus:"in",canEnlarge:!1}},watch:{mediaLookerList:{handler(e,t){e&&e.length&&e&&e.length&&this.getCurMedia(this.mediaCount)},immediate:!0,deep:!0}},computed:{},methods:{cancel(){this.$emit("update:visible",!1)},getCurMedia(e){this.curMediaCount=e,this.curMediaObj=Se.copyDeepObject(this.mediaLookerList[e]);let t=new Image;t.src=this.curMediaObj.url;let n=document.documentElement||document.body,r=n.clientWidth,o=n.clientHeight;this.canEnlarge=!1,this.enlargeStatus="in",t.addEventListener("load",(()=>{let e=t.width,n=t.height;if(this.imgNativeWidth=e,this.imgNativeHeight=n,e>=r||n>=o){let t,i,a,s=e-r,u=n-o;s>u?(i=.9*r,t=i/e,a=n*t,this.curMediaObj.width=i,this.curMediaObj.height=a,this.imgCompressWidth=i,this.imgCompressHeight=a):(a=.9*o,t=a/n,i=e*t,this.curMediaObj.width=i,this.curMediaObj.height=a,this.imgCompressWidth=i,this.imgCompressHeight=a),this.canEnlarge=!0}else this.curMediaObj.width=e,this.curMediaObj.height=n,this.imgCompressWidth=e,this.imgCompressHeight=n}))},enlarge(){this.canEnlarge&&("in"===this.enlargeStatus?(this.curMediaObj.width=this.imgNativeWidth,this.curMediaObj.height=this.imgNativeHeight):(this.curMediaObj.width=this.imgCompressWidth,this.curMediaObj.height=this.imgCompressHeight),this.enlargeStatus="in"===this.enlargeStatus?"out":"in",window.console.log(this.imgNativeWidth,this.imgNativeHeight,this.imgCompressWidth,this.imgCompressHeight))},next(){this.curMediaCount===this.mediaLookerList.length-1?this.curMediaCount=0:this.curMediaCount++,this.getCurMedia(this.curMediaCount)},prev(){0===this.curMediaCount?this.curMediaCount=this.mediaLookerList.length-1:this.curMediaCount--,this.getCurMedia(this.curMediaCount)}}},ke=r(3744);const Ve=(0,ke.Z)(je,[["render",U]]);var Ee=Ve,Me={name:"Question_singleChoice",props:{isSub:{type:Boolean,default:!1},orderIndex:{type:Number,default:0},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"}},mounted(){T(this),this.$watch("radio",(e=>{let t=this,n=this.isSub;if(n)"exam"===this.mode&&this.bus.$emit("optionChange"),"exam"===this.mode&&this.emit("optionChange",{orderIndex:this.orderIndex,isAnswered:t.isAnswered()});else{let e=this.isAnswered();"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:this.questionInfo.questionIndex-1,answered:e})}}),{immediate:!0})},data(){return{radio:0,analyCorrectAnswer:"",exam_options_data:[],answerMap:{},...JSON.parse(I)}},watch:{questionInfo:{handler(e,t){if(e&&(this.exam_options_data=e.exam_options_data,this.answerMap=e.answerMap,e.answerMap)){let{question_type:t}=e;if("analysis"===this.mode&&(this.analyCorrectAnswer=3==t?"1"===e.correct_judge?"正确":"错误":Se.indexToEnIndex(e.correct_single_index)),3==t){let t=e.answerMap.judge;void 0!==t&&null!==t&&""!==t&&(this.radio=t?1:2)}else{let t=e.answerMap.single_index;void 0!==t&&null!==t&&""!==t&&(this.radio=t)}}},immediate:!0}},computed:{},methods:{getAnswer(){let e=this.questionInfo,t=e.question_type;if(3==t){let e=1==this.radio;return{judge:e}}return{single_index:this.radio}},isAnswered(){let e=0!==this.radio;return e},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e}},components:{MediaLooker:Ee}};const Ne=(0,ke.Z)(Me,[["render",q]]);var qe=Ne,Ie={install(e){e.component("Question_SingleChoice",qe)},Question_SingleChoice:qe},Te=Ie}(),o}()}));
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["zykjcommon-questions"]=t(require("vue")):e["zykjcommon-questions"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={9662:function(e,t,n){var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},9670:function(e,t,n){var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u),l=o(a,c);if(e&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(1694),o=n(614),i=n(4326),a=n(5112),s=a("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=u(e),s))?n:c?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=o(t),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7045:function(e,t,n){var r=n(6339),o=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},8052:function(e,t,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(l){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:function(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},8113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,f,d,p,m,h=e.target,g=e.global,v=e.stat;if(l=g?r:v?r[h]||s(h,{}):(r[h]||{}).prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(m=o(l,f),d=m&&m.value):d=l[f],n=c(g?f:h+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var r,o,i,a=n(4811),s=n(7854),u=n(111),c=n(8880),l=n(2597),f=n(5465),d=n(6200),p=n(3501),m="Object already initialized",h=s.TypeError,g=s.WeakMap,v=function(e){return i(e)?o(e):r(e,{})},y=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw h("Incompatible receiver, "+e+" required");return n}};if(a||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw h(m);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=d("state");p[w]=!0,r=function(e,t){if(l(e,w))throw h(m);return t.facade=e,c(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:r,get:o,has:i,enforce:v,getterFor:y}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e,t,n){var r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==l||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),o=n(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(1702),o=n(7293),i=n(614),a=n(2597),s=n(9781),u=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,d=l.get,p=String,m=Object.defineProperty,h=r("".slice),g=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==m((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===h(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?m(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=f(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:function(e,t,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(n){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);while(t.length>c)o(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:function(e,t,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},4488:function(e,t,n){var r=n(8554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),o=n(7293),i=n(7854),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},4811:function(e,t,n){var r=n(7854),o=n(614),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(6293),u=n(3307),c=r.Symbol,l=o("wks"),f=u?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(c,e)?c[e]:f("Symbol."+e)),l[e]}},7658:function(e,t,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),a=n(3658),s=n(7207),u=n(7293),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},6229:function(e,t,n){"use strict";var r=n(8052),o=n(1702),i=n(1340),a=n(8053),s=URLSearchParams,u=s.prototype,c=o(u.append),l=o(u["delete"]),f=o(u.forEach),d=o([].push),p=new s("a=1&a=2");p["delete"]("a",1),p+""!=="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);var o,s=i(e),u=i(n),p=0,m=0,h=!1,g=r.length;while(p<g)o=r[p++],h||o.key===s?(h=!0,l(this,o.key)):m++;while(m<g)o=r[m++],o.key===s&&o.value===u||c(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7330:function(e,t,n){"use strict";var r=n(8052),o=n(1702),i=n(1340),a=n(8053),s=URLSearchParams,u=s.prototype,c=o(u.getAll),l=o(u.has),f=new s("a=1");f.has("a",2)&&r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);a(t,1);var o=i(n),s=0;while(s<r.length)if(r[s++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},2062:function(e,t,n){"use strict";var r=n(9781),o=n(1702),i=n(7045),a=URLSearchParams.prototype,s=o(a.forEach);r&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},7203:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{default:function(){return Te}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(7203);const i={class:"zykjcommon-question"},a={key:0,class:"question-type"},s={key:0},u={key:1,class:"score fr"},c={class:"question-box"},l=["innerHTML"],f={class:"question-option"},d=["disabled","id","value"],p=(0,n.createElementVNode)("div",{class:"radio-bg"},null,-1),m={class:"label-box"},h=["for"],g=["for"],v={key:0},y={key:0,class:"img-box"},b=["src"],w={key:1,class:"question-analysis"},x=(0,n.createElementVNode)("div",{class:"triangle-top"},null,-1),A={class:"question-analysis-item"},C=(0,n.createElementVNode)("span",{class:"txt"},"【你的回答】:",-1),O={class:"txt-box"},S={class:"question-analysis-item"},j=(0,n.createElementVNode)("span",{class:"txt"},"【正确答案】:",-1),k={class:"txt-box"},V={key:0,class:"question-analysis-item"},E=(0,n.createElementVNode)("span",{class:"txt"},"【本题解析】:",-1),M={class:"txt-box"},N=["innerHTML"];function I(e,t,r,o,I,q){const T=(0,n.resolveComponent)("MediaLooker");return(0,n.openBlock)(),(0,n.createElementBlock)("div",i,[r.isSub?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createTextVNode)((0,n.toDisplayString)(r.questionInfo.questionIndex)+"、"+(0,n.toDisplayString)(r.questionInfo.hint?r.questionInfo.hint:r.questionInfo.question_type_str),1),"null"!==r.questionInfo.score?((0,n.openBlock)(),(0,n.createElementBlock)("span",s)):(0,n.createCommentVNode)("",!0),"analysis"===r.mode?((0,n.openBlock)(),(0,n.createElementBlock)("span",u,"得分:"+(0,n.toDisplayString)(r.questionInfo.answerMap?r.questionInfo.answerMap.user_score:"-")+"分",1)):(0,n.createCommentVNode)("",!0)])),(0,n.createElementVNode)("div",c,[r.questionInfo.htmlContent?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"editor-content",innerHTML:r.questionInfo.htmlContent},null,8,l)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"question-option-list",style:(0,n.normalizeStyle)(r.questionInfo.htmlContent||r.questionInfo.hint?{}:{"margin-top":0})},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(I.exam_options_data,((e,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["radio-box",{checked:I.radio==e.index}])},[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio",disabled:"analysis"===r.mode||"review"===r.mode,class:"radio","onUpdate:modelValue":t[0]||(t[0]=e=>I.radio=e),name:"judge",id:"radio-"+r.questionInfo.questionIndex+"-"+o,value:e.index},null,8,d),[[n.vModelRadio,I.radio]]),p],2),(0,n.createElementVNode)("div",m,[3==r.questionInfo.question_type?((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:0,for:"radio-"+r.questionInfo.questionIndex+"-"+o},(0,n.toDisplayString)(e.data.name),9,h)):(0,n.createCommentVNode)("",!0),1==r.questionInfo.question_type?((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:1,for:"radio-"+r.questionInfo.questionIndex+"-"+o},[(0,n.createElementVNode)("span",null,[(0,n.createTextVNode)((0,n.toDisplayString)(e.enIndex)+".",1),0==e.data.file_type?((0,n.openBlock)(),(0,n.createElementBlock)("span",v,(0,n.toDisplayString)(e.data.option_content),1)):(0,n.createCommentVNode)("",!0)]),0!=e.data.file_type?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,[(0,n.createElementVNode)("img",{src:e.data.file_url},null,8,b)])):(0,n.createCommentVNode)("",!0)],8,g)):(0,n.createCommentVNode)("",!0)])])))),256))],4),"analysis"===r.mode?((0,n.openBlock)(),(0,n.createElementBlock)("div",w,[x,(0,n.createElementVNode)("div",A,[C,(0,n.createElementVNode)("div",O,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)({wrong:"1"!==r.questionInfo.answerMap.is_correct,right:"1"===r.questionInfo.answerMap.is_correct})},(0,n.toDisplayString)("1"!==r.questionInfo.answerMap.is_correct?"错误":"正确"),3)])]),(0,n.createElementVNode)("div",S,[j,(0,n.createElementVNode)("div",k,[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(I.analyCorrectAnswer),1)])]),r.questionInfo.analysis?((0,n.openBlock)(),(0,n.createElementBlock)("div",V,[E,(0,n.createElementVNode)("div",M,[(0,n.createElementVNode)("span",{class:"analysis-txt",innerHTML:r.questionInfo.analysisHtmlContent},null,8,N)])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)]),e.visible?((0,n.openBlock)(),(0,n.createBlock)(T,{key:1,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=t=>e.visible=t),mediaCount:e.curMediaCount,mediaLookerList:e.mediaLookerList},null,8,["visible","mediaCount","mediaLookerList"])):(0,n.createCommentVNode)("",!0)])}r(7658);let q=JSON.stringify({mediaLookerList:[],mediaCount:0,curMediaCount:0,visible:!1});function T(e){let t={img(t){let r=t.getAttribute("src");t.setAttribute("media-index",e.mediaCount+""),e.mediaCount++,e.mediaLookerList.push({url:r,mediaType:1}),t.addEventListener("click",(t=>{let r=t.target,o=Number(r.getAttribute("media-index"));e.curMediaCount=o,n()}))}};function n(){e.visible=!0}function r(){let n=e.$el.querySelector(".question-box");function r(e){let n=e.childNodes;n.forEach((function(e){if(1===e.nodeType){let n=e.nodeName.toLowerCase();"img"===n?t[n](e):e.className.indexOf("question-analysis")<0&&e.childNodes&&e.childNodes.length&&r(e)}}))}e.$nextTick((()=>{r(n)}))}r()}var L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACcBAMAAAB4lt9+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAVUExURQAAAP////////////7+/v7+/v///3vp7x0AAAAGdFJOUwAPHoDe4XWzkRMAAAF7SURBVGje7ZmxkcJADEUX0wAlEPhyIhdA4AIuuAYA9V8CAdxhG6/GWr25Ifg/XX/xPDa70ncpkiRJkiRJkiT9ow7+8i5WbX/21/tTqNxwPXrL3XgJwZm5eL1ZBG8w8/C60ewSgnPxerMI3mDm4XWjWQBvb+bi9Y/1UwSujveA24y3e15ew3vC2fWwrd7f9UcPzs4bb9Y3+D8WdYThfEsczvM0wHmmFri6qwmubmuDq/ka4WrGVrh1ZzPcurUdbs2bgFszZ+De3Sm4d3sObulPwi0LZOHmFdJw8xJ5uGkNAG6KR8C98G4/ANwED4F74SFwS7ws3AIvCzfHy8PN8PJwUzwCrpSv33Lf5fPKwTfLPgr4RWFfY/hPxm4B8AbFbp/w5s4ePfDByB7bcFPBtjxwQ8a2i3Azy7ba8CDAjinwEMWOePAAyo7H8PDORgtw8MHGMnBoxEZadODGxoF0WAlHqXTQC8fQdEgOR/j0Bwb484ckSZIkSZIkSTndAZo6yxBSf1SNAAAAAElFTkSuQmCC";const P={key:0,class:"dialog imgLookerDialog"},D=(0,n.createElementVNode)("div",{class:"mask"},null,-1),B=(0,n.createElementVNode)("img",{src:L,alt:""},null,-1),F=[B],_=["src"];function U(e,t,r,o,i,a){return r.visible?((0,n.openBlock)(),(0,n.createElementBlock)("div",P,[D,(0,n.createElementVNode)("div",{class:"close",onClick:t[0]||(t[0]=(...e)=>a.cancel&&a.cancel(...e))},F),(0,n.createElementVNode)("div",{class:"prev",onClick:t[1]||(t[1]=(...e)=>a.prev&&a.prev(...e))}),(0,n.createElementVNode)("div",{class:"next",onClick:t[2]||(t[2]=(...e)=>a.next&&a.next(...e))}),1==i.curMediaObj.mediaType?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["imgLooker",{in:"in"===i.enlargeStatus,out:"out"===i.enlargeStatus}]),onClick:t[3]||(t[3]=(...e)=>a.enlarge&&a.enlarge(...e))},[(0,n.createElementVNode)("img",{src:i.curMediaObj.url,style:(0,n.normalizeStyle)({width:i.curMediaObj.width+"px",height:i.curMediaObj.height+"px"}),alt:""},null,12,_)],2)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)}r(6229),r(7330),r(2062);function z(e){let t={},n=Object.keys(e),r=n.length;for(let o=0;o<r;o++)t[n[o]]=e[n[o]];return t}function R(){let e="";for(let t=1;t<=32;t++){let t=Math.floor(16*Math.random()).toString(16);e+=t}return e}function H(e){let t=e.replace(/\+/g,"-");return t=t.replace(/\//g,"_"),t=t.replace(/\=/g,""),t}function W(e){let t=e.replace(/\-/g,"+");t=t.replace(/\_/g,"/");let n=t.length%4,r="====";return t+=r.substring(0,n),t}function G(e){var t=null;return void 0!=window.createObjectURL?t=window.createObjectURL(e):void 0!=window.URL?t=window.URL.createObjectURL(e):void 0!=window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}function J(e){let t=e.substring(e.lastIndexOf(".")+1,e.indexOf("?"));return t}function Z(e,t){let n=null;return e instanceof Date?n=e:(n=new Date(e),10===e.length&&(n=new Date(1e3*e)),13===e.length&&(n=new Date(+e))),n instanceof Date&&!isNaN(n.valueOf())?n.format(t||"yyyy-MM-dd hh:mm:ss"):""}function Q(e,t,n,r){var o,i,a=+new Date,s=0,u=0,c=null,l=this,f=function(){u=a,e.bind(l,...i)()};return function(){a=+new Date,l=this,i=arguments,o=a-(r?s:u)-t,clearTimeout(c),r?n?o>=0&&f():c=setTimeout(f,t):o>=0?f():n||(c=setTimeout(f,-o)),s=a}}function X(e,t,n=!1){return Q(e,t,n,!0)}function Y(e){let t;if("[object Object]"===Object.prototype.toString.call(e)){t={};for(let n in e)"object"==typeof e[n]?t[n]=Y(e[n]):t[n]=e[n]}else"[object Array]"===Object.prototype.toString.call(e)&&(t=[],e.forEach((e=>{"object"==typeof e?t.push(Y(e)):t.push(e)})));return t}function K(e){return String.fromCharCode(64+parseInt(e))}function ee(e,t){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(let n in e)return!!t.hasOwnProperty(n)&&!!Object.is(e[n],t[n])}function te(e,t){if(e.length!=t.length)return!1;let n=!0;return e.forEach(((e,r)=>{Object.is(e,t[r])||(n=!1)})),n}function ne(e){const t=Array.from(arguments);4===t.length&&(e=t[2]);try{e=JSON.parse(e),e=$.json2html({},e)}catch(n){warnZYKJ("json2html转化出错:",n)}return e}function re(e){const t=Array.from(arguments);4===t.length&&(e=t[2]);try{e=$.html2json($(e)),e=JSON.stringify(e)}catch(n){warnZYKJ("html2json转化出错:",n)}return e}function oe(e){let t=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/60/60),o=[];return r&&o.push(r+"时"),n&&o.push(n+"分"),t&&o.push(t+"秒"),o.join(" ")}function ie(e){return parseFloat(e).toString()}function ae(e,t,n){if(!e)return;let r=t.match(/(\w+)/gi),o=null;return o=e instanceof Array?e.slice(0):Object.assign({},e),r.forEach(((e,t)=>{"undefined"!==typeof o&&(o=o instanceof Array?o.slice(e-1,1):o[e])})),o||n}function se(e){if("undefined"===typeof e||null===e)return!0;let t=!1;return t="object"===typeof e?e instanceof Array?0===e.length:0===Object.keys(e).length:"string"===typeof e?0===e.trim().length:isNaN(+e),t}function ue(e){return!se(e)}function ce(e,t,n,r,o,i){var a=this;if(a.version=function(){return"1.9.2"},a.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:d,formattingFn:f,prefix:"",suffix:"",numerals:[]},i&&"object"===typeof i)for(var s in a.options)i.hasOwnProperty(s)&&null!==i[s]&&(a.options[s]=i[s]);""===a.options.separator?a.options.useGrouping=!1:a.options.separator=""+a.options.separator;for(var u=0,c=["webkit","moz","ms","o"],l=0;l<c.length&&!window.requestAnimationFrame;++l)window.requestAnimationFrame=window[c[l]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[l]+"CancelAnimationFrame"]||window[c[l]+"CancelRequestAnimationFrame"];function f(e){var t,n,r,o,i,s;if(e=e.toFixed(a.decimals),e+="",t=e.split("."),n=t[0],r=t.length>1?a.options.decimal+t[1]:"",a.options.useGrouping){for(o="",i=0,s=n.length;i<s;++i)0!==i&&i%3===0&&(o=a.options.separator+o),o=n[s-i-1]+o;n=o}return a.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]})),r=r.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]}))),a.options.prefix+n+r+a.options.suffix}function d(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t}function p(e){return"number"===typeof e&&!isNaN(e)}window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-u)),o=window.setTimeout((function(){e(n+r)}),r);return u=n+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),a.initialize=function(){return!!a.initialized||(a.error="",a.d="string"===typeof e?document.getElementById(e):e,a.d?(a.startVal=Number(t),a.endVal=Number(n),p(a.startVal)&&p(a.endVal)?(a.decimals=Math.max(0,r||0),a.dec=Math.pow(10,a.decimals),a.duration=1e3*Number(o)||2e3,a.countDown=a.startVal>a.endVal,a.frameVal=a.startVal,a.initialized=!0,!0):(a.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",!1)):(a.error="[CountUp] target is null or undefined",!1))},a.printValue=function(e){var t=a.options.formattingFn(e);"INPUT"===a.d.tagName?this.d.value=t:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=t:this.d.innerHTML=t},a.count=function(e){a.startTime||(a.startTime=e),a.timestamp=e;var t=e-a.startTime;a.remaining=a.duration-t,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(t,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(t,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(t/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(t/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),t<a.duration?a.rAF=requestAnimationFrame(a.count):a.callback&&a.callback()},a.start=function(e){a.initialize()&&(a.callback=e,a.rAF=requestAnimationFrame(a.count))},a.pauseResume=function(){a.paused?(a.paused=!1,delete a.startTime,a.duration=a.remaining,a.startVal=a.frameVal,requestAnimationFrame(a.count)):(a.paused=!0,cancelAnimationFrame(a.rAF))},a.reset=function(){a.paused=!1,delete a.startTime,a.initialized=!1,a.initialize()&&(cancelAnimationFrame(a.rAF),a.printValue(a.startVal))},a.update=function(e){a.initialize()&&(e=Number(e),p(e)?(a.error="",e!==a.frameVal&&(cancelAnimationFrame(a.rAF),a.paused=!1,delete a.startTime,a.startVal=a.frameVal,a.endVal=e,a.countDown=a.startVal>a.endVal,a.rAF=requestAnimationFrame(a.count))):a.error="[CountUp] update() - new endVal is not a number: "+e)},a.initialize()&&a.printValue(a.startVal)}function le(){let e="";return e=/(iPhone|iPad|iPhone OS|Phone|iPod|iOS|Mac|Android)/i.test(navigator.userAgent)?/Android/i.test(navigator.userAgent)?"mobile":/Safari/i.test(navigator.userAgent)?"pc":"mobile":"pc",e}function fe(e,t){window._czc&&_czc.push(["_trackEvent",e,t])}function de(e,t){for(var n=0;n<e.length;n++)if(e[n]==t)return n}function pe(e=1024,t=768){let n=document.body.clientWidth,r=document.body.clientHeight;return n<=e&&r<=t}function me(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))}function he(e,t){let n=e.lastIndexOf("?"),r=e.substring(n+1,e.length),o="",i=r.split("&");for(var a=0;a<i.length;a++){let e=i[a].split("="),t="a";o+=""+(0==a?"?":"&")+String.fromCharCode(t.charCodeAt()+a)+"="+e[1]}return o}function ge(e,t,n,r,o){let i,a,s=new Image,u=t,c=n,l=12*n,f=12*t;return s.src=e,o>l&&r<=f?(a=u*(r/o)+"rem",i=`${c}rem`):o<=l&&r>f?(a=`${rewBoxW}rem`,i=c*(r/o)+"rem"):o>l&&o>f?r>o?(a=`${rewBoxW}rem`,i=c*(r/o)+"rem"):(a=u*(r/o)+"rem",i=`${c}rem`):(a=r/12+"rem",i=o/12+"rem"),{width:a,height:i}}function ve(e){window.parent.postMessage(e,"*")}function ye(){window.contentDialogs.forEach((e=>{e.scope.closeContentDialog()}))}function be(e){let t=window.contentDialogs.find((t=>t.uid===e));t&&t.scope.closeContentDialog()}let we=function(){};function xe(e){for(var t=window.location.search.substring(1),n=t.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");if(o[0]==e)return o[1]}return!1}function Ae(e,t,n=3e3){let r=document.createElement("div");r.className="dialog";let o=`<div class="dialog">\n <div class="message-box ${e}">\n <i class="ico"></i>\n <p class="content">${t}</p>\n </div>\n </div>`,i=$(o);$("body").append(i),setTimeout((()=>{i.remove()}),n+500)}function Ce(e,t){var n="offset"+t[0].toUpperCase()+t.substring(1),r=e[n],o=e.offsetParent;while(null!=o)r+=o[n],o=o.offsetParent;return r}function Oe(e,t,n,r,o){}var Se={getToken:we,getQueryVariable:xe,debounce2:X,throttle:Q,sortDict:z,GUID:R,urlsafe_b64encode:H,urlsafe_b64decode:W,getObjectURL:G,getExtName:J,fmtDateTime:Z,fmtJSON2HTML:ne,fmtHTML2JSON:re,fmtSecond:oe,fmtFloatNumber:ie,copyDeepObject:Y,indexToEnIndex:K,diffObject:ee,diffArray:te,getDeepData:ae,isEmpty2:se,nonEmpty:ue,CountUp:ce,getEnvironment:le,recordCountFn:fe,findListIndex:de,getScreen:pe,whatBrowser:me,getUrlQueryVariable:he,setImgAuto:ge,postMessageByType:ve,closeAllContentDialog:ye,closeContentDialogByUid:be,messageTip:Ae,offset:Ce,fbError:Oe},je={props:{visible:{type:Boolean,default:!1},mediaLookerList:{type:Array,default(){return[]}},mediaCount:{type:Number,default:0}},mounted(){},data(){return{curMediaObj:{},curMediaCount:0,imgCompressWidth:0,imgCompressHeight:0,imgNativeWidth:0,imgNativeHeight:0,enlargeStatus:"in",canEnlarge:!1}},watch:{mediaLookerList:{handler(e,t){e&&e.length&&e&&e.length&&this.getCurMedia(this.mediaCount)},immediate:!0,deep:!0}},computed:{},methods:{cancel(){this.$emit("update:visible",!1)},getCurMedia(e){this.curMediaCount=e,this.curMediaObj=Se.copyDeepObject(this.mediaLookerList[e]);let t=new Image;t.src=this.curMediaObj.url;let n=document.documentElement||document.body,r=n.clientWidth,o=n.clientHeight;this.canEnlarge=!1,this.enlargeStatus="in",t.addEventListener("load",(()=>{let e=t.width,n=t.height;if(this.imgNativeWidth=e,this.imgNativeHeight=n,e>=r||n>=o){let t,i,a,s=e-r,u=n-o;s>u?(i=.9*r,t=i/e,a=n*t,this.curMediaObj.width=i,this.curMediaObj.height=a,this.imgCompressWidth=i,this.imgCompressHeight=a):(a=.9*o,t=a/n,i=e*t,this.curMediaObj.width=i,this.curMediaObj.height=a,this.imgCompressWidth=i,this.imgCompressHeight=a),this.canEnlarge=!0}else this.curMediaObj.width=e,this.curMediaObj.height=n,this.imgCompressWidth=e,this.imgCompressHeight=n}))},enlarge(){this.canEnlarge&&("in"===this.enlargeStatus?(this.curMediaObj.width=this.imgNativeWidth,this.curMediaObj.height=this.imgNativeHeight):(this.curMediaObj.width=this.imgCompressWidth,this.curMediaObj.height=this.imgCompressHeight),this.enlargeStatus="in"===this.enlargeStatus?"out":"in",window.console.log(this.imgNativeWidth,this.imgNativeHeight,this.imgCompressWidth,this.imgCompressHeight))},next(){this.curMediaCount===this.mediaLookerList.length-1?this.curMediaCount=0:this.curMediaCount++,this.getCurMedia(this.curMediaCount)},prev(){0===this.curMediaCount?this.curMediaCount=this.mediaLookerList.length-1:this.curMediaCount--,this.getCurMedia(this.curMediaCount)}}},ke=r(3744);const Ve=(0,ke.Z)(je,[["render",U]]);var Ee=Ve,Me={name:"Question_singleChoice",props:{isSub:{type:Boolean,default:!1},orderIndex:{type:Number,default:0},questionInfo:{type:Object,default:{}},bus:{type:Object,default:{}},mode:{type:String,default:"exam"}},mounted(){T(this),this.$watch("radio",(e=>{let t=this,n=this.isSub,r=this.isAnswered();this.$emit("getIsAnswered",r),n?("exam"===this.mode&&this.bus.$emit("optionChange"),"exam"===this.mode&&this.emit("optionChange",{orderIndex:this.orderIndex,isAnswered:t.isAnswered()})):"exam"===this.mode&&this.bus.$emit("questionCardChange",{questionIndex:this.questionInfo.questionIndex-1,answered:r})}),{immediate:!0})},data(){return{radio:0,analyCorrectAnswer:"",exam_options_data:[],answerMap:{},...JSON.parse(q)}},watch:{questionInfo:{handler(e,t){if(e&&(this.exam_options_data=e.exam_options_data,this.answerMap=e.answerMap,e.answerMap)){let{question_type:t}=e;if("analysis"===this.mode&&(this.analyCorrectAnswer=3==t?"1"===e.correct_judge?"正确":"错误":Se.indexToEnIndex(e.correct_single_index)),3==t){let t=e.answerMap.judge;void 0!==t&&null!==t&&""!==t&&(this.radio=t?1:2)}else{let t=e.answerMap.single_index;void 0!==t&&null!==t&&""!==t&&(this.radio=t)}}},immediate:!0}},computed:{},methods:{getAnswer(){let e=this.questionInfo,t=e.question_type;if(3==t){let e=1==this.radio;return{judge:e}}return{single_index:this.radio}},isAnswered(){let e=0!==this.radio;return e},isCorrect(){let e="1"===this.questionInfo.answerMap.is_correct;return e}},components:{MediaLooker:Ee}};const Ne=(0,ke.Z)(Me,[["render",I]]);var Ie=Ne,qe={install(e){e.component("Question_SingleChoice",Ie)},Question_SingleChoice:Ie},Te=qe}(),o}()}));
|
package/package.json
CHANGED
|
@@ -108,8 +108,9 @@ export default {
|
|
|
108
108
|
this.$watch('radio',(nv)=>{
|
|
109
109
|
let self = this
|
|
110
110
|
let isSub = this.isSub
|
|
111
|
+
let answered = this.isAnswered()
|
|
112
|
+
this.$emit('getIsAnswered',answered)
|
|
111
113
|
if(!isSub){
|
|
112
|
-
let answered = this.isAnswered()
|
|
113
114
|
this.mode === 'exam' && this.bus.$emit('questionCardChange',{
|
|
114
115
|
questionIndex:this.questionInfo.questionIndex - 1,
|
|
115
116
|
answered
|