touchstudy-core 0.1.80 → 0.1.82
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/components/Print/configs/constants.d.ts +4 -0
- package/dist/containers/ExamResult/configs/types.d.ts +1 -0
- package/dist/containers/ExamResult/hooks/usePrintView.d.ts +2 -0
- package/dist/containers/ExamResult/views/PrintExamResult.d.ts +2 -0
- package/dist/index.css +8 -8
- package/dist/index.js +217 -71
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +217 -71
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2580,6 +2580,7 @@ var your_browser_must = "귀하의 브라우저는 다음을 충족해야 합니
|
|
2580
2580
|
var allowed_to_send_pop_ups_and_use_redirects = "팝업 보내기 및 리디렉션 사용이 허용됨";
|
2581
2581
|
var disable_ask_where_to_save_each_file_before_downloading = "다운로드하기 전에 각 파일을 저장할 위치 묻기 비활성화";
|
2582
2582
|
var total_number_of_selected_results = "선택된 결과의 총 개수";
|
2583
|
+
var choose_to_print = "인쇄를 선택하세요";
|
2583
2584
|
var lang_ko = {
|
2584
2585
|
problem_solving: problem_solving,
|
2585
2586
|
my_story: my_story,
|
@@ -3352,7 +3353,8 @@ var lang_ko = {
|
|
3352
3353
|
your_browser_must: your_browser_must,
|
3353
3354
|
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects,
|
3354
3355
|
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading,
|
3355
|
-
total_number_of_selected_results: total_number_of_selected_results
|
3356
|
+
total_number_of_selected_results: total_number_of_selected_results,
|
3357
|
+
choose_to_print: choose_to_print
|
3356
3358
|
};
|
3357
3359
|
|
3358
3360
|
var problem_solving$1 = "Problem Solving";
|
@@ -4135,6 +4137,7 @@ var your_browser_must$1 = "Your browser must";
|
|
4135
4137
|
var allowed_to_send_pop_ups_and_use_redirects$1 = "Allowed to send pop-ups and use redirects";
|
4136
4138
|
var disable_ask_where_to_save_each_file_before_downloading$1 = "Disable ask where to save each file before downloading";
|
4137
4139
|
var total_number_of_selected_results$1 = "Total number of selected results";
|
4140
|
+
var choose_to_print$1 = "Choose to print";
|
4138
4141
|
var lang_en = {
|
4139
4142
|
problem_solving: problem_solving$1,
|
4140
4143
|
my_story: my_story$1,
|
@@ -4908,7 +4911,8 @@ var lang_en = {
|
|
4908
4911
|
your_browser_must: your_browser_must$1,
|
4909
4912
|
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects$1,
|
4910
4913
|
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading$1,
|
4911
|
-
total_number_of_selected_results: total_number_of_selected_results$1
|
4914
|
+
total_number_of_selected_results: total_number_of_selected_results$1,
|
4915
|
+
choose_to_print: choose_to_print$1
|
4912
4916
|
};
|
4913
4917
|
|
4914
4918
|
i18n__default.use(reactI18next.initReactI18next).init({
|
@@ -10868,6 +10872,7 @@ var EXAM_RESULT = {
|
|
10868
10872
|
topDuration: 180.939,
|
10869
10873
|
answerResponseSignal: 0,
|
10870
10874
|
isCorrect: false,
|
10875
|
+
score: 2,
|
10871
10876
|
answerTime: "2024-03-13T04:29:00.685+00:00",
|
10872
10877
|
article: 1,
|
10873
10878
|
category: {
|
@@ -10889,6 +10894,7 @@ var EXAM_RESULT = {
|
|
10889
10894
|
classAverageTime: 2.014,
|
10890
10895
|
topDuration: 2.014,
|
10891
10896
|
answerResponseSignal: 1,
|
10897
|
+
score: 2,
|
10892
10898
|
isCorrect: false,
|
10893
10899
|
answerTime: "2024-03-13T04:29:02.7+00:00",
|
10894
10900
|
article: 1,
|
@@ -10911,6 +10917,7 @@ var EXAM_RESULT = {
|
|
10911
10917
|
classAverageTime: 52.244,
|
10912
10918
|
topDuration: 24.244,
|
10913
10919
|
answerResponseSignal: 1,
|
10920
|
+
score: 2,
|
10914
10921
|
isCorrect: false,
|
10915
10922
|
answerTime: "2024-03-13T04:29:04.944+00:00",
|
10916
10923
|
article: 1,
|
@@ -10933,6 +10940,7 @@ var EXAM_RESULT = {
|
|
10933
10940
|
classAverageTime: 1.373,
|
10934
10941
|
topDuration: 1.373,
|
10935
10942
|
answerResponseSignal: 4,
|
10943
|
+
score: 2,
|
10936
10944
|
isCorrect: true,
|
10937
10945
|
answerTime: "2024-03-13T04:29:06.317+00:00",
|
10938
10946
|
article: 1,
|
@@ -10955,6 +10963,7 @@ var EXAM_RESULT = {
|
|
10955
10963
|
classAverageTime: 132.683,
|
10956
10964
|
topDuration: 110.683,
|
10957
10965
|
answerResponseSignal: 2,
|
10966
|
+
score: 2,
|
10958
10967
|
isCorrect: false,
|
10959
10968
|
answerTime: "2024-03-13T04:29:07+00:00",
|
10960
10969
|
article: 1,
|
@@ -10977,6 +10986,7 @@ var EXAM_RESULT = {
|
|
10977
10986
|
classAverageTime: 1.052,
|
10978
10987
|
topDuration: 1.052,
|
10979
10988
|
answerResponseSignal: 1,
|
10989
|
+
score: 2,
|
10980
10990
|
isCorrect: true,
|
10981
10991
|
answerTime: "2024-03-13T04:29:08.052+00:00",
|
10982
10992
|
article: 2,
|
@@ -10999,6 +11009,7 @@ var EXAM_RESULT = {
|
|
10999
11009
|
classAverageTime: 0,
|
11000
11010
|
topDuration: null,
|
11001
11011
|
answerResponseSignal: null,
|
11012
|
+
score: 2,
|
11002
11013
|
isCorrect: false,
|
11003
11014
|
answerTime: "0001-01-01T00:00:00+00:00",
|
11004
11015
|
article: 2,
|
@@ -11021,6 +11032,7 @@ var EXAM_RESULT = {
|
|
11021
11032
|
classAverageTime: 2.596,
|
11022
11033
|
topDuration: 2.596,
|
11023
11034
|
answerResponseSignal: 1,
|
11035
|
+
score: 2,
|
11024
11036
|
isCorrect: false,
|
11025
11037
|
answerTime: "2024-03-13T04:29:10.648+00:00",
|
11026
11038
|
article: 2,
|
@@ -11043,6 +11055,7 @@ var EXAM_RESULT = {
|
|
11043
11055
|
classAverageTime: 0.899,
|
11044
11056
|
topDuration: 0.899,
|
11045
11057
|
answerResponseSignal: 1,
|
11058
|
+
score: 2,
|
11046
11059
|
isCorrect: false,
|
11047
11060
|
answerTime: "2024-03-13T04:29:12.864+00:00",
|
11048
11061
|
article: 2,
|
@@ -11066,6 +11079,7 @@ var EXAM_RESULT = {
|
|
11066
11079
|
topDuration: 20.496,
|
11067
11080
|
answerResponseSignal: 0,
|
11068
11081
|
isCorrect: true,
|
11082
|
+
score: 2,
|
11069
11083
|
answerTime: "2024-03-13T04:29:14.36+00:00",
|
11070
11084
|
article: 2,
|
11071
11085
|
category: {
|
@@ -11087,6 +11101,7 @@ var EXAM_RESULT = {
|
|
11087
11101
|
classAverageTime: 0,
|
11088
11102
|
topDuration: null,
|
11089
11103
|
answerResponseSignal: null,
|
11104
|
+
score: 2,
|
11090
11105
|
isCorrect: false,
|
11091
11106
|
answerTime: "0001-01-01T00:00:00+00:00",
|
11092
11107
|
article: 2,
|
@@ -11110,6 +11125,7 @@ var EXAM_RESULT = {
|
|
11110
11125
|
topDuration: 1.317,
|
11111
11126
|
answerResponseSignal: 1,
|
11112
11127
|
isCorrect: true,
|
11128
|
+
score: 2,
|
11113
11129
|
answerTime: "2024-03-13T04:29:11.965+00:00",
|
11114
11130
|
article: 3,
|
11115
11131
|
category: {
|
@@ -11131,6 +11147,7 @@ var EXAM_RESULT = {
|
|
11131
11147
|
classAverageTime: 1.593,
|
11132
11148
|
topDuration: 1.593,
|
11133
11149
|
answerResponseSignal: 1,
|
11150
|
+
score: 2,
|
11134
11151
|
isCorrect: false,
|
11135
11152
|
answerTime: "2024-03-13T04:29:20.734+00:00",
|
11136
11153
|
article: 3,
|
@@ -11153,6 +11170,7 @@ var EXAM_RESULT = {
|
|
11153
11170
|
classAverageTime: 1.204,
|
11154
11171
|
topDuration: 1.204,
|
11155
11172
|
answerResponseSignal: 1,
|
11173
|
+
score: 2,
|
11156
11174
|
isCorrect: false,
|
11157
11175
|
answerTime: "2024-03-13T04:29:18.164+00:00",
|
11158
11176
|
article: 3,
|
@@ -11175,6 +11193,7 @@ var EXAM_RESULT = {
|
|
11175
11193
|
classAverageTime: 2.6,
|
11176
11194
|
topDuration: 2.6,
|
11177
11195
|
answerResponseSignal: 1,
|
11196
|
+
score: 2,
|
11178
11197
|
isCorrect: false,
|
11179
11198
|
answerTime: "2024-03-13T04:29:16.96+00:00",
|
11180
11199
|
article: 3,
|
@@ -11197,6 +11216,7 @@ var EXAM_RESULT = {
|
|
11197
11216
|
classAverageTime: 0.977,
|
11198
11217
|
topDuration: 0.977,
|
11199
11218
|
answerResponseSignal: 1,
|
11219
|
+
score: 2,
|
11200
11220
|
isCorrect: true,
|
11201
11221
|
answerTime: "2024-03-13T04:29:19.141+00:00",
|
11202
11222
|
article: 3,
|
@@ -11725,12 +11745,12 @@ var useExamResult = function useExamResult(props) {
|
|
11725
11745
|
setCategoryResponses(((_result$4$data2 = result[4].data) === null || _result$4$data2 === void 0 ? void 0 : _result$4$data2.data) || []);
|
11726
11746
|
return isStudent ? _temp3(!isStudent && createRecentUserActionListApi({
|
11727
11747
|
userId: studentId,
|
11728
|
-
action: RecentUserAction$1.ViewedExamResult,
|
11748
|
+
action: isPrint ? RecentUserAction$1.PrintedExamResult : RecentUserAction$1.ViewedExamResult,
|
11729
11749
|
data: "" + examSessionId,
|
11730
11750
|
roles: [exports.Role.Teacher]
|
11731
11751
|
})) : Promise.resolve(!isStudent && createRecentUserActionListApi({
|
11732
11752
|
userId: studentId,
|
11733
|
-
action: RecentUserAction$1.ViewedExamResult,
|
11753
|
+
action: isPrint ? RecentUserAction$1.PrintedExamResult : RecentUserAction$1.ViewedExamResult,
|
11734
11754
|
data: "" + examSessionId,
|
11735
11755
|
roles: [exports.Role.Teacher]
|
11736
11756
|
})).then(_temp3);
|
@@ -13115,7 +13135,7 @@ var iconNoStarQuestion = function iconNoStarQuestion(_ref) {
|
|
13115
13135
|
clipPath: "url(#clip0_307_1248)"
|
13116
13136
|
}, React__default.createElement("path", {
|
13117
13137
|
d: "M10.7735 13.125C10.6814 13.1253 10.5916 13.0966 10.5168 13.043L7.00007 10.4934L3.48339 13.043C3.40826 13.0975 3.31774 13.1266 3.22493 13.1263C3.13212 13.126 3.04182 13.0961 2.96709 13.0411C2.89235 12.986 2.83706 12.9087 2.8092 12.8201C2.78134 12.7316 2.78236 12.6365 2.8121 12.5486L4.18367 8.48612L0.628977 6.04843C0.55198 5.99569 0.493868 5.9197 0.46313 5.83158C0.432392 5.74346 0.43064 5.64781 0.458129 5.55863C0.485619 5.46944 0.54091 5.39138 0.615924 5.33585C0.690937 5.28032 0.781742 5.25024 0.875071 5.24999H5.26046L6.5839 1.17714C6.61241 1.08921 6.66804 1.01257 6.74281 0.958208C6.81757 0.903851 6.90763 0.874573 7.00007 0.874573C7.09251 0.874573 7.18257 0.903851 7.25734 0.958208C7.33211 1.01257 7.38773 1.08921 7.41624 1.17714L8.73968 5.25136H13.1251C13.2185 5.25131 13.3095 5.28119 13.3848 5.33661C13.46 5.39203 13.5155 5.47008 13.5432 5.55934C13.5708 5.6486 13.5692 5.74437 13.5385 5.83262C13.5078 5.92088 13.4496 5.99699 13.3725 6.0498L9.81648 8.48612L11.1872 12.5475C11.2094 12.6132 11.2157 12.6833 11.2054 12.752C11.1952 12.8206 11.1688 12.8859 11.1284 12.9423C11.088 12.9987 11.0347 13.0447 10.973 13.0765C10.9113 13.1082 10.8429 13.1249 10.7735 13.125Z",
|
13118
|
-
fill: "#
|
13138
|
+
fill: "#E4E7EC"
|
13119
13139
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
13120
13140
|
id: "clip0_307_1248"
|
13121
13141
|
}, React__default.createElement("rect", {
|
@@ -13458,6 +13478,8 @@ function CreateNewQuestionDialog(_ref) {
|
|
13458
13478
|
})));
|
13459
13479
|
}
|
13460
13480
|
|
13481
|
+
var printStyles = {"page-break":"_35kyG","print-exact-color":"_1PFgl","avoid-break-inside":"_3rPGh"};
|
13482
|
+
|
13461
13483
|
function MyAnswer(_ref) {
|
13462
13484
|
var data = _ref.data,
|
13463
13485
|
categories = _ref.categories,
|
@@ -13490,11 +13512,15 @@ function MyAnswer(_ref) {
|
|
13490
13512
|
};
|
13491
13513
|
var renderQuestions = function renderQuestions(questions) {
|
13492
13514
|
return questions.map(function (question, index) {
|
13515
|
+
var _questions;
|
13493
13516
|
return React__default.createElement("div", {
|
13517
|
+
className: "" + printStyles["avoid-break-inside"],
|
13494
13518
|
style: isOpenTime[question.id] ? {
|
13495
13519
|
borderTop: index !== 0 ? "1px solid #E4E7EC" : "",
|
13496
13520
|
borderBottom: "1px solid #E4E7EC"
|
13497
|
-
} : {
|
13521
|
+
} : {
|
13522
|
+
borderBottom: (question === null || question === void 0 ? void 0 : question.article) !== ((_questions = questions[index + 1]) === null || _questions === void 0 ? void 0 : _questions.article) && index !== (questions === null || questions === void 0 ? void 0 : questions.length) && index !== 0 && index !== questions.length - 1 ? "1px solid #E4E7EC" : ""
|
13523
|
+
},
|
13498
13524
|
key: question.id
|
13499
13525
|
}, React__default.createElement("div", {
|
13500
13526
|
className: styles$4["myAnswerItem"] + " " + styles["noGutters"]
|
@@ -13590,11 +13616,13 @@ function MyAnswer(_ref) {
|
|
13590
13616
|
});
|
13591
13617
|
};
|
13592
13618
|
return React__default.createElement("div", {
|
13593
|
-
className: styles$4["myanswer"]
|
13619
|
+
className: "" + styles$4["myanswer"]
|
13594
13620
|
}, formattedData && formattedData.length > 0 && formattedData.map(function (item) {
|
13595
13621
|
return React__default.createElement("div", {
|
13596
13622
|
key: item.category.id
|
13597
|
-
}, React__default.createElement("div",
|
13623
|
+
}, React__default.createElement("div", {
|
13624
|
+
className: "" + printStyles["avoid-break-inside"]
|
13625
|
+
}, React__default.createElement(material.Stack, {
|
13598
13626
|
bgcolor: "#F9FAFB",
|
13599
13627
|
flexDirection: "row",
|
13600
13628
|
padding: "12px",
|
@@ -13744,18 +13772,29 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
13744
13772
|
}));
|
13745
13773
|
};
|
13746
13774
|
|
13747
|
-
var
|
13748
|
-
|
13775
|
+
var ChipCustom = material.styled(material.Stack)(function (_ref) {
|
13776
|
+
_objectDestructuringEmpty(_ref);
|
13777
|
+
return {
|
13778
|
+
width: "fit-content",
|
13779
|
+
borderRadius: "6px",
|
13780
|
+
padding: "4px 8px",
|
13781
|
+
flexWrap: "nowrap"
|
13782
|
+
};
|
13783
|
+
});
|
13784
|
+
var CompareGrass = function CompareGrass(_ref2) {
|
13785
|
+
var effectSize = _ref2.effectSize;
|
13749
13786
|
var _useTranslation = reactI18next.useTranslation(),
|
13750
13787
|
t = _useTranslation.t;
|
13751
13788
|
var renderTableBody = function renderTableBody(effectSize) {
|
13752
13789
|
return effectSize.map(function (item, index) {
|
13753
13790
|
return React__default.createElement("tr", {
|
13754
13791
|
id: "print-item",
|
13792
|
+
className: "" + printStyles["avoid-break-inside"],
|
13755
13793
|
key: item.id,
|
13756
|
-
style:
|
13757
|
-
borderBottom: "1px solid #e4e7ec"
|
13758
|
-
|
13794
|
+
style: {
|
13795
|
+
borderBottom: index < effectSize.length - 1 ? "1px solid #e4e7ec" : undefined,
|
13796
|
+
borderTop: index < effectSize.length - 1 ? "1px solid transparent" : undefined
|
13797
|
+
}
|
13759
13798
|
}, React__default.createElement("td", {
|
13760
13799
|
className: styles$4["tdcolumn1"]
|
13761
13800
|
}, t("problem"), " ", item.questionOrder + 1), React__default.createElement("td", {
|
@@ -13779,31 +13818,47 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13779
13818
|
}
|
13780
13819
|
}, item.mostSelectedAnswers ? t("number_question", {
|
13781
13820
|
number: item.mostSelectedAnswers
|
13782
|
-
}) : ""), React__default.createElement("td",
|
13783
|
-
className:
|
13821
|
+
}) : ""), React__default.createElement("td", {
|
13822
|
+
className: "" + printStyles["avoid-break-inside"]
|
13823
|
+
}, React__default.createElement("div", {
|
13824
|
+
className: styles$4["classification"] + " " + printStyles["avoid-break-inside"]
|
13784
13825
|
}, item.problemCategories.map(function (problem, index) {
|
13785
|
-
return React__default.createElement(
|
13786
|
-
|
13787
|
-
|
13826
|
+
return React__default.createElement(material.Stack, {
|
13827
|
+
flexDirection: "row",
|
13828
|
+
key: index,
|
13829
|
+
gap: "10px",
|
13830
|
+
flexWrap: "wrap",
|
13831
|
+
className: "" + printStyles["avoid-break-inside"]
|
13832
|
+
}, problem === 1 && React__default.createElement(ChipCustom, {
|
13788
13833
|
style: {
|
13789
|
-
border: "1px solid "
|
13790
|
-
|
13791
|
-
|
13834
|
+
border: "1px solid #1EE288",
|
13835
|
+
fontSize: "11px"
|
13836
|
+
},
|
13837
|
+
className: "" + printStyles["avoid-break-inside"]
|
13838
|
+
}, t("easy_problem")), problem === 3 && React__default.createElement(ChipCustom, {
|
13792
13839
|
style: {
|
13793
|
-
border: "1px solid "
|
13794
|
-
|
13795
|
-
|
13840
|
+
border: "1px solid #FEAF06",
|
13841
|
+
fontSize: "11px"
|
13842
|
+
},
|
13843
|
+
className: "" + printStyles["avoid-break-inside"]
|
13844
|
+
}, t("trick_problem")), problem === 2 && React__default.createElement(ChipCustom, {
|
13796
13845
|
style: {
|
13797
|
-
border: "1px solid "
|
13798
|
-
|
13799
|
-
|
13846
|
+
border: "1px solid #F34B4B",
|
13847
|
+
fontSize: "11px"
|
13848
|
+
},
|
13849
|
+
className: "" + printStyles["avoid-break-inside"]
|
13850
|
+
}, t("differential_problem")), problem === 0 && React__default.createElement(ChipCustom, {
|
13800
13851
|
style: {
|
13801
|
-
border: "1px solid #DDDDDD"
|
13802
|
-
|
13803
|
-
|
13852
|
+
border: "1px solid #DDDDDD",
|
13853
|
+
fontSize: "11px"
|
13854
|
+
},
|
13855
|
+
className: "" + printStyles["avoid-break-inside"]
|
13856
|
+
}, t("general_problem")), problem === 4 && React__default.createElement(ChipCustom, {
|
13804
13857
|
style: {
|
13805
|
-
border: "1px solid "
|
13806
|
-
|
13858
|
+
border: "1px solid #FF0000",
|
13859
|
+
fontSize: "11px"
|
13860
|
+
},
|
13861
|
+
className: "" + printStyles["avoid-break-inside"]
|
13807
13862
|
}, t("difficult_problem")));
|
13808
13863
|
}))));
|
13809
13864
|
});
|
@@ -13820,8 +13875,10 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13820
13875
|
}
|
13821
13876
|
}, React__default.createElement("thead", {
|
13822
13877
|
style: {
|
13823
|
-
borderBottom: "1px solid #E4E7EC"
|
13824
|
-
|
13878
|
+
borderBottom: "1px solid #E4E7EC",
|
13879
|
+
borderTop: "1px solid transparent"
|
13880
|
+
},
|
13881
|
+
className: "" + printStyles["avoid-break-inside"]
|
13825
13882
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
13826
13883
|
className: styles$4["thcolumn1"]
|
13827
13884
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -13904,9 +13961,9 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13904
13961
|
});
|
13905
13962
|
var renderProblems = function renderProblems() {
|
13906
13963
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
13907
|
-
className: styles$4["titleTrickyProblem"]
|
13964
|
+
className: styles$4["titleTrickyProblem"] + " " + printStyles["avoid-break-inside"]
|
13908
13965
|
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
13909
|
-
className: styles$4["wrongQuestions"]
|
13966
|
+
className: styles$4["wrongQuestions"] + " " + printStyles["avoid-break-inside"]
|
13910
13967
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
13911
13968
|
return React__default.createElement("span", {
|
13912
13969
|
key: question.id,
|
@@ -13917,9 +13974,9 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13917
13974
|
}), !data.questions.length && React__default.createElement("div", {
|
13918
13975
|
className: styles$4["noData"]
|
13919
13976
|
}, t("no_data"))), React__default.createElement("div", {
|
13920
|
-
className: styles$4["titleTrickyProblem"]
|
13977
|
+
className: styles$4["titleTrickyProblem"] + " " + printStyles["avoid-break-inside"]
|
13921
13978
|
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
13922
|
-
className: styles$4["assignedQuestions"]
|
13979
|
+
className: styles$4["assignedQuestions"] + " " + printStyles["avoid-break-inside"]
|
13923
13980
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
13924
13981
|
return React__default.createElement("div", {
|
13925
13982
|
key: question.id,
|
@@ -13934,7 +13991,7 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13934
13991
|
return React__default.createElement("div", {
|
13935
13992
|
className: "" + styles$4["wrapperProblem"]
|
13936
13993
|
}, React__default.createElement("div", {
|
13937
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
13994
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
13938
13995
|
onClick: function onClick() {
|
13939
13996
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : keyOpen);
|
13940
13997
|
}
|
@@ -13968,6 +14025,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
13968
14025
|
var isBetter = time > 0;
|
13969
14026
|
return React__default.createElement("tr", {
|
13970
14027
|
id: "print-item",
|
14028
|
+
className: "" + printStyles["avoid-break-inside"],
|
13971
14029
|
key: item.id,
|
13972
14030
|
style: index < data.length - 1 ? {
|
13973
14031
|
borderBottom: "1px solid #e4e7ec"
|
@@ -14008,8 +14066,9 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14008
14066
|
};
|
14009
14067
|
var renderQuestions = function renderQuestions(data) {
|
14010
14068
|
return data.map(function (item) {
|
14011
|
-
return React__default.createElement(
|
14012
|
-
|
14069
|
+
return React__default.createElement(material.Stack, {
|
14070
|
+
flexDirection: "row",
|
14071
|
+
className: styles$4["content"] + " " + printStyles["avoid-break-inside"],
|
14013
14072
|
key: item.id
|
14014
14073
|
}, React__default.createElement("div", {
|
14015
14074
|
className: styles$4["contentColumn1"]
|
@@ -14035,7 +14094,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14035
14094
|
return React__default.createElement("div", {
|
14036
14095
|
className: "" + styles$4["wrapperProblem"]
|
14037
14096
|
}, React__default.createElement("div", {
|
14038
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14097
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14039
14098
|
onClick: function onClick() {
|
14040
14099
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : keyOpen);
|
14041
14100
|
}
|
@@ -14073,7 +14132,8 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14073
14132
|
}, isMyStoryStudent && React__default.createElement("thead", {
|
14074
14133
|
style: {
|
14075
14134
|
borderBottom: "1px solid #E4E7EC"
|
14076
|
-
}
|
14135
|
+
},
|
14136
|
+
className: "" + printStyles["avoid-break-inside"]
|
14077
14137
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14078
14138
|
className: styles$4["thcolumn1"]
|
14079
14139
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -14089,7 +14149,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14089
14149
|
textAlign: "center"
|
14090
14150
|
}
|
14091
14151
|
}, t("time_comparison")))), React__default.createElement("tbody", null, isMyStoryStudent ? renderTableBody(data) : renderQuestions(data))))) : React__default.createElement("div", {
|
14092
|
-
className: "" +
|
14152
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14093
14153
|
}, t("no_data"))));
|
14094
14154
|
};
|
14095
14155
|
|
@@ -14115,10 +14175,11 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14115
14175
|
return data.map(function (item, index) {
|
14116
14176
|
return React__default.createElement("tr", {
|
14117
14177
|
id: "print-item",
|
14178
|
+
className: "" + printStyles["avoid-break-inside"],
|
14118
14179
|
key: item.id,
|
14119
|
-
style:
|
14120
|
-
borderBottom: "1px solid #e4e7ec"
|
14121
|
-
}
|
14180
|
+
style: {
|
14181
|
+
borderBottom: index < data.length - 1 ? "1px solid #e4e7ec" : undefined
|
14182
|
+
}
|
14122
14183
|
}, React__default.createElement("td", {
|
14123
14184
|
className: styles$4["tdcolumn1"],
|
14124
14185
|
style: {
|
@@ -14166,7 +14227,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14166
14227
|
return React__default.createElement(material.Grid, {
|
14167
14228
|
container: true,
|
14168
14229
|
flexWrap: "nowrap",
|
14169
|
-
className: styles$4["content"],
|
14230
|
+
className: styles$4["content"] + " " + printStyles["avoid-break-inside"],
|
14170
14231
|
key: question.id
|
14171
14232
|
}, React__default.createElement(material.Grid, {
|
14172
14233
|
item: true,
|
@@ -14204,7 +14265,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14204
14265
|
return React__default.createElement("div", {
|
14205
14266
|
className: "" + styles$4["wrapperProblem"]
|
14206
14267
|
}, React__default.createElement("div", {
|
14207
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14268
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14208
14269
|
onClick: handleToggle
|
14209
14270
|
}, React__default.createElement(material.Stack, {
|
14210
14271
|
flexDirection: "row",
|
@@ -14240,7 +14301,8 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14240
14301
|
}, React__default.createElement("thead", {
|
14241
14302
|
style: {
|
14242
14303
|
borderBottom: "1px solid #E4E7EC"
|
14243
|
-
}
|
14304
|
+
},
|
14305
|
+
className: "" + printStyles["avoid-break-inside"]
|
14244
14306
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14245
14307
|
className: styles$4["thcolumn1"]
|
14246
14308
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -14260,7 +14322,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14260
14322
|
textAlign: "center"
|
14261
14323
|
}
|
14262
14324
|
}, t("_category")))), React__default.createElement("tbody", null, renderTableBody(incorrectQuestions))), !isMyStoryStudent && renderQuestions(incorrectQuestions))) : React__default.createElement("div", {
|
14263
|
-
className: "" +
|
14325
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14264
14326
|
}, t("no_data"))));
|
14265
14327
|
};
|
14266
14328
|
|
@@ -14301,10 +14363,11 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14301
14363
|
return data.map(function (item, index) {
|
14302
14364
|
return React__default.createElement("tr", {
|
14303
14365
|
id: "print-item",
|
14366
|
+
className: "" + printStyles["avoid-break-inside"],
|
14304
14367
|
key: item.id,
|
14305
|
-
style:
|
14306
|
-
borderBottom: "1px solid #e4e7ec"
|
14307
|
-
}
|
14368
|
+
style: {
|
14369
|
+
borderBottom: index < data.length - 1 ? "1px solid #e4e7ec" : undefined
|
14370
|
+
}
|
14308
14371
|
}, React__default.createElement("td", {
|
14309
14372
|
className: styles$4["tdcolumn1"],
|
14310
14373
|
style: {
|
@@ -14354,7 +14417,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14354
14417
|
left: item.percentageAmongStudents + "%"
|
14355
14418
|
};
|
14356
14419
|
return React__default.createElement("div", {
|
14357
|
-
className: styles$4["contentProblem"],
|
14420
|
+
className: styles$4["contentProblem"] + " " + printStyles["avoid-break-inside"],
|
14358
14421
|
key: item.id
|
14359
14422
|
}, React__default.createElement("div", {
|
14360
14423
|
className: styles$4["labelProblem"]
|
@@ -14373,7 +14436,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14373
14436
|
return React__default.createElement("div", {
|
14374
14437
|
className: "" + styles$4["wrapperProblem"]
|
14375
14438
|
}, React__default.createElement("div", {
|
14376
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14439
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14377
14440
|
onClick: function onClick() {
|
14378
14441
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : ProblemKey.GradesByTerritory);
|
14379
14442
|
}
|
@@ -14401,7 +14464,8 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14401
14464
|
}, React__default.createElement("thead", {
|
14402
14465
|
style: {
|
14403
14466
|
borderBottom: "1px solid #E4E7EC"
|
14404
|
-
}
|
14467
|
+
},
|
14468
|
+
className: "" + printStyles["avoid-break-inside"]
|
14405
14469
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14406
14470
|
className: styles$4["thcolumn1"]
|
14407
14471
|
}, t("categories")), React__default.createElement("th", {
|
@@ -14421,7 +14485,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14421
14485
|
textAlign: "center"
|
14422
14486
|
}
|
14423
14487
|
}, t("total_solve_time")))), React__default.createElement("tbody", null, renderTableBody(formattedData))), !isMyStoryStudent && renderCategories(formattedData))) : React__default.createElement("div", {
|
14424
|
-
className: "" +
|
14488
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14425
14489
|
}, t("no_data"))));
|
14426
14490
|
};
|
14427
14491
|
|
@@ -14650,7 +14714,7 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14650
14714
|
var autoPrintPdf = function autoPrintPdf() {
|
14651
14715
|
if (printState === PrintState.Printing) return;
|
14652
14716
|
if (autoPrint && printState !== PrintState.Default) return;
|
14653
|
-
if (totalChart !== renderedCharts.length) {
|
14717
|
+
if (totalChart !== 0 && totalChart !== renderedCharts.length) {
|
14654
14718
|
!autoPrint && setPrintState(PrintState.Pending);
|
14655
14719
|
return;
|
14656
14720
|
}
|
@@ -14675,7 +14739,7 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14675
14739
|
orientation: 'portrait'
|
14676
14740
|
},
|
14677
14741
|
pagebreak: {
|
14678
|
-
mode: ['
|
14742
|
+
mode: ['css', 'legacy']
|
14679
14743
|
}
|
14680
14744
|
};
|
14681
14745
|
return Promise.resolve(html2pdf().from(element).set(options).save()).then(function () {
|
@@ -14710,8 +14774,6 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14710
14774
|
};
|
14711
14775
|
};
|
14712
14776
|
|
14713
|
-
var printStyles = {"page-break":"_35kyG","print-exact-color":"_1PFgl","avoid-break-inside":"_3rPGh"};
|
14714
|
-
|
14715
14777
|
var TimeOrderChart = function TimeOrderChart(_ref) {
|
14716
14778
|
var timelyOrderQuestion = _ref.timelyOrderQuestion,
|
14717
14779
|
options = _ref.options,
|
@@ -14742,7 +14804,7 @@ var TimeOrderChart = function TimeOrderChart(_ref) {
|
|
14742
14804
|
color: "#414E62"
|
14743
14805
|
}
|
14744
14806
|
}, t("article_number"), " ", timelyOrderQuestion.article), React__default.createElement("div", {
|
14745
|
-
className: "" +
|
14807
|
+
className: styles$4["compareChart"] + " " + printStyles["avoid-break-inside"]
|
14746
14808
|
}, React__default.createElement("div", {
|
14747
14809
|
className: "" + styles$4["prevChart"]
|
14748
14810
|
}), React__default.createElement("div", {
|
@@ -14781,6 +14843,8 @@ var studentNameStyle = {
|
|
14781
14843
|
var PrintExamResult = function PrintExamResult(_ref) {
|
14782
14844
|
var resultData = _ref.resultData,
|
14783
14845
|
examTime = _ref.examTime,
|
14846
|
+
status = _ref.status,
|
14847
|
+
isShow = _ref.isShow,
|
14784
14848
|
isStudent = _ref.isStudent,
|
14785
14849
|
categoryResponses = _ref.categoryResponses,
|
14786
14850
|
timelyOrderQuestions = _ref.timelyOrderQuestions,
|
@@ -14908,7 +14972,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14908
14972
|
fontWeight: 600,
|
14909
14973
|
color: styles.gray_700
|
14910
14974
|
}
|
14911
|
-
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React__default.createElement(material.Stack, {
|
14975
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[0].value))) && React__default.createElement(material.Stack, {
|
14912
14976
|
display: "flex",
|
14913
14977
|
flexDirection: "column",
|
14914
14978
|
gap: "12px"
|
@@ -14918,22 +14982,34 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14918
14982
|
data: resultData,
|
14919
14983
|
categories: categoryResponses,
|
14920
14984
|
isStudent: isStudent
|
14921
|
-
})), React__default.createElement(material.Stack, {
|
14985
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[1].value))) && React__default.createElement(material.Stack, {
|
14922
14986
|
display: "flex",
|
14923
14987
|
flexDirection: "column",
|
14924
14988
|
gap: "12px",
|
14925
14989
|
marginTop: "24px"
|
14990
|
+
}, React__default.createElement(material.Stack, {
|
14991
|
+
flexDirection: "column",
|
14992
|
+
gap: "12px",
|
14993
|
+
className: "" + printStyles["avoid-break-inside"]
|
14926
14994
|
}, React__default.createElement(material.Typography, {
|
14927
14995
|
sx: textStyle
|
14928
14996
|
}, i18n.t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
14929
|
-
return React__default.createElement(TimeOrderChart, {
|
14997
|
+
return index === 0 && React__default.createElement(TimeOrderChart, {
|
14930
14998
|
key: index,
|
14931
14999
|
timelyOrderQuestion: timelyOrderQuestion,
|
14932
15000
|
options: allChartOptions[index],
|
14933
15001
|
series: allSeries[index],
|
14934
15002
|
setIsRendered: setRenderedChart
|
14935
15003
|
});
|
14936
|
-
})),
|
15004
|
+
})), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
15005
|
+
return index > 0 && React__default.createElement(TimeOrderChart, {
|
15006
|
+
key: index,
|
15007
|
+
timelyOrderQuestion: timelyOrderQuestion,
|
15008
|
+
options: allChartOptions[index],
|
15009
|
+
series: allSeries[index],
|
15010
|
+
setIsRendered: setRenderedChart
|
15011
|
+
});
|
15012
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[2].value))) && React__default.createElement(material.Stack, {
|
14937
15013
|
display: "flex",
|
14938
15014
|
flexDirection: "column",
|
14939
15015
|
gap: "12px",
|
@@ -14942,7 +15018,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14942
15018
|
sx: textStyle
|
14943
15019
|
}, i18n.t(TabList[2].label)), React__default.createElement(CompareGrass, {
|
14944
15020
|
effectSize: effectSize
|
14945
|
-
})), React__default.createElement(material.Stack, {
|
15021
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[3].value))) && React__default.createElement(material.Stack, {
|
14946
15022
|
display: "flex",
|
14947
15023
|
flexDirection: "column",
|
14948
15024
|
gap: "12px",
|
@@ -16561,6 +16637,15 @@ var usePrintView = function usePrintView(_ref) {
|
|
16561
16637
|
var _useState = React.useState(false),
|
16562
16638
|
isDone = _useState[0],
|
16563
16639
|
setDone = _useState[1];
|
16640
|
+
var _useLocation = reactRouterDom.useLocation(),
|
16641
|
+
search = _useLocation.search;
|
16642
|
+
var query = new URLSearchParams(search);
|
16643
|
+
var status = query.get('status') || '';
|
16644
|
+
var isShow = function isShow(value) {
|
16645
|
+
return (status === null || status === void 0 ? void 0 : status.split(',').some(function (i) {
|
16646
|
+
return i === value.toString();
|
16647
|
+
})) || false;
|
16648
|
+
};
|
16564
16649
|
var handelPrintSuccess = function handelPrintSuccess() {
|
16565
16650
|
var _window$opener$postMe, _window$opener;
|
16566
16651
|
var data;
|
@@ -16607,6 +16692,8 @@ var usePrintView = function usePrintView(_ref) {
|
|
16607
16692
|
return {
|
16608
16693
|
fileName: fileName,
|
16609
16694
|
isDone: isDone,
|
16695
|
+
status: status,
|
16696
|
+
isShow: isShow,
|
16610
16697
|
handelPrintSuccess: handelPrintSuccess,
|
16611
16698
|
handelPrintError: handelPrintError
|
16612
16699
|
};
|
@@ -16675,9 +16762,11 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16675
16762
|
}),
|
16676
16763
|
fileName = _usePrintView.fileName,
|
16677
16764
|
isDone = _usePrintView.isDone,
|
16765
|
+
status = _usePrintView.status,
|
16766
|
+
isShow = _usePrintView.isShow,
|
16678
16767
|
handelPrintSuccess = _usePrintView.handelPrintSuccess,
|
16679
16768
|
handelPrintError = _usePrintView.handelPrintError;
|
16680
|
-
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, timelyOrderQuestions.length, handelPrintSuccess, handelPrintError, true),
|
16769
|
+
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, !status || isShow !== null && isShow !== void 0 && isShow(TabList[1].value) ? timelyOrderQuestions.length : 0, handelPrintSuccess, handelPrintError, true),
|
16681
16770
|
contentRef = _usePrintExamResult.contentRef,
|
16682
16771
|
setRenderedChart = _usePrintExamResult.setRenderedChart;
|
16683
16772
|
var isTabletUp = material.useMediaQuery("(min-width:900px)");
|
@@ -16700,6 +16789,8 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16700
16789
|
timelyOrderQuestions: timelyOrderQuestions,
|
16701
16790
|
isMyStoryStudent: isMyStoryStudent,
|
16702
16791
|
fileName: fileName,
|
16792
|
+
isShow: isShow,
|
16793
|
+
status: status,
|
16703
16794
|
setRenderedChart: setRenderedChart
|
16704
16795
|
}) : isLoading === undefined || isLoading === true ? React__default.createElement(LoadingComponent, {
|
16705
16796
|
isLoading: !!isLoading,
|
@@ -16722,6 +16813,20 @@ var PrintState$1;
|
|
16722
16813
|
PrintState[PrintState["Paused"] = 3] = "Paused";
|
16723
16814
|
})(PrintState$1 || (PrintState$1 = {}));
|
16724
16815
|
|
16816
|
+
var TabList$1 = [{
|
16817
|
+
label: "comprehensive_analysis",
|
16818
|
+
value: 0
|
16819
|
+
}, {
|
16820
|
+
label: "solution_order",
|
16821
|
+
value: 1
|
16822
|
+
}, {
|
16823
|
+
label: "compare_solution",
|
16824
|
+
value: 2
|
16825
|
+
}, {
|
16826
|
+
label: "problem_analysis",
|
16827
|
+
value: 3
|
16828
|
+
}];
|
16829
|
+
|
16725
16830
|
var TOTAL = 3;
|
16726
16831
|
var PrintExamView2 = function PrintExamView2(_ref) {
|
16727
16832
|
var history = _ref.history,
|
@@ -16756,7 +16861,23 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16756
16861
|
var _useState5 = React.useState([]),
|
16757
16862
|
errorLinks = _useState5[0],
|
16758
16863
|
setErrorLinks = _useState5[1];
|
16864
|
+
var _useState6 = React.useState([]),
|
16865
|
+
status = _useState6[0],
|
16866
|
+
setStatus = _useState6[1];
|
16759
16867
|
var theme = material.useTheme();
|
16868
|
+
var handleChangeStatus = function handleChangeStatus(event) {
|
16869
|
+
if (event.target.checked) {
|
16870
|
+
setStatus(function (prev) {
|
16871
|
+
var _event$target;
|
16872
|
+
return [].concat(prev, [(_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value]);
|
16873
|
+
});
|
16874
|
+
} else setStatus(function (prev) {
|
16875
|
+
return prev === null || prev === void 0 ? void 0 : prev.filter(function (i) {
|
16876
|
+
var _event$target2;
|
16877
|
+
return i !== ((_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.value);
|
16878
|
+
});
|
16879
|
+
});
|
16880
|
+
};
|
16760
16881
|
var handleProgressPrint = function handleProgressPrint() {
|
16761
16882
|
setData(dataProps);
|
16762
16883
|
setCompleted([]);
|
@@ -16764,6 +16885,9 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16764
16885
|
setErrorLinks([]);
|
16765
16886
|
setState(PrintState$1.Printing);
|
16766
16887
|
};
|
16888
|
+
console.log({
|
16889
|
+
status: status
|
16890
|
+
});
|
16767
16891
|
var print = function print(_ref2) {
|
16768
16892
|
var examSessionId = _ref2.examSessionId,
|
16769
16893
|
studentId = _ref2.studentId,
|
@@ -16772,7 +16896,7 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16772
16896
|
var height = 200;
|
16773
16897
|
var left = window.screenX + window.outerWidth / 2 - width / 2;
|
16774
16898
|
var top = window.screenY + window.outerHeight / 2 - height / 2;
|
16775
|
-
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
|
16899
|
+
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print?status=" + status.join(",") : window.location.origin + "/student/exam-results/" + code + "/print";
|
16776
16900
|
var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
|
16777
16901
|
var windowSpecs = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",location=yes,resizable=yes,scrollbars=yes,status=yes";
|
16778
16902
|
var childWindow = window.open(url, windowName, windowSpecs);
|
@@ -16934,7 +17058,29 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16934
17058
|
disablePadding: true
|
16935
17059
|
}, t("allowed_to_send_pop_ups_and_use_redirects")), React__default.createElement(material.ListItem, {
|
16936
17060
|
disablePadding: true
|
16937
|
-
}, t("disable_ask_where_to_save_each_file_before_downloading")))), React__default.createElement(material.
|
17061
|
+
}, t("disable_ask_where_to_save_each_file_before_downloading")))), isTeacher && React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
17062
|
+
fontWeight: 700
|
17063
|
+
}, t("choose_to_print"), ":"), React__default.createElement(material.FormGroup, {
|
17064
|
+
sx: {
|
17065
|
+
display: "flex",
|
17066
|
+
flexDirection: "row",
|
17067
|
+
gap: 1,
|
17068
|
+
flexWrap: "wrap"
|
17069
|
+
}
|
17070
|
+
}, TabList$1.map(function (_ref3) {
|
17071
|
+
var label = _ref3.label,
|
17072
|
+
value = _ref3.value;
|
17073
|
+
return React__default.createElement(material.FormControlLabel, {
|
17074
|
+
control: React__default.createElement(material.Checkbox, {
|
17075
|
+
onChange: handleChangeStatus,
|
17076
|
+
value: value,
|
17077
|
+
checked: status.some(function (i) {
|
17078
|
+
return i === value.toString();
|
17079
|
+
})
|
17080
|
+
}),
|
17081
|
+
label: t(label)
|
17082
|
+
});
|
17083
|
+
}))), React__default.createElement(material.Button, {
|
16938
17084
|
className: "mt-3",
|
16939
17085
|
variant: "contained",
|
16940
17086
|
onClick: handleProgressPrint
|