touchstudy-core 0.1.42 → 0.1.44
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/containers/ExamResult/components/GradesByTerritory/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +2 -6
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +4 -14
- package/dist/containers/Textbooks/components/dialog/CreateExamDrawer.d.ts +2 -2
- package/dist/index.css +23 -64
- package/dist/index.js +580 -281
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +580 -281
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -142,7 +142,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
142
142
|
return target;
|
143
143
|
}
|
144
144
|
|
145
|
-
var styles = {"btn-login-google":"_2HqmH","block-login":"_wWIyO","box-login":"_38Lo1","btn-primary":"_rd4Uy","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","dropdown-academy":"_3CMVp","image-academy":"_2ibYC","image-academy--item":"_3RDWF","academy-btn":"_1JMRU","switch-icon":"_N4FNf","dropdown-content-academy":"_31Dr0","dropdown-academy-item":"_3bjcz","noGutters":"_31ZQk","custom-col-2":"_3yXyK","custom-col-3":"_1RsJQ","custom-col-5":"_L42CP","custom-col-10":"_2u6eL","custom-row":"_8x7OP","custom-col":"_1JmTh","custom-col-4":"_3HO1e","custom-col-8":"_Oy31M","custom-col-12":"_3aUKo","custom-container":"_39LRs","form-label":"__Ut-u","form-control":"_2k4dX","btn-outline-primary":"_2PWdX","sort-icons":"_mQvLF","active":"_3oAH-","form-select":"_3W3aw","truncate":"_3NJzN","headers":"_3xnI5","logo-container":"_3YG70","tabBox":"_1CQPn","routerBox":"_3hx2T","tabText":"_3UyhW","router-link-active":"_1TGKA","router-link":"_1AqMh","userImg":"_2RI6G","disabled-link":"_3aVHg"};
|
145
|
+
var styles = {"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","btn-login-google":"_2HqmH","block-login":"_wWIyO","box-login":"_38Lo1","btn-primary":"_rd4Uy","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","dropdown-academy":"_3CMVp","image-academy":"_2ibYC","image-academy--item":"_3RDWF","academy-btn":"_1JMRU","switch-icon":"_N4FNf","dropdown-content-academy":"_31Dr0","dropdown-academy-item":"_3bjcz","noGutters":"_31ZQk","custom-col-2":"_3yXyK","custom-col-3":"_1RsJQ","custom-col-5":"_L42CP","custom-col-10":"_2u6eL","custom-row":"_8x7OP","custom-col":"_1JmTh","custom-col-4":"_3HO1e","custom-col-8":"_Oy31M","custom-col-12":"_3aUKo","custom-container":"_39LRs","form-label":"__Ut-u","form-control":"_2k4dX","btn-outline-primary":"_2PWdX","sort-icons":"_mQvLF","active":"_3oAH-","form-select":"_3W3aw","truncate":"_3NJzN","headers":"_3xnI5","logo-container":"_3YG70","tabBox":"_1CQPn","routerBox":"_3hx2T","tabText":"_3UyhW","router-link-active":"_1TGKA","router-link":"_1AqMh","userImg":"_2RI6G","disabled-link":"_3aVHg"};
|
146
146
|
|
147
147
|
// A type of promise-like that resolves synchronously and supports only one observer
|
148
148
|
const _Pact = /*#__PURE__*/(function() {
|
@@ -1175,9 +1175,7 @@ var LayoutContext = function LayoutContext(_ref) {
|
|
1175
1175
|
}
|
1176
1176
|
}
|
1177
1177
|
if (!pusherRegisterUrls.includes(pathname.toLocaleLowerCase()) && !!currentPusher) {
|
1178
|
-
|
1179
|
-
currentPusher.disconnect();
|
1180
|
-
}
|
1178
|
+
currentPusher.disconnect();
|
1181
1179
|
dispatch(setConcurrentConnectionPusher({
|
1182
1180
|
pusher: null,
|
1183
1181
|
academyDomain: ""
|
@@ -1470,7 +1468,7 @@ var useSubjectSelect = function useSubjectSelect() {
|
|
1470
1468
|
ExamEvent["TeacherKickOutStudent"] = "teacher-kick-out-student";
|
1471
1469
|
})(exports.ExamEvent || (exports.ExamEvent = {}));
|
1472
1470
|
|
1473
|
-
var problem_solving = "
|
1471
|
+
var problem_solving = "수업 관리";
|
1474
1472
|
var my_story = "내 스토리";
|
1475
1473
|
var search_find = "검색하여 찾기";
|
1476
1474
|
var test_code = "시험코드 입력";
|
@@ -1480,7 +1478,7 @@ var description_success = "스터디 터치는 엄태욱 선생님의 수업에
|
|
1480
1478
|
var logout = "로그 아웃";
|
1481
1479
|
var overall_status = "전체 현황";
|
1482
1480
|
var exam_status = "시험별 현";
|
1483
|
-
var student_status = "
|
1481
|
+
var student_status = "학생별 현황";
|
1484
1482
|
var user_manager = "사용자 목록";
|
1485
1483
|
var recent_exam_results = "최근 시험 결과";
|
1486
1484
|
var instructor_name = "강사이름";
|
@@ -1517,6 +1515,7 @@ var confirmation = "확인";
|
|
1517
1515
|
var student_name = "학생이름";
|
1518
1516
|
var full_pool_time = "전체풀이시간";
|
1519
1517
|
var number_question = "{{number}}번";
|
1518
|
+
var number_answer = "{{number}}번";
|
1520
1519
|
var answer_rate = "정답률";
|
1521
1520
|
var seconds = "초";
|
1522
1521
|
var search_placeholder = "시험 이름으로 검색하기";
|
@@ -1531,6 +1530,7 @@ var information_by_question = "문항별 정보";
|
|
1531
1530
|
var no_data = "데이터 없음";
|
1532
1531
|
var internet_connection_was_lost = "인터넷 연결이 끊어졌습니다";
|
1533
1532
|
var problem = "문제";
|
1533
|
+
var problems = "문제";
|
1534
1534
|
var problem_solving_time = "문제풀이 시간";
|
1535
1535
|
var minutes = "분";
|
1536
1536
|
var correct_rate = "정확한 비율";
|
@@ -1787,8 +1787,40 @@ var problem_analysis = "문제 분석";
|
|
1787
1787
|
var class_information = "수업정보";
|
1788
1788
|
var teachers = "교사";
|
1789
1789
|
var lessons = "수업";
|
1790
|
+
var new_test = "새로운 시험";
|
1791
|
+
var manage_saved_tests = "저장된 시험 관리";
|
1792
|
+
var textbook_management = "교과서 관리";
|
1793
|
+
var my_question = "내 질문";
|
1790
1794
|
var update_class = "수업 업데이트";
|
1791
1795
|
var create_class = "수업 만들기";
|
1796
|
+
var problem_number = "문제 번호";
|
1797
|
+
var answer = "정답";
|
1798
|
+
var correct = "정답";
|
1799
|
+
var solve_time = "풀이 시간";
|
1800
|
+
var comparison_of_top_rankings = "상위권 비교";
|
1801
|
+
var total_correct_rate = "전체 정답률";
|
1802
|
+
var incorrect = "오답";
|
1803
|
+
var no_solution = "풀이 없음";
|
1804
|
+
var no_time = "시간 없음";
|
1805
|
+
var my_solving_time = "나의 풀이 시간";
|
1806
|
+
var top_solution_time = "최상위권 풀이시간";
|
1807
|
+
var average_solve_time = "평균 풀이 시간";
|
1808
|
+
var my_solution = "내 풀이";
|
1809
|
+
var most_solutions = "가장 많은 풀이";
|
1810
|
+
var problem_classification = "문제 분류";
|
1811
|
+
var my_wrong_answer = "나의 오답";
|
1812
|
+
var incorrect_problem_among_the_starred_problems = "별표 친 문제 중 틀린 문제";
|
1813
|
+
var correct_problem_among_the_starred_problems = "별표 친 문제 중 맞춘 문제";
|
1814
|
+
var tricky_problems = "까다로웠던 문제";
|
1815
|
+
var issues_vulnerable = "내가 취약한 문제";
|
1816
|
+
var grades_by_area = "영역별 성적";
|
1817
|
+
var problems_that_took_a_long_time = "시간이 오래 걸린 문제";
|
1818
|
+
var my_time = "나의 시간";
|
1819
|
+
var top_time = "상위권 시간";
|
1820
|
+
var fingerprint = "지문";
|
1821
|
+
var end = "종료";
|
1822
|
+
var ask_for_feedback = "피드백 요청하기";
|
1823
|
+
var quit = "종료하기";
|
1792
1824
|
var lang_ko = {
|
1793
1825
|
problem_solving: problem_solving,
|
1794
1826
|
my_story: my_story,
|
@@ -1839,6 +1871,7 @@ var lang_ko = {
|
|
1839
1871
|
student_name: student_name,
|
1840
1872
|
full_pool_time: full_pool_time,
|
1841
1873
|
number_question: number_question,
|
1874
|
+
number_answer: number_answer,
|
1842
1875
|
answer_rate: answer_rate,
|
1843
1876
|
seconds: seconds,
|
1844
1877
|
search_placeholder: search_placeholder,
|
@@ -1853,6 +1886,7 @@ var lang_ko = {
|
|
1853
1886
|
no_data: no_data,
|
1854
1887
|
internet_connection_was_lost: internet_connection_was_lost,
|
1855
1888
|
problem: problem,
|
1889
|
+
problems: problems,
|
1856
1890
|
problem_solving_time: problem_solving_time,
|
1857
1891
|
minutes: minutes,
|
1858
1892
|
correct_rate: correct_rate,
|
@@ -1961,7 +1995,7 @@ var lang_ko = {
|
|
1961
1995
|
credentials_invalid: credentials_invalid,
|
1962
1996
|
role_is_invalid: role_is_invalid,
|
1963
1997
|
today: today,
|
1964
|
-
"q&a": "
|
1998
|
+
"q&a": "질문 및 답변",
|
1965
1999
|
user_is_disabled: user_is_disabled,
|
1966
2000
|
cover_image: cover_image,
|
1967
2001
|
notification: notification,
|
@@ -2096,8 +2130,40 @@ var lang_ko = {
|
|
2096
2130
|
class_information: class_information,
|
2097
2131
|
teachers: teachers,
|
2098
2132
|
lessons: lessons,
|
2133
|
+
new_test: new_test,
|
2134
|
+
manage_saved_tests: manage_saved_tests,
|
2135
|
+
textbook_management: textbook_management,
|
2136
|
+
my_question: my_question,
|
2099
2137
|
update_class: update_class,
|
2100
|
-
create_class: create_class
|
2138
|
+
create_class: create_class,
|
2139
|
+
problem_number: problem_number,
|
2140
|
+
answer: answer,
|
2141
|
+
correct: correct,
|
2142
|
+
solve_time: solve_time,
|
2143
|
+
comparison_of_top_rankings: comparison_of_top_rankings,
|
2144
|
+
total_correct_rate: total_correct_rate,
|
2145
|
+
incorrect: incorrect,
|
2146
|
+
no_solution: no_solution,
|
2147
|
+
no_time: no_time,
|
2148
|
+
my_solving_time: my_solving_time,
|
2149
|
+
top_solution_time: top_solution_time,
|
2150
|
+
average_solve_time: average_solve_time,
|
2151
|
+
my_solution: my_solution,
|
2152
|
+
most_solutions: most_solutions,
|
2153
|
+
problem_classification: problem_classification,
|
2154
|
+
my_wrong_answer: my_wrong_answer,
|
2155
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems,
|
2156
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems,
|
2157
|
+
tricky_problems: tricky_problems,
|
2158
|
+
issues_vulnerable: issues_vulnerable,
|
2159
|
+
grades_by_area: grades_by_area,
|
2160
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time,
|
2161
|
+
my_time: my_time,
|
2162
|
+
top_time: top_time,
|
2163
|
+
fingerprint: fingerprint,
|
2164
|
+
end: end,
|
2165
|
+
ask_for_feedback: ask_for_feedback,
|
2166
|
+
quit: quit
|
2101
2167
|
};
|
2102
2168
|
|
2103
2169
|
var problem_solving$1 = "Problem Solving";
|
@@ -2148,6 +2214,7 @@ var confirmation$1 = "Confirmation";
|
|
2148
2214
|
var student_name$1 = "Student name";
|
2149
2215
|
var full_pool_time$1 = "Full pool time";
|
2150
2216
|
var number_question$1 = "No.{{number}}";
|
2217
|
+
var number_answer$1 = "No.{{number}}";
|
2151
2218
|
var answer_rate$1 = "Answer rate";
|
2152
2219
|
var seconds$1 = "s";
|
2153
2220
|
var search_placeholder$1 = "Search by exam name";
|
@@ -2161,7 +2228,8 @@ var correct_answer_for_each_student$1 = "Correct answer for each student";
|
|
2161
2228
|
var information_by_question$1 = "Information by question";
|
2162
2229
|
var no_data$1 = "No data";
|
2163
2230
|
var internet_connection_was_lost$1 = "Internet connection was lost";
|
2164
|
-
var problem$1 = "Problem
|
2231
|
+
var problem$1 = "Problem";
|
2232
|
+
var problems$1 = "Problems";
|
2165
2233
|
var problem_solving_time$1 = "Problem solving time";
|
2166
2234
|
var minutes$1 = "m";
|
2167
2235
|
var correct_rate$1 = "Correct rate";
|
@@ -2183,7 +2251,7 @@ var difficult = "Difficult";
|
|
2183
2251
|
var article = "Article";
|
2184
2252
|
var correct_answer = "Correct answer";
|
2185
2253
|
var mark = "Mark";
|
2186
|
-
var answer = "Answer";
|
2254
|
+
var answer$1 = "Answer";
|
2187
2255
|
var add_new_row = "Add new row";
|
2188
2256
|
var question_text_required = "Question text is required";
|
2189
2257
|
var create_question_success = "Question is created successfully";
|
@@ -2454,6 +2522,42 @@ var teachers$1 = "Teachers";
|
|
2454
2522
|
var lessons$1 = "Lessons";
|
2455
2523
|
var update_class$1 = "Update class";
|
2456
2524
|
var create_class$1 = "Create class";
|
2525
|
+
var new_test$1 = "New Test";
|
2526
|
+
var manage_saved_tests$1 = "Manage saved tests";
|
2527
|
+
var textbook_management$1 = "Textbook Management";
|
2528
|
+
var my_question$1 = "My Question";
|
2529
|
+
var problem_number$1 = "Problem number";
|
2530
|
+
var solve_time$1 = "Solve time";
|
2531
|
+
var comparison_of_top_rankings$1 = "Comparison of top rankings";
|
2532
|
+
var total_correct_rate$1 = "Total correct rate";
|
2533
|
+
var incorrect$1 = "Incorrect";
|
2534
|
+
var correct$1 = "Correct";
|
2535
|
+
var no_solution$1 = "No solution";
|
2536
|
+
var no_time$1 = "No time";
|
2537
|
+
var my_solving_time$1 = "My solving time";
|
2538
|
+
var top_solution_time$1 = "Top solving time";
|
2539
|
+
var average_solve_time$1 = "Average solve time";
|
2540
|
+
var my_solution$1 = "My solution";
|
2541
|
+
var most_solutions$1 = "Most solutions";
|
2542
|
+
var problem_classification$1 = "Problem classification";
|
2543
|
+
var my_wrong_answer$1 = "My wrong answer";
|
2544
|
+
var incorrect_problem_among_the_starred_problems$1 = "Incorrect problem among the starred problems";
|
2545
|
+
var correct_problem_among_the_starred_problems$1 = "Correct problem among the starred problems";
|
2546
|
+
var tricky_problems$1 = "Tricky problems";
|
2547
|
+
var issues_vulnerable$1 = "Issues I'm Vulnerable to";
|
2548
|
+
var grades_by_area$1 = "Grades by area";
|
2549
|
+
var problems_that_took_a_long_time$1 = "Problems that took a long time";
|
2550
|
+
var my_time$1 = "My time";
|
2551
|
+
var top_time$1 = "Top time";
|
2552
|
+
var easy_problem = "Easy problem";
|
2553
|
+
var trick_problem = "Trick problem";
|
2554
|
+
var differential_problem = "Differential problem";
|
2555
|
+
var difficult_problem = "Difficult problem";
|
2556
|
+
var general_problem = "General problem";
|
2557
|
+
var fingerprint$1 = "Fingerprint";
|
2558
|
+
var end$1 = "end";
|
2559
|
+
var ask_for_feedback$1 = "Ask for feedback";
|
2560
|
+
var quit$1 = "Quit";
|
2457
2561
|
var lang_en = {
|
2458
2562
|
problem_solving: problem_solving$1,
|
2459
2563
|
my_story: my_story$1,
|
@@ -2505,6 +2609,7 @@ var lang_en = {
|
|
2505
2609
|
student_name: student_name$1,
|
2506
2610
|
full_pool_time: full_pool_time$1,
|
2507
2611
|
number_question: number_question$1,
|
2612
|
+
number_answer: number_answer$1,
|
2508
2613
|
answer_rate: answer_rate$1,
|
2509
2614
|
seconds: seconds$1,
|
2510
2615
|
search_placeholder: search_placeholder$1,
|
@@ -2519,6 +2624,7 @@ var lang_en = {
|
|
2519
2624
|
no_data: no_data$1,
|
2520
2625
|
internet_connection_was_lost: internet_connection_was_lost$1,
|
2521
2626
|
problem: problem$1,
|
2627
|
+
problems: problems$1,
|
2522
2628
|
problem_solving_time: problem_solving_time$1,
|
2523
2629
|
minutes: minutes$1,
|
2524
2630
|
correct_rate: correct_rate$1,
|
@@ -2541,7 +2647,7 @@ var lang_en = {
|
|
2541
2647
|
article: article,
|
2542
2648
|
correct_answer: correct_answer,
|
2543
2649
|
mark: mark,
|
2544
|
-
answer: answer,
|
2650
|
+
answer: answer$1,
|
2545
2651
|
add_new_row: add_new_row,
|
2546
2652
|
question_text_required: question_text_required,
|
2547
2653
|
create_question_success: create_question_success,
|
@@ -2797,7 +2903,43 @@ var lang_en = {
|
|
2797
2903
|
teachers: teachers$1,
|
2798
2904
|
lessons: lessons$1,
|
2799
2905
|
update_class: update_class$1,
|
2800
|
-
create_class: create_class$1
|
2906
|
+
create_class: create_class$1,
|
2907
|
+
new_test: new_test$1,
|
2908
|
+
manage_saved_tests: manage_saved_tests$1,
|
2909
|
+
textbook_management: textbook_management$1,
|
2910
|
+
my_question: my_question$1,
|
2911
|
+
problem_number: problem_number$1,
|
2912
|
+
solve_time: solve_time$1,
|
2913
|
+
comparison_of_top_rankings: comparison_of_top_rankings$1,
|
2914
|
+
total_correct_rate: total_correct_rate$1,
|
2915
|
+
incorrect: incorrect$1,
|
2916
|
+
correct: correct$1,
|
2917
|
+
no_solution: no_solution$1,
|
2918
|
+
no_time: no_time$1,
|
2919
|
+
my_solving_time: my_solving_time$1,
|
2920
|
+
top_solution_time: top_solution_time$1,
|
2921
|
+
average_solve_time: average_solve_time$1,
|
2922
|
+
my_solution: my_solution$1,
|
2923
|
+
most_solutions: most_solutions$1,
|
2924
|
+
problem_classification: problem_classification$1,
|
2925
|
+
my_wrong_answer: my_wrong_answer$1,
|
2926
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems$1,
|
2927
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems$1,
|
2928
|
+
tricky_problems: tricky_problems$1,
|
2929
|
+
issues_vulnerable: issues_vulnerable$1,
|
2930
|
+
grades_by_area: grades_by_area$1,
|
2931
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time$1,
|
2932
|
+
my_time: my_time$1,
|
2933
|
+
top_time: top_time$1,
|
2934
|
+
easy_problem: easy_problem,
|
2935
|
+
trick_problem: trick_problem,
|
2936
|
+
differential_problem: differential_problem,
|
2937
|
+
difficult_problem: difficult_problem,
|
2938
|
+
general_problem: general_problem,
|
2939
|
+
fingerprint: fingerprint$1,
|
2940
|
+
end: end$1,
|
2941
|
+
ask_for_feedback: ask_for_feedback$1,
|
2942
|
+
quit: quit$1
|
2801
2943
|
};
|
2802
2944
|
|
2803
2945
|
i18n.use(reactI18next.initReactI18next).init({
|
@@ -3125,7 +3267,7 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
3125
3267
|
sx: {
|
3126
3268
|
fontSize: 14,
|
3127
3269
|
fontWeight: 600,
|
3128
|
-
color:
|
3270
|
+
color: styles.dark,
|
3129
3271
|
minWidth: 150
|
3130
3272
|
}
|
3131
3273
|
}, (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.name) || t(role === exports.Role.Admin ? "switch_academy_admin" : "switch_academy")), React__default.createElement("div", {
|
@@ -3213,7 +3355,7 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3213
3355
|
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3214
3356
|
var DropdownIndicator = function DropdownIndicator(props) {
|
3215
3357
|
return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
|
3216
|
-
color:
|
3358
|
+
color: styles.darker
|
3217
3359
|
}));
|
3218
3360
|
};
|
3219
3361
|
var CustomOption = function CustomOption(props) {
|
@@ -3225,26 +3367,26 @@ var CustomOption = function CustomOption(props) {
|
|
3225
3367
|
}, props.data.label));
|
3226
3368
|
};
|
3227
3369
|
var customStyles = {
|
3228
|
-
control: function control(baseStyles
|
3370
|
+
control: function control(baseStyles) {
|
3229
3371
|
return _extends({}, baseStyles, {
|
3230
3372
|
fontSize: "14px",
|
3231
3373
|
fontWeight: 700,
|
3232
|
-
color:
|
3233
|
-
borderColor:
|
3374
|
+
color: styles.darker,
|
3375
|
+
borderColor: styles.less_dark
|
3234
3376
|
});
|
3235
3377
|
},
|
3236
3378
|
input: function input(baseStyles, _) {
|
3237
3379
|
return _extends({}, baseStyles, {
|
3238
3380
|
fontSize: "14px",
|
3239
3381
|
fontWeight: 700,
|
3240
|
-
color:
|
3382
|
+
color: styles.darker
|
3241
3383
|
});
|
3242
3384
|
},
|
3243
3385
|
singleValue: function singleValue(baseStyles) {
|
3244
3386
|
return _extends({}, baseStyles, {
|
3245
3387
|
fontSize: "14px",
|
3246
3388
|
fontWeight: 700,
|
3247
|
-
color:
|
3389
|
+
color: styles.darker
|
3248
3390
|
});
|
3249
3391
|
}
|
3250
3392
|
};
|
@@ -3300,10 +3442,10 @@ var iconPersonNoActive = function iconPersonNoActive(_ref) {
|
|
3300
3442
|
xmlns: "http://www.w3.org/2000/svg"
|
3301
3443
|
}, React__default.createElement("path", {
|
3302
3444
|
d: "M10.395 2.01813C9.78691 1.36156 8.93753 1 8.00003 1C7.05753 1 6.20534 1.35937 5.60003 2.01187C4.98815 2.67156 4.69003 3.56813 4.76003 4.53625C4.89878 6.44625 6.35222 8 8.00003 8C9.64784 8 11.0988 6.44656 11.2397 4.53687C11.3107 3.5775 11.0107 2.68281 10.395 2.01813Z",
|
3303
|
-
fill:
|
3445
|
+
fill: color
|
3304
3446
|
}), React__default.createElement("path", {
|
3305
3447
|
d: "M13.5001 15H2.50006C2.35608 15.0019 2.21349 14.9716 2.08267 14.9115C1.95185 14.8513 1.83609 14.7627 1.74381 14.6522C1.54068 14.4094 1.45881 14.0778 1.51943 13.7425C1.78318 12.2794 2.60631 11.0503 3.90006 10.1875C5.04943 9.42156 6.50537 9 8.00006 9C9.49474 9 10.9507 9.42188 12.1001 10.1875C13.3938 11.05 14.2169 12.2791 14.4807 13.7422C14.5413 14.0775 14.4594 14.4091 14.2563 14.6519C14.1641 14.7625 14.0483 14.8511 13.9175 14.9113C13.7867 14.9715 13.6441 15.0018 13.5001 15Z",
|
3306
|
-
fill:
|
3448
|
+
fill: color
|
3307
3449
|
}));
|
3308
3450
|
};
|
3309
3451
|
|
@@ -3368,6 +3510,8 @@ var useTooltip = function useTooltip() {
|
|
3368
3510
|
var ContentTooltip = function ContentTooltip(_ref) {
|
3369
3511
|
var toggleConfirmDialog = _ref.toggleConfirmDialog,
|
3370
3512
|
toggleUpdateDialog = _ref.toggleUpdateDialog;
|
3513
|
+
var _useTranslation = reactI18next.useTranslation(),
|
3514
|
+
t = _useTranslation.t;
|
3371
3515
|
return React__default.createElement(material.Stack, null, React__default.createElement(material.Stack, {
|
3372
3516
|
display: "flex",
|
3373
3517
|
gap: "4px",
|
@@ -3381,9 +3525,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3381
3525
|
sx: {
|
3382
3526
|
fontWeight: 700,
|
3383
3527
|
fontSize: "14px",
|
3384
|
-
color:
|
3528
|
+
color: styles.dark
|
3385
3529
|
}
|
3386
|
-
}, "
|
3530
|
+
}, t("edit"))), React__default.createElement(material.Stack, {
|
3387
3531
|
border: "1px solid #E4E7EC"
|
3388
3532
|
}), React__default.createElement("div", {
|
3389
3533
|
style: {
|
@@ -3394,9 +3538,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3394
3538
|
sx: {
|
3395
3539
|
fontWeight: 700,
|
3396
3540
|
fontSize: "14px",
|
3397
|
-
color:
|
3541
|
+
color: styles.dark
|
3398
3542
|
}
|
3399
|
-
}, "
|
3543
|
+
}, t("delete")))));
|
3400
3544
|
};
|
3401
3545
|
|
3402
3546
|
var ChatRightItem = function ChatRightItem(_ref) {
|
@@ -3439,7 +3583,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3439
3583
|
fontSize: 14,
|
3440
3584
|
padding: "4px",
|
3441
3585
|
lineHeight: "16.71px",
|
3442
|
-
color:
|
3586
|
+
color: styles.darker
|
3443
3587
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)), React__default.createElement(material.Stack, {
|
3444
3588
|
display: "flex",
|
3445
3589
|
flexDirection: "row",
|
@@ -3475,7 +3619,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3475
3619
|
}, React__default.createElement(iconMore, null))))), contentType ? React__default.createElement(material.Stack, {
|
3476
3620
|
borderRadius: "6px",
|
3477
3621
|
padding: "12px",
|
3478
|
-
bgcolor:
|
3622
|
+
bgcolor: styles.darker
|
3479
3623
|
}, React__default.createElement("img", {
|
3480
3624
|
onClick: toggleImageDialog,
|
3481
3625
|
src: content,
|
@@ -3484,11 +3628,12 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3484
3628
|
position: "relative",
|
3485
3629
|
objectFit: "contain"
|
3486
3630
|
}
|
3487
|
-
})) : React__default.createElement(
|
3631
|
+
})) : React__default.createElement(material.Stack, {
|
3488
3632
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-receiver"],
|
3489
|
-
|
3633
|
+
sx: {
|
3490
3634
|
"float": "inline-end"
|
3491
|
-
}
|
3635
|
+
},
|
3636
|
+
bgcolor: styles.darker
|
3492
3637
|
}, React__default.createElement(material.Typography, {
|
3493
3638
|
fontWeight: 500,
|
3494
3639
|
fontSize: "14px",
|
@@ -3528,22 +3673,22 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3528
3673
|
fontWeight: 500,
|
3529
3674
|
fontSize: 14,
|
3530
3675
|
lineHeight: "16.71px",
|
3531
|
-
color:
|
3676
|
+
color: styles.darker
|
3532
3677
|
}, t("counselor")), React__default.createElement(material.Typography, {
|
3533
3678
|
fontWeight: 700,
|
3534
3679
|
fontSize: 14,
|
3535
3680
|
lineHeight: "16.71px",
|
3536
|
-
color:
|
3681
|
+
color: styles.darker
|
3537
3682
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)) : React__default.createElement(React.Fragment, null, React__default.createElement(material.Typography, {
|
3538
3683
|
fontWeight: 700,
|
3539
3684
|
fontSize: 14,
|
3540
3685
|
lineHeight: "16.71px",
|
3541
|
-
color:
|
3686
|
+
color: styles.darker
|
3542
3687
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName), React__default.createElement(material.Typography, {
|
3543
3688
|
fontWeight: 500,
|
3544
3689
|
fontSize: 14,
|
3545
3690
|
lineHeight: "16.71px",
|
3546
|
-
color:
|
3691
|
+
color: styles.darker
|
3547
3692
|
}, t("student")))), React__default.createElement(material.Box, {
|
3548
3693
|
padding: "4px 0px"
|
3549
3694
|
}), React__default.createElement(material.Stack, {
|
@@ -3553,7 +3698,7 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3553
3698
|
}, contentType ? React__default.createElement(material.Stack, {
|
3554
3699
|
borderRadius: "6px",
|
3555
3700
|
padding: "12px",
|
3556
|
-
bgcolor:
|
3701
|
+
bgcolor: styles.darker
|
3557
3702
|
}, React__default.createElement("img", {
|
3558
3703
|
onClick: toggleImageDialog,
|
3559
3704
|
src: content,
|
@@ -3565,10 +3710,10 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3565
3710
|
})) : React__default.createElement("div", {
|
3566
3711
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-sender"]
|
3567
3712
|
}, React__default.createElement(material.Typography, {
|
3568
|
-
fontWeight:
|
3713
|
+
fontWeight: 400,
|
3569
3714
|
fontSize: "14px",
|
3570
3715
|
lineHeight: "16.71px",
|
3571
|
-
color: "#
|
3716
|
+
color: "#5D5D5B"
|
3572
3717
|
}, content)))));
|
3573
3718
|
};
|
3574
3719
|
|
@@ -3794,6 +3939,9 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3794
3939
|
padding: '12px'
|
3795
3940
|
}
|
3796
3941
|
}, React__default.createElement(material.Button, {
|
3942
|
+
sx: {
|
3943
|
+
color: styles.dark
|
3944
|
+
},
|
3797
3945
|
className: styles$1['btn-cancel'],
|
3798
3946
|
onClick: onClose
|
3799
3947
|
}, React__default.createElement(material.Typography, {
|
@@ -3801,6 +3949,10 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3801
3949
|
fontSize: '14px',
|
3802
3950
|
lineHeight: '16.71px'
|
3803
3951
|
}, "\uCDE8\uC18C")), React__default.createElement(material.Button, {
|
3952
|
+
variant: 'contained',
|
3953
|
+
sx: {
|
3954
|
+
bgcolor: styles.dark
|
3955
|
+
},
|
3804
3956
|
className: styles$1['btn-register'],
|
3805
3957
|
type: "submit"
|
3806
3958
|
}, React__default.createElement(material.Typography, {
|
@@ -3827,16 +3979,14 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3827
3979
|
sx: {
|
3828
3980
|
display: "flex",
|
3829
3981
|
gap: "8px",
|
3830
|
-
padding: "12px !important"
|
3831
|
-
borderColor: "#5458D5"
|
3982
|
+
padding: "12px !important"
|
3832
3983
|
}
|
3833
|
-
}, React__default.createElement(iconPlusCircle,
|
3984
|
+
}, React__default.createElement(iconPlusCircle, {
|
3985
|
+
color: styles.dark
|
3986
|
+
}), React__default.createElement(material.Typography, {
|
3834
3987
|
fontWeight: 700,
|
3835
3988
|
fontSize: "13px",
|
3836
|
-
lineHeight: "15.51px"
|
3837
|
-
sx: {
|
3838
|
-
color: "#5458D5"
|
3839
|
-
}
|
3989
|
+
lineHeight: "15.51px"
|
3840
3990
|
}, t("attachment")), React__default.createElement("input", {
|
3841
3991
|
type: "file",
|
3842
3992
|
hidden: true,
|
@@ -3853,13 +4003,17 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3853
4003
|
className: styles$1['btn-cancel'],
|
3854
4004
|
onClick: onClose
|
3855
4005
|
}, React__default.createElement(material.Typography, {
|
4006
|
+
sx: {
|
4007
|
+
color: styles.dark
|
4008
|
+
},
|
3856
4009
|
fontWeight: 700,
|
3857
4010
|
fontSize: '14px',
|
3858
4011
|
lineHeight: '16.71px'
|
3859
4012
|
}, "\uCDE8\uC18C")), React__default.createElement(material.Button, {
|
4013
|
+
variant: "contained",
|
3860
4014
|
className: styles$1['btn-register'],
|
3861
4015
|
sx: {
|
3862
|
-
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? "
|
4016
|
+
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? styles.light + " !important" : styles.dark
|
3863
4017
|
},
|
3864
4018
|
disabled: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content),
|
3865
4019
|
onClick: function onClick() {
|
@@ -4092,10 +4246,11 @@ var InputChat = function InputChat(_ref) {
|
|
4092
4246
|
gap: "16px"
|
4093
4247
|
}, React__default.createElement(material.Button, {
|
4094
4248
|
variant: "contained",
|
4249
|
+
fullWidth: true,
|
4250
|
+
className: styles$1["btn-send"],
|
4095
4251
|
sx: {
|
4096
|
-
bgcolor: isCompleted ? "
|
4252
|
+
bgcolor: isCompleted ? styles.light + " !important" : styles.dark
|
4097
4253
|
},
|
4098
|
-
className: styles$1["btn-send"],
|
4099
4254
|
disabled: isCompleted,
|
4100
4255
|
onClick: handleSubmit
|
4101
4256
|
}, React__default.createElement(iconSendMessage, null), React__default.createElement(material.Typography, {
|
@@ -4111,15 +4266,17 @@ var InputChat = function InputChat(_ref) {
|
|
4111
4266
|
display: "flex",
|
4112
4267
|
gap: "8px",
|
4113
4268
|
padding: "12px !important",
|
4114
|
-
borderColor: isCompleted ? "transparent" :
|
4269
|
+
borderColor: isCompleted ? "transparent" : styles.less_dark,
|
4115
4270
|
borderWidth: "1px"
|
4116
4271
|
}
|
4117
|
-
}, React__default.createElement(iconPlusCircle,
|
4272
|
+
}, React__default.createElement(iconPlusCircle, {
|
4273
|
+
color: styles.dark
|
4274
|
+
}), React__default.createElement(material.Typography, {
|
4118
4275
|
fontWeight: 700,
|
4119
4276
|
fontSize: "13px",
|
4120
4277
|
lineHeight: "15.51px",
|
4121
4278
|
sx: {
|
4122
|
-
color:
|
4279
|
+
color: styles.dark
|
4123
4280
|
}
|
4124
4281
|
}, t("attachment")), React__default.createElement("input", {
|
4125
4282
|
type: "file",
|
@@ -4145,7 +4302,7 @@ var iconChecked = function iconChecked(_ref) {
|
|
4145
4302
|
xmlns: "http://www.w3.org/2000/svg"
|
4146
4303
|
}, React__default.createElement("path", {
|
4147
4304
|
d: "M8 1.5C4.41594 1.5 1.5 4.41594 1.5 8C1.5 11.5841 4.41594 14.5 8 14.5C11.5841 14.5 14.5 11.5841 14.5 8C14.5 4.41594 11.5841 1.5 8 1.5ZM11.3828 5.82156L7.18281 10.8216C7.13674 10.8764 7.07941 10.9208 7.01471 10.9516C6.95001 10.9823 6.87945 10.9989 6.80781 11H6.79938C6.72929 11 6.66 10.9852 6.59599 10.9567C6.53198 10.9282 6.47468 10.8865 6.42781 10.8344L4.62781 8.83438C4.5821 8.78589 4.54654 8.72876 4.52322 8.66633C4.4999 8.60391 4.4893 8.53745 4.49203 8.47087C4.49477 8.40429 4.51078 8.33892 4.53914 8.27862C4.56749 8.21831 4.60761 8.16429 4.65715 8.11971C4.70668 8.07514 4.76463 8.04091 4.82757 8.01905C4.89052 7.99719 4.95721 7.98813 5.02371 7.9924C5.09021 7.99668 5.15518 8.01421 5.21481 8.04396C5.27444 8.0737 5.32752 8.11507 5.37094 8.16562L6.78625 9.73812L10.6172 5.17844C10.7031 5.07909 10.8247 5.01754 10.9556 5.00711C11.0866 4.99668 11.2164 5.03819 11.317 5.12268C11.4175 5.20717 11.4808 5.32784 11.4931 5.45862C11.5055 5.5894 11.4658 5.71977 11.3828 5.82156Z",
|
4148
|
-
fill:
|
4305
|
+
fill: color
|
4149
4306
|
}));
|
4150
4307
|
};
|
4151
4308
|
|
@@ -4230,20 +4387,22 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4230
4387
|
alignItems: "center",
|
4231
4388
|
flexDirection: "row",
|
4232
4389
|
gap: "8px"
|
4233
|
-
}, React__default.createElement(iconPersonNoActive,
|
4390
|
+
}, React__default.createElement(iconPersonNoActive, {
|
4391
|
+
color: styles.darker
|
4392
|
+
}), isTabletUp && React__default.createElement(material.Typography, {
|
4234
4393
|
fontWeight: 500,
|
4235
4394
|
fontSize: "14px",
|
4236
4395
|
lineHeight: "16.71px",
|
4237
|
-
color:
|
4396
|
+
color: styles.darker
|
4238
4397
|
}, t("counselor"))), React__default.createElement(material.Typography, {
|
4239
4398
|
fontWeight: 700,
|
4240
4399
|
fontSize: "14px",
|
4241
4400
|
lineHeight: "16.71px",
|
4242
|
-
color:
|
4401
|
+
color: styles.darker
|
4243
4402
|
}, ellipsisText(teacherName || "", 15))), !!examTitle && React__default.createElement(material.Box, {
|
4244
4403
|
display: "flex",
|
4245
4404
|
alignItems: "start",
|
4246
|
-
color:
|
4405
|
+
color: styles.darker,
|
4247
4406
|
gap: "6px",
|
4248
4407
|
flexDirection: "column"
|
4249
4408
|
}, React__default.createElement(material.Typography, {
|
@@ -4274,7 +4433,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4274
4433
|
fontWeight: 700,
|
4275
4434
|
fontSize: "12px",
|
4276
4435
|
lineHeight: "14.32px",
|
4277
|
-
color:
|
4436
|
+
color: styles.darker
|
4278
4437
|
}, questionOrder != undefined ? t("problem_number_question", {
|
4279
4438
|
number: questionOrder + 1
|
4280
4439
|
}) : courseId ? t("class_inquiry") : t("exam_inquiry")) : React__default.createElement(material.Stack, {
|
@@ -4285,7 +4444,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4285
4444
|
fontWeight: 700,
|
4286
4445
|
fontSize: "12px",
|
4287
4446
|
lineHeight: "14.32px",
|
4288
|
-
color:
|
4447
|
+
color: styles.darker
|
4289
4448
|
}, t("points", {
|
4290
4449
|
number: score
|
4291
4450
|
})), React__default.createElement(material.Typography, {
|
@@ -4309,12 +4468,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4309
4468
|
fontWeight: 600,
|
4310
4469
|
fontSize: "11px",
|
4311
4470
|
lineHeight: "14.32px",
|
4312
|
-
color:
|
4471
|
+
color: styles.darker
|
4313
4472
|
}, t("consultation_category")), React__default.createElement(material.Typography, {
|
4314
4473
|
fontWeight: 700,
|
4315
4474
|
fontSize: "14px",
|
4316
4475
|
lineHeight: "14.32px",
|
4317
|
-
color:
|
4476
|
+
color: styles.darker
|
4318
4477
|
}, t("" + category))))) : React__default.createElement(material.Grid, {
|
4319
4478
|
item: true,
|
4320
4479
|
xs: 12,
|
@@ -4329,16 +4488,19 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4329
4488
|
display: "flex",
|
4330
4489
|
alignItems: "center",
|
4331
4490
|
gap: "24px",
|
4332
|
-
color:
|
4491
|
+
color: styles.darker
|
4333
4492
|
}, isTabletUp && React__default.createElement(material.Box, {
|
4334
4493
|
display: "flex",
|
4335
4494
|
justifyContent: "space-between",
|
4336
4495
|
alignItems: "center",
|
4337
4496
|
gap: "8px"
|
4338
|
-
}, React__default.createElement(iconPersonNoActive,
|
4497
|
+
}, React__default.createElement(iconPersonNoActive, {
|
4498
|
+
color: styles.darker
|
4499
|
+
}), React__default.createElement(material.Typography, {
|
4339
4500
|
fontWeight: 500,
|
4340
4501
|
fontSize: "14px",
|
4341
|
-
lineHeight: "16.71px"
|
4502
|
+
lineHeight: "16.71px",
|
4503
|
+
color: styles.darker
|
4342
4504
|
}, t("student"))), React__default.createElement(material.Typography, {
|
4343
4505
|
fontWeight: 700,
|
4344
4506
|
fontSize: "14px",
|
@@ -4347,7 +4509,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4347
4509
|
display: "flex",
|
4348
4510
|
alignItems: "center",
|
4349
4511
|
gap: "24px",
|
4350
|
-
color:
|
4512
|
+
color: styles.darker
|
4351
4513
|
}, examTitle ? React__default.createElement(material.Typography, {
|
4352
4514
|
fontWeight: 600,
|
4353
4515
|
fontSize: "12px",
|
@@ -4361,12 +4523,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4361
4523
|
fontWeight: 600,
|
4362
4524
|
fontSize: "11px",
|
4363
4525
|
lineHeight: "14.32px",
|
4364
|
-
color:
|
4526
|
+
color: styles.darker
|
4365
4527
|
}, t("consultation_category")), React__default.createElement(material.Typography, {
|
4366
4528
|
fontWeight: 700,
|
4367
4529
|
fontSize: "14px",
|
4368
4530
|
lineHeight: "14.32px",
|
4369
|
-
color:
|
4531
|
+
color: styles.darker
|
4370
4532
|
}, t("" + category))), questionOrder != undefined && React__default.createElement(material.Typography, {
|
4371
4533
|
fontWeight: 700,
|
4372
4534
|
fontSize: "14px",
|
@@ -4380,13 +4542,16 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4380
4542
|
display: "flex",
|
4381
4543
|
alignItems: "center",
|
4382
4544
|
gap: "8px",
|
4383
|
-
border: "1px solid
|
4545
|
+
border: "1px solid",
|
4546
|
+
borderColor: styles.less_dark,
|
4384
4547
|
borderRadius: "6px"
|
4385
|
-
}, React__default.createElement(iconChecked,
|
4548
|
+
}, React__default.createElement(iconChecked, {
|
4549
|
+
color: styles.darker
|
4550
|
+
}), React__default.createElement(material.Typography, {
|
4386
4551
|
fontWeight: 700,
|
4387
4552
|
fontSize: "13px",
|
4388
4553
|
lineHeight: "15.51px",
|
4389
|
-
color:
|
4554
|
+
color: styles.dark
|
4390
4555
|
}, "\uC644\uB8CC \uCC98\uB9AC"))) : React__default.createElement("div", null));
|
4391
4556
|
};
|
4392
4557
|
return React__default.createElement(material.Grid, {
|
@@ -4401,7 +4566,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4401
4566
|
}, React__default.createElement(material.Typography, {
|
4402
4567
|
fontWeight: 800,
|
4403
4568
|
fontSize: "20px",
|
4404
|
-
color:
|
4569
|
+
color: styles.darker,
|
4405
4570
|
lineHeight: "23.87px"
|
4406
4571
|
}, t("question_and_answer"))), renderHeader(), React__default.createElement(ConfirmDialog, {
|
4407
4572
|
open: openDialog,
|
@@ -5071,7 +5236,7 @@ var InputText = function InputText(props) {
|
|
5071
5236
|
}, props));
|
5072
5237
|
};
|
5073
5238
|
|
5074
|
-
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question
|
5239
|
+
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question-label":"_26ATj","question-input":"_3R8PR","question-btn":"_1VZac"};
|
5075
5240
|
|
5076
5241
|
var SCORE_OPTIONS = Array.from({
|
5077
5242
|
length: 10
|
@@ -5116,13 +5281,49 @@ var ScoreSelector = function ScoreSelector(_ref) {
|
|
5116
5281
|
});
|
5117
5282
|
};
|
5118
5283
|
|
5119
|
-
var
|
5120
|
-
var
|
5121
|
-
|
5122
|
-
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5284
|
+
var BpIcon = material.styled('span')(function (_ref) {
|
5285
|
+
var theme = _ref.theme;
|
5286
|
+
return {
|
5287
|
+
borderRadius: '50%',
|
5288
|
+
width: 16,
|
5289
|
+
height: 16,
|
5290
|
+
boxShadow: theme.palette.mode === 'dark' ? '0 0 0 1px rgb(16 22 26 / 40%)' : 'inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)',
|
5291
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#394b59' : '#f5f8fa',
|
5292
|
+
backgroundImage: theme.palette.mode === 'dark' ? 'linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))' : 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',
|
5293
|
+
'.Mui-focusVisible &': {
|
5294
|
+
outline: '2px auto rgba(19,124,189,.6)',
|
5295
|
+
outlineOffset: 2
|
5296
|
+
},
|
5297
|
+
'input:hover ~ &': {
|
5298
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#30404d' : '#ebf1f5'
|
5299
|
+
},
|
5300
|
+
'input:disabled ~ &': {
|
5301
|
+
boxShadow: 'none',
|
5302
|
+
background: theme.palette.mode === 'dark' ? 'rgba(57,75,89,.5)' : 'rgba(206,217,224,.5)'
|
5303
|
+
}
|
5304
|
+
};
|
5305
|
+
});
|
5306
|
+
var BpCheckedIcon = material.styled(BpIcon)({
|
5307
|
+
backgroundColor: styles.darker,
|
5308
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
5309
|
+
'&::before': {
|
5310
|
+
display: 'block',
|
5311
|
+
width: 16,
|
5312
|
+
height: 16,
|
5313
|
+
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
5314
|
+
content: '""'
|
5315
|
+
},
|
5316
|
+
'input:hover ~ &': {
|
5317
|
+
backgroundColor: styles.dark
|
5318
|
+
}
|
5319
|
+
});
|
5320
|
+
var QuestionView = function QuestionView(_ref2) {
|
5321
|
+
var index = _ref2.index,
|
5322
|
+
question = _ref2.question,
|
5323
|
+
answerCount = _ref2.answerCount,
|
5324
|
+
isDisabled = _ref2.isDisabled,
|
5325
|
+
onChangeCorrectAnswers = _ref2.onChangeCorrectAnswers,
|
5326
|
+
onChangeScoreAnswer = _ref2.onChangeScoreAnswer;
|
5126
5327
|
var _useTranslation = reactI18next.useTranslation(),
|
5127
5328
|
t = _useTranslation.t;
|
5128
5329
|
var handleChangeCorrectAnswer = function handleChangeCorrectAnswer(e) {
|
@@ -5158,7 +5359,9 @@ var QuestionView = function QuestionView(_ref) {
|
|
5158
5359
|
onChange: handleChangeCorrectAnswer,
|
5159
5360
|
disabled: isDisabled,
|
5160
5361
|
control: React__default.createElement(material.Radio, {
|
5161
|
-
size: "small"
|
5362
|
+
size: "small",
|
5363
|
+
checkedIcon: React__default.createElement(BpCheckedIcon, null),
|
5364
|
+
icon: React__default.createElement(BpIcon, null)
|
5162
5365
|
}),
|
5163
5366
|
label: t("number_question", {
|
5164
5367
|
number: i
|
@@ -5400,7 +5603,7 @@ var ArticleGroupView = function ArticleGroupView(_ref) {
|
|
5400
5603
|
}, React__default.createElement(pi.PiDotsNineLight, {
|
5401
5604
|
size: 18
|
5402
5605
|
})), React__default.createElement("div", {
|
5403
|
-
className: "px-
|
5606
|
+
className: "px-2"
|
5404
5607
|
}, React__default.createElement("p", {
|
5405
5608
|
className: "mb-0 " + styles$2["question-article"]
|
5406
5609
|
}, t("article_number")), React__default.createElement("p", {
|
@@ -7078,7 +7281,7 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7078
7281
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7079
7282
|
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7080
7283
|
return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
|
7081
|
-
color:
|
7284
|
+
color: styles.darker
|
7082
7285
|
}));
|
7083
7286
|
};
|
7084
7287
|
var CustomOption$1 = function CustomOption(props) {
|
@@ -7094,22 +7297,22 @@ var customStyles$1 = {
|
|
7094
7297
|
return _extends({}, baseStyles, {
|
7095
7298
|
fontSize: "14px",
|
7096
7299
|
fontWeight: 700,
|
7097
|
-
color:
|
7098
|
-
borderColor: state.isFocused || state.hasValue ?
|
7300
|
+
color: styles.darker,
|
7301
|
+
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7099
7302
|
});
|
7100
7303
|
},
|
7101
7304
|
input: function input(baseStyles, _) {
|
7102
7305
|
return _extends({}, baseStyles, {
|
7103
7306
|
fontSize: "14px",
|
7104
7307
|
fontWeight: 700,
|
7105
|
-
color:
|
7308
|
+
color: styles.darker
|
7106
7309
|
});
|
7107
7310
|
},
|
7108
7311
|
singleValue: function singleValue(baseStyles) {
|
7109
7312
|
return _extends({}, baseStyles, {
|
7110
7313
|
fontSize: "14px",
|
7111
7314
|
fontWeight: 700,
|
7112
|
-
color:
|
7315
|
+
color: styles.darker
|
7113
7316
|
});
|
7114
7317
|
}
|
7115
7318
|
};
|
@@ -7586,9 +7789,14 @@ var ExamDetailView = function ExamDetailView(_ref) {
|
|
7586
7789
|
}), React__default.createElement(material.Grid, {
|
7587
7790
|
item: true,
|
7588
7791
|
xs: 12
|
7589
|
-
}, React__default.createElement(
|
7792
|
+
}, React__default.createElement(material.Button, {
|
7793
|
+
variant: 'outlined',
|
7794
|
+
sx: {
|
7795
|
+
color: styles.dark,
|
7796
|
+
borderColor: styles.dark
|
7797
|
+
},
|
7590
7798
|
disabled: isDisabled,
|
7591
|
-
className:
|
7799
|
+
className: "w-100 d-flex justify-content-center align-items-center " + styles$2["question-btn"] + " mt-3",
|
7592
7800
|
onClick: handleAddArticle
|
7593
7801
|
}, React__default.createElement(fa.FaPlusCircle, {
|
7594
7802
|
className: "me-2"
|
@@ -7617,13 +7825,11 @@ var CreateExamDrawer = function CreateExamDrawer(props) {
|
|
7617
7825
|
}
|
7618
7826
|
}, React__default.createElement("div", {
|
7619
7827
|
className: styles$3["drawer-header"] + " d-flex justify-content-between align-items-center"
|
7620
|
-
}, React__default.createElement(
|
7621
|
-
|
7622
|
-
|
7828
|
+
}, React__default.createElement(material.Button, {
|
7829
|
+
variant: "outlined",
|
7830
|
+
sx: {
|
7623
7831
|
cursor: "pointer",
|
7624
7832
|
padding: "0.5rem 1rem",
|
7625
|
-
border: "1px solid #5458D5",
|
7626
|
-
backgroundColor: "white",
|
7627
7833
|
justifyContent: "center",
|
7628
7834
|
alignItems: "center",
|
7629
7835
|
borderRadius: "6px"
|
@@ -7776,10 +7982,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7776
7982
|
className: "d-flex justify-content-end"
|
7777
7983
|
}, React__default.createElement(material.Button, {
|
7778
7984
|
variant: "outlined",
|
7779
|
-
sx: {
|
7780
|
-
borderColor: "#5458D5",
|
7781
|
-
color: "#5458D5"
|
7782
|
-
},
|
7783
7985
|
onClick: function onClick() {
|
7784
7986
|
return handleOpenCreateExamDialog();
|
7785
7987
|
},
|
@@ -7790,7 +7992,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7790
7992
|
}, React__default.createElement(material.Typography, null, t("create_new_exam"))), !!id && React__default.createElement(material.Button, {
|
7791
7993
|
className: "mx-1",
|
7792
7994
|
variant: "contained",
|
7793
|
-
color: "primary",
|
7794
7995
|
startIcon: React__default.createElement(fa.FaPlus, {
|
7795
7996
|
size: 12
|
7796
7997
|
}),
|
@@ -9183,8 +9384,8 @@ var defaultSeries = function defaultSeries(t) {
|
|
9183
9384
|
}];
|
9184
9385
|
};
|
9185
9386
|
|
9186
|
-
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
|
9187
|
-
var
|
9387
|
+
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab, selectedTab) {
|
9388
|
+
var _allSeries$dataChartI;
|
9188
9389
|
if (examSessionId === void 0) {
|
9189
9390
|
examSessionId = 0;
|
9190
9391
|
}
|
@@ -9196,10 +9397,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9196
9397
|
}
|
9197
9398
|
var query = new URLSearchParams(searchParam);
|
9198
9399
|
var dispatch = reactRedux.useDispatch();
|
9199
|
-
var
|
9200
|
-
var _state$common
|
9201
|
-
return
|
9400
|
+
var user = reactRedux.useSelector(function (state) {
|
9401
|
+
var _state$common;
|
9402
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user;
|
9202
9403
|
});
|
9404
|
+
var roles = (user === null || user === void 0 ? void 0 : user.roles) || [];
|
9203
9405
|
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(exports.Role.Student);
|
9204
9406
|
var examCode = query.get("examCode") || "";
|
9205
9407
|
var language = reactRedux.useSelector(function (state) {
|
@@ -9207,8 +9409,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9207
9409
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
9208
9410
|
});
|
9209
9411
|
var _useState = React.useState(),
|
9210
|
-
|
9211
|
-
|
9412
|
+
resultData = _useState[0],
|
9413
|
+
setResultData = _useState[1];
|
9212
9414
|
var _useState2 = React.useState(),
|
9213
9415
|
effectSize = _useState2[0],
|
9214
9416
|
setEffectSize = _useState2[1];
|
@@ -9224,12 +9426,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9224
9426
|
var _useState6 = React.useState(0),
|
9225
9427
|
dataChartIndex = _useState6[0],
|
9226
9428
|
setDataChartIndex = _useState6[1];
|
9227
|
-
var _useState7 = React.useState(
|
9228
|
-
problem1: false,
|
9229
|
-
problem2: false,
|
9230
|
-
problem3: false,
|
9231
|
-
problem4: false
|
9232
|
-
}),
|
9429
|
+
var _useState7 = React.useState(""),
|
9233
9430
|
openProblem = _useState7[0],
|
9234
9431
|
setOpenProblem = _useState7[1];
|
9235
9432
|
var _useTranslation = reactI18next.useTranslation(),
|
@@ -9244,7 +9441,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9244
9441
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9245
9442
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9246
9443
|
handleChangeTab(0);
|
9247
|
-
|
9444
|
+
setDataChartIndex(0);
|
9445
|
+
setResultData((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9248
9446
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9249
9447
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
9250
9448
|
setTimelyOrderQuestions((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
|
@@ -9256,6 +9454,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9256
9454
|
});
|
9257
9455
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
9258
9456
|
};
|
9457
|
+
if (!examCode) return Promise.resolve();
|
9259
9458
|
dispatch(setLoading(true));
|
9260
9459
|
var _temp3 = _catch(function () {
|
9261
9460
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9279,7 +9478,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9279
9478
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9280
9479
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9281
9480
|
handleChangeTab(0);
|
9282
|
-
|
9481
|
+
setDataChartIndex(0);
|
9482
|
+
setResultData((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9283
9483
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9284
9484
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
9285
9485
|
setTimelyOrderQuestions((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
|
@@ -9291,6 +9491,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9291
9491
|
});
|
9292
9492
|
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
9293
9493
|
};
|
9494
|
+
if (!examCode || !examSessionId || !studentId) return Promise.resolve();
|
9294
9495
|
dispatch(setLoading(true));
|
9295
9496
|
var _temp7 = _catch(function () {
|
9296
9497
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9305,19 +9506,28 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9305
9506
|
}
|
9306
9507
|
};
|
9307
9508
|
var setExampleData = function setExampleData() {
|
9308
|
-
|
9509
|
+
setResultData(EXAM_RESULT);
|
9309
9510
|
setLongTimeSpend(LONGTIME_SPEND_QUESTIONS);
|
9310
9511
|
setEffectSize(EFFECT_SIZE_QUESTIONS);
|
9311
9512
|
setTimelyOrderQuestions(TIMELY_ORDER_QUESTIONS);
|
9312
9513
|
setCategoryResponses(CATEGORY_RESPONSES);
|
9313
9514
|
};
|
9515
|
+
var resetData = function resetData() {
|
9516
|
+
setResultData(undefined);
|
9517
|
+
setLongTimeSpend([]);
|
9518
|
+
setEffectSize([]);
|
9519
|
+
setTimelyOrderQuestions([]);
|
9520
|
+
setCategoryResponses([]);
|
9521
|
+
};
|
9314
9522
|
React.useEffect(function () {
|
9315
9523
|
var getData = function getData() {
|
9524
|
+
resetData();
|
9525
|
+
if (!(user !== null && user !== void 0 && user.email)) return;
|
9316
9526
|
isStudent && getStudentData(examCode);
|
9317
9527
|
!isStudent && getStudentDataByTeacher(code, examSessionId, studentId);
|
9318
9528
|
};
|
9319
9529
|
examCode === "example-code" ? setExampleData() : getData();
|
9320
|
-
}, [examCode, isStudent, code, examSessionId, studentId]);
|
9530
|
+
}, [examCode, isStudent, code, examSessionId, studentId, user === null || user === void 0 ? void 0 : user.email]);
|
9321
9531
|
var handlePrevChart = function handlePrevChart() {
|
9322
9532
|
if (dataChartIndex > 0) {
|
9323
9533
|
setDataChartIndex(dataChartIndex - 1);
|
@@ -9332,27 +9542,28 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9332
9542
|
navigate("/student/my-story/live-main");
|
9333
9543
|
};
|
9334
9544
|
var totalTime = React.useMemo(function () {
|
9335
|
-
var
|
9336
|
-
if (!(
|
9337
|
-
var totalTime =
|
9545
|
+
var _resultData$questions;
|
9546
|
+
if (!(resultData !== null && resultData !== void 0 && (_resultData$questions = resultData.questions) !== null && _resultData$questions !== void 0 && _resultData$questions.length)) return "0" + t("seconds");
|
9547
|
+
var totalTime = resultData === null || resultData === void 0 ? void 0 : resultData.questions.reduce(function (val, current) {
|
9338
9548
|
return val + Math.round((current === null || current === void 0 ? void 0 : current.duration) || 0);
|
9339
9549
|
}, 0);
|
9340
9550
|
return totalTime < 60 ? "" + totalTime + t("seconds") : t("mins_mins_seconds_seconds", {
|
9341
9551
|
mins: Math.floor(totalTime / 60),
|
9342
9552
|
seconds: totalTime % 60
|
9343
9553
|
});
|
9344
|
-
}, [JSON.stringify(
|
9554
|
+
}, [JSON.stringify(resultData === null || resultData === void 0 ? void 0 : resultData.questions), language]);
|
9345
9555
|
var allChartOptions = React.useMemo(function () {
|
9346
9556
|
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9557
|
+
var _questions$length;
|
9558
|
+
var questions = timelyOrderQuestion.questions || null;
|
9559
|
+
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9347
9560
|
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9348
9561
|
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9349
9562
|
y: {
|
9350
9563
|
formatter: function formatter(val, _ref) {
|
9351
9564
|
var dataPointIndex = _ref.dataPointIndex;
|
9352
9565
|
if (dataPointIndex > 0) {
|
9353
|
-
var _questions
|
9354
|
-
var questions = timelyOrderQuestion.questions || null;
|
9355
|
-
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9566
|
+
var _questions;
|
9356
9567
|
return val != null ? t("problem_number_question", {
|
9357
9568
|
number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
|
9358
9569
|
}) : t("no_data");
|
@@ -9363,19 +9574,17 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9363
9574
|
}),
|
9364
9575
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9365
9576
|
categories: ["."].concat(Array.from({
|
9366
|
-
length:
|
9577
|
+
length: questionLength
|
9367
9578
|
}, function (_, i) {
|
9368
9579
|
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9369
9580
|
}), ["."])
|
9370
9581
|
}),
|
9371
9582
|
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9372
|
-
tickAmount:
|
9373
|
-
max:
|
9583
|
+
tickAmount: questions.length + 1,
|
9584
|
+
max: questions.length + 1,
|
9374
9585
|
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9375
9586
|
formatter: function formatter(val) {
|
9376
|
-
var
|
9377
|
-
var questions = timelyOrderQuestion.questions || null;
|
9378
|
-
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9587
|
+
var _questions2;
|
9379
9588
|
return val != null ? t("problem_number_question", {
|
9380
9589
|
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9381
9590
|
}) : t("no_data");
|
@@ -9423,7 +9632,46 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9423
9632
|
}];
|
9424
9633
|
});
|
9425
9634
|
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9426
|
-
var chartOptions = (
|
9635
|
+
var chartOptions = React.useMemo(function () {
|
9636
|
+
var _timelyOrderQuestions, _questions$length2;
|
9637
|
+
var questions = ((_timelyOrderQuestions = timelyOrderQuestions[dataChartIndex]) === null || _timelyOrderQuestions === void 0 ? void 0 : _timelyOrderQuestions.questions) || null;
|
9638
|
+
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9639
|
+
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9640
|
+
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9641
|
+
y: {
|
9642
|
+
formatter: function formatter(val, _ref2) {
|
9643
|
+
var dataPointIndex = _ref2.dataPointIndex;
|
9644
|
+
if (dataPointIndex > 0) {
|
9645
|
+
var _questions3;
|
9646
|
+
return val != null ? t("problem_number_question", {
|
9647
|
+
number: questions !== null ? (((_questions3 = questions[questionLength - val]) === null || _questions3 === void 0 ? void 0 : _questions3.questionOrder) || 0) + 1 : val
|
9648
|
+
}) : t("no_data");
|
9649
|
+
}
|
9650
|
+
return null;
|
9651
|
+
}
|
9652
|
+
}
|
9653
|
+
}),
|
9654
|
+
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9655
|
+
categories: ["."].concat(Array.from({
|
9656
|
+
length: questionLength
|
9657
|
+
}, function (_, i) {
|
9658
|
+
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9659
|
+
}), ["."])
|
9660
|
+
}),
|
9661
|
+
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9662
|
+
tickAmount: questionLength + 1,
|
9663
|
+
max: questionLength + 1,
|
9664
|
+
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9665
|
+
formatter: function formatter(val) {
|
9666
|
+
var _questions4;
|
9667
|
+
return val != null ? t("problem_number_question", {
|
9668
|
+
number: questions !== null ? (((_questions4 = questions[questionLength - val]) === null || _questions4 === void 0 ? void 0 : _questions4.questionOrder) || 0) + 1 : val
|
9669
|
+
}) : t("no_data");
|
9670
|
+
}
|
9671
|
+
})
|
9672
|
+
})
|
9673
|
+
});
|
9674
|
+
}, [JSON.stringify(allChartOptions), dataChartIndex, language]);
|
9427
9675
|
var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
|
9428
9676
|
var handleExportPdf = function handleExportPdf() {
|
9429
9677
|
try {
|
@@ -9602,9 +9850,12 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9602
9850
|
return Promise.reject(e);
|
9603
9851
|
}
|
9604
9852
|
};
|
9853
|
+
React.useEffect(function () {
|
9854
|
+
setDataChartIndex(0);
|
9855
|
+
}, [selectedTab]);
|
9605
9856
|
var examTime = React.useMemo(function () {
|
9606
|
-
return utcToLocalTime(
|
9607
|
-
}, [
|
9857
|
+
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");
|
9858
|
+
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
9608
9859
|
return {
|
9609
9860
|
examTime: examTime,
|
9610
9861
|
series: series,
|
@@ -9614,7 +9865,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9614
9865
|
dataChartIndex: dataChartIndex,
|
9615
9866
|
totalTime: totalTime,
|
9616
9867
|
isStudent: isStudent,
|
9617
|
-
|
9868
|
+
resultData: resultData,
|
9618
9869
|
effectSize: effectSize,
|
9619
9870
|
longTimeSpend: longTimeSpend,
|
9620
9871
|
timelyOrderQuestions: timelyOrderQuestions,
|
@@ -11088,10 +11339,17 @@ function CreateNewQuestionDialog(_ref) {
|
|
11088
11339
|
className: styles$4['btn-cancel'],
|
11089
11340
|
onClick: toggleCreateQuestion
|
11090
11341
|
}, React__default.createElement(Typography, {
|
11342
|
+
sx: {
|
11343
|
+
color: styles.dark + " !important"
|
11344
|
+
},
|
11091
11345
|
fontWeight: 700,
|
11092
11346
|
fontSize: '14px',
|
11093
11347
|
lineHeight: '16.71px'
|
11094
11348
|
}, "\uCDE8\uC18C")), React__default.createElement(Button, {
|
11349
|
+
variant: 'contained',
|
11350
|
+
sx: {
|
11351
|
+
bgcolor: styles.dark
|
11352
|
+
},
|
11095
11353
|
className: styles$4['btn-register'],
|
11096
11354
|
type: "submit"
|
11097
11355
|
}, React__default.createElement(Typography, {
|
@@ -11144,7 +11402,9 @@ function MyAnswer(_ref) {
|
|
11144
11402
|
}
|
11145
11403
|
}, question.isStar ? React__default.createElement(iconStarQuestion, null) : React__default.createElement(iconNoStarQuestion, null), React__default.createElement("span", {
|
11146
11404
|
className: styles$4["questionOrder"]
|
11147
|
-
},
|
11405
|
+
}, t("number_question", {
|
11406
|
+
number: question.questionOrder + 1
|
11407
|
+
}))), React__default.createElement("div", {
|
11148
11408
|
className: styles["custom-col-2"],
|
11149
11409
|
style: {
|
11150
11410
|
display: "flex",
|
@@ -11153,11 +11413,11 @@ function MyAnswer(_ref) {
|
|
11153
11413
|
}
|
11154
11414
|
}, question.isCorrect && question.selectedAnswers !== "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconCorrectAnswer, null), React__default.createElement("span", {
|
11155
11415
|
className: styles$4["answerCorrect"]
|
11156
|
-
}, "
|
11416
|
+
}, t("correct"))), !question.isCorrect && question.selectedAnswers !== "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconCorrectAnswer$1, null), React__default.createElement("span", {
|
11157
11417
|
className: styles$4["answerIncorrect"]
|
11158
|
-
}, "
|
11418
|
+
}, t("incorrect"))), question.selectedAnswers === "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconNoGrass, null), React__default.createElement("span", {
|
11159
11419
|
className: styles$4["answerNograss"]
|
11160
|
-
}, "
|
11420
|
+
}, t("no_solution")))), React__default.createElement("div", {
|
11161
11421
|
className: styles["custom-col-2"],
|
11162
11422
|
style: {
|
11163
11423
|
display: "flex",
|
@@ -11173,7 +11433,7 @@ function MyAnswer(_ref) {
|
|
11173
11433
|
margin: 0
|
11174
11434
|
},
|
11175
11435
|
className: styles$4["answerNoTime"]
|
11176
|
-
}, "
|
11436
|
+
}, t("no_time"))), React__default.createElement("div", {
|
11177
11437
|
className: styles["custom-col-2"],
|
11178
11438
|
style: {
|
11179
11439
|
display: "flex",
|
@@ -11206,7 +11466,7 @@ function MyAnswer(_ref) {
|
|
11206
11466
|
margin: 0
|
11207
11467
|
},
|
11208
11468
|
className: styles$4["answerNoTime"]
|
11209
|
-
}, "
|
11469
|
+
}, t("no_time"))), isStudent && React__default.createElement("div", {
|
11210
11470
|
className: styles["custom-col-2"],
|
11211
11471
|
style: {
|
11212
11472
|
display: "flex",
|
@@ -11218,7 +11478,7 @@ function MyAnswer(_ref) {
|
|
11218
11478
|
return handleOpenChat(e, question === null || question === void 0 ? void 0 : question.id);
|
11219
11479
|
}
|
11220
11480
|
}, React__default.createElement(iconChat, {
|
11221
|
-
color:
|
11481
|
+
color: styles.gray_700
|
11222
11482
|
})))));
|
11223
11483
|
});
|
11224
11484
|
};
|
@@ -11256,7 +11516,7 @@ function MyAnswer(_ref) {
|
|
11256
11516
|
fontWeight: 600,
|
11257
11517
|
color: "#97A1AF"
|
11258
11518
|
}
|
11259
|
-
}, "
|
11519
|
+
}, t("problem_number"))), React__default.createElement("div", {
|
11260
11520
|
className: styles["custom-col-2"],
|
11261
11521
|
style: {
|
11262
11522
|
display: "flex",
|
@@ -11268,7 +11528,7 @@ function MyAnswer(_ref) {
|
|
11268
11528
|
fontWeight: 600,
|
11269
11529
|
color: "#97A1AF"
|
11270
11530
|
}
|
11271
|
-
}, "
|
11531
|
+
}, t("answer"))), React__default.createElement("div", {
|
11272
11532
|
className: styles["custom-col-2"],
|
11273
11533
|
style: {
|
11274
11534
|
display: "flex",
|
@@ -11280,7 +11540,7 @@ function MyAnswer(_ref) {
|
|
11280
11540
|
fontWeight: 600,
|
11281
11541
|
color: "#97A1AF"
|
11282
11542
|
}
|
11283
|
-
}, "
|
11543
|
+
}, t("solve_time"))), React__default.createElement("div", {
|
11284
11544
|
className: styles["custom-col-2"],
|
11285
11545
|
style: {
|
11286
11546
|
display: "flex",
|
@@ -11293,7 +11553,7 @@ function MyAnswer(_ref) {
|
|
11293
11553
|
fontWeight: 600,
|
11294
11554
|
color: "#97A1AF"
|
11295
11555
|
}
|
11296
|
-
}, "
|
11556
|
+
}, t("comparison_of_top_rankings"))), React__default.createElement("div", {
|
11297
11557
|
className: styles["custom-col-2"],
|
11298
11558
|
style: {
|
11299
11559
|
display: "flex",
|
@@ -11306,14 +11566,14 @@ function MyAnswer(_ref) {
|
|
11306
11566
|
fontWeight: 600,
|
11307
11567
|
color: "#97A1AF"
|
11308
11568
|
}
|
11309
|
-
}, "
|
11569
|
+
}, t("total_correct_rate")))), React__default.createElement("div", {
|
11310
11570
|
className: styles$4["titleMyAnswer2"]
|
11311
11571
|
}, React__default.createElement(material.Typography, {
|
11312
11572
|
sx: {
|
11313
11573
|
color: "#97A1AF",
|
11314
11574
|
fontSize: "12px"
|
11315
11575
|
}
|
11316
|
-
}, "
|
11576
|
+
}, t("_category")), React__default.createElement(material.Typography, {
|
11317
11577
|
sx: {
|
11318
11578
|
color: "#414E62",
|
11319
11579
|
fontSize: "12px",
|
@@ -11377,6 +11637,8 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
11377
11637
|
var CompareGrass = function CompareGrass(_ref) {
|
11378
11638
|
var effectSize = _ref.effectSize,
|
11379
11639
|
isPrint = _ref.isPrint;
|
11640
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11641
|
+
t = _useTranslation.t;
|
11380
11642
|
var renderTableBody = function renderTableBody(effectSize) {
|
11381
11643
|
return effectSize.map(function (item, index) {
|
11382
11644
|
return React__default.createElement("tr", {
|
@@ -11387,22 +11649,28 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11387
11649
|
} : {}
|
11388
11650
|
}, React__default.createElement("td", {
|
11389
11651
|
className: styles$4["tdcolumn1"]
|
11390
|
-
}, "
|
11652
|
+
}, t("problem"), " ", item.questionOrder + 1), React__default.createElement("td", {
|
11391
11653
|
style: {
|
11392
11654
|
textAlign: "center",
|
11393
11655
|
color: "#202B37"
|
11394
11656
|
}
|
11395
|
-
},
|
11657
|
+
}, t("number_question", {
|
11658
|
+
number: item.correctAnswers
|
11659
|
+
})), React__default.createElement("td", {
|
11396
11660
|
className: styles$4["tdcolumn3"],
|
11397
11661
|
style: {
|
11398
11662
|
color: item.isCorrect ? "#1EE288" : "#F34B4B"
|
11399
11663
|
}
|
11400
|
-
}, item.selectedAnswers ?
|
11664
|
+
}, item.selectedAnswers ? t("number_question", {
|
11665
|
+
number: item.selectedAnswers
|
11666
|
+
}) : ""), React__default.createElement("td", {
|
11401
11667
|
style: {
|
11402
11668
|
textAlign: "center",
|
11403
11669
|
color: "#414E62"
|
11404
11670
|
}
|
11405
|
-
}, item.mostSelectedAnswers ?
|
11671
|
+
}, item.mostSelectedAnswers ? t("number_question", {
|
11672
|
+
number: item.mostSelectedAnswers
|
11673
|
+
}) : ""), React__default.createElement("td", null, React__default.createElement("div", {
|
11406
11674
|
className: styles$4["classification"]
|
11407
11675
|
}, item.problemCategories.map(function (problem, index) {
|
11408
11676
|
return React__default.createElement("div", {
|
@@ -11411,23 +11679,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11411
11679
|
style: {
|
11412
11680
|
border: "1px solid #1EE288"
|
11413
11681
|
}
|
11414
|
-
}, "
|
11682
|
+
}, t("easy_problem")), problem === 3 && React__default.createElement("span", {
|
11415
11683
|
style: {
|
11416
11684
|
border: "1px solid #FDDB64"
|
11417
11685
|
}
|
11418
|
-
}, "
|
11686
|
+
}, t("trick_problem")), problem === 2 && React__default.createElement("span", {
|
11419
11687
|
style: {
|
11420
11688
|
border: "1px solid #F34B4B"
|
11421
11689
|
}
|
11422
|
-
}, "
|
11690
|
+
}, t("differential_problem")), problem === 0 && React__default.createElement("span", {
|
11423
11691
|
style: {
|
11424
11692
|
border: "1px solid #DDDDDD"
|
11425
11693
|
}
|
11426
|
-
}, "
|
11694
|
+
}, t("general_problem")), problem === 4 && React__default.createElement("span", {
|
11427
11695
|
style: {
|
11428
11696
|
border: "1px solid #FF0000"
|
11429
11697
|
}
|
11430
|
-
}, "
|
11698
|
+
}, t("Difficult_problem")));
|
11431
11699
|
}))));
|
11432
11700
|
});
|
11433
11701
|
};
|
@@ -11457,23 +11725,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11457
11725
|
className: isPrint ? PrintHeaderClassName : ""
|
11458
11726
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
11459
11727
|
className: styles$4["thcolumn1"]
|
11460
|
-
}, "
|
11728
|
+
}, t("problem_number")), React__default.createElement("th", {
|
11461
11729
|
style: {
|
11462
11730
|
textAlign: "center"
|
11463
11731
|
}
|
11464
|
-
}, "
|
11732
|
+
}, t("answer")), React__default.createElement("th", {
|
11465
11733
|
style: {
|
11466
11734
|
textAlign: "center"
|
11467
11735
|
}
|
11468
|
-
}, "
|
11736
|
+
}, t("my_solution")), React__default.createElement("th", {
|
11469
11737
|
style: {
|
11470
11738
|
textAlign: "center"
|
11471
11739
|
}
|
11472
|
-
}, "
|
11740
|
+
}, t("most_solutions")), React__default.createElement("th", {
|
11473
11741
|
style: {
|
11474
11742
|
textAlign: "center"
|
11475
11743
|
}
|
11476
|
-
}, "
|
11744
|
+
}, t("problem_classification")))), isPrint ? renderPrintTableBody(effectSize) : React__default.createElement("tbody", null, renderTableBody(effectSize))))));
|
11477
11745
|
};
|
11478
11746
|
|
11479
11747
|
var iconUpArrow = function iconUpArrow(_ref) {
|
@@ -11564,10 +11832,14 @@ var iconAssignedQuestions = function iconAssignedQuestions(_ref) {
|
|
11564
11832
|
};
|
11565
11833
|
|
11566
11834
|
var TrickyProblem = function TrickyProblem(_ref) {
|
11567
|
-
var
|
11835
|
+
var keyOpen = _ref.keyOpen,
|
11836
|
+
data = _ref.data,
|
11568
11837
|
openProblem = _ref.openProblem,
|
11569
11838
|
changeOpen = _ref.changeOpen,
|
11570
11839
|
isPrint = _ref.isPrint;
|
11840
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11841
|
+
t = _useTranslation.t;
|
11842
|
+
var isOpen = openProblem === keyOpen;
|
11571
11843
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11572
11844
|
return i.isStar && !i.isCorrect;
|
11573
11845
|
});
|
@@ -11577,82 +11849,90 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11577
11849
|
var renderProblems = function renderProblems() {
|
11578
11850
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11579
11851
|
className: styles$4["titleTrickyProblem"]
|
11580
|
-
}, React__default.createElement(iconX, null), React__default.createElement("span", null, "
|
11852
|
+
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11581
11853
|
className: styles$4["wrongQuestions"]
|
11582
11854
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11583
11855
|
return React__default.createElement("span", {
|
11584
11856
|
key: question.id,
|
11585
11857
|
className: styles$4["question"]
|
11586
|
-
},
|
11858
|
+
}, t("number_question", {
|
11859
|
+
number: question.questionOrder + 1
|
11860
|
+
}));
|
11587
11861
|
}), !data.questions.length && React__default.createElement("div", {
|
11588
11862
|
className: styles$4["noData"]
|
11589
|
-
}, "
|
11863
|
+
}, t("no_data"))), React__default.createElement("div", {
|
11590
11864
|
className: styles$4["titleTrickyProblem"]
|
11591
|
-
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, "
|
11865
|
+
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11592
11866
|
className: styles$4["assignedQuestions"]
|
11593
11867
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11594
11868
|
return React__default.createElement("div", {
|
11595
11869
|
key: question.id,
|
11596
11870
|
className: styles$4["question"]
|
11597
|
-
},
|
11871
|
+
}, t("number_question", {
|
11872
|
+
number: question.questionOrder + 1
|
11873
|
+
}));
|
11598
11874
|
}), !data.questions.length && React__default.createElement("div", {
|
11599
11875
|
className: styles$4["noData"]
|
11600
|
-
}, "
|
11876
|
+
}, t("no_data"))));
|
11601
11877
|
};
|
11602
11878
|
var renderPrintProblems = function renderPrintProblems() {
|
11603
11879
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11604
11880
|
className: PrintContentClassName
|
11605
11881
|
}, React__default.createElement("div", {
|
11606
11882
|
className: styles$4["titleTrickyProblem"]
|
11607
|
-
}, React__default.createElement(iconX, null), React__default.createElement("span", null, "
|
11883
|
+
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11608
11884
|
className: styles$4["wrongQuestions"]
|
11609
11885
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11610
11886
|
return React__default.createElement("span", {
|
11611
11887
|
key: question.id,
|
11612
11888
|
className: styles$4["question"]
|
11613
|
-
},
|
11889
|
+
}, t("number_question", {
|
11890
|
+
number: question.questionOrder + 1
|
11891
|
+
}));
|
11614
11892
|
}), !data.questions.length && React__default.createElement("div", {
|
11615
11893
|
className: styles$4["noData"]
|
11616
|
-
}, "
|
11894
|
+
}, t("no_data")))), React__default.createElement("div", {
|
11617
11895
|
className: PrintContentClassName
|
11618
11896
|
}, React__default.createElement("div", {
|
11619
11897
|
className: styles$4["titleTrickyProblem"]
|
11620
|
-
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, "
|
11898
|
+
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11621
11899
|
className: styles$4["assignedQuestions"]
|
11622
11900
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11623
11901
|
return React__default.createElement("div", {
|
11624
11902
|
key: question.id,
|
11625
11903
|
className: styles$4["question"]
|
11626
|
-
},
|
11904
|
+
}, t("number_question", {
|
11905
|
+
number: question.questionOrder + 1
|
11906
|
+
}));
|
11627
11907
|
}), !data.questions.length && React__default.createElement("div", {
|
11628
11908
|
className: styles$4["noData"]
|
11629
|
-
}, "
|
11909
|
+
}, t("no_data")))));
|
11630
11910
|
};
|
11631
11911
|
return React__default.createElement("div", {
|
11632
11912
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11633
11913
|
}, React__default.createElement("div", {
|
11634
|
-
className: (!
|
11914
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11635
11915
|
onClick: function onClick() {
|
11636
|
-
return changeOpen(
|
11637
|
-
problem1: !openProblem.problem1
|
11638
|
-
}));
|
11916
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11639
11917
|
}
|
11640
11918
|
}, React__default.createElement(material.Typography, {
|
11641
11919
|
sx: {
|
11642
|
-
color: !
|
11920
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11643
11921
|
fontSize: "14px",
|
11644
11922
|
fontWeight: 700
|
11645
11923
|
}
|
11646
|
-
}, "
|
11924
|
+
}, t("tricky_problems")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, isPrint ? renderPrintProblems() : renderProblems()));
|
11647
11925
|
};
|
11648
11926
|
|
11649
11927
|
var ProtractedProblem = function ProtractedProblem(_ref) {
|
11650
|
-
var
|
11928
|
+
var keyOpen = _ref.keyOpen,
|
11929
|
+
data = _ref.data,
|
11651
11930
|
openProblem = _ref.openProblem,
|
11652
11931
|
changeOpen = _ref.changeOpen,
|
11653
11932
|
isPrint = _ref.isPrint;
|
11654
11933
|
var _useTranslation = reactI18next.useTranslation(),
|
11655
11934
|
t = _useTranslation.t;
|
11935
|
+
var isOpen = openProblem === keyOpen;
|
11656
11936
|
var renderQuestions = function renderQuestions(data) {
|
11657
11937
|
return data.map(function (item) {
|
11658
11938
|
return React__default.createElement("div", {
|
@@ -11662,15 +11942,17 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11662
11942
|
className: styles$4["contentColumn1"]
|
11663
11943
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11664
11944
|
className: styles$4["span1"]
|
11665
|
-
}, "
|
11945
|
+
}, t("problem")), React__default.createElement("span", {
|
11666
11946
|
className: styles$4["span2"]
|
11667
|
-
},
|
11947
|
+
}, t("number_question", {
|
11948
|
+
number: item.questionOrder + 1
|
11949
|
+
})))), React__default.createElement("div", {
|
11668
11950
|
className: styles$4["contentColumn2"]
|
11669
11951
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11670
11952
|
className: styles$4["span1"]
|
11671
|
-
}, "
|
11953
|
+
}, t("my_time")), React__default.createElement("span", {
|
11672
11954
|
className: styles$4["span2"]
|
11673
|
-
}, "
|
11955
|
+
}, t("top_time"))), React__default.createElement("div", null, React__default.createElement("span", {
|
11674
11956
|
className: styles$4["duration"]
|
11675
11957
|
}, formatTimeSecond(item.duration, t)), React__default.createElement("span", {
|
11676
11958
|
className: styles$4["topDuration"]
|
@@ -11689,30 +11971,32 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11689
11971
|
return React__default.createElement("div", {
|
11690
11972
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11691
11973
|
}, React__default.createElement("div", {
|
11692
|
-
className: (!
|
11974
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11693
11975
|
onClick: function onClick() {
|
11694
|
-
return changeOpen(
|
11695
|
-
problem2: !openProblem.problem2
|
11696
|
-
}));
|
11976
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11697
11977
|
}
|
11698
11978
|
}, React__default.createElement(material.Typography, {
|
11699
11979
|
sx: {
|
11700
|
-
color: !
|
11980
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11701
11981
|
fontSize: "14px",
|
11702
11982
|
fontWeight: 700
|
11703
11983
|
}
|
11704
|
-
}, "
|
11984
|
+
}, t("problems_that_took_a_long_time")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11705
11985
|
className: styles$4["wrapperContent"]
|
11706
11986
|
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React__default.createElement("div", {
|
11707
11987
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11708
|
-
}, "
|
11988
|
+
}, t("no_data")))));
|
11709
11989
|
};
|
11710
11990
|
|
11711
11991
|
var Vulnerable = function Vulnerable(_ref) {
|
11712
11992
|
var data = _ref.data,
|
11993
|
+
keyOpen = _ref.keyOpen,
|
11713
11994
|
openProblem = _ref.openProblem,
|
11714
11995
|
changeOpen = _ref.changeOpen,
|
11715
11996
|
isPrint = _ref.isPrint;
|
11997
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11998
|
+
t = _useTranslation.t;
|
11999
|
+
var isOpen = openProblem === keyOpen;
|
11716
12000
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11717
12001
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
11718
12002
|
}).sort(function (q1, q2) {
|
@@ -11727,19 +12011,25 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11727
12011
|
className: styles$4["contentColumn1"]
|
11728
12012
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11729
12013
|
className: styles$4["span1"]
|
11730
|
-
}, "
|
12014
|
+
}, t("problem_number")), React__default.createElement("span", {
|
11731
12015
|
className: styles$4["span2"]
|
11732
|
-
},
|
12016
|
+
}, t("number_question", {
|
12017
|
+
number: question.questionOrder + 1
|
12018
|
+
})))), React__default.createElement("div", {
|
11733
12019
|
className: styles$4["contentColumn2"]
|
11734
12020
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11735
12021
|
className: styles$4["span1"]
|
11736
|
-
}, "
|
12022
|
+
}, t("total_correct_rate")), React__default.createElement("span", {
|
11737
12023
|
className: styles$4["span2"]
|
11738
|
-
}, "
|
12024
|
+
}, t("my_wrong_answer"))), React__default.createElement("div", null, React__default.createElement("span", {
|
11739
12025
|
className: styles$4["overallCorrectRate"]
|
11740
12026
|
}, question.overallCorrectRate.toFixed(2), "%"), React__default.createElement("span", {
|
11741
12027
|
className: styles$4["answer"]
|
11742
|
-
},
|
12028
|
+
}, t("number_question", {
|
12029
|
+
number: question.selectedAnswers
|
12030
|
+
}), " (", t("answer"), " ", t("number_question", {
|
12031
|
+
number: question.correctAnswers
|
12032
|
+
}), ")"))));
|
11743
12033
|
});
|
11744
12034
|
};
|
11745
12035
|
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
@@ -11754,30 +12044,32 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11754
12044
|
return React__default.createElement("div", {
|
11755
12045
|
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11756
12046
|
}, React__default.createElement("div", {
|
11757
|
-
className: (!
|
12047
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11758
12048
|
onClick: function onClick() {
|
11759
|
-
return changeOpen(
|
11760
|
-
problem3: !openProblem.problem3
|
11761
|
-
}));
|
12049
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11762
12050
|
}
|
11763
12051
|
}, React__default.createElement(material.Typography, {
|
11764
12052
|
sx: {
|
11765
|
-
color: !
|
12053
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11766
12054
|
fontSize: "14px",
|
11767
12055
|
fontWeight: 700
|
11768
12056
|
}
|
11769
|
-
}, "
|
12057
|
+
}, t("issues_vulnerable")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11770
12058
|
className: styles$4["wrapperContent"]
|
11771
12059
|
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React__default.createElement("div", {
|
11772
12060
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11773
|
-
}, "
|
12061
|
+
}, t("no_data")))));
|
11774
12062
|
};
|
11775
12063
|
|
11776
12064
|
var GradesByTerritory = function GradesByTerritory(_ref) {
|
11777
|
-
var
|
12065
|
+
var keyOpen = _ref.keyOpen,
|
12066
|
+
data = _ref.data,
|
11778
12067
|
openProblem = _ref.openProblem,
|
11779
12068
|
changeOpen = _ref.changeOpen,
|
11780
12069
|
isPrint = _ref.isPrint;
|
12070
|
+
var _useTranslation = reactI18next.useTranslation(),
|
12071
|
+
t = _useTranslation.t;
|
12072
|
+
var isOpen = openProblem === keyOpen;
|
11781
12073
|
var renderCategories = function renderCategories(data) {
|
11782
12074
|
return data.map(function (item) {
|
11783
12075
|
var trackStyle = {
|
@@ -11792,7 +12084,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11792
12084
|
className: styles$4["name"]
|
11793
12085
|
}, item.name), React__default.createElement("div", {
|
11794
12086
|
className: styles$4["percent"]
|
11795
|
-
}, React__default.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React__default.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "
|
12087
|
+
}, React__default.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React__default.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, t("problems")))), React__default.createElement("div", {
|
11796
12088
|
className: styles$4["slider"]
|
11797
12089
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11798
12090
|
className: styles$4["track"],
|
@@ -11812,23 +12104,21 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11812
12104
|
return React__default.createElement("div", {
|
11813
12105
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11814
12106
|
}, React__default.createElement("div", {
|
11815
|
-
className: (!
|
12107
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11816
12108
|
onClick: function onClick() {
|
11817
|
-
return changeOpen(
|
11818
|
-
problem4: !openProblem.problem4
|
11819
|
-
}));
|
12109
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11820
12110
|
}
|
11821
12111
|
}, React__default.createElement(material.Typography, {
|
11822
12112
|
sx: {
|
11823
|
-
color: !
|
12113
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11824
12114
|
fontSize: "14px",
|
11825
12115
|
fontWeight: 700
|
11826
12116
|
}
|
11827
|
-
}, "
|
12117
|
+
}, t("grades_by_area")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement("div", {
|
11828
12118
|
className: styles$4["wrappContentProblem"]
|
11829
|
-
}, isPrint ? renderPrintCategories() : renderCategories(data),
|
12119
|
+
}, isPrint ? renderPrintCategories() : renderCategories(data), isOpen && !data.length && React__default.createElement("div", {
|
11830
12120
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11831
|
-
}, "
|
12121
|
+
}, t("no_data"))));
|
11832
12122
|
};
|
11833
12123
|
|
11834
12124
|
var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
@@ -11958,10 +12248,17 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
11958
12248
|
className: styles$4['btn-cancel'],
|
11959
12249
|
onClick: toggleCreateQuestion
|
11960
12250
|
}, React__default.createElement(Typography, {
|
12251
|
+
sx: {
|
12252
|
+
color: styles.dark + " !important"
|
12253
|
+
},
|
11961
12254
|
fontWeight: 700,
|
11962
12255
|
fontSize: '14px',
|
11963
12256
|
lineHeight: '16.71px'
|
11964
12257
|
}, "\uCDE8\uC18C")), React__default.createElement(Button, {
|
12258
|
+
variant: 'contained',
|
12259
|
+
sx: {
|
12260
|
+
bgcolor: styles.dark
|
12261
|
+
},
|
11965
12262
|
className: styles$4['btn-register'],
|
11966
12263
|
type: "submit"
|
11967
12264
|
}, React__default.createElement(Typography, {
|
@@ -12030,7 +12327,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12030
12327
|
var _useTab = useTab(),
|
12031
12328
|
selected = _useTab.selected,
|
12032
12329
|
handleChangeTab = _useTab.handleChangeTab;
|
12033
|
-
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
|
12330
|
+
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab, selected),
|
12034
12331
|
examTime = _useExamResult.examTime,
|
12035
12332
|
series = _useExamResult.series,
|
12036
12333
|
allSeries = _useExamResult.allSeries,
|
@@ -12040,7 +12337,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12040
12337
|
timelyOrderQuestions = _useExamResult.timelyOrderQuestions,
|
12041
12338
|
isStudent = _useExamResult.isStudent,
|
12042
12339
|
openProblem = _useExamResult.openProblem,
|
12043
|
-
|
12340
|
+
resultData = _useExamResult.resultData,
|
12044
12341
|
longTimeSpend = _useExamResult.longTimeSpend,
|
12045
12342
|
effectSize = _useExamResult.effectSize,
|
12046
12343
|
categoryResponses = _useExamResult.categoryResponses,
|
@@ -12055,7 +12352,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12055
12352
|
openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
|
12056
12353
|
toggleCreateQuestion = _useCreateQuestionDia.toggleCreateQuestion;
|
12057
12354
|
var isTabletUp = material.useMediaQuery('(min-width:900px)');
|
12058
|
-
return React__default.createElement(React.Fragment, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend &&
|
12355
|
+
return React__default.createElement(React.Fragment, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend && resultData && effectSize ? React__default.createElement("div", {
|
12059
12356
|
style: {
|
12060
12357
|
width: "100%"
|
12061
12358
|
}
|
@@ -12064,13 +12361,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12064
12361
|
padding: "24px"
|
12065
12362
|
}, React__default.createElement(material.Grid, {
|
12066
12363
|
item: true
|
12067
|
-
},
|
12364
|
+
}, resultData.courseName && React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12068
12365
|
sx: {
|
12069
12366
|
fontSize: "14px",
|
12070
12367
|
fontWeight: 600,
|
12071
|
-
color:
|
12368
|
+
color: styles.less_dark
|
12072
12369
|
}
|
12073
|
-
},
|
12370
|
+
}, resultData.courseName)), React__default.createElement(material.Box, {
|
12074
12371
|
display: "flex",
|
12075
12372
|
gap: "16px",
|
12076
12373
|
flexDirection: "column"
|
@@ -12078,78 +12375,77 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12078
12375
|
sx: {
|
12079
12376
|
fontSize: "20px",
|
12080
12377
|
fontWeight: 600,
|
12081
|
-
color:
|
12378
|
+
color: styles.darker
|
12082
12379
|
}
|
12083
|
-
},
|
12380
|
+
}, resultData.title)), React__default.createElement(material.Stack, {
|
12084
12381
|
flexDirection: "row",
|
12085
12382
|
gap: "16px"
|
12086
12383
|
}, React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12087
12384
|
sx: {
|
12088
12385
|
fontSize: "13px",
|
12089
12386
|
fontWeight: 600,
|
12090
|
-
color:
|
12387
|
+
color: styles.gray_500
|
12091
12388
|
}
|
12092
12389
|
}, t("my_score")), React__default.createElement(material.Typography, {
|
12093
12390
|
sx: {
|
12094
12391
|
fontSize: "14px",
|
12095
12392
|
fontWeight: 600,
|
12096
|
-
color:
|
12393
|
+
color: styles.darker
|
12097
12394
|
}
|
12098
12395
|
}, t("score_format", {
|
12099
|
-
score:
|
12396
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12100
12397
|
}))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12101
12398
|
sx: {
|
12102
12399
|
fontSize: "13px",
|
12103
12400
|
fontWeight: 600,
|
12104
|
-
color:
|
12401
|
+
color: styles.gray_500
|
12105
12402
|
}
|
12106
12403
|
}, t("exam_date")), React__default.createElement(material.Typography, {
|
12107
12404
|
sx: {
|
12108
12405
|
fontSize: "14px",
|
12109
12406
|
fontWeight: 600,
|
12110
|
-
color:
|
12407
|
+
color: styles.gray_700
|
12111
12408
|
}
|
12112
|
-
}, utcToLocalTime(
|
12409
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12113
12410
|
sx: {
|
12114
12411
|
fontSize: "13px",
|
12115
12412
|
fontWeight: 600,
|
12116
|
-
color:
|
12413
|
+
color: styles.gray_500
|
12117
12414
|
}
|
12118
12415
|
}, t("exam_time")), React__default.createElement(material.Typography, {
|
12119
12416
|
sx: {
|
12120
12417
|
fontSize: "14px",
|
12121
12418
|
fontWeight: 600,
|
12122
|
-
color:
|
12419
|
+
color: styles.gray_700
|
12123
12420
|
}
|
12124
12421
|
}, examTime)), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12125
12422
|
sx: {
|
12126
12423
|
fontSize: "13px",
|
12127
12424
|
fontWeight: 600,
|
12128
|
-
color:
|
12425
|
+
color: styles.gray_500
|
12129
12426
|
}
|
12130
12427
|
}, t("total_students")), React__default.createElement(material.Typography, {
|
12131
12428
|
sx: {
|
12132
12429
|
fontSize: "14px",
|
12133
12430
|
fontWeight: 600,
|
12134
|
-
color:
|
12431
|
+
color: styles.gray_700
|
12135
12432
|
}
|
12136
12433
|
}, t("number_people", {
|
12137
|
-
number:
|
12434
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12138
12435
|
}))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12139
12436
|
sx: {
|
12140
12437
|
fontSize: "13px",
|
12141
12438
|
fontWeight: 600,
|
12142
|
-
color:
|
12439
|
+
color: styles.gray_500
|
12143
12440
|
}
|
12144
12441
|
}, t("teacher_in_charge")), React__default.createElement(material.Typography, {
|
12145
12442
|
sx: {
|
12146
12443
|
fontSize: "14px",
|
12147
12444
|
fontWeight: 600,
|
12148
|
-
color:
|
12445
|
+
color: styles.gray_700
|
12149
12446
|
}
|
12150
|
-
},
|
12447
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React__default.createElement(material.Grid, {
|
12151
12448
|
container: true,
|
12152
|
-
padding: "24px",
|
12153
12449
|
className: "position-relative overflow-hidden"
|
12154
12450
|
}, !isTabletUp && React__default.createElement(material.Grid, {
|
12155
12451
|
item: true,
|
@@ -12181,7 +12477,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12181
12477
|
justifyContent: "space-between",
|
12182
12478
|
alignItems: "center",
|
12183
12479
|
display: "flex",
|
12184
|
-
|
12480
|
+
overflow: "scroll",
|
12481
|
+
bgcolor: styles.gray_100,
|
12185
12482
|
borderTop: "1px solid #E4E7EC",
|
12186
12483
|
borderBottom: "1px solid #E4E7EC"
|
12187
12484
|
}, React__default.createElement(material.Stack, {
|
@@ -12198,9 +12495,11 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12198
12495
|
sx: {
|
12199
12496
|
fontSize: "14px",
|
12200
12497
|
fontWeight: "600",
|
12201
|
-
color: value === selected ?
|
12498
|
+
color: value === selected ? styles.less_dark : styles.gray_500,
|
12202
12499
|
padding: "8px 16px",
|
12203
|
-
|
12500
|
+
"&:hover": {
|
12501
|
+
background: styles.light
|
12502
|
+
}
|
12204
12503
|
},
|
12205
12504
|
onClick: function onClick() {
|
12206
12505
|
return handleChangeTab(value);
|
@@ -12222,7 +12521,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12222
12521
|
value: selected,
|
12223
12522
|
index: 0
|
12224
12523
|
}, React__default.createElement(MyAnswer, {
|
12225
|
-
data:
|
12524
|
+
data: resultData,
|
12226
12525
|
categories: categoryResponses,
|
12227
12526
|
isStudent: isStudent
|
12228
12527
|
})), React__default.createElement(CustomTabPanel, {
|
@@ -12251,18 +12550,22 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12251
12550
|
value: selected,
|
12252
12551
|
index: 3
|
12253
12552
|
}, React__default.createElement(TrickyProblem, {
|
12254
|
-
|
12553
|
+
keyOpen: "TrickyProblem",
|
12554
|
+
data: resultData,
|
12255
12555
|
openProblem: openProblem,
|
12256
12556
|
changeOpen: setOpenProblem
|
12257
12557
|
}), React__default.createElement(Vulnerable, {
|
12258
|
-
|
12558
|
+
keyOpen: "Vulnerable",
|
12559
|
+
data: resultData,
|
12259
12560
|
openProblem: openProblem,
|
12260
12561
|
changeOpen: setOpenProblem
|
12261
12562
|
}), React__default.createElement(ProtractedProblem, {
|
12563
|
+
keyOpen: "ProtractedProblem",
|
12262
12564
|
data: longTimeSpend,
|
12263
12565
|
openProblem: openProblem,
|
12264
12566
|
changeOpen: setOpenProblem
|
12265
12567
|
}), React__default.createElement(GradesByTerritory, {
|
12568
|
+
keyOpen: "GradesByTerritory",
|
12266
12569
|
data: categoryResponses,
|
12267
12570
|
openProblem: openProblem,
|
12268
12571
|
changeOpen: setOpenProblem
|
@@ -12281,13 +12584,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12281
12584
|
id: "header-canvas"
|
12282
12585
|
}, React__default.createElement(material.Grid, {
|
12283
12586
|
item: true
|
12284
|
-
},
|
12587
|
+
}, resultData.courseName && React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12285
12588
|
sx: {
|
12286
12589
|
fontSize: "14px",
|
12287
12590
|
fontWeight: 600,
|
12288
|
-
color:
|
12591
|
+
color: styles.less_dark
|
12289
12592
|
}
|
12290
|
-
},
|
12593
|
+
}, resultData.courseName)), React__default.createElement(material.Box, {
|
12291
12594
|
display: "flex",
|
12292
12595
|
gap: "16px",
|
12293
12596
|
flexDirection: "column"
|
@@ -12295,76 +12598,76 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12295
12598
|
sx: {
|
12296
12599
|
fontSize: "20px",
|
12297
12600
|
fontWeight: 600,
|
12298
|
-
color:
|
12601
|
+
color: styles.darker
|
12299
12602
|
}
|
12300
|
-
},
|
12603
|
+
}, resultData.title)), React__default.createElement(material.Stack, {
|
12301
12604
|
flexDirection: "row",
|
12302
12605
|
gap: "16px"
|
12303
12606
|
}, React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12304
12607
|
sx: {
|
12305
12608
|
fontSize: "13px",
|
12306
12609
|
fontWeight: 600,
|
12307
|
-
color:
|
12610
|
+
color: styles.gray_500
|
12308
12611
|
}
|
12309
12612
|
}, t("my_score")), React__default.createElement(material.Typography, {
|
12310
12613
|
sx: {
|
12311
12614
|
fontSize: "14px",
|
12312
12615
|
fontWeight: 600,
|
12313
|
-
color:
|
12616
|
+
color: styles.darker
|
12314
12617
|
}
|
12315
12618
|
}, t("score_format", {
|
12316
|
-
score:
|
12619
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12317
12620
|
}))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12318
12621
|
sx: {
|
12319
12622
|
fontSize: "13px",
|
12320
12623
|
fontWeight: 600,
|
12321
|
-
color:
|
12624
|
+
color: styles.gray_500
|
12322
12625
|
}
|
12323
12626
|
}, t("exam_date")), React__default.createElement(material.Typography, {
|
12324
12627
|
sx: {
|
12325
12628
|
fontSize: "14px",
|
12326
12629
|
fontWeight: 600,
|
12327
|
-
color:
|
12630
|
+
color: styles.gray_700
|
12328
12631
|
}
|
12329
|
-
}, utcToLocalTime(
|
12632
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12330
12633
|
sx: {
|
12331
12634
|
fontSize: "13px",
|
12332
12635
|
fontWeight: 600,
|
12333
|
-
color:
|
12636
|
+
color: styles.gray_500
|
12334
12637
|
}
|
12335
12638
|
}, t("exam_time")), React__default.createElement(material.Typography, {
|
12336
12639
|
sx: {
|
12337
12640
|
fontSize: "14px",
|
12338
12641
|
fontWeight: 600,
|
12339
|
-
color:
|
12642
|
+
color: styles.gray_700
|
12340
12643
|
}
|
12341
12644
|
}, examTime)), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12342
12645
|
sx: {
|
12343
12646
|
fontSize: "13px",
|
12344
12647
|
fontWeight: 600,
|
12345
|
-
color:
|
12648
|
+
color: styles.gray_500
|
12346
12649
|
}
|
12347
12650
|
}, t("total_students")), React__default.createElement(material.Typography, {
|
12348
12651
|
sx: {
|
12349
12652
|
fontSize: "14px",
|
12350
12653
|
fontWeight: 600,
|
12351
|
-
color:
|
12654
|
+
color: styles.gray_700
|
12352
12655
|
}
|
12353
12656
|
}, t("number_people", {
|
12354
|
-
number:
|
12657
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12355
12658
|
}))), React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
12356
12659
|
sx: {
|
12357
12660
|
fontSize: "13px",
|
12358
12661
|
fontWeight: 600,
|
12359
|
-
color:
|
12662
|
+
color: styles.gray_500
|
12360
12663
|
}
|
12361
12664
|
}, t("teacher_in_charge")), React__default.createElement(material.Typography, {
|
12362
12665
|
sx: {
|
12363
12666
|
fontSize: "14px",
|
12364
12667
|
fontWeight: 600,
|
12365
|
-
color:
|
12668
|
+
color: styles.gray_700
|
12366
12669
|
}
|
12367
|
-
},
|
12670
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React__default.createElement(material.Stack, {
|
12368
12671
|
display: "flex",
|
12369
12672
|
flexDirection: "column",
|
12370
12673
|
gap: "12px"
|
@@ -12373,10 +12676,10 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12373
12676
|
sx: {
|
12374
12677
|
fontSize: "18px",
|
12375
12678
|
fontWeight: 700,
|
12376
|
-
color:
|
12679
|
+
color: styles.gray_500
|
12377
12680
|
}
|
12378
12681
|
}, t(TabList[0].label)), React__default.createElement(MyAnswer, {
|
12379
|
-
data:
|
12682
|
+
data: resultData,
|
12380
12683
|
categories: categoryResponses,
|
12381
12684
|
isStudent: isStudent,
|
12382
12685
|
isPrint: true
|
@@ -12390,7 +12693,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12390
12693
|
sx: {
|
12391
12694
|
fontSize: "18px",
|
12392
12695
|
fontWeight: 700,
|
12393
|
-
color:
|
12696
|
+
color: styles.gray_500
|
12394
12697
|
}
|
12395
12698
|
}, t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
12396
12699
|
return React__default.createElement("div", {
|
@@ -12422,11 +12725,10 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12422
12725
|
gap: "12px",
|
12423
12726
|
marginTop: "24px"
|
12424
12727
|
}, React__default.createElement(material.Typography, {
|
12425
|
-
className: "chart-title",
|
12426
12728
|
sx: {
|
12427
|
-
fontSize: "
|
12729
|
+
fontSize: "16px",
|
12428
12730
|
fontWeight: 700,
|
12429
|
-
color:
|
12731
|
+
color: styles.grey_500
|
12430
12732
|
}
|
12431
12733
|
}, t(TabList[2].label)), React__default.createElement(CompareGrass, {
|
12432
12734
|
effectSize: effectSize,
|
@@ -12441,38 +12743,34 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12441
12743
|
sx: {
|
12442
12744
|
fontSize: "18px",
|
12443
12745
|
fontWeight: 700,
|
12444
|
-
color:
|
12746
|
+
color: styles.gray_500
|
12445
12747
|
}
|
12446
12748
|
}, t(TabList[3].label)), React__default.createElement(TrickyProblem, {
|
12447
|
-
|
12448
|
-
|
12449
|
-
|
12450
|
-
}),
|
12749
|
+
keyOpen: "TrickyProblem",
|
12750
|
+
data: resultData,
|
12751
|
+
openProblem: "TrickyProblem",
|
12451
12752
|
changeOpen: setOpenProblem,
|
12452
12753
|
isPrint: true
|
12453
12754
|
}), React__default.createElement(Vulnerable, {
|
12454
|
-
|
12455
|
-
|
12456
|
-
|
12457
|
-
}),
|
12755
|
+
keyOpen: "Vulnerable",
|
12756
|
+
data: resultData,
|
12757
|
+
openProblem: "Vulnerable",
|
12458
12758
|
changeOpen: setOpenProblem,
|
12459
12759
|
isPrint: true
|
12460
12760
|
}), React__default.createElement(ProtractedProblem, {
|
12761
|
+
keyOpen: "ProtractedProblem",
|
12461
12762
|
data: longTimeSpend,
|
12462
|
-
openProblem:
|
12463
|
-
problem2: true
|
12464
|
-
}),
|
12763
|
+
openProblem: "ProtractedProblem",
|
12465
12764
|
changeOpen: setOpenProblem,
|
12466
12765
|
isPrint: true
|
12467
12766
|
}), React__default.createElement(GradesByTerritory, {
|
12767
|
+
keyOpen: "GradesByTerritory",
|
12468
12768
|
data: categoryResponses,
|
12469
|
-
openProblem:
|
12470
|
-
problem4: true
|
12471
|
-
}),
|
12769
|
+
openProblem: "GradesByTerritory",
|
12472
12770
|
changeOpen: setOpenProblem,
|
12473
12771
|
isPrint: true
|
12474
12772
|
})))), React__default.createElement(CreateNewQuestionDialog$1, {
|
12475
|
-
examSessionId:
|
12773
|
+
examSessionId: resultData === null || resultData === void 0 ? void 0 : resultData.examSessionId,
|
12476
12774
|
handleCreateQuestion: handleCreateQuestion,
|
12477
12775
|
openCreateQuestionDialog: openCreateQuestionDialog,
|
12478
12776
|
toggleCreateQuestion: toggleCreateQuestion
|
@@ -12580,7 +12878,8 @@ var Header = function Header(_ref) {
|
|
12580
12878
|
direction: "row",
|
12581
12879
|
alignItems: "center"
|
12582
12880
|
}, React__default.createElement(material.Typography, {
|
12583
|
-
|
12881
|
+
color: styles.dark,
|
12882
|
+
className: "fw-bold me-2 text-nowrap",
|
12584
12883
|
sx: {
|
12585
12884
|
minWidth: "60px",
|
12586
12885
|
overflow: "hidden",
|