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.modern.js
CHANGED
@@ -2581,6 +2581,7 @@ var your_browser_must = "귀하의 브라우저는 다음을 충족해야 합니
|
|
2581
2581
|
var allowed_to_send_pop_ups_and_use_redirects = "팝업 보내기 및 리디렉션 사용이 허용됨";
|
2582
2582
|
var disable_ask_where_to_save_each_file_before_downloading = "다운로드하기 전에 각 파일을 저장할 위치 묻기 비활성화";
|
2583
2583
|
var total_number_of_selected_results = "선택된 결과의 총 개수";
|
2584
|
+
var choose_to_print = "인쇄를 선택하세요";
|
2584
2585
|
var lang_ko = {
|
2585
2586
|
problem_solving: problem_solving,
|
2586
2587
|
my_story: my_story,
|
@@ -3353,7 +3354,8 @@ var lang_ko = {
|
|
3353
3354
|
your_browser_must: your_browser_must,
|
3354
3355
|
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects,
|
3355
3356
|
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading,
|
3356
|
-
total_number_of_selected_results: total_number_of_selected_results
|
3357
|
+
total_number_of_selected_results: total_number_of_selected_results,
|
3358
|
+
choose_to_print: choose_to_print
|
3357
3359
|
};
|
3358
3360
|
|
3359
3361
|
var problem_solving$1 = "Problem Solving";
|
@@ -4136,6 +4138,7 @@ var your_browser_must$1 = "Your browser must";
|
|
4136
4138
|
var allowed_to_send_pop_ups_and_use_redirects$1 = "Allowed to send pop-ups and use redirects";
|
4137
4139
|
var disable_ask_where_to_save_each_file_before_downloading$1 = "Disable ask where to save each file before downloading";
|
4138
4140
|
var total_number_of_selected_results$1 = "Total number of selected results";
|
4141
|
+
var choose_to_print$1 = "Choose to print";
|
4139
4142
|
var lang_en = {
|
4140
4143
|
problem_solving: problem_solving$1,
|
4141
4144
|
my_story: my_story$1,
|
@@ -4909,7 +4912,8 @@ var lang_en = {
|
|
4909
4912
|
your_browser_must: your_browser_must$1,
|
4910
4913
|
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects$1,
|
4911
4914
|
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading$1,
|
4912
|
-
total_number_of_selected_results: total_number_of_selected_results$1
|
4915
|
+
total_number_of_selected_results: total_number_of_selected_results$1,
|
4916
|
+
choose_to_print: choose_to_print$1
|
4913
4917
|
};
|
4914
4918
|
|
4915
4919
|
i18n.use(initReactI18next).init({
|
@@ -10870,6 +10874,7 @@ var EXAM_RESULT = {
|
|
10870
10874
|
topDuration: 180.939,
|
10871
10875
|
answerResponseSignal: 0,
|
10872
10876
|
isCorrect: false,
|
10877
|
+
score: 2,
|
10873
10878
|
answerTime: "2024-03-13T04:29:00.685+00:00",
|
10874
10879
|
article: 1,
|
10875
10880
|
category: {
|
@@ -10891,6 +10896,7 @@ var EXAM_RESULT = {
|
|
10891
10896
|
classAverageTime: 2.014,
|
10892
10897
|
topDuration: 2.014,
|
10893
10898
|
answerResponseSignal: 1,
|
10899
|
+
score: 2,
|
10894
10900
|
isCorrect: false,
|
10895
10901
|
answerTime: "2024-03-13T04:29:02.7+00:00",
|
10896
10902
|
article: 1,
|
@@ -10913,6 +10919,7 @@ var EXAM_RESULT = {
|
|
10913
10919
|
classAverageTime: 52.244,
|
10914
10920
|
topDuration: 24.244,
|
10915
10921
|
answerResponseSignal: 1,
|
10922
|
+
score: 2,
|
10916
10923
|
isCorrect: false,
|
10917
10924
|
answerTime: "2024-03-13T04:29:04.944+00:00",
|
10918
10925
|
article: 1,
|
@@ -10935,6 +10942,7 @@ var EXAM_RESULT = {
|
|
10935
10942
|
classAverageTime: 1.373,
|
10936
10943
|
topDuration: 1.373,
|
10937
10944
|
answerResponseSignal: 4,
|
10945
|
+
score: 2,
|
10938
10946
|
isCorrect: true,
|
10939
10947
|
answerTime: "2024-03-13T04:29:06.317+00:00",
|
10940
10948
|
article: 1,
|
@@ -10957,6 +10965,7 @@ var EXAM_RESULT = {
|
|
10957
10965
|
classAverageTime: 132.683,
|
10958
10966
|
topDuration: 110.683,
|
10959
10967
|
answerResponseSignal: 2,
|
10968
|
+
score: 2,
|
10960
10969
|
isCorrect: false,
|
10961
10970
|
answerTime: "2024-03-13T04:29:07+00:00",
|
10962
10971
|
article: 1,
|
@@ -10979,6 +10988,7 @@ var EXAM_RESULT = {
|
|
10979
10988
|
classAverageTime: 1.052,
|
10980
10989
|
topDuration: 1.052,
|
10981
10990
|
answerResponseSignal: 1,
|
10991
|
+
score: 2,
|
10982
10992
|
isCorrect: true,
|
10983
10993
|
answerTime: "2024-03-13T04:29:08.052+00:00",
|
10984
10994
|
article: 2,
|
@@ -11001,6 +11011,7 @@ var EXAM_RESULT = {
|
|
11001
11011
|
classAverageTime: 0,
|
11002
11012
|
topDuration: null,
|
11003
11013
|
answerResponseSignal: null,
|
11014
|
+
score: 2,
|
11004
11015
|
isCorrect: false,
|
11005
11016
|
answerTime: "0001-01-01T00:00:00+00:00",
|
11006
11017
|
article: 2,
|
@@ -11023,6 +11034,7 @@ var EXAM_RESULT = {
|
|
11023
11034
|
classAverageTime: 2.596,
|
11024
11035
|
topDuration: 2.596,
|
11025
11036
|
answerResponseSignal: 1,
|
11037
|
+
score: 2,
|
11026
11038
|
isCorrect: false,
|
11027
11039
|
answerTime: "2024-03-13T04:29:10.648+00:00",
|
11028
11040
|
article: 2,
|
@@ -11045,6 +11057,7 @@ var EXAM_RESULT = {
|
|
11045
11057
|
classAverageTime: 0.899,
|
11046
11058
|
topDuration: 0.899,
|
11047
11059
|
answerResponseSignal: 1,
|
11060
|
+
score: 2,
|
11048
11061
|
isCorrect: false,
|
11049
11062
|
answerTime: "2024-03-13T04:29:12.864+00:00",
|
11050
11063
|
article: 2,
|
@@ -11068,6 +11081,7 @@ var EXAM_RESULT = {
|
|
11068
11081
|
topDuration: 20.496,
|
11069
11082
|
answerResponseSignal: 0,
|
11070
11083
|
isCorrect: true,
|
11084
|
+
score: 2,
|
11071
11085
|
answerTime: "2024-03-13T04:29:14.36+00:00",
|
11072
11086
|
article: 2,
|
11073
11087
|
category: {
|
@@ -11089,6 +11103,7 @@ var EXAM_RESULT = {
|
|
11089
11103
|
classAverageTime: 0,
|
11090
11104
|
topDuration: null,
|
11091
11105
|
answerResponseSignal: null,
|
11106
|
+
score: 2,
|
11092
11107
|
isCorrect: false,
|
11093
11108
|
answerTime: "0001-01-01T00:00:00+00:00",
|
11094
11109
|
article: 2,
|
@@ -11112,6 +11127,7 @@ var EXAM_RESULT = {
|
|
11112
11127
|
topDuration: 1.317,
|
11113
11128
|
answerResponseSignal: 1,
|
11114
11129
|
isCorrect: true,
|
11130
|
+
score: 2,
|
11115
11131
|
answerTime: "2024-03-13T04:29:11.965+00:00",
|
11116
11132
|
article: 3,
|
11117
11133
|
category: {
|
@@ -11133,6 +11149,7 @@ var EXAM_RESULT = {
|
|
11133
11149
|
classAverageTime: 1.593,
|
11134
11150
|
topDuration: 1.593,
|
11135
11151
|
answerResponseSignal: 1,
|
11152
|
+
score: 2,
|
11136
11153
|
isCorrect: false,
|
11137
11154
|
answerTime: "2024-03-13T04:29:20.734+00:00",
|
11138
11155
|
article: 3,
|
@@ -11155,6 +11172,7 @@ var EXAM_RESULT = {
|
|
11155
11172
|
classAverageTime: 1.204,
|
11156
11173
|
topDuration: 1.204,
|
11157
11174
|
answerResponseSignal: 1,
|
11175
|
+
score: 2,
|
11158
11176
|
isCorrect: false,
|
11159
11177
|
answerTime: "2024-03-13T04:29:18.164+00:00",
|
11160
11178
|
article: 3,
|
@@ -11177,6 +11195,7 @@ var EXAM_RESULT = {
|
|
11177
11195
|
classAverageTime: 2.6,
|
11178
11196
|
topDuration: 2.6,
|
11179
11197
|
answerResponseSignal: 1,
|
11198
|
+
score: 2,
|
11180
11199
|
isCorrect: false,
|
11181
11200
|
answerTime: "2024-03-13T04:29:16.96+00:00",
|
11182
11201
|
article: 3,
|
@@ -11199,6 +11218,7 @@ var EXAM_RESULT = {
|
|
11199
11218
|
classAverageTime: 0.977,
|
11200
11219
|
topDuration: 0.977,
|
11201
11220
|
answerResponseSignal: 1,
|
11221
|
+
score: 2,
|
11202
11222
|
isCorrect: true,
|
11203
11223
|
answerTime: "2024-03-13T04:29:19.141+00:00",
|
11204
11224
|
article: 3,
|
@@ -11727,12 +11747,12 @@ var useExamResult = function useExamResult(props) {
|
|
11727
11747
|
setCategoryResponses(((_result$4$data2 = result[4].data) === null || _result$4$data2 === void 0 ? void 0 : _result$4$data2.data) || []);
|
11728
11748
|
return isStudent ? _temp3(!isStudent && createRecentUserActionListApi({
|
11729
11749
|
userId: studentId,
|
11730
|
-
action: RecentUserAction$1.ViewedExamResult,
|
11750
|
+
action: isPrint ? RecentUserAction$1.PrintedExamResult : RecentUserAction$1.ViewedExamResult,
|
11731
11751
|
data: "" + examSessionId,
|
11732
11752
|
roles: [Role.Teacher]
|
11733
11753
|
})) : Promise.resolve(!isStudent && createRecentUserActionListApi({
|
11734
11754
|
userId: studentId,
|
11735
|
-
action: RecentUserAction$1.ViewedExamResult,
|
11755
|
+
action: isPrint ? RecentUserAction$1.PrintedExamResult : RecentUserAction$1.ViewedExamResult,
|
11736
11756
|
data: "" + examSessionId,
|
11737
11757
|
roles: [Role.Teacher]
|
11738
11758
|
})).then(_temp3);
|
@@ -13117,7 +13137,7 @@ var iconNoStarQuestion = function iconNoStarQuestion(_ref) {
|
|
13117
13137
|
clipPath: "url(#clip0_307_1248)"
|
13118
13138
|
}, React__default.createElement("path", {
|
13119
13139
|
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",
|
13120
|
-
fill: "#
|
13140
|
+
fill: "#E4E7EC"
|
13121
13141
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
13122
13142
|
id: "clip0_307_1248"
|
13123
13143
|
}, React__default.createElement("rect", {
|
@@ -13460,6 +13480,8 @@ function CreateNewQuestionDialog(_ref) {
|
|
13460
13480
|
})));
|
13461
13481
|
}
|
13462
13482
|
|
13483
|
+
var printStyles = {"page-break":"_35kyG","print-exact-color":"_1PFgl","avoid-break-inside":"_3rPGh"};
|
13484
|
+
|
13463
13485
|
function MyAnswer(_ref) {
|
13464
13486
|
var data = _ref.data,
|
13465
13487
|
categories = _ref.categories,
|
@@ -13492,11 +13514,15 @@ function MyAnswer(_ref) {
|
|
13492
13514
|
};
|
13493
13515
|
var renderQuestions = function renderQuestions(questions) {
|
13494
13516
|
return questions.map(function (question, index) {
|
13517
|
+
var _questions;
|
13495
13518
|
return React__default.createElement("div", {
|
13519
|
+
className: "" + printStyles["avoid-break-inside"],
|
13496
13520
|
style: isOpenTime[question.id] ? {
|
13497
13521
|
borderTop: index !== 0 ? "1px solid #E4E7EC" : "",
|
13498
13522
|
borderBottom: "1px solid #E4E7EC"
|
13499
|
-
} : {
|
13523
|
+
} : {
|
13524
|
+
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" : ""
|
13525
|
+
},
|
13500
13526
|
key: question.id
|
13501
13527
|
}, React__default.createElement("div", {
|
13502
13528
|
className: styles$4["myAnswerItem"] + " " + styles["noGutters"]
|
@@ -13592,11 +13618,13 @@ function MyAnswer(_ref) {
|
|
13592
13618
|
});
|
13593
13619
|
};
|
13594
13620
|
return React__default.createElement("div", {
|
13595
|
-
className: styles$4["myanswer"]
|
13621
|
+
className: "" + styles$4["myanswer"]
|
13596
13622
|
}, formattedData && formattedData.length > 0 && formattedData.map(function (item) {
|
13597
13623
|
return React__default.createElement("div", {
|
13598
13624
|
key: item.category.id
|
13599
|
-
}, React__default.createElement("div",
|
13625
|
+
}, React__default.createElement("div", {
|
13626
|
+
className: "" + printStyles["avoid-break-inside"]
|
13627
|
+
}, React__default.createElement(Stack, {
|
13600
13628
|
bgcolor: "#F9FAFB",
|
13601
13629
|
flexDirection: "row",
|
13602
13630
|
padding: "12px",
|
@@ -13746,18 +13774,29 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
13746
13774
|
}));
|
13747
13775
|
};
|
13748
13776
|
|
13749
|
-
var
|
13750
|
-
|
13777
|
+
var ChipCustom = styled(Stack)(function (_ref) {
|
13778
|
+
_objectDestructuringEmpty(_ref);
|
13779
|
+
return {
|
13780
|
+
width: "fit-content",
|
13781
|
+
borderRadius: "6px",
|
13782
|
+
padding: "4px 8px",
|
13783
|
+
flexWrap: "nowrap"
|
13784
|
+
};
|
13785
|
+
});
|
13786
|
+
var CompareGrass = function CompareGrass(_ref2) {
|
13787
|
+
var effectSize = _ref2.effectSize;
|
13751
13788
|
var _useTranslation = useTranslation(),
|
13752
13789
|
t = _useTranslation.t;
|
13753
13790
|
var renderTableBody = function renderTableBody(effectSize) {
|
13754
13791
|
return effectSize.map(function (item, index) {
|
13755
13792
|
return React__default.createElement("tr", {
|
13756
13793
|
id: "print-item",
|
13794
|
+
className: "" + printStyles["avoid-break-inside"],
|
13757
13795
|
key: item.id,
|
13758
|
-
style:
|
13759
|
-
borderBottom: "1px solid #e4e7ec"
|
13760
|
-
|
13796
|
+
style: {
|
13797
|
+
borderBottom: index < effectSize.length - 1 ? "1px solid #e4e7ec" : undefined,
|
13798
|
+
borderTop: index < effectSize.length - 1 ? "1px solid transparent" : undefined
|
13799
|
+
}
|
13761
13800
|
}, React__default.createElement("td", {
|
13762
13801
|
className: styles$4["tdcolumn1"]
|
13763
13802
|
}, t("problem"), " ", item.questionOrder + 1), React__default.createElement("td", {
|
@@ -13781,31 +13820,47 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13781
13820
|
}
|
13782
13821
|
}, item.mostSelectedAnswers ? t("number_question", {
|
13783
13822
|
number: item.mostSelectedAnswers
|
13784
|
-
}) : ""), React__default.createElement("td",
|
13785
|
-
className:
|
13823
|
+
}) : ""), React__default.createElement("td", {
|
13824
|
+
className: "" + printStyles["avoid-break-inside"]
|
13825
|
+
}, React__default.createElement("div", {
|
13826
|
+
className: styles$4["classification"] + " " + printStyles["avoid-break-inside"]
|
13786
13827
|
}, item.problemCategories.map(function (problem, index) {
|
13787
|
-
return React__default.createElement(
|
13788
|
-
|
13789
|
-
|
13828
|
+
return React__default.createElement(Stack, {
|
13829
|
+
flexDirection: "row",
|
13830
|
+
key: index,
|
13831
|
+
gap: "10px",
|
13832
|
+
flexWrap: "wrap",
|
13833
|
+
className: "" + printStyles["avoid-break-inside"]
|
13834
|
+
}, problem === 1 && React__default.createElement(ChipCustom, {
|
13790
13835
|
style: {
|
13791
|
-
border: "1px solid "
|
13792
|
-
|
13793
|
-
|
13836
|
+
border: "1px solid #1EE288",
|
13837
|
+
fontSize: "11px"
|
13838
|
+
},
|
13839
|
+
className: "" + printStyles["avoid-break-inside"]
|
13840
|
+
}, t("easy_problem")), problem === 3 && React__default.createElement(ChipCustom, {
|
13794
13841
|
style: {
|
13795
|
-
border: "1px solid "
|
13796
|
-
|
13797
|
-
|
13842
|
+
border: "1px solid #FEAF06",
|
13843
|
+
fontSize: "11px"
|
13844
|
+
},
|
13845
|
+
className: "" + printStyles["avoid-break-inside"]
|
13846
|
+
}, t("trick_problem")), problem === 2 && React__default.createElement(ChipCustom, {
|
13798
13847
|
style: {
|
13799
|
-
border: "1px solid "
|
13800
|
-
|
13801
|
-
|
13848
|
+
border: "1px solid #F34B4B",
|
13849
|
+
fontSize: "11px"
|
13850
|
+
},
|
13851
|
+
className: "" + printStyles["avoid-break-inside"]
|
13852
|
+
}, t("differential_problem")), problem === 0 && React__default.createElement(ChipCustom, {
|
13802
13853
|
style: {
|
13803
|
-
border: "1px solid #DDDDDD"
|
13804
|
-
|
13805
|
-
|
13854
|
+
border: "1px solid #DDDDDD",
|
13855
|
+
fontSize: "11px"
|
13856
|
+
},
|
13857
|
+
className: "" + printStyles["avoid-break-inside"]
|
13858
|
+
}, t("general_problem")), problem === 4 && React__default.createElement(ChipCustom, {
|
13806
13859
|
style: {
|
13807
|
-
border: "1px solid "
|
13808
|
-
|
13860
|
+
border: "1px solid #FF0000",
|
13861
|
+
fontSize: "11px"
|
13862
|
+
},
|
13863
|
+
className: "" + printStyles["avoid-break-inside"]
|
13809
13864
|
}, t("difficult_problem")));
|
13810
13865
|
}))));
|
13811
13866
|
});
|
@@ -13822,8 +13877,10 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13822
13877
|
}
|
13823
13878
|
}, React__default.createElement("thead", {
|
13824
13879
|
style: {
|
13825
|
-
borderBottom: "1px solid #E4E7EC"
|
13826
|
-
|
13880
|
+
borderBottom: "1px solid #E4E7EC",
|
13881
|
+
borderTop: "1px solid transparent"
|
13882
|
+
},
|
13883
|
+
className: "" + printStyles["avoid-break-inside"]
|
13827
13884
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
13828
13885
|
className: styles$4["thcolumn1"]
|
13829
13886
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -13906,9 +13963,9 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13906
13963
|
});
|
13907
13964
|
var renderProblems = function renderProblems() {
|
13908
13965
|
return React__default.createElement(Fragment$1, null, React__default.createElement("div", {
|
13909
|
-
className: styles$4["titleTrickyProblem"]
|
13966
|
+
className: styles$4["titleTrickyProblem"] + " " + printStyles["avoid-break-inside"]
|
13910
13967
|
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
13911
|
-
className: styles$4["wrongQuestions"]
|
13968
|
+
className: styles$4["wrongQuestions"] + " " + printStyles["avoid-break-inside"]
|
13912
13969
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
13913
13970
|
return React__default.createElement("span", {
|
13914
13971
|
key: question.id,
|
@@ -13919,9 +13976,9 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13919
13976
|
}), !data.questions.length && React__default.createElement("div", {
|
13920
13977
|
className: styles$4["noData"]
|
13921
13978
|
}, t("no_data"))), React__default.createElement("div", {
|
13922
|
-
className: styles$4["titleTrickyProblem"]
|
13979
|
+
className: styles$4["titleTrickyProblem"] + " " + printStyles["avoid-break-inside"]
|
13923
13980
|
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
13924
|
-
className: styles$4["assignedQuestions"]
|
13981
|
+
className: styles$4["assignedQuestions"] + " " + printStyles["avoid-break-inside"]
|
13925
13982
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
13926
13983
|
return React__default.createElement("div", {
|
13927
13984
|
key: question.id,
|
@@ -13936,7 +13993,7 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
13936
13993
|
return React__default.createElement("div", {
|
13937
13994
|
className: "" + styles$4["wrapperProblem"]
|
13938
13995
|
}, React__default.createElement("div", {
|
13939
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
13996
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
13940
13997
|
onClick: function onClick() {
|
13941
13998
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : keyOpen);
|
13942
13999
|
}
|
@@ -13970,6 +14027,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
13970
14027
|
var isBetter = time > 0;
|
13971
14028
|
return React__default.createElement("tr", {
|
13972
14029
|
id: "print-item",
|
14030
|
+
className: "" + printStyles["avoid-break-inside"],
|
13973
14031
|
key: item.id,
|
13974
14032
|
style: index < data.length - 1 ? {
|
13975
14033
|
borderBottom: "1px solid #e4e7ec"
|
@@ -14010,8 +14068,9 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14010
14068
|
};
|
14011
14069
|
var renderQuestions = function renderQuestions(data) {
|
14012
14070
|
return data.map(function (item) {
|
14013
|
-
return React__default.createElement(
|
14014
|
-
|
14071
|
+
return React__default.createElement(Stack, {
|
14072
|
+
flexDirection: "row",
|
14073
|
+
className: styles$4["content"] + " " + printStyles["avoid-break-inside"],
|
14015
14074
|
key: item.id
|
14016
14075
|
}, React__default.createElement("div", {
|
14017
14076
|
className: styles$4["contentColumn1"]
|
@@ -14037,7 +14096,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14037
14096
|
return React__default.createElement("div", {
|
14038
14097
|
className: "" + styles$4["wrapperProblem"]
|
14039
14098
|
}, React__default.createElement("div", {
|
14040
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14099
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14041
14100
|
onClick: function onClick() {
|
14042
14101
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : keyOpen);
|
14043
14102
|
}
|
@@ -14075,7 +14134,8 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14075
14134
|
}, isMyStoryStudent && React__default.createElement("thead", {
|
14076
14135
|
style: {
|
14077
14136
|
borderBottom: "1px solid #E4E7EC"
|
14078
|
-
}
|
14137
|
+
},
|
14138
|
+
className: "" + printStyles["avoid-break-inside"]
|
14079
14139
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14080
14140
|
className: styles$4["thcolumn1"]
|
14081
14141
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -14091,7 +14151,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
14091
14151
|
textAlign: "center"
|
14092
14152
|
}
|
14093
14153
|
}, t("time_comparison")))), React__default.createElement("tbody", null, isMyStoryStudent ? renderTableBody(data) : renderQuestions(data))))) : React__default.createElement("div", {
|
14094
|
-
className: "" +
|
14154
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14095
14155
|
}, t("no_data"))));
|
14096
14156
|
};
|
14097
14157
|
|
@@ -14117,10 +14177,11 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14117
14177
|
return data.map(function (item, index) {
|
14118
14178
|
return React__default.createElement("tr", {
|
14119
14179
|
id: "print-item",
|
14180
|
+
className: "" + printStyles["avoid-break-inside"],
|
14120
14181
|
key: item.id,
|
14121
|
-
style:
|
14122
|
-
borderBottom: "1px solid #e4e7ec"
|
14123
|
-
}
|
14182
|
+
style: {
|
14183
|
+
borderBottom: index < data.length - 1 ? "1px solid #e4e7ec" : undefined
|
14184
|
+
}
|
14124
14185
|
}, React__default.createElement("td", {
|
14125
14186
|
className: styles$4["tdcolumn1"],
|
14126
14187
|
style: {
|
@@ -14168,7 +14229,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14168
14229
|
return React__default.createElement(Grid, {
|
14169
14230
|
container: true,
|
14170
14231
|
flexWrap: "nowrap",
|
14171
|
-
className: styles$4["content"],
|
14232
|
+
className: styles$4["content"] + " " + printStyles["avoid-break-inside"],
|
14172
14233
|
key: question.id
|
14173
14234
|
}, React__default.createElement(Grid, {
|
14174
14235
|
item: true,
|
@@ -14206,7 +14267,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14206
14267
|
return React__default.createElement("div", {
|
14207
14268
|
className: "" + styles$4["wrapperProblem"]
|
14208
14269
|
}, React__default.createElement("div", {
|
14209
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14270
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14210
14271
|
onClick: handleToggle
|
14211
14272
|
}, React__default.createElement(Stack, {
|
14212
14273
|
flexDirection: "row",
|
@@ -14242,7 +14303,8 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14242
14303
|
}, React__default.createElement("thead", {
|
14243
14304
|
style: {
|
14244
14305
|
borderBottom: "1px solid #E4E7EC"
|
14245
|
-
}
|
14306
|
+
},
|
14307
|
+
className: "" + printStyles["avoid-break-inside"]
|
14246
14308
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14247
14309
|
className: styles$4["thcolumn1"]
|
14248
14310
|
}, t("problem_number")), React__default.createElement("th", {
|
@@ -14262,7 +14324,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14262
14324
|
textAlign: "center"
|
14263
14325
|
}
|
14264
14326
|
}, t("_category")))), React__default.createElement("tbody", null, renderTableBody(incorrectQuestions))), !isMyStoryStudent && renderQuestions(incorrectQuestions))) : React__default.createElement("div", {
|
14265
|
-
className: "" +
|
14327
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14266
14328
|
}, t("no_data"))));
|
14267
14329
|
};
|
14268
14330
|
|
@@ -14303,10 +14365,11 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14303
14365
|
return data.map(function (item, index) {
|
14304
14366
|
return React__default.createElement("tr", {
|
14305
14367
|
id: "print-item",
|
14368
|
+
className: "" + printStyles["avoid-break-inside"],
|
14306
14369
|
key: item.id,
|
14307
|
-
style:
|
14308
|
-
borderBottom: "1px solid #e4e7ec"
|
14309
|
-
}
|
14370
|
+
style: {
|
14371
|
+
borderBottom: index < data.length - 1 ? "1px solid #e4e7ec" : undefined
|
14372
|
+
}
|
14310
14373
|
}, React__default.createElement("td", {
|
14311
14374
|
className: styles$4["tdcolumn1"],
|
14312
14375
|
style: {
|
@@ -14356,7 +14419,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14356
14419
|
left: item.percentageAmongStudents + "%"
|
14357
14420
|
};
|
14358
14421
|
return React__default.createElement("div", {
|
14359
|
-
className: styles$4["contentProblem"],
|
14422
|
+
className: styles$4["contentProblem"] + " " + printStyles["avoid-break-inside"],
|
14360
14423
|
key: item.id
|
14361
14424
|
}, React__default.createElement("div", {
|
14362
14425
|
className: styles$4["labelProblem"]
|
@@ -14375,7 +14438,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14375
14438
|
return React__default.createElement("div", {
|
14376
14439
|
className: "" + styles$4["wrapperProblem"]
|
14377
14440
|
}, React__default.createElement("div", {
|
14378
|
-
className: "" + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14441
|
+
className: printStyles["avoid-break-inside"] + " " + (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]),
|
14379
14442
|
onClick: function onClick() {
|
14380
14443
|
return changeOpen === null || changeOpen === void 0 ? void 0 : changeOpen(isOpen ? undefined : ProblemKey.GradesByTerritory);
|
14381
14444
|
}
|
@@ -14403,7 +14466,8 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14403
14466
|
}, React__default.createElement("thead", {
|
14404
14467
|
style: {
|
14405
14468
|
borderBottom: "1px solid #E4E7EC"
|
14406
|
-
}
|
14469
|
+
},
|
14470
|
+
className: "" + printStyles["avoid-break-inside"]
|
14407
14471
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
14408
14472
|
className: styles$4["thcolumn1"]
|
14409
14473
|
}, t("categories")), React__default.createElement("th", {
|
@@ -14423,7 +14487,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
14423
14487
|
textAlign: "center"
|
14424
14488
|
}
|
14425
14489
|
}, t("total_solve_time")))), React__default.createElement("tbody", null, renderTableBody(formattedData))), !isMyStoryStudent && renderCategories(formattedData))) : React__default.createElement("div", {
|
14426
|
-
className: "" +
|
14490
|
+
className: styles$4["noData"] + " " + printStyles["avoid-break-inside"]
|
14427
14491
|
}, t("no_data"))));
|
14428
14492
|
};
|
14429
14493
|
|
@@ -14652,7 +14716,7 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14652
14716
|
var autoPrintPdf = function autoPrintPdf() {
|
14653
14717
|
if (printState === PrintState.Printing) return;
|
14654
14718
|
if (autoPrint && printState !== PrintState.Default) return;
|
14655
|
-
if (totalChart !== renderedCharts.length) {
|
14719
|
+
if (totalChart !== 0 && totalChart !== renderedCharts.length) {
|
14656
14720
|
!autoPrint && setPrintState(PrintState.Pending);
|
14657
14721
|
return;
|
14658
14722
|
}
|
@@ -14677,7 +14741,7 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14677
14741
|
orientation: 'portrait'
|
14678
14742
|
},
|
14679
14743
|
pagebreak: {
|
14680
|
-
mode: ['
|
14744
|
+
mode: ['css', 'legacy']
|
14681
14745
|
}
|
14682
14746
|
};
|
14683
14747
|
return Promise.resolve(html2pdf().from(element).set(options).save()).then(function () {
|
@@ -14712,8 +14776,6 @@ var usePrintExamResult = function usePrintExamResult(isDataFetching, fileName, t
|
|
14712
14776
|
};
|
14713
14777
|
};
|
14714
14778
|
|
14715
|
-
var printStyles = {"page-break":"_35kyG","print-exact-color":"_1PFgl","avoid-break-inside":"_3rPGh"};
|
14716
|
-
|
14717
14779
|
var TimeOrderChart = function TimeOrderChart(_ref) {
|
14718
14780
|
var timelyOrderQuestion = _ref.timelyOrderQuestion,
|
14719
14781
|
options = _ref.options,
|
@@ -14744,7 +14806,7 @@ var TimeOrderChart = function TimeOrderChart(_ref) {
|
|
14744
14806
|
color: "#414E62"
|
14745
14807
|
}
|
14746
14808
|
}, t("article_number"), " ", timelyOrderQuestion.article), React__default.createElement("div", {
|
14747
|
-
className: "" +
|
14809
|
+
className: styles$4["compareChart"] + " " + printStyles["avoid-break-inside"]
|
14748
14810
|
}, React__default.createElement("div", {
|
14749
14811
|
className: "" + styles$4["prevChart"]
|
14750
14812
|
}), React__default.createElement("div", {
|
@@ -14783,6 +14845,8 @@ var studentNameStyle = {
|
|
14783
14845
|
var PrintExamResult = function PrintExamResult(_ref) {
|
14784
14846
|
var resultData = _ref.resultData,
|
14785
14847
|
examTime = _ref.examTime,
|
14848
|
+
status = _ref.status,
|
14849
|
+
isShow = _ref.isShow,
|
14786
14850
|
isStudent = _ref.isStudent,
|
14787
14851
|
categoryResponses = _ref.categoryResponses,
|
14788
14852
|
timelyOrderQuestions = _ref.timelyOrderQuestions,
|
@@ -14910,7 +14974,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14910
14974
|
fontWeight: 600,
|
14911
14975
|
color: styles.gray_700
|
14912
14976
|
}
|
14913
|
-
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React__default.createElement(Stack, {
|
14977
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[0].value))) && React__default.createElement(Stack, {
|
14914
14978
|
display: "flex",
|
14915
14979
|
flexDirection: "column",
|
14916
14980
|
gap: "12px"
|
@@ -14920,22 +14984,34 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14920
14984
|
data: resultData,
|
14921
14985
|
categories: categoryResponses,
|
14922
14986
|
isStudent: isStudent
|
14923
|
-
})), React__default.createElement(Stack, {
|
14987
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[1].value))) && React__default.createElement(Stack, {
|
14924
14988
|
display: "flex",
|
14925
14989
|
flexDirection: "column",
|
14926
14990
|
gap: "12px",
|
14927
14991
|
marginTop: "24px"
|
14992
|
+
}, React__default.createElement(Stack, {
|
14993
|
+
flexDirection: "column",
|
14994
|
+
gap: "12px",
|
14995
|
+
className: "" + printStyles["avoid-break-inside"]
|
14928
14996
|
}, React__default.createElement(Typography, {
|
14929
14997
|
sx: textStyle
|
14930
14998
|
}, t$1(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
14931
|
-
return React__default.createElement(TimeOrderChart, {
|
14999
|
+
return index === 0 && React__default.createElement(TimeOrderChart, {
|
14932
15000
|
key: index,
|
14933
15001
|
timelyOrderQuestion: timelyOrderQuestion,
|
14934
15002
|
options: allChartOptions[index],
|
14935
15003
|
series: allSeries[index],
|
14936
15004
|
setIsRendered: setRenderedChart
|
14937
15005
|
});
|
14938
|
-
})),
|
15006
|
+
})), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
15007
|
+
return index > 0 && React__default.createElement(TimeOrderChart, {
|
15008
|
+
key: index,
|
15009
|
+
timelyOrderQuestion: timelyOrderQuestion,
|
15010
|
+
options: allChartOptions[index],
|
15011
|
+
series: allSeries[index],
|
15012
|
+
setIsRendered: setRenderedChart
|
15013
|
+
});
|
15014
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[2].value))) && React__default.createElement(Stack, {
|
14939
15015
|
display: "flex",
|
14940
15016
|
flexDirection: "column",
|
14941
15017
|
gap: "12px",
|
@@ -14944,7 +15020,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
14944
15020
|
sx: textStyle
|
14945
15021
|
}, t$1(TabList[2].label)), React__default.createElement(CompareGrass, {
|
14946
15022
|
effectSize: effectSize
|
14947
|
-
})), React__default.createElement(Stack, {
|
15023
|
+
})), (!status || (isShow === null || isShow === void 0 ? void 0 : isShow(TabList[3].value))) && React__default.createElement(Stack, {
|
14948
15024
|
display: "flex",
|
14949
15025
|
flexDirection: "column",
|
14950
15026
|
gap: "12px",
|
@@ -16563,6 +16639,15 @@ var usePrintView = function usePrintView(_ref) {
|
|
16563
16639
|
var _useState = useState(false),
|
16564
16640
|
isDone = _useState[0],
|
16565
16641
|
setDone = _useState[1];
|
16642
|
+
var _useLocation = useLocation(),
|
16643
|
+
search = _useLocation.search;
|
16644
|
+
var query = new URLSearchParams(search);
|
16645
|
+
var status = query.get('status') || '';
|
16646
|
+
var isShow = function isShow(value) {
|
16647
|
+
return (status === null || status === void 0 ? void 0 : status.split(',').some(function (i) {
|
16648
|
+
return i === value.toString();
|
16649
|
+
})) || false;
|
16650
|
+
};
|
16566
16651
|
var handelPrintSuccess = function handelPrintSuccess() {
|
16567
16652
|
var _window$opener$postMe, _window$opener;
|
16568
16653
|
var data;
|
@@ -16609,6 +16694,8 @@ var usePrintView = function usePrintView(_ref) {
|
|
16609
16694
|
return {
|
16610
16695
|
fileName: fileName,
|
16611
16696
|
isDone: isDone,
|
16697
|
+
status: status,
|
16698
|
+
isShow: isShow,
|
16612
16699
|
handelPrintSuccess: handelPrintSuccess,
|
16613
16700
|
handelPrintError: handelPrintError
|
16614
16701
|
};
|
@@ -16677,9 +16764,11 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16677
16764
|
}),
|
16678
16765
|
fileName = _usePrintView.fileName,
|
16679
16766
|
isDone = _usePrintView.isDone,
|
16767
|
+
status = _usePrintView.status,
|
16768
|
+
isShow = _usePrintView.isShow,
|
16680
16769
|
handelPrintSuccess = _usePrintView.handelPrintSuccess,
|
16681
16770
|
handelPrintError = _usePrintView.handelPrintError;
|
16682
|
-
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, timelyOrderQuestions.length, handelPrintSuccess, handelPrintError, true),
|
16771
|
+
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, !status || isShow !== null && isShow !== void 0 && isShow(TabList[1].value) ? timelyOrderQuestions.length : 0, handelPrintSuccess, handelPrintError, true),
|
16683
16772
|
contentRef = _usePrintExamResult.contentRef,
|
16684
16773
|
setRenderedChart = _usePrintExamResult.setRenderedChart;
|
16685
16774
|
var isTabletUp = useMediaQuery("(min-width:900px)");
|
@@ -16702,6 +16791,8 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16702
16791
|
timelyOrderQuestions: timelyOrderQuestions,
|
16703
16792
|
isMyStoryStudent: isMyStoryStudent,
|
16704
16793
|
fileName: fileName,
|
16794
|
+
isShow: isShow,
|
16795
|
+
status: status,
|
16705
16796
|
setRenderedChart: setRenderedChart
|
16706
16797
|
}) : isLoading === undefined || isLoading === true ? React__default.createElement(LoadingComponent, {
|
16707
16798
|
isLoading: !!isLoading,
|
@@ -16724,6 +16815,20 @@ var PrintState$1;
|
|
16724
16815
|
PrintState[PrintState["Paused"] = 3] = "Paused";
|
16725
16816
|
})(PrintState$1 || (PrintState$1 = {}));
|
16726
16817
|
|
16818
|
+
var TabList$1 = [{
|
16819
|
+
label: "comprehensive_analysis",
|
16820
|
+
value: 0
|
16821
|
+
}, {
|
16822
|
+
label: "solution_order",
|
16823
|
+
value: 1
|
16824
|
+
}, {
|
16825
|
+
label: "compare_solution",
|
16826
|
+
value: 2
|
16827
|
+
}, {
|
16828
|
+
label: "problem_analysis",
|
16829
|
+
value: 3
|
16830
|
+
}];
|
16831
|
+
|
16727
16832
|
var TOTAL = 3;
|
16728
16833
|
var PrintExamView2 = function PrintExamView2(_ref) {
|
16729
16834
|
var history = _ref.history,
|
@@ -16758,7 +16863,23 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16758
16863
|
var _useState5 = useState([]),
|
16759
16864
|
errorLinks = _useState5[0],
|
16760
16865
|
setErrorLinks = _useState5[1];
|
16866
|
+
var _useState6 = useState([]),
|
16867
|
+
status = _useState6[0],
|
16868
|
+
setStatus = _useState6[1];
|
16761
16869
|
var theme = useTheme();
|
16870
|
+
var handleChangeStatus = function handleChangeStatus(event) {
|
16871
|
+
if (event.target.checked) {
|
16872
|
+
setStatus(function (prev) {
|
16873
|
+
var _event$target;
|
16874
|
+
return [].concat(prev, [(_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value]);
|
16875
|
+
});
|
16876
|
+
} else setStatus(function (prev) {
|
16877
|
+
return prev === null || prev === void 0 ? void 0 : prev.filter(function (i) {
|
16878
|
+
var _event$target2;
|
16879
|
+
return i !== ((_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.value);
|
16880
|
+
});
|
16881
|
+
});
|
16882
|
+
};
|
16762
16883
|
var handleProgressPrint = function handleProgressPrint() {
|
16763
16884
|
setData(dataProps);
|
16764
16885
|
setCompleted([]);
|
@@ -16766,6 +16887,9 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16766
16887
|
setErrorLinks([]);
|
16767
16888
|
setState(PrintState$1.Printing);
|
16768
16889
|
};
|
16890
|
+
console.log({
|
16891
|
+
status: status
|
16892
|
+
});
|
16769
16893
|
var print = function print(_ref2) {
|
16770
16894
|
var examSessionId = _ref2.examSessionId,
|
16771
16895
|
studentId = _ref2.studentId,
|
@@ -16774,7 +16898,7 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16774
16898
|
var height = 200;
|
16775
16899
|
var left = window.screenX + window.outerWidth / 2 - width / 2;
|
16776
16900
|
var top = window.screenY + window.outerHeight / 2 - height / 2;
|
16777
|
-
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
|
16901
|
+
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print?status=" + status.join(",") : window.location.origin + "/student/exam-results/" + code + "/print";
|
16778
16902
|
var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
|
16779
16903
|
var windowSpecs = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",location=yes,resizable=yes,scrollbars=yes,status=yes";
|
16780
16904
|
var childWindow = window.open(url, windowName, windowSpecs);
|
@@ -16936,7 +17060,29 @@ var PrintExamView2 = function PrintExamView2(_ref) {
|
|
16936
17060
|
disablePadding: true
|
16937
17061
|
}, t("allowed_to_send_pop_ups_and_use_redirects")), React__default.createElement(ListItem, {
|
16938
17062
|
disablePadding: true
|
16939
|
-
}, t("disable_ask_where_to_save_each_file_before_downloading")))), React__default.createElement(
|
17063
|
+
}, t("disable_ask_where_to_save_each_file_before_downloading")))), isTeacher && React__default.createElement(Stack, null, React__default.createElement(Typography, {
|
17064
|
+
fontWeight: 700
|
17065
|
+
}, t("choose_to_print"), ":"), React__default.createElement(FormGroup, {
|
17066
|
+
sx: {
|
17067
|
+
display: "flex",
|
17068
|
+
flexDirection: "row",
|
17069
|
+
gap: 1,
|
17070
|
+
flexWrap: "wrap"
|
17071
|
+
}
|
17072
|
+
}, TabList$1.map(function (_ref3) {
|
17073
|
+
var label = _ref3.label,
|
17074
|
+
value = _ref3.value;
|
17075
|
+
return React__default.createElement(FormControlLabel, {
|
17076
|
+
control: React__default.createElement(Checkbox, {
|
17077
|
+
onChange: handleChangeStatus,
|
17078
|
+
value: value,
|
17079
|
+
checked: status.some(function (i) {
|
17080
|
+
return i === value.toString();
|
17081
|
+
})
|
17082
|
+
}),
|
17083
|
+
label: t(label)
|
17084
|
+
});
|
17085
|
+
}))), React__default.createElement(Button, {
|
16940
17086
|
className: "mt-3",
|
16941
17087
|
variant: "contained",
|
16942
17088
|
onClick: handleProgressPrint
|