touchstudy-core 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Selects/partials/index.d.ts +4 -0
- package/dist/components/Selects/styles.d.ts +6 -0
- package/dist/components/Selects/theme/styles.d.ts +6 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -1
- package/dist/containers/Login/views/Login.d.ts +1 -1
- package/dist/index.css +4 -2
- package/dist/index.js +336 -136
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +336 -136
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -1516,6 +1516,7 @@ var confirmation = "확인";
|
|
1516
1516
|
var student_name = "학생이름";
|
1517
1517
|
var full_pool_time = "전체풀이시간";
|
1518
1518
|
var number_question = "{{number}}번";
|
1519
|
+
var number_answer = "{{number}}번";
|
1519
1520
|
var answer_rate = "정답률";
|
1520
1521
|
var seconds = "초";
|
1521
1522
|
var search_placeholder = "시험 이름으로 검색하기";
|
@@ -1530,6 +1531,7 @@ var information_by_question = "문항별 정보";
|
|
1530
1531
|
var no_data = "데이터 없음";
|
1531
1532
|
var internet_connection_was_lost = "인터넷 연결이 끊어졌습니다";
|
1532
1533
|
var problem = "문제";
|
1534
|
+
var problems = "문제";
|
1533
1535
|
var problem_solving_time = "문제풀이 시간";
|
1534
1536
|
var minutes = "분";
|
1535
1537
|
var correct_rate = "정확한 비율";
|
@@ -1792,6 +1794,34 @@ var textbook_management = "교과서 관리";
|
|
1792
1794
|
var my_question = "내 질문";
|
1793
1795
|
var update_class = "수업 업데이트";
|
1794
1796
|
var create_class = "수업 만들기";
|
1797
|
+
var problem_number = "문제 번호";
|
1798
|
+
var answer = "정답";
|
1799
|
+
var correct = "정답";
|
1800
|
+
var solve_time = "풀이 시간";
|
1801
|
+
var comparison_of_top_rankings = "상위권 비교";
|
1802
|
+
var total_correct_rate = "전체 정답률";
|
1803
|
+
var incorrect = "오답";
|
1804
|
+
var no_solution = "풀이 없음";
|
1805
|
+
var no_time = "시간 없음";
|
1806
|
+
var my_solving_time = "나의 풀이 시간";
|
1807
|
+
var top_solution_time = "최상위권 풀이시간";
|
1808
|
+
var average_solve_time = "평균 풀이 시간";
|
1809
|
+
var my_solution = "내 풀이";
|
1810
|
+
var most_solutions = "가장 많은 풀이";
|
1811
|
+
var problem_classification = "문제 분류";
|
1812
|
+
var my_wrong_answer = "나의 오답";
|
1813
|
+
var incorrect_problem_among_the_starred_problems = "별표 친 문제 중 틀린 문제";
|
1814
|
+
var correct_problem_among_the_starred_problems = "별표 친 문제 중 맞춘 문제";
|
1815
|
+
var tricky_problems = "까다로웠던 문제";
|
1816
|
+
var issues_vulnerable = "내가 취약한 문제";
|
1817
|
+
var grades_by_area = "영역별 성적";
|
1818
|
+
var problems_that_took_a_long_time = "시간이 오래 걸린 문제";
|
1819
|
+
var my_time = "나의 시간";
|
1820
|
+
var top_time = "상위권 시간";
|
1821
|
+
var fingerprint = "지문";
|
1822
|
+
var end = "종료";
|
1823
|
+
var ask_for_feedback = "피드백 요청하기";
|
1824
|
+
var quit = "종료하기";
|
1795
1825
|
var lang_ko = {
|
1796
1826
|
problem_solving: problem_solving,
|
1797
1827
|
my_story: my_story,
|
@@ -1842,6 +1872,7 @@ var lang_ko = {
|
|
1842
1872
|
student_name: student_name,
|
1843
1873
|
full_pool_time: full_pool_time,
|
1844
1874
|
number_question: number_question,
|
1875
|
+
number_answer: number_answer,
|
1845
1876
|
answer_rate: answer_rate,
|
1846
1877
|
seconds: seconds,
|
1847
1878
|
search_placeholder: search_placeholder,
|
@@ -1856,6 +1887,7 @@ var lang_ko = {
|
|
1856
1887
|
no_data: no_data,
|
1857
1888
|
internet_connection_was_lost: internet_connection_was_lost,
|
1858
1889
|
problem: problem,
|
1890
|
+
problems: problems,
|
1859
1891
|
problem_solving_time: problem_solving_time,
|
1860
1892
|
minutes: minutes,
|
1861
1893
|
correct_rate: correct_rate,
|
@@ -2104,7 +2136,35 @@ var lang_ko = {
|
|
2104
2136
|
textbook_management: textbook_management,
|
2105
2137
|
my_question: my_question,
|
2106
2138
|
update_class: update_class,
|
2107
|
-
create_class: create_class
|
2139
|
+
create_class: create_class,
|
2140
|
+
problem_number: problem_number,
|
2141
|
+
answer: answer,
|
2142
|
+
correct: correct,
|
2143
|
+
solve_time: solve_time,
|
2144
|
+
comparison_of_top_rankings: comparison_of_top_rankings,
|
2145
|
+
total_correct_rate: total_correct_rate,
|
2146
|
+
incorrect: incorrect,
|
2147
|
+
no_solution: no_solution,
|
2148
|
+
no_time: no_time,
|
2149
|
+
my_solving_time: my_solving_time,
|
2150
|
+
top_solution_time: top_solution_time,
|
2151
|
+
average_solve_time: average_solve_time,
|
2152
|
+
my_solution: my_solution,
|
2153
|
+
most_solutions: most_solutions,
|
2154
|
+
problem_classification: problem_classification,
|
2155
|
+
my_wrong_answer: my_wrong_answer,
|
2156
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems,
|
2157
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems,
|
2158
|
+
tricky_problems: tricky_problems,
|
2159
|
+
issues_vulnerable: issues_vulnerable,
|
2160
|
+
grades_by_area: grades_by_area,
|
2161
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time,
|
2162
|
+
my_time: my_time,
|
2163
|
+
top_time: top_time,
|
2164
|
+
fingerprint: fingerprint,
|
2165
|
+
end: end,
|
2166
|
+
ask_for_feedback: ask_for_feedback,
|
2167
|
+
quit: quit
|
2108
2168
|
};
|
2109
2169
|
|
2110
2170
|
var problem_solving$1 = "Problem Solving";
|
@@ -2155,6 +2215,7 @@ var confirmation$1 = "Confirmation";
|
|
2155
2215
|
var student_name$1 = "Student name";
|
2156
2216
|
var full_pool_time$1 = "Full pool time";
|
2157
2217
|
var number_question$1 = "No.{{number}}";
|
2218
|
+
var number_answer$1 = "No.{{number}}";
|
2158
2219
|
var answer_rate$1 = "Answer rate";
|
2159
2220
|
var seconds$1 = "s";
|
2160
2221
|
var search_placeholder$1 = "Search by exam name";
|
@@ -2168,7 +2229,8 @@ var correct_answer_for_each_student$1 = "Correct answer for each student";
|
|
2168
2229
|
var information_by_question$1 = "Information by question";
|
2169
2230
|
var no_data$1 = "No data";
|
2170
2231
|
var internet_connection_was_lost$1 = "Internet connection was lost";
|
2171
|
-
var problem$1 = "Problem
|
2232
|
+
var problem$1 = "Problem";
|
2233
|
+
var problems$1 = "Problems";
|
2172
2234
|
var problem_solving_time$1 = "Problem solving time";
|
2173
2235
|
var minutes$1 = "m";
|
2174
2236
|
var correct_rate$1 = "Correct rate";
|
@@ -2190,7 +2252,7 @@ var difficult = "Difficult";
|
|
2190
2252
|
var article = "Article";
|
2191
2253
|
var correct_answer = "Correct answer";
|
2192
2254
|
var mark = "Mark";
|
2193
|
-
var answer = "Answer";
|
2255
|
+
var answer$1 = "Answer";
|
2194
2256
|
var add_new_row = "Add new row";
|
2195
2257
|
var question_text_required = "Question text is required";
|
2196
2258
|
var create_question_success = "Question is created successfully";
|
@@ -2465,6 +2527,38 @@ var new_test$1 = "New Test";
|
|
2465
2527
|
var manage_saved_tests$1 = "Manage saved tests";
|
2466
2528
|
var textbook_management$1 = "Textbook Management";
|
2467
2529
|
var my_question$1 = "My Question";
|
2530
|
+
var problem_number$1 = "Problem number";
|
2531
|
+
var solve_time$1 = "Solve time";
|
2532
|
+
var comparison_of_top_rankings$1 = "Comparison of top rankings";
|
2533
|
+
var total_correct_rate$1 = "Total correct rate";
|
2534
|
+
var incorrect$1 = "Incorrect";
|
2535
|
+
var correct$1 = "Correct";
|
2536
|
+
var no_solution$1 = "No solution";
|
2537
|
+
var no_time$1 = "No time";
|
2538
|
+
var my_solving_time$1 = "My solving time";
|
2539
|
+
var top_solution_time$1 = "Top solving time";
|
2540
|
+
var average_solve_time$1 = "Average solve time";
|
2541
|
+
var my_solution$1 = "My solution";
|
2542
|
+
var most_solutions$1 = "Most solutions";
|
2543
|
+
var problem_classification$1 = "Problem classification";
|
2544
|
+
var my_wrong_answer$1 = "My wrong answer";
|
2545
|
+
var incorrect_problem_among_the_starred_problems$1 = "Incorrect problem among the starred problems";
|
2546
|
+
var correct_problem_among_the_starred_problems$1 = "Correct problem among the starred problems";
|
2547
|
+
var tricky_problems$1 = "Tricky problems";
|
2548
|
+
var issues_vulnerable$1 = "Issues I'm Vulnerable to";
|
2549
|
+
var grades_by_area$1 = "Grades by area";
|
2550
|
+
var problems_that_took_a_long_time$1 = "Problems that took a long time";
|
2551
|
+
var my_time$1 = "My time";
|
2552
|
+
var top_time$1 = "Top time";
|
2553
|
+
var easy_problem = "Easy problem";
|
2554
|
+
var trick_problem = "Trick problem";
|
2555
|
+
var differential_problem = "Differential problem";
|
2556
|
+
var difficult_problem = "Difficult problem";
|
2557
|
+
var general_problem = "General problem";
|
2558
|
+
var fingerprint$1 = "Fingerprint";
|
2559
|
+
var end$1 = "end";
|
2560
|
+
var ask_for_feedback$1 = "Ask for feedback";
|
2561
|
+
var quit$1 = "Quit";
|
2468
2562
|
var lang_en = {
|
2469
2563
|
problem_solving: problem_solving$1,
|
2470
2564
|
my_story: my_story$1,
|
@@ -2516,6 +2610,7 @@ var lang_en = {
|
|
2516
2610
|
student_name: student_name$1,
|
2517
2611
|
full_pool_time: full_pool_time$1,
|
2518
2612
|
number_question: number_question$1,
|
2613
|
+
number_answer: number_answer$1,
|
2519
2614
|
answer_rate: answer_rate$1,
|
2520
2615
|
seconds: seconds$1,
|
2521
2616
|
search_placeholder: search_placeholder$1,
|
@@ -2530,6 +2625,7 @@ var lang_en = {
|
|
2530
2625
|
no_data: no_data$1,
|
2531
2626
|
internet_connection_was_lost: internet_connection_was_lost$1,
|
2532
2627
|
problem: problem$1,
|
2628
|
+
problems: problems$1,
|
2533
2629
|
problem_solving_time: problem_solving_time$1,
|
2534
2630
|
minutes: minutes$1,
|
2535
2631
|
correct_rate: correct_rate$1,
|
@@ -2552,7 +2648,7 @@ var lang_en = {
|
|
2552
2648
|
article: article,
|
2553
2649
|
correct_answer: correct_answer,
|
2554
2650
|
mark: mark,
|
2555
|
-
answer: answer,
|
2651
|
+
answer: answer$1,
|
2556
2652
|
add_new_row: add_new_row,
|
2557
2653
|
question_text_required: question_text_required,
|
2558
2654
|
create_question_success: create_question_success,
|
@@ -2674,7 +2770,7 @@ var lang_en = {
|
|
2674
2770
|
credentials_invalid: credentials_invalid$1,
|
2675
2771
|
role_is_invalid: role_is_invalid$1,
|
2676
2772
|
today: today$1,
|
2677
|
-
"q&a": "
|
2773
|
+
"q&a": "Q&A",
|
2678
2774
|
user_is_disabled: user_is_disabled$1,
|
2679
2775
|
cover_image: cover_image$1,
|
2680
2776
|
notification: notification$1,
|
@@ -2812,7 +2908,39 @@ var lang_en = {
|
|
2812
2908
|
new_test: new_test$1,
|
2813
2909
|
manage_saved_tests: manage_saved_tests$1,
|
2814
2910
|
textbook_management: textbook_management$1,
|
2815
|
-
my_question: my_question$1
|
2911
|
+
my_question: my_question$1,
|
2912
|
+
problem_number: problem_number$1,
|
2913
|
+
solve_time: solve_time$1,
|
2914
|
+
comparison_of_top_rankings: comparison_of_top_rankings$1,
|
2915
|
+
total_correct_rate: total_correct_rate$1,
|
2916
|
+
incorrect: incorrect$1,
|
2917
|
+
correct: correct$1,
|
2918
|
+
no_solution: no_solution$1,
|
2919
|
+
no_time: no_time$1,
|
2920
|
+
my_solving_time: my_solving_time$1,
|
2921
|
+
top_solution_time: top_solution_time$1,
|
2922
|
+
average_solve_time: average_solve_time$1,
|
2923
|
+
my_solution: my_solution$1,
|
2924
|
+
most_solutions: most_solutions$1,
|
2925
|
+
problem_classification: problem_classification$1,
|
2926
|
+
my_wrong_answer: my_wrong_answer$1,
|
2927
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems$1,
|
2928
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems$1,
|
2929
|
+
tricky_problems: tricky_problems$1,
|
2930
|
+
issues_vulnerable: issues_vulnerable$1,
|
2931
|
+
grades_by_area: grades_by_area$1,
|
2932
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time$1,
|
2933
|
+
my_time: my_time$1,
|
2934
|
+
top_time: top_time$1,
|
2935
|
+
easy_problem: easy_problem,
|
2936
|
+
trick_problem: trick_problem,
|
2937
|
+
differential_problem: differential_problem,
|
2938
|
+
difficult_problem: difficult_problem,
|
2939
|
+
general_problem: general_problem,
|
2940
|
+
fingerprint: fingerprint$1,
|
2941
|
+
end: end$1,
|
2942
|
+
ask_for_feedback: ask_for_feedback$1,
|
2943
|
+
quit: quit$1
|
2816
2944
|
};
|
2817
2945
|
|
2818
2946
|
i18n.use(initReactI18next).init({
|
@@ -3225,27 +3353,20 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3225
3353
|
return true;
|
3226
3354
|
};
|
3227
3355
|
|
3228
|
-
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3229
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
3230
|
-
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3231
|
-
color: styles.darker
|
3232
|
-
}));
|
3233
|
-
};
|
3234
|
-
var CustomOption = function CustomOption(props) {
|
3235
|
-
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
3236
|
-
style: {
|
3237
|
-
fontSize: "14px",
|
3238
|
-
fontWeight: 500
|
3239
|
-
}
|
3240
|
-
}, props.data.label));
|
3241
|
-
};
|
3242
3356
|
var customStyles = {
|
3243
|
-
control: function control(baseStyles) {
|
3357
|
+
control: function control(baseStyles, state) {
|
3244
3358
|
return _extends({}, baseStyles, {
|
3245
3359
|
fontSize: "14px",
|
3246
3360
|
fontWeight: 700,
|
3247
3361
|
color: styles.darker,
|
3248
|
-
borderColor: styles.less_dark
|
3362
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark,
|
3363
|
+
boxShadow: state.isFocused ? "0 0 0 1px " + styles.dark + "4D" : baseStyles.boxShadow,
|
3364
|
+
"&:active": {
|
3365
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3366
|
+
},
|
3367
|
+
"&:hover": {
|
3368
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3369
|
+
}
|
3249
3370
|
});
|
3250
3371
|
},
|
3251
3372
|
input: function input(baseStyles, _) {
|
@@ -3261,8 +3382,32 @@ var customStyles = {
|
|
3261
3382
|
fontWeight: 700,
|
3262
3383
|
color: styles.darker
|
3263
3384
|
});
|
3385
|
+
},
|
3386
|
+
option: function option(baseStyles, state) {
|
3387
|
+
return _extends({}, baseStyles, {
|
3388
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.light : 'white',
|
3389
|
+
"&:active": {
|
3390
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.less_dark : baseStyles.backgroundColor
|
3391
|
+
}
|
3392
|
+
});
|
3264
3393
|
}
|
3265
3394
|
};
|
3395
|
+
|
3396
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
3397
|
+
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3398
|
+
color: styles.darker
|
3399
|
+
}));
|
3400
|
+
};
|
3401
|
+
var CustomOption = function CustomOption(props) {
|
3402
|
+
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
3403
|
+
style: {
|
3404
|
+
fontSize: "14px",
|
3405
|
+
fontWeight: 500
|
3406
|
+
}
|
3407
|
+
}, props.data.label));
|
3408
|
+
};
|
3409
|
+
|
3410
|
+
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3266
3411
|
var CustomSelect = function CustomSelect(_ref) {
|
3267
3412
|
var isDefault = _ref.isDefault,
|
3268
3413
|
options = _ref.options,
|
@@ -7153,43 +7298,6 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7153
7298
|
};
|
7154
7299
|
|
7155
7300
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7156
|
-
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7157
|
-
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
7158
|
-
color: styles.darker
|
7159
|
-
}));
|
7160
|
-
};
|
7161
|
-
var CustomOption$1 = function CustomOption(props) {
|
7162
|
-
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
7163
|
-
style: {
|
7164
|
-
fontSize: "14px",
|
7165
|
-
fontWeight: 500
|
7166
|
-
}
|
7167
|
-
}, props.data.label));
|
7168
|
-
};
|
7169
|
-
var customStyles$1 = {
|
7170
|
-
control: function control(baseStyles, state) {
|
7171
|
-
return _extends({}, baseStyles, {
|
7172
|
-
fontSize: "14px",
|
7173
|
-
fontWeight: 700,
|
7174
|
-
color: styles.darker,
|
7175
|
-
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7176
|
-
});
|
7177
|
-
},
|
7178
|
-
input: function input(baseStyles, _) {
|
7179
|
-
return _extends({}, baseStyles, {
|
7180
|
-
fontSize: "14px",
|
7181
|
-
fontWeight: 700,
|
7182
|
-
color: styles.darker
|
7183
|
-
});
|
7184
|
-
},
|
7185
|
-
singleValue: function singleValue(baseStyles) {
|
7186
|
-
return _extends({}, baseStyles, {
|
7187
|
-
fontSize: "14px",
|
7188
|
-
fontWeight: 700,
|
7189
|
-
color: styles.darker
|
7190
|
-
});
|
7191
|
-
}
|
7192
|
-
};
|
7193
7301
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
7194
7302
|
var defaultValue = _ref.defaultValue,
|
7195
7303
|
options = _ref.options,
|
@@ -7214,10 +7322,10 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7214
7322
|
IndicatorSeparator: function IndicatorSeparator() {
|
7215
7323
|
return null;
|
7216
7324
|
},
|
7217
|
-
DropdownIndicator: DropdownIndicator
|
7218
|
-
Option: CustomOption
|
7325
|
+
DropdownIndicator: DropdownIndicator,
|
7326
|
+
Option: CustomOption
|
7219
7327
|
},
|
7220
|
-
styles: customStyles
|
7328
|
+
styles: customStyles,
|
7221
7329
|
placeholder: t("select_placeholder")
|
7222
7330
|
}, rest));
|
7223
7331
|
};
|
@@ -8402,7 +8510,15 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
8402
8510
|
options: options,
|
8403
8511
|
value: initialValues,
|
8404
8512
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8405
|
-
isMulti: isMulti
|
8513
|
+
isMulti: isMulti,
|
8514
|
+
components: {
|
8515
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8516
|
+
return null;
|
8517
|
+
},
|
8518
|
+
DropdownIndicator: DropdownIndicator,
|
8519
|
+
Option: CustomOption
|
8520
|
+
},
|
8521
|
+
styles: customStyles
|
8406
8522
|
}, rest));
|
8407
8523
|
};
|
8408
8524
|
|
@@ -8428,7 +8544,15 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
8428
8544
|
value: !isDefault ? initialValues : undefined,
|
8429
8545
|
defaultValue: isDefault ? initialValues : undefined,
|
8430
8546
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8431
|
-
isMulti: isMulti
|
8547
|
+
isMulti: isMulti,
|
8548
|
+
components: {
|
8549
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8550
|
+
return null;
|
8551
|
+
},
|
8552
|
+
DropdownIndicator: DropdownIndicator,
|
8553
|
+
Option: CustomOption
|
8554
|
+
},
|
8555
|
+
styles: customStyles
|
8432
8556
|
}, rest));
|
8433
8557
|
};
|
8434
8558
|
|
@@ -9258,8 +9382,8 @@ var defaultSeries = function defaultSeries(t) {
|
|
9258
9382
|
}];
|
9259
9383
|
};
|
9260
9384
|
|
9261
|
-
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
|
9262
|
-
var
|
9385
|
+
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab, selectedTab) {
|
9386
|
+
var _allSeries$dataChartI;
|
9263
9387
|
if (examSessionId === void 0) {
|
9264
9388
|
examSessionId = 0;
|
9265
9389
|
}
|
@@ -9315,6 +9439,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9315
9439
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9316
9440
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9317
9441
|
handleChangeTab(0);
|
9442
|
+
setDataChartIndex(0);
|
9318
9443
|
setResultData((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9319
9444
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9320
9445
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
@@ -9351,6 +9476,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9351
9476
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9352
9477
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9353
9478
|
handleChangeTab(0);
|
9479
|
+
setDataChartIndex(0);
|
9354
9480
|
setResultData((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9355
9481
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9356
9482
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
@@ -9426,15 +9552,16 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9426
9552
|
}, [JSON.stringify(resultData === null || resultData === void 0 ? void 0 : resultData.questions), language]);
|
9427
9553
|
var allChartOptions = useMemo(function () {
|
9428
9554
|
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9555
|
+
var _questions$length;
|
9556
|
+
var questions = timelyOrderQuestion.questions || null;
|
9557
|
+
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9429
9558
|
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9430
9559
|
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9431
9560
|
y: {
|
9432
9561
|
formatter: function formatter(val, _ref) {
|
9433
9562
|
var dataPointIndex = _ref.dataPointIndex;
|
9434
9563
|
if (dataPointIndex > 0) {
|
9435
|
-
var _questions
|
9436
|
-
var questions = timelyOrderQuestion.questions || null;
|
9437
|
-
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9564
|
+
var _questions;
|
9438
9565
|
return val != null ? t("problem_number_question", {
|
9439
9566
|
number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
|
9440
9567
|
}) : t("no_data");
|
@@ -9445,19 +9572,17 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9445
9572
|
}),
|
9446
9573
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9447
9574
|
categories: ["."].concat(Array.from({
|
9448
|
-
length:
|
9575
|
+
length: questionLength
|
9449
9576
|
}, function (_, i) {
|
9450
9577
|
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9451
9578
|
}), ["."])
|
9452
9579
|
}),
|
9453
9580
|
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9454
|
-
tickAmount:
|
9455
|
-
max:
|
9581
|
+
tickAmount: questions.length + 1,
|
9582
|
+
max: questions.length + 1,
|
9456
9583
|
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9457
9584
|
formatter: function formatter(val) {
|
9458
|
-
var
|
9459
|
-
var questions = timelyOrderQuestion.questions || null;
|
9460
|
-
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9585
|
+
var _questions2;
|
9461
9586
|
return val != null ? t("problem_number_question", {
|
9462
9587
|
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9463
9588
|
}) : t("no_data");
|
@@ -9505,7 +9630,46 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9505
9630
|
}];
|
9506
9631
|
});
|
9507
9632
|
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9508
|
-
var chartOptions = (
|
9633
|
+
var chartOptions = useMemo(function () {
|
9634
|
+
var _timelyOrderQuestions, _questions$length2;
|
9635
|
+
var questions = ((_timelyOrderQuestions = timelyOrderQuestions[dataChartIndex]) === null || _timelyOrderQuestions === void 0 ? void 0 : _timelyOrderQuestions.questions) || null;
|
9636
|
+
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9637
|
+
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9638
|
+
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9639
|
+
y: {
|
9640
|
+
formatter: function formatter(val, _ref2) {
|
9641
|
+
var dataPointIndex = _ref2.dataPointIndex;
|
9642
|
+
if (dataPointIndex > 0) {
|
9643
|
+
var _questions3;
|
9644
|
+
return val != null ? t("problem_number_question", {
|
9645
|
+
number: questions !== null ? (((_questions3 = questions[questionLength - val]) === null || _questions3 === void 0 ? void 0 : _questions3.questionOrder) || 0) + 1 : val
|
9646
|
+
}) : t("no_data");
|
9647
|
+
}
|
9648
|
+
return null;
|
9649
|
+
}
|
9650
|
+
}
|
9651
|
+
}),
|
9652
|
+
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9653
|
+
categories: ["."].concat(Array.from({
|
9654
|
+
length: questionLength
|
9655
|
+
}, function (_, i) {
|
9656
|
+
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9657
|
+
}), ["."])
|
9658
|
+
}),
|
9659
|
+
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9660
|
+
tickAmount: questionLength + 1,
|
9661
|
+
max: questionLength + 1,
|
9662
|
+
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9663
|
+
formatter: function formatter(val) {
|
9664
|
+
var _questions4;
|
9665
|
+
return val != null ? t("problem_number_question", {
|
9666
|
+
number: questions !== null ? (((_questions4 = questions[questionLength - val]) === null || _questions4 === void 0 ? void 0 : _questions4.questionOrder) || 0) + 1 : val
|
9667
|
+
}) : t("no_data");
|
9668
|
+
}
|
9669
|
+
})
|
9670
|
+
})
|
9671
|
+
});
|
9672
|
+
}, [JSON.stringify(allChartOptions), dataChartIndex, language]);
|
9509
9673
|
var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
|
9510
9674
|
var handleExportPdf = function handleExportPdf() {
|
9511
9675
|
try {
|
@@ -9684,6 +9848,9 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9684
9848
|
return Promise.reject(e);
|
9685
9849
|
}
|
9686
9850
|
};
|
9851
|
+
useEffect(function () {
|
9852
|
+
setDataChartIndex(0);
|
9853
|
+
}, [selectedTab]);
|
9687
9854
|
var examTime = useMemo(function () {
|
9688
9855
|
return utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, "HH:mm") + " ~ " + utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.finishTime, "HH:mm");
|
9689
9856
|
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
@@ -10823,7 +10990,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
10823
10990
|
|
10824
10991
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
10825
10992
|
|
10826
|
-
var styles$4 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10993
|
+
var styles$4 = {"lighter":"#F0FFF6","light":"#C8F8DB","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_100":"#F9FAFB","gray_300":"#DFE3E8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10827
10994
|
|
10828
10995
|
var iconStarQuestion = function iconStarQuestion(_ref) {
|
10829
10996
|
var _ref$width = _ref.width,
|
@@ -11233,7 +11400,9 @@ function MyAnswer(_ref) {
|
|
11233
11400
|
}
|
11234
11401
|
}, question.isStar ? React.createElement(iconStarQuestion, null) : React.createElement(iconNoStarQuestion, null), React.createElement("span", {
|
11235
11402
|
className: styles$4["questionOrder"]
|
11236
|
-
},
|
11403
|
+
}, t("number_question", {
|
11404
|
+
number: question.questionOrder + 1
|
11405
|
+
}))), React.createElement("div", {
|
11237
11406
|
className: styles["custom-col-2"],
|
11238
11407
|
style: {
|
11239
11408
|
display: "flex",
|
@@ -11242,11 +11411,11 @@ function MyAnswer(_ref) {
|
|
11242
11411
|
}
|
11243
11412
|
}, question.isCorrect && question.selectedAnswers !== "" && React.createElement(Fragment$1, null, React.createElement(iconCorrectAnswer, null), React.createElement("span", {
|
11244
11413
|
className: styles$4["answerCorrect"]
|
11245
|
-
}, "
|
11414
|
+
}, t("correct"))), !question.isCorrect && question.selectedAnswers !== "" && React.createElement(Fragment$1, null, React.createElement(iconCorrectAnswer$1, null), React.createElement("span", {
|
11246
11415
|
className: styles$4["answerIncorrect"]
|
11247
|
-
}, "
|
11416
|
+
}, t("incorrect"))), question.selectedAnswers === "" && React.createElement(Fragment$1, null, React.createElement(iconNoGrass, null), React.createElement("span", {
|
11248
11417
|
className: styles$4["answerNograss"]
|
11249
|
-
}, "
|
11418
|
+
}, t("no_solution")))), React.createElement("div", {
|
11250
11419
|
className: styles["custom-col-2"],
|
11251
11420
|
style: {
|
11252
11421
|
display: "flex",
|
@@ -11262,7 +11431,7 @@ function MyAnswer(_ref) {
|
|
11262
11431
|
margin: 0
|
11263
11432
|
},
|
11264
11433
|
className: styles$4["answerNoTime"]
|
11265
|
-
}, "
|
11434
|
+
}, t("no_time"))), React.createElement("div", {
|
11266
11435
|
className: styles["custom-col-2"],
|
11267
11436
|
style: {
|
11268
11437
|
display: "flex",
|
@@ -11295,7 +11464,7 @@ function MyAnswer(_ref) {
|
|
11295
11464
|
margin: 0
|
11296
11465
|
},
|
11297
11466
|
className: styles$4["answerNoTime"]
|
11298
|
-
}, "
|
11467
|
+
}, t("no_time"))), isStudent && React.createElement("div", {
|
11299
11468
|
className: styles["custom-col-2"],
|
11300
11469
|
style: {
|
11301
11470
|
display: "flex",
|
@@ -11345,7 +11514,7 @@ function MyAnswer(_ref) {
|
|
11345
11514
|
fontWeight: 600,
|
11346
11515
|
color: "#97A1AF"
|
11347
11516
|
}
|
11348
|
-
}, "
|
11517
|
+
}, t("problem_number"))), React.createElement("div", {
|
11349
11518
|
className: styles["custom-col-2"],
|
11350
11519
|
style: {
|
11351
11520
|
display: "flex",
|
@@ -11357,7 +11526,7 @@ function MyAnswer(_ref) {
|
|
11357
11526
|
fontWeight: 600,
|
11358
11527
|
color: "#97A1AF"
|
11359
11528
|
}
|
11360
|
-
}, "
|
11529
|
+
}, t("answer"))), React.createElement("div", {
|
11361
11530
|
className: styles["custom-col-2"],
|
11362
11531
|
style: {
|
11363
11532
|
display: "flex",
|
@@ -11369,7 +11538,7 @@ function MyAnswer(_ref) {
|
|
11369
11538
|
fontWeight: 600,
|
11370
11539
|
color: "#97A1AF"
|
11371
11540
|
}
|
11372
|
-
}, "
|
11541
|
+
}, t("solve_time"))), React.createElement("div", {
|
11373
11542
|
className: styles["custom-col-2"],
|
11374
11543
|
style: {
|
11375
11544
|
display: "flex",
|
@@ -11382,7 +11551,7 @@ function MyAnswer(_ref) {
|
|
11382
11551
|
fontWeight: 600,
|
11383
11552
|
color: "#97A1AF"
|
11384
11553
|
}
|
11385
|
-
}, "
|
11554
|
+
}, t("comparison_of_top_rankings"))), React.createElement("div", {
|
11386
11555
|
className: styles["custom-col-2"],
|
11387
11556
|
style: {
|
11388
11557
|
display: "flex",
|
@@ -11395,14 +11564,14 @@ function MyAnswer(_ref) {
|
|
11395
11564
|
fontWeight: 600,
|
11396
11565
|
color: "#97A1AF"
|
11397
11566
|
}
|
11398
|
-
}, "
|
11567
|
+
}, t("total_correct_rate")))), React.createElement("div", {
|
11399
11568
|
className: styles$4["titleMyAnswer2"]
|
11400
11569
|
}, React.createElement(Typography, {
|
11401
11570
|
sx: {
|
11402
11571
|
color: "#97A1AF",
|
11403
11572
|
fontSize: "12px"
|
11404
11573
|
}
|
11405
|
-
}, "
|
11574
|
+
}, t("_category")), React.createElement(Typography, {
|
11406
11575
|
sx: {
|
11407
11576
|
color: "#414E62",
|
11408
11577
|
fontSize: "12px",
|
@@ -11466,6 +11635,8 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
11466
11635
|
var CompareGrass = function CompareGrass(_ref) {
|
11467
11636
|
var effectSize = _ref.effectSize,
|
11468
11637
|
isPrint = _ref.isPrint;
|
11638
|
+
var _useTranslation = useTranslation(),
|
11639
|
+
t = _useTranslation.t;
|
11469
11640
|
var renderTableBody = function renderTableBody(effectSize) {
|
11470
11641
|
return effectSize.map(function (item, index) {
|
11471
11642
|
return React.createElement("tr", {
|
@@ -11476,22 +11647,28 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11476
11647
|
} : {}
|
11477
11648
|
}, React.createElement("td", {
|
11478
11649
|
className: styles$4["tdcolumn1"]
|
11479
|
-
}, "
|
11650
|
+
}, t("problem"), " ", item.questionOrder + 1), React.createElement("td", {
|
11480
11651
|
style: {
|
11481
11652
|
textAlign: "center",
|
11482
11653
|
color: "#202B37"
|
11483
11654
|
}
|
11484
|
-
},
|
11655
|
+
}, t("number_question", {
|
11656
|
+
number: item.correctAnswers
|
11657
|
+
})), React.createElement("td", {
|
11485
11658
|
className: styles$4["tdcolumn3"],
|
11486
11659
|
style: {
|
11487
11660
|
color: item.isCorrect ? "#1EE288" : "#F34B4B"
|
11488
11661
|
}
|
11489
|
-
}, item.selectedAnswers ?
|
11662
|
+
}, item.selectedAnswers ? t("number_question", {
|
11663
|
+
number: item.selectedAnswers
|
11664
|
+
}) : ""), React.createElement("td", {
|
11490
11665
|
style: {
|
11491
11666
|
textAlign: "center",
|
11492
11667
|
color: "#414E62"
|
11493
11668
|
}
|
11494
|
-
}, item.mostSelectedAnswers ?
|
11669
|
+
}, item.mostSelectedAnswers ? t("number_question", {
|
11670
|
+
number: item.mostSelectedAnswers
|
11671
|
+
}) : ""), React.createElement("td", null, React.createElement("div", {
|
11495
11672
|
className: styles$4["classification"]
|
11496
11673
|
}, item.problemCategories.map(function (problem, index) {
|
11497
11674
|
return React.createElement("div", {
|
@@ -11500,23 +11677,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11500
11677
|
style: {
|
11501
11678
|
border: "1px solid #1EE288"
|
11502
11679
|
}
|
11503
|
-
}, "
|
11680
|
+
}, t("easy_problem")), problem === 3 && React.createElement("span", {
|
11504
11681
|
style: {
|
11505
11682
|
border: "1px solid #FDDB64"
|
11506
11683
|
}
|
11507
|
-
}, "
|
11684
|
+
}, t("trick_problem")), problem === 2 && React.createElement("span", {
|
11508
11685
|
style: {
|
11509
11686
|
border: "1px solid #F34B4B"
|
11510
11687
|
}
|
11511
|
-
}, "
|
11688
|
+
}, t("differential_problem")), problem === 0 && React.createElement("span", {
|
11512
11689
|
style: {
|
11513
11690
|
border: "1px solid #DDDDDD"
|
11514
11691
|
}
|
11515
|
-
}, "
|
11692
|
+
}, t("general_problem")), problem === 4 && React.createElement("span", {
|
11516
11693
|
style: {
|
11517
11694
|
border: "1px solid #FF0000"
|
11518
11695
|
}
|
11519
|
-
}, "
|
11696
|
+
}, t("Difficult_problem")));
|
11520
11697
|
}))));
|
11521
11698
|
});
|
11522
11699
|
};
|
@@ -11546,23 +11723,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11546
11723
|
className: isPrint ? PrintHeaderClassName : ""
|
11547
11724
|
}, React.createElement("tr", null, React.createElement("th", {
|
11548
11725
|
className: styles$4["thcolumn1"]
|
11549
|
-
}, "
|
11726
|
+
}, t("problem_number")), React.createElement("th", {
|
11550
11727
|
style: {
|
11551
11728
|
textAlign: "center"
|
11552
11729
|
}
|
11553
|
-
}, "
|
11730
|
+
}, t("answer")), React.createElement("th", {
|
11554
11731
|
style: {
|
11555
11732
|
textAlign: "center"
|
11556
11733
|
}
|
11557
|
-
}, "
|
11734
|
+
}, t("my_solution")), React.createElement("th", {
|
11558
11735
|
style: {
|
11559
11736
|
textAlign: "center"
|
11560
11737
|
}
|
11561
|
-
}, "
|
11738
|
+
}, t("most_solutions")), React.createElement("th", {
|
11562
11739
|
style: {
|
11563
11740
|
textAlign: "center"
|
11564
11741
|
}
|
11565
|
-
}, "
|
11742
|
+
}, t("problem_classification")))), isPrint ? renderPrintTableBody(effectSize) : React.createElement("tbody", null, renderTableBody(effectSize))))));
|
11566
11743
|
};
|
11567
11744
|
|
11568
11745
|
var iconUpArrow = function iconUpArrow(_ref) {
|
@@ -11658,6 +11835,8 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11658
11835
|
openProblem = _ref.openProblem,
|
11659
11836
|
changeOpen = _ref.changeOpen,
|
11660
11837
|
isPrint = _ref.isPrint;
|
11838
|
+
var _useTranslation = useTranslation(),
|
11839
|
+
t = _useTranslation.t;
|
11661
11840
|
var isOpen = openProblem === keyOpen;
|
11662
11841
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11663
11842
|
return i.isStar && !i.isCorrect;
|
@@ -11668,56 +11847,64 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11668
11847
|
var renderProblems = function renderProblems() {
|
11669
11848
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11670
11849
|
className: styles$4["titleTrickyProblem"]
|
11671
|
-
}, React.createElement(iconX, null), React.createElement("span", null, "
|
11850
|
+
}, React.createElement(iconX, null), React.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React.createElement("div", {
|
11672
11851
|
className: styles$4["wrongQuestions"]
|
11673
11852
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11674
11853
|
return React.createElement("span", {
|
11675
11854
|
key: question.id,
|
11676
11855
|
className: styles$4["question"]
|
11677
|
-
},
|
11856
|
+
}, t("number_question", {
|
11857
|
+
number: question.questionOrder + 1
|
11858
|
+
}));
|
11678
11859
|
}), !data.questions.length && React.createElement("div", {
|
11679
11860
|
className: styles$4["noData"]
|
11680
|
-
}, "
|
11861
|
+
}, t("no_data"))), React.createElement("div", {
|
11681
11862
|
className: styles$4["titleTrickyProblem"]
|
11682
|
-
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "
|
11863
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React.createElement("div", {
|
11683
11864
|
className: styles$4["assignedQuestions"]
|
11684
11865
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11685
11866
|
return React.createElement("div", {
|
11686
11867
|
key: question.id,
|
11687
11868
|
className: styles$4["question"]
|
11688
|
-
},
|
11869
|
+
}, t("number_question", {
|
11870
|
+
number: question.questionOrder + 1
|
11871
|
+
}));
|
11689
11872
|
}), !data.questions.length && React.createElement("div", {
|
11690
11873
|
className: styles$4["noData"]
|
11691
|
-
}, "
|
11874
|
+
}, t("no_data"))));
|
11692
11875
|
};
|
11693
11876
|
var renderPrintProblems = function renderPrintProblems() {
|
11694
11877
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11695
11878
|
className: PrintContentClassName
|
11696
11879
|
}, React.createElement("div", {
|
11697
11880
|
className: styles$4["titleTrickyProblem"]
|
11698
|
-
}, React.createElement(iconX, null), React.createElement("span", null, "
|
11881
|
+
}, React.createElement(iconX, null), React.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React.createElement("div", {
|
11699
11882
|
className: styles$4["wrongQuestions"]
|
11700
11883
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11701
11884
|
return React.createElement("span", {
|
11702
11885
|
key: question.id,
|
11703
11886
|
className: styles$4["question"]
|
11704
|
-
},
|
11887
|
+
}, t("number_question", {
|
11888
|
+
number: question.questionOrder + 1
|
11889
|
+
}));
|
11705
11890
|
}), !data.questions.length && React.createElement("div", {
|
11706
11891
|
className: styles$4["noData"]
|
11707
|
-
}, "
|
11892
|
+
}, t("no_data")))), React.createElement("div", {
|
11708
11893
|
className: PrintContentClassName
|
11709
11894
|
}, React.createElement("div", {
|
11710
11895
|
className: styles$4["titleTrickyProblem"]
|
11711
|
-
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "
|
11896
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React.createElement("div", {
|
11712
11897
|
className: styles$4["assignedQuestions"]
|
11713
11898
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11714
11899
|
return React.createElement("div", {
|
11715
11900
|
key: question.id,
|
11716
11901
|
className: styles$4["question"]
|
11717
|
-
},
|
11902
|
+
}, t("number_question", {
|
11903
|
+
number: question.questionOrder + 1
|
11904
|
+
}));
|
11718
11905
|
}), !data.questions.length && React.createElement("div", {
|
11719
11906
|
className: styles$4["noData"]
|
11720
|
-
}, "
|
11907
|
+
}, t("no_data")))));
|
11721
11908
|
};
|
11722
11909
|
return React.createElement("div", {
|
11723
11910
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
@@ -11732,7 +11919,7 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11732
11919
|
fontSize: "14px",
|
11733
11920
|
fontWeight: 700
|
11734
11921
|
}
|
11735
|
-
}, "
|
11922
|
+
}, t("tricky_problems")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, isPrint ? renderPrintProblems() : renderProblems()));
|
11736
11923
|
};
|
11737
11924
|
|
11738
11925
|
var ProtractedProblem = function ProtractedProblem(_ref) {
|
@@ -11753,15 +11940,17 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11753
11940
|
className: styles$4["contentColumn1"]
|
11754
11941
|
}, React.createElement("div", null, React.createElement("span", {
|
11755
11942
|
className: styles$4["span1"]
|
11756
|
-
}, "
|
11943
|
+
}, t("problem")), React.createElement("span", {
|
11757
11944
|
className: styles$4["span2"]
|
11758
|
-
},
|
11945
|
+
}, t("number_question", {
|
11946
|
+
number: item.questionOrder + 1
|
11947
|
+
})))), React.createElement("div", {
|
11759
11948
|
className: styles$4["contentColumn2"]
|
11760
11949
|
}, React.createElement("div", null, React.createElement("span", {
|
11761
11950
|
className: styles$4["span1"]
|
11762
|
-
}, "
|
11951
|
+
}, t("my_time")), React.createElement("span", {
|
11763
11952
|
className: styles$4["span2"]
|
11764
|
-
}, "
|
11953
|
+
}, t("top_time"))), React.createElement("div", null, React.createElement("span", {
|
11765
11954
|
className: styles$4["duration"]
|
11766
11955
|
}, formatTimeSecond(item.duration, t)), React.createElement("span", {
|
11767
11956
|
className: styles$4["topDuration"]
|
@@ -11790,11 +11979,11 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11790
11979
|
fontSize: "14px",
|
11791
11980
|
fontWeight: 700
|
11792
11981
|
}
|
11793
|
-
}, "
|
11982
|
+
}, t("problems_that_took_a_long_time")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11794
11983
|
className: styles$4["wrapperContent"]
|
11795
11984
|
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React.createElement("div", {
|
11796
11985
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11797
|
-
}, "
|
11986
|
+
}, t("no_data")))));
|
11798
11987
|
};
|
11799
11988
|
|
11800
11989
|
var Vulnerable = function Vulnerable(_ref) {
|
@@ -11803,6 +11992,8 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11803
11992
|
openProblem = _ref.openProblem,
|
11804
11993
|
changeOpen = _ref.changeOpen,
|
11805
11994
|
isPrint = _ref.isPrint;
|
11995
|
+
var _useTranslation = useTranslation(),
|
11996
|
+
t = _useTranslation.t;
|
11806
11997
|
var isOpen = openProblem === keyOpen;
|
11807
11998
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11808
11999
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
@@ -11818,19 +12009,25 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11818
12009
|
className: styles$4["contentColumn1"]
|
11819
12010
|
}, React.createElement("div", null, React.createElement("span", {
|
11820
12011
|
className: styles$4["span1"]
|
11821
|
-
}, "
|
12012
|
+
}, t("problem_number")), React.createElement("span", {
|
11822
12013
|
className: styles$4["span2"]
|
11823
|
-
},
|
12014
|
+
}, t("number_question", {
|
12015
|
+
number: question.questionOrder + 1
|
12016
|
+
})))), React.createElement("div", {
|
11824
12017
|
className: styles$4["contentColumn2"]
|
11825
12018
|
}, React.createElement("div", null, React.createElement("span", {
|
11826
12019
|
className: styles$4["span1"]
|
11827
|
-
}, "
|
12020
|
+
}, t("total_correct_rate")), React.createElement("span", {
|
11828
12021
|
className: styles$4["span2"]
|
11829
|
-
}, "
|
12022
|
+
}, t("my_wrong_answer"))), React.createElement("div", null, React.createElement("span", {
|
11830
12023
|
className: styles$4["overallCorrectRate"]
|
11831
12024
|
}, question.overallCorrectRate.toFixed(2), "%"), React.createElement("span", {
|
11832
12025
|
className: styles$4["answer"]
|
11833
|
-
},
|
12026
|
+
}, t("number_question", {
|
12027
|
+
number: question.selectedAnswers
|
12028
|
+
}), " (", t("answer"), " ", t("number_question", {
|
12029
|
+
number: question.correctAnswers
|
12030
|
+
}), ")"))));
|
11834
12031
|
});
|
11835
12032
|
};
|
11836
12033
|
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
@@ -11845,21 +12042,21 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11845
12042
|
return React.createElement("div", {
|
11846
12043
|
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11847
12044
|
}, React.createElement("div", {
|
11848
|
-
className: (!
|
12045
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11849
12046
|
onClick: function onClick() {
|
11850
12047
|
return changeOpen(isOpen ? "" : keyOpen);
|
11851
12048
|
}
|
11852
12049
|
}, React.createElement(Typography, {
|
11853
12050
|
sx: {
|
11854
|
-
color: !
|
12051
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11855
12052
|
fontSize: "14px",
|
11856
12053
|
fontWeight: 700
|
11857
12054
|
}
|
11858
|
-
}, "
|
12055
|
+
}, t("issues_vulnerable")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11859
12056
|
className: styles$4["wrapperContent"]
|
11860
12057
|
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React.createElement("div", {
|
11861
12058
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11862
|
-
}, "
|
12059
|
+
}, t("no_data")))));
|
11863
12060
|
};
|
11864
12061
|
|
11865
12062
|
var GradesByTerritory = function GradesByTerritory(_ref) {
|
@@ -11868,6 +12065,8 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11868
12065
|
openProblem = _ref.openProblem,
|
11869
12066
|
changeOpen = _ref.changeOpen,
|
11870
12067
|
isPrint = _ref.isPrint;
|
12068
|
+
var _useTranslation = useTranslation(),
|
12069
|
+
t = _useTranslation.t;
|
11871
12070
|
var isOpen = openProblem === keyOpen;
|
11872
12071
|
var renderCategories = function renderCategories(data) {
|
11873
12072
|
return data.map(function (item) {
|
@@ -11883,7 +12082,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11883
12082
|
className: styles$4["name"]
|
11884
12083
|
}, item.name), React.createElement("div", {
|
11885
12084
|
className: styles$4["percent"]
|
11886
|
-
}, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "
|
12085
|
+
}, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, t("problems")))), React.createElement("div", {
|
11887
12086
|
className: styles$4["slider"]
|
11888
12087
|
}, React.createElement("div", null, React.createElement("span", {
|
11889
12088
|
className: styles$4["track"],
|
@@ -11913,11 +12112,11 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11913
12112
|
fontSize: "14px",
|
11914
12113
|
fontWeight: 700
|
11915
12114
|
}
|
11916
|
-
}, "
|
12115
|
+
}, t("grades_by_area")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement("div", {
|
11917
12116
|
className: styles$4["wrappContentProblem"]
|
11918
12117
|
}, isPrint ? renderPrintCategories() : renderCategories(data), isOpen && !data.length && React.createElement("div", {
|
11919
12118
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11920
|
-
}, "
|
12119
|
+
}, t("no_data"))));
|
11921
12120
|
};
|
11922
12121
|
|
11923
12122
|
var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
@@ -12126,7 +12325,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12126
12325
|
var _useTab = useTab(),
|
12127
12326
|
selected = _useTab.selected,
|
12128
12327
|
handleChangeTab = _useTab.handleChangeTab;
|
12129
|
-
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
|
12328
|
+
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab, selected),
|
12130
12329
|
examTime = _useExamResult.examTime,
|
12131
12330
|
series = _useExamResult.series,
|
12132
12331
|
allSeries = _useExamResult.allSeries,
|
@@ -12303,7 +12502,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12303
12502
|
onClick: function onClick() {
|
12304
12503
|
return handleChangeTab(value);
|
12305
12504
|
}
|
12306
|
-
}, label);
|
12505
|
+
}, t(label));
|
12307
12506
|
})), isTabletUp && React.createElement(Stack, {
|
12308
12507
|
padding: '12px 24px',
|
12309
12508
|
alignItems: "end",
|
@@ -12681,6 +12880,7 @@ var Header = function Header(_ref) {
|
|
12681
12880
|
className: "fw-bold me-2 text-nowrap",
|
12682
12881
|
sx: {
|
12683
12882
|
minWidth: "60px",
|
12883
|
+
maxWidth: "120px",
|
12684
12884
|
overflow: "hidden",
|
12685
12885
|
textOverflow: "ellipsis"
|
12686
12886
|
}
|