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.modern.js
CHANGED
@@ -141,7 +141,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
141
141
|
return target;
|
142
142
|
}
|
143
143
|
|
144
|
-
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"};
|
144
|
+
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"};
|
145
145
|
|
146
146
|
// A type of promise-like that resolves synchronously and supports only one observer
|
147
147
|
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: ""
|
@@ -1471,7 +1469,7 @@ var ExamEvent;
|
|
1471
1469
|
ExamEvent["TeacherKickOutStudent"] = "teacher-kick-out-student";
|
1472
1470
|
})(ExamEvent || (ExamEvent = {}));
|
1473
1471
|
|
1474
|
-
var problem_solving = "
|
1472
|
+
var problem_solving = "수업 관리";
|
1475
1473
|
var my_story = "내 스토리";
|
1476
1474
|
var search_find = "검색하여 찾기";
|
1477
1475
|
var test_code = "시험코드 입력";
|
@@ -1481,7 +1479,7 @@ var description_success = "스터디 터치는 엄태욱 선생님의 수업에
|
|
1481
1479
|
var logout = "로그 아웃";
|
1482
1480
|
var overall_status = "전체 현황";
|
1483
1481
|
var exam_status = "시험별 현";
|
1484
|
-
var student_status = "
|
1482
|
+
var student_status = "학생별 현황";
|
1485
1483
|
var user_manager = "사용자 목록";
|
1486
1484
|
var recent_exam_results = "최근 시험 결과";
|
1487
1485
|
var instructor_name = "강사이름";
|
@@ -1518,6 +1516,7 @@ var confirmation = "확인";
|
|
1518
1516
|
var student_name = "학생이름";
|
1519
1517
|
var full_pool_time = "전체풀이시간";
|
1520
1518
|
var number_question = "{{number}}번";
|
1519
|
+
var number_answer = "{{number}}번";
|
1521
1520
|
var answer_rate = "정답률";
|
1522
1521
|
var seconds = "초";
|
1523
1522
|
var search_placeholder = "시험 이름으로 검색하기";
|
@@ -1532,6 +1531,7 @@ var information_by_question = "문항별 정보";
|
|
1532
1531
|
var no_data = "데이터 없음";
|
1533
1532
|
var internet_connection_was_lost = "인터넷 연결이 끊어졌습니다";
|
1534
1533
|
var problem = "문제";
|
1534
|
+
var problems = "문제";
|
1535
1535
|
var problem_solving_time = "문제풀이 시간";
|
1536
1536
|
var minutes = "분";
|
1537
1537
|
var correct_rate = "정확한 비율";
|
@@ -1788,8 +1788,40 @@ var problem_analysis = "문제 분석";
|
|
1788
1788
|
var class_information = "수업정보";
|
1789
1789
|
var teachers = "교사";
|
1790
1790
|
var lessons = "수업";
|
1791
|
+
var new_test = "새로운 시험";
|
1792
|
+
var manage_saved_tests = "저장된 시험 관리";
|
1793
|
+
var textbook_management = "교과서 관리";
|
1794
|
+
var my_question = "내 질문";
|
1791
1795
|
var update_class = "수업 업데이트";
|
1792
1796
|
var create_class = "수업 만들기";
|
1797
|
+
var problem_number = "문제 번호";
|
1798
|
+
var answer = "정답";
|
1799
|
+
var correct = "정답";
|
1800
|
+
var solve_time = "풀이 시간";
|
1801
|
+
var comparison_of_top_rankings = "상위권 비교";
|
1802
|
+
var total_correct_rate = "전체 정답률";
|
1803
|
+
var incorrect = "오답";
|
1804
|
+
var no_solution = "풀이 없음";
|
1805
|
+
var no_time = "시간 없음";
|
1806
|
+
var my_solving_time = "나의 풀이 시간";
|
1807
|
+
var top_solution_time = "최상위권 풀이시간";
|
1808
|
+
var average_solve_time = "평균 풀이 시간";
|
1809
|
+
var my_solution = "내 풀이";
|
1810
|
+
var most_solutions = "가장 많은 풀이";
|
1811
|
+
var problem_classification = "문제 분류";
|
1812
|
+
var my_wrong_answer = "나의 오답";
|
1813
|
+
var incorrect_problem_among_the_starred_problems = "별표 친 문제 중 틀린 문제";
|
1814
|
+
var correct_problem_among_the_starred_problems = "별표 친 문제 중 맞춘 문제";
|
1815
|
+
var tricky_problems = "까다로웠던 문제";
|
1816
|
+
var issues_vulnerable = "내가 취약한 문제";
|
1817
|
+
var grades_by_area = "영역별 성적";
|
1818
|
+
var problems_that_took_a_long_time = "시간이 오래 걸린 문제";
|
1819
|
+
var my_time = "나의 시간";
|
1820
|
+
var top_time = "상위권 시간";
|
1821
|
+
var fingerprint = "지문";
|
1822
|
+
var end = "종료";
|
1823
|
+
var ask_for_feedback = "피드백 요청하기";
|
1824
|
+
var quit = "종료하기";
|
1793
1825
|
var lang_ko = {
|
1794
1826
|
problem_solving: problem_solving,
|
1795
1827
|
my_story: my_story,
|
@@ -1840,6 +1872,7 @@ var lang_ko = {
|
|
1840
1872
|
student_name: student_name,
|
1841
1873
|
full_pool_time: full_pool_time,
|
1842
1874
|
number_question: number_question,
|
1875
|
+
number_answer: number_answer,
|
1843
1876
|
answer_rate: answer_rate,
|
1844
1877
|
seconds: seconds,
|
1845
1878
|
search_placeholder: search_placeholder,
|
@@ -1854,6 +1887,7 @@ var lang_ko = {
|
|
1854
1887
|
no_data: no_data,
|
1855
1888
|
internet_connection_was_lost: internet_connection_was_lost,
|
1856
1889
|
problem: problem,
|
1890
|
+
problems: problems,
|
1857
1891
|
problem_solving_time: problem_solving_time,
|
1858
1892
|
minutes: minutes,
|
1859
1893
|
correct_rate: correct_rate,
|
@@ -1962,7 +1996,7 @@ var lang_ko = {
|
|
1962
1996
|
credentials_invalid: credentials_invalid,
|
1963
1997
|
role_is_invalid: role_is_invalid,
|
1964
1998
|
today: today,
|
1965
|
-
"q&a": "
|
1999
|
+
"q&a": "질문 및 답변",
|
1966
2000
|
user_is_disabled: user_is_disabled,
|
1967
2001
|
cover_image: cover_image,
|
1968
2002
|
notification: notification,
|
@@ -2097,8 +2131,40 @@ var lang_ko = {
|
|
2097
2131
|
class_information: class_information,
|
2098
2132
|
teachers: teachers,
|
2099
2133
|
lessons: lessons,
|
2134
|
+
new_test: new_test,
|
2135
|
+
manage_saved_tests: manage_saved_tests,
|
2136
|
+
textbook_management: textbook_management,
|
2137
|
+
my_question: my_question,
|
2100
2138
|
update_class: update_class,
|
2101
|
-
create_class: create_class
|
2139
|
+
create_class: create_class,
|
2140
|
+
problem_number: problem_number,
|
2141
|
+
answer: answer,
|
2142
|
+
correct: correct,
|
2143
|
+
solve_time: solve_time,
|
2144
|
+
comparison_of_top_rankings: comparison_of_top_rankings,
|
2145
|
+
total_correct_rate: total_correct_rate,
|
2146
|
+
incorrect: incorrect,
|
2147
|
+
no_solution: no_solution,
|
2148
|
+
no_time: no_time,
|
2149
|
+
my_solving_time: my_solving_time,
|
2150
|
+
top_solution_time: top_solution_time,
|
2151
|
+
average_solve_time: average_solve_time,
|
2152
|
+
my_solution: my_solution,
|
2153
|
+
most_solutions: most_solutions,
|
2154
|
+
problem_classification: problem_classification,
|
2155
|
+
my_wrong_answer: my_wrong_answer,
|
2156
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems,
|
2157
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems,
|
2158
|
+
tricky_problems: tricky_problems,
|
2159
|
+
issues_vulnerable: issues_vulnerable,
|
2160
|
+
grades_by_area: grades_by_area,
|
2161
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time,
|
2162
|
+
my_time: my_time,
|
2163
|
+
top_time: top_time,
|
2164
|
+
fingerprint: fingerprint,
|
2165
|
+
end: end,
|
2166
|
+
ask_for_feedback: ask_for_feedback,
|
2167
|
+
quit: quit
|
2102
2168
|
};
|
2103
2169
|
|
2104
2170
|
var problem_solving$1 = "Problem Solving";
|
@@ -2149,6 +2215,7 @@ var confirmation$1 = "Confirmation";
|
|
2149
2215
|
var student_name$1 = "Student name";
|
2150
2216
|
var full_pool_time$1 = "Full pool time";
|
2151
2217
|
var number_question$1 = "No.{{number}}";
|
2218
|
+
var number_answer$1 = "No.{{number}}";
|
2152
2219
|
var answer_rate$1 = "Answer rate";
|
2153
2220
|
var seconds$1 = "s";
|
2154
2221
|
var search_placeholder$1 = "Search by exam name";
|
@@ -2162,7 +2229,8 @@ var correct_answer_for_each_student$1 = "Correct answer for each student";
|
|
2162
2229
|
var information_by_question$1 = "Information by question";
|
2163
2230
|
var no_data$1 = "No data";
|
2164
2231
|
var internet_connection_was_lost$1 = "Internet connection was lost";
|
2165
|
-
var problem$1 = "Problem
|
2232
|
+
var problem$1 = "Problem";
|
2233
|
+
var problems$1 = "Problems";
|
2166
2234
|
var problem_solving_time$1 = "Problem solving time";
|
2167
2235
|
var minutes$1 = "m";
|
2168
2236
|
var correct_rate$1 = "Correct rate";
|
@@ -2184,7 +2252,7 @@ var difficult = "Difficult";
|
|
2184
2252
|
var article = "Article";
|
2185
2253
|
var correct_answer = "Correct answer";
|
2186
2254
|
var mark = "Mark";
|
2187
|
-
var answer = "Answer";
|
2255
|
+
var answer$1 = "Answer";
|
2188
2256
|
var add_new_row = "Add new row";
|
2189
2257
|
var question_text_required = "Question text is required";
|
2190
2258
|
var create_question_success = "Question is created successfully";
|
@@ -2455,6 +2523,42 @@ var teachers$1 = "Teachers";
|
|
2455
2523
|
var lessons$1 = "Lessons";
|
2456
2524
|
var update_class$1 = "Update class";
|
2457
2525
|
var create_class$1 = "Create class";
|
2526
|
+
var new_test$1 = "New Test";
|
2527
|
+
var manage_saved_tests$1 = "Manage saved tests";
|
2528
|
+
var textbook_management$1 = "Textbook Management";
|
2529
|
+
var my_question$1 = "My Question";
|
2530
|
+
var problem_number$1 = "Problem number";
|
2531
|
+
var solve_time$1 = "Solve time";
|
2532
|
+
var comparison_of_top_rankings$1 = "Comparison of top rankings";
|
2533
|
+
var total_correct_rate$1 = "Total correct rate";
|
2534
|
+
var incorrect$1 = "Incorrect";
|
2535
|
+
var correct$1 = "Correct";
|
2536
|
+
var no_solution$1 = "No solution";
|
2537
|
+
var no_time$1 = "No time";
|
2538
|
+
var my_solving_time$1 = "My solving time";
|
2539
|
+
var top_solution_time$1 = "Top solving time";
|
2540
|
+
var average_solve_time$1 = "Average solve time";
|
2541
|
+
var my_solution$1 = "My solution";
|
2542
|
+
var most_solutions$1 = "Most solutions";
|
2543
|
+
var problem_classification$1 = "Problem classification";
|
2544
|
+
var my_wrong_answer$1 = "My wrong answer";
|
2545
|
+
var incorrect_problem_among_the_starred_problems$1 = "Incorrect problem among the starred problems";
|
2546
|
+
var correct_problem_among_the_starred_problems$1 = "Correct problem among the starred problems";
|
2547
|
+
var tricky_problems$1 = "Tricky problems";
|
2548
|
+
var issues_vulnerable$1 = "Issues I'm Vulnerable to";
|
2549
|
+
var grades_by_area$1 = "Grades by area";
|
2550
|
+
var problems_that_took_a_long_time$1 = "Problems that took a long time";
|
2551
|
+
var my_time$1 = "My time";
|
2552
|
+
var top_time$1 = "Top time";
|
2553
|
+
var easy_problem = "Easy problem";
|
2554
|
+
var trick_problem = "Trick problem";
|
2555
|
+
var differential_problem = "Differential problem";
|
2556
|
+
var difficult_problem = "Difficult problem";
|
2557
|
+
var general_problem = "General problem";
|
2558
|
+
var fingerprint$1 = "Fingerprint";
|
2559
|
+
var end$1 = "end";
|
2560
|
+
var ask_for_feedback$1 = "Ask for feedback";
|
2561
|
+
var quit$1 = "Quit";
|
2458
2562
|
var lang_en = {
|
2459
2563
|
problem_solving: problem_solving$1,
|
2460
2564
|
my_story: my_story$1,
|
@@ -2506,6 +2610,7 @@ var lang_en = {
|
|
2506
2610
|
student_name: student_name$1,
|
2507
2611
|
full_pool_time: full_pool_time$1,
|
2508
2612
|
number_question: number_question$1,
|
2613
|
+
number_answer: number_answer$1,
|
2509
2614
|
answer_rate: answer_rate$1,
|
2510
2615
|
seconds: seconds$1,
|
2511
2616
|
search_placeholder: search_placeholder$1,
|
@@ -2520,6 +2625,7 @@ var lang_en = {
|
|
2520
2625
|
no_data: no_data$1,
|
2521
2626
|
internet_connection_was_lost: internet_connection_was_lost$1,
|
2522
2627
|
problem: problem$1,
|
2628
|
+
problems: problems$1,
|
2523
2629
|
problem_solving_time: problem_solving_time$1,
|
2524
2630
|
minutes: minutes$1,
|
2525
2631
|
correct_rate: correct_rate$1,
|
@@ -2542,7 +2648,7 @@ var lang_en = {
|
|
2542
2648
|
article: article,
|
2543
2649
|
correct_answer: correct_answer,
|
2544
2650
|
mark: mark,
|
2545
|
-
answer: answer,
|
2651
|
+
answer: answer$1,
|
2546
2652
|
add_new_row: add_new_row,
|
2547
2653
|
question_text_required: question_text_required,
|
2548
2654
|
create_question_success: create_question_success,
|
@@ -2798,7 +2904,43 @@ var lang_en = {
|
|
2798
2904
|
teachers: teachers$1,
|
2799
2905
|
lessons: lessons$1,
|
2800
2906
|
update_class: update_class$1,
|
2801
|
-
create_class: create_class$1
|
2907
|
+
create_class: create_class$1,
|
2908
|
+
new_test: new_test$1,
|
2909
|
+
manage_saved_tests: manage_saved_tests$1,
|
2910
|
+
textbook_management: textbook_management$1,
|
2911
|
+
my_question: my_question$1,
|
2912
|
+
problem_number: problem_number$1,
|
2913
|
+
solve_time: solve_time$1,
|
2914
|
+
comparison_of_top_rankings: comparison_of_top_rankings$1,
|
2915
|
+
total_correct_rate: total_correct_rate$1,
|
2916
|
+
incorrect: incorrect$1,
|
2917
|
+
correct: correct$1,
|
2918
|
+
no_solution: no_solution$1,
|
2919
|
+
no_time: no_time$1,
|
2920
|
+
my_solving_time: my_solving_time$1,
|
2921
|
+
top_solution_time: top_solution_time$1,
|
2922
|
+
average_solve_time: average_solve_time$1,
|
2923
|
+
my_solution: my_solution$1,
|
2924
|
+
most_solutions: most_solutions$1,
|
2925
|
+
problem_classification: problem_classification$1,
|
2926
|
+
my_wrong_answer: my_wrong_answer$1,
|
2927
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems$1,
|
2928
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems$1,
|
2929
|
+
tricky_problems: tricky_problems$1,
|
2930
|
+
issues_vulnerable: issues_vulnerable$1,
|
2931
|
+
grades_by_area: grades_by_area$1,
|
2932
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time$1,
|
2933
|
+
my_time: my_time$1,
|
2934
|
+
top_time: top_time$1,
|
2935
|
+
easy_problem: easy_problem,
|
2936
|
+
trick_problem: trick_problem,
|
2937
|
+
differential_problem: differential_problem,
|
2938
|
+
difficult_problem: difficult_problem,
|
2939
|
+
general_problem: general_problem,
|
2940
|
+
fingerprint: fingerprint$1,
|
2941
|
+
end: end$1,
|
2942
|
+
ask_for_feedback: ask_for_feedback$1,
|
2943
|
+
quit: quit$1
|
2802
2944
|
};
|
2803
2945
|
|
2804
2946
|
i18n.use(initReactI18next).init({
|
@@ -3126,7 +3268,7 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
3126
3268
|
sx: {
|
3127
3269
|
fontSize: 14,
|
3128
3270
|
fontWeight: 600,
|
3129
|
-
color:
|
3271
|
+
color: styles.dark,
|
3130
3272
|
minWidth: 150
|
3131
3273
|
}
|
3132
3274
|
}, (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.name) || t(role === Role.Admin ? "switch_academy_admin" : "switch_academy")), React.createElement("div", {
|
@@ -3214,7 +3356,7 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3214
3356
|
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3215
3357
|
var DropdownIndicator = function DropdownIndicator(props) {
|
3216
3358
|
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3217
|
-
color:
|
3359
|
+
color: styles.darker
|
3218
3360
|
}));
|
3219
3361
|
};
|
3220
3362
|
var CustomOption = function CustomOption(props) {
|
@@ -3226,26 +3368,26 @@ var CustomOption = function CustomOption(props) {
|
|
3226
3368
|
}, props.data.label));
|
3227
3369
|
};
|
3228
3370
|
var customStyles = {
|
3229
|
-
control: function control(baseStyles
|
3371
|
+
control: function control(baseStyles) {
|
3230
3372
|
return _extends({}, baseStyles, {
|
3231
3373
|
fontSize: "14px",
|
3232
3374
|
fontWeight: 700,
|
3233
|
-
color:
|
3234
|
-
borderColor:
|
3375
|
+
color: styles.darker,
|
3376
|
+
borderColor: styles.less_dark
|
3235
3377
|
});
|
3236
3378
|
},
|
3237
3379
|
input: function input(baseStyles, _) {
|
3238
3380
|
return _extends({}, baseStyles, {
|
3239
3381
|
fontSize: "14px",
|
3240
3382
|
fontWeight: 700,
|
3241
|
-
color:
|
3383
|
+
color: styles.darker
|
3242
3384
|
});
|
3243
3385
|
},
|
3244
3386
|
singleValue: function singleValue(baseStyles) {
|
3245
3387
|
return _extends({}, baseStyles, {
|
3246
3388
|
fontSize: "14px",
|
3247
3389
|
fontWeight: 700,
|
3248
|
-
color:
|
3390
|
+
color: styles.darker
|
3249
3391
|
});
|
3250
3392
|
}
|
3251
3393
|
};
|
@@ -3301,10 +3443,10 @@ var iconPersonNoActive = function iconPersonNoActive(_ref) {
|
|
3301
3443
|
xmlns: "http://www.w3.org/2000/svg"
|
3302
3444
|
}, React.createElement("path", {
|
3303
3445
|
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",
|
3304
|
-
fill:
|
3446
|
+
fill: color
|
3305
3447
|
}), React.createElement("path", {
|
3306
3448
|
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",
|
3307
|
-
fill:
|
3449
|
+
fill: color
|
3308
3450
|
}));
|
3309
3451
|
};
|
3310
3452
|
|
@@ -3369,6 +3511,8 @@ var useTooltip = function useTooltip() {
|
|
3369
3511
|
var ContentTooltip = function ContentTooltip(_ref) {
|
3370
3512
|
var toggleConfirmDialog = _ref.toggleConfirmDialog,
|
3371
3513
|
toggleUpdateDialog = _ref.toggleUpdateDialog;
|
3514
|
+
var _useTranslation = useTranslation(),
|
3515
|
+
t = _useTranslation.t;
|
3372
3516
|
return React.createElement(Stack, null, React.createElement(Stack, {
|
3373
3517
|
display: "flex",
|
3374
3518
|
gap: "4px",
|
@@ -3382,9 +3526,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3382
3526
|
sx: {
|
3383
3527
|
fontWeight: 700,
|
3384
3528
|
fontSize: "14px",
|
3385
|
-
color:
|
3529
|
+
color: styles.dark
|
3386
3530
|
}
|
3387
|
-
}, "
|
3531
|
+
}, t("edit"))), React.createElement(Stack, {
|
3388
3532
|
border: "1px solid #E4E7EC"
|
3389
3533
|
}), React.createElement("div", {
|
3390
3534
|
style: {
|
@@ -3395,9 +3539,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3395
3539
|
sx: {
|
3396
3540
|
fontWeight: 700,
|
3397
3541
|
fontSize: "14px",
|
3398
|
-
color:
|
3542
|
+
color: styles.dark
|
3399
3543
|
}
|
3400
|
-
}, "
|
3544
|
+
}, t("delete")))));
|
3401
3545
|
};
|
3402
3546
|
|
3403
3547
|
var ChatRightItem = function ChatRightItem(_ref) {
|
@@ -3440,7 +3584,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3440
3584
|
fontSize: 14,
|
3441
3585
|
padding: "4px",
|
3442
3586
|
lineHeight: "16.71px",
|
3443
|
-
color:
|
3587
|
+
color: styles.darker
|
3444
3588
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)), React.createElement(Stack, {
|
3445
3589
|
display: "flex",
|
3446
3590
|
flexDirection: "row",
|
@@ -3476,7 +3620,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3476
3620
|
}, React.createElement(iconMore, null))))), contentType ? React.createElement(Stack, {
|
3477
3621
|
borderRadius: "6px",
|
3478
3622
|
padding: "12px",
|
3479
|
-
bgcolor:
|
3623
|
+
bgcolor: styles.darker
|
3480
3624
|
}, React.createElement("img", {
|
3481
3625
|
onClick: toggleImageDialog,
|
3482
3626
|
src: content,
|
@@ -3485,11 +3629,12 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3485
3629
|
position: "relative",
|
3486
3630
|
objectFit: "contain"
|
3487
3631
|
}
|
3488
|
-
})) : React.createElement(
|
3632
|
+
})) : React.createElement(Stack, {
|
3489
3633
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-receiver"],
|
3490
|
-
|
3634
|
+
sx: {
|
3491
3635
|
"float": "inline-end"
|
3492
|
-
}
|
3636
|
+
},
|
3637
|
+
bgcolor: styles.darker
|
3493
3638
|
}, React.createElement(Typography, {
|
3494
3639
|
fontWeight: 500,
|
3495
3640
|
fontSize: "14px",
|
@@ -3529,22 +3674,22 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3529
3674
|
fontWeight: 500,
|
3530
3675
|
fontSize: 14,
|
3531
3676
|
lineHeight: "16.71px",
|
3532
|
-
color:
|
3677
|
+
color: styles.darker
|
3533
3678
|
}, t("counselor")), React.createElement(Typography, {
|
3534
3679
|
fontWeight: 700,
|
3535
3680
|
fontSize: 14,
|
3536
3681
|
lineHeight: "16.71px",
|
3537
|
-
color:
|
3682
|
+
color: styles.darker
|
3538
3683
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)) : React.createElement(Fragment$1, null, React.createElement(Typography, {
|
3539
3684
|
fontWeight: 700,
|
3540
3685
|
fontSize: 14,
|
3541
3686
|
lineHeight: "16.71px",
|
3542
|
-
color:
|
3687
|
+
color: styles.darker
|
3543
3688
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName), React.createElement(Typography, {
|
3544
3689
|
fontWeight: 500,
|
3545
3690
|
fontSize: 14,
|
3546
3691
|
lineHeight: "16.71px",
|
3547
|
-
color:
|
3692
|
+
color: styles.darker
|
3548
3693
|
}, t("student")))), React.createElement(Box, {
|
3549
3694
|
padding: "4px 0px"
|
3550
3695
|
}), React.createElement(Stack, {
|
@@ -3554,7 +3699,7 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3554
3699
|
}, contentType ? React.createElement(Stack, {
|
3555
3700
|
borderRadius: "6px",
|
3556
3701
|
padding: "12px",
|
3557
|
-
bgcolor:
|
3702
|
+
bgcolor: styles.darker
|
3558
3703
|
}, React.createElement("img", {
|
3559
3704
|
onClick: toggleImageDialog,
|
3560
3705
|
src: content,
|
@@ -3566,10 +3711,10 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3566
3711
|
})) : React.createElement("div", {
|
3567
3712
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-sender"]
|
3568
3713
|
}, React.createElement(Typography, {
|
3569
|
-
fontWeight:
|
3714
|
+
fontWeight: 400,
|
3570
3715
|
fontSize: "14px",
|
3571
3716
|
lineHeight: "16.71px",
|
3572
|
-
color: "#
|
3717
|
+
color: "#5D5D5B"
|
3573
3718
|
}, content)))));
|
3574
3719
|
};
|
3575
3720
|
|
@@ -3795,6 +3940,9 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3795
3940
|
padding: '12px'
|
3796
3941
|
}
|
3797
3942
|
}, React.createElement(Button, {
|
3943
|
+
sx: {
|
3944
|
+
color: styles.dark
|
3945
|
+
},
|
3798
3946
|
className: styles$1['btn-cancel'],
|
3799
3947
|
onClick: onClose
|
3800
3948
|
}, React.createElement(Typography, {
|
@@ -3802,6 +3950,10 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3802
3950
|
fontSize: '14px',
|
3803
3951
|
lineHeight: '16.71px'
|
3804
3952
|
}, "\uCDE8\uC18C")), React.createElement(Button, {
|
3953
|
+
variant: 'contained',
|
3954
|
+
sx: {
|
3955
|
+
bgcolor: styles.dark
|
3956
|
+
},
|
3805
3957
|
className: styles$1['btn-register'],
|
3806
3958
|
type: "submit"
|
3807
3959
|
}, React.createElement(Typography, {
|
@@ -3828,16 +3980,14 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3828
3980
|
sx: {
|
3829
3981
|
display: "flex",
|
3830
3982
|
gap: "8px",
|
3831
|
-
padding: "12px !important"
|
3832
|
-
borderColor: "#5458D5"
|
3983
|
+
padding: "12px !important"
|
3833
3984
|
}
|
3834
|
-
}, React.createElement(iconPlusCircle,
|
3985
|
+
}, React.createElement(iconPlusCircle, {
|
3986
|
+
color: styles.dark
|
3987
|
+
}), React.createElement(Typography, {
|
3835
3988
|
fontWeight: 700,
|
3836
3989
|
fontSize: "13px",
|
3837
|
-
lineHeight: "15.51px"
|
3838
|
-
sx: {
|
3839
|
-
color: "#5458D5"
|
3840
|
-
}
|
3990
|
+
lineHeight: "15.51px"
|
3841
3991
|
}, t("attachment")), React.createElement("input", {
|
3842
3992
|
type: "file",
|
3843
3993
|
hidden: true,
|
@@ -3854,13 +4004,17 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3854
4004
|
className: styles$1['btn-cancel'],
|
3855
4005
|
onClick: onClose
|
3856
4006
|
}, React.createElement(Typography, {
|
4007
|
+
sx: {
|
4008
|
+
color: styles.dark
|
4009
|
+
},
|
3857
4010
|
fontWeight: 700,
|
3858
4011
|
fontSize: '14px',
|
3859
4012
|
lineHeight: '16.71px'
|
3860
4013
|
}, "\uCDE8\uC18C")), React.createElement(Button, {
|
4014
|
+
variant: "contained",
|
3861
4015
|
className: styles$1['btn-register'],
|
3862
4016
|
sx: {
|
3863
|
-
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? "
|
4017
|
+
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? styles.light + " !important" : styles.dark
|
3864
4018
|
},
|
3865
4019
|
disabled: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content),
|
3866
4020
|
onClick: function onClick() {
|
@@ -4094,10 +4248,11 @@ var InputChat = function InputChat(_ref) {
|
|
4094
4248
|
gap: "16px"
|
4095
4249
|
}, React.createElement(Button, {
|
4096
4250
|
variant: "contained",
|
4251
|
+
fullWidth: true,
|
4252
|
+
className: styles$1["btn-send"],
|
4097
4253
|
sx: {
|
4098
|
-
bgcolor: isCompleted ? "
|
4254
|
+
bgcolor: isCompleted ? styles.light + " !important" : styles.dark
|
4099
4255
|
},
|
4100
|
-
className: styles$1["btn-send"],
|
4101
4256
|
disabled: isCompleted,
|
4102
4257
|
onClick: handleSubmit
|
4103
4258
|
}, React.createElement(iconSendMessage, null), React.createElement(Typography, {
|
@@ -4113,15 +4268,17 @@ var InputChat = function InputChat(_ref) {
|
|
4113
4268
|
display: "flex",
|
4114
4269
|
gap: "8px",
|
4115
4270
|
padding: "12px !important",
|
4116
|
-
borderColor: isCompleted ? "transparent" :
|
4271
|
+
borderColor: isCompleted ? "transparent" : styles.less_dark,
|
4117
4272
|
borderWidth: "1px"
|
4118
4273
|
}
|
4119
|
-
}, React.createElement(iconPlusCircle,
|
4274
|
+
}, React.createElement(iconPlusCircle, {
|
4275
|
+
color: styles.dark
|
4276
|
+
}), React.createElement(Typography, {
|
4120
4277
|
fontWeight: 700,
|
4121
4278
|
fontSize: "13px",
|
4122
4279
|
lineHeight: "15.51px",
|
4123
4280
|
sx: {
|
4124
|
-
color:
|
4281
|
+
color: styles.dark
|
4125
4282
|
}
|
4126
4283
|
}, t("attachment")), React.createElement("input", {
|
4127
4284
|
type: "file",
|
@@ -4147,7 +4304,7 @@ var iconChecked = function iconChecked(_ref) {
|
|
4147
4304
|
xmlns: "http://www.w3.org/2000/svg"
|
4148
4305
|
}, React.createElement("path", {
|
4149
4306
|
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",
|
4150
|
-
fill:
|
4307
|
+
fill: color
|
4151
4308
|
}));
|
4152
4309
|
};
|
4153
4310
|
|
@@ -4232,20 +4389,22 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4232
4389
|
alignItems: "center",
|
4233
4390
|
flexDirection: "row",
|
4234
4391
|
gap: "8px"
|
4235
|
-
}, React.createElement(iconPersonNoActive,
|
4392
|
+
}, React.createElement(iconPersonNoActive, {
|
4393
|
+
color: styles.darker
|
4394
|
+
}), isTabletUp && React.createElement(Typography, {
|
4236
4395
|
fontWeight: 500,
|
4237
4396
|
fontSize: "14px",
|
4238
4397
|
lineHeight: "16.71px",
|
4239
|
-
color:
|
4398
|
+
color: styles.darker
|
4240
4399
|
}, t("counselor"))), React.createElement(Typography, {
|
4241
4400
|
fontWeight: 700,
|
4242
4401
|
fontSize: "14px",
|
4243
4402
|
lineHeight: "16.71px",
|
4244
|
-
color:
|
4403
|
+
color: styles.darker
|
4245
4404
|
}, ellipsisText(teacherName || "", 15))), !!examTitle && React.createElement(Box, {
|
4246
4405
|
display: "flex",
|
4247
4406
|
alignItems: "start",
|
4248
|
-
color:
|
4407
|
+
color: styles.darker,
|
4249
4408
|
gap: "6px",
|
4250
4409
|
flexDirection: "column"
|
4251
4410
|
}, React.createElement(Typography, {
|
@@ -4276,7 +4435,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4276
4435
|
fontWeight: 700,
|
4277
4436
|
fontSize: "12px",
|
4278
4437
|
lineHeight: "14.32px",
|
4279
|
-
color:
|
4438
|
+
color: styles.darker
|
4280
4439
|
}, questionOrder != undefined ? t("problem_number_question", {
|
4281
4440
|
number: questionOrder + 1
|
4282
4441
|
}) : courseId ? t("class_inquiry") : t("exam_inquiry")) : React.createElement(Stack, {
|
@@ -4287,7 +4446,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4287
4446
|
fontWeight: 700,
|
4288
4447
|
fontSize: "12px",
|
4289
4448
|
lineHeight: "14.32px",
|
4290
|
-
color:
|
4449
|
+
color: styles.darker
|
4291
4450
|
}, t("points", {
|
4292
4451
|
number: score
|
4293
4452
|
})), React.createElement(Typography, {
|
@@ -4311,12 +4470,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4311
4470
|
fontWeight: 600,
|
4312
4471
|
fontSize: "11px",
|
4313
4472
|
lineHeight: "14.32px",
|
4314
|
-
color:
|
4473
|
+
color: styles.darker
|
4315
4474
|
}, t("consultation_category")), React.createElement(Typography, {
|
4316
4475
|
fontWeight: 700,
|
4317
4476
|
fontSize: "14px",
|
4318
4477
|
lineHeight: "14.32px",
|
4319
|
-
color:
|
4478
|
+
color: styles.darker
|
4320
4479
|
}, t("" + category))))) : React.createElement(Grid, {
|
4321
4480
|
item: true,
|
4322
4481
|
xs: 12,
|
@@ -4331,16 +4490,19 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4331
4490
|
display: "flex",
|
4332
4491
|
alignItems: "center",
|
4333
4492
|
gap: "24px",
|
4334
|
-
color:
|
4493
|
+
color: styles.darker
|
4335
4494
|
}, isTabletUp && React.createElement(Box, {
|
4336
4495
|
display: "flex",
|
4337
4496
|
justifyContent: "space-between",
|
4338
4497
|
alignItems: "center",
|
4339
4498
|
gap: "8px"
|
4340
|
-
}, React.createElement(iconPersonNoActive,
|
4499
|
+
}, React.createElement(iconPersonNoActive, {
|
4500
|
+
color: styles.darker
|
4501
|
+
}), React.createElement(Typography, {
|
4341
4502
|
fontWeight: 500,
|
4342
4503
|
fontSize: "14px",
|
4343
|
-
lineHeight: "16.71px"
|
4504
|
+
lineHeight: "16.71px",
|
4505
|
+
color: styles.darker
|
4344
4506
|
}, t("student"))), React.createElement(Typography, {
|
4345
4507
|
fontWeight: 700,
|
4346
4508
|
fontSize: "14px",
|
@@ -4349,7 +4511,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4349
4511
|
display: "flex",
|
4350
4512
|
alignItems: "center",
|
4351
4513
|
gap: "24px",
|
4352
|
-
color:
|
4514
|
+
color: styles.darker
|
4353
4515
|
}, examTitle ? React.createElement(Typography, {
|
4354
4516
|
fontWeight: 600,
|
4355
4517
|
fontSize: "12px",
|
@@ -4363,12 +4525,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4363
4525
|
fontWeight: 600,
|
4364
4526
|
fontSize: "11px",
|
4365
4527
|
lineHeight: "14.32px",
|
4366
|
-
color:
|
4528
|
+
color: styles.darker
|
4367
4529
|
}, t("consultation_category")), React.createElement(Typography, {
|
4368
4530
|
fontWeight: 700,
|
4369
4531
|
fontSize: "14px",
|
4370
4532
|
lineHeight: "14.32px",
|
4371
|
-
color:
|
4533
|
+
color: styles.darker
|
4372
4534
|
}, t("" + category))), questionOrder != undefined && React.createElement(Typography, {
|
4373
4535
|
fontWeight: 700,
|
4374
4536
|
fontSize: "14px",
|
@@ -4382,13 +4544,16 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4382
4544
|
display: "flex",
|
4383
4545
|
alignItems: "center",
|
4384
4546
|
gap: "8px",
|
4385
|
-
border: "1px solid
|
4547
|
+
border: "1px solid",
|
4548
|
+
borderColor: styles.less_dark,
|
4386
4549
|
borderRadius: "6px"
|
4387
|
-
}, React.createElement(iconChecked,
|
4550
|
+
}, React.createElement(iconChecked, {
|
4551
|
+
color: styles.darker
|
4552
|
+
}), React.createElement(Typography, {
|
4388
4553
|
fontWeight: 700,
|
4389
4554
|
fontSize: "13px",
|
4390
4555
|
lineHeight: "15.51px",
|
4391
|
-
color:
|
4556
|
+
color: styles.dark
|
4392
4557
|
}, "\uC644\uB8CC \uCC98\uB9AC"))) : React.createElement("div", null));
|
4393
4558
|
};
|
4394
4559
|
return React.createElement(Grid, {
|
@@ -4403,7 +4568,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4403
4568
|
}, React.createElement(Typography, {
|
4404
4569
|
fontWeight: 800,
|
4405
4570
|
fontSize: "20px",
|
4406
|
-
color:
|
4571
|
+
color: styles.darker,
|
4407
4572
|
lineHeight: "23.87px"
|
4408
4573
|
}, t("question_and_answer"))), renderHeader(), React.createElement(ConfirmDialog, {
|
4409
4574
|
open: openDialog,
|
@@ -5073,7 +5238,7 @@ var InputText = function InputText(props) {
|
|
5073
5238
|
}, props));
|
5074
5239
|
};
|
5075
5240
|
|
5076
|
-
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question
|
5241
|
+
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question-label":"_26ATj","question-input":"_3R8PR","question-btn":"_1VZac"};
|
5077
5242
|
|
5078
5243
|
var SCORE_OPTIONS = Array.from({
|
5079
5244
|
length: 10
|
@@ -5118,13 +5283,49 @@ var ScoreSelector = function ScoreSelector(_ref) {
|
|
5118
5283
|
});
|
5119
5284
|
};
|
5120
5285
|
|
5121
|
-
var
|
5122
|
-
var
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5126
|
-
|
5127
|
-
|
5286
|
+
var BpIcon = styled('span')(function (_ref) {
|
5287
|
+
var theme = _ref.theme;
|
5288
|
+
return {
|
5289
|
+
borderRadius: '50%',
|
5290
|
+
width: 16,
|
5291
|
+
height: 16,
|
5292
|
+
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)',
|
5293
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#394b59' : '#f5f8fa',
|
5294
|
+
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))',
|
5295
|
+
'.Mui-focusVisible &': {
|
5296
|
+
outline: '2px auto rgba(19,124,189,.6)',
|
5297
|
+
outlineOffset: 2
|
5298
|
+
},
|
5299
|
+
'input:hover ~ &': {
|
5300
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#30404d' : '#ebf1f5'
|
5301
|
+
},
|
5302
|
+
'input:disabled ~ &': {
|
5303
|
+
boxShadow: 'none',
|
5304
|
+
background: theme.palette.mode === 'dark' ? 'rgba(57,75,89,.5)' : 'rgba(206,217,224,.5)'
|
5305
|
+
}
|
5306
|
+
};
|
5307
|
+
});
|
5308
|
+
var BpCheckedIcon = styled(BpIcon)({
|
5309
|
+
backgroundColor: styles.darker,
|
5310
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
5311
|
+
'&::before': {
|
5312
|
+
display: 'block',
|
5313
|
+
width: 16,
|
5314
|
+
height: 16,
|
5315
|
+
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
5316
|
+
content: '""'
|
5317
|
+
},
|
5318
|
+
'input:hover ~ &': {
|
5319
|
+
backgroundColor: styles.dark
|
5320
|
+
}
|
5321
|
+
});
|
5322
|
+
var QuestionView = function QuestionView(_ref2) {
|
5323
|
+
var index = _ref2.index,
|
5324
|
+
question = _ref2.question,
|
5325
|
+
answerCount = _ref2.answerCount,
|
5326
|
+
isDisabled = _ref2.isDisabled,
|
5327
|
+
onChangeCorrectAnswers = _ref2.onChangeCorrectAnswers,
|
5328
|
+
onChangeScoreAnswer = _ref2.onChangeScoreAnswer;
|
5128
5329
|
var _useTranslation = useTranslation(),
|
5129
5330
|
t = _useTranslation.t;
|
5130
5331
|
var handleChangeCorrectAnswer = function handleChangeCorrectAnswer(e) {
|
@@ -5160,7 +5361,9 @@ var QuestionView = function QuestionView(_ref) {
|
|
5160
5361
|
onChange: handleChangeCorrectAnswer,
|
5161
5362
|
disabled: isDisabled,
|
5162
5363
|
control: React.createElement(Radio, {
|
5163
|
-
size: "small"
|
5364
|
+
size: "small",
|
5365
|
+
checkedIcon: React.createElement(BpCheckedIcon, null),
|
5366
|
+
icon: React.createElement(BpIcon, null)
|
5164
5367
|
}),
|
5165
5368
|
label: t("number_question", {
|
5166
5369
|
number: i
|
@@ -5402,7 +5605,7 @@ var ArticleGroupView = function ArticleGroupView(_ref) {
|
|
5402
5605
|
}, React.createElement(PiDotsNineLight, {
|
5403
5606
|
size: 18
|
5404
5607
|
})), React.createElement("div", {
|
5405
|
-
className: "px-
|
5608
|
+
className: "px-2"
|
5406
5609
|
}, React.createElement("p", {
|
5407
5610
|
className: "mb-0 " + styles$2["question-article"]
|
5408
5611
|
}, t("article_number")), React.createElement("p", {
|
@@ -7080,7 +7283,7 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7080
7283
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7081
7284
|
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7082
7285
|
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
7083
|
-
color:
|
7286
|
+
color: styles.darker
|
7084
7287
|
}));
|
7085
7288
|
};
|
7086
7289
|
var CustomOption$1 = function CustomOption(props) {
|
@@ -7096,22 +7299,22 @@ var customStyles$1 = {
|
|
7096
7299
|
return _extends({}, baseStyles, {
|
7097
7300
|
fontSize: "14px",
|
7098
7301
|
fontWeight: 700,
|
7099
|
-
color:
|
7100
|
-
borderColor: state.isFocused || state.hasValue ?
|
7302
|
+
color: styles.darker,
|
7303
|
+
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7101
7304
|
});
|
7102
7305
|
},
|
7103
7306
|
input: function input(baseStyles, _) {
|
7104
7307
|
return _extends({}, baseStyles, {
|
7105
7308
|
fontSize: "14px",
|
7106
7309
|
fontWeight: 700,
|
7107
|
-
color:
|
7310
|
+
color: styles.darker
|
7108
7311
|
});
|
7109
7312
|
},
|
7110
7313
|
singleValue: function singleValue(baseStyles) {
|
7111
7314
|
return _extends({}, baseStyles, {
|
7112
7315
|
fontSize: "14px",
|
7113
7316
|
fontWeight: 700,
|
7114
|
-
color:
|
7317
|
+
color: styles.darker
|
7115
7318
|
});
|
7116
7319
|
}
|
7117
7320
|
};
|
@@ -7588,9 +7791,14 @@ var ExamDetailView = function ExamDetailView(_ref) {
|
|
7588
7791
|
}), React.createElement(Grid, {
|
7589
7792
|
item: true,
|
7590
7793
|
xs: 12
|
7591
|
-
}, React.createElement(
|
7794
|
+
}, React.createElement(Button, {
|
7795
|
+
variant: 'outlined',
|
7796
|
+
sx: {
|
7797
|
+
color: styles.dark,
|
7798
|
+
borderColor: styles.dark
|
7799
|
+
},
|
7592
7800
|
disabled: isDisabled,
|
7593
|
-
className:
|
7801
|
+
className: "w-100 d-flex justify-content-center align-items-center " + styles$2["question-btn"] + " mt-3",
|
7594
7802
|
onClick: handleAddArticle
|
7595
7803
|
}, React.createElement(FaPlusCircle, {
|
7596
7804
|
className: "me-2"
|
@@ -7619,13 +7827,11 @@ var CreateExamDrawer = function CreateExamDrawer(props) {
|
|
7619
7827
|
}
|
7620
7828
|
}, React.createElement("div", {
|
7621
7829
|
className: styles$3["drawer-header"] + " d-flex justify-content-between align-items-center"
|
7622
|
-
}, React.createElement(
|
7623
|
-
|
7624
|
-
|
7830
|
+
}, React.createElement(Button, {
|
7831
|
+
variant: "outlined",
|
7832
|
+
sx: {
|
7625
7833
|
cursor: "pointer",
|
7626
7834
|
padding: "0.5rem 1rem",
|
7627
|
-
border: "1px solid #5458D5",
|
7628
|
-
backgroundColor: "white",
|
7629
7835
|
justifyContent: "center",
|
7630
7836
|
alignItems: "center",
|
7631
7837
|
borderRadius: "6px"
|
@@ -7778,10 +7984,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7778
7984
|
className: "d-flex justify-content-end"
|
7779
7985
|
}, React.createElement(Button, {
|
7780
7986
|
variant: "outlined",
|
7781
|
-
sx: {
|
7782
|
-
borderColor: "#5458D5",
|
7783
|
-
color: "#5458D5"
|
7784
|
-
},
|
7785
7987
|
onClick: function onClick() {
|
7786
7988
|
return handleOpenCreateExamDialog();
|
7787
7989
|
},
|
@@ -7792,7 +7994,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7792
7994
|
}, React.createElement(Typography, null, t("create_new_exam"))), !!id && React.createElement(Button, {
|
7793
7995
|
className: "mx-1",
|
7794
7996
|
variant: "contained",
|
7795
|
-
color: "primary",
|
7796
7997
|
startIcon: React.createElement(FaPlus, {
|
7797
7998
|
size: 12
|
7798
7999
|
}),
|
@@ -9185,8 +9386,8 @@ var defaultSeries = function defaultSeries(t) {
|
|
9185
9386
|
}];
|
9186
9387
|
};
|
9187
9388
|
|
9188
|
-
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
|
9189
|
-
var
|
9389
|
+
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab, selectedTab) {
|
9390
|
+
var _allSeries$dataChartI;
|
9190
9391
|
if (examSessionId === void 0) {
|
9191
9392
|
examSessionId = 0;
|
9192
9393
|
}
|
@@ -9198,10 +9399,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9198
9399
|
}
|
9199
9400
|
var query = new URLSearchParams(searchParam);
|
9200
9401
|
var dispatch = useDispatch();
|
9201
|
-
var
|
9202
|
-
var _state$common
|
9203
|
-
return
|
9402
|
+
var user = useSelector(function (state) {
|
9403
|
+
var _state$common;
|
9404
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user;
|
9204
9405
|
});
|
9406
|
+
var roles = (user === null || user === void 0 ? void 0 : user.roles) || [];
|
9205
9407
|
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
|
9206
9408
|
var examCode = query.get("examCode") || "";
|
9207
9409
|
var language = useSelector(function (state) {
|
@@ -9209,8 +9411,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9209
9411
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
9210
9412
|
});
|
9211
9413
|
var _useState = useState(),
|
9212
|
-
|
9213
|
-
|
9414
|
+
resultData = _useState[0],
|
9415
|
+
setResultData = _useState[1];
|
9214
9416
|
var _useState2 = useState(),
|
9215
9417
|
effectSize = _useState2[0],
|
9216
9418
|
setEffectSize = _useState2[1];
|
@@ -9226,12 +9428,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9226
9428
|
var _useState6 = useState(0),
|
9227
9429
|
dataChartIndex = _useState6[0],
|
9228
9430
|
setDataChartIndex = _useState6[1];
|
9229
|
-
var _useState7 = useState(
|
9230
|
-
problem1: false,
|
9231
|
-
problem2: false,
|
9232
|
-
problem3: false,
|
9233
|
-
problem4: false
|
9234
|
-
}),
|
9431
|
+
var _useState7 = useState(""),
|
9235
9432
|
openProblem = _useState7[0],
|
9236
9433
|
setOpenProblem = _useState7[1];
|
9237
9434
|
var _useTranslation = useTranslation(),
|
@@ -9246,7 +9443,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9246
9443
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9247
9444
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9248
9445
|
handleChangeTab(0);
|
9249
|
-
|
9446
|
+
setDataChartIndex(0);
|
9447
|
+
setResultData((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9250
9448
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9251
9449
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
9252
9450
|
setTimelyOrderQuestions((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
|
@@ -9258,6 +9456,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9258
9456
|
});
|
9259
9457
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
9260
9458
|
};
|
9459
|
+
if (!examCode) return Promise.resolve();
|
9261
9460
|
dispatch(setLoading(true));
|
9262
9461
|
var _temp3 = _catch(function () {
|
9263
9462
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9281,7 +9480,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9281
9480
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9282
9481
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9283
9482
|
handleChangeTab(0);
|
9284
|
-
|
9483
|
+
setDataChartIndex(0);
|
9484
|
+
setResultData((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9285
9485
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9286
9486
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
9287
9487
|
setTimelyOrderQuestions((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
|
@@ -9293,6 +9493,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9293
9493
|
});
|
9294
9494
|
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
9295
9495
|
};
|
9496
|
+
if (!examCode || !examSessionId || !studentId) return Promise.resolve();
|
9296
9497
|
dispatch(setLoading(true));
|
9297
9498
|
var _temp7 = _catch(function () {
|
9298
9499
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9307,19 +9508,28 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9307
9508
|
}
|
9308
9509
|
};
|
9309
9510
|
var setExampleData = function setExampleData() {
|
9310
|
-
|
9511
|
+
setResultData(EXAM_RESULT);
|
9311
9512
|
setLongTimeSpend(LONGTIME_SPEND_QUESTIONS);
|
9312
9513
|
setEffectSize(EFFECT_SIZE_QUESTIONS);
|
9313
9514
|
setTimelyOrderQuestions(TIMELY_ORDER_QUESTIONS);
|
9314
9515
|
setCategoryResponses(CATEGORY_RESPONSES);
|
9315
9516
|
};
|
9517
|
+
var resetData = function resetData() {
|
9518
|
+
setResultData(undefined);
|
9519
|
+
setLongTimeSpend([]);
|
9520
|
+
setEffectSize([]);
|
9521
|
+
setTimelyOrderQuestions([]);
|
9522
|
+
setCategoryResponses([]);
|
9523
|
+
};
|
9316
9524
|
useEffect(function () {
|
9317
9525
|
var getData = function getData() {
|
9526
|
+
resetData();
|
9527
|
+
if (!(user !== null && user !== void 0 && user.email)) return;
|
9318
9528
|
isStudent && getStudentData(examCode);
|
9319
9529
|
!isStudent && getStudentDataByTeacher(code, examSessionId, studentId);
|
9320
9530
|
};
|
9321
9531
|
examCode === "example-code" ? setExampleData() : getData();
|
9322
|
-
}, [examCode, isStudent, code, examSessionId, studentId]);
|
9532
|
+
}, [examCode, isStudent, code, examSessionId, studentId, user === null || user === void 0 ? void 0 : user.email]);
|
9323
9533
|
var handlePrevChart = function handlePrevChart() {
|
9324
9534
|
if (dataChartIndex > 0) {
|
9325
9535
|
setDataChartIndex(dataChartIndex - 1);
|
@@ -9334,27 +9544,28 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9334
9544
|
navigate("/student/my-story/live-main");
|
9335
9545
|
};
|
9336
9546
|
var totalTime = useMemo(function () {
|
9337
|
-
var
|
9338
|
-
if (!(
|
9339
|
-
var totalTime =
|
9547
|
+
var _resultData$questions;
|
9548
|
+
if (!(resultData !== null && resultData !== void 0 && (_resultData$questions = resultData.questions) !== null && _resultData$questions !== void 0 && _resultData$questions.length)) return "0" + t("seconds");
|
9549
|
+
var totalTime = resultData === null || resultData === void 0 ? void 0 : resultData.questions.reduce(function (val, current) {
|
9340
9550
|
return val + Math.round((current === null || current === void 0 ? void 0 : current.duration) || 0);
|
9341
9551
|
}, 0);
|
9342
9552
|
return totalTime < 60 ? "" + totalTime + t("seconds") : t("mins_mins_seconds_seconds", {
|
9343
9553
|
mins: Math.floor(totalTime / 60),
|
9344
9554
|
seconds: totalTime % 60
|
9345
9555
|
});
|
9346
|
-
}, [JSON.stringify(
|
9556
|
+
}, [JSON.stringify(resultData === null || resultData === void 0 ? void 0 : resultData.questions), language]);
|
9347
9557
|
var allChartOptions = useMemo(function () {
|
9348
9558
|
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9559
|
+
var _questions$length;
|
9560
|
+
var questions = timelyOrderQuestion.questions || null;
|
9561
|
+
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9349
9562
|
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9350
9563
|
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9351
9564
|
y: {
|
9352
9565
|
formatter: function formatter(val, _ref) {
|
9353
9566
|
var dataPointIndex = _ref.dataPointIndex;
|
9354
9567
|
if (dataPointIndex > 0) {
|
9355
|
-
var _questions
|
9356
|
-
var questions = timelyOrderQuestion.questions || null;
|
9357
|
-
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9568
|
+
var _questions;
|
9358
9569
|
return val != null ? t("problem_number_question", {
|
9359
9570
|
number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
|
9360
9571
|
}) : t("no_data");
|
@@ -9365,19 +9576,17 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9365
9576
|
}),
|
9366
9577
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9367
9578
|
categories: ["."].concat(Array.from({
|
9368
|
-
length:
|
9579
|
+
length: questionLength
|
9369
9580
|
}, function (_, i) {
|
9370
9581
|
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9371
9582
|
}), ["."])
|
9372
9583
|
}),
|
9373
9584
|
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9374
|
-
tickAmount:
|
9375
|
-
max:
|
9585
|
+
tickAmount: questions.length + 1,
|
9586
|
+
max: questions.length + 1,
|
9376
9587
|
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9377
9588
|
formatter: function formatter(val) {
|
9378
|
-
var
|
9379
|
-
var questions = timelyOrderQuestion.questions || null;
|
9380
|
-
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9589
|
+
var _questions2;
|
9381
9590
|
return val != null ? t("problem_number_question", {
|
9382
9591
|
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9383
9592
|
}) : t("no_data");
|
@@ -9425,7 +9634,46 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9425
9634
|
}];
|
9426
9635
|
});
|
9427
9636
|
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9428
|
-
var chartOptions = (
|
9637
|
+
var chartOptions = useMemo(function () {
|
9638
|
+
var _timelyOrderQuestions, _questions$length2;
|
9639
|
+
var questions = ((_timelyOrderQuestions = timelyOrderQuestions[dataChartIndex]) === null || _timelyOrderQuestions === void 0 ? void 0 : _timelyOrderQuestions.questions) || null;
|
9640
|
+
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9641
|
+
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9642
|
+
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9643
|
+
y: {
|
9644
|
+
formatter: function formatter(val, _ref2) {
|
9645
|
+
var dataPointIndex = _ref2.dataPointIndex;
|
9646
|
+
if (dataPointIndex > 0) {
|
9647
|
+
var _questions3;
|
9648
|
+
return val != null ? t("problem_number_question", {
|
9649
|
+
number: questions !== null ? (((_questions3 = questions[questionLength - val]) === null || _questions3 === void 0 ? void 0 : _questions3.questionOrder) || 0) + 1 : val
|
9650
|
+
}) : t("no_data");
|
9651
|
+
}
|
9652
|
+
return null;
|
9653
|
+
}
|
9654
|
+
}
|
9655
|
+
}),
|
9656
|
+
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9657
|
+
categories: ["."].concat(Array.from({
|
9658
|
+
length: questionLength
|
9659
|
+
}, function (_, i) {
|
9660
|
+
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9661
|
+
}), ["."])
|
9662
|
+
}),
|
9663
|
+
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9664
|
+
tickAmount: questionLength + 1,
|
9665
|
+
max: questionLength + 1,
|
9666
|
+
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9667
|
+
formatter: function formatter(val) {
|
9668
|
+
var _questions4;
|
9669
|
+
return val != null ? t("problem_number_question", {
|
9670
|
+
number: questions !== null ? (((_questions4 = questions[questionLength - val]) === null || _questions4 === void 0 ? void 0 : _questions4.questionOrder) || 0) + 1 : val
|
9671
|
+
}) : t("no_data");
|
9672
|
+
}
|
9673
|
+
})
|
9674
|
+
})
|
9675
|
+
});
|
9676
|
+
}, [JSON.stringify(allChartOptions), dataChartIndex, language]);
|
9429
9677
|
var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
|
9430
9678
|
var handleExportPdf = function handleExportPdf() {
|
9431
9679
|
try {
|
@@ -9604,9 +9852,12 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9604
9852
|
return Promise.reject(e);
|
9605
9853
|
}
|
9606
9854
|
};
|
9855
|
+
useEffect(function () {
|
9856
|
+
setDataChartIndex(0);
|
9857
|
+
}, [selectedTab]);
|
9607
9858
|
var examTime = useMemo(function () {
|
9608
|
-
return utcToLocalTime(
|
9609
|
-
}, [
|
9859
|
+
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");
|
9860
|
+
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
9610
9861
|
return {
|
9611
9862
|
examTime: examTime,
|
9612
9863
|
series: series,
|
@@ -9616,7 +9867,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9616
9867
|
dataChartIndex: dataChartIndex,
|
9617
9868
|
totalTime: totalTime,
|
9618
9869
|
isStudent: isStudent,
|
9619
|
-
|
9870
|
+
resultData: resultData,
|
9620
9871
|
effectSize: effectSize,
|
9621
9872
|
longTimeSpend: longTimeSpend,
|
9622
9873
|
timelyOrderQuestions: timelyOrderQuestions,
|
@@ -11090,10 +11341,17 @@ function CreateNewQuestionDialog(_ref) {
|
|
11090
11341
|
className: styles$4['btn-cancel'],
|
11091
11342
|
onClick: toggleCreateQuestion
|
11092
11343
|
}, React.createElement(Typography$1, {
|
11344
|
+
sx: {
|
11345
|
+
color: styles.dark + " !important"
|
11346
|
+
},
|
11093
11347
|
fontWeight: 700,
|
11094
11348
|
fontSize: '14px',
|
11095
11349
|
lineHeight: '16.71px'
|
11096
11350
|
}, "\uCDE8\uC18C")), React.createElement(Button$1, {
|
11351
|
+
variant: 'contained',
|
11352
|
+
sx: {
|
11353
|
+
bgcolor: styles.dark
|
11354
|
+
},
|
11097
11355
|
className: styles$4['btn-register'],
|
11098
11356
|
type: "submit"
|
11099
11357
|
}, React.createElement(Typography$1, {
|
@@ -11146,7 +11404,9 @@ function MyAnswer(_ref) {
|
|
11146
11404
|
}
|
11147
11405
|
}, question.isStar ? React.createElement(iconStarQuestion, null) : React.createElement(iconNoStarQuestion, null), React.createElement("span", {
|
11148
11406
|
className: styles$4["questionOrder"]
|
11149
|
-
},
|
11407
|
+
}, t("number_question", {
|
11408
|
+
number: question.questionOrder + 1
|
11409
|
+
}))), React.createElement("div", {
|
11150
11410
|
className: styles["custom-col-2"],
|
11151
11411
|
style: {
|
11152
11412
|
display: "flex",
|
@@ -11155,11 +11415,11 @@ function MyAnswer(_ref) {
|
|
11155
11415
|
}
|
11156
11416
|
}, question.isCorrect && question.selectedAnswers !== "" && React.createElement(Fragment$1, null, React.createElement(iconCorrectAnswer, null), React.createElement("span", {
|
11157
11417
|
className: styles$4["answerCorrect"]
|
11158
|
-
}, "
|
11418
|
+
}, t("correct"))), !question.isCorrect && question.selectedAnswers !== "" && React.createElement(Fragment$1, null, React.createElement(iconCorrectAnswer$1, null), React.createElement("span", {
|
11159
11419
|
className: styles$4["answerIncorrect"]
|
11160
|
-
}, "
|
11420
|
+
}, t("incorrect"))), question.selectedAnswers === "" && React.createElement(Fragment$1, null, React.createElement(iconNoGrass, null), React.createElement("span", {
|
11161
11421
|
className: styles$4["answerNograss"]
|
11162
|
-
}, "
|
11422
|
+
}, t("no_solution")))), React.createElement("div", {
|
11163
11423
|
className: styles["custom-col-2"],
|
11164
11424
|
style: {
|
11165
11425
|
display: "flex",
|
@@ -11175,7 +11435,7 @@ function MyAnswer(_ref) {
|
|
11175
11435
|
margin: 0
|
11176
11436
|
},
|
11177
11437
|
className: styles$4["answerNoTime"]
|
11178
|
-
}, "
|
11438
|
+
}, t("no_time"))), React.createElement("div", {
|
11179
11439
|
className: styles["custom-col-2"],
|
11180
11440
|
style: {
|
11181
11441
|
display: "flex",
|
@@ -11208,7 +11468,7 @@ function MyAnswer(_ref) {
|
|
11208
11468
|
margin: 0
|
11209
11469
|
},
|
11210
11470
|
className: styles$4["answerNoTime"]
|
11211
|
-
}, "
|
11471
|
+
}, t("no_time"))), isStudent && React.createElement("div", {
|
11212
11472
|
className: styles["custom-col-2"],
|
11213
11473
|
style: {
|
11214
11474
|
display: "flex",
|
@@ -11220,7 +11480,7 @@ function MyAnswer(_ref) {
|
|
11220
11480
|
return handleOpenChat(e, question === null || question === void 0 ? void 0 : question.id);
|
11221
11481
|
}
|
11222
11482
|
}, React.createElement(iconChat, {
|
11223
|
-
color:
|
11483
|
+
color: styles.gray_700
|
11224
11484
|
})))));
|
11225
11485
|
});
|
11226
11486
|
};
|
@@ -11258,7 +11518,7 @@ function MyAnswer(_ref) {
|
|
11258
11518
|
fontWeight: 600,
|
11259
11519
|
color: "#97A1AF"
|
11260
11520
|
}
|
11261
|
-
}, "
|
11521
|
+
}, t("problem_number"))), React.createElement("div", {
|
11262
11522
|
className: styles["custom-col-2"],
|
11263
11523
|
style: {
|
11264
11524
|
display: "flex",
|
@@ -11270,7 +11530,7 @@ function MyAnswer(_ref) {
|
|
11270
11530
|
fontWeight: 600,
|
11271
11531
|
color: "#97A1AF"
|
11272
11532
|
}
|
11273
|
-
}, "
|
11533
|
+
}, t("answer"))), React.createElement("div", {
|
11274
11534
|
className: styles["custom-col-2"],
|
11275
11535
|
style: {
|
11276
11536
|
display: "flex",
|
@@ -11282,7 +11542,7 @@ function MyAnswer(_ref) {
|
|
11282
11542
|
fontWeight: 600,
|
11283
11543
|
color: "#97A1AF"
|
11284
11544
|
}
|
11285
|
-
}, "
|
11545
|
+
}, t("solve_time"))), React.createElement("div", {
|
11286
11546
|
className: styles["custom-col-2"],
|
11287
11547
|
style: {
|
11288
11548
|
display: "flex",
|
@@ -11295,7 +11555,7 @@ function MyAnswer(_ref) {
|
|
11295
11555
|
fontWeight: 600,
|
11296
11556
|
color: "#97A1AF"
|
11297
11557
|
}
|
11298
|
-
}, "
|
11558
|
+
}, t("comparison_of_top_rankings"))), React.createElement("div", {
|
11299
11559
|
className: styles["custom-col-2"],
|
11300
11560
|
style: {
|
11301
11561
|
display: "flex",
|
@@ -11308,14 +11568,14 @@ function MyAnswer(_ref) {
|
|
11308
11568
|
fontWeight: 600,
|
11309
11569
|
color: "#97A1AF"
|
11310
11570
|
}
|
11311
|
-
}, "
|
11571
|
+
}, t("total_correct_rate")))), React.createElement("div", {
|
11312
11572
|
className: styles$4["titleMyAnswer2"]
|
11313
11573
|
}, React.createElement(Typography, {
|
11314
11574
|
sx: {
|
11315
11575
|
color: "#97A1AF",
|
11316
11576
|
fontSize: "12px"
|
11317
11577
|
}
|
11318
|
-
}, "
|
11578
|
+
}, t("_category")), React.createElement(Typography, {
|
11319
11579
|
sx: {
|
11320
11580
|
color: "#414E62",
|
11321
11581
|
fontSize: "12px",
|
@@ -11379,6 +11639,8 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
11379
11639
|
var CompareGrass = function CompareGrass(_ref) {
|
11380
11640
|
var effectSize = _ref.effectSize,
|
11381
11641
|
isPrint = _ref.isPrint;
|
11642
|
+
var _useTranslation = useTranslation(),
|
11643
|
+
t = _useTranslation.t;
|
11382
11644
|
var renderTableBody = function renderTableBody(effectSize) {
|
11383
11645
|
return effectSize.map(function (item, index) {
|
11384
11646
|
return React.createElement("tr", {
|
@@ -11389,22 +11651,28 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11389
11651
|
} : {}
|
11390
11652
|
}, React.createElement("td", {
|
11391
11653
|
className: styles$4["tdcolumn1"]
|
11392
|
-
}, "
|
11654
|
+
}, t("problem"), " ", item.questionOrder + 1), React.createElement("td", {
|
11393
11655
|
style: {
|
11394
11656
|
textAlign: "center",
|
11395
11657
|
color: "#202B37"
|
11396
11658
|
}
|
11397
|
-
},
|
11659
|
+
}, t("number_question", {
|
11660
|
+
number: item.correctAnswers
|
11661
|
+
})), React.createElement("td", {
|
11398
11662
|
className: styles$4["tdcolumn3"],
|
11399
11663
|
style: {
|
11400
11664
|
color: item.isCorrect ? "#1EE288" : "#F34B4B"
|
11401
11665
|
}
|
11402
|
-
}, item.selectedAnswers ?
|
11666
|
+
}, item.selectedAnswers ? t("number_question", {
|
11667
|
+
number: item.selectedAnswers
|
11668
|
+
}) : ""), React.createElement("td", {
|
11403
11669
|
style: {
|
11404
11670
|
textAlign: "center",
|
11405
11671
|
color: "#414E62"
|
11406
11672
|
}
|
11407
|
-
}, item.mostSelectedAnswers ?
|
11673
|
+
}, item.mostSelectedAnswers ? t("number_question", {
|
11674
|
+
number: item.mostSelectedAnswers
|
11675
|
+
}) : ""), React.createElement("td", null, React.createElement("div", {
|
11408
11676
|
className: styles$4["classification"]
|
11409
11677
|
}, item.problemCategories.map(function (problem, index) {
|
11410
11678
|
return React.createElement("div", {
|
@@ -11413,23 +11681,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11413
11681
|
style: {
|
11414
11682
|
border: "1px solid #1EE288"
|
11415
11683
|
}
|
11416
|
-
}, "
|
11684
|
+
}, t("easy_problem")), problem === 3 && React.createElement("span", {
|
11417
11685
|
style: {
|
11418
11686
|
border: "1px solid #FDDB64"
|
11419
11687
|
}
|
11420
|
-
}, "
|
11688
|
+
}, t("trick_problem")), problem === 2 && React.createElement("span", {
|
11421
11689
|
style: {
|
11422
11690
|
border: "1px solid #F34B4B"
|
11423
11691
|
}
|
11424
|
-
}, "
|
11692
|
+
}, t("differential_problem")), problem === 0 && React.createElement("span", {
|
11425
11693
|
style: {
|
11426
11694
|
border: "1px solid #DDDDDD"
|
11427
11695
|
}
|
11428
|
-
}, "
|
11696
|
+
}, t("general_problem")), problem === 4 && React.createElement("span", {
|
11429
11697
|
style: {
|
11430
11698
|
border: "1px solid #FF0000"
|
11431
11699
|
}
|
11432
|
-
}, "
|
11700
|
+
}, t("Difficult_problem")));
|
11433
11701
|
}))));
|
11434
11702
|
});
|
11435
11703
|
};
|
@@ -11459,23 +11727,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11459
11727
|
className: isPrint ? PrintHeaderClassName : ""
|
11460
11728
|
}, React.createElement("tr", null, React.createElement("th", {
|
11461
11729
|
className: styles$4["thcolumn1"]
|
11462
|
-
}, "
|
11730
|
+
}, t("problem_number")), React.createElement("th", {
|
11463
11731
|
style: {
|
11464
11732
|
textAlign: "center"
|
11465
11733
|
}
|
11466
|
-
}, "
|
11734
|
+
}, t("answer")), React.createElement("th", {
|
11467
11735
|
style: {
|
11468
11736
|
textAlign: "center"
|
11469
11737
|
}
|
11470
|
-
}, "
|
11738
|
+
}, t("my_solution")), React.createElement("th", {
|
11471
11739
|
style: {
|
11472
11740
|
textAlign: "center"
|
11473
11741
|
}
|
11474
|
-
}, "
|
11742
|
+
}, t("most_solutions")), React.createElement("th", {
|
11475
11743
|
style: {
|
11476
11744
|
textAlign: "center"
|
11477
11745
|
}
|
11478
|
-
}, "
|
11746
|
+
}, t("problem_classification")))), isPrint ? renderPrintTableBody(effectSize) : React.createElement("tbody", null, renderTableBody(effectSize))))));
|
11479
11747
|
};
|
11480
11748
|
|
11481
11749
|
var iconUpArrow = function iconUpArrow(_ref) {
|
@@ -11566,10 +11834,14 @@ var iconAssignedQuestions = function iconAssignedQuestions(_ref) {
|
|
11566
11834
|
};
|
11567
11835
|
|
11568
11836
|
var TrickyProblem = function TrickyProblem(_ref) {
|
11569
|
-
var
|
11837
|
+
var keyOpen = _ref.keyOpen,
|
11838
|
+
data = _ref.data,
|
11570
11839
|
openProblem = _ref.openProblem,
|
11571
11840
|
changeOpen = _ref.changeOpen,
|
11572
11841
|
isPrint = _ref.isPrint;
|
11842
|
+
var _useTranslation = useTranslation(),
|
11843
|
+
t = _useTranslation.t;
|
11844
|
+
var isOpen = openProblem === keyOpen;
|
11573
11845
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11574
11846
|
return i.isStar && !i.isCorrect;
|
11575
11847
|
});
|
@@ -11579,82 +11851,90 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11579
11851
|
var renderProblems = function renderProblems() {
|
11580
11852
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11581
11853
|
className: styles$4["titleTrickyProblem"]
|
11582
|
-
}, React.createElement(iconX, null), React.createElement("span", null, "
|
11854
|
+
}, React.createElement(iconX, null), React.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React.createElement("div", {
|
11583
11855
|
className: styles$4["wrongQuestions"]
|
11584
11856
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11585
11857
|
return React.createElement("span", {
|
11586
11858
|
key: question.id,
|
11587
11859
|
className: styles$4["question"]
|
11588
|
-
},
|
11860
|
+
}, t("number_question", {
|
11861
|
+
number: question.questionOrder + 1
|
11862
|
+
}));
|
11589
11863
|
}), !data.questions.length && React.createElement("div", {
|
11590
11864
|
className: styles$4["noData"]
|
11591
|
-
}, "
|
11865
|
+
}, t("no_data"))), React.createElement("div", {
|
11592
11866
|
className: styles$4["titleTrickyProblem"]
|
11593
|
-
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "
|
11867
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React.createElement("div", {
|
11594
11868
|
className: styles$4["assignedQuestions"]
|
11595
11869
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11596
11870
|
return React.createElement("div", {
|
11597
11871
|
key: question.id,
|
11598
11872
|
className: styles$4["question"]
|
11599
|
-
},
|
11873
|
+
}, t("number_question", {
|
11874
|
+
number: question.questionOrder + 1
|
11875
|
+
}));
|
11600
11876
|
}), !data.questions.length && React.createElement("div", {
|
11601
11877
|
className: styles$4["noData"]
|
11602
|
-
}, "
|
11878
|
+
}, t("no_data"))));
|
11603
11879
|
};
|
11604
11880
|
var renderPrintProblems = function renderPrintProblems() {
|
11605
11881
|
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11606
11882
|
className: PrintContentClassName
|
11607
11883
|
}, React.createElement("div", {
|
11608
11884
|
className: styles$4["titleTrickyProblem"]
|
11609
|
-
}, React.createElement(iconX, null), React.createElement("span", null, "
|
11885
|
+
}, React.createElement(iconX, null), React.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React.createElement("div", {
|
11610
11886
|
className: styles$4["wrongQuestions"]
|
11611
11887
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11612
11888
|
return React.createElement("span", {
|
11613
11889
|
key: question.id,
|
11614
11890
|
className: styles$4["question"]
|
11615
|
-
},
|
11891
|
+
}, t("number_question", {
|
11892
|
+
number: question.questionOrder + 1
|
11893
|
+
}));
|
11616
11894
|
}), !data.questions.length && React.createElement("div", {
|
11617
11895
|
className: styles$4["noData"]
|
11618
|
-
}, "
|
11896
|
+
}, t("no_data")))), React.createElement("div", {
|
11619
11897
|
className: PrintContentClassName
|
11620
11898
|
}, React.createElement("div", {
|
11621
11899
|
className: styles$4["titleTrickyProblem"]
|
11622
|
-
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "
|
11900
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React.createElement("div", {
|
11623
11901
|
className: styles$4["assignedQuestions"]
|
11624
11902
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11625
11903
|
return React.createElement("div", {
|
11626
11904
|
key: question.id,
|
11627
11905
|
className: styles$4["question"]
|
11628
|
-
},
|
11906
|
+
}, t("number_question", {
|
11907
|
+
number: question.questionOrder + 1
|
11908
|
+
}));
|
11629
11909
|
}), !data.questions.length && React.createElement("div", {
|
11630
11910
|
className: styles$4["noData"]
|
11631
|
-
}, "
|
11911
|
+
}, t("no_data")))));
|
11632
11912
|
};
|
11633
11913
|
return React.createElement("div", {
|
11634
11914
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11635
11915
|
}, React.createElement("div", {
|
11636
|
-
className: (!
|
11916
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11637
11917
|
onClick: function onClick() {
|
11638
|
-
return changeOpen(
|
11639
|
-
problem1: !openProblem.problem1
|
11640
|
-
}));
|
11918
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11641
11919
|
}
|
11642
11920
|
}, React.createElement(Typography, {
|
11643
11921
|
sx: {
|
11644
|
-
color: !
|
11922
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11645
11923
|
fontSize: "14px",
|
11646
11924
|
fontWeight: 700
|
11647
11925
|
}
|
11648
|
-
}, "
|
11926
|
+
}, t("tricky_problems")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, isPrint ? renderPrintProblems() : renderProblems()));
|
11649
11927
|
};
|
11650
11928
|
|
11651
11929
|
var ProtractedProblem = function ProtractedProblem(_ref) {
|
11652
|
-
var
|
11930
|
+
var keyOpen = _ref.keyOpen,
|
11931
|
+
data = _ref.data,
|
11653
11932
|
openProblem = _ref.openProblem,
|
11654
11933
|
changeOpen = _ref.changeOpen,
|
11655
11934
|
isPrint = _ref.isPrint;
|
11656
11935
|
var _useTranslation = useTranslation(),
|
11657
11936
|
t = _useTranslation.t;
|
11937
|
+
var isOpen = openProblem === keyOpen;
|
11658
11938
|
var renderQuestions = function renderQuestions(data) {
|
11659
11939
|
return data.map(function (item) {
|
11660
11940
|
return React.createElement("div", {
|
@@ -11664,15 +11944,17 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11664
11944
|
className: styles$4["contentColumn1"]
|
11665
11945
|
}, React.createElement("div", null, React.createElement("span", {
|
11666
11946
|
className: styles$4["span1"]
|
11667
|
-
}, "
|
11947
|
+
}, t("problem")), React.createElement("span", {
|
11668
11948
|
className: styles$4["span2"]
|
11669
|
-
},
|
11949
|
+
}, t("number_question", {
|
11950
|
+
number: item.questionOrder + 1
|
11951
|
+
})))), React.createElement("div", {
|
11670
11952
|
className: styles$4["contentColumn2"]
|
11671
11953
|
}, React.createElement("div", null, React.createElement("span", {
|
11672
11954
|
className: styles$4["span1"]
|
11673
|
-
}, "
|
11955
|
+
}, t("my_time")), React.createElement("span", {
|
11674
11956
|
className: styles$4["span2"]
|
11675
|
-
}, "
|
11957
|
+
}, t("top_time"))), React.createElement("div", null, React.createElement("span", {
|
11676
11958
|
className: styles$4["duration"]
|
11677
11959
|
}, formatTimeSecond(item.duration, t)), React.createElement("span", {
|
11678
11960
|
className: styles$4["topDuration"]
|
@@ -11691,30 +11973,32 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11691
11973
|
return React.createElement("div", {
|
11692
11974
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11693
11975
|
}, React.createElement("div", {
|
11694
|
-
className: (!
|
11976
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11695
11977
|
onClick: function onClick() {
|
11696
|
-
return changeOpen(
|
11697
|
-
problem2: !openProblem.problem2
|
11698
|
-
}));
|
11978
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11699
11979
|
}
|
11700
11980
|
}, React.createElement(Typography, {
|
11701
11981
|
sx: {
|
11702
|
-
color: !
|
11982
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11703
11983
|
fontSize: "14px",
|
11704
11984
|
fontWeight: 700
|
11705
11985
|
}
|
11706
|
-
}, "
|
11986
|
+
}, t("problems_that_took_a_long_time")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11707
11987
|
className: styles$4["wrapperContent"]
|
11708
11988
|
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React.createElement("div", {
|
11709
11989
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11710
|
-
}, "
|
11990
|
+
}, t("no_data")))));
|
11711
11991
|
};
|
11712
11992
|
|
11713
11993
|
var Vulnerable = function Vulnerable(_ref) {
|
11714
11994
|
var data = _ref.data,
|
11995
|
+
keyOpen = _ref.keyOpen,
|
11715
11996
|
openProblem = _ref.openProblem,
|
11716
11997
|
changeOpen = _ref.changeOpen,
|
11717
11998
|
isPrint = _ref.isPrint;
|
11999
|
+
var _useTranslation = useTranslation(),
|
12000
|
+
t = _useTranslation.t;
|
12001
|
+
var isOpen = openProblem === keyOpen;
|
11718
12002
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11719
12003
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
11720
12004
|
}).sort(function (q1, q2) {
|
@@ -11729,19 +12013,25 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11729
12013
|
className: styles$4["contentColumn1"]
|
11730
12014
|
}, React.createElement("div", null, React.createElement("span", {
|
11731
12015
|
className: styles$4["span1"]
|
11732
|
-
}, "
|
12016
|
+
}, t("problem_number")), React.createElement("span", {
|
11733
12017
|
className: styles$4["span2"]
|
11734
|
-
},
|
12018
|
+
}, t("number_question", {
|
12019
|
+
number: question.questionOrder + 1
|
12020
|
+
})))), React.createElement("div", {
|
11735
12021
|
className: styles$4["contentColumn2"]
|
11736
12022
|
}, React.createElement("div", null, React.createElement("span", {
|
11737
12023
|
className: styles$4["span1"]
|
11738
|
-
}, "
|
12024
|
+
}, t("total_correct_rate")), React.createElement("span", {
|
11739
12025
|
className: styles$4["span2"]
|
11740
|
-
}, "
|
12026
|
+
}, t("my_wrong_answer"))), React.createElement("div", null, React.createElement("span", {
|
11741
12027
|
className: styles$4["overallCorrectRate"]
|
11742
12028
|
}, question.overallCorrectRate.toFixed(2), "%"), React.createElement("span", {
|
11743
12029
|
className: styles$4["answer"]
|
11744
|
-
},
|
12030
|
+
}, t("number_question", {
|
12031
|
+
number: question.selectedAnswers
|
12032
|
+
}), " (", t("answer"), " ", t("number_question", {
|
12033
|
+
number: question.correctAnswers
|
12034
|
+
}), ")"))));
|
11745
12035
|
});
|
11746
12036
|
};
|
11747
12037
|
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
@@ -11756,30 +12046,32 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11756
12046
|
return React.createElement("div", {
|
11757
12047
|
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11758
12048
|
}, React.createElement("div", {
|
11759
|
-
className: (!
|
12049
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11760
12050
|
onClick: function onClick() {
|
11761
|
-
return changeOpen(
|
11762
|
-
problem3: !openProblem.problem3
|
11763
|
-
}));
|
12051
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11764
12052
|
}
|
11765
12053
|
}, React.createElement(Typography, {
|
11766
12054
|
sx: {
|
11767
|
-
color: !
|
12055
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11768
12056
|
fontSize: "14px",
|
11769
12057
|
fontWeight: 700
|
11770
12058
|
}
|
11771
|
-
}, "
|
12059
|
+
}, t("issues_vulnerable")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11772
12060
|
className: styles$4["wrapperContent"]
|
11773
12061
|
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React.createElement("div", {
|
11774
12062
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11775
|
-
}, "
|
12063
|
+
}, t("no_data")))));
|
11776
12064
|
};
|
11777
12065
|
|
11778
12066
|
var GradesByTerritory = function GradesByTerritory(_ref) {
|
11779
|
-
var
|
12067
|
+
var keyOpen = _ref.keyOpen,
|
12068
|
+
data = _ref.data,
|
11780
12069
|
openProblem = _ref.openProblem,
|
11781
12070
|
changeOpen = _ref.changeOpen,
|
11782
12071
|
isPrint = _ref.isPrint;
|
12072
|
+
var _useTranslation = useTranslation(),
|
12073
|
+
t = _useTranslation.t;
|
12074
|
+
var isOpen = openProblem === keyOpen;
|
11783
12075
|
var renderCategories = function renderCategories(data) {
|
11784
12076
|
return data.map(function (item) {
|
11785
12077
|
var trackStyle = {
|
@@ -11794,7 +12086,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11794
12086
|
className: styles$4["name"]
|
11795
12087
|
}, item.name), React.createElement("div", {
|
11796
12088
|
className: styles$4["percent"]
|
11797
|
-
}, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "
|
12089
|
+
}, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, t("problems")))), React.createElement("div", {
|
11798
12090
|
className: styles$4["slider"]
|
11799
12091
|
}, React.createElement("div", null, React.createElement("span", {
|
11800
12092
|
className: styles$4["track"],
|
@@ -11814,23 +12106,21 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11814
12106
|
return React.createElement("div", {
|
11815
12107
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11816
12108
|
}, React.createElement("div", {
|
11817
|
-
className: (!
|
12109
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11818
12110
|
onClick: function onClick() {
|
11819
|
-
return changeOpen(
|
11820
|
-
problem4: !openProblem.problem4
|
11821
|
-
}));
|
12111
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11822
12112
|
}
|
11823
12113
|
}, React.createElement(Typography, {
|
11824
12114
|
sx: {
|
11825
|
-
color: !
|
12115
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11826
12116
|
fontSize: "14px",
|
11827
12117
|
fontWeight: 700
|
11828
12118
|
}
|
11829
|
-
}, "
|
12119
|
+
}, t("grades_by_area")), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement("div", {
|
11830
12120
|
className: styles$4["wrappContentProblem"]
|
11831
|
-
}, isPrint ? renderPrintCategories() : renderCategories(data),
|
12121
|
+
}, isPrint ? renderPrintCategories() : renderCategories(data), isOpen && !data.length && React.createElement("div", {
|
11832
12122
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11833
|
-
}, "
|
12123
|
+
}, t("no_data"))));
|
11834
12124
|
};
|
11835
12125
|
|
11836
12126
|
var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
@@ -11960,10 +12250,17 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
11960
12250
|
className: styles$4['btn-cancel'],
|
11961
12251
|
onClick: toggleCreateQuestion
|
11962
12252
|
}, React.createElement(Typography$1, {
|
12253
|
+
sx: {
|
12254
|
+
color: styles.dark + " !important"
|
12255
|
+
},
|
11963
12256
|
fontWeight: 700,
|
11964
12257
|
fontSize: '14px',
|
11965
12258
|
lineHeight: '16.71px'
|
11966
12259
|
}, "\uCDE8\uC18C")), React.createElement(Button$1, {
|
12260
|
+
variant: 'contained',
|
12261
|
+
sx: {
|
12262
|
+
bgcolor: styles.dark
|
12263
|
+
},
|
11967
12264
|
className: styles$4['btn-register'],
|
11968
12265
|
type: "submit"
|
11969
12266
|
}, React.createElement(Typography$1, {
|
@@ -12032,7 +12329,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12032
12329
|
var _useTab = useTab(),
|
12033
12330
|
selected = _useTab.selected,
|
12034
12331
|
handleChangeTab = _useTab.handleChangeTab;
|
12035
|
-
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
|
12332
|
+
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab, selected),
|
12036
12333
|
examTime = _useExamResult.examTime,
|
12037
12334
|
series = _useExamResult.series,
|
12038
12335
|
allSeries = _useExamResult.allSeries,
|
@@ -12042,7 +12339,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12042
12339
|
timelyOrderQuestions = _useExamResult.timelyOrderQuestions,
|
12043
12340
|
isStudent = _useExamResult.isStudent,
|
12044
12341
|
openProblem = _useExamResult.openProblem,
|
12045
|
-
|
12342
|
+
resultData = _useExamResult.resultData,
|
12046
12343
|
longTimeSpend = _useExamResult.longTimeSpend,
|
12047
12344
|
effectSize = _useExamResult.effectSize,
|
12048
12345
|
categoryResponses = _useExamResult.categoryResponses,
|
@@ -12057,7 +12354,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12057
12354
|
openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
|
12058
12355
|
toggleCreateQuestion = _useCreateQuestionDia.toggleCreateQuestion;
|
12059
12356
|
var isTabletUp = useMediaQuery('(min-width:900px)');
|
12060
|
-
return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend &&
|
12357
|
+
return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend && resultData && effectSize ? React.createElement("div", {
|
12061
12358
|
style: {
|
12062
12359
|
width: "100%"
|
12063
12360
|
}
|
@@ -12066,13 +12363,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12066
12363
|
padding: "24px"
|
12067
12364
|
}, React.createElement(Grid, {
|
12068
12365
|
item: true
|
12069
|
-
},
|
12366
|
+
}, resultData.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
12070
12367
|
sx: {
|
12071
12368
|
fontSize: "14px",
|
12072
12369
|
fontWeight: 600,
|
12073
|
-
color:
|
12370
|
+
color: styles.less_dark
|
12074
12371
|
}
|
12075
|
-
},
|
12372
|
+
}, resultData.courseName)), React.createElement(Box, {
|
12076
12373
|
display: "flex",
|
12077
12374
|
gap: "16px",
|
12078
12375
|
flexDirection: "column"
|
@@ -12080,78 +12377,77 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12080
12377
|
sx: {
|
12081
12378
|
fontSize: "20px",
|
12082
12379
|
fontWeight: 600,
|
12083
|
-
color:
|
12380
|
+
color: styles.darker
|
12084
12381
|
}
|
12085
|
-
},
|
12382
|
+
}, resultData.title)), React.createElement(Stack, {
|
12086
12383
|
flexDirection: "row",
|
12087
12384
|
gap: "16px"
|
12088
12385
|
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12089
12386
|
sx: {
|
12090
12387
|
fontSize: "13px",
|
12091
12388
|
fontWeight: 600,
|
12092
|
-
color:
|
12389
|
+
color: styles.gray_500
|
12093
12390
|
}
|
12094
12391
|
}, t("my_score")), React.createElement(Typography, {
|
12095
12392
|
sx: {
|
12096
12393
|
fontSize: "14px",
|
12097
12394
|
fontWeight: 600,
|
12098
|
-
color:
|
12395
|
+
color: styles.darker
|
12099
12396
|
}
|
12100
12397
|
}, t("score_format", {
|
12101
|
-
score:
|
12398
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12102
12399
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12103
12400
|
sx: {
|
12104
12401
|
fontSize: "13px",
|
12105
12402
|
fontWeight: 600,
|
12106
|
-
color:
|
12403
|
+
color: styles.gray_500
|
12107
12404
|
}
|
12108
12405
|
}, t("exam_date")), React.createElement(Typography, {
|
12109
12406
|
sx: {
|
12110
12407
|
fontSize: "14px",
|
12111
12408
|
fontWeight: 600,
|
12112
|
-
color:
|
12409
|
+
color: styles.gray_700
|
12113
12410
|
}
|
12114
|
-
}, utcToLocalTime(
|
12411
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
|
12115
12412
|
sx: {
|
12116
12413
|
fontSize: "13px",
|
12117
12414
|
fontWeight: 600,
|
12118
|
-
color:
|
12415
|
+
color: styles.gray_500
|
12119
12416
|
}
|
12120
12417
|
}, t("exam_time")), React.createElement(Typography, {
|
12121
12418
|
sx: {
|
12122
12419
|
fontSize: "14px",
|
12123
12420
|
fontWeight: 600,
|
12124
|
-
color:
|
12421
|
+
color: styles.gray_700
|
12125
12422
|
}
|
12126
12423
|
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12127
12424
|
sx: {
|
12128
12425
|
fontSize: "13px",
|
12129
12426
|
fontWeight: 600,
|
12130
|
-
color:
|
12427
|
+
color: styles.gray_500
|
12131
12428
|
}
|
12132
12429
|
}, t("total_students")), React.createElement(Typography, {
|
12133
12430
|
sx: {
|
12134
12431
|
fontSize: "14px",
|
12135
12432
|
fontWeight: 600,
|
12136
|
-
color:
|
12433
|
+
color: styles.gray_700
|
12137
12434
|
}
|
12138
12435
|
}, t("number_people", {
|
12139
|
-
number:
|
12436
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12140
12437
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12141
12438
|
sx: {
|
12142
12439
|
fontSize: "13px",
|
12143
12440
|
fontWeight: 600,
|
12144
|
-
color:
|
12441
|
+
color: styles.gray_500
|
12145
12442
|
}
|
12146
12443
|
}, t("teacher_in_charge")), React.createElement(Typography, {
|
12147
12444
|
sx: {
|
12148
12445
|
fontSize: "14px",
|
12149
12446
|
fontWeight: 600,
|
12150
|
-
color:
|
12447
|
+
color: styles.gray_700
|
12151
12448
|
}
|
12152
|
-
},
|
12449
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React.createElement(Grid, {
|
12153
12450
|
container: true,
|
12154
|
-
padding: "24px",
|
12155
12451
|
className: "position-relative overflow-hidden"
|
12156
12452
|
}, !isTabletUp && React.createElement(Grid, {
|
12157
12453
|
item: true,
|
@@ -12183,7 +12479,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12183
12479
|
justifyContent: "space-between",
|
12184
12480
|
alignItems: "center",
|
12185
12481
|
display: "flex",
|
12186
|
-
|
12482
|
+
overflow: "scroll",
|
12483
|
+
bgcolor: styles.gray_100,
|
12187
12484
|
borderTop: "1px solid #E4E7EC",
|
12188
12485
|
borderBottom: "1px solid #E4E7EC"
|
12189
12486
|
}, React.createElement(Stack, {
|
@@ -12200,9 +12497,11 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12200
12497
|
sx: {
|
12201
12498
|
fontSize: "14px",
|
12202
12499
|
fontWeight: "600",
|
12203
|
-
color: value === selected ?
|
12500
|
+
color: value === selected ? styles.less_dark : styles.gray_500,
|
12204
12501
|
padding: "8px 16px",
|
12205
|
-
|
12502
|
+
"&:hover": {
|
12503
|
+
background: styles.light
|
12504
|
+
}
|
12206
12505
|
},
|
12207
12506
|
onClick: function onClick() {
|
12208
12507
|
return handleChangeTab(value);
|
@@ -12224,7 +12523,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12224
12523
|
value: selected,
|
12225
12524
|
index: 0
|
12226
12525
|
}, React.createElement(MyAnswer, {
|
12227
|
-
data:
|
12526
|
+
data: resultData,
|
12228
12527
|
categories: categoryResponses,
|
12229
12528
|
isStudent: isStudent
|
12230
12529
|
})), React.createElement(CustomTabPanel, {
|
@@ -12253,18 +12552,22 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12253
12552
|
value: selected,
|
12254
12553
|
index: 3
|
12255
12554
|
}, React.createElement(TrickyProblem, {
|
12256
|
-
|
12555
|
+
keyOpen: "TrickyProblem",
|
12556
|
+
data: resultData,
|
12257
12557
|
openProblem: openProblem,
|
12258
12558
|
changeOpen: setOpenProblem
|
12259
12559
|
}), React.createElement(Vulnerable, {
|
12260
|
-
|
12560
|
+
keyOpen: "Vulnerable",
|
12561
|
+
data: resultData,
|
12261
12562
|
openProblem: openProblem,
|
12262
12563
|
changeOpen: setOpenProblem
|
12263
12564
|
}), React.createElement(ProtractedProblem, {
|
12565
|
+
keyOpen: "ProtractedProblem",
|
12264
12566
|
data: longTimeSpend,
|
12265
12567
|
openProblem: openProblem,
|
12266
12568
|
changeOpen: setOpenProblem
|
12267
12569
|
}), React.createElement(GradesByTerritory, {
|
12570
|
+
keyOpen: "GradesByTerritory",
|
12268
12571
|
data: categoryResponses,
|
12269
12572
|
openProblem: openProblem,
|
12270
12573
|
changeOpen: setOpenProblem
|
@@ -12283,13 +12586,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12283
12586
|
id: "header-canvas"
|
12284
12587
|
}, React.createElement(Grid, {
|
12285
12588
|
item: true
|
12286
|
-
},
|
12589
|
+
}, resultData.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
12287
12590
|
sx: {
|
12288
12591
|
fontSize: "14px",
|
12289
12592
|
fontWeight: 600,
|
12290
|
-
color:
|
12593
|
+
color: styles.less_dark
|
12291
12594
|
}
|
12292
|
-
},
|
12595
|
+
}, resultData.courseName)), React.createElement(Box, {
|
12293
12596
|
display: "flex",
|
12294
12597
|
gap: "16px",
|
12295
12598
|
flexDirection: "column"
|
@@ -12297,76 +12600,76 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12297
12600
|
sx: {
|
12298
12601
|
fontSize: "20px",
|
12299
12602
|
fontWeight: 600,
|
12300
|
-
color:
|
12603
|
+
color: styles.darker
|
12301
12604
|
}
|
12302
|
-
},
|
12605
|
+
}, resultData.title)), React.createElement(Stack, {
|
12303
12606
|
flexDirection: "row",
|
12304
12607
|
gap: "16px"
|
12305
12608
|
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12306
12609
|
sx: {
|
12307
12610
|
fontSize: "13px",
|
12308
12611
|
fontWeight: 600,
|
12309
|
-
color:
|
12612
|
+
color: styles.gray_500
|
12310
12613
|
}
|
12311
12614
|
}, t("my_score")), React.createElement(Typography, {
|
12312
12615
|
sx: {
|
12313
12616
|
fontSize: "14px",
|
12314
12617
|
fontWeight: 600,
|
12315
|
-
color:
|
12618
|
+
color: styles.darker
|
12316
12619
|
}
|
12317
12620
|
}, t("score_format", {
|
12318
|
-
score:
|
12621
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12319
12622
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12320
12623
|
sx: {
|
12321
12624
|
fontSize: "13px",
|
12322
12625
|
fontWeight: 600,
|
12323
|
-
color:
|
12626
|
+
color: styles.gray_500
|
12324
12627
|
}
|
12325
12628
|
}, t("exam_date")), React.createElement(Typography, {
|
12326
12629
|
sx: {
|
12327
12630
|
fontSize: "14px",
|
12328
12631
|
fontWeight: 600,
|
12329
|
-
color:
|
12632
|
+
color: styles.gray_700
|
12330
12633
|
}
|
12331
|
-
}, utcToLocalTime(
|
12634
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
|
12332
12635
|
sx: {
|
12333
12636
|
fontSize: "13px",
|
12334
12637
|
fontWeight: 600,
|
12335
|
-
color:
|
12638
|
+
color: styles.gray_500
|
12336
12639
|
}
|
12337
12640
|
}, t("exam_time")), React.createElement(Typography, {
|
12338
12641
|
sx: {
|
12339
12642
|
fontSize: "14px",
|
12340
12643
|
fontWeight: 600,
|
12341
|
-
color:
|
12644
|
+
color: styles.gray_700
|
12342
12645
|
}
|
12343
12646
|
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12344
12647
|
sx: {
|
12345
12648
|
fontSize: "13px",
|
12346
12649
|
fontWeight: 600,
|
12347
|
-
color:
|
12650
|
+
color: styles.gray_500
|
12348
12651
|
}
|
12349
12652
|
}, t("total_students")), React.createElement(Typography, {
|
12350
12653
|
sx: {
|
12351
12654
|
fontSize: "14px",
|
12352
12655
|
fontWeight: 600,
|
12353
|
-
color:
|
12656
|
+
color: styles.gray_700
|
12354
12657
|
}
|
12355
12658
|
}, t("number_people", {
|
12356
|
-
number:
|
12659
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12357
12660
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12358
12661
|
sx: {
|
12359
12662
|
fontSize: "13px",
|
12360
12663
|
fontWeight: 600,
|
12361
|
-
color:
|
12664
|
+
color: styles.gray_500
|
12362
12665
|
}
|
12363
12666
|
}, t("teacher_in_charge")), React.createElement(Typography, {
|
12364
12667
|
sx: {
|
12365
12668
|
fontSize: "14px",
|
12366
12669
|
fontWeight: 600,
|
12367
|
-
color:
|
12670
|
+
color: styles.gray_700
|
12368
12671
|
}
|
12369
|
-
},
|
12672
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React.createElement(Stack, {
|
12370
12673
|
display: "flex",
|
12371
12674
|
flexDirection: "column",
|
12372
12675
|
gap: "12px"
|
@@ -12375,10 +12678,10 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12375
12678
|
sx: {
|
12376
12679
|
fontSize: "18px",
|
12377
12680
|
fontWeight: 700,
|
12378
|
-
color:
|
12681
|
+
color: styles.gray_500
|
12379
12682
|
}
|
12380
12683
|
}, t(TabList[0].label)), React.createElement(MyAnswer, {
|
12381
|
-
data:
|
12684
|
+
data: resultData,
|
12382
12685
|
categories: categoryResponses,
|
12383
12686
|
isStudent: isStudent,
|
12384
12687
|
isPrint: true
|
@@ -12392,7 +12695,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12392
12695
|
sx: {
|
12393
12696
|
fontSize: "18px",
|
12394
12697
|
fontWeight: 700,
|
12395
|
-
color:
|
12698
|
+
color: styles.gray_500
|
12396
12699
|
}
|
12397
12700
|
}, t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
12398
12701
|
return React.createElement("div", {
|
@@ -12424,11 +12727,10 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12424
12727
|
gap: "12px",
|
12425
12728
|
marginTop: "24px"
|
12426
12729
|
}, React.createElement(Typography, {
|
12427
|
-
className: "chart-title",
|
12428
12730
|
sx: {
|
12429
|
-
fontSize: "
|
12731
|
+
fontSize: "16px",
|
12430
12732
|
fontWeight: 700,
|
12431
|
-
color:
|
12733
|
+
color: styles.grey_500
|
12432
12734
|
}
|
12433
12735
|
}, t(TabList[2].label)), React.createElement(CompareGrass, {
|
12434
12736
|
effectSize: effectSize,
|
@@ -12443,38 +12745,34 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12443
12745
|
sx: {
|
12444
12746
|
fontSize: "18px",
|
12445
12747
|
fontWeight: 700,
|
12446
|
-
color:
|
12748
|
+
color: styles.gray_500
|
12447
12749
|
}
|
12448
12750
|
}, t(TabList[3].label)), React.createElement(TrickyProblem, {
|
12449
|
-
|
12450
|
-
|
12451
|
-
|
12452
|
-
}),
|
12751
|
+
keyOpen: "TrickyProblem",
|
12752
|
+
data: resultData,
|
12753
|
+
openProblem: "TrickyProblem",
|
12453
12754
|
changeOpen: setOpenProblem,
|
12454
12755
|
isPrint: true
|
12455
12756
|
}), React.createElement(Vulnerable, {
|
12456
|
-
|
12457
|
-
|
12458
|
-
|
12459
|
-
}),
|
12757
|
+
keyOpen: "Vulnerable",
|
12758
|
+
data: resultData,
|
12759
|
+
openProblem: "Vulnerable",
|
12460
12760
|
changeOpen: setOpenProblem,
|
12461
12761
|
isPrint: true
|
12462
12762
|
}), React.createElement(ProtractedProblem, {
|
12763
|
+
keyOpen: "ProtractedProblem",
|
12463
12764
|
data: longTimeSpend,
|
12464
|
-
openProblem:
|
12465
|
-
problem2: true
|
12466
|
-
}),
|
12765
|
+
openProblem: "ProtractedProblem",
|
12467
12766
|
changeOpen: setOpenProblem,
|
12468
12767
|
isPrint: true
|
12469
12768
|
}), React.createElement(GradesByTerritory, {
|
12769
|
+
keyOpen: "GradesByTerritory",
|
12470
12770
|
data: categoryResponses,
|
12471
|
-
openProblem:
|
12472
|
-
problem4: true
|
12473
|
-
}),
|
12771
|
+
openProblem: "GradesByTerritory",
|
12474
12772
|
changeOpen: setOpenProblem,
|
12475
12773
|
isPrint: true
|
12476
12774
|
})))), React.createElement(CreateNewQuestionDialog$1, {
|
12477
|
-
examSessionId:
|
12775
|
+
examSessionId: resultData === null || resultData === void 0 ? void 0 : resultData.examSessionId,
|
12478
12776
|
handleCreateQuestion: handleCreateQuestion,
|
12479
12777
|
openCreateQuestionDialog: openCreateQuestionDialog,
|
12480
12778
|
toggleCreateQuestion: toggleCreateQuestion
|
@@ -12582,7 +12880,8 @@ var Header = function Header(_ref) {
|
|
12582
12880
|
direction: "row",
|
12583
12881
|
alignItems: "center"
|
12584
12882
|
}, React.createElement(Typography, {
|
12585
|
-
|
12883
|
+
color: styles.dark,
|
12884
|
+
className: "fw-bold me-2 text-nowrap",
|
12586
12885
|
sx: {
|
12587
12886
|
minWidth: "60px",
|
12588
12887
|
overflow: "hidden",
|