@yungu-fed/question-editor 0.4.0 → 0.4.1
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.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1332 -849
- package/dist/index.mjs +2680 -2329
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +1 -1
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -1
- package/dist/question/preview/QuestionPreview.d.ts +7 -7
- package/dist/question/preview/QuestionPreview.d.ts.map +1 -1
- package/dist/question/preview/QuestionPreviewContent.d.ts +9 -0
- package/dist/question/preview/QuestionPreviewContent.d.ts.map +1 -0
- package/dist/question/preview/QuestionPrintPreview.d.ts +5 -0
- package/dist/question/preview/QuestionPrintPreview.d.ts.map +1 -0
- package/dist/question/preview/question-preview-layout.d.ts +5 -0
- package/dist/question/preview/question-preview-layout.d.ts.map +1 -0
- package/dist/question/preview/question-print-presentation.d.ts +23 -0
- package/dist/question/preview/question-print-presentation.d.ts.map +1 -0
- package/dist/question/renderers/QuestionAdaptiveOptionList.d.ts.map +1 -1
- package/dist/question/renderers/QuestionBlankGroupView.d.ts +3 -2
- package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionClassificationView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionContentElementView.d.ts +5 -3
- package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionFillTextView.d.ts +3 -2
- package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts +3 -2
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionLineConnectView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionMatchingView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionOptionGroupView.d.ts +3 -2
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionOrderingView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +1 -1
- package/dist/question/renderers/QuestionSectionTitle.d.ts.map +1 -1
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -1
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +1 -1
- package/dist/question/renderers/QuestionWordBuilderView.d.ts +3 -2
- package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +1 -1
- package/dist/question/renderers/blankStandardAnswerGroups.d.ts +9 -0
- package/dist/question/renderers/blankStandardAnswerGroups.d.ts.map +1 -0
- package/dist/question/renderers/matchingAnswers.d.ts +1 -0
- package/dist/question/renderers/matchingAnswers.d.ts.map +1 -1
- package/dist/question/renderers/question-renderer-behavior.d.ts +18 -0
- package/dist/question/renderers/question-renderer-behavior.d.ts.map +1 -0
- package/dist/question/renderers/question-renderer-presentation.d.ts +25 -0
- package/dist/question/renderers/question-renderer-presentation.d.ts.map +1 -0
- package/dist/question/renderers/wordBuilderAnswers.d.ts +1 -1
- package/dist/question/renderers/wordBuilderAnswers.d.ts.map +1 -1
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +7 -0
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +1 -0
- package/dist/question/shared/blank-numbering.d.ts +5 -0
- package/dist/question/shared/blank-numbering.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7635,16 +7635,99 @@ function Oc(e, t) {
|
|
|
7635
7635
|
}]) : e;
|
|
7636
7636
|
}
|
|
7637
7637
|
var kc = {
|
|
7638
|
-
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7638
|
+
placeholder: "_placeholder_np8ps_1"
|
|
7639
|
+
},
|
|
7640
|
+
Ac = {
|
|
7641
|
+
"blank-list": "_blank-list_12ccp_1",
|
|
7642
|
+
"blank-item": "_blank-item_12ccp_11",
|
|
7643
|
+
"blank-field": "_blank-field_12ccp_17"
|
|
7644
|
+
},
|
|
7645
|
+
U = {
|
|
7646
|
+
board: "_board_1f76b_1",
|
|
7647
|
+
pool: "_pool_1f76b_6",
|
|
7648
|
+
zones: "_zones_1f76b_13",
|
|
7649
|
+
zone: "_zone_1f76b_13",
|
|
7650
|
+
"zone-title": "_zone-title_1f76b_30",
|
|
7651
|
+
item: "_item_1f76b_37",
|
|
7652
|
+
empty: "_empty_1f76b_52",
|
|
7653
|
+
selected: "_selected_1f76b_72",
|
|
7654
|
+
correct: "_correct_1f76b_77",
|
|
7655
|
+
incorrect: "_incorrect_1f76b_81",
|
|
7656
|
+
unanswered: "_unanswered_1f76b_85"
|
|
7657
|
+
},
|
|
7658
|
+
jc = {
|
|
7659
|
+
board: "_board_5xarh_1",
|
|
7660
|
+
columns: "_columns_5xarh_6",
|
|
7661
|
+
column: "_column_5xarh_6",
|
|
7662
|
+
item: "_item_5xarh_18",
|
|
7663
|
+
marker: "_marker_5xarh_42"
|
|
7664
|
+
},
|
|
7665
|
+
W = {
|
|
7666
|
+
"rich-content": "_rich-content_8uipo_1",
|
|
7667
|
+
element: "_element_8uipo_52",
|
|
7668
|
+
"option-list": "_option-list_8uipo_54",
|
|
7669
|
+
"candidate-list": "_candidate-list_8uipo_55",
|
|
7670
|
+
"judgement-list": "_judgement-list_8uipo_56",
|
|
7671
|
+
"judgement-row": "_judgement-row_8uipo_68",
|
|
7672
|
+
"judgement-placeholder": "_judgement-placeholder_8uipo_76",
|
|
7673
|
+
"option-item": "_option-item_8uipo_83",
|
|
7674
|
+
"candidate-item": "_candidate-item_8uipo_84",
|
|
7675
|
+
"judgement-item": "_judgement-item_8uipo_85",
|
|
7676
|
+
marker: "_marker_8uipo_97",
|
|
7677
|
+
"candidate-section": "_candidate-section_8uipo_112",
|
|
7678
|
+
"section-title": "_section-title_8uipo_125",
|
|
7679
|
+
"word-builder-blank": "_word-builder-blank_8uipo_131",
|
|
7680
|
+
"word-builder-candidate-list": "_word-builder-candidate-list_8uipo_147"
|
|
7681
|
+
},
|
|
7682
|
+
Mc = {
|
|
7683
|
+
"table-wrap": "_table-wrap_n67ah_1",
|
|
7684
|
+
table: "_table_n67ah_1",
|
|
7685
|
+
"table-option-column": "_table-option-column_n67ah_17",
|
|
7686
|
+
"table-option-marker": "_table-option-marker_n67ah_45"
|
|
7687
|
+
},
|
|
7688
|
+
Nc = {
|
|
7689
|
+
answer: {
|
|
7690
|
+
"answer-panel": "_answer-panel_1bkkd_1",
|
|
7691
|
+
"answer-list": "_answer-list_1bkkd_8",
|
|
7692
|
+
"answer-row": "_answer-row_1bkkd_16",
|
|
7693
|
+
"answer-marker": "_answer-marker_1bkkd_24",
|
|
7694
|
+
"answer-marker-only": "_answer-marker-only_1bkkd_36",
|
|
7695
|
+
"answer-content-list": "_answer-content-list_1bkkd_46",
|
|
7696
|
+
"answer-value": "_answer-value_1bkkd_55"
|
|
7697
|
+
},
|
|
7698
|
+
blankGroup: Ac,
|
|
7699
|
+
classification: U,
|
|
7700
|
+
lineConnect: L,
|
|
7701
|
+
matching: jc,
|
|
7702
|
+
renderer: W,
|
|
7703
|
+
sectionTitle: {
|
|
7704
|
+
title: "_title_hrc5o_1"
|
|
7705
|
+
},
|
|
7706
|
+
table: Mc,
|
|
7707
|
+
textMarker: {
|
|
7708
|
+
content: "_content_63948_1",
|
|
7709
|
+
paragraph: "_paragraph_63948_10",
|
|
7710
|
+
marker: "_marker_63948_14",
|
|
7711
|
+
"marker-button": "_marker-button_63948_22",
|
|
7712
|
+
"marker-selected": "_marker-selected_63948_31",
|
|
7713
|
+
"marker-answer": "_marker-answer_63948_37"
|
|
7714
|
+
},
|
|
7715
|
+
textResponse: kc
|
|
7716
|
+
},
|
|
7717
|
+
Pc = (0, n.createContext)(Nc);
|
|
7718
|
+
function G() {
|
|
7719
|
+
return (0, n.useContext)(Pc);
|
|
7720
|
+
}
|
|
7721
|
+
function Fc(_ref105) {
|
|
7641
7722
|
var e = _ref105.children;
|
|
7723
|
+
var _G = G(),
|
|
7724
|
+
n = _G.sectionTitle;
|
|
7642
7725
|
return (0, t.jsx)("h3", {
|
|
7643
|
-
className:
|
|
7726
|
+
className: n.title,
|
|
7644
7727
|
children: e
|
|
7645
7728
|
});
|
|
7646
7729
|
}
|
|
7647
|
-
var
|
|
7730
|
+
var K = {
|
|
7648
7731
|
root: "_root_nr9um_1",
|
|
7649
7732
|
"element-list": "_element-list_nr9um_18",
|
|
7650
7733
|
children: "_children_nr9um_19",
|
|
@@ -7658,7 +7741,7 @@ var U = {
|
|
|
7658
7741
|
input: "_input_nr9um_61",
|
|
7659
7742
|
field: "_field_nr9um_43"
|
|
7660
7743
|
};
|
|
7661
|
-
function
|
|
7744
|
+
function Ic(_ref106) {
|
|
7662
7745
|
var _ref106$childIndexPat = _ref106.childIndexPath,
|
|
7663
7746
|
e = _ref106$childIndexPat === void 0 ? [] : _ref106$childIndexPat,
|
|
7664
7747
|
n = _ref106.messages,
|
|
@@ -7668,23 +7751,23 @@ function jc(_ref106) {
|
|
|
7668
7751
|
o = _ref106.rootQuestionNumber,
|
|
7669
7752
|
s = _ref106.value;
|
|
7670
7753
|
return s.children.length === 0 ? (0, t.jsx)("div", {
|
|
7671
|
-
className:
|
|
7754
|
+
className: K.empty,
|
|
7672
7755
|
children: n.previewEmpty
|
|
7673
7756
|
}) : (0, t.jsx)("div", {
|
|
7674
|
-
className:
|
|
7757
|
+
className: K.children,
|
|
7675
7758
|
children: s.children.map(function (c, l) {
|
|
7676
7759
|
var u = [].concat(_toConsumableArray(e), [l]),
|
|
7677
7760
|
d = a.children.slice(l, l + 1)[0],
|
|
7678
7761
|
f = Oo(u, s.children.length, o);
|
|
7679
7762
|
return (0, t.jsx)("section", {
|
|
7680
|
-
className:
|
|
7763
|
+
className: K.child,
|
|
7681
7764
|
children: (0, t.jsx)(Ao, {
|
|
7682
7765
|
indented: !0,
|
|
7683
7766
|
number: f,
|
|
7684
7767
|
children: d ? i(c, d, function (e) {
|
|
7685
7768
|
return r(l, e);
|
|
7686
7769
|
}, u) : (0, t.jsx)("div", {
|
|
7687
|
-
className:
|
|
7770
|
+
className: K.empty,
|
|
7688
7771
|
children: n.missingQuestionTypeTemplate
|
|
7689
7772
|
})
|
|
7690
7773
|
})
|
|
@@ -7692,67 +7775,145 @@ function jc(_ref106) {
|
|
|
7692
7775
|
})
|
|
7693
7776
|
});
|
|
7694
7777
|
}
|
|
7695
|
-
|
|
7696
|
-
"rich-content": "_rich-content_3k70y_1",
|
|
7697
|
-
element: "_element_3k70y_52",
|
|
7698
|
-
"option-list": "_option-list_3k70y_54",
|
|
7699
|
-
"candidate-list": "_candidate-list_3k70y_55",
|
|
7700
|
-
"judgement-list": "_judgement-list_3k70y_56",
|
|
7701
|
-
"option-item": "_option-item_3k70y_68",
|
|
7702
|
-
"candidate-item": "_candidate-item_3k70y_69",
|
|
7703
|
-
"judgement-item": "_judgement-item_3k70y_70",
|
|
7704
|
-
marker: "_marker_3k70y_82",
|
|
7705
|
-
"candidate-section": "_candidate-section_3k70y_97",
|
|
7706
|
-
"section-title": "_section-title_3k70y_110",
|
|
7707
|
-
"word-builder-blank": "_word-builder-blank_3k70y_116",
|
|
7708
|
-
"word-builder-candidate-list": "_word-builder-candidate-list_3k70y_132"
|
|
7709
|
-
};
|
|
7710
|
-
function G(_ref107) {
|
|
7778
|
+
function q(_ref107) {
|
|
7711
7779
|
var n = _ref107.className,
|
|
7712
7780
|
r = _ref107.content;
|
|
7713
|
-
var
|
|
7714
|
-
|
|
7715
|
-
|
|
7781
|
+
var _G2 = G(),
|
|
7782
|
+
i = _G2.renderer,
|
|
7783
|
+
a = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
|
|
7784
|
+
plugins: [Dt]
|
|
7785
|
+
});
|
|
7716
7786
|
return (0, t.jsx)("div", {
|
|
7717
|
-
className: n ? "".concat(
|
|
7787
|
+
className: n ? "".concat(i["rich-content"], " ").concat(n) : i["rich-content"],
|
|
7718
7788
|
dangerouslySetInnerHTML: {
|
|
7719
|
-
__html:
|
|
7789
|
+
__html: a
|
|
7720
7790
|
}
|
|
7721
7791
|
});
|
|
7722
7792
|
}
|
|
7723
|
-
var
|
|
7724
|
-
"
|
|
7725
|
-
"
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7793
|
+
var Lc = ["\u96F6", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D"],
|
|
7794
|
+
Rc = ["", "\u5341", "\u767E", "\u5343"],
|
|
7795
|
+
zc = ["", "\u4E07", "\u4EBF", "\u5146"],
|
|
7796
|
+
Bc = new Intl.PluralRules("en-US", {
|
|
7797
|
+
type: "ordinal"
|
|
7798
|
+
}),
|
|
7799
|
+
Vc = {
|
|
7800
|
+
few: "rd",
|
|
7801
|
+
many: "th",
|
|
7802
|
+
one: "st",
|
|
7803
|
+
other: "th",
|
|
7804
|
+
two: "nd",
|
|
7805
|
+
zero: "th"
|
|
7806
|
+
};
|
|
7807
|
+
function Hc(e, t) {
|
|
7808
|
+
return t === "zh-CN" ? "\u7B2C".concat(Wc(e), "\u7A7A") : "".concat(e).concat(Vc[Bc.select(e)], " blank");
|
|
7809
|
+
}
|
|
7810
|
+
function Uc(e, t, n) {
|
|
7811
|
+
var r = _toConsumableArray(e).sort(function (e, n) {
|
|
7812
|
+
return t.indexOf(e) - t.indexOf(n);
|
|
7813
|
+
}).map(function (e) {
|
|
7814
|
+
return t.indexOf(e) + 1;
|
|
7815
|
+
}).filter(function (e) {
|
|
7816
|
+
return e > 0;
|
|
7817
|
+
}).map(function (e) {
|
|
7818
|
+
return Hc(e, n);
|
|
7819
|
+
});
|
|
7820
|
+
return n === "zh-CN" ? "".concat(r.join("\u3001"), "\uFF1A") : "".concat(r.join(", "), ":");
|
|
7821
|
+
}
|
|
7822
|
+
function Wc(e) {
|
|
7823
|
+
var t = Gc(e),
|
|
7824
|
+
n = "",
|
|
7825
|
+
r = !1;
|
|
7826
|
+
for (var _e2 = t.length - 1; _e2 >= 0; --_e2) {
|
|
7827
|
+
var i;
|
|
7828
|
+
var _a2 = (i = t[_e2]) == null ? 0 : i;
|
|
7829
|
+
if (_a2 === 0) {
|
|
7830
|
+
r = n.length > 0;
|
|
7831
|
+
continue;
|
|
7832
|
+
}
|
|
7833
|
+
n.length > 0 && (r || _a2 < 1e3) && (n += Lc[0]), n += "".concat(Kc(_a2)).concat(zc[_e2]), r = !1;
|
|
7834
|
+
}
|
|
7835
|
+
return n.startsWith("\u4E00\u5341") ? n.slice(1) : n;
|
|
7836
|
+
}
|
|
7837
|
+
function Gc(e) {
|
|
7838
|
+
var t = [],
|
|
7839
|
+
n = e;
|
|
7840
|
+
for (; n > 0;) t.push(n % 1e4), n = Math.floor(n / 1e4);
|
|
7841
|
+
return t;
|
|
7842
|
+
}
|
|
7843
|
+
function Kc(e) {
|
|
7844
|
+
var t = "",
|
|
7845
|
+
n = !1;
|
|
7846
|
+
for (var _r6 = 3; _r6 >= 0; --_r6) {
|
|
7847
|
+
var _i2 = Math.pow(10, _r6),
|
|
7848
|
+
_a3 = Math.floor(e / _i2) % 10;
|
|
7849
|
+
if (_a3 === 0) {
|
|
7850
|
+
n = t.length > 0 && e % _i2 > 0;
|
|
7851
|
+
continue;
|
|
7852
|
+
}
|
|
7853
|
+
n && (t += Lc[0]), t += "".concat(Lc[_a3]).concat(Rc[_r6]), n = !1;
|
|
7854
|
+
}
|
|
7855
|
+
return t;
|
|
7856
|
+
}
|
|
7857
|
+
var qc = {
|
|
7858
|
+
answerGroupLayout: "flow",
|
|
7859
|
+
blankAnswerMarker: function blankAnswerMarker(e, t, n, r) {
|
|
7860
|
+
return xc(e, t, r);
|
|
7861
|
+
},
|
|
7862
|
+
blankPlaceholder: "labeled-field",
|
|
7863
|
+
candidateLayout: "plain-list",
|
|
7864
|
+
lineConnectColumnTitleVisibility: "visible",
|
|
7865
|
+
matchingAnswerLayout: "target-content",
|
|
7866
|
+
optionStandardAnswer: "grouped",
|
|
7867
|
+
showEmptyAnswerGroups: !1,
|
|
7868
|
+
textResponseVisibility: "hidden"
|
|
7869
|
+
},
|
|
7870
|
+
Jc = {
|
|
7871
|
+
answerGroupLayout: "rows",
|
|
7872
|
+
blankAnswerMarker: function blankAnswerMarker(e, t, n) {
|
|
7873
|
+
return Uc(e, t, n);
|
|
7874
|
+
},
|
|
7875
|
+
blankPlaceholder: "answer-line",
|
|
7876
|
+
candidateLayout: "labeled-groups",
|
|
7877
|
+
lineConnectColumnTitleVisibility: "accessible-only",
|
|
7878
|
+
matchingAnswerLayout: "marker-path",
|
|
7879
|
+
optionStandardAnswer: "value-only",
|
|
7880
|
+
showEmptyAnswerGroups: !0,
|
|
7881
|
+
textResponseVisibility: "accessible-only"
|
|
7882
|
+
},
|
|
7883
|
+
Yc = (0, n.createContext)(qc);
|
|
7884
|
+
function Xc() {
|
|
7885
|
+
return (0, n.useContext)(Yc);
|
|
7886
|
+
}
|
|
7887
|
+
function J(_ref108) {
|
|
7733
7888
|
var e = _ref108.groups,
|
|
7734
7889
|
n = _ref108.title;
|
|
7735
|
-
var
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7890
|
+
var _Xc = Xc(),
|
|
7891
|
+
r = _Xc.answerGroupLayout,
|
|
7892
|
+
i = _Xc.showEmptyAnswerGroups,
|
|
7893
|
+
_G3 = G(),
|
|
7894
|
+
a = _G3.answer,
|
|
7895
|
+
o = e.filter(function (e) {
|
|
7896
|
+
return e.kind === "markerOnly" || e.contents.length > 0 || i && !!e.marker;
|
|
7897
|
+
});
|
|
7898
|
+
return o.length === 0 ? null : (0, t.jsxs)("section", {
|
|
7739
7899
|
"aria-label": n,
|
|
7740
|
-
className:
|
|
7741
|
-
|
|
7900
|
+
className: a["answer-panel"],
|
|
7901
|
+
"data-answer-group-layout": r,
|
|
7902
|
+
children: [(0, t.jsx)(Fc, {
|
|
7742
7903
|
children: n
|
|
7743
7904
|
}), (0, t.jsx)("ol", {
|
|
7744
|
-
className:
|
|
7745
|
-
children:
|
|
7905
|
+
className: a["answer-list"],
|
|
7906
|
+
children: o.map(function (e, n) {
|
|
7746
7907
|
return (0, t.jsxs)("li", {
|
|
7747
|
-
className:
|
|
7908
|
+
className: a["answer-row"],
|
|
7748
7909
|
children: [e.marker ? (0, t.jsx)("span", {
|
|
7749
|
-
className: e.kind === "markerOnly" ? "".concat(
|
|
7910
|
+
className: e.kind === "markerOnly" ? "".concat(a["answer-marker"], " ").concat(a["answer-marker-only"]) : a["answer-marker"],
|
|
7750
7911
|
children: e.marker
|
|
7751
7912
|
}) : null, e.kind === "detailed" ? (0, t.jsx)("div", {
|
|
7752
|
-
className:
|
|
7913
|
+
className: a["answer-content-list"],
|
|
7753
7914
|
children: e.contents.map(function (e, n) {
|
|
7754
7915
|
return (0, t.jsx)("div", {
|
|
7755
|
-
className:
|
|
7916
|
+
className: a["answer-value"],
|
|
7756
7917
|
children: e
|
|
7757
7918
|
}, "answer-".concat(n));
|
|
7758
7919
|
})
|
|
@@ -7762,7 +7923,7 @@ function K(_ref108) {
|
|
|
7762
7923
|
})]
|
|
7763
7924
|
});
|
|
7764
7925
|
}
|
|
7765
|
-
function
|
|
7926
|
+
function Zc(_ref109) {
|
|
7766
7927
|
var e = _ref109.disabled,
|
|
7767
7928
|
n = _ref109.item,
|
|
7768
7929
|
r = _ref109.messages,
|
|
@@ -7775,7 +7936,7 @@ function Nc(_ref109) {
|
|
|
7775
7936
|
return {
|
|
7776
7937
|
kind: "detailed",
|
|
7777
7938
|
contents: e.answerPools.map(function (e, n) {
|
|
7778
|
-
return (0, t.jsx)(
|
|
7939
|
+
return (0, t.jsx)(q, {
|
|
7779
7940
|
content: e
|
|
7780
7941
|
}, "group-".concat(i, "-answer-").concat(n));
|
|
7781
7942
|
}),
|
|
@@ -7788,32 +7949,32 @@ function Nc(_ref109) {
|
|
|
7788
7949
|
}));
|
|
7789
7950
|
}
|
|
7790
7951
|
return (0, t.jsxs)("div", {
|
|
7791
|
-
className:
|
|
7952
|
+
className: K["control-list"],
|
|
7792
7953
|
children: [n.blanks.map(function (n, i) {
|
|
7793
7954
|
return (0, t.jsxs)("label", {
|
|
7794
|
-
className:
|
|
7955
|
+
className: K.field,
|
|
7795
7956
|
children: [(0, t.jsxs)("span", {
|
|
7796
|
-
className:
|
|
7957
|
+
className: K["field-label"],
|
|
7797
7958
|
children: [r.blankLabel, " ", i + 1]
|
|
7798
7959
|
}), (0, t.jsx)("input", {
|
|
7799
|
-
className:
|
|
7960
|
+
className: K.input,
|
|
7800
7961
|
disabled: e,
|
|
7801
7962
|
onChange: function onChange(e) {
|
|
7802
7963
|
return u(n, e.target.value);
|
|
7803
7964
|
},
|
|
7804
|
-
value:
|
|
7965
|
+
value: $c(c.answers, n)
|
|
7805
7966
|
})]
|
|
7806
|
-
},
|
|
7807
|
-
}), s ? (0, t.jsx)(
|
|
7967
|
+
}, Qc(n, i));
|
|
7968
|
+
}), s ? (0, t.jsx)(J, {
|
|
7808
7969
|
groups: l,
|
|
7809
7970
|
title: r.standardAnswer
|
|
7810
7971
|
}) : null]
|
|
7811
7972
|
});
|
|
7812
7973
|
}
|
|
7813
|
-
function
|
|
7974
|
+
function Qc(e, t) {
|
|
7814
7975
|
return e || "blank-".concat(t + 1);
|
|
7815
7976
|
}
|
|
7816
|
-
function
|
|
7977
|
+
function $c(e, t) {
|
|
7817
7978
|
var n, r;
|
|
7818
7979
|
return (n = (r = Object.entries(e).find(function (_ref110) {
|
|
7819
7980
|
var _ref111 = _slicedToArray(_ref110, 1),
|
|
@@ -7821,14 +7982,14 @@ function Fc(e, t) {
|
|
|
7821
7982
|
return e === t;
|
|
7822
7983
|
})) == null ? void 0 : r[1]) == null ? "" : n;
|
|
7823
7984
|
}
|
|
7824
|
-
function
|
|
7985
|
+
function el(e) {
|
|
7825
7986
|
return e.categories.map(function (n) {
|
|
7826
7987
|
return {
|
|
7827
7988
|
kind: "detailed",
|
|
7828
7989
|
contents: e.items.filter(function (t) {
|
|
7829
7990
|
return e.answers[t.id] === n.id;
|
|
7830
7991
|
}).map(function (e) {
|
|
7831
|
-
return (0, t.jsx)(
|
|
7992
|
+
return (0, t.jsx)(q, {
|
|
7832
7993
|
content: e.content
|
|
7833
7994
|
}, "".concat(n.id, "-").concat(e.id));
|
|
7834
7995
|
}),
|
|
@@ -7836,20 +7997,7 @@ function Ic(e) {
|
|
|
7836
7997
|
};
|
|
7837
7998
|
});
|
|
7838
7999
|
}
|
|
7839
|
-
|
|
7840
|
-
board: "_board_1f76b_1",
|
|
7841
|
-
pool: "_pool_1f76b_6",
|
|
7842
|
-
zones: "_zones_1f76b_13",
|
|
7843
|
-
zone: "_zone_1f76b_13",
|
|
7844
|
-
"zone-title": "_zone-title_1f76b_30",
|
|
7845
|
-
item: "_item_1f76b_37",
|
|
7846
|
-
empty: "_empty_1f76b_52",
|
|
7847
|
-
selected: "_selected_1f76b_72",
|
|
7848
|
-
correct: "_correct_1f76b_77",
|
|
7849
|
-
incorrect: "_incorrect_1f76b_81",
|
|
7850
|
-
unanswered: "_unanswered_1f76b_85"
|
|
7851
|
-
};
|
|
7852
|
-
function Lc(_ref112) {
|
|
8000
|
+
function tl(_ref112) {
|
|
7853
8001
|
var e = _ref112.disabled,
|
|
7854
8002
|
r = _ref112.item,
|
|
7855
8003
|
i = _ref112.messages,
|
|
@@ -7862,13 +8010,13 @@ function Lc(_ref112) {
|
|
|
7862
8010
|
l = _ref114[0],
|
|
7863
8011
|
u = _ref114[1],
|
|
7864
8012
|
d = Hs(o, s),
|
|
7865
|
-
f =
|
|
8013
|
+
f = rl(d.placements, r),
|
|
7866
8014
|
p = r.items.find(function (e) {
|
|
7867
8015
|
return e.id === l;
|
|
7868
8016
|
});
|
|
7869
8017
|
function m(e, t) {
|
|
7870
8018
|
a(C(C({}, d), {}, {
|
|
7871
|
-
placements:
|
|
8019
|
+
placements: rl(ec(f, e, t), r)
|
|
7872
8020
|
})), u("");
|
|
7873
8021
|
}
|
|
7874
8022
|
function h(t, n) {
|
|
@@ -7878,10 +8026,10 @@ function Lc(_ref112) {
|
|
|
7878
8026
|
}
|
|
7879
8027
|
function g(n) {
|
|
7880
8028
|
var i = l === n.id,
|
|
7881
|
-
a =
|
|
8029
|
+
a = nl(n.id, f, r, c);
|
|
7882
8030
|
return (0, t.jsx)("button", {
|
|
7883
8031
|
"aria-pressed": i,
|
|
7884
|
-
className: H(
|
|
8032
|
+
className: H(U.item, i && U.selected, a === "correct" && U.correct, a === "incorrect" && U.incorrect, a === "unanswered" && U.unanswered),
|
|
7885
8033
|
"data-status": a,
|
|
7886
8034
|
"data-testid": "classification-player-item-".concat(n.id),
|
|
7887
8035
|
disabled: e,
|
|
@@ -7893,7 +8041,7 @@ function Lc(_ref112) {
|
|
|
7893
8041
|
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("question/classification-item", n.id);
|
|
7894
8042
|
},
|
|
7895
8043
|
type: "button",
|
|
7896
|
-
children: (0, t.jsx)(
|
|
8044
|
+
children: (0, t.jsx)(q, {
|
|
7897
8045
|
content: n.content
|
|
7898
8046
|
})
|
|
7899
8047
|
}, n.id);
|
|
@@ -7901,16 +8049,16 @@ function Lc(_ref112) {
|
|
|
7901
8049
|
return (0, t.jsxs)("div", {
|
|
7902
8050
|
className: W.element,
|
|
7903
8051
|
children: [(0, t.jsxs)("div", {
|
|
7904
|
-
className:
|
|
8052
|
+
className: U.board,
|
|
7905
8053
|
children: [(0, t.jsx)("div", {
|
|
7906
|
-
className:
|
|
8054
|
+
className: U.zones,
|
|
7907
8055
|
"data-testid": "classification-zones",
|
|
7908
8056
|
children: r.categories.map(function (e) {
|
|
7909
8057
|
var n = r.items.filter(function (t) {
|
|
7910
8058
|
return f[t.id] === e.id;
|
|
7911
8059
|
});
|
|
7912
8060
|
return (0, t.jsxs)("section", {
|
|
7913
|
-
className:
|
|
8061
|
+
className: U.zone,
|
|
7914
8062
|
onClick: function onClick() {
|
|
7915
8063
|
return p ? m(p.id, e.id) : void 0;
|
|
7916
8064
|
},
|
|
@@ -7921,20 +8069,20 @@ function Lc(_ref112) {
|
|
|
7921
8069
|
return h(t, e.id);
|
|
7922
8070
|
},
|
|
7923
8071
|
children: [(0, t.jsx)("div", {
|
|
7924
|
-
className:
|
|
7925
|
-
children: (0, t.jsx)(
|
|
8072
|
+
className: U["zone-title"],
|
|
8073
|
+
children: (0, t.jsx)(q, {
|
|
7926
8074
|
content: e.content
|
|
7927
8075
|
})
|
|
7928
8076
|
}), n.length > 0 ? n.map(function (e) {
|
|
7929
8077
|
return g(e);
|
|
7930
8078
|
}) : (0, t.jsx)("span", {
|
|
7931
|
-
className:
|
|
8079
|
+
className: U.empty,
|
|
7932
8080
|
children: i.unassigned
|
|
7933
8081
|
})]
|
|
7934
8082
|
}, e.id);
|
|
7935
8083
|
})
|
|
7936
8084
|
}), (0, t.jsx)("section", {
|
|
7937
|
-
className:
|
|
8085
|
+
className: U.pool,
|
|
7938
8086
|
"data-testid": "classification-pool",
|
|
7939
8087
|
onClick: function onClick() {
|
|
7940
8088
|
return p ? m(p.id, "") : void 0;
|
|
@@ -7951,48 +8099,50 @@ function Lc(_ref112) {
|
|
|
7951
8099
|
return g(e);
|
|
7952
8100
|
})
|
|
7953
8101
|
})]
|
|
7954
|
-
}), c ? (0, t.jsx)(
|
|
7955
|
-
groups:
|
|
8102
|
+
}), c ? (0, t.jsx)(J, {
|
|
8103
|
+
groups: el(r),
|
|
7956
8104
|
title: i.standardAnswer
|
|
7957
8105
|
}) : null]
|
|
7958
8106
|
});
|
|
7959
8107
|
}
|
|
7960
|
-
function
|
|
8108
|
+
function nl(e, t, n, r) {
|
|
7961
8109
|
var i, a;
|
|
7962
8110
|
var o = (i = t[e]) == null ? "" : i,
|
|
7963
8111
|
s = (a = n.answers[e]) == null ? "" : a;
|
|
7964
8112
|
if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
|
|
7965
8113
|
}
|
|
7966
|
-
function
|
|
8114
|
+
function rl(e, t) {
|
|
7967
8115
|
return Ge(e, t.categories, t.items);
|
|
7968
8116
|
}
|
|
7969
|
-
function
|
|
8117
|
+
function il(_ref115) {
|
|
7970
8118
|
var e = _ref115.className,
|
|
7971
8119
|
n = _ref115.content,
|
|
7972
8120
|
r = _ref115.renderBlank;
|
|
7973
|
-
var
|
|
8121
|
+
var _G4 = G(),
|
|
8122
|
+
i = _G4.renderer,
|
|
8123
|
+
a = new Map();
|
|
7974
8124
|
return (0, t.jsx)("div", {
|
|
7975
|
-
className: [
|
|
8125
|
+
className: [i["rich-content"], e == null ? "" : e].filter(Boolean).join(" "),
|
|
7976
8126
|
children: n.json.map(function (e, t) {
|
|
7977
|
-
return
|
|
7978
|
-
blankIndexes:
|
|
8127
|
+
return al(e, {
|
|
8128
|
+
blankIndexes: a,
|
|
7979
8129
|
key: "node-".concat(t),
|
|
7980
8130
|
renderBlank: r
|
|
7981
8131
|
});
|
|
7982
8132
|
})
|
|
7983
8133
|
});
|
|
7984
8134
|
}
|
|
7985
|
-
function
|
|
8135
|
+
function al(e, r) {
|
|
7986
8136
|
if (_typeof(e.text) == "string") return (0, t.jsx)(n.Fragment, {
|
|
7987
8137
|
children: e.text
|
|
7988
8138
|
}, r.key);
|
|
7989
8139
|
if (e.type === "blank") return (0, t.jsx)(n.Fragment, {
|
|
7990
|
-
children:
|
|
8140
|
+
children: ol(e, r)
|
|
7991
8141
|
}, r.key);
|
|
7992
|
-
var i =
|
|
8142
|
+
var i = cl(e.children, r);
|
|
7993
8143
|
switch (e.type) {
|
|
7994
8144
|
case "heading":
|
|
7995
|
-
return
|
|
8145
|
+
return ll(e, i, r.key);
|
|
7996
8146
|
case "table":
|
|
7997
8147
|
return (0, t.jsx)("table", {
|
|
7998
8148
|
children: i
|
|
@@ -8011,29 +8161,29 @@ function Vc(e, r) {
|
|
|
8011
8161
|
}, r.key);
|
|
8012
8162
|
}
|
|
8013
8163
|
}
|
|
8014
|
-
function
|
|
8015
|
-
var n =
|
|
8016
|
-
r =
|
|
8164
|
+
function ol(e, t) {
|
|
8165
|
+
var n = ul(e.blankId),
|
|
8166
|
+
r = sl(t.blankIndexes, n);
|
|
8017
8167
|
return t.renderBlank({
|
|
8018
8168
|
blankId: n,
|
|
8019
8169
|
index: r,
|
|
8020
|
-
label:
|
|
8170
|
+
label: ul(e.label)
|
|
8021
8171
|
});
|
|
8022
8172
|
}
|
|
8023
|
-
function
|
|
8173
|
+
function sl(e, t) {
|
|
8024
8174
|
var n = e.get(t);
|
|
8025
8175
|
if (n !== void 0) return n;
|
|
8026
8176
|
var r = e.size;
|
|
8027
8177
|
return e.set(t, r), r;
|
|
8028
8178
|
}
|
|
8029
|
-
function
|
|
8179
|
+
function cl(e, t) {
|
|
8030
8180
|
return (e == null ? [] : e).map(function (e, n) {
|
|
8031
|
-
return
|
|
8181
|
+
return al(e, C(C({}, t), {}, {
|
|
8032
8182
|
key: "".concat(t.key, "-").concat(n)
|
|
8033
8183
|
}));
|
|
8034
8184
|
});
|
|
8035
8185
|
}
|
|
8036
|
-
function
|
|
8186
|
+
function ll(e, n, r) {
|
|
8037
8187
|
switch (e.level) {
|
|
8038
8188
|
case 1:
|
|
8039
8189
|
return (0, t.jsx)("h1", {
|
|
@@ -8053,10 +8203,10 @@ function Gc(e, n, r) {
|
|
|
8053
8203
|
}, r);
|
|
8054
8204
|
}
|
|
8055
8205
|
}
|
|
8056
|
-
function
|
|
8206
|
+
function ul(e) {
|
|
8057
8207
|
return _typeof(e) == "string" ? e : "";
|
|
8058
8208
|
}
|
|
8059
|
-
var
|
|
8209
|
+
var Y = {
|
|
8060
8210
|
"inline-input": "_inline-input_2je8q_1",
|
|
8061
8211
|
"inline-select": "_inline-select_2je8q_19",
|
|
8062
8212
|
"inline-blank-underline": "_inline-blank-underline_2je8q_43",
|
|
@@ -8072,17 +8222,17 @@ var J = {
|
|
|
8072
8222
|
"per-blank-candidate-list": "_per-blank-candidate-list_2je8q_140",
|
|
8073
8223
|
selected: "_selected_2je8q_161"
|
|
8074
8224
|
};
|
|
8075
|
-
function
|
|
8225
|
+
function dl(_ref116) {
|
|
8076
8226
|
var e = _ref116.answers,
|
|
8077
8227
|
n = _ref116.disabled,
|
|
8078
8228
|
r = _ref116.item,
|
|
8079
8229
|
i = _ref116.messages,
|
|
8080
8230
|
a = _ref116.onAnswerChange,
|
|
8081
8231
|
o = _ref116.structure;
|
|
8082
|
-
return (0, t.jsx)(
|
|
8232
|
+
return (0, t.jsx)(il, {
|
|
8083
8233
|
content: r.content,
|
|
8084
8234
|
renderBlank: function renderBlank(t) {
|
|
8085
|
-
return
|
|
8235
|
+
return fl(t, {
|
|
8086
8236
|
answers: e,
|
|
8087
8237
|
blankLabel: i.blankLabel,
|
|
8088
8238
|
disabled: n,
|
|
@@ -8093,15 +8243,15 @@ function qc(_ref116) {
|
|
|
8093
8243
|
}
|
|
8094
8244
|
});
|
|
8095
8245
|
}
|
|
8096
|
-
function
|
|
8246
|
+
function fl(e, n) {
|
|
8097
8247
|
var r = e.blankId,
|
|
8098
8248
|
i = n.item.blanks.indexOf(r),
|
|
8099
|
-
a =
|
|
8249
|
+
a = vl(e.label, n.blankLabel, i);
|
|
8100
8250
|
if (n.structure.config.candidateMode === "none") {
|
|
8101
|
-
var
|
|
8251
|
+
var _e3 = ml(n.answers, r);
|
|
8102
8252
|
return (0, t.jsx)("input", {
|
|
8103
8253
|
"aria-label": a,
|
|
8104
|
-
className:
|
|
8254
|
+
className: Y["inline-input"],
|
|
8105
8255
|
disabled: n.disabled,
|
|
8106
8256
|
onChange: function onChange(e) {
|
|
8107
8257
|
return n.onAnswerChange(r, {
|
|
@@ -8109,29 +8259,29 @@ function Jc(e, n) {
|
|
|
8109
8259
|
value: e.target.value
|
|
8110
8260
|
});
|
|
8111
8261
|
},
|
|
8112
|
-
value: (
|
|
8262
|
+
value: (_e3 == null ? void 0 : _e3.kind) === "text" ? _e3.value : ""
|
|
8113
8263
|
});
|
|
8114
8264
|
}
|
|
8115
|
-
if (n.structure.config.candidateMode === "sharedPool") return
|
|
8116
|
-
var o =
|
|
8117
|
-
s =
|
|
8265
|
+
if (n.structure.config.candidateMode === "sharedPool") return pl(r, a, n);
|
|
8266
|
+
var o = ml(n.answers, r),
|
|
8267
|
+
s = gl(n.item, r, n.structure.config.candidateMode, o);
|
|
8118
8268
|
return (0, t.jsx)("span", {
|
|
8119
8269
|
"aria-label": a,
|
|
8120
|
-
className:
|
|
8121
|
-
children: s ? (0, t.jsx)(
|
|
8122
|
-
className:
|
|
8270
|
+
className: Y["inline-blank-underline"],
|
|
8271
|
+
children: s ? (0, t.jsx)(q, {
|
|
8272
|
+
className: Y["inline-blank-content"],
|
|
8123
8273
|
content: s.content
|
|
8124
8274
|
}) : a
|
|
8125
8275
|
});
|
|
8126
8276
|
}
|
|
8127
|
-
function
|
|
8277
|
+
function pl(e, n, r) {
|
|
8128
8278
|
var i, a;
|
|
8129
|
-
var o =
|
|
8279
|
+
var o = ml(r.answers, e),
|
|
8130
8280
|
s = (i = ((o == null ? void 0 : o.kind) === "option" ? o.optionIds : []).slice(0, 1)[0]) == null ? "" : i,
|
|
8131
|
-
c =
|
|
8281
|
+
c = _l(r.answers, e);
|
|
8132
8282
|
return (0, t.jsxs)("select", {
|
|
8133
8283
|
"aria-label": n,
|
|
8134
|
-
className:
|
|
8284
|
+
className: Y["inline-select"],
|
|
8135
8285
|
disabled: r.disabled,
|
|
8136
8286
|
onChange: function onChange(t) {
|
|
8137
8287
|
return r.onAnswerChange(e, {
|
|
@@ -8152,7 +8302,7 @@ function Yc(e, n, r) {
|
|
|
8152
8302
|
})]
|
|
8153
8303
|
});
|
|
8154
8304
|
}
|
|
8155
|
-
function
|
|
8305
|
+
function ml(e, t) {
|
|
8156
8306
|
var n;
|
|
8157
8307
|
return (n = Object.entries(e).find(function (_ref117) {
|
|
8158
8308
|
var _ref118 = _slicedToArray(_ref117, 1),
|
|
@@ -8160,7 +8310,7 @@ function Xc(e, t) {
|
|
|
8160
8310
|
return e === t;
|
|
8161
8311
|
})) == null ? void 0 : n[1];
|
|
8162
8312
|
}
|
|
8163
|
-
function
|
|
8313
|
+
function hl(e, t, n) {
|
|
8164
8314
|
var r, i;
|
|
8165
8315
|
if (n === "sharedPool") {
|
|
8166
8316
|
var a;
|
|
@@ -8170,26 +8320,26 @@ function Zc(e, t, n) {
|
|
|
8170
8320
|
return e.blankId === t;
|
|
8171
8321
|
})) == null ? void 0 : i.options) == null ? [] : r;
|
|
8172
8322
|
}
|
|
8173
|
-
function
|
|
8323
|
+
function gl(e, t, n, r) {
|
|
8174
8324
|
var i = (r == null ? void 0 : r.kind) === "option" ? r.optionIds[0] : void 0;
|
|
8175
|
-
if (i) return
|
|
8325
|
+
if (i) return hl(e, t, n).find(function (e) {
|
|
8176
8326
|
return e.optionId === i;
|
|
8177
8327
|
});
|
|
8178
8328
|
}
|
|
8179
|
-
function
|
|
8329
|
+
function _l(e, t) {
|
|
8180
8330
|
var n = new Set(),
|
|
8181
8331
|
r = Object.entries(e);
|
|
8182
|
-
for (var
|
|
8183
|
-
var
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
if (
|
|
8187
|
-
var _iterator = _createForOfIteratorHelper(
|
|
8332
|
+
for (var _i3 = 0, _r7 = r; _i3 < _r7.length; _i3++) {
|
|
8333
|
+
var _r7$_i = _slicedToArray(_r7[_i3], 2),
|
|
8334
|
+
_e4 = _r7$_i[0],
|
|
8335
|
+
_i4 = _r7$_i[1];
|
|
8336
|
+
if (_e4 !== t && _i4.kind === "option") {
|
|
8337
|
+
var _iterator = _createForOfIteratorHelper(_i4.optionIds),
|
|
8188
8338
|
_step;
|
|
8189
8339
|
try {
|
|
8190
8340
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8191
|
-
var
|
|
8192
|
-
n.add(
|
|
8341
|
+
var _e5 = _step.value;
|
|
8342
|
+
n.add(_e5);
|
|
8193
8343
|
}
|
|
8194
8344
|
} catch (err) {
|
|
8195
8345
|
_iterator.e(err);
|
|
@@ -8200,10 +8350,10 @@ function $c(e, t) {
|
|
|
8200
8350
|
}
|
|
8201
8351
|
return n;
|
|
8202
8352
|
}
|
|
8203
|
-
function
|
|
8353
|
+
function vl(e, t, n) {
|
|
8204
8354
|
return e || "".concat(t, " ").concat(n + 1);
|
|
8205
8355
|
}
|
|
8206
|
-
function
|
|
8356
|
+
function yl(_ref119) {
|
|
8207
8357
|
var e = _ref119.disabled,
|
|
8208
8358
|
n = _ref119.element,
|
|
8209
8359
|
r = _ref119.item,
|
|
@@ -8219,7 +8369,7 @@ function tl(_ref119) {
|
|
|
8219
8369
|
return {
|
|
8220
8370
|
kind: "detailed",
|
|
8221
8371
|
contents: e.contents.map(function (e, r) {
|
|
8222
|
-
return (0, t.jsx)(
|
|
8372
|
+
return (0, t.jsx)(q, {
|
|
8223
8373
|
content: e
|
|
8224
8374
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
8225
8375
|
}),
|
|
@@ -8232,40 +8382,40 @@ function tl(_ref119) {
|
|
|
8232
8382
|
}));
|
|
8233
8383
|
}
|
|
8234
8384
|
return (0, t.jsxs)("div", {
|
|
8235
|
-
className:
|
|
8236
|
-
children: [(0, t.jsx)(
|
|
8385
|
+
className: K["fill-text"],
|
|
8386
|
+
children: [(0, t.jsx)(dl, {
|
|
8237
8387
|
answers: d.answers,
|
|
8238
8388
|
disabled: e,
|
|
8239
8389
|
item: l,
|
|
8240
8390
|
messages: i,
|
|
8241
8391
|
onAnswerChange: p,
|
|
8242
8392
|
structure: n
|
|
8243
|
-
}),
|
|
8393
|
+
}), bl(l, n.config.candidateMode, i.candidateOptions), xl({
|
|
8244
8394
|
disabled: e,
|
|
8245
8395
|
item: l,
|
|
8246
8396
|
onAnswerChange: p,
|
|
8247
8397
|
responseItem: d
|
|
8248
|
-
}), c ? (0, t.jsx)(
|
|
8398
|
+
}), c ? (0, t.jsx)(J, {
|
|
8249
8399
|
groups: f,
|
|
8250
8400
|
title: i.standardAnswer
|
|
8251
8401
|
}) : null]
|
|
8252
8402
|
});
|
|
8253
8403
|
}
|
|
8254
|
-
function
|
|
8404
|
+
function bl(e, n, r) {
|
|
8255
8405
|
var i;
|
|
8256
8406
|
var a = (i = e.candidateOptions) == null ? [] : i;
|
|
8257
8407
|
return n !== "sharedPool" || a.length === 0 ? null : (0, t.jsxs)("div", {
|
|
8258
|
-
className:
|
|
8408
|
+
className: Y["shared-candidate-section"],
|
|
8259
8409
|
children: [(0, t.jsx)("span", {
|
|
8260
|
-
className:
|
|
8410
|
+
className: Y["shared-candidate-title"],
|
|
8261
8411
|
children: r
|
|
8262
8412
|
}), (0, t.jsx)("ol", {
|
|
8263
|
-
className:
|
|
8413
|
+
className: Y["shared-candidate-list"],
|
|
8264
8414
|
children: a.map(function (e) {
|
|
8265
8415
|
return (0, t.jsx)("li", {
|
|
8266
|
-
className:
|
|
8267
|
-
children: (0, t.jsx)(
|
|
8268
|
-
className:
|
|
8416
|
+
className: Y["shared-candidate-item"],
|
|
8417
|
+
children: (0, t.jsx)(q, {
|
|
8418
|
+
className: Y["shared-candidate-content"],
|
|
8269
8419
|
content: e.content
|
|
8270
8420
|
})
|
|
8271
8421
|
}, e.optionId);
|
|
@@ -8273,7 +8423,7 @@ function nl(e, n, r) {
|
|
|
8273
8423
|
})]
|
|
8274
8424
|
});
|
|
8275
8425
|
}
|
|
8276
|
-
function
|
|
8426
|
+
function xl(_ref120) {
|
|
8277
8427
|
var e = _ref120.disabled,
|
|
8278
8428
|
n = _ref120.item,
|
|
8279
8429
|
r = _ref120.onAnswerChange,
|
|
@@ -8289,11 +8439,11 @@ function rl(_ref120) {
|
|
|
8289
8439
|
}]) : e;
|
|
8290
8440
|
}, []);
|
|
8291
8441
|
return a.length === 0 ? null : (0, t.jsx)("div", {
|
|
8292
|
-
className:
|
|
8442
|
+
className: Y["per-blank-candidate-options"],
|
|
8293
8443
|
children: a.map(function (_ref121) {
|
|
8294
8444
|
var t = _ref121.group,
|
|
8295
8445
|
n = _ref121.marker;
|
|
8296
|
-
return
|
|
8446
|
+
return Sl({
|
|
8297
8447
|
disabled: e,
|
|
8298
8448
|
group: t,
|
|
8299
8449
|
marker: n,
|
|
@@ -8303,7 +8453,7 @@ function rl(_ref120) {
|
|
|
8303
8453
|
})
|
|
8304
8454
|
});
|
|
8305
8455
|
}
|
|
8306
|
-
function
|
|
8456
|
+
function Sl(_ref122) {
|
|
8307
8457
|
var e = _ref122.disabled,
|
|
8308
8458
|
n = _ref122.group,
|
|
8309
8459
|
r = _ref122.marker,
|
|
@@ -8312,14 +8462,14 @@ function il(_ref122) {
|
|
|
8312
8462
|
var o = a.answers[n.blankId];
|
|
8313
8463
|
return (0, t.jsxs)("section", {
|
|
8314
8464
|
"aria-label": r,
|
|
8315
|
-
className:
|
|
8465
|
+
className: Y["per-blank-candidate-group"],
|
|
8316
8466
|
children: [(0, t.jsx)("span", {
|
|
8317
|
-
className:
|
|
8467
|
+
className: Y["per-blank-candidate-title"],
|
|
8318
8468
|
children: r
|
|
8319
8469
|
}), (0, t.jsx)("div", {
|
|
8320
|
-
className:
|
|
8470
|
+
className: Y["per-blank-candidate-list"],
|
|
8321
8471
|
children: n.options.map(function (t) {
|
|
8322
|
-
return
|
|
8472
|
+
return Cl({
|
|
8323
8473
|
activeAnswer: o,
|
|
8324
8474
|
blankId: n.blankId,
|
|
8325
8475
|
disabled: e,
|
|
@@ -8330,7 +8480,7 @@ function il(_ref122) {
|
|
|
8330
8480
|
})]
|
|
8331
8481
|
}, n.blankId);
|
|
8332
8482
|
}
|
|
8333
|
-
function
|
|
8483
|
+
function Cl(_ref123) {
|
|
8334
8484
|
var e = _ref123.activeAnswer,
|
|
8335
8485
|
n = _ref123.blankId,
|
|
8336
8486
|
r = _ref123.disabled,
|
|
@@ -8339,19 +8489,19 @@ function al(_ref123) {
|
|
|
8339
8489
|
var o = (e == null ? void 0 : e.kind) === "option" && e.optionIds.includes(a.optionId);
|
|
8340
8490
|
return (0, t.jsx)("button", {
|
|
8341
8491
|
"aria-pressed": o,
|
|
8342
|
-
className: o ?
|
|
8492
|
+
className: o ? Y.selected : void 0,
|
|
8343
8493
|
"data-selected": o ? "true" : void 0,
|
|
8344
8494
|
disabled: r,
|
|
8345
8495
|
onClick: function onClick() {
|
|
8346
8496
|
return i(n, Zs(e, a.optionId, "single"));
|
|
8347
8497
|
},
|
|
8348
8498
|
type: "button",
|
|
8349
|
-
children: (0, t.jsx)(
|
|
8499
|
+
children: (0, t.jsx)(q, {
|
|
8350
8500
|
content: a.content
|
|
8351
8501
|
})
|
|
8352
8502
|
}, a.optionId);
|
|
8353
8503
|
}
|
|
8354
|
-
var
|
|
8504
|
+
var X = {
|
|
8355
8505
|
"choice-button": "_choice-button_3nny2_1",
|
|
8356
8506
|
"table-row-button": "_table-row-button_3nny2_2",
|
|
8357
8507
|
"judgement-button": "_judgement-button_3nny2_28",
|
|
@@ -8364,7 +8514,7 @@ var Y = {
|
|
|
8364
8514
|
"option-marker": "_option-marker_3nny2_86",
|
|
8365
8515
|
"table-option-marker": "_table-option-marker_3nny2_87"
|
|
8366
8516
|
};
|
|
8367
|
-
function
|
|
8517
|
+
function wl(_ref124) {
|
|
8368
8518
|
var e = _ref124.disabled,
|
|
8369
8519
|
n = _ref124.element,
|
|
8370
8520
|
r = _ref124.item,
|
|
@@ -8388,17 +8538,17 @@ function ol(_ref124) {
|
|
|
8388
8538
|
return (0, t.jsxs)("div", {
|
|
8389
8539
|
className: W.element,
|
|
8390
8540
|
children: [(0, t.jsx)("ol", {
|
|
8391
|
-
className: H(W["judgement-list"],
|
|
8541
|
+
className: H(W["judgement-list"], X["judgement-list"]),
|
|
8392
8542
|
children: u.map(function (_ref125) {
|
|
8393
8543
|
var n = _ref125.label,
|
|
8394
8544
|
r = _ref125.value;
|
|
8395
8545
|
var i = l.selectedValues[0] === r;
|
|
8396
8546
|
return (0, t.jsx)("li", {
|
|
8397
|
-
className: H(W["judgement-item"],
|
|
8547
|
+
className: H(W["judgement-item"], X["judgement-option"], i && X.selected),
|
|
8398
8548
|
"data-selected": i ? "true" : void 0,
|
|
8399
8549
|
children: (0, t.jsx)("button", {
|
|
8400
8550
|
"aria-pressed": i,
|
|
8401
|
-
className:
|
|
8551
|
+
className: X["judgement-button"],
|
|
8402
8552
|
disabled: e,
|
|
8403
8553
|
onClick: function onClick() {
|
|
8404
8554
|
return f(r);
|
|
@@ -8408,14 +8558,14 @@ function ol(_ref124) {
|
|
|
8408
8558
|
})
|
|
8409
8559
|
}, String(r));
|
|
8410
8560
|
})
|
|
8411
|
-
}), c ? (0, t.jsx)(
|
|
8561
|
+
}), c ? (0, t.jsx)(J, {
|
|
8412
8562
|
groups: d,
|
|
8413
8563
|
title: i.standardAnswer
|
|
8414
8564
|
}) : null]
|
|
8415
8565
|
});
|
|
8416
8566
|
}
|
|
8417
|
-
function
|
|
8418
|
-
var n =
|
|
8567
|
+
function Tl(e) {
|
|
8568
|
+
var n = El(e);
|
|
8419
8569
|
return e.columns.reduce(function (r, i, a) {
|
|
8420
8570
|
var o = i.items.map(function (r, o) {
|
|
8421
8571
|
var s;
|
|
@@ -8427,7 +8577,7 @@ function sl(e) {
|
|
|
8427
8577
|
}).filter(function (e) {
|
|
8428
8578
|
return !!e;
|
|
8429
8579
|
}).map(function (e, n) {
|
|
8430
|
-
return (0, t.jsx)(
|
|
8580
|
+
return (0, t.jsx)(q, {
|
|
8431
8581
|
content: e.content
|
|
8432
8582
|
}, "".concat(r.itemId, "-").concat(e.itemId, "-").concat(n));
|
|
8433
8583
|
}),
|
|
@@ -8437,7 +8587,7 @@ function sl(e) {
|
|
|
8437
8587
|
return [].concat(_toConsumableArray(r), _toConsumableArray(o));
|
|
8438
8588
|
}, []);
|
|
8439
8589
|
}
|
|
8440
|
-
function
|
|
8590
|
+
function El(e) {
|
|
8441
8591
|
return e.columns.reduce(function (e, t, n) {
|
|
8442
8592
|
return t.items.forEach(function (t) {
|
|
8443
8593
|
return e.set(t.itemId, {
|
|
@@ -8447,7 +8597,7 @@ function cl(e) {
|
|
|
8447
8597
|
}), e;
|
|
8448
8598
|
}, new Map());
|
|
8449
8599
|
}
|
|
8450
|
-
function
|
|
8600
|
+
function Dl(_ref126) {
|
|
8451
8601
|
var e = _ref126.disabled,
|
|
8452
8602
|
r = _ref126.item,
|
|
8453
8603
|
i = _ref126.messages,
|
|
@@ -8603,7 +8753,7 @@ function ll(_ref126) {
|
|
|
8603
8753
|
children: [o ? (0, t.jsx)("span", {
|
|
8604
8754
|
className: L.marker,
|
|
8605
8755
|
children: o
|
|
8606
|
-
}) : null, (0, t.jsx)(
|
|
8756
|
+
}) : null, (0, t.jsx)(q, {
|
|
8607
8757
|
content: i.content
|
|
8608
8758
|
})]
|
|
8609
8759
|
})
|
|
@@ -8612,13 +8762,18 @@ function ll(_ref126) {
|
|
|
8612
8762
|
}, n.columnId);
|
|
8613
8763
|
})
|
|
8614
8764
|
})]
|
|
8615
|
-
}), c ? (0, t.jsx)(
|
|
8616
|
-
groups:
|
|
8765
|
+
}), c ? (0, t.jsx)(J, {
|
|
8766
|
+
groups: Tl(r),
|
|
8617
8767
|
title: i.standardAnswer
|
|
8618
8768
|
}) : null]
|
|
8619
8769
|
});
|
|
8620
8770
|
}
|
|
8621
|
-
|
|
8771
|
+
var Ol = {
|
|
8772
|
+
path: "_path_11o60_1",
|
|
8773
|
+
endpoint: "_endpoint_11o60_7",
|
|
8774
|
+
separator: "_separator_11o60_8"
|
|
8775
|
+
};
|
|
8776
|
+
function kl(e) {
|
|
8622
8777
|
var n, r;
|
|
8623
8778
|
var i = e.columns[0],
|
|
8624
8779
|
a = e.columns[1],
|
|
@@ -8633,7 +8788,7 @@ function ul(e) {
|
|
|
8633
8788
|
var n = o.get(t);
|
|
8634
8789
|
return n ? [].concat(_toConsumableArray(e), [n]) : e;
|
|
8635
8790
|
}, []).map(function (e, r) {
|
|
8636
|
-
return (0, t.jsx)(
|
|
8791
|
+
return (0, t.jsx)(q, {
|
|
8637
8792
|
content: e.content
|
|
8638
8793
|
}, "".concat(n.itemId, "-").concat(e.itemId, "-").concat(r));
|
|
8639
8794
|
}),
|
|
@@ -8641,7 +8796,45 @@ function ul(e) {
|
|
|
8641
8796
|
};
|
|
8642
8797
|
});
|
|
8643
8798
|
}
|
|
8644
|
-
|
|
8799
|
+
function Al(e) {
|
|
8800
|
+
var n, r;
|
|
8801
|
+
var i = e.columns[0],
|
|
8802
|
+
a = e.columns[1],
|
|
8803
|
+
o = new Map((n = a == null ? void 0 : a.items.map(function (e, t) {
|
|
8804
|
+
return [e.itemId, {
|
|
8805
|
+
item: e,
|
|
8806
|
+
itemIndex: t
|
|
8807
|
+
}];
|
|
8808
|
+
})) == null ? [] : n);
|
|
8809
|
+
return ((r = i == null ? void 0 : i.items) == null ? [] : r).map(function (n, r) {
|
|
8810
|
+
var s, c;
|
|
8811
|
+
var l = (s = e.answers[n.itemId]) == null ? void 0 : s[0],
|
|
8812
|
+
u = l ? o.get(l) : void 0;
|
|
8813
|
+
return {
|
|
8814
|
+
contents: u && a ? [(0, t.jsxs)("div", {
|
|
8815
|
+
className: Ol.path,
|
|
8816
|
+
children: [(0, t.jsx)("span", {
|
|
8817
|
+
className: Ol.endpoint,
|
|
8818
|
+
children: jl(i, n, r)
|
|
8819
|
+
}), (0, t.jsx)("span", {
|
|
8820
|
+
className: Ol.separator,
|
|
8821
|
+
children: "-"
|
|
8822
|
+
}), (0, t.jsx)("span", {
|
|
8823
|
+
className: Ol.endpoint,
|
|
8824
|
+
children: jl(a, u.item, u.itemIndex)
|
|
8825
|
+
})]
|
|
8826
|
+
}, "".concat(n.itemId, "-").concat(u.item.itemId))] : [],
|
|
8827
|
+
kind: "detailed",
|
|
8828
|
+
marker: u ? "" : $t((c = i == null ? void 0 : i.labelStyle) == null ? "number" : c, r)
|
|
8829
|
+
};
|
|
8830
|
+
});
|
|
8831
|
+
}
|
|
8832
|
+
function jl(e, n, r) {
|
|
8833
|
+
return $t(e.labelStyle, r) || (0, t.jsx)(q, {
|
|
8834
|
+
content: n.content
|
|
8835
|
+
});
|
|
8836
|
+
}
|
|
8837
|
+
var Ml = {
|
|
8645
8838
|
board: "_board_1q6ar_1",
|
|
8646
8839
|
"matched-rows": "_matched-rows_1q6ar_6",
|
|
8647
8840
|
"matched-row": "_matched-row_1q6ar_6",
|
|
@@ -8652,7 +8845,7 @@ var dl = {
|
|
|
8652
8845
|
matched: "_matched_1q6ar_6",
|
|
8653
8846
|
marker: "_marker_1q6ar_66"
|
|
8654
8847
|
};
|
|
8655
|
-
function
|
|
8848
|
+
function Nl(_ref131) {
|
|
8656
8849
|
var e = _ref131.disabled,
|
|
8657
8850
|
r = _ref131.item,
|
|
8658
8851
|
i = _ref131.messages,
|
|
@@ -8665,7 +8858,7 @@ function fl(_ref131) {
|
|
|
8665
8858
|
l = _ref133[0],
|
|
8666
8859
|
u = _ref133[1],
|
|
8667
8860
|
d = Ws(o, s),
|
|
8668
|
-
f =
|
|
8861
|
+
f = Pl(r, d.connections);
|
|
8669
8862
|
function p(t, n) {
|
|
8670
8863
|
if (e) return;
|
|
8671
8864
|
var r = l ? ct(l, {
|
|
@@ -8687,7 +8880,7 @@ function fl(_ref131) {
|
|
|
8687
8880
|
var i = (l == null ? void 0 : l.itemId) === n.item.itemId;
|
|
8688
8881
|
return (0, t.jsxs)("button", {
|
|
8689
8882
|
"aria-pressed": i,
|
|
8690
|
-
className: H(
|
|
8883
|
+
className: H(Ml.item, i && Ml.selected, r && Ml.matched),
|
|
8691
8884
|
"data-testid": "matching-player-item-".concat(n.item.itemId),
|
|
8692
8885
|
disabled: e,
|
|
8693
8886
|
onClick: function onClick() {
|
|
@@ -8695,9 +8888,9 @@ function fl(_ref131) {
|
|
|
8695
8888
|
},
|
|
8696
8889
|
type: "button",
|
|
8697
8890
|
children: [n.marker ? (0, t.jsx)("span", {
|
|
8698
|
-
className:
|
|
8891
|
+
className: Ml.marker,
|
|
8699
8892
|
children: n.marker
|
|
8700
|
-
}) : null, (0, t.jsx)(
|
|
8893
|
+
}) : null, (0, t.jsx)(q, {
|
|
8701
8894
|
content: n.item.content
|
|
8702
8895
|
})]
|
|
8703
8896
|
}, n.item.itemId);
|
|
@@ -8705,12 +8898,12 @@ function fl(_ref131) {
|
|
|
8705
8898
|
return (0, t.jsxs)("div", {
|
|
8706
8899
|
className: W.element,
|
|
8707
8900
|
children: [(0, t.jsxs)("div", {
|
|
8708
|
-
className:
|
|
8901
|
+
className: Ml.board,
|
|
8709
8902
|
children: [f.rows.length > 0 ? (0, t.jsx)("div", {
|
|
8710
|
-
className:
|
|
8903
|
+
className: Ml["matched-rows"],
|
|
8711
8904
|
children: f.rows.map(function (e) {
|
|
8712
8905
|
return (0, t.jsxs)("div", {
|
|
8713
|
-
className:
|
|
8906
|
+
className: Ml["matched-row"],
|
|
8714
8907
|
"data-testid": "matching-player-row-".concat(e.from.item.itemId, "-").concat(e.to.item.itemId),
|
|
8715
8908
|
children: [m(e.from, !0), m(e.to, !0)]
|
|
8716
8909
|
}, "".concat(e.from.item.itemId, "-").concat(e.to.item.itemId));
|
|
@@ -8718,24 +8911,24 @@ function fl(_ref131) {
|
|
|
8718
8911
|
}) : null, f.unmatchedColumns.some(function (e) {
|
|
8719
8912
|
return e.length > 0;
|
|
8720
8913
|
}) ? (0, t.jsx)("div", {
|
|
8721
|
-
className:
|
|
8914
|
+
className: Ml.columns,
|
|
8722
8915
|
children: f.unmatchedColumns.map(function (e, n) {
|
|
8723
8916
|
var i, a;
|
|
8724
8917
|
return (0, t.jsx)("section", {
|
|
8725
|
-
className:
|
|
8918
|
+
className: Ml.column,
|
|
8726
8919
|
children: e.map(function (e) {
|
|
8727
8920
|
return m(e, !1);
|
|
8728
8921
|
})
|
|
8729
8922
|
}, (i = (a = r.columns[n]) == null ? void 0 : a.columnId) == null ? n : i);
|
|
8730
8923
|
})
|
|
8731
8924
|
}) : null]
|
|
8732
|
-
}), c ? (0, t.jsx)(
|
|
8733
|
-
groups:
|
|
8925
|
+
}), c ? (0, t.jsx)(J, {
|
|
8926
|
+
groups: kl(r),
|
|
8734
8927
|
title: i.standardAnswer
|
|
8735
8928
|
}) : null]
|
|
8736
8929
|
});
|
|
8737
8930
|
}
|
|
8738
|
-
function
|
|
8931
|
+
function Pl(e, t) {
|
|
8739
8932
|
var n;
|
|
8740
8933
|
var r = e.columns.map(function (e, t) {
|
|
8741
8934
|
return e.items.map(function (n, r) {
|
|
@@ -8773,7 +8966,7 @@ function pl(e, t) {
|
|
|
8773
8966
|
})
|
|
8774
8967
|
};
|
|
8775
8968
|
}
|
|
8776
|
-
function
|
|
8969
|
+
function Fl(e, t) {
|
|
8777
8970
|
return an(t, e.config.optionLabelStyle).map(function (e) {
|
|
8778
8971
|
return {
|
|
8779
8972
|
kind: "markerOnly",
|
|
@@ -8781,7 +8974,7 @@ function ml(e, t) {
|
|
|
8781
8974
|
};
|
|
8782
8975
|
});
|
|
8783
8976
|
}
|
|
8784
|
-
function
|
|
8977
|
+
function Il(_ref134) {
|
|
8785
8978
|
var e = _ref134.availableWidth,
|
|
8786
8979
|
t = _ref134.columnGap,
|
|
8787
8980
|
n = _ref134.optionCount,
|
|
@@ -8791,57 +8984,59 @@ function hl(_ref134) {
|
|
|
8791
8984
|
for (var _n5 = i; _n5 >= 2; --_n5) if (i % _n5 === 0 && (e - Math.max(0, t) * (_n5 - 1)) / _n5 >= r) return _n5;
|
|
8792
8985
|
return 1;
|
|
8793
8986
|
}
|
|
8794
|
-
var
|
|
8987
|
+
var Ll = {
|
|
8795
8988
|
list: "_list_1xo1n_1"
|
|
8796
8989
|
};
|
|
8797
|
-
function
|
|
8990
|
+
function Rl(_ref135) {
|
|
8798
8991
|
var e = _ref135.children;
|
|
8799
|
-
var
|
|
8992
|
+
var _G5 = G(),
|
|
8993
|
+
r = _G5.renderer,
|
|
8994
|
+
i = (0, n.useRef)(null),
|
|
8800
8995
|
_ref136 = (0, n.useState)(1),
|
|
8801
8996
|
_ref137 = _slicedToArray(_ref136, 2),
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
gridTemplateColumns: "repeat(".concat(
|
|
8997
|
+
a = _ref137[0],
|
|
8998
|
+
o = _ref137[1],
|
|
8999
|
+
s = {
|
|
9000
|
+
gridTemplateColumns: "repeat(".concat(a, ", minmax(0, 1fr))")
|
|
8806
9001
|
};
|
|
8807
9002
|
return (0, n.useLayoutEffect)(function () {
|
|
8808
|
-
if (!
|
|
8809
|
-
var t =
|
|
8810
|
-
|
|
8811
|
-
function
|
|
9003
|
+
if (!i.current) return;
|
|
9004
|
+
var t = i.current,
|
|
9005
|
+
r = null;
|
|
9006
|
+
function a() {
|
|
8812
9007
|
var r = t.getBoundingClientRect().width,
|
|
8813
9008
|
i = Number.parseFloat(getComputedStyle(t).columnGap) || 0,
|
|
8814
|
-
|
|
8815
|
-
s =
|
|
9009
|
+
a = zl(t),
|
|
9010
|
+
s = Il({
|
|
8816
9011
|
availableWidth: r,
|
|
8817
9012
|
columnGap: i,
|
|
8818
9013
|
optionCount: n.Children.count(e),
|
|
8819
|
-
widestOptionWidth:
|
|
9014
|
+
widestOptionWidth: a
|
|
8820
9015
|
});
|
|
8821
|
-
|
|
9016
|
+
o(function (e) {
|
|
8822
9017
|
return e === s ? e : s;
|
|
8823
9018
|
});
|
|
8824
9019
|
}
|
|
8825
9020
|
function s() {
|
|
8826
|
-
|
|
9021
|
+
r !== null && cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
8827
9022
|
}
|
|
8828
|
-
if (
|
|
8829
|
-
|
|
9023
|
+
if (a(), t.addEventListener("load", s, !0), (typeof ResizeObserver === "undefined" ? "undefined" : _typeof(ResizeObserver)) > "u") return window.addEventListener("resize", s), function () {
|
|
9024
|
+
r !== null && cancelAnimationFrame(r), t.removeEventListener("load", s, !0), window.removeEventListener("resize", s);
|
|
8830
9025
|
};
|
|
8831
9026
|
var c = new ResizeObserver(s);
|
|
8832
9027
|
return c.observe(t), function () {
|
|
8833
|
-
|
|
9028
|
+
r !== null && cancelAnimationFrame(r), t.removeEventListener("load", s, !0), c.disconnect();
|
|
8834
9029
|
};
|
|
8835
9030
|
}), (0, t.jsx)("ol", {
|
|
8836
|
-
className: "".concat(
|
|
8837
|
-
"data-column-count":
|
|
9031
|
+
className: "".concat(r["option-list"], " ").concat(Ll.list),
|
|
9032
|
+
"data-column-count": a,
|
|
8838
9033
|
"data-question-option-grid": "true",
|
|
8839
|
-
ref:
|
|
8840
|
-
style:
|
|
9034
|
+
ref: i,
|
|
9035
|
+
style: s,
|
|
8841
9036
|
children: e
|
|
8842
9037
|
});
|
|
8843
9038
|
}
|
|
8844
|
-
function
|
|
9039
|
+
function zl(e) {
|
|
8845
9040
|
var t = e.parentElement;
|
|
8846
9041
|
if (!t || e.children.length === 0) return 0;
|
|
8847
9042
|
var n = e.cloneNode(!1);
|
|
@@ -8860,13 +9055,7 @@ function vl(e) {
|
|
|
8860
9055
|
var r = n.getBoundingClientRect().width;
|
|
8861
9056
|
return n.remove(), r;
|
|
8862
9057
|
}
|
|
8863
|
-
|
|
8864
|
-
"table-wrap": "_table-wrap_n67ah_1",
|
|
8865
|
-
table: "_table_n67ah_1",
|
|
8866
|
-
"table-option-column": "_table-option-column_n67ah_17",
|
|
8867
|
-
"table-option-marker": "_table-option-marker_n67ah_45"
|
|
8868
|
-
};
|
|
8869
|
-
function bl(_ref138) {
|
|
9058
|
+
function Bl(_ref138) {
|
|
8870
9059
|
var e = _ref138.disabled,
|
|
8871
9060
|
n = _ref138.element,
|
|
8872
9061
|
r = _ref138.item,
|
|
@@ -8883,16 +9072,16 @@ function bl(_ref138) {
|
|
|
8883
9072
|
}));
|
|
8884
9073
|
}
|
|
8885
9074
|
if (n.config.renderer === "table") {
|
|
8886
|
-
var
|
|
9075
|
+
var _a4 = Fl(n, r);
|
|
8887
9076
|
return (0, t.jsxs)("div", {
|
|
8888
9077
|
className: W.element,
|
|
8889
9078
|
children: [(0, t.jsx)("div", {
|
|
8890
|
-
className:
|
|
9079
|
+
className: Mc["table-wrap"],
|
|
8891
9080
|
children: (0, t.jsxs)("table", {
|
|
8892
|
-
className:
|
|
9081
|
+
className: Mc.table,
|
|
8893
9082
|
children: [(0, t.jsxs)("colgroup", {
|
|
8894
9083
|
children: [(0, t.jsx)("col", {
|
|
8895
|
-
className:
|
|
9084
|
+
className: Mc["table-option-column"]
|
|
8896
9085
|
}), r.columns.map(function (e) {
|
|
8897
9086
|
return (0, t.jsx)("col", {}, e.id);
|
|
8898
9087
|
})]
|
|
@@ -8902,7 +9091,7 @@ function bl(_ref138) {
|
|
|
8902
9091
|
children: i.option
|
|
8903
9092
|
}), r.columns.map(function (e) {
|
|
8904
9093
|
return (0, t.jsx)("th", {
|
|
8905
|
-
children: (0, t.jsx)(
|
|
9094
|
+
children: (0, t.jsx)(q, {
|
|
8906
9095
|
content: e.content
|
|
8907
9096
|
})
|
|
8908
9097
|
}, e.id);
|
|
@@ -8912,11 +9101,11 @@ function bl(_ref138) {
|
|
|
8912
9101
|
children: u.map(function (n) {
|
|
8913
9102
|
var r = l.selectedOptionIds.includes(n.optionId);
|
|
8914
9103
|
return (0, t.jsxs)("tr", {
|
|
8915
|
-
className:
|
|
9104
|
+
className: X["table-choice-row"],
|
|
8916
9105
|
"data-selected": r ? "true" : void 0,
|
|
8917
9106
|
children: [(0, t.jsx)("td", {
|
|
8918
9107
|
children: (0, t.jsx)("button", {
|
|
8919
|
-
className:
|
|
9108
|
+
className: X["table-row-button"],
|
|
8920
9109
|
disabled: e,
|
|
8921
9110
|
"aria-pressed": r,
|
|
8922
9111
|
onClick: function onClick() {
|
|
@@ -8924,7 +9113,7 @@ function bl(_ref138) {
|
|
|
8924
9113
|
},
|
|
8925
9114
|
type: "button",
|
|
8926
9115
|
children: (0, t.jsx)("span", {
|
|
8927
|
-
className: H(W.marker,
|
|
9116
|
+
className: H(W.marker, X["table-option-marker"]),
|
|
8928
9117
|
"data-selected": r ? "true" : void 0,
|
|
8929
9118
|
children: n.marker
|
|
8930
9119
|
})
|
|
@@ -8932,14 +9121,14 @@ function bl(_ref138) {
|
|
|
8932
9121
|
}), n.cells.map(function (i, a) {
|
|
8933
9122
|
return (0, t.jsx)("td", {
|
|
8934
9123
|
children: (0, t.jsx)("button", {
|
|
8935
|
-
className:
|
|
9124
|
+
className: X["table-row-button"],
|
|
8936
9125
|
disabled: e,
|
|
8937
9126
|
"aria-pressed": r,
|
|
8938
9127
|
onClick: function onClick() {
|
|
8939
9128
|
return d(n.optionId);
|
|
8940
9129
|
},
|
|
8941
9130
|
type: "button",
|
|
8942
|
-
children: (0, t.jsx)(
|
|
9131
|
+
children: (0, t.jsx)(q, {
|
|
8943
9132
|
content: i
|
|
8944
9133
|
})
|
|
8945
9134
|
})
|
|
@@ -8949,23 +9138,23 @@ function bl(_ref138) {
|
|
|
8949
9138
|
})
|
|
8950
9139
|
})]
|
|
8951
9140
|
})
|
|
8952
|
-
}), c ? (0, t.jsx)(
|
|
8953
|
-
groups:
|
|
9141
|
+
}), c ? (0, t.jsx)(J, {
|
|
9142
|
+
groups: _a4,
|
|
8954
9143
|
title: i.standardAnswer
|
|
8955
9144
|
}) : null]
|
|
8956
9145
|
});
|
|
8957
9146
|
}
|
|
8958
|
-
var f =
|
|
9147
|
+
var f = Fl(n, r);
|
|
8959
9148
|
return (0, t.jsxs)("div", {
|
|
8960
9149
|
className: W.element,
|
|
8961
|
-
children: [(0, t.jsx)(
|
|
9150
|
+
children: [(0, t.jsx)(Rl, {
|
|
8962
9151
|
children: u.map(function (n) {
|
|
8963
9152
|
var r = l.selectedOptionIds.includes(n.optionId);
|
|
8964
9153
|
return (0, t.jsx)("li", {
|
|
8965
|
-
className: H(W["option-item"],
|
|
9154
|
+
className: H(W["option-item"], X["choice-option"], r && X.selected),
|
|
8966
9155
|
"data-selected": r ? "true" : void 0,
|
|
8967
9156
|
children: (0, t.jsxs)("button", {
|
|
8968
|
-
className:
|
|
9157
|
+
className: X["choice-button"],
|
|
8969
9158
|
disabled: e,
|
|
8970
9159
|
"aria-pressed": r,
|
|
8971
9160
|
onClick: function onClick() {
|
|
@@ -8973,22 +9162,22 @@ function bl(_ref138) {
|
|
|
8973
9162
|
},
|
|
8974
9163
|
type: "button",
|
|
8975
9164
|
children: [(0, t.jsx)("span", {
|
|
8976
|
-
className: H(W.marker,
|
|
9165
|
+
className: H(W.marker, X["option-marker"]),
|
|
8977
9166
|
"data-selected": r ? "true" : void 0,
|
|
8978
9167
|
children: n.marker
|
|
8979
|
-
}), (0, t.jsx)(
|
|
9168
|
+
}), (0, t.jsx)(q, {
|
|
8980
9169
|
content: n.standardContent
|
|
8981
9170
|
})]
|
|
8982
9171
|
})
|
|
8983
9172
|
}, n.optionId);
|
|
8984
9173
|
})
|
|
8985
|
-
}), c ? (0, t.jsx)(
|
|
9174
|
+
}), c ? (0, t.jsx)(J, {
|
|
8986
9175
|
groups: f,
|
|
8987
9176
|
title: i.standardAnswer
|
|
8988
9177
|
}) : null]
|
|
8989
9178
|
});
|
|
8990
9179
|
}
|
|
8991
|
-
function
|
|
9180
|
+
function Vl(e) {
|
|
8992
9181
|
var n = new Map(e.sortOptions.map(function (e) {
|
|
8993
9182
|
return [e.id, e];
|
|
8994
9183
|
}));
|
|
@@ -8996,14 +9185,14 @@ function xl(e) {
|
|
|
8996
9185
|
var i = n.get(e);
|
|
8997
9186
|
return {
|
|
8998
9187
|
kind: "detailed",
|
|
8999
|
-
contents: i ? [(0, t.jsx)(
|
|
9188
|
+
contents: i ? [(0, t.jsx)(q, {
|
|
9000
9189
|
content: i.content
|
|
9001
9190
|
}, e)] : [],
|
|
9002
9191
|
marker: String(r + 1)
|
|
9003
9192
|
};
|
|
9004
9193
|
});
|
|
9005
9194
|
}
|
|
9006
|
-
function
|
|
9195
|
+
function Hl(_ref139) {
|
|
9007
9196
|
var e = _ref139.disabled,
|
|
9008
9197
|
n = _ref139.item,
|
|
9009
9198
|
r = _ref139.messages,
|
|
@@ -9031,17 +9220,17 @@ function Sl(_ref139) {
|
|
|
9031
9220
|
className: W["option-list"],
|
|
9032
9221
|
children: u.map(function (n, i) {
|
|
9033
9222
|
return (0, t.jsxs)("li", {
|
|
9034
|
-
className: H(W["option-item"],
|
|
9223
|
+
className: H(W["option-item"], X["choice-option"]),
|
|
9035
9224
|
children: [(0, t.jsx)("span", {
|
|
9036
9225
|
className: W.marker,
|
|
9037
9226
|
children: i + 1
|
|
9038
|
-
}), (0, t.jsx)(
|
|
9227
|
+
}), (0, t.jsx)(q, {
|
|
9039
9228
|
content: n.content
|
|
9040
9229
|
}), (0, t.jsxs)("span", {
|
|
9041
|
-
className:
|
|
9230
|
+
className: X["ordering-controls"],
|
|
9042
9231
|
children: [(0, t.jsx)("button", {
|
|
9043
9232
|
"aria-label": "".concat(r.moveUp, " ").concat(i + 1),
|
|
9044
|
-
className:
|
|
9233
|
+
className: X["ordering-button"],
|
|
9045
9234
|
disabled: e || i === 0,
|
|
9046
9235
|
onClick: function onClick() {
|
|
9047
9236
|
return d(n.id, -1);
|
|
@@ -9050,7 +9239,7 @@ function Sl(_ref139) {
|
|
|
9050
9239
|
children: "\u2191"
|
|
9051
9240
|
}), (0, t.jsx)("button", {
|
|
9052
9241
|
"aria-label": "".concat(r.moveDown, " ").concat(i + 1),
|
|
9053
|
-
className:
|
|
9242
|
+
className: X["ordering-button"],
|
|
9054
9243
|
disabled: e || i === u.length - 1,
|
|
9055
9244
|
onClick: function onClick() {
|
|
9056
9245
|
return d(n.id, 1);
|
|
@@ -9061,21 +9250,13 @@ function Sl(_ref139) {
|
|
|
9061
9250
|
})]
|
|
9062
9251
|
}, n.id);
|
|
9063
9252
|
})
|
|
9064
|
-
}), s ? (0, t.jsx)(
|
|
9065
|
-
groups:
|
|
9253
|
+
}), s ? (0, t.jsx)(J, {
|
|
9254
|
+
groups: Vl(n),
|
|
9066
9255
|
title: r.standardAnswer
|
|
9067
9256
|
}) : null]
|
|
9068
9257
|
});
|
|
9069
9258
|
}
|
|
9070
|
-
|
|
9071
|
-
content: "_content_63948_1",
|
|
9072
|
-
paragraph: "_paragraph_63948_10",
|
|
9073
|
-
marker: "_marker_63948_14",
|
|
9074
|
-
"marker-button": "_marker-button_63948_22",
|
|
9075
|
-
"marker-selected": "_marker-selected_63948_31",
|
|
9076
|
-
"marker-answer": "_marker-answer_63948_37"
|
|
9077
|
-
};
|
|
9078
|
-
function wl(_ref140) {
|
|
9259
|
+
function Ul(_ref140) {
|
|
9079
9260
|
var _ref140$answerMarkers = _ref140.answerMarkers,
|
|
9080
9261
|
e = _ref140$answerMarkers === void 0 ? [] : _ref140$answerMarkers,
|
|
9081
9262
|
r = _ref140.content,
|
|
@@ -9086,49 +9267,51 @@ function wl(_ref140) {
|
|
|
9086
9267
|
o = _ref140$selectedMarke === void 0 ? [] : _ref140$selectedMarke,
|
|
9087
9268
|
_ref140$showAnswer = _ref140.showAnswer,
|
|
9088
9269
|
s = _ref140$showAnswer === void 0 ? !1 : _ref140$showAnswer;
|
|
9089
|
-
var
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9270
|
+
var _G6 = G(),
|
|
9271
|
+
c = _G6.textMarker,
|
|
9272
|
+
l = r.json.length ? r.json : [{
|
|
9273
|
+
children: [{
|
|
9274
|
+
text: r.text
|
|
9275
|
+
}],
|
|
9276
|
+
type: "paragraph"
|
|
9277
|
+
}];
|
|
9095
9278
|
return (0, t.jsx)("div", {
|
|
9096
|
-
className:
|
|
9097
|
-
children:
|
|
9098
|
-
return
|
|
9279
|
+
className: c.content,
|
|
9280
|
+
children: l.map(function (e, t) {
|
|
9281
|
+
return u(e, "node-".concat(t));
|
|
9099
9282
|
})
|
|
9100
9283
|
});
|
|
9101
|
-
function
|
|
9102
|
-
if (
|
|
9103
|
-
if (!
|
|
9284
|
+
function u(e, n) {
|
|
9285
|
+
if (Gl(e)) return d(e, n);
|
|
9286
|
+
if (!Wl(e)) return null;
|
|
9104
9287
|
var r = e.children.map(function (e, t) {
|
|
9105
|
-
return
|
|
9288
|
+
return u(e, "".concat(n, "-").concat(t));
|
|
9106
9289
|
});
|
|
9107
9290
|
return e.type === "paragraph" ? (0, t.jsx)("p", {
|
|
9108
|
-
className:
|
|
9291
|
+
className: c.paragraph,
|
|
9109
9292
|
children: r
|
|
9110
9293
|
}, n) : (0, t.jsx)("span", {
|
|
9111
9294
|
children: r
|
|
9112
9295
|
}, n);
|
|
9113
9296
|
}
|
|
9114
|
-
function
|
|
9297
|
+
function d(e, r) {
|
|
9115
9298
|
var i = xt(e);
|
|
9116
9299
|
if (!i) return (0, t.jsx)(n.Fragment, {
|
|
9117
9300
|
children: e.text
|
|
9118
9301
|
}, r);
|
|
9119
|
-
var o =
|
|
9120
|
-
return a ?
|
|
9302
|
+
var o = f(i);
|
|
9303
|
+
return a ? p(i, e.text, r, o) : m(i, e.text, r, o);
|
|
9121
9304
|
}
|
|
9122
|
-
function
|
|
9305
|
+
function f(t) {
|
|
9123
9306
|
var n = o.includes(t),
|
|
9124
9307
|
r = s && e.includes(t);
|
|
9125
9308
|
return {
|
|
9126
9309
|
answer: r,
|
|
9127
|
-
className: Ba(
|
|
9310
|
+
className: Ba(c.marker, a ? c["marker-button"] : "", n ? c["marker-selected"] : "", r ? c["marker-answer"] : ""),
|
|
9128
9311
|
selected: n
|
|
9129
9312
|
};
|
|
9130
9313
|
}
|
|
9131
|
-
function
|
|
9314
|
+
function p(e, n, r, o) {
|
|
9132
9315
|
return (0, t.jsx)("button", {
|
|
9133
9316
|
className: o.className,
|
|
9134
9317
|
"data-answer": o.answer ? "true" : void 0,
|
|
@@ -9142,7 +9325,7 @@ function wl(_ref140) {
|
|
|
9142
9325
|
children: n
|
|
9143
9326
|
}, r);
|
|
9144
9327
|
}
|
|
9145
|
-
function
|
|
9328
|
+
function m(e, n, r, i) {
|
|
9146
9329
|
return (0, t.jsx)("span", {
|
|
9147
9330
|
className: i.className,
|
|
9148
9331
|
"data-answer": i.answer ? "true" : void 0,
|
|
@@ -9152,13 +9335,13 @@ function wl(_ref140) {
|
|
|
9152
9335
|
}, r);
|
|
9153
9336
|
}
|
|
9154
9337
|
}
|
|
9155
|
-
function
|
|
9338
|
+
function Wl(e) {
|
|
9156
9339
|
return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
|
|
9157
9340
|
}
|
|
9158
|
-
function
|
|
9341
|
+
function Gl(e) {
|
|
9159
9342
|
return !!(e && _typeof(e) == "object" && "text" in e && _typeof(e.text) == "string");
|
|
9160
9343
|
}
|
|
9161
|
-
function
|
|
9344
|
+
function Kl(_ref141) {
|
|
9162
9345
|
var e = _ref141.item,
|
|
9163
9346
|
n = _ref141.messages,
|
|
9164
9347
|
r = _ref141.showAnswer;
|
|
@@ -9168,11 +9351,11 @@ function Dl(_ref141) {
|
|
|
9168
9351
|
return e.text;
|
|
9169
9352
|
});
|
|
9170
9353
|
return (0, t.jsxs)(t.Fragment, {
|
|
9171
|
-
children: [(0, t.jsx)(
|
|
9354
|
+
children: [(0, t.jsx)(Ul, {
|
|
9172
9355
|
answerMarkers: e.answers,
|
|
9173
9356
|
content: e.content,
|
|
9174
9357
|
showAnswer: r
|
|
9175
|
-
}), r ? (0, t.jsx)(
|
|
9358
|
+
}), r ? (0, t.jsx)(J, {
|
|
9176
9359
|
groups: [{
|
|
9177
9360
|
kind: "detailed",
|
|
9178
9361
|
contents: i,
|
|
@@ -9182,7 +9365,7 @@ function Dl(_ref141) {
|
|
|
9182
9365
|
}) : null]
|
|
9183
9366
|
});
|
|
9184
9367
|
}
|
|
9185
|
-
function
|
|
9368
|
+
function ql(_ref142) {
|
|
9186
9369
|
var e = _ref142.disabled,
|
|
9187
9370
|
n = _ref142.item,
|
|
9188
9371
|
r = _ref142.messages,
|
|
@@ -9191,11 +9374,11 @@ function Ol(_ref142) {
|
|
|
9191
9374
|
o = _ref142.responseIndex,
|
|
9192
9375
|
s = _ref142.showAnswer;
|
|
9193
9376
|
var c = Ks(a, o);
|
|
9194
|
-
return s ? (0, t.jsx)(
|
|
9377
|
+
return s ? (0, t.jsx)(Kl, {
|
|
9195
9378
|
item: n,
|
|
9196
9379
|
messages: r,
|
|
9197
9380
|
showAnswer: s
|
|
9198
|
-
}) : (0, t.jsx)(
|
|
9381
|
+
}) : (0, t.jsx)(Ul, {
|
|
9199
9382
|
answerMarkers: n.answers,
|
|
9200
9383
|
content: n.content,
|
|
9201
9384
|
disabled: e,
|
|
@@ -9207,7 +9390,7 @@ function Ol(_ref142) {
|
|
|
9207
9390
|
selectedMarkers: c.selectedMarkers
|
|
9208
9391
|
});
|
|
9209
9392
|
}
|
|
9210
|
-
function
|
|
9393
|
+
function Jl(_ref143) {
|
|
9211
9394
|
var e = _ref143.disabled,
|
|
9212
9395
|
n = _ref143.locale,
|
|
9213
9396
|
r = _ref143.label,
|
|
@@ -9217,7 +9400,7 @@ function kl(_ref143) {
|
|
|
9217
9400
|
s = _ref143.responseIndex,
|
|
9218
9401
|
c = _ref143.uploadImage;
|
|
9219
9402
|
var l = qs(o, s);
|
|
9220
|
-
return e ? A(l.content) ? null : (0, t.jsx)(
|
|
9403
|
+
return e ? A(l.content) ? null : (0, t.jsx)(q, {
|
|
9221
9404
|
content: l.content
|
|
9222
9405
|
}) : (0, t.jsx)(Da, {
|
|
9223
9406
|
ariaLabel: r,
|
|
@@ -9234,24 +9417,24 @@ function kl(_ref143) {
|
|
|
9234
9417
|
value: l.content
|
|
9235
9418
|
});
|
|
9236
9419
|
}
|
|
9237
|
-
function
|
|
9420
|
+
function Yl(e, n) {
|
|
9238
9421
|
return e.blanks.reduce(function (r, i) {
|
|
9239
9422
|
var a;
|
|
9240
9423
|
var o = (a = e.answers[i]) == null ? void 0 : a.trim();
|
|
9241
9424
|
return o ? [].concat(_toConsumableArray(r), [{
|
|
9242
9425
|
kind: "detailed",
|
|
9243
|
-
contents: [(0, t.jsx)(
|
|
9426
|
+
contents: [(0, t.jsx)(q, {
|
|
9244
9427
|
content: O(o)
|
|
9245
9428
|
}, "".concat(i, "-answer"))],
|
|
9246
|
-
marker:
|
|
9429
|
+
marker: n([i], e.blanks)
|
|
9247
9430
|
}]) : r;
|
|
9248
9431
|
}, []);
|
|
9249
9432
|
}
|
|
9250
|
-
var
|
|
9433
|
+
var Xl = {
|
|
9251
9434
|
"word-builder-blank": "_word-builder-blank_ftw6q_1",
|
|
9252
9435
|
"word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
|
|
9253
9436
|
};
|
|
9254
|
-
function
|
|
9437
|
+
function Zl(_ref144) {
|
|
9255
9438
|
var e = _ref144.disabled,
|
|
9256
9439
|
n = _ref144.element,
|
|
9257
9440
|
r = _ref144.item,
|
|
@@ -9262,7 +9445,9 @@ function Ml(_ref144) {
|
|
|
9262
9445
|
c = _ref144.showAnswer;
|
|
9263
9446
|
var l = _n(r, !0, n),
|
|
9264
9447
|
u = Bs(o, s, l.blanks),
|
|
9265
|
-
d =
|
|
9448
|
+
d = Yl(l, function (e, t) {
|
|
9449
|
+
return xc(e, t, i.blankLabel);
|
|
9450
|
+
});
|
|
9266
9451
|
function f(e, t) {
|
|
9267
9452
|
a(C(C({}, u), {}, {
|
|
9268
9453
|
answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
|
|
@@ -9290,8 +9475,8 @@ function Ml(_ref144) {
|
|
|
9290
9475
|
r && m(n, r);
|
|
9291
9476
|
}
|
|
9292
9477
|
return (0, t.jsxs)("div", {
|
|
9293
|
-
className:
|
|
9294
|
-
children: [(0, t.jsx)(
|
|
9478
|
+
className: K["fill-text"],
|
|
9479
|
+
children: [(0, t.jsx)(il, {
|
|
9295
9480
|
content: l.content,
|
|
9296
9481
|
renderBlank: function renderBlank(_ref145) {
|
|
9297
9482
|
var n = _ref145.blankId,
|
|
@@ -9299,7 +9484,7 @@ function Ml(_ref144) {
|
|
|
9299
9484
|
a = _ref145.label;
|
|
9300
9485
|
var o, s;
|
|
9301
9486
|
var c = (o = u.answers[n]) == null ? "" : o,
|
|
9302
|
-
l =
|
|
9487
|
+
l = Ql({
|
|
9303
9488
|
answers: c,
|
|
9304
9489
|
blankLabel: i.blankLabel,
|
|
9305
9490
|
canClear: !e && !!c.trim(),
|
|
@@ -9308,7 +9493,7 @@ function Ml(_ref144) {
|
|
|
9308
9493
|
});
|
|
9309
9494
|
return (0, t.jsx)("button", {
|
|
9310
9495
|
"aria-label": l,
|
|
9311
|
-
className:
|
|
9496
|
+
className: Xl["word-builder-blank"],
|
|
9312
9497
|
disabled: e,
|
|
9313
9498
|
onClick: function onClick() {
|
|
9314
9499
|
return p(n);
|
|
@@ -9325,7 +9510,7 @@ function Ml(_ref144) {
|
|
|
9325
9510
|
});
|
|
9326
9511
|
}
|
|
9327
9512
|
}), (0, t.jsx)("div", {
|
|
9328
|
-
className:
|
|
9513
|
+
className: Xl["word-builder-candidate-list"],
|
|
9329
9514
|
children: l.candidateOptions.map(function (n, r) {
|
|
9330
9515
|
return (0, t.jsx)("button", {
|
|
9331
9516
|
disabled: e,
|
|
@@ -9340,13 +9525,13 @@ function Ml(_ref144) {
|
|
|
9340
9525
|
children: n
|
|
9341
9526
|
}, "".concat(n, "-").concat(r));
|
|
9342
9527
|
})
|
|
9343
|
-
}), c ? (0, t.jsx)(
|
|
9528
|
+
}), c ? (0, t.jsx)(J, {
|
|
9344
9529
|
groups: d,
|
|
9345
9530
|
title: i.standardAnswer
|
|
9346
9531
|
}) : null]
|
|
9347
9532
|
});
|
|
9348
9533
|
}
|
|
9349
|
-
function
|
|
9534
|
+
function Ql(_ref146) {
|
|
9350
9535
|
var e = _ref146.answers,
|
|
9351
9536
|
t = _ref146.blankLabel,
|
|
9352
9537
|
n = _ref146.canClear,
|
|
@@ -9355,7 +9540,7 @@ function Nl(_ref146) {
|
|
|
9355
9540
|
var a = i || "".concat(t).concat(r + 1);
|
|
9356
9541
|
return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
|
|
9357
9542
|
}
|
|
9358
|
-
function
|
|
9543
|
+
function $l(_ref147) {
|
|
9359
9544
|
var e = _ref147.disabled,
|
|
9360
9545
|
n = _ref147.element,
|
|
9361
9546
|
r = _ref147.item,
|
|
@@ -9367,9 +9552,9 @@ function Pl(_ref147) {
|
|
|
9367
9552
|
l = _ref147.showAnswer,
|
|
9368
9553
|
u = _ref147.uploadImage;
|
|
9369
9554
|
if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
|
|
9370
|
-
return n.type === "richText" ? (0, t.jsx)(
|
|
9555
|
+
return n.type === "richText" ? (0, t.jsx)(q, {
|
|
9371
9556
|
content: r.content
|
|
9372
|
-
}) : n.type === "textResponse" ? (0, t.jsx)(
|
|
9557
|
+
}) : n.type === "textResponse" ? (0, t.jsx)(Jl, {
|
|
9373
9558
|
disabled: e,
|
|
9374
9559
|
label: n.name,
|
|
9375
9560
|
locale: i,
|
|
@@ -9378,7 +9563,7 @@ function Pl(_ref147) {
|
|
|
9378
9563
|
response: s,
|
|
9379
9564
|
responseIndex: c,
|
|
9380
9565
|
uploadImage: u
|
|
9381
|
-
}) : n.type === "ordering" ? (0, t.jsx)(
|
|
9566
|
+
}) : n.type === "ordering" ? (0, t.jsx)(Hl, {
|
|
9382
9567
|
disabled: e,
|
|
9383
9568
|
item: r,
|
|
9384
9569
|
messages: a,
|
|
@@ -9386,7 +9571,7 @@ function Pl(_ref147) {
|
|
|
9386
9571
|
response: s,
|
|
9387
9572
|
responseIndex: c,
|
|
9388
9573
|
showAnswer: l
|
|
9389
|
-
}) : n.type === "classification" ? (0, t.jsx)(
|
|
9574
|
+
}) : n.type === "classification" ? (0, t.jsx)(tl, {
|
|
9390
9575
|
disabled: e,
|
|
9391
9576
|
item: r,
|
|
9392
9577
|
messages: a,
|
|
@@ -9394,7 +9579,7 @@ function Pl(_ref147) {
|
|
|
9394
9579
|
response: s,
|
|
9395
9580
|
responseIndex: c,
|
|
9396
9581
|
showAnswer: l
|
|
9397
|
-
}) : n.type === "textMarker" ? (0, t.jsx)(
|
|
9582
|
+
}) : n.type === "textMarker" ? (0, t.jsx)(ql, {
|
|
9398
9583
|
disabled: e,
|
|
9399
9584
|
item: r,
|
|
9400
9585
|
messages: a,
|
|
@@ -9402,7 +9587,7 @@ function Pl(_ref147) {
|
|
|
9402
9587
|
response: s,
|
|
9403
9588
|
responseIndex: c,
|
|
9404
9589
|
showAnswer: l
|
|
9405
|
-
}) :
|
|
9590
|
+
}) : eu({
|
|
9406
9591
|
disabled: e,
|
|
9407
9592
|
element: n,
|
|
9408
9593
|
item: r,
|
|
@@ -9415,7 +9600,7 @@ function Pl(_ref147) {
|
|
|
9415
9600
|
uploadImage: u
|
|
9416
9601
|
});
|
|
9417
9602
|
}
|
|
9418
|
-
function
|
|
9603
|
+
function eu(_ref148) {
|
|
9419
9604
|
var e = _ref148.disabled,
|
|
9420
9605
|
n = _ref148.element,
|
|
9421
9606
|
r = _ref148.item,
|
|
@@ -9426,7 +9611,7 @@ function Fl(_ref148) {
|
|
|
9426
9611
|
c = _ref148.showAnswer;
|
|
9427
9612
|
switch (n.type) {
|
|
9428
9613
|
case "choice":
|
|
9429
|
-
return (0, t.jsx)(
|
|
9614
|
+
return (0, t.jsx)(Bl, {
|
|
9430
9615
|
disabled: e,
|
|
9431
9616
|
element: n,
|
|
9432
9617
|
item: r,
|
|
@@ -9437,7 +9622,7 @@ function Fl(_ref148) {
|
|
|
9437
9622
|
showAnswer: c
|
|
9438
9623
|
});
|
|
9439
9624
|
case "fill":
|
|
9440
|
-
return (0, t.jsx)(
|
|
9625
|
+
return (0, t.jsx)(Zc, {
|
|
9441
9626
|
disabled: e,
|
|
9442
9627
|
item: r,
|
|
9443
9628
|
messages: i,
|
|
@@ -9447,7 +9632,7 @@ function Fl(_ref148) {
|
|
|
9447
9632
|
showAnswer: c
|
|
9448
9633
|
});
|
|
9449
9634
|
case "inlineFill":
|
|
9450
|
-
return (0, t.jsx)(
|
|
9635
|
+
return (0, t.jsx)(yl, {
|
|
9451
9636
|
disabled: e,
|
|
9452
9637
|
element: n,
|
|
9453
9638
|
item: r,
|
|
@@ -9458,7 +9643,7 @@ function Fl(_ref148) {
|
|
|
9458
9643
|
showAnswer: c
|
|
9459
9644
|
});
|
|
9460
9645
|
case "wordBuilder":
|
|
9461
|
-
return (0, t.jsx)(
|
|
9646
|
+
return (0, t.jsx)(Zl, {
|
|
9462
9647
|
disabled: e,
|
|
9463
9648
|
element: n,
|
|
9464
9649
|
item: r,
|
|
@@ -9469,7 +9654,7 @@ function Fl(_ref148) {
|
|
|
9469
9654
|
showAnswer: c
|
|
9470
9655
|
});
|
|
9471
9656
|
case "judgement":
|
|
9472
|
-
return (0, t.jsx)(
|
|
9657
|
+
return (0, t.jsx)(wl, {
|
|
9473
9658
|
disabled: e,
|
|
9474
9659
|
element: n,
|
|
9475
9660
|
item: r,
|
|
@@ -9480,7 +9665,7 @@ function Fl(_ref148) {
|
|
|
9480
9665
|
showAnswer: c
|
|
9481
9666
|
});
|
|
9482
9667
|
case "lineConnect":
|
|
9483
|
-
return (0, t.jsx)(
|
|
9668
|
+
return (0, t.jsx)(Dl, {
|
|
9484
9669
|
disabled: e,
|
|
9485
9670
|
item: r,
|
|
9486
9671
|
messages: i,
|
|
@@ -9490,7 +9675,7 @@ function Fl(_ref148) {
|
|
|
9490
9675
|
showAnswer: c
|
|
9491
9676
|
});
|
|
9492
9677
|
case "matching":
|
|
9493
|
-
return (0, t.jsx)(
|
|
9678
|
+
return (0, t.jsx)(Nl, {
|
|
9494
9679
|
disabled: e,
|
|
9495
9680
|
item: r,
|
|
9496
9681
|
messages: i,
|
|
@@ -9501,14 +9686,14 @@ function Fl(_ref148) {
|
|
|
9501
9686
|
});
|
|
9502
9687
|
}
|
|
9503
9688
|
}
|
|
9504
|
-
var
|
|
9505
|
-
function
|
|
9689
|
+
var tu = ["locale"];
|
|
9690
|
+
function nu(e) {
|
|
9506
9691
|
var _e$locale = e.locale,
|
|
9507
9692
|
n = _e$locale === void 0 ? "zh-CN" : _e$locale,
|
|
9508
|
-
r = ma(e,
|
|
9693
|
+
r = ma(e, tu),
|
|
9509
9694
|
i = us(r.value, r.questionTypeTemplates),
|
|
9510
9695
|
a = hs(r.response, i);
|
|
9511
|
-
return (0, t.jsx)(
|
|
9696
|
+
return (0, t.jsx)(ru, C(C({}, r), {}, {
|
|
9512
9697
|
childIndexPath: [],
|
|
9513
9698
|
locale: n,
|
|
9514
9699
|
messages: bc(n),
|
|
@@ -9519,7 +9704,7 @@ function Ll(e) {
|
|
|
9519
9704
|
value: i
|
|
9520
9705
|
}));
|
|
9521
9706
|
}
|
|
9522
|
-
function
|
|
9707
|
+
function ru(_ref149) {
|
|
9523
9708
|
var e = _ref149.childIndexPath,
|
|
9524
9709
|
n = _ref149.className,
|
|
9525
9710
|
_ref149$disabled = _ref149.disabled,
|
|
@@ -9539,13 +9724,13 @@ function Rl(_ref149) {
|
|
|
9539
9724
|
p = _ref149.value;
|
|
9540
9725
|
var m = Zi(d, p);
|
|
9541
9726
|
if (!m) return (0, t.jsx)("div", {
|
|
9542
|
-
className: H(
|
|
9727
|
+
className: H(K.root, n),
|
|
9543
9728
|
children: (0, t.jsx)("div", {
|
|
9544
|
-
className:
|
|
9729
|
+
className: K.empty,
|
|
9545
9730
|
children: a.missingQuestionTypeTemplate
|
|
9546
9731
|
})
|
|
9547
9732
|
});
|
|
9548
|
-
var h =
|
|
9733
|
+
var h = iu({
|
|
9549
9734
|
childIndexPath: e,
|
|
9550
9735
|
disabled: r,
|
|
9551
9736
|
locale: i,
|
|
@@ -9561,19 +9746,19 @@ function Rl(_ref149) {
|
|
|
9561
9746
|
value: p
|
|
9562
9747
|
});
|
|
9563
9748
|
return (0, t.jsx)("div", {
|
|
9564
|
-
className: H(
|
|
9565
|
-
children:
|
|
9566
|
-
className:
|
|
9749
|
+
className: H(K.root, n),
|
|
9750
|
+
children: cu(m, p) ? (0, t.jsx)("div", {
|
|
9751
|
+
className: K.empty,
|
|
9567
9752
|
children: a.previewEmpty
|
|
9568
9753
|
}) : h
|
|
9569
9754
|
});
|
|
9570
9755
|
}
|
|
9571
|
-
function
|
|
9756
|
+
function iu(e) {
|
|
9572
9757
|
return (0, t.jsxs)(t.Fragment, {
|
|
9573
|
-
children: [
|
|
9758
|
+
children: [au(e), su(e), ou(e)]
|
|
9574
9759
|
});
|
|
9575
9760
|
}
|
|
9576
|
-
function
|
|
9761
|
+
function au(_ref150) {
|
|
9577
9762
|
var e = _ref150.disabled,
|
|
9578
9763
|
n = _ref150.locale,
|
|
9579
9764
|
r = _ref150.messages,
|
|
@@ -9584,15 +9769,15 @@ function Bl(_ref150) {
|
|
|
9584
9769
|
c = _ref150.uploadImage,
|
|
9585
9770
|
l = _ref150.value;
|
|
9586
9771
|
return s.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
9587
|
-
className:
|
|
9772
|
+
className: K["element-list"],
|
|
9588
9773
|
children: s.elements.map(function (u, d) {
|
|
9589
9774
|
var f = Yt(l, d, u),
|
|
9590
9775
|
p = s.elements.slice(0, d).filter(function (e) {
|
|
9591
9776
|
return e.type !== "richText";
|
|
9592
9777
|
}).length;
|
|
9593
9778
|
return (0, t.jsx)("section", {
|
|
9594
|
-
className:
|
|
9595
|
-
children: (0, t.jsx)(
|
|
9779
|
+
className: K.element,
|
|
9780
|
+
children: (0, t.jsx)($l, {
|
|
9596
9781
|
disabled: e,
|
|
9597
9782
|
element: u,
|
|
9598
9783
|
item: f,
|
|
@@ -9610,7 +9795,7 @@ function Bl(_ref150) {
|
|
|
9610
9795
|
})
|
|
9611
9796
|
});
|
|
9612
9797
|
}
|
|
9613
|
-
function
|
|
9798
|
+
function ou(_ref151) {
|
|
9614
9799
|
var e = _ref151.disabled,
|
|
9615
9800
|
n = _ref151.locale,
|
|
9616
9801
|
r = _ref151.messages,
|
|
@@ -9620,17 +9805,17 @@ function Vl(_ref151) {
|
|
|
9620
9805
|
s = _ref151.uploadImage,
|
|
9621
9806
|
c = _ref151.value;
|
|
9622
9807
|
return a ? (0, t.jsx)("div", {
|
|
9623
|
-
className:
|
|
9808
|
+
className: K["element-list"],
|
|
9624
9809
|
children: o.extras.map(function (a, o) {
|
|
9625
9810
|
var l = Xt(c, o, a);
|
|
9626
9811
|
return A(l.content) ? null : (0, t.jsxs)("section", {
|
|
9627
|
-
className:
|
|
9628
|
-
children: [(0, t.jsx)(
|
|
9812
|
+
className: K.extra,
|
|
9813
|
+
children: [(0, t.jsx)(Fc, {
|
|
9629
9814
|
children: a.name
|
|
9630
|
-
}), (0, t.jsx)(
|
|
9815
|
+
}), (0, t.jsx)($l, {
|
|
9631
9816
|
disabled: e,
|
|
9632
|
-
element:
|
|
9633
|
-
item:
|
|
9817
|
+
element: lu(a),
|
|
9818
|
+
item: uu(l),
|
|
9634
9819
|
locale: n,
|
|
9635
9820
|
messages: r,
|
|
9636
9821
|
onResponseItemChange: function onResponseItemChange() {
|
|
@@ -9645,7 +9830,7 @@ function Vl(_ref151) {
|
|
|
9645
9830
|
})
|
|
9646
9831
|
}) : null;
|
|
9647
9832
|
}
|
|
9648
|
-
function
|
|
9833
|
+
function su(_ref152) {
|
|
9649
9834
|
var e = _ref152.childIndexPath,
|
|
9650
9835
|
n = _ref152.disabled,
|
|
9651
9836
|
r = _ref152.locale,
|
|
@@ -9658,7 +9843,7 @@ function Hl(_ref152) {
|
|
|
9658
9843
|
u = _ref152.questionTypeTemplates,
|
|
9659
9844
|
d = _ref152.uploadImage,
|
|
9660
9845
|
f = _ref152.value;
|
|
9661
|
-
return f.children.length === 0 ? null : (0, t.jsx)(
|
|
9846
|
+
return f.children.length === 0 ? null : (0, t.jsx)(Ic, {
|
|
9662
9847
|
childIndexPath: e,
|
|
9663
9848
|
disabled: n,
|
|
9664
9849
|
messages: i,
|
|
@@ -9667,7 +9852,7 @@ function Hl(_ref152) {
|
|
|
9667
9852
|
},
|
|
9668
9853
|
response: o,
|
|
9669
9854
|
renderChild: function renderChild(e, a, o, f) {
|
|
9670
|
-
return (0, t.jsx)(
|
|
9855
|
+
return (0, t.jsx)(ru, {
|
|
9671
9856
|
childIndexPath: f,
|
|
9672
9857
|
disabled: n,
|
|
9673
9858
|
locale: r,
|
|
@@ -9686,220 +9871,330 @@ function Hl(_ref152) {
|
|
|
9686
9871
|
value: f
|
|
9687
9872
|
});
|
|
9688
9873
|
}
|
|
9689
|
-
function
|
|
9874
|
+
function cu(e, t) {
|
|
9690
9875
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
9691
9876
|
}
|
|
9692
|
-
function
|
|
9877
|
+
function lu(e) {
|
|
9693
9878
|
return {
|
|
9694
9879
|
config: {},
|
|
9695
9880
|
name: e.name,
|
|
9696
9881
|
type: "richText"
|
|
9697
9882
|
};
|
|
9698
9883
|
}
|
|
9699
|
-
function
|
|
9884
|
+
function uu(e) {
|
|
9700
9885
|
return {
|
|
9701
9886
|
content: e.content,
|
|
9702
9887
|
type: "richText"
|
|
9703
9888
|
};
|
|
9704
9889
|
}
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9890
|
+
function du(_ref153) {
|
|
9891
|
+
var _ref153$className = _ref153.className,
|
|
9892
|
+
e = _ref153$className === void 0 ? kc.placeholder : _ref153$className,
|
|
9893
|
+
n = _ref153.label;
|
|
9894
|
+
return (0, t.jsx)("div", {
|
|
9895
|
+
"aria-label": n,
|
|
9896
|
+
className: e
|
|
9897
|
+
});
|
|
9898
|
+
}
|
|
9899
|
+
function fu(e, t, n) {
|
|
9900
|
+
return _toConsumableArray(e).sort(function (e, n) {
|
|
9901
|
+
return pu(e.blankIds, t) - pu(n.blankIds, t);
|
|
9902
|
+
}).map(function (e, r) {
|
|
9715
9903
|
return {
|
|
9716
9904
|
kind: "detailed",
|
|
9717
|
-
contents:
|
|
9718
|
-
return (
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
}),
|
|
9722
|
-
marker: xc(r.blankIds, e.blanks, n.blankLabel)
|
|
9905
|
+
contents: mu(e.contents.filter(function (e) {
|
|
9906
|
+
return !A(e);
|
|
9907
|
+
}), n, r),
|
|
9908
|
+
marker: Uc(e.blankIds, t, n)
|
|
9723
9909
|
};
|
|
9724
9910
|
});
|
|
9911
|
+
}
|
|
9912
|
+
function pu(e, t) {
|
|
9913
|
+
return Math.min.apply(Math, _toConsumableArray(e.map(function (e) {
|
|
9914
|
+
return t.indexOf(e);
|
|
9915
|
+
})));
|
|
9916
|
+
}
|
|
9917
|
+
function mu(e, n, r) {
|
|
9918
|
+
var i = n === "zh-CN" ? "\uFF1B" : "; ";
|
|
9919
|
+
return e.reduce(function (n, a, o) {
|
|
9920
|
+
return [].concat(_toConsumableArray(n), [(0, t.jsx)(q, {
|
|
9921
|
+
content: a
|
|
9922
|
+
}, "group-".concat(r, "-answer-").concat(o))], _toConsumableArray(o < e.length - 1 ? [i] : []));
|
|
9923
|
+
}, []);
|
|
9924
|
+
}
|
|
9925
|
+
function hu(_ref154) {
|
|
9926
|
+
var e = _ref154.item,
|
|
9927
|
+
n = _ref154.locale,
|
|
9928
|
+
r = _ref154.messages,
|
|
9929
|
+
i = _ref154.showAnswer;
|
|
9930
|
+
var a = Xc(),
|
|
9931
|
+
_G7 = G(),
|
|
9932
|
+
o = _G7.blankGroup,
|
|
9933
|
+
s = _G7.renderer,
|
|
9934
|
+
c = k(e.answers, e.blanks),
|
|
9935
|
+
l = a.answerGroupLayout === "rows" ? fu(c.map(function (e) {
|
|
9936
|
+
return {
|
|
9937
|
+
blankIds: e.blankIds,
|
|
9938
|
+
contents: e.answerPools
|
|
9939
|
+
};
|
|
9940
|
+
}), e.blanks, n) : c.map(function (i, o) {
|
|
9941
|
+
return {
|
|
9942
|
+
kind: "detailed",
|
|
9943
|
+
contents: i.answerPools.map(function (e, n) {
|
|
9944
|
+
return (0, t.jsx)(q, {
|
|
9945
|
+
content: e
|
|
9946
|
+
}, "group-".concat(o, "-answer-").concat(n));
|
|
9947
|
+
}),
|
|
9948
|
+
marker: a.blankAnswerMarker(i.blankIds, e.blanks, n, r.blankLabel)
|
|
9949
|
+
};
|
|
9950
|
+
});
|
|
9725
9951
|
return (0, t.jsxs)("div", {
|
|
9726
|
-
className:
|
|
9952
|
+
className: s.element,
|
|
9727
9953
|
children: [(0, t.jsx)("ol", {
|
|
9728
|
-
className:
|
|
9729
|
-
children: e.blanks.map(function (e,
|
|
9954
|
+
className: o["blank-list"],
|
|
9955
|
+
children: e.blanks.map(function (e, i) {
|
|
9730
9956
|
return (0, t.jsx)("li", {
|
|
9731
|
-
className:
|
|
9732
|
-
children: (0, t.
|
|
9733
|
-
|
|
9734
|
-
|
|
9957
|
+
className: o["blank-item"],
|
|
9958
|
+
children: (0, t.jsx)("span", {
|
|
9959
|
+
"aria-label": a.blankPlaceholder === "answer-line" ? Hc(i + 1, n) : void 0,
|
|
9960
|
+
className: o["blank-field"],
|
|
9961
|
+
children: a.blankPlaceholder === "answer-line" ? null : "".concat(r.blankLabel, " ").concat(i + 1)
|
|
9735
9962
|
})
|
|
9736
|
-
},
|
|
9963
|
+
}, gu(e, i));
|
|
9737
9964
|
})
|
|
9738
|
-
}),
|
|
9739
|
-
groups:
|
|
9740
|
-
title:
|
|
9965
|
+
}), i ? (0, t.jsx)(J, {
|
|
9966
|
+
groups: l,
|
|
9967
|
+
title: r.standardAnswer
|
|
9741
9968
|
}) : null]
|
|
9742
9969
|
});
|
|
9743
9970
|
}
|
|
9744
|
-
function
|
|
9971
|
+
function gu(e, t) {
|
|
9745
9972
|
return e || "blank-".concat(t + 1);
|
|
9746
9973
|
}
|
|
9747
|
-
function
|
|
9748
|
-
var e =
|
|
9749
|
-
n =
|
|
9750
|
-
r =
|
|
9974
|
+
function _u(_ref155) {
|
|
9975
|
+
var e = _ref155.item,
|
|
9976
|
+
n = _ref155.messages,
|
|
9977
|
+
r = _ref155.showAnswer;
|
|
9978
|
+
var _G8 = G(),
|
|
9979
|
+
i = _G8.classification,
|
|
9980
|
+
a = _G8.renderer;
|
|
9751
9981
|
return (0, t.jsxs)("div", {
|
|
9752
|
-
className:
|
|
9982
|
+
className: a.element,
|
|
9753
9983
|
children: [(0, t.jsxs)("div", {
|
|
9754
|
-
className:
|
|
9984
|
+
className: i.board,
|
|
9755
9985
|
children: [(0, t.jsx)("div", {
|
|
9756
|
-
className:
|
|
9986
|
+
className: i.zones,
|
|
9757
9987
|
children: e.categories.map(function (e) {
|
|
9758
9988
|
return (0, t.jsxs)("section", {
|
|
9759
|
-
className:
|
|
9989
|
+
className: i.zone,
|
|
9760
9990
|
children: [(0, t.jsx)("div", {
|
|
9761
|
-
className:
|
|
9762
|
-
children: (0, t.jsx)(
|
|
9991
|
+
className: i["zone-title"],
|
|
9992
|
+
children: (0, t.jsx)(q, {
|
|
9763
9993
|
content: e.content
|
|
9764
9994
|
})
|
|
9765
9995
|
}), (0, t.jsx)("span", {
|
|
9766
|
-
className:
|
|
9996
|
+
className: i.empty,
|
|
9767
9997
|
children: n.unassigned
|
|
9768
9998
|
})]
|
|
9769
9999
|
}, e.id);
|
|
9770
10000
|
})
|
|
9771
10001
|
}), (0, t.jsx)("section", {
|
|
9772
|
-
className:
|
|
10002
|
+
className: i.pool,
|
|
9773
10003
|
children: e.items.map(function (e) {
|
|
9774
10004
|
return (0, t.jsx)("div", {
|
|
9775
|
-
className:
|
|
9776
|
-
children: (0, t.jsx)(
|
|
10005
|
+
className: i.item,
|
|
10006
|
+
children: (0, t.jsx)(q, {
|
|
9777
10007
|
content: e.content
|
|
9778
10008
|
})
|
|
9779
10009
|
}, e.id);
|
|
9780
10010
|
})
|
|
9781
10011
|
})]
|
|
9782
|
-
}), r ? (0, t.jsx)(
|
|
9783
|
-
groups:
|
|
10012
|
+
}), r ? (0, t.jsx)(J, {
|
|
10013
|
+
groups: el(e),
|
|
9784
10014
|
title: n.standardAnswer
|
|
9785
10015
|
}) : null]
|
|
9786
10016
|
});
|
|
9787
10017
|
}
|
|
9788
|
-
function
|
|
9789
|
-
var e =
|
|
9790
|
-
n =
|
|
9791
|
-
r =
|
|
9792
|
-
i =
|
|
9793
|
-
|
|
9794
|
-
|
|
10018
|
+
function vu(_ref156) {
|
|
10019
|
+
var e = _ref156.element,
|
|
10020
|
+
n = _ref156.item,
|
|
10021
|
+
r = _ref156.locale,
|
|
10022
|
+
i = _ref156.messages,
|
|
10023
|
+
a = _ref156.showAnswer;
|
|
10024
|
+
var o = Xc(),
|
|
10025
|
+
_G9 = G(),
|
|
10026
|
+
s = _G9.renderer,
|
|
10027
|
+
c = vn(n, e, !0),
|
|
10028
|
+
l = Dc(c),
|
|
10029
|
+
u = o.answerGroupLayout === "rows" ? fu(l, c.blanks, r) : l.map(function (e, n) {
|
|
9795
10030
|
return {
|
|
9796
10031
|
kind: "detailed",
|
|
9797
10032
|
contents: e.contents.map(function (e, r) {
|
|
9798
|
-
return (0, t.jsx)(
|
|
10033
|
+
return (0, t.jsx)(q, {
|
|
9799
10034
|
content: e
|
|
9800
10035
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
9801
10036
|
}),
|
|
9802
|
-
marker:
|
|
10037
|
+
marker: o.blankAnswerMarker(e.blankIds, c.blanks, r, i.blankLabel)
|
|
9803
10038
|
};
|
|
9804
10039
|
});
|
|
9805
10040
|
return (0, t.jsxs)("div", {
|
|
9806
|
-
className:
|
|
9807
|
-
children: [(0, t.jsx)(
|
|
9808
|
-
content:
|
|
9809
|
-
}),
|
|
9810
|
-
groups:
|
|
9811
|
-
title:
|
|
10041
|
+
className: s.element,
|
|
10042
|
+
children: [(0, t.jsx)(q, {
|
|
10043
|
+
content: c.content
|
|
10044
|
+
}), yu(c, i.candidateOptions, s, o.candidateLayout), a ? (0, t.jsx)(J, {
|
|
10045
|
+
groups: u,
|
|
10046
|
+
title: i.standardAnswer
|
|
9812
10047
|
}) : null]
|
|
9813
10048
|
});
|
|
9814
10049
|
}
|
|
9815
|
-
function
|
|
9816
|
-
var
|
|
9817
|
-
var
|
|
9818
|
-
|
|
9819
|
-
return !
|
|
9820
|
-
className:
|
|
10050
|
+
function yu(e, n, r, i) {
|
|
10051
|
+
var a, o;
|
|
10052
|
+
var s = (a = e.candidateOptions) == null ? [] : a,
|
|
10053
|
+
c = (o = e.blankOptionGroups) == null ? [] : o;
|
|
10054
|
+
return !s.length && !c.length ? null : i === "plain-list" ? (0, t.jsxs)("div", {
|
|
10055
|
+
className: r["candidate-section"],
|
|
9821
10056
|
children: [(0, t.jsx)("span", {
|
|
9822
|
-
className:
|
|
10057
|
+
className: r["section-title"],
|
|
9823
10058
|
children: n
|
|
9824
10059
|
}), (0, t.jsxs)("ol", {
|
|
9825
|
-
className:
|
|
9826
|
-
children: [
|
|
10060
|
+
className: r["candidate-list"],
|
|
10061
|
+
children: [s.map(function (e) {
|
|
9827
10062
|
return (0, t.jsx)("li", {
|
|
9828
|
-
className:
|
|
9829
|
-
children: (0, t.jsx)(
|
|
10063
|
+
className: r["candidate-item"],
|
|
10064
|
+
children: (0, t.jsx)(q, {
|
|
9830
10065
|
content: e.content
|
|
9831
10066
|
})
|
|
9832
10067
|
}, e.optionId);
|
|
9833
|
-
}),
|
|
10068
|
+
}), c.reduce(function (e, n) {
|
|
9834
10069
|
return [].concat(_toConsumableArray(e), _toConsumableArray(n.options.map(function (e) {
|
|
9835
10070
|
return (0, t.jsx)("li", {
|
|
9836
|
-
className:
|
|
9837
|
-
children: (0, t.jsx)(
|
|
10071
|
+
className: r["candidate-item"],
|
|
10072
|
+
children: (0, t.jsx)(q, {
|
|
9838
10073
|
content: e.content
|
|
9839
10074
|
})
|
|
9840
10075
|
}, "".concat(n.blankId, "-").concat(e.optionId));
|
|
9841
10076
|
})));
|
|
9842
10077
|
}, [])]
|
|
9843
10078
|
})]
|
|
10079
|
+
}) : (0, t.jsxs)("div", {
|
|
10080
|
+
className: r["candidate-section"],
|
|
10081
|
+
children: [(0, t.jsx)("span", {
|
|
10082
|
+
className: r["section-title"],
|
|
10083
|
+
children: n
|
|
10084
|
+
}), s.length > 0 ? (0, t.jsx)(Rl, {
|
|
10085
|
+
children: s.map(function (e, n) {
|
|
10086
|
+
return (0, t.jsxs)("li", {
|
|
10087
|
+
className: r["candidate-item"],
|
|
10088
|
+
children: [(0, t.jsxs)("span", {
|
|
10089
|
+
className: r.marker,
|
|
10090
|
+
children: [Zt("upperAlpha", n), "."]
|
|
10091
|
+
}), (0, t.jsx)(q, {
|
|
10092
|
+
content: e.content
|
|
10093
|
+
})]
|
|
10094
|
+
}, e.optionId);
|
|
10095
|
+
})
|
|
10096
|
+
}) : (0, t.jsx)("ol", {
|
|
10097
|
+
className: r["candidate-list"],
|
|
10098
|
+
"data-candidate-layout": "per-blank",
|
|
10099
|
+
children: c.map(function (e, n) {
|
|
10100
|
+
return (0, t.jsxs)("li", {
|
|
10101
|
+
className: r["candidate-item"],
|
|
10102
|
+
children: [(0, t.jsxs)("span", {
|
|
10103
|
+
className: r.marker,
|
|
10104
|
+
children: [n + 1, "."]
|
|
10105
|
+
}), (0, t.jsx)(Rl, {
|
|
10106
|
+
children: e.options.map(function (e) {
|
|
10107
|
+
return (0, t.jsx)("li", {
|
|
10108
|
+
className: r["candidate-item"],
|
|
10109
|
+
children: (0, t.jsx)(q, {
|
|
10110
|
+
content: e.content
|
|
10111
|
+
})
|
|
10112
|
+
}, e.optionId);
|
|
10113
|
+
})
|
|
10114
|
+
})]
|
|
10115
|
+
}, e.blankId);
|
|
10116
|
+
})
|
|
10117
|
+
})]
|
|
9844
10118
|
});
|
|
9845
10119
|
}
|
|
9846
|
-
function
|
|
9847
|
-
var e =
|
|
9848
|
-
n =
|
|
9849
|
-
r =
|
|
9850
|
-
i =
|
|
9851
|
-
|
|
9852
|
-
|
|
10120
|
+
function bu(_ref157) {
|
|
10121
|
+
var e = _ref157.element,
|
|
10122
|
+
n = _ref157.item,
|
|
10123
|
+
r = _ref157.messages,
|
|
10124
|
+
i = _ref157.showAnswer,
|
|
10125
|
+
a = _ref157.stem;
|
|
10126
|
+
var _G0 = G(),
|
|
10127
|
+
o = _G0.renderer,
|
|
10128
|
+
s = tn(e.config.judgeAnswerMode),
|
|
10129
|
+
c = [{
|
|
9853
10130
|
kind: "detailed",
|
|
9854
10131
|
contents: nn(e.config.judgeAnswerMode, n.answers),
|
|
9855
10132
|
marker: ""
|
|
9856
10133
|
}];
|
|
9857
10134
|
return (0, t.jsxs)("div", {
|
|
9858
|
-
className:
|
|
9859
|
-
children: [(0, t.
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
10135
|
+
className: o.element,
|
|
10136
|
+
children: [a ? (0, t.jsxs)("div", {
|
|
10137
|
+
"aria-label": e.name,
|
|
10138
|
+
className: o["judgement-row"],
|
|
10139
|
+
role: "group",
|
|
10140
|
+
children: [(0, t.jsx)(q, {
|
|
10141
|
+
content: a
|
|
10142
|
+
}), (0, t.jsx)("span", {
|
|
10143
|
+
"aria-hidden": "true",
|
|
10144
|
+
className: o["judgement-placeholder"],
|
|
10145
|
+
children: "\uFF08\u3000\uFF09"
|
|
10146
|
+
})]
|
|
10147
|
+
}) : (0, t.jsx)("ol", {
|
|
10148
|
+
className: o["judgement-list"],
|
|
10149
|
+
children: s.map(function (_ref158) {
|
|
10150
|
+
var e = _ref158.label,
|
|
10151
|
+
n = _ref158.value;
|
|
9864
10152
|
return (0, t.jsx)("li", {
|
|
9865
|
-
className:
|
|
10153
|
+
className: o["judgement-item"],
|
|
9866
10154
|
children: e
|
|
9867
10155
|
}, String(n));
|
|
9868
10156
|
})
|
|
9869
|
-
}), i ? (0, t.jsx)(
|
|
9870
|
-
groups:
|
|
10157
|
+
}), i ? (0, t.jsx)(J, {
|
|
10158
|
+
groups: c,
|
|
9871
10159
|
title: r.standardAnswer
|
|
9872
10160
|
}) : null]
|
|
9873
10161
|
});
|
|
9874
10162
|
}
|
|
9875
|
-
function
|
|
9876
|
-
var e =
|
|
9877
|
-
n =
|
|
9878
|
-
r =
|
|
9879
|
-
var
|
|
9880
|
-
|
|
9881
|
-
|
|
10163
|
+
function xu(_ref159) {
|
|
10164
|
+
var e = _ref159.item,
|
|
10165
|
+
n = _ref159.messages,
|
|
10166
|
+
r = _ref159.showAnswer;
|
|
10167
|
+
var _Xc2 = Xc(),
|
|
10168
|
+
i = _Xc2.lineConnectColumnTitleVisibility,
|
|
10169
|
+
_G1 = G(),
|
|
10170
|
+
a = _G1.lineConnect,
|
|
10171
|
+
o = _G1.renderer,
|
|
10172
|
+
s = {
|
|
10173
|
+
gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
|
|
10174
|
+
};
|
|
9882
10175
|
return (0, t.jsxs)("div", {
|
|
9883
|
-
className:
|
|
10176
|
+
className: o.element,
|
|
9884
10177
|
children: [(0, t.jsx)("div", {
|
|
9885
|
-
className:
|
|
10178
|
+
className: a.board,
|
|
9886
10179
|
children: (0, t.jsx)("div", {
|
|
9887
|
-
className:
|
|
9888
|
-
style:
|
|
10180
|
+
className: a.columns,
|
|
10181
|
+
style: s,
|
|
9889
10182
|
children: e.columns.map(function (e, r) {
|
|
10183
|
+
var o = "".concat(n.tableColumn, " ").concat(r + 1);
|
|
9890
10184
|
return (0, t.jsxs)("section", {
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
10185
|
+
"aria-label": i === "accessible-only" ? o : void 0,
|
|
10186
|
+
className: a.column,
|
|
10187
|
+
children: [i === "visible" ? (0, t.jsx)("span", {
|
|
10188
|
+
className: a["column-title"],
|
|
10189
|
+
children: o
|
|
10190
|
+
}) : null, e.items.map(function (n, r) {
|
|
9896
10191
|
var i = Qt(e.labelStyle, r);
|
|
9897
10192
|
return (0, t.jsxs)("div", {
|
|
9898
|
-
className:
|
|
10193
|
+
className: a.item,
|
|
9899
10194
|
children: [i ? (0, t.jsx)("span", {
|
|
9900
|
-
className:
|
|
10195
|
+
className: a.marker,
|
|
9901
10196
|
children: i
|
|
9902
|
-
}) : null, (0, t.jsx)(
|
|
10197
|
+
}) : null, (0, t.jsx)(q, {
|
|
9903
10198
|
content: n.content
|
|
9904
10199
|
})]
|
|
9905
10200
|
}, n.itemId);
|
|
@@ -9907,40 +10202,38 @@ function $l(_ref158) {
|
|
|
9907
10202
|
}, e.columnId);
|
|
9908
10203
|
})
|
|
9909
10204
|
})
|
|
9910
|
-
}), r ? (0, t.jsx)(
|
|
9911
|
-
groups:
|
|
10205
|
+
}), r ? (0, t.jsx)(J, {
|
|
10206
|
+
groups: Tl(e),
|
|
9912
10207
|
title: n.standardAnswer
|
|
9913
10208
|
}) : null]
|
|
9914
10209
|
});
|
|
9915
10210
|
}
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
n = _ref159.messages,
|
|
9926
|
-
r = _ref159.showAnswer;
|
|
10211
|
+
function Su(_ref160) {
|
|
10212
|
+
var e = _ref160.item,
|
|
10213
|
+
n = _ref160.messages,
|
|
10214
|
+
r = _ref160.showAnswer;
|
|
10215
|
+
var _Xc3 = Xc(),
|
|
10216
|
+
i = _Xc3.matchingAnswerLayout,
|
|
10217
|
+
_G10 = G(),
|
|
10218
|
+
a = _G10.matching,
|
|
10219
|
+
o = _G10.renderer;
|
|
9927
10220
|
return (0, t.jsxs)("div", {
|
|
9928
|
-
className:
|
|
10221
|
+
className: o.element,
|
|
9929
10222
|
children: [(0, t.jsx)("div", {
|
|
9930
|
-
className:
|
|
10223
|
+
className: a.board,
|
|
9931
10224
|
children: (0, t.jsx)("div", {
|
|
9932
|
-
className:
|
|
10225
|
+
className: a.columns,
|
|
9933
10226
|
children: e.columns.map(function (e) {
|
|
9934
10227
|
return (0, t.jsx)("section", {
|
|
9935
|
-
className:
|
|
10228
|
+
className: a.column,
|
|
9936
10229
|
children: e.items.map(function (n, r) {
|
|
9937
10230
|
var i = $t(e.labelStyle, r);
|
|
9938
10231
|
return (0, t.jsxs)("div", {
|
|
9939
|
-
className:
|
|
10232
|
+
className: a.item,
|
|
9940
10233
|
children: [i ? (0, t.jsx)("span", {
|
|
9941
|
-
className:
|
|
10234
|
+
className: a.marker,
|
|
9942
10235
|
children: i
|
|
9943
|
-
}) : null, (0, t.jsx)(
|
|
10236
|
+
}) : null, (0, t.jsx)(q, {
|
|
9944
10237
|
content: n.content
|
|
9945
10238
|
})]
|
|
9946
10239
|
}, n.itemId);
|
|
@@ -9948,238 +10241,277 @@ function tu(_ref159) {
|
|
|
9948
10241
|
}, e.columnId);
|
|
9949
10242
|
})
|
|
9950
10243
|
})
|
|
9951
|
-
}), r ? (0, t.jsx)(
|
|
9952
|
-
groups:
|
|
10244
|
+
}), r ? (0, t.jsx)(J, {
|
|
10245
|
+
groups: i === "marker-path" ? Al(e) : kl(e),
|
|
9953
10246
|
title: n.standardAnswer
|
|
9954
10247
|
}) : null]
|
|
9955
10248
|
});
|
|
9956
10249
|
}
|
|
9957
|
-
function
|
|
9958
|
-
var e =
|
|
9959
|
-
n =
|
|
9960
|
-
r =
|
|
9961
|
-
i =
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
10250
|
+
function Cu(_ref161) {
|
|
10251
|
+
var e = _ref161.element,
|
|
10252
|
+
n = _ref161.item,
|
|
10253
|
+
r = _ref161.locale,
|
|
10254
|
+
i = _ref161.messages,
|
|
10255
|
+
a = _ref161.showAnswer;
|
|
10256
|
+
var _Xc4 = Xc(),
|
|
10257
|
+
o = _Xc4.optionStandardAnswer,
|
|
10258
|
+
_G11 = G(),
|
|
10259
|
+
s = _G11.renderer,
|
|
10260
|
+
c = _G11.table,
|
|
10261
|
+
l = rn(n, e.config.optionLabelStyle),
|
|
10262
|
+
u = Fl(e, n),
|
|
10263
|
+
d = o === "value-only" ? wu(u.map(function (e) {
|
|
10264
|
+
return e.marker;
|
|
10265
|
+
}), r) : u;
|
|
10266
|
+
return e.config.renderer === "table" ? (0, t.jsxs)("div", {
|
|
10267
|
+
className: s.element,
|
|
10268
|
+
children: [(0, t.jsx)("div", {
|
|
10269
|
+
className: c["table-wrap"],
|
|
10270
|
+
children: (0, t.jsxs)("table", {
|
|
10271
|
+
className: c.table,
|
|
10272
|
+
children: [(0, t.jsxs)("colgroup", {
|
|
10273
|
+
children: [(0, t.jsx)("col", {
|
|
10274
|
+
className: c["table-option-column"]
|
|
10275
|
+
}), n.columns.map(function (e) {
|
|
10276
|
+
return (0, t.jsx)("col", {}, e.id);
|
|
10277
|
+
})]
|
|
10278
|
+
}), (0, t.jsx)("thead", {
|
|
10279
|
+
children: (0, t.jsxs)("tr", {
|
|
10280
|
+
children: [(0, t.jsx)("th", {
|
|
10281
|
+
children: i.option
|
|
9974
10282
|
}), n.columns.map(function (e) {
|
|
9975
|
-
return (0, t.jsx)("
|
|
10283
|
+
return (0, t.jsx)("th", {
|
|
10284
|
+
children: (0, t.jsx)(q, {
|
|
10285
|
+
content: e.content
|
|
10286
|
+
})
|
|
10287
|
+
}, e.id);
|
|
9976
10288
|
})]
|
|
9977
|
-
})
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
10289
|
+
})
|
|
10290
|
+
}), (0, t.jsx)("tbody", {
|
|
10291
|
+
children: l.map(function (e) {
|
|
10292
|
+
return (0, t.jsxs)("tr", {
|
|
10293
|
+
children: [(0, t.jsx)("td", {
|
|
10294
|
+
children: (0, t.jsx)("span", {
|
|
10295
|
+
className: c["table-option-marker"],
|
|
10296
|
+
children: e.marker
|
|
10297
|
+
})
|
|
10298
|
+
}), e.cells.map(function (n, r) {
|
|
10299
|
+
return (0, t.jsx)("td", {
|
|
10300
|
+
children: (0, t.jsx)(q, {
|
|
10301
|
+
content: n
|
|
9985
10302
|
})
|
|
9986
|
-
}, e.
|
|
10303
|
+
}, "".concat(e.optionId, "-cell-").concat(r));
|
|
9987
10304
|
})]
|
|
9988
|
-
})
|
|
9989
|
-
})
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
content: n
|
|
10001
|
-
})
|
|
10002
|
-
}, "".concat(e.optionId, "-cell-").concat(r));
|
|
10003
|
-
})]
|
|
10004
|
-
}, e.optionId);
|
|
10005
|
-
})
|
|
10006
|
-
})]
|
|
10007
|
-
})
|
|
10008
|
-
}), i ? (0, t.jsx)(K, {
|
|
10009
|
-
groups: _o3,
|
|
10010
|
-
title: r.standardAnswer
|
|
10011
|
-
}) : null]
|
|
10012
|
-
});
|
|
10013
|
-
}
|
|
10014
|
-
var o = ml(e, n);
|
|
10015
|
-
return (0, t.jsxs)("div", {
|
|
10016
|
-
className: W.element,
|
|
10017
|
-
children: [(0, t.jsx)(_l, {
|
|
10018
|
-
children: a.map(function (e) {
|
|
10305
|
+
}, e.optionId);
|
|
10306
|
+
})
|
|
10307
|
+
})]
|
|
10308
|
+
})
|
|
10309
|
+
}), a ? (0, t.jsx)(J, {
|
|
10310
|
+
groups: d,
|
|
10311
|
+
title: i.standardAnswer
|
|
10312
|
+
}) : null]
|
|
10313
|
+
}) : (0, t.jsxs)("div", {
|
|
10314
|
+
className: s.element,
|
|
10315
|
+
children: [(0, t.jsx)(Rl, {
|
|
10316
|
+
children: l.map(function (e) {
|
|
10019
10317
|
return (0, t.jsxs)("li", {
|
|
10020
|
-
className:
|
|
10318
|
+
className: s["option-item"],
|
|
10021
10319
|
children: [(0, t.jsx)("span", {
|
|
10022
|
-
className:
|
|
10320
|
+
className: s.marker,
|
|
10023
10321
|
children: e.marker
|
|
10024
|
-
}), (0, t.jsx)(
|
|
10322
|
+
}), (0, t.jsx)(q, {
|
|
10025
10323
|
content: e.standardContent
|
|
10026
10324
|
})]
|
|
10027
10325
|
}, e.optionId);
|
|
10028
10326
|
})
|
|
10029
|
-
}),
|
|
10030
|
-
groups:
|
|
10031
|
-
title:
|
|
10327
|
+
}), a ? (0, t.jsx)(J, {
|
|
10328
|
+
groups: d,
|
|
10329
|
+
title: i.standardAnswer
|
|
10032
10330
|
}) : null]
|
|
10033
10331
|
});
|
|
10034
10332
|
}
|
|
10035
|
-
function
|
|
10036
|
-
var
|
|
10037
|
-
|
|
10038
|
-
|
|
10333
|
+
function wu(e, t) {
|
|
10334
|
+
var n = e.filter(Boolean).join(t === "zh-CN" ? "\uFF1B" : "; ");
|
|
10335
|
+
return n ? [{
|
|
10336
|
+
contents: [n],
|
|
10337
|
+
kind: "detailed",
|
|
10338
|
+
marker: ""
|
|
10339
|
+
}] : [];
|
|
10340
|
+
}
|
|
10341
|
+
function Tu(_ref162) {
|
|
10342
|
+
var e = _ref162.item,
|
|
10343
|
+
n = _ref162.messages,
|
|
10344
|
+
r = _ref162.showAnswer;
|
|
10345
|
+
var _G12 = G(),
|
|
10346
|
+
i = _G12.renderer;
|
|
10039
10347
|
return (0, t.jsxs)("div", {
|
|
10040
|
-
className:
|
|
10348
|
+
className: i.element,
|
|
10041
10349
|
children: [(0, t.jsx)("ol", {
|
|
10042
|
-
className:
|
|
10350
|
+
className: i["option-list"],
|
|
10043
10351
|
children: e.sortOptions.map(function (e, n) {
|
|
10044
10352
|
return (0, t.jsxs)("li", {
|
|
10045
|
-
className:
|
|
10353
|
+
className: i["option-item"],
|
|
10046
10354
|
children: [(0, t.jsx)("span", {
|
|
10047
|
-
className:
|
|
10355
|
+
className: i.marker,
|
|
10048
10356
|
children: n + 1
|
|
10049
|
-
}), (0, t.jsx)(
|
|
10357
|
+
}), (0, t.jsx)(q, {
|
|
10050
10358
|
content: e.content
|
|
10051
10359
|
})]
|
|
10052
10360
|
}, e.id);
|
|
10053
10361
|
})
|
|
10054
|
-
}), r ? (0, t.jsx)(
|
|
10055
|
-
groups:
|
|
10362
|
+
}), r ? (0, t.jsx)(J, {
|
|
10363
|
+
groups: Vl(e),
|
|
10056
10364
|
title: n.standardAnswer
|
|
10057
10365
|
}) : null]
|
|
10058
10366
|
});
|
|
10059
10367
|
}
|
|
10060
|
-
function
|
|
10061
|
-
var e =
|
|
10062
|
-
n =
|
|
10063
|
-
r =
|
|
10064
|
-
i =
|
|
10065
|
-
|
|
10066
|
-
|
|
10368
|
+
function Eu(_ref163) {
|
|
10369
|
+
var e = _ref163.element,
|
|
10370
|
+
n = _ref163.item,
|
|
10371
|
+
r = _ref163.locale,
|
|
10372
|
+
i = _ref163.messages,
|
|
10373
|
+
a = _ref163.showAnswer;
|
|
10374
|
+
var o = Xc(),
|
|
10375
|
+
_G13 = G(),
|
|
10376
|
+
s = _G13.renderer,
|
|
10377
|
+
c = _n(n, !0, e),
|
|
10378
|
+
l = Yl(c, function (e, t) {
|
|
10379
|
+
return o.blankAnswerMarker(e, t, r, i.blankLabel);
|
|
10380
|
+
});
|
|
10067
10381
|
return (0, t.jsxs)("div", {
|
|
10068
|
-
className:
|
|
10069
|
-
children: [(0, t.jsx)(
|
|
10070
|
-
content:
|
|
10071
|
-
renderBlank: function renderBlank(
|
|
10072
|
-
var e =
|
|
10073
|
-
n =
|
|
10074
|
-
|
|
10382
|
+
className: s.element,
|
|
10383
|
+
children: [(0, t.jsx)(il, {
|
|
10384
|
+
content: c.content,
|
|
10385
|
+
renderBlank: function renderBlank(_ref164) {
|
|
10386
|
+
var e = _ref164.blankId,
|
|
10387
|
+
n = _ref164.index,
|
|
10388
|
+
a = _ref164.label;
|
|
10075
10389
|
return (0, t.jsx)("span", {
|
|
10076
|
-
"aria-label":
|
|
10077
|
-
className:
|
|
10390
|
+
"aria-label": o.blankPlaceholder === "answer-line" ? Hc(n + 1, r) : a || "".concat(i.blankLabel).concat(n + 1),
|
|
10391
|
+
className: s["word-builder-blank"],
|
|
10078
10392
|
"data-blank-id": e
|
|
10079
10393
|
});
|
|
10080
10394
|
}
|
|
10081
10395
|
}), (0, t.jsxs)("div", {
|
|
10082
|
-
className:
|
|
10396
|
+
className: s["candidate-section"],
|
|
10083
10397
|
children: [(0, t.jsx)("span", {
|
|
10084
|
-
className:
|
|
10085
|
-
children:
|
|
10398
|
+
className: s["section-title"],
|
|
10399
|
+
children: i.candidateOptions
|
|
10086
10400
|
}), (0, t.jsx)("ol", {
|
|
10087
|
-
className:
|
|
10088
|
-
children:
|
|
10401
|
+
className: s["word-builder-candidate-list"],
|
|
10402
|
+
children: c.candidateOptions.map(function (e, n) {
|
|
10089
10403
|
return (0, t.jsx)("li", {
|
|
10090
|
-
className:
|
|
10404
|
+
className: s["candidate-item"],
|
|
10091
10405
|
children: e
|
|
10092
10406
|
}, "".concat(e, "-").concat(n));
|
|
10093
10407
|
})
|
|
10094
10408
|
})]
|
|
10095
|
-
}),
|
|
10096
|
-
groups:
|
|
10097
|
-
title:
|
|
10409
|
+
}), a ? (0, t.jsx)(J, {
|
|
10410
|
+
groups: l,
|
|
10411
|
+
title: i.standardAnswer
|
|
10098
10412
|
}) : null]
|
|
10099
10413
|
});
|
|
10100
10414
|
}
|
|
10101
|
-
function
|
|
10102
|
-
var e =
|
|
10103
|
-
n =
|
|
10104
|
-
r =
|
|
10105
|
-
i =
|
|
10415
|
+
function Du(_ref165) {
|
|
10416
|
+
var e = _ref165.element,
|
|
10417
|
+
n = _ref165.item,
|
|
10418
|
+
r = _ref165.judgementStem,
|
|
10419
|
+
i = _ref165.locale,
|
|
10420
|
+
a = _ref165.messages,
|
|
10421
|
+
o = _ref165.showAnswer;
|
|
10422
|
+
var _Xc5 = Xc(),
|
|
10423
|
+
s = _Xc5.textResponseVisibility,
|
|
10424
|
+
_G14 = G(),
|
|
10425
|
+
c = _G14.textResponse;
|
|
10106
10426
|
if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
|
|
10107
|
-
return e.type === "richText" ? (0, t.jsx)(
|
|
10427
|
+
return e.type === "richText" ? (0, t.jsx)(q, {
|
|
10108
10428
|
content: n.content
|
|
10109
|
-
}) : e.type === "textResponse" ?
|
|
10429
|
+
}) : e.type === "textResponse" ? s === "hidden" ? null : (0, t.jsx)(du, {
|
|
10430
|
+
className: c.placeholder,
|
|
10431
|
+
label: a.textResponsePlaceholder
|
|
10432
|
+
}) : e.type === "ordering" ? (0, t.jsx)(Tu, {
|
|
10110
10433
|
item: n,
|
|
10111
|
-
messages:
|
|
10112
|
-
showAnswer:
|
|
10113
|
-
}) : e.type === "classification" ? (0, t.jsx)(
|
|
10434
|
+
messages: a,
|
|
10435
|
+
showAnswer: o
|
|
10436
|
+
}) : e.type === "classification" ? (0, t.jsx)(_u, {
|
|
10114
10437
|
item: n,
|
|
10115
|
-
messages:
|
|
10116
|
-
showAnswer:
|
|
10117
|
-
}) : e.type === "textMarker" ? (0, t.jsx)(
|
|
10438
|
+
messages: a,
|
|
10439
|
+
showAnswer: o
|
|
10440
|
+
}) : e.type === "textMarker" ? (0, t.jsx)(Kl, {
|
|
10118
10441
|
item: n,
|
|
10119
|
-
messages:
|
|
10120
|
-
showAnswer:
|
|
10121
|
-
}) :
|
|
10442
|
+
messages: a,
|
|
10443
|
+
showAnswer: o
|
|
10444
|
+
}) : Ou({
|
|
10122
10445
|
element: e,
|
|
10123
10446
|
item: n,
|
|
10124
|
-
|
|
10125
|
-
|
|
10447
|
+
judgementStem: r,
|
|
10448
|
+
locale: i,
|
|
10449
|
+
messages: a,
|
|
10450
|
+
showAnswer: o
|
|
10126
10451
|
});
|
|
10127
10452
|
}
|
|
10128
|
-
function
|
|
10129
|
-
var e =
|
|
10130
|
-
n =
|
|
10131
|
-
r =
|
|
10132
|
-
i =
|
|
10453
|
+
function Ou(_ref166) {
|
|
10454
|
+
var e = _ref166.element,
|
|
10455
|
+
n = _ref166.item,
|
|
10456
|
+
r = _ref166.judgementStem,
|
|
10457
|
+
i = _ref166.locale,
|
|
10458
|
+
a = _ref166.messages,
|
|
10459
|
+
o = _ref166.showAnswer;
|
|
10133
10460
|
switch (e.type) {
|
|
10134
10461
|
case "choice":
|
|
10135
|
-
return (0, t.jsx)(
|
|
10462
|
+
return (0, t.jsx)(Cu, {
|
|
10136
10463
|
element: e,
|
|
10137
10464
|
item: n,
|
|
10138
|
-
|
|
10139
|
-
|
|
10465
|
+
locale: i,
|
|
10466
|
+
messages: a,
|
|
10467
|
+
showAnswer: o
|
|
10140
10468
|
});
|
|
10141
10469
|
case "fill":
|
|
10142
|
-
return (0, t.jsx)(
|
|
10470
|
+
return (0, t.jsx)(hu, {
|
|
10143
10471
|
item: n,
|
|
10144
|
-
|
|
10145
|
-
|
|
10472
|
+
locale: i,
|
|
10473
|
+
messages: a,
|
|
10474
|
+
showAnswer: o
|
|
10146
10475
|
});
|
|
10147
10476
|
case "inlineFill":
|
|
10148
|
-
return (0, t.jsx)(
|
|
10477
|
+
return (0, t.jsx)(vu, {
|
|
10149
10478
|
element: e,
|
|
10150
10479
|
item: n,
|
|
10151
|
-
|
|
10152
|
-
|
|
10480
|
+
locale: i,
|
|
10481
|
+
messages: a,
|
|
10482
|
+
showAnswer: o
|
|
10153
10483
|
});
|
|
10154
10484
|
case "wordBuilder":
|
|
10155
|
-
return (0, t.jsx)(
|
|
10485
|
+
return (0, t.jsx)(Eu, {
|
|
10156
10486
|
element: e,
|
|
10157
10487
|
item: n,
|
|
10158
|
-
|
|
10159
|
-
|
|
10488
|
+
locale: i,
|
|
10489
|
+
messages: a,
|
|
10490
|
+
showAnswer: o
|
|
10160
10491
|
});
|
|
10161
10492
|
case "judgement":
|
|
10162
|
-
return (0, t.jsx)(
|
|
10493
|
+
return (0, t.jsx)(bu, {
|
|
10163
10494
|
element: e,
|
|
10164
10495
|
item: n,
|
|
10165
|
-
|
|
10166
|
-
|
|
10496
|
+
stem: r,
|
|
10497
|
+
messages: a,
|
|
10498
|
+
showAnswer: o
|
|
10167
10499
|
});
|
|
10168
10500
|
case "lineConnect":
|
|
10169
|
-
return (0, t.jsx)(
|
|
10501
|
+
return (0, t.jsx)(xu, {
|
|
10170
10502
|
item: n,
|
|
10171
|
-
messages:
|
|
10172
|
-
showAnswer:
|
|
10503
|
+
messages: a,
|
|
10504
|
+
showAnswer: o
|
|
10173
10505
|
});
|
|
10174
10506
|
case "matching":
|
|
10175
|
-
return (0, t.jsx)(
|
|
10507
|
+
return (0, t.jsx)(Su, {
|
|
10176
10508
|
item: n,
|
|
10177
|
-
messages:
|
|
10178
|
-
showAnswer:
|
|
10509
|
+
messages: a,
|
|
10510
|
+
showAnswer: o
|
|
10179
10511
|
});
|
|
10180
10512
|
}
|
|
10181
10513
|
}
|
|
10182
|
-
var
|
|
10514
|
+
var ku = (0, n.createContext)({
|
|
10183
10515
|
root: "_root_13x11_1",
|
|
10184
10516
|
empty: "_empty_13x11_17",
|
|
10185
10517
|
"element-list": "_element-list_13x11_29",
|
|
@@ -10187,140 +10519,291 @@ var X = {
|
|
|
10187
10519
|
element: "_element_13x11_29",
|
|
10188
10520
|
extra: "_extra_13x11_40",
|
|
10189
10521
|
child: "_child_13x11_30"
|
|
10190
|
-
};
|
|
10191
|
-
function
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10522
|
+
});
|
|
10523
|
+
function Au() {
|
|
10524
|
+
return (0, n.useContext)(ku);
|
|
10525
|
+
}
|
|
10526
|
+
function ju(_ref167) {
|
|
10527
|
+
var _ref167$childIndexPat = _ref167.childIndexPath,
|
|
10528
|
+
e = _ref167$childIndexPat === void 0 ? [] : _ref167$childIndexPat,
|
|
10529
|
+
n = _ref167.messages,
|
|
10530
|
+
r = _ref167.renderChild,
|
|
10531
|
+
i = _ref167.rootQuestionNumber,
|
|
10532
|
+
a = _ref167.value;
|
|
10533
|
+
var o = Au();
|
|
10198
10534
|
return a.children.length === 0 ? (0, t.jsx)("div", {
|
|
10199
|
-
className:
|
|
10535
|
+
className: o.empty,
|
|
10200
10536
|
children: n.previewEmpty
|
|
10201
10537
|
}) : (0, t.jsx)("div", {
|
|
10202
|
-
className:
|
|
10203
|
-
children: a.children.map(function (n,
|
|
10204
|
-
var
|
|
10205
|
-
|
|
10538
|
+
className: o.children,
|
|
10539
|
+
children: a.children.map(function (n, s) {
|
|
10540
|
+
var c = [].concat(_toConsumableArray(e), [s]),
|
|
10541
|
+
l = Oo(c, a.children.length, i);
|
|
10206
10542
|
return (0, t.jsx)("section", {
|
|
10207
|
-
className:
|
|
10543
|
+
className: o.child,
|
|
10208
10544
|
children: (0, t.jsx)(Ao, {
|
|
10209
10545
|
indented: !0,
|
|
10210
|
-
number:
|
|
10211
|
-
children: r(n,
|
|
10546
|
+
number: l,
|
|
10547
|
+
children: r(n, c)
|
|
10212
10548
|
})
|
|
10213
|
-
}, n.id ||
|
|
10549
|
+
}, n.id || s);
|
|
10214
10550
|
})
|
|
10215
10551
|
});
|
|
10216
10552
|
}
|
|
10217
|
-
var
|
|
10218
|
-
function
|
|
10553
|
+
var Mu = ["locale"];
|
|
10554
|
+
function Nu(e) {
|
|
10219
10555
|
var _e$locale2 = e.locale,
|
|
10220
10556
|
n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
|
|
10221
|
-
r = ma(e,
|
|
10557
|
+
r = ma(e, Mu),
|
|
10222
10558
|
i = us(r.value, r.questionTypeTemplates);
|
|
10223
|
-
return (0, t.jsx)(
|
|
10559
|
+
return (0, t.jsx)(Pu, C(C({}, r), {}, {
|
|
10224
10560
|
childIndexPath: [],
|
|
10561
|
+
locale: n,
|
|
10225
10562
|
messages: bc(n),
|
|
10226
10563
|
value: i
|
|
10227
10564
|
}));
|
|
10228
10565
|
}
|
|
10229
|
-
function
|
|
10230
|
-
var e =
|
|
10231
|
-
n =
|
|
10232
|
-
r =
|
|
10233
|
-
i =
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
c =
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10566
|
+
function Pu(_ref168) {
|
|
10567
|
+
var e = _ref168.childIndexPath,
|
|
10568
|
+
n = _ref168.className,
|
|
10569
|
+
r = _ref168.locale,
|
|
10570
|
+
i = _ref168.messages,
|
|
10571
|
+
a = _ref168.presentation,
|
|
10572
|
+
o = _ref168.rootQuestionNumber,
|
|
10573
|
+
_ref168$showAnswer = _ref168.showAnswer,
|
|
10574
|
+
s = _ref168$showAnswer === void 0 ? !1 : _ref168$showAnswer,
|
|
10575
|
+
_ref168$showExtraAttr = _ref168.showExtraAttributes,
|
|
10576
|
+
c = _ref168$showExtraAttr === void 0 ? !1 : _ref168$showExtraAttr,
|
|
10577
|
+
l = _ref168.questionTypeTemplates,
|
|
10578
|
+
u = _ref168.value;
|
|
10579
|
+
var d = Au(),
|
|
10580
|
+
f = Zi(l, u);
|
|
10581
|
+
if (!f) return (0, t.jsx)("div", {
|
|
10582
|
+
className: H(d.root, n),
|
|
10583
|
+
"data-locale": r,
|
|
10584
|
+
"data-question-presentation": a,
|
|
10243
10585
|
children: (0, t.jsx)("div", {
|
|
10244
|
-
className:
|
|
10245
|
-
children:
|
|
10586
|
+
className: d.empty,
|
|
10587
|
+
children: i.missingQuestionTypeTemplate
|
|
10246
10588
|
})
|
|
10247
10589
|
});
|
|
10248
|
-
var
|
|
10249
|
-
className:
|
|
10250
|
-
children:
|
|
10251
|
-
var
|
|
10590
|
+
var p = f.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
10591
|
+
className: d["element-list"],
|
|
10592
|
+
children: f.elements.map(function (e, n) {
|
|
10593
|
+
var o;
|
|
10594
|
+
if (a === "print" && e.type === "richText" && ((o = Iu(f.elements, n + 1)) == null ? void 0 : o.type) === "judgement") return null;
|
|
10595
|
+
var c = Yt(u, n, e),
|
|
10596
|
+
l = a === "print" ? Fu(f, u, n) : void 0;
|
|
10252
10597
|
return (0, t.jsx)("section", {
|
|
10253
|
-
className:
|
|
10254
|
-
children: (0, t.jsx)(
|
|
10598
|
+
className: d.element,
|
|
10599
|
+
children: (0, t.jsx)(Du, {
|
|
10255
10600
|
element: e,
|
|
10256
|
-
item:
|
|
10257
|
-
|
|
10258
|
-
|
|
10601
|
+
item: c,
|
|
10602
|
+
judgementStem: l,
|
|
10603
|
+
locale: r,
|
|
10604
|
+
messages: i,
|
|
10605
|
+
showAnswer: s && f.hasAnswer
|
|
10259
10606
|
})
|
|
10260
10607
|
}, "".concat(e.type, "-").concat(n));
|
|
10261
10608
|
})
|
|
10262
10609
|
}),
|
|
10263
|
-
|
|
10264
|
-
className:
|
|
10265
|
-
children:
|
|
10266
|
-
var
|
|
10267
|
-
return A(
|
|
10268
|
-
className:
|
|
10269
|
-
children: [(0, t.jsx)(
|
|
10610
|
+
m = c ? (0, t.jsx)("div", {
|
|
10611
|
+
className: d["element-list"],
|
|
10612
|
+
children: f.extras.map(function (e, n) {
|
|
10613
|
+
var a = Xt(u, n, e);
|
|
10614
|
+
return A(a.content) ? null : (0, t.jsxs)("section", {
|
|
10615
|
+
className: d.extra,
|
|
10616
|
+
children: [(0, t.jsx)(Fc, {
|
|
10270
10617
|
children: e.name
|
|
10271
|
-
}), (0, t.jsx)(
|
|
10272
|
-
element:
|
|
10273
|
-
item:
|
|
10274
|
-
|
|
10618
|
+
}), (0, t.jsx)(Du, {
|
|
10619
|
+
element: Ru(e),
|
|
10620
|
+
item: zu(a),
|
|
10621
|
+
locale: r,
|
|
10622
|
+
messages: i,
|
|
10275
10623
|
showAnswer: !1
|
|
10276
10624
|
})]
|
|
10277
10625
|
}, "".concat(e.type, "-").concat(n));
|
|
10278
10626
|
})
|
|
10279
10627
|
}) : null,
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
}
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10628
|
+
h = u.children.length === 0 ? null : (0, t.jsx)(ju, {
|
|
10629
|
+
childIndexPath: e,
|
|
10630
|
+
messages: i,
|
|
10631
|
+
renderChild: function renderChild(e, n) {
|
|
10632
|
+
return (0, t.jsx)(Pu, {
|
|
10633
|
+
childIndexPath: n,
|
|
10634
|
+
locale: r,
|
|
10635
|
+
messages: i,
|
|
10636
|
+
presentation: a,
|
|
10637
|
+
rootQuestionNumber: o,
|
|
10638
|
+
showAnswer: s,
|
|
10639
|
+
showExtraAttributes: c,
|
|
10640
|
+
questionTypeTemplates: l,
|
|
10641
|
+
value: e
|
|
10642
|
+
});
|
|
10643
|
+
},
|
|
10644
|
+
rootQuestionNumber: o,
|
|
10645
|
+
value: u
|
|
10298
10646
|
});
|
|
10299
10647
|
return (0, t.jsx)("div", {
|
|
10300
|
-
className: H(
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10648
|
+
className: H(d.root, n),
|
|
10649
|
+
"data-locale": r,
|
|
10650
|
+
"data-question-presentation": a,
|
|
10651
|
+
children: Lu(f, u) ? (0, t.jsx)("div", {
|
|
10652
|
+
className: d.empty,
|
|
10653
|
+
children: i.previewEmpty
|
|
10654
|
+
}) : (0, t.jsxs)(t.Fragment, {
|
|
10655
|
+
children: [p, h, m]
|
|
10656
|
+
})
|
|
10305
10657
|
});
|
|
10306
10658
|
}
|
|
10307
|
-
function
|
|
10659
|
+
function Fu(e, t, n) {
|
|
10660
|
+
var r = Iu(e.elements, n),
|
|
10661
|
+
i = Iu(e.elements, n - 1);
|
|
10662
|
+
if (!((r == null ? void 0 : r.type) !== "judgement" || (i == null ? void 0 : i.type) !== "richText")) return Yt(t, n - 1, i).content;
|
|
10663
|
+
}
|
|
10664
|
+
function Iu(e, t) {
|
|
10665
|
+
return t >= 0 ? e.slice(t, t + 1)[0] : void 0;
|
|
10666
|
+
}
|
|
10667
|
+
function Lu(e, t) {
|
|
10308
10668
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
10309
10669
|
}
|
|
10310
|
-
function
|
|
10670
|
+
function Ru(e) {
|
|
10311
10671
|
return {
|
|
10312
10672
|
config: {},
|
|
10313
10673
|
name: e.name,
|
|
10314
10674
|
type: "richText"
|
|
10315
10675
|
};
|
|
10316
10676
|
}
|
|
10317
|
-
function
|
|
10677
|
+
function zu(e) {
|
|
10318
10678
|
return {
|
|
10319
10679
|
content: e.content,
|
|
10320
10680
|
type: "richText"
|
|
10321
10681
|
};
|
|
10322
10682
|
}
|
|
10323
|
-
|
|
10683
|
+
function Bu(e) {
|
|
10684
|
+
return (0, t.jsx)(Nu, C(C({}, e), {}, {
|
|
10685
|
+
presentation: "preview"
|
|
10686
|
+
}));
|
|
10687
|
+
}
|
|
10688
|
+
var Vu = {
|
|
10689
|
+
"answer-panel": "_answer-panel_1tus4_1",
|
|
10690
|
+
"answer-list": "_answer-list_1tus4_10",
|
|
10691
|
+
"answer-row": "_answer-row_1tus4_27",
|
|
10692
|
+
"answer-marker": "_answer-marker_1tus4_35",
|
|
10693
|
+
"answer-marker-only": "_answer-marker-only_1tus4_43",
|
|
10694
|
+
"answer-content-list": "_answer-content-list_1tus4_47",
|
|
10695
|
+
"answer-value": "_answer-value_1tus4_56"
|
|
10696
|
+
},
|
|
10697
|
+
Hu = {
|
|
10698
|
+
"blank-list": "_blank-list_1e7l0_1",
|
|
10699
|
+
"blank-item": "_blank-item_1e7l0_11",
|
|
10700
|
+
"blank-field": "_blank-field_1e7l0_17"
|
|
10701
|
+
},
|
|
10702
|
+
Uu = {
|
|
10703
|
+
board: "_board_s95se_1",
|
|
10704
|
+
pool: "_pool_s95se_6",
|
|
10705
|
+
zones: "_zones_s95se_13",
|
|
10706
|
+
zone: "_zone_s95se_13",
|
|
10707
|
+
"zone-title": "_zone-title_s95se_28",
|
|
10708
|
+
item: "_item_s95se_35",
|
|
10709
|
+
empty: "_empty_s95se_41"
|
|
10710
|
+
},
|
|
10711
|
+
Wu = {
|
|
10712
|
+
board: "_board_1cujb_1",
|
|
10713
|
+
columns: "_columns_1cujb_7",
|
|
10714
|
+
"column-title": "_column-title_1cujb_13"
|
|
10715
|
+
},
|
|
10716
|
+
Gu = {
|
|
10717
|
+
board: "_board_1nfae_1",
|
|
10718
|
+
columns: "_columns_1nfae_6"
|
|
10719
|
+
},
|
|
10720
|
+
Ku = {
|
|
10721
|
+
media: "_media_a9b7d_1",
|
|
10722
|
+
"math-inline": "_math-inline_a9b7d_9"
|
|
10723
|
+
},
|
|
10724
|
+
qu = {
|
|
10725
|
+
"rich-content": "_rich-content_1w02n_1",
|
|
10726
|
+
element: "_element_1w02n_64",
|
|
10727
|
+
"option-list": "_option-list_1w02n_66",
|
|
10728
|
+
"candidate-list": "_candidate-list_1w02n_66",
|
|
10729
|
+
"judgement-list": "_judgement-list_1w02n_66",
|
|
10730
|
+
"candidate-item": "_candidate-item_1w02n_77",
|
|
10731
|
+
"judgement-row": "_judgement-row_1w02n_80",
|
|
10732
|
+
"judgement-placeholder": "_judgement-placeholder_1w02n_88",
|
|
10733
|
+
"option-item": "_option-item_1w02n_95",
|
|
10734
|
+
"judgement-item": "_judgement-item_1w02n_97",
|
|
10735
|
+
marker: "_marker_1w02n_111",
|
|
10736
|
+
"labeled-column": "_labeled-column_1w02n_118",
|
|
10737
|
+
"labeled-item": "_labeled-item_1w02n_124",
|
|
10738
|
+
"labeled-marker": "_labeled-marker_1w02n_132",
|
|
10739
|
+
"candidate-section": "_candidate-section_1w02n_142",
|
|
10740
|
+
"section-title": "_section-title_1w02n_149",
|
|
10741
|
+
"word-builder-blank": "_word-builder-blank_1w02n_155",
|
|
10742
|
+
"word-builder-candidate-list": "_word-builder-candidate-list_1w02n_169"
|
|
10743
|
+
},
|
|
10744
|
+
Ju = {
|
|
10745
|
+
title: "_title_uqy9p_1"
|
|
10746
|
+
},
|
|
10747
|
+
Yu = {
|
|
10748
|
+
"table-wrap": "_table-wrap_1pmla_1",
|
|
10749
|
+
table: "_table_1pmla_1",
|
|
10750
|
+
"table-option-column": "_table-option-column_1pmla_13",
|
|
10751
|
+
"table-option-marker": "_table-option-marker_1pmla_32"
|
|
10752
|
+
},
|
|
10753
|
+
Xu = {
|
|
10754
|
+
content: "_content_1gnvb_1",
|
|
10755
|
+
paragraph: "_paragraph_1gnvb_10",
|
|
10756
|
+
marker: "_marker_1gnvb_14",
|
|
10757
|
+
"marker-button": "_marker-button_1gnvb_21",
|
|
10758
|
+
"marker-selected": "_marker-selected_1gnvb_30",
|
|
10759
|
+
"marker-answer": "_marker-answer_1gnvb_31"
|
|
10760
|
+
},
|
|
10761
|
+
Zu = {
|
|
10762
|
+
placeholder: "_placeholder_np8ps_1"
|
|
10763
|
+
},
|
|
10764
|
+
Qu = {
|
|
10765
|
+
column: qu["labeled-column"],
|
|
10766
|
+
item: qu["labeled-item"],
|
|
10767
|
+
marker: qu["labeled-marker"]
|
|
10768
|
+
},
|
|
10769
|
+
$u = {
|
|
10770
|
+
answer: Vu,
|
|
10771
|
+
blankGroup: Hu,
|
|
10772
|
+
classification: Uu,
|
|
10773
|
+
lineConnect: C(C({}, Wu), Qu),
|
|
10774
|
+
matching: C(C({}, Gu), Qu),
|
|
10775
|
+
renderer: C(C({}, qu), {}, {
|
|
10776
|
+
"rich-content": "".concat(qu["rich-content"], " ").concat(Ku.media)
|
|
10777
|
+
}),
|
|
10778
|
+
sectionTitle: Ju,
|
|
10779
|
+
table: Yu,
|
|
10780
|
+
textMarker: Xu,
|
|
10781
|
+
textResponse: Zu
|
|
10782
|
+
},
|
|
10783
|
+
ed = {
|
|
10784
|
+
root: "_root_1mvma_1",
|
|
10785
|
+
empty: "_empty_1mvma_21",
|
|
10786
|
+
"element-list": "_element-list_1mvma_29",
|
|
10787
|
+
children: "_children_1mvma_30",
|
|
10788
|
+
element: "_element_1mvma_29",
|
|
10789
|
+
extra: "_extra_1mvma_36",
|
|
10790
|
+
child: "_child_1mvma_30"
|
|
10791
|
+
};
|
|
10792
|
+
function td(e) {
|
|
10793
|
+
return (0, t.jsx)(Yc.Provider, {
|
|
10794
|
+
value: Jc,
|
|
10795
|
+
children: (0, t.jsx)(Pc.Provider, {
|
|
10796
|
+
value: $u,
|
|
10797
|
+
children: (0, t.jsx)(ku.Provider, {
|
|
10798
|
+
value: ed,
|
|
10799
|
+
children: (0, t.jsx)(Nu, C(C({}, e), {}, {
|
|
10800
|
+
presentation: "print"
|
|
10801
|
+
}))
|
|
10802
|
+
})
|
|
10803
|
+
})
|
|
10804
|
+
});
|
|
10805
|
+
}
|
|
10806
|
+
var nd = {
|
|
10324
10807
|
root: "_root_17bqr_1",
|
|
10325
10808
|
toolbar: "_toolbar_17bqr_26",
|
|
10326
10809
|
"toolbar-title": "_toolbar-title_17bqr_36",
|
|
@@ -10375,7 +10858,7 @@ var mu = {
|
|
|
10375
10858
|
"palette-section-title": "_palette-section-title_vhj2r_62",
|
|
10376
10859
|
"palette-button": "_palette-button_vhj2r_70"
|
|
10377
10860
|
},
|
|
10378
|
-
|
|
10861
|
+
rd = {
|
|
10379
10862
|
"en-US": {
|
|
10380
10863
|
addElement: "Add element",
|
|
10381
10864
|
addExtra: "Add extra attribute",
|
|
@@ -10509,26 +10992,26 @@ var mu = {
|
|
|
10509
10992
|
wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
|
|
10510
10993
|
}
|
|
10511
10994
|
};
|
|
10512
|
-
function
|
|
10995
|
+
function id(e, t) {
|
|
10513
10996
|
var n;
|
|
10514
10997
|
return (n = e.extraDescriptions.get(t)) == null ? t : n;
|
|
10515
10998
|
}
|
|
10516
|
-
function
|
|
10999
|
+
function ad(e, t) {
|
|
10517
11000
|
var n;
|
|
10518
11001
|
return (n = e.extraLabels.get(t)) == null ? t : n;
|
|
10519
11002
|
}
|
|
10520
|
-
function
|
|
11003
|
+
function od(e) {
|
|
10521
11004
|
switch (e) {
|
|
10522
11005
|
case "en-US":
|
|
10523
|
-
return
|
|
11006
|
+
return rd["en-US"];
|
|
10524
11007
|
case "zh-CN":
|
|
10525
|
-
return
|
|
11008
|
+
return rd["zh-CN"];
|
|
10526
11009
|
}
|
|
10527
11010
|
}
|
|
10528
|
-
function
|
|
10529
|
-
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription :
|
|
11011
|
+
function sd(e, t) {
|
|
11012
|
+
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : ud(e, t);
|
|
10530
11013
|
}
|
|
10531
|
-
var
|
|
11014
|
+
var cd = {
|
|
10532
11015
|
choice: function choice(e) {
|
|
10533
11016
|
return e.optionGroupDescription;
|
|
10534
11017
|
},
|
|
@@ -10560,7 +11043,7 @@ var bu = {
|
|
|
10560
11043
|
return e.wordBuilderDescription;
|
|
10561
11044
|
}
|
|
10562
11045
|
},
|
|
10563
|
-
|
|
11046
|
+
ld = {
|
|
10564
11047
|
choice: function choice(e) {
|
|
10565
11048
|
return e.optionGroupLabel;
|
|
10566
11049
|
},
|
|
@@ -10592,40 +11075,40 @@ var bu = {
|
|
|
10592
11075
|
return e.wordBuilderLabel;
|
|
10593
11076
|
}
|
|
10594
11077
|
};
|
|
10595
|
-
function
|
|
10596
|
-
return
|
|
11078
|
+
function ud(e, t) {
|
|
11079
|
+
return cd[t](e);
|
|
10597
11080
|
}
|
|
10598
|
-
function
|
|
10599
|
-
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel :
|
|
11081
|
+
function dd(e, t) {
|
|
11082
|
+
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : fd(e, t);
|
|
10600
11083
|
}
|
|
10601
|
-
function
|
|
10602
|
-
return
|
|
11084
|
+
function fd(e, t) {
|
|
11085
|
+
return ld[t](e);
|
|
10603
11086
|
}
|
|
10604
|
-
function
|
|
11087
|
+
function pd(e, t) {
|
|
10605
11088
|
var n;
|
|
10606
11089
|
return (n = e.optionValueLabels.get(t)) == null ? t : n;
|
|
10607
11090
|
}
|
|
10608
|
-
function
|
|
11091
|
+
function md(e, t) {
|
|
10609
11092
|
var n;
|
|
10610
11093
|
return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
|
|
10611
11094
|
}
|
|
10612
|
-
function
|
|
11095
|
+
function hd(e, t) {
|
|
10613
11096
|
var n;
|
|
10614
11097
|
return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
|
|
10615
11098
|
}
|
|
10616
|
-
function
|
|
10617
|
-
var e =
|
|
10618
|
-
r =
|
|
10619
|
-
i =
|
|
10620
|
-
a =
|
|
10621
|
-
o =
|
|
10622
|
-
s =
|
|
10623
|
-
c =
|
|
10624
|
-
l =
|
|
10625
|
-
var
|
|
10626
|
-
|
|
10627
|
-
u =
|
|
10628
|
-
d =
|
|
11099
|
+
function gd(_ref169) {
|
|
11100
|
+
var e = _ref169.elements,
|
|
11101
|
+
r = _ref169.extras,
|
|
11102
|
+
i = _ref169.labels,
|
|
11103
|
+
a = _ref169.onDeleteElement,
|
|
11104
|
+
o = _ref169.onDeleteExtra,
|
|
11105
|
+
s = _ref169.onMoveElement,
|
|
11106
|
+
c = _ref169.onSelectElement,
|
|
11107
|
+
l = _ref169.selectedElementClientId;
|
|
11108
|
+
var _ref170 = (0, n.useState)(null),
|
|
11109
|
+
_ref171 = _slicedToArray(_ref170, 2),
|
|
11110
|
+
u = _ref171[0],
|
|
11111
|
+
d = _ref171[1];
|
|
10629
11112
|
return (0, t.jsxs)("section", {
|
|
10630
11113
|
className: Q.panel,
|
|
10631
11114
|
children: [(0, t.jsxs)("div", {
|
|
@@ -10644,7 +11127,7 @@ function Ou(_ref168) {
|
|
|
10644
11127
|
className: Z["element-list"],
|
|
10645
11128
|
children: [e.map(function (n, r) {
|
|
10646
11129
|
var o = n.clientId === l,
|
|
10647
|
-
f =
|
|
11130
|
+
f = dd(i, n.type);
|
|
10648
11131
|
return (0, t.jsxs)("div", {
|
|
10649
11132
|
className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
|
|
10650
11133
|
onClick: function onClick() {
|
|
@@ -10713,7 +11196,7 @@ function Ou(_ref168) {
|
|
|
10713
11196
|
children: i.extraTitle
|
|
10714
11197
|
}) : null, r.map(function (n, r) {
|
|
10715
11198
|
var a = n.clientId === l,
|
|
10716
|
-
s =
|
|
11199
|
+
s = ad(i, n.type);
|
|
10717
11200
|
return (0, t.jsxs)("div", {
|
|
10718
11201
|
className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
|
|
10719
11202
|
onClick: function onClick() {
|
|
@@ -10765,11 +11248,11 @@ function Ou(_ref168) {
|
|
|
10765
11248
|
})]
|
|
10766
11249
|
});
|
|
10767
11250
|
}
|
|
10768
|
-
function
|
|
10769
|
-
var e =
|
|
10770
|
-
n =
|
|
10771
|
-
r =
|
|
10772
|
-
i =
|
|
11251
|
+
function _d(_ref172) {
|
|
11252
|
+
var e = _ref172.addedExtraTypes,
|
|
11253
|
+
n = _ref172.labels,
|
|
11254
|
+
r = _ref172.onAddElement,
|
|
11255
|
+
i = _ref172.onAddExtra;
|
|
10773
11256
|
var a = new Set(e);
|
|
10774
11257
|
return (0, t.jsxs)("aside", {
|
|
10775
11258
|
className: Q.panel,
|
|
@@ -10783,16 +11266,16 @@ function ku(_ref171) {
|
|
|
10783
11266
|
className: Q.palette,
|
|
10784
11267
|
children: ee.map(function (e) {
|
|
10785
11268
|
return (0, t.jsxs)("button", {
|
|
10786
|
-
"aria-label": "".concat(n.addElement, ": ").concat(
|
|
11269
|
+
"aria-label": "".concat(n.addElement, ": ").concat(dd(n, e)),
|
|
10787
11270
|
className: Q["palette-button"],
|
|
10788
11271
|
onClick: function onClick() {
|
|
10789
11272
|
return r(e);
|
|
10790
11273
|
},
|
|
10791
11274
|
type: "button",
|
|
10792
11275
|
children: [(0, t.jsx)("strong", {
|
|
10793
|
-
children:
|
|
11276
|
+
children: dd(n, e)
|
|
10794
11277
|
}), (0, t.jsx)("small", {
|
|
10795
|
-
children:
|
|
11278
|
+
children: sd(n, e)
|
|
10796
11279
|
})]
|
|
10797
11280
|
}, e);
|
|
10798
11281
|
})
|
|
@@ -10806,7 +11289,7 @@ function ku(_ref171) {
|
|
|
10806
11289
|
children: w.map(function (e) {
|
|
10807
11290
|
var r = a.has(e);
|
|
10808
11291
|
return (0, t.jsxs)("button", {
|
|
10809
|
-
"aria-label": "".concat(n.addExtra, ": ").concat(
|
|
11292
|
+
"aria-label": "".concat(n.addExtra, ": ").concat(ad(n, e)),
|
|
10810
11293
|
className: Q["palette-button"],
|
|
10811
11294
|
disabled: r,
|
|
10812
11295
|
onClick: function onClick() {
|
|
@@ -10814,9 +11297,9 @@ function ku(_ref171) {
|
|
|
10814
11297
|
},
|
|
10815
11298
|
type: "button",
|
|
10816
11299
|
children: [(0, t.jsx)("strong", {
|
|
10817
|
-
children:
|
|
11300
|
+
children: ad(n, e)
|
|
10818
11301
|
}), (0, t.jsx)("small", {
|
|
10819
|
-
children:
|
|
11302
|
+
children: id(n, e)
|
|
10820
11303
|
})]
|
|
10821
11304
|
}, e);
|
|
10822
11305
|
})
|
|
@@ -10834,26 +11317,26 @@ var $ = {
|
|
|
10834
11317
|
textarea: "_textarea_tgswd_28",
|
|
10835
11318
|
empty: "_empty_tgswd_61"
|
|
10836
11319
|
},
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
function
|
|
10846
|
-
var e =
|
|
10847
|
-
n =
|
|
10848
|
-
r =
|
|
10849
|
-
i =
|
|
10850
|
-
a =
|
|
10851
|
-
o =
|
|
10852
|
-
s =
|
|
10853
|
-
c =
|
|
10854
|
-
l =
|
|
10855
|
-
u =
|
|
10856
|
-
var d =
|
|
11320
|
+
vd = ["none", "sharedPool", "perBlankOptions"],
|
|
11321
|
+
yd = ["upperAlpha", "lowerAlpha", "number"],
|
|
11322
|
+
bd = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
|
|
11323
|
+
xd = [2, 3, 4, 5],
|
|
11324
|
+
Sd = ["standard", "table"],
|
|
11325
|
+
Cd = ["single", "multiple"],
|
|
11326
|
+
wd = ["spelling", "sentence"],
|
|
11327
|
+
Td = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
|
|
11328
|
+
function Ed(_ref173) {
|
|
11329
|
+
var e = _ref173.description,
|
|
11330
|
+
n = _ref173.globalConfig,
|
|
11331
|
+
r = _ref173.isSubjective,
|
|
11332
|
+
i = _ref173.labels,
|
|
11333
|
+
a = _ref173.onElementChange,
|
|
11334
|
+
o = _ref173.onExtraChange,
|
|
11335
|
+
s = _ref173.onGlobalConfigChange,
|
|
11336
|
+
c = _ref173.onMetadataChange,
|
|
11337
|
+
l = _ref173.selectedExtra,
|
|
11338
|
+
u = _ref173.selectedElement;
|
|
11339
|
+
var d = Dd({
|
|
10857
11340
|
labels: i,
|
|
10858
11341
|
onElementChange: a,
|
|
10859
11342
|
onExtraChange: o,
|
|
@@ -10964,12 +11447,12 @@ function Ru(_ref172) {
|
|
|
10964
11447
|
})]
|
|
10965
11448
|
});
|
|
10966
11449
|
}
|
|
10967
|
-
function
|
|
10968
|
-
var e =
|
|
10969
|
-
n =
|
|
10970
|
-
r =
|
|
10971
|
-
i =
|
|
10972
|
-
a =
|
|
11450
|
+
function Dd(_ref174) {
|
|
11451
|
+
var e = _ref174.labels,
|
|
11452
|
+
n = _ref174.onElementChange,
|
|
11453
|
+
r = _ref174.onExtraChange,
|
|
11454
|
+
i = _ref174.selectedElement,
|
|
11455
|
+
a = _ref174.selectedExtra;
|
|
10973
11456
|
return i ? (0, t.jsxs)("div", {
|
|
10974
11457
|
className: $["form-stack"],
|
|
10975
11458
|
children: [(0, t.jsxs)("label", {
|
|
@@ -10998,7 +11481,7 @@ function zu(_ref173) {
|
|
|
10998
11481
|
},
|
|
10999
11482
|
value: i.enName
|
|
11000
11483
|
})]
|
|
11001
|
-
}),
|
|
11484
|
+
}), Od(i, e, n)]
|
|
11002
11485
|
}) : a ? (0, t.jsxs)("div", {
|
|
11003
11486
|
className: $["form-stack"],
|
|
11004
11487
|
children: [(0, t.jsxs)("label", {
|
|
@@ -11033,10 +11516,10 @@ function zu(_ref173) {
|
|
|
11033
11516
|
children: e.noElement
|
|
11034
11517
|
});
|
|
11035
11518
|
}
|
|
11036
|
-
function
|
|
11037
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null :
|
|
11519
|
+
function Od(e, t, n) {
|
|
11520
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : kd(e, t, n);
|
|
11038
11521
|
}
|
|
11039
|
-
function
|
|
11522
|
+
function kd(e, n, r) {
|
|
11040
11523
|
switch (e.type) {
|
|
11041
11524
|
case "inlineFill":
|
|
11042
11525
|
return (0, t.jsxs)(t.Fragment, {
|
|
@@ -11054,10 +11537,10 @@ function Vu(e, n, r) {
|
|
|
11054
11537
|
}));
|
|
11055
11538
|
},
|
|
11056
11539
|
value: e.config.candidateMode,
|
|
11057
|
-
children:
|
|
11540
|
+
children: vd.map(function (e) {
|
|
11058
11541
|
return (0, t.jsx)("option", {
|
|
11059
11542
|
value: e,
|
|
11060
|
-
children:
|
|
11543
|
+
children: md(n, e)
|
|
11061
11544
|
}, e);
|
|
11062
11545
|
})
|
|
11063
11546
|
})]
|
|
@@ -11093,10 +11576,10 @@ function Vu(e, n, r) {
|
|
|
11093
11576
|
}));
|
|
11094
11577
|
},
|
|
11095
11578
|
value: e.config.builderMode,
|
|
11096
|
-
children:
|
|
11579
|
+
children: wd.map(function (e) {
|
|
11097
11580
|
return (0, t.jsx)("option", {
|
|
11098
11581
|
value: e,
|
|
11099
|
-
children:
|
|
11582
|
+
children: pd(n, e)
|
|
11100
11583
|
}, e);
|
|
11101
11584
|
})
|
|
11102
11585
|
})]
|
|
@@ -11116,23 +11599,23 @@ function Vu(e, n, r) {
|
|
|
11116
11599
|
}));
|
|
11117
11600
|
},
|
|
11118
11601
|
value: e.config.judgeAnswerMode,
|
|
11119
|
-
children:
|
|
11602
|
+
children: Td.map(function (e) {
|
|
11120
11603
|
return (0, t.jsx)("option", {
|
|
11121
11604
|
value: e,
|
|
11122
|
-
children:
|
|
11605
|
+
children: pd(n, e)
|
|
11123
11606
|
}, e);
|
|
11124
11607
|
})
|
|
11125
11608
|
})]
|
|
11126
11609
|
});
|
|
11127
11610
|
case "choice":
|
|
11128
|
-
return
|
|
11611
|
+
return Ad(e, n, r);
|
|
11129
11612
|
case "lineConnect":
|
|
11130
|
-
return
|
|
11613
|
+
return jd(e, n, r);
|
|
11131
11614
|
case "matching":
|
|
11132
|
-
return
|
|
11615
|
+
return Md(e, n, r);
|
|
11133
11616
|
}
|
|
11134
11617
|
}
|
|
11135
|
-
function
|
|
11618
|
+
function Ad(e, n, r) {
|
|
11136
11619
|
return (0, t.jsxs)(t.Fragment, {
|
|
11137
11620
|
children: [(0, t.jsxs)("label", {
|
|
11138
11621
|
className: $["form-row"],
|
|
@@ -11148,10 +11631,10 @@ function Hu(e, n, r) {
|
|
|
11148
11631
|
}));
|
|
11149
11632
|
},
|
|
11150
11633
|
value: e.config.selectionType,
|
|
11151
|
-
children:
|
|
11634
|
+
children: Cd.map(function (e) {
|
|
11152
11635
|
return (0, t.jsx)("option", {
|
|
11153
11636
|
value: e,
|
|
11154
|
-
children:
|
|
11637
|
+
children: pd(n, e)
|
|
11155
11638
|
}, e);
|
|
11156
11639
|
})
|
|
11157
11640
|
})]
|
|
@@ -11169,10 +11652,10 @@ function Hu(e, n, r) {
|
|
|
11169
11652
|
}));
|
|
11170
11653
|
},
|
|
11171
11654
|
value: e.config.optionLabelStyle,
|
|
11172
|
-
children:
|
|
11655
|
+
children: yd.map(function (e) {
|
|
11173
11656
|
return (0, t.jsx)("option", {
|
|
11174
11657
|
value: e,
|
|
11175
|
-
children:
|
|
11658
|
+
children: pd(n, e)
|
|
11176
11659
|
}, e);
|
|
11177
11660
|
})
|
|
11178
11661
|
})]
|
|
@@ -11190,18 +11673,18 @@ function Hu(e, n, r) {
|
|
|
11190
11673
|
}));
|
|
11191
11674
|
},
|
|
11192
11675
|
value: e.config.renderer,
|
|
11193
|
-
children:
|
|
11676
|
+
children: Sd.map(function (e) {
|
|
11194
11677
|
return (0, t.jsx)("option", {
|
|
11195
11678
|
value: e,
|
|
11196
|
-
children:
|
|
11679
|
+
children: pd(n, e)
|
|
11197
11680
|
}, e);
|
|
11198
11681
|
})
|
|
11199
11682
|
})]
|
|
11200
11683
|
})]
|
|
11201
11684
|
});
|
|
11202
11685
|
}
|
|
11203
|
-
function
|
|
11204
|
-
var i =
|
|
11686
|
+
function jd(e, n, r) {
|
|
11687
|
+
var i = Nd(e.config.columns);
|
|
11205
11688
|
return (0, t.jsxs)(t.Fragment, {
|
|
11206
11689
|
children: [(0, t.jsxs)("label", {
|
|
11207
11690
|
className: $["form-row"],
|
|
@@ -11212,12 +11695,12 @@ function Uu(e, n, r) {
|
|
|
11212
11695
|
onChange: function onChange(t) {
|
|
11213
11696
|
return r(C(C({}, e), {}, {
|
|
11214
11697
|
config: {
|
|
11215
|
-
columns:
|
|
11698
|
+
columns: Fd(i, Number(t.target.value))
|
|
11216
11699
|
}
|
|
11217
11700
|
}));
|
|
11218
11701
|
},
|
|
11219
11702
|
value: i.length,
|
|
11220
|
-
children:
|
|
11703
|
+
children: xd.map(function (e) {
|
|
11221
11704
|
return (0, t.jsx)("option", {
|
|
11222
11705
|
value: e,
|
|
11223
11706
|
children: e
|
|
@@ -11243,10 +11726,10 @@ function Uu(e, n, r) {
|
|
|
11243
11726
|
}));
|
|
11244
11727
|
},
|
|
11245
11728
|
value: a.labelStyle,
|
|
11246
|
-
children:
|
|
11729
|
+
children: bd.map(function (e) {
|
|
11247
11730
|
return (0, t.jsx)("option", {
|
|
11248
11731
|
value: e,
|
|
11249
|
-
children:
|
|
11732
|
+
children: hd(n, e)
|
|
11250
11733
|
}, e);
|
|
11251
11734
|
})
|
|
11252
11735
|
})]
|
|
@@ -11254,8 +11737,8 @@ function Uu(e, n, r) {
|
|
|
11254
11737
|
})]
|
|
11255
11738
|
});
|
|
11256
11739
|
}
|
|
11257
|
-
function
|
|
11258
|
-
var i =
|
|
11740
|
+
function Md(e, n, r) {
|
|
11741
|
+
var i = Pd(e.config.columns);
|
|
11259
11742
|
return (0, t.jsx)(t.Fragment, {
|
|
11260
11743
|
children: i.map(function (a, o) {
|
|
11261
11744
|
return (0, t.jsxs)("label", {
|
|
@@ -11276,10 +11759,10 @@ function Wu(e, n, r) {
|
|
|
11276
11759
|
}));
|
|
11277
11760
|
},
|
|
11278
11761
|
value: a.labelStyle,
|
|
11279
|
-
children:
|
|
11762
|
+
children: bd.map(function (e) {
|
|
11280
11763
|
return (0, t.jsx)("option", {
|
|
11281
11764
|
value: e,
|
|
11282
|
-
children:
|
|
11765
|
+
children: hd(n, e)
|
|
11283
11766
|
}, e);
|
|
11284
11767
|
})
|
|
11285
11768
|
})]
|
|
@@ -11287,46 +11770,46 @@ function Wu(e, n, r) {
|
|
|
11287
11770
|
})
|
|
11288
11771
|
});
|
|
11289
11772
|
}
|
|
11290
|
-
function
|
|
11773
|
+
function Nd(e) {
|
|
11291
11774
|
var t = e.slice(0, 5);
|
|
11292
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11775
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(bd.slice(t.length, 2).map(function (e) {
|
|
11293
11776
|
return {
|
|
11294
11777
|
labelStyle: e
|
|
11295
11778
|
};
|
|
11296
11779
|
})));
|
|
11297
11780
|
}
|
|
11298
|
-
function
|
|
11781
|
+
function Pd(e) {
|
|
11299
11782
|
var t = e.slice(0, 2);
|
|
11300
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11783
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(bd.slice(t.length, 2).map(function (e) {
|
|
11301
11784
|
return {
|
|
11302
11785
|
labelStyle: e
|
|
11303
11786
|
};
|
|
11304
11787
|
})));
|
|
11305
11788
|
}
|
|
11306
|
-
function
|
|
11789
|
+
function Fd(e, t) {
|
|
11307
11790
|
return Array.from({
|
|
11308
11791
|
length: Math.min(5, Math.max(2, t))
|
|
11309
11792
|
}, function (t, n) {
|
|
11310
11793
|
var r, i;
|
|
11311
11794
|
return (r = e.slice(n, n + 1)[0]) == null ? {
|
|
11312
|
-
labelStyle: (i =
|
|
11795
|
+
labelStyle: (i = bd[n]) == null ? "number" : i
|
|
11313
11796
|
} : r;
|
|
11314
11797
|
});
|
|
11315
11798
|
}
|
|
11316
|
-
function
|
|
11317
|
-
var
|
|
11318
|
-
e =
|
|
11319
|
-
r =
|
|
11320
|
-
i =
|
|
11799
|
+
function Id(_ref175) {
|
|
11800
|
+
var _ref175$locale = _ref175.locale,
|
|
11801
|
+
e = _ref175$locale === void 0 ? "zh-CN" : _ref175$locale,
|
|
11802
|
+
r = _ref175.onChange,
|
|
11803
|
+
i = _ref175.value;
|
|
11321
11804
|
var a, o, s, c;
|
|
11322
|
-
var l =
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
u =
|
|
11326
|
-
d =
|
|
11327
|
-
|
|
11328
|
-
f =
|
|
11329
|
-
p =
|
|
11805
|
+
var l = od(e),
|
|
11806
|
+
_ref176 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
|
|
11807
|
+
_ref177 = _slicedToArray(_ref176, 2),
|
|
11808
|
+
u = _ref177[0],
|
|
11809
|
+
d = _ref177[1],
|
|
11810
|
+
_Ld = Ld(i, u),
|
|
11811
|
+
f = _Ld.selectedElement,
|
|
11812
|
+
p = _Ld.selectedExtra;
|
|
11330
11813
|
function m(e) {
|
|
11331
11814
|
var t = oe(e, i.elements);
|
|
11332
11815
|
r(C(C({}, i), {}, {
|
|
@@ -11344,11 +11827,11 @@ function Ju(_ref174) {
|
|
|
11344
11827
|
}
|
|
11345
11828
|
function g(e) {
|
|
11346
11829
|
var t = ue(i, e);
|
|
11347
|
-
r(t), d(
|
|
11830
|
+
r(t), d(Rd(t));
|
|
11348
11831
|
}
|
|
11349
11832
|
function _(e) {
|
|
11350
11833
|
var t = le(i, e);
|
|
11351
|
-
r(t), d(
|
|
11834
|
+
r(t), d(Rd(t));
|
|
11352
11835
|
}
|
|
11353
11836
|
function v(e) {
|
|
11354
11837
|
r(pe(i, e.clientId, e));
|
|
@@ -11363,19 +11846,19 @@ function Ju(_ref174) {
|
|
|
11363
11846
|
r(he(i, e));
|
|
11364
11847
|
}
|
|
11365
11848
|
return (0, t.jsx)("section", {
|
|
11366
|
-
className:
|
|
11849
|
+
className: nd.root,
|
|
11367
11850
|
children: (0, t.jsx)("div", {
|
|
11368
11851
|
className: Q.shell,
|
|
11369
11852
|
children: (0, t.jsxs)("div", {
|
|
11370
11853
|
className: Q.grid,
|
|
11371
|
-
children: [(0, t.jsx)(
|
|
11854
|
+
children: [(0, t.jsx)(_d, {
|
|
11372
11855
|
addedExtraTypes: i.extras.map(function (e) {
|
|
11373
11856
|
return e.type;
|
|
11374
11857
|
}),
|
|
11375
11858
|
labels: l,
|
|
11376
11859
|
onAddElement: m,
|
|
11377
11860
|
onAddExtra: h
|
|
11378
|
-
}), (0, t.jsx)(
|
|
11861
|
+
}), (0, t.jsx)(gd, {
|
|
11379
11862
|
elements: i.elements,
|
|
11380
11863
|
extras: i.extras,
|
|
11381
11864
|
labels: l,
|
|
@@ -11386,7 +11869,7 @@ function Ju(_ref174) {
|
|
|
11386
11869
|
},
|
|
11387
11870
|
onSelectElement: d,
|
|
11388
11871
|
selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
|
|
11389
|
-
}), (0, t.jsx)(
|
|
11872
|
+
}), (0, t.jsx)(Ed, {
|
|
11390
11873
|
description: i.description,
|
|
11391
11874
|
globalConfig: i.globalConfig,
|
|
11392
11875
|
isSubjective: i.isSubjective,
|
|
@@ -11402,7 +11885,7 @@ function Ju(_ref174) {
|
|
|
11402
11885
|
})
|
|
11403
11886
|
});
|
|
11404
11887
|
}
|
|
11405
|
-
function
|
|
11888
|
+
function Ld(e, t) {
|
|
11406
11889
|
var n, r, i, a;
|
|
11407
11890
|
var o = (n = e.elements.find(function (e) {
|
|
11408
11891
|
return e.clientId === t;
|
|
@@ -11418,8 +11901,8 @@ function Yu(e, t) {
|
|
|
11418
11901
|
selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
|
|
11419
11902
|
};
|
|
11420
11903
|
}
|
|
11421
|
-
function
|
|
11904
|
+
function Rd(e) {
|
|
11422
11905
|
var t, n, r, i;
|
|
11423
11906
|
return (t = (n = (r = e.elements[0]) == null ? void 0 : r.clientId) == null ? (i = e.extras[0]) == null ? void 0 : i.clientId : n) == null ? null : t;
|
|
11424
11907
|
}
|
|
11425
|
-
exports.QuestionContentEditor = qo, exports.QuestionPlayer =
|
|
11908
|
+
exports.QuestionContentEditor = qo, exports.QuestionPlayer = nu, exports.QuestionPreview = Bu, exports.QuestionPrintPreview = td, exports.QuestionRichContentView = q, exports.QuestionStructureEditor = Id, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Fs, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;
|