touchstudy-core 0.1.75 → 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Print/PrintExamView2.d.ts +8 -0
- package/dist/components/Print/configs/types.d.ts +16 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -0
- package/dist/containers/ExamResult/hooks/usePrintView.d.ts +9 -1
- package/dist/index.css +13 -13
- package/dist/index.d.ts +2 -1
- package/dist/index.js +399 -56
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +401 -59
- package/dist/index.modern.js.map +1 -1
- package/dist/tests/performances/do-exam-session.d.ts +1 -1
- package/dist/utilities.d.ts +1 -0
- package/dist/utils/types/tableHeaderType.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -169,7 +169,7 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
169
169
|
return strings;
|
170
170
|
}
|
171
171
|
|
172
|
-
var styles = {"lighter":"#F0FFF6","light":"#89F0B2","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_50":"#FBFBF9","gray_100":"#EAEAE5","gray_300":"#D0D0C8","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","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","line-clamp":"_3fpky"};
|
172
|
+
var styles = {"lighter":"#F0FFF6","light":"#89F0B2","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_50":"#FBFBF9","gray_100":"#EAEAE5","gray_300":"#D0D0C8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","red_900":"#DB4D4D","green_support_900":"#3ACB46","yellow_900":"#FEAF06","purple_900":"#C3099A","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","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","line-clamp":"_3fpky"};
|
173
173
|
|
174
174
|
// A type of promise-like that resolves synchronously and supports only one observer
|
175
175
|
|
@@ -1819,7 +1819,6 @@ var current_time = "현재 시간";
|
|
1819
1819
|
var exam_time = "시험 시간";
|
1820
1820
|
var time_remaining = "남은 시간";
|
1821
1821
|
var number_results = "결과 {{number}}건";
|
1822
|
-
var number_result = "결과 {{number}}";
|
1823
1822
|
var mins_mins_seconds_seconds = "{{mins}}분 {{seconds}}초";
|
1824
1823
|
var mins_mins = "{{mins}}분";
|
1825
1824
|
var class_name = "반 이름";
|
@@ -2204,7 +2203,7 @@ var code_header = "암호";
|
|
2204
2203
|
var duration_header = "지속";
|
2205
2204
|
var total_number_of_students_participating = "참여한 총 학생 수";
|
2206
2205
|
var create = "생성하기";
|
2207
|
-
var to_show = "
|
2206
|
+
var to_show = "진행중인 시험 보기";
|
2208
2207
|
var incomplete = "미완성";
|
2209
2208
|
var please_enter_your_phone_number = "전화번호를 입력해 주세요(-제외, 숫자만 입력).";
|
2210
2209
|
var parent_information = "회원가입 - 학부모정보";
|
@@ -2437,7 +2436,7 @@ var parent_phone_number_header = "학부모 전화번호";
|
|
2437
2436
|
var cases = "{{number}}건";
|
2438
2437
|
var my_classes = "내 수업";
|
2439
2438
|
var choose = "선택하다";
|
2440
|
-
var additional_duration = "
|
2439
|
+
var additional_duration = "진행중인 시험 시간 추가하기";
|
2441
2440
|
var enter_textbook_name_to_search = "검색할 교재명을 입력하세요";
|
2442
2441
|
var select_class_placeholder = "수업을 선택하세요...";
|
2443
2442
|
var user_name = "유저 이름";
|
@@ -2470,7 +2469,7 @@ var submit = "제출하다";
|
|
2470
2469
|
var must_select_a_teacher_first = "먼저 교사를 선택해야 합니다";
|
2471
2470
|
var student_grade_is_invalid = "학생 등급은 1에서 12 사이여야 합니다";
|
2472
2471
|
var recent_users = "최근 사용자";
|
2473
|
-
var recent_students = "
|
2472
|
+
var recent_students = "학생 관리 기록";
|
2474
2473
|
var viewed_user = "본 사용자";
|
2475
2474
|
var viewed_QNA = "조회한 질문&답변";
|
2476
2475
|
var viewed_exam_result = "시험 결과를 보았습니다";
|
@@ -2547,6 +2546,30 @@ var sent_at = "보낸 시간";
|
|
2547
2546
|
var create_data_successfully = "데이터를 성공적으로 생성했습니다";
|
2548
2547
|
var reduce_time = "시간 단축";
|
2549
2548
|
var reduce_duration = "기간 단축";
|
2549
|
+
var start_test = "시험시작";
|
2550
|
+
var edit_test = "편집";
|
2551
|
+
var view_test = "삭제";
|
2552
|
+
var view_records = "기록열람";
|
2553
|
+
var delete_action = "삭제";
|
2554
|
+
var edit_action = "수정";
|
2555
|
+
var view_action = "열람";
|
2556
|
+
var de_select = "선택 해제";
|
2557
|
+
var select_output = "선택 출력";
|
2558
|
+
var print_pdf = "PDF 인쇄";
|
2559
|
+
var completed = "완전한";
|
2560
|
+
var in_progress = "진행 중";
|
2561
|
+
var remaining = "남은";
|
2562
|
+
var print_per_student = "학생별 데이터 출력";
|
2563
|
+
var download_failed = "다운로드 실패";
|
2564
|
+
var data_output_for_each_student = "학생별 데이터 출력";
|
2565
|
+
var total_people = "총 {{number}}명";
|
2566
|
+
var people_to_choose = "선택 {{number}}명";
|
2567
|
+
var loading_data = "데이터 로드 중";
|
2568
|
+
var loading_print = "잠시만 기다려주세요! 인쇄";
|
2569
|
+
var your_browser_must = "귀하의 브라우저는 다음을 충족해야 합니다";
|
2570
|
+
var allowed_to_send_pop_ups_and_use_redirects = "팝업 보내기 및 리디렉션 사용이 허용됨";
|
2571
|
+
var disable_ask_where_to_save_each_file_before_downloading = "다운로드하기 전에 각 파일을 저장할 위치 묻기 비활성화";
|
2572
|
+
var total_number_of_selected_results = "선택된 결과의 총 개수";
|
2550
2573
|
var lang_ko = {
|
2551
2574
|
problem_solving: problem_solving,
|
2552
2575
|
my_story: my_story,
|
@@ -2578,7 +2601,6 @@ var lang_ko = {
|
|
2578
2601
|
exam_time: exam_time,
|
2579
2602
|
time_remaining: time_remaining,
|
2580
2603
|
number_results: number_results,
|
2581
|
-
number_result: number_result,
|
2582
2604
|
mins_mins_seconds_seconds: mins_mins_seconds_seconds,
|
2583
2605
|
mins_mins: mins_mins,
|
2584
2606
|
class_name: class_name,
|
@@ -3296,7 +3318,31 @@ var lang_ko = {
|
|
3296
3318
|
sent_at: sent_at,
|
3297
3319
|
create_data_successfully: create_data_successfully,
|
3298
3320
|
reduce_time: reduce_time,
|
3299
|
-
reduce_duration: reduce_duration
|
3321
|
+
reduce_duration: reduce_duration,
|
3322
|
+
start_test: start_test,
|
3323
|
+
edit_test: edit_test,
|
3324
|
+
view_test: view_test,
|
3325
|
+
view_records: view_records,
|
3326
|
+
delete_action: delete_action,
|
3327
|
+
edit_action: edit_action,
|
3328
|
+
view_action: view_action,
|
3329
|
+
de_select: de_select,
|
3330
|
+
select_output: select_output,
|
3331
|
+
print_pdf: print_pdf,
|
3332
|
+
completed: completed,
|
3333
|
+
in_progress: in_progress,
|
3334
|
+
remaining: remaining,
|
3335
|
+
print_per_student: print_per_student,
|
3336
|
+
download_failed: download_failed,
|
3337
|
+
data_output_for_each_student: data_output_for_each_student,
|
3338
|
+
total_people: total_people,
|
3339
|
+
people_to_choose: people_to_choose,
|
3340
|
+
loading_data: loading_data,
|
3341
|
+
loading_print: loading_print,
|
3342
|
+
your_browser_must: your_browser_must,
|
3343
|
+
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects,
|
3344
|
+
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading,
|
3345
|
+
total_number_of_selected_results: total_number_of_selected_results
|
3300
3346
|
};
|
3301
3347
|
|
3302
3348
|
var problem_solving$1 = "Problem Solving";
|
@@ -3326,8 +3372,7 @@ var current_exam$1 = "Current exam";
|
|
3326
3372
|
var current_time$1 = "Current time";
|
3327
3373
|
var exam_time$1 = "Exam time";
|
3328
3374
|
var time_remaining$1 = "Time remaining";
|
3329
|
-
var number_results$1 = "{{number}}
|
3330
|
-
var number_result$1 = "{{number}} Result";
|
3375
|
+
var number_results$1 = "{{number}} Result(s)";
|
3331
3376
|
var mins_mins_seconds_seconds$1 = "{{mins}}m {{seconds}}s";
|
3332
3377
|
var mins_mins$1 = "{{mins}} Minutes";
|
3333
3378
|
var class_name$1 = "Class name";
|
@@ -4056,6 +4101,30 @@ var sent_at$1 = "Sent at";
|
|
4056
4101
|
var create_data_successfully$1 = "Data was created successfully";
|
4057
4102
|
var reduce_time$1 = "Reduce time";
|
4058
4103
|
var reduce_duration$1 = "Reduce duration";
|
4104
|
+
var start_test$1 = "Start exam";
|
4105
|
+
var edit_test$1 = "Edit exam";
|
4106
|
+
var view_test$1 = "View exam";
|
4107
|
+
var view_records$1 = "View records";
|
4108
|
+
var delete_action$1 = "Delete";
|
4109
|
+
var edit_action$1 = "Edit";
|
4110
|
+
var view_action$1 = "View";
|
4111
|
+
var de_select$1 = "Deselect";
|
4112
|
+
var select_output$1 = "Select output";
|
4113
|
+
var print_pdf$1 = "Print PDF";
|
4114
|
+
var completed$1 = "Completed";
|
4115
|
+
var in_progress$1 = "In Progress";
|
4116
|
+
var remaining$1 = "Remaining";
|
4117
|
+
var print_per_student$1 = "Print Per Student";
|
4118
|
+
var download_failed$1 = "Download failed";
|
4119
|
+
var data_output_for_each_student$1 = "Data output for each student";
|
4120
|
+
var total_people$1 = "Total {{number}} people";
|
4121
|
+
var people_to_choose$1 = "{{number}} people to choose";
|
4122
|
+
var loading_data$1 = "Loading data";
|
4123
|
+
var loading_print$1 = "Please wait for a while! Printing";
|
4124
|
+
var your_browser_must$1 = "Your browser must";
|
4125
|
+
var allowed_to_send_pop_ups_and_use_redirects$1 = "Allowed to send pop-ups and use redirects";
|
4126
|
+
var disable_ask_where_to_save_each_file_before_downloading$1 = "Disable ask where to save each file before downloading";
|
4127
|
+
var total_number_of_selected_results$1 = "Total number of selected results";
|
4059
4128
|
var lang_en = {
|
4060
4129
|
problem_solving: problem_solving$1,
|
4061
4130
|
my_story: my_story$1,
|
@@ -4087,7 +4156,6 @@ var lang_en = {
|
|
4087
4156
|
exam_time: exam_time$1,
|
4088
4157
|
time_remaining: time_remaining$1,
|
4089
4158
|
number_results: number_results$1,
|
4090
|
-
number_result: number_result$1,
|
4091
4159
|
mins_mins_seconds_seconds: mins_mins_seconds_seconds$1,
|
4092
4160
|
mins_mins: mins_mins$1,
|
4093
4161
|
class_name: class_name$1,
|
@@ -4806,7 +4874,31 @@ var lang_en = {
|
|
4806
4874
|
sent_at: sent_at$1,
|
4807
4875
|
create_data_successfully: create_data_successfully$1,
|
4808
4876
|
reduce_time: reduce_time$1,
|
4809
|
-
reduce_duration: reduce_duration$1
|
4877
|
+
reduce_duration: reduce_duration$1,
|
4878
|
+
start_test: start_test$1,
|
4879
|
+
edit_test: edit_test$1,
|
4880
|
+
view_test: view_test$1,
|
4881
|
+
view_records: view_records$1,
|
4882
|
+
delete_action: delete_action$1,
|
4883
|
+
edit_action: edit_action$1,
|
4884
|
+
view_action: view_action$1,
|
4885
|
+
de_select: de_select$1,
|
4886
|
+
select_output: select_output$1,
|
4887
|
+
print_pdf: print_pdf$1,
|
4888
|
+
completed: completed$1,
|
4889
|
+
in_progress: in_progress$1,
|
4890
|
+
remaining: remaining$1,
|
4891
|
+
print_per_student: print_per_student$1,
|
4892
|
+
download_failed: download_failed$1,
|
4893
|
+
data_output_for_each_student: data_output_for_each_student$1,
|
4894
|
+
total_people: total_people$1,
|
4895
|
+
people_to_choose: people_to_choose$1,
|
4896
|
+
loading_data: loading_data$1,
|
4897
|
+
loading_print: loading_print$1,
|
4898
|
+
your_browser_must: your_browser_must$1,
|
4899
|
+
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects$1,
|
4900
|
+
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading$1,
|
4901
|
+
total_number_of_selected_results: total_number_of_selected_results$1
|
4810
4902
|
};
|
4811
4903
|
|
4812
4904
|
i18n__default.use(reactI18next.initReactI18next).init({
|
@@ -5998,7 +6090,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
5998
6090
|
fontWeight: 700,
|
5999
6091
|
fontSize: '14px',
|
6000
6092
|
lineHeight: '16.71px'
|
6001
|
-
},
|
6093
|
+
}, t('cancel'))), React__default.createElement(material.Button, {
|
6002
6094
|
variant: "contained",
|
6003
6095
|
className: styles$1['btn-register'],
|
6004
6096
|
sx: {
|
@@ -6013,7 +6105,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
6013
6105
|
fontSize: '14px',
|
6014
6106
|
lineHeight: '16.71px',
|
6015
6107
|
color: '#FFFFFF'
|
6016
|
-
},
|
6108
|
+
}, t('registration')))))));
|
6017
6109
|
};
|
6018
6110
|
|
6019
6111
|
(function (ChatItemType) {
|
@@ -6598,7 +6690,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
6598
6690
|
}, React__default.createElement(material.Typography, {
|
6599
6691
|
fontWeight: 800,
|
6600
6692
|
fontSize: "20px",
|
6601
|
-
color: styles.
|
6693
|
+
color: styles.less_darker,
|
6602
6694
|
lineHeight: "23.87px"
|
6603
6695
|
}, isStudent ? t("question_and_answer") : t("q&a"))), renderHeader(), React__default.createElement(ConfirmDialog, {
|
6604
6696
|
open: openDialog,
|
@@ -8057,7 +8149,7 @@ var TEXTBOOK_HEADERS = [{
|
|
8057
8149
|
}, {
|
8058
8150
|
title: "total_chapters"
|
8059
8151
|
}, {
|
8060
|
-
title: "
|
8152
|
+
title: ["edit_action", "view_action", "delete_action"]
|
8061
8153
|
}];
|
8062
8154
|
var DEFAULT_ANSWER_COUNT = 5;
|
8063
8155
|
var DEFAULT_EXAM_REQUEST = {
|
@@ -10429,7 +10521,9 @@ var TableHeader = function TableHeader(_ref) {
|
|
10429
10521
|
} : undefined
|
10430
10522
|
}, React__default.createElement("div", {
|
10431
10523
|
className: "d-flex justify-content-between align-items-center text-nowrap"
|
10432
|
-
},
|
10524
|
+
}, Array.isArray(i.title) ? i.title.map(function (tl) {
|
10525
|
+
return t(tl);
|
10526
|
+
}).join("/") : t(i.title), !!i.sortKey && React__default.createElement(SortIcon, {
|
10433
10527
|
isAscending: filter.sortColumnName !== i.sortKey ? undefined : filter.sortColumnDirection === OrderType.ASC
|
10434
10528
|
})));
|
10435
10529
|
})));
|
@@ -10537,12 +10631,13 @@ var TextbookList = function TextbookList(props) {
|
|
10537
10631
|
direction: "row",
|
10538
10632
|
spacing: 1,
|
10539
10633
|
alignItems: "center"
|
10540
|
-
},
|
10634
|
+
}, React__default.createElement(material.IconButton, {
|
10541
10635
|
color: "default",
|
10542
|
-
className: "bg-warning text-white",
|
10636
|
+
className: (i.isCreatedByAdmin ? "bg-secondary" : "bg-warning") + " text-white",
|
10543
10637
|
onClick: function onClick() {
|
10544
10638
|
return handleUpdateTextbook(i.id);
|
10545
|
-
}
|
10639
|
+
},
|
10640
|
+
disabled: !!i.isCreatedByAdmin
|
10546
10641
|
}, React__default.createElement(fa6.FaPencil, {
|
10547
10642
|
size: 12
|
10548
10643
|
})), React__default.createElement(material.IconButton, {
|
@@ -10553,12 +10648,13 @@ var TextbookList = function TextbookList(props) {
|
|
10553
10648
|
}
|
10554
10649
|
}, React__default.createElement(fa.FaEye, {
|
10555
10650
|
size: 12
|
10556
|
-
})),
|
10651
|
+
})), React__default.createElement(material.IconButton, {
|
10557
10652
|
color: "default",
|
10558
|
-
className: "bg-danger text-white",
|
10653
|
+
className: (i.isCreatedByAdmin ? "bg-secondary" : "bg-danger") + " text-white",
|
10559
10654
|
onClick: function onClick() {
|
10560
10655
|
return handleSelectDeleteTextbook(i);
|
10561
|
-
}
|
10656
|
+
},
|
10657
|
+
disabled: !!i.isCreatedByAdmin
|
10562
10658
|
}, React__default.createElement(fa.FaTrash, {
|
10563
10659
|
size: 12
|
10564
10660
|
})))));
|
@@ -11515,6 +11611,8 @@ var createRecentUserActionListApi = function createRecentUserActionListApi(_ref)
|
|
11515
11611
|
});
|
11516
11612
|
};
|
11517
11613
|
|
11614
|
+
var styles$4 = {"lighter":"#F0FFF6","light":"#89F0B2","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_50":"#FBFBF9","gray_100":"#EAEAE5","gray_300":"#D0D0C8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","red_900":"#DB4D4D","green_support_900":"#3ACB46","yellow_900":"#FEAF06","purple_900":"#C3099A","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw","loader":"_2uC7T","dot":"_Xz-Mr","bounce":"_3THgz"};
|
11615
|
+
|
11518
11616
|
var useExamResult = function useExamResult(props) {
|
11519
11617
|
var _allSeries$dataChartI;
|
11520
11618
|
var searchParams = props.searchParams,
|
@@ -11533,7 +11631,7 @@ var useExamResult = function useExamResult(props) {
|
|
11533
11631
|
});
|
11534
11632
|
var roles = (user === null || user === void 0 ? void 0 : user.roles) || [];
|
11535
11633
|
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(exports.Role.Student);
|
11536
|
-
var examCode = query.get("examCode") ||
|
11634
|
+
var examCode = query.get("examCode") || code;
|
11537
11635
|
var language = reactRedux.useSelector(function (state) {
|
11538
11636
|
var _state$common2;
|
11539
11637
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
@@ -11791,7 +11889,7 @@ var useExamResult = function useExamResult(props) {
|
|
11791
11889
|
}
|
11792
11890
|
}
|
11793
11891
|
}),
|
11794
|
-
colors: [
|
11892
|
+
colors: [styles$4.dark, styles$4.purple_900],
|
11795
11893
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
11796
11894
|
categories: ["s"].concat(Array.from({
|
11797
11895
|
length: questionLength
|
@@ -11827,6 +11925,7 @@ var useExamResult = function useExamResult(props) {
|
|
11827
11925
|
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");
|
11828
11926
|
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
11829
11927
|
return {
|
11928
|
+
t: t,
|
11830
11929
|
isLoading: isLoading,
|
11831
11930
|
examTime: examTime,
|
11832
11931
|
series: series,
|
@@ -12963,8 +13062,6 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
12963
13062
|
|
12964
13063
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
12965
13064
|
|
12966
|
-
var styles$4 = {"lighter":"#F0FFF6","light":"#89F0B2","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_50":"#FBFBF9","gray_100":"#EAEAE5","gray_300":"#D0D0C8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw","loader":"_2uC7T","dot":"_Xz-Mr","bounce":"_3THgz"};
|
12967
|
-
|
12968
13065
|
var iconStarQuestion = function iconStarQuestion(_ref) {
|
12969
13066
|
var _ref$width = _ref.width,
|
12970
13067
|
width = _ref$width === void 0 ? "15" : _ref$width,
|
@@ -12981,7 +13078,7 @@ var iconStarQuestion = function iconStarQuestion(_ref) {
|
|
12981
13078
|
clipPath: "url(#clip0_1_2291)"
|
12982
13079
|
}, React__default.createElement("path", {
|
12983
13080
|
d: "M11.6234 13.125C11.5313 13.1253 11.4414 13.0966 11.3666 13.043L7.84993 10.4934L4.33325 13.043C4.25811 13.0975 4.1676 13.1266 4.07479 13.1263C3.98197 13.126 3.89167 13.0961 3.81694 13.0411C3.74221 12.986 3.68691 12.9087 3.65905 12.8201C3.63119 12.7316 3.63221 12.6365 3.66196 12.5486L5.03352 8.48612L1.47883 6.04843C1.40183 5.99569 1.34372 5.9197 1.31298 5.83158C1.28225 5.74346 1.28049 5.64781 1.30798 5.55863C1.33547 5.46944 1.39076 5.39138 1.46578 5.33585C1.54079 5.28032 1.6316 5.25024 1.72492 5.24999H6.11032L7.43375 1.17714C7.46226 1.08921 7.51789 1.01257 7.59266 0.958208C7.66743 0.903851 7.75749 0.874573 7.84993 0.874573C7.94236 0.874573 8.03243 0.903851 8.10719 0.958208C8.18196 1.01257 8.23759 1.08921 8.2661 1.17714L9.58953 5.25136H13.9749C14.0684 5.25131 14.1594 5.28119 14.2346 5.33661C14.3099 5.39203 14.3654 5.47008 14.393 5.55934C14.4207 5.6486 14.4191 5.74437 14.3883 5.83262C14.3576 5.92088 14.2995 5.99699 14.2224 6.0498L10.6663 8.48612L12.0371 12.5475C12.0593 12.6132 12.0655 12.6833 12.0553 12.752C12.0451 12.8206 12.0187 12.8859 11.9782 12.9423C11.9378 12.9987 11.8846 13.0447 11.8228 13.0765C11.7611 13.1082 11.6928 13.1249 11.6234 13.125Z",
|
12984
|
-
fill: "#
|
13081
|
+
fill: "#FEAF06"
|
12985
13082
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
12986
13083
|
id: "clip0_1_2291"
|
12987
13084
|
}, React__default.createElement("rect", {
|
@@ -13008,7 +13105,7 @@ var iconNoStarQuestion = function iconNoStarQuestion(_ref) {
|
|
13008
13105
|
clipPath: "url(#clip0_307_1248)"
|
13009
13106
|
}, React__default.createElement("path", {
|
13010
13107
|
d: "M10.7735 13.125C10.6814 13.1253 10.5916 13.0966 10.5168 13.043L7.00007 10.4934L3.48339 13.043C3.40826 13.0975 3.31774 13.1266 3.22493 13.1263C3.13212 13.126 3.04182 13.0961 2.96709 13.0411C2.89235 12.986 2.83706 12.9087 2.8092 12.8201C2.78134 12.7316 2.78236 12.6365 2.8121 12.5486L4.18367 8.48612L0.628977 6.04843C0.55198 5.99569 0.493868 5.9197 0.46313 5.83158C0.432392 5.74346 0.43064 5.64781 0.458129 5.55863C0.485619 5.46944 0.54091 5.39138 0.615924 5.33585C0.690937 5.28032 0.781742 5.25024 0.875071 5.24999H5.26046L6.5839 1.17714C6.61241 1.08921 6.66804 1.01257 6.74281 0.958208C6.81757 0.903851 6.90763 0.874573 7.00007 0.874573C7.09251 0.874573 7.18257 0.903851 7.25734 0.958208C7.33211 1.01257 7.38773 1.08921 7.41624 1.17714L8.73968 5.25136H13.1251C13.2185 5.25131 13.3095 5.28119 13.3848 5.33661C13.46 5.39203 13.5155 5.47008 13.5432 5.55934C13.5708 5.6486 13.5692 5.74437 13.5385 5.83262C13.5078 5.92088 13.4496 5.99699 13.3725 6.0498L9.81648 8.48612L11.1872 12.5475C11.2094 12.6132 11.2157 12.6833 11.2054 12.752C11.1952 12.8206 11.1688 12.8859 11.1284 12.9423C11.088 12.9987 11.0347 13.0447 10.973 13.0765C10.9113 13.1082 10.8429 13.1249 10.7735 13.125Z",
|
13011
|
-
fill: "#
|
13108
|
+
fill: "#FEAF06"
|
13012
13109
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
13013
13110
|
id: "clip0_307_1248"
|
13014
13111
|
}, React__default.createElement("rect", {
|
@@ -13032,7 +13129,7 @@ var iconCorrectAnswer = function iconCorrectAnswer(_ref) {
|
|
13032
13129
|
xmlns: "http://www.w3.org/2000/svg"
|
13033
13130
|
}, React__default.createElement("path", {
|
13034
13131
|
d: "M7.8501 1.3125C4.71404 1.3125 2.1626 3.86395 2.1626 7C2.1626 10.1361 4.71404 12.6875 7.8501 12.6875C10.9862 12.6875 13.5376 10.1361 13.5376 7C13.5376 3.86395 10.9862 1.3125 7.8501 1.3125ZM10.8101 5.09387L7.13506 9.46887C7.09475 9.51688 7.04458 9.55567 6.98797 9.58261C6.93136 9.60955 6.86962 9.62401 6.80693 9.625H6.79955C6.73823 9.62498 6.6776 9.61207 6.62159 9.5871C6.56558 9.56213 6.51544 9.52567 6.47443 9.48008L4.89943 7.73008C4.85943 7.68765 4.82832 7.63766 4.80792 7.58304C4.78751 7.52842 4.77824 7.47027 4.78063 7.41201C4.78302 7.35375 4.79703 7.29656 4.82184 7.24379C4.84665 7.19103 4.88176 7.14375 4.9251 7.10475C4.96844 7.06574 5.01914 7.0358 5.07423 7.01667C5.12931 6.99754 5.18765 6.98961 5.24584 6.99335C5.30403 6.9971 5.36088 7.01243 5.41306 7.03846C5.46523 7.06449 5.51168 7.10069 5.54967 7.14492L6.78807 8.52086L10.1401 4.53113C10.2153 4.4442 10.3217 4.39035 10.4363 4.38122C10.5509 4.37209 10.6644 4.40842 10.7524 4.48234C10.8404 4.55627 10.8958 4.66186 10.9066 4.77629C10.9174 4.89072 10.8827 5.0048 10.8101 5.09387Z",
|
13035
|
-
fill: "#
|
13132
|
+
fill: "#3ACB46"
|
13036
13133
|
}));
|
13037
13134
|
};
|
13038
13135
|
|
@@ -13050,7 +13147,7 @@ var iconCorrectAnswer$1 = function iconCorrectAnswer(_ref) {
|
|
13050
13147
|
xmlns: "http://www.w3.org/2000/svg"
|
13051
13148
|
}, React__default.createElement("path", {
|
13052
13149
|
d: "M7.8501 1.3125C4.71404 1.3125 2.1626 3.86395 2.1626 7C2.1626 10.1361 4.71404 12.6875 7.8501 12.6875C10.9862 12.6875 13.5376 10.1361 13.5376 7C13.5376 3.86395 10.9862 1.3125 7.8501 1.3125ZM9.90936 8.44074C9.95169 8.48096 9.98555 8.52925 10.0089 8.58277C10.0323 8.63628 10.0447 8.69393 10.0455 8.75232C10.0462 8.81071 10.0353 8.86866 10.0133 8.92275C9.99128 8.97685 9.95867 9.02599 9.91738 9.06728C9.87608 9.10857 9.82694 9.14118 9.77285 9.16318C9.71876 9.18518 9.66081 9.19613 9.60242 9.19538C9.54403 9.19464 9.48638 9.18221 9.43286 9.15883C9.37935 9.13545 9.33106 9.10159 9.29084 9.05926L7.8501 7.61879L6.40936 9.05926C6.32664 9.13784 6.2165 9.18101 6.10242 9.17954C5.98833 9.17808 5.87933 9.13211 5.79866 9.05144C5.71798 8.97076 5.67201 8.86176 5.67055 8.74768C5.66909 8.6336 5.71226 8.52346 5.79084 8.44074L7.23131 7L5.79084 5.55926C5.71226 5.47654 5.66909 5.3664 5.67055 5.25232C5.67201 5.13824 5.71798 5.02924 5.79866 4.94856C5.87933 4.86789 5.98833 4.82192 6.10242 4.82046C6.2165 4.819 6.32664 4.86216 6.40936 4.94074L7.8501 6.38121L9.29084 4.94074C9.37355 4.86216 9.4837 4.819 9.59778 4.82046C9.71186 4.82192 9.82086 4.86789 9.90154 4.94856C9.98221 5.02924 10.0282 5.13824 10.0296 5.25232C10.0311 5.3664 9.98794 5.47654 9.90936 5.55926L8.46889 7L9.90936 8.44074Z",
|
13053
|
-
fill: "#
|
13150
|
+
fill: "#DB4D4D"
|
13054
13151
|
}));
|
13055
13152
|
};
|
13056
13153
|
|
@@ -13203,7 +13300,7 @@ var iconWarning = function iconWarning(_ref) {
|
|
13203
13300
|
xmlns: "http://www.w3.org/2000/svg"
|
13204
13301
|
}, React__default.createElement("path", {
|
13205
13302
|
d: "M14.5335 12.4712L9.20754 2.58062C8.83004 1.87937 7.82441 1.87937 7.4466 2.58062L2.12097 12.4712C2.03901 12.6235 1.99792 12.7944 2.00171 12.9672C2.00549 13.1401 2.05404 13.309 2.14259 13.4575C2.23115 13.606 2.3567 13.729 2.50698 13.8145C2.65726 13.9 2.82714 13.9451 3.00004 13.9453H13.6529C13.8259 13.9453 13.996 13.9005 14.1465 13.8151C14.2969 13.7297 14.4227 13.6067 14.5115 13.4582C14.6002 13.3096 14.6489 13.1406 14.6527 12.9676C14.6566 12.7946 14.6155 12.6236 14.5335 12.4712ZM8.32722 12.4141C8.20361 12.4141 8.08277 12.3774 7.97999 12.3087C7.87721 12.2401 7.7971 12.1424 7.7498 12.0282C7.7025 11.914 7.69012 11.7884 7.71423 11.6671C7.73835 11.5459 7.79787 11.4345 7.88528 11.3471C7.97269 11.2597 8.08405 11.2002 8.20529 11.1761C8.32653 11.152 8.4522 11.1643 8.5664 11.2116C8.6806 11.2589 8.77822 11.3391 8.84689 11.4418C8.91557 11.5446 8.95222 11.6654 8.95222 11.7891C8.95222 11.8711 8.93606 11.9524 8.90465 12.0282C8.87324 12.1041 8.8272 12.173 8.76917 12.231C8.71113 12.289 8.64223 12.3351 8.5664 12.3665C8.49057 12.3979 8.4093 12.4141 8.32722 12.4141ZM9.00597 6.12813L8.8266 9.94063C8.8266 10.0732 8.77392 10.2004 8.68015 10.2942C8.58638 10.3879 8.45921 10.4406 8.3266 10.4406C8.19399 10.4406 8.06681 10.3879 7.97305 10.2942C7.87928 10.2004 7.8266 10.0732 7.8266 9.94063L7.64722 6.12969C7.64319 6.03862 7.65754 5.94768 7.6894 5.86227C7.72127 5.77687 7.77 5.69875 7.8327 5.63259C7.8954 5.56642 7.97078 5.51355 8.05434 5.47713C8.13791 5.44072 8.22795 5.4215 8.3191 5.42063H8.32566C8.41743 5.42058 8.50826 5.43912 8.59267 5.47515C8.67708 5.51117 8.75331 5.56392 8.81677 5.63021C8.88023 5.6965 8.92961 5.77497 8.96191 5.86087C8.99421 5.94676 9.00878 6.03832 9.00472 6.13L9.00597 6.12813Z",
|
13206
|
-
fill: "#
|
13303
|
+
fill: "#DB4D4D"
|
13207
13304
|
}));
|
13208
13305
|
};
|
13209
13306
|
|
@@ -13316,7 +13413,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
13316
13413
|
fontWeight: 500,
|
13317
13414
|
fontSize: '10px',
|
13318
13415
|
lineHeight: '11.93px',
|
13319
|
-
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' :
|
13416
|
+
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : styles$4.red_900
|
13320
13417
|
}, !(errors !== null && errors !== void 0 && errors.content) ? t('your_questions_will_be_sent_to_the_counselor') : t('please_enter_your_question')))), React__default.createElement(DialogActions, {
|
13321
13418
|
sx: {
|
13322
13419
|
display: 'flex',
|
@@ -13661,7 +13758,7 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13661
13758
|
})), React__default.createElement("td", {
|
13662
13759
|
className: styles$4["tdcolumn3"],
|
13663
13760
|
style: {
|
13664
|
-
color: item.isCorrect ?
|
13761
|
+
color: item.isCorrect ? styles$4.green_support_900 : styles$4.red_900
|
13665
13762
|
}
|
13666
13763
|
}, item.selectedAnswers ? t("number_question", {
|
13667
13764
|
number: item.selectedAnswers
|
@@ -13679,15 +13776,15 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13679
13776
|
key: index
|
13680
13777
|
}, problem === 1 && React__default.createElement("span", {
|
13681
13778
|
style: {
|
13682
|
-
border: "1px solid
|
13779
|
+
border: "1px solid " + styles$4.green_support_900
|
13683
13780
|
}
|
13684
13781
|
}, t("easy_problem")), problem === 3 && React__default.createElement("span", {
|
13685
13782
|
style: {
|
13686
|
-
border: "1px solid
|
13783
|
+
border: "1px solid " + styles$4.yellow_900
|
13687
13784
|
}
|
13688
13785
|
}, t("trick_problem")), problem === 2 && React__default.createElement("span", {
|
13689
13786
|
style: {
|
13690
|
-
border: "1px solid
|
13787
|
+
border: "1px solid " + styles$4.red_900
|
13691
13788
|
}
|
13692
13789
|
}, t("differential_problem")), problem === 0 && React__default.createElement("span", {
|
13693
13790
|
style: {
|
@@ -13695,7 +13792,7 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13695
13792
|
}
|
13696
13793
|
}, t("general_problem")), problem === 4 && React__default.createElement("span", {
|
13697
13794
|
style: {
|
13698
|
-
border: "1px solid
|
13795
|
+
border: "1px solid " + styles$4.red_900
|
13699
13796
|
}
|
13700
13797
|
}, t("difficult_problem")));
|
13701
13798
|
}))));
|
@@ -13892,7 +13989,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
13892
13989
|
}, item.topDuration ? formatTimeSecond(item.topDuration, t) : ""), React__default.createElement("td", {
|
13893
13990
|
style: {
|
13894
13991
|
textAlign: "center",
|
13895
|
-
color: isBetter ? styles$4.dark :
|
13992
|
+
color: isBetter ? styles$4.dark : styles$4.red_900,
|
13896
13993
|
fontSize: "13px",
|
13897
13994
|
fontWeight: 600
|
13898
13995
|
}
|
@@ -14033,7 +14130,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14033
14130
|
}, item.overallCorrectRate.toFixed(2) ? item.overallCorrectRate.toFixed(2) + "%" : ""), React__default.createElement("td", {
|
14034
14131
|
className: styles$4["tdcolumn3"],
|
14035
14132
|
style: {
|
14036
|
-
color:
|
14133
|
+
color: styles$4.red_900,
|
14037
14134
|
fontSize: "13px",
|
14038
14135
|
fontWeight: 500
|
14039
14136
|
}
|
@@ -14436,7 +14533,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
14436
14533
|
fontWeight: 500,
|
14437
14534
|
fontSize: '10px',
|
14438
14535
|
lineHeight: '11.93px',
|
14439
|
-
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' :
|
14536
|
+
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : styles$4.red_900
|
14440
14537
|
}, !(errors !== null && errors !== void 0 && errors.content) ? t('your_questions_will_be_sent_to_the_counselor') : t('please_enter_your_question')), React__default.createElement(DialogActions, {
|
14441
14538
|
sx: {
|
14442
14539
|
display: 'flex',
|
@@ -16443,28 +16540,52 @@ var useVirtualizeList = function useVirtualizeList(totalItems, rowHeight, offset
|
|
16443
16540
|
};
|
16444
16541
|
};
|
16445
16542
|
|
16446
|
-
var usePrintView = function usePrintView(
|
16543
|
+
var usePrintView = function usePrintView(_ref) {
|
16544
|
+
var examSessionId = _ref.examSessionId,
|
16545
|
+
studentId = _ref.studentId,
|
16546
|
+
code = _ref.code,
|
16547
|
+
setNotFound = _ref.setNotFound,
|
16548
|
+
resultData = _ref.resultData,
|
16549
|
+
isLoading = _ref.isLoading,
|
16550
|
+
errorMessage = _ref.errorMessage;
|
16447
16551
|
var _useState = React.useState(false),
|
16448
16552
|
isDone = _useState[0],
|
16449
16553
|
setDone = _useState[1];
|
16450
16554
|
var handelPrintSuccess = function handelPrintSuccess() {
|
16451
16555
|
var _window$opener$postMe, _window$opener;
|
16452
|
-
var data
|
16453
|
-
|
16454
|
-
|
16455
|
-
|
16456
|
-
|
16556
|
+
var data;
|
16557
|
+
if (code) {
|
16558
|
+
data = {
|
16559
|
+
code: code,
|
16560
|
+
succeed: true
|
16561
|
+
};
|
16562
|
+
} else {
|
16563
|
+
data = {
|
16564
|
+
examSessionId: examSessionId,
|
16565
|
+
studentId: studentId,
|
16566
|
+
succeed: true
|
16567
|
+
};
|
16568
|
+
}
|
16457
16569
|
if (window.opener && !window.opener.closed) (_window$opener$postMe = (_window$opener = window.opener).postMessage) === null || _window$opener$postMe === void 0 ? void 0 : _window$opener$postMe.call(_window$opener, data, window.location.origin);
|
16458
16570
|
setDone(true);
|
16459
16571
|
};
|
16460
16572
|
var handelPrintError = function handelPrintError(errorMessage) {
|
16461
16573
|
var _window$opener$postMe2, _window$opener2;
|
16462
|
-
var data
|
16463
|
-
|
16464
|
-
|
16465
|
-
|
16466
|
-
|
16467
|
-
|
16574
|
+
var data;
|
16575
|
+
if (code) {
|
16576
|
+
data = {
|
16577
|
+
code: code,
|
16578
|
+
succeed: false,
|
16579
|
+
errorMessage: errorMessage
|
16580
|
+
};
|
16581
|
+
} else {
|
16582
|
+
data = {
|
16583
|
+
examSessionId: examSessionId,
|
16584
|
+
studentId: studentId,
|
16585
|
+
succeed: false,
|
16586
|
+
errorMessage: errorMessage
|
16587
|
+
};
|
16588
|
+
}
|
16468
16589
|
if (window.opener && !window.opener.closed) (_window$opener$postMe2 = (_window$opener2 = window.opener).postMessage) === null || _window$opener$postMe2 === void 0 ? void 0 : _window$opener$postMe2.call(_window$opener2, data, window.location.origin);
|
16469
16590
|
setDone(true);
|
16470
16591
|
};
|
@@ -16510,7 +16631,8 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16510
16631
|
examSessionId = _ref$examSessionId === void 0 ? 0 : _ref$examSessionId,
|
16511
16632
|
_ref$studentId = _ref.studentId,
|
16512
16633
|
studentId = _ref$studentId === void 0 ? 0 : _ref$studentId,
|
16513
|
-
code = _ref.code,
|
16634
|
+
_ref$code = _ref.code,
|
16635
|
+
code = _ref$code === void 0 ? "" : _ref$code,
|
16514
16636
|
setNotFound = _ref.setNotFound;
|
16515
16637
|
var _useExamResult = useExamResult({
|
16516
16638
|
searchParams: searchParams,
|
@@ -16520,6 +16642,7 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16520
16642
|
code: code,
|
16521
16643
|
isPrint: true
|
16522
16644
|
}),
|
16645
|
+
t = _useExamResult.t,
|
16523
16646
|
isLoading = _useExamResult.isLoading,
|
16524
16647
|
examTime = _useExamResult.examTime,
|
16525
16648
|
allSeries = _useExamResult.allSeries,
|
@@ -16531,7 +16654,15 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16531
16654
|
effectSize = _useExamResult.effectSize,
|
16532
16655
|
categoryResponses = _useExamResult.categoryResponses,
|
16533
16656
|
errorMessage = _useExamResult.errorMessage;
|
16534
|
-
var _usePrintView = usePrintView(
|
16657
|
+
var _usePrintView = usePrintView({
|
16658
|
+
code: code,
|
16659
|
+
examSessionId: examSessionId,
|
16660
|
+
studentId: studentId,
|
16661
|
+
setNotFound: setNotFound,
|
16662
|
+
resultData: resultData,
|
16663
|
+
isLoading: isLoading,
|
16664
|
+
errorMessage: errorMessage
|
16665
|
+
}),
|
16535
16666
|
fileName = _usePrintView.fileName,
|
16536
16667
|
isDone = _usePrintView.isDone,
|
16537
16668
|
handelPrintSuccess = _usePrintView.handelPrintSuccess,
|
@@ -16564,15 +16695,226 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16564
16695
|
isLoading: !!isLoading,
|
16565
16696
|
spinClassName: "text-white"
|
16566
16697
|
}, isTabletUp && React__default.createElement(LoadingDots, {
|
16567
|
-
text:
|
16698
|
+
text: t('loading_data')
|
16568
16699
|
})) : React__default.createElement(NotFound, null), React__default.createElement(LoadingComponent, {
|
16569
16700
|
isLoading: isDone !== true && isLoading === false && !!resultData,
|
16570
16701
|
spinClassName: "text-white"
|
16571
16702
|
}, isTabletUp && React__default.createElement(LoadingDots, {
|
16572
|
-
text:
|
16703
|
+
text: t('loading_print')
|
16573
16704
|
})));
|
16574
16705
|
};
|
16575
16706
|
|
16707
|
+
var PrintState$1;
|
16708
|
+
(function (PrintState) {
|
16709
|
+
PrintState[PrintState["Idling"] = 0] = "Idling";
|
16710
|
+
PrintState[PrintState["Stopped"] = 1] = "Stopped";
|
16711
|
+
PrintState[PrintState["Printing"] = 2] = "Printing";
|
16712
|
+
PrintState[PrintState["Paused"] = 3] = "Paused";
|
16713
|
+
})(PrintState$1 || (PrintState$1 = {}));
|
16714
|
+
|
16715
|
+
var TOTAL = 3;
|
16716
|
+
var PrintExamView2 = function PrintExamView2(_ref) {
|
16717
|
+
var role = _ref.role,
|
16718
|
+
dataExamSession = _ref.dataExamSession;
|
16719
|
+
var history = reactRouterDom.useHistory();
|
16720
|
+
var _useTranslation = reactI18next.useTranslation(),
|
16721
|
+
t = _useTranslation.t;
|
16722
|
+
var isTeacher = exports.Role.Teacher === role;
|
16723
|
+
var dataProps = isTeacher ? dataExamSession.map(function (i) {
|
16724
|
+
return {
|
16725
|
+
studentId: i === null || i === void 0 ? void 0 : i.studentId,
|
16726
|
+
examSessionId: i === null || i === void 0 ? void 0 : i.examSessionId
|
16727
|
+
};
|
16728
|
+
}) : dataExamSession.map(function (i) {
|
16729
|
+
return {
|
16730
|
+
code: i === null || i === void 0 ? void 0 : i.code
|
16731
|
+
};
|
16732
|
+
});
|
16733
|
+
useLanguage(history);
|
16734
|
+
var _useState = React.useState(dataProps),
|
16735
|
+
data = _useState[0],
|
16736
|
+
setData = _useState[1];
|
16737
|
+
var _useState2 = React.useState([]),
|
16738
|
+
completed = _useState2[0],
|
16739
|
+
setCompleted = _useState2[1];
|
16740
|
+
var _useState3 = React.useState([]),
|
16741
|
+
inprogress = _useState3[0],
|
16742
|
+
setInProgress = _useState3[1];
|
16743
|
+
var _useState4 = React.useState(PrintState$1.Idling),
|
16744
|
+
state = _useState4[0],
|
16745
|
+
setState = _useState4[1];
|
16746
|
+
var _useState5 = React.useState([]),
|
16747
|
+
errorLinks = _useState5[0],
|
16748
|
+
setErrorLinks = _useState5[1];
|
16749
|
+
var theme = material.useTheme();
|
16750
|
+
var handleProgressPrint = function handleProgressPrint() {
|
16751
|
+
setData(dataProps);
|
16752
|
+
setCompleted([]);
|
16753
|
+
setInProgress([]);
|
16754
|
+
setErrorLinks([]);
|
16755
|
+
setState(PrintState$1.Printing);
|
16756
|
+
};
|
16757
|
+
var print = function print(_ref2) {
|
16758
|
+
var examSessionId = _ref2.examSessionId,
|
16759
|
+
studentId = _ref2.studentId,
|
16760
|
+
code = _ref2.code;
|
16761
|
+
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
|
16762
|
+
var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
|
16763
|
+
var windowSpecs = "left=" + (window.innerWidth - 100) + ",top=" + (window.innerHeight - 100) + ",width=100,height=100,location=yes,resizable=yes,scrollbars=yes,status=yes";
|
16764
|
+
var childWindow = window.open(url, windowName, windowSpecs);
|
16765
|
+
if (childWindow == null) {
|
16766
|
+
setErrorLinks(function (prev) {
|
16767
|
+
return [].concat(prev, [{
|
16768
|
+
code: code,
|
16769
|
+
examSessionId: "" + examSessionId,
|
16770
|
+
message: isTeacher ? "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : "/student/exam-results/" + code + "/print"
|
16771
|
+
}]);
|
16772
|
+
});
|
16773
|
+
setData(function (es) {
|
16774
|
+
return [].concat(es.filter(function (i) {
|
16775
|
+
return i.code !== code;
|
16776
|
+
}));
|
16777
|
+
});
|
16778
|
+
return;
|
16779
|
+
}
|
16780
|
+
if (!isTeacher) {
|
16781
|
+
setInProgress(function (es) {
|
16782
|
+
return [].concat(es.filter(function (i) {
|
16783
|
+
return i.code !== code;
|
16784
|
+
}), [{
|
16785
|
+
code: code
|
16786
|
+
}]);
|
16787
|
+
});
|
16788
|
+
setData(function (es) {
|
16789
|
+
return [].concat(es.filter(function (i) {
|
16790
|
+
return i.code !== code;
|
16791
|
+
}));
|
16792
|
+
});
|
16793
|
+
} else {
|
16794
|
+
setInProgress(function (es) {
|
16795
|
+
return [].concat(es.filter(function (i) {
|
16796
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16797
|
+
}), [{
|
16798
|
+
examSessionId: examSessionId,
|
16799
|
+
studentId: studentId
|
16800
|
+
}]);
|
16801
|
+
});
|
16802
|
+
setData(function (es) {
|
16803
|
+
return [].concat(es.filter(function (i) {
|
16804
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16805
|
+
}));
|
16806
|
+
});
|
16807
|
+
}
|
16808
|
+
window.addEventListener("message", function (event) {
|
16809
|
+
var isCheck = isTeacher ? event.data.examSessionId !== "" + examSessionId || event.data.studentId !== "" + studentId : event.data.code !== "" + code;
|
16810
|
+
if (event.origin !== window.location.origin || isCheck) {
|
16811
|
+
return;
|
16812
|
+
}
|
16813
|
+
if (event.data.succeed) {
|
16814
|
+
if (!isTeacher) {
|
16815
|
+
setCompleted(function (es) {
|
16816
|
+
return [].concat(es.filter(function (i) {
|
16817
|
+
return i.code !== code;
|
16818
|
+
}), [{
|
16819
|
+
code: code
|
16820
|
+
}]);
|
16821
|
+
});
|
16822
|
+
setInProgress(function (es) {
|
16823
|
+
return [].concat(es.filter(function (i) {
|
16824
|
+
return i.code !== code;
|
16825
|
+
}));
|
16826
|
+
});
|
16827
|
+
} else {
|
16828
|
+
setCompleted(function (es) {
|
16829
|
+
return [].concat(es.filter(function (i) {
|
16830
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16831
|
+
}), [{
|
16832
|
+
examSessionId: examSessionId,
|
16833
|
+
studentId: studentId
|
16834
|
+
}]);
|
16835
|
+
});
|
16836
|
+
setInProgress(function (es) {
|
16837
|
+
return [].concat(es.filter(function (i) {
|
16838
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16839
|
+
}));
|
16840
|
+
});
|
16841
|
+
}
|
16842
|
+
} else {
|
16843
|
+
setErrorLinks(function (prev) {
|
16844
|
+
var _event$data, _event$data2;
|
16845
|
+
return [].concat(prev, [{
|
16846
|
+
code: (_event$data = event.data) === null || _event$data === void 0 ? void 0 : _event$data.code,
|
16847
|
+
examSessionId: (_event$data2 = event.data) === null || _event$data2 === void 0 ? void 0 : _event$data2.examSessionId,
|
16848
|
+
message: isTeacher ? "/teacher/exam-results/" + event.data.examSessionId + "/students/" + event.data.studentId + "/print" : "/student/exam-results/" + event.data.code + "/print"
|
16849
|
+
}]);
|
16850
|
+
});
|
16851
|
+
}
|
16852
|
+
childWindow === null || childWindow === void 0 ? void 0 : childWindow.close();
|
16853
|
+
});
|
16854
|
+
};
|
16855
|
+
React.useEffect(function () {
|
16856
|
+
if (inprogress.length < TOTAL && data.length > 0 && state === PrintState$1.Printing) {
|
16857
|
+
var item = data[0];
|
16858
|
+
print({
|
16859
|
+
examSessionId: item === null || item === void 0 ? void 0 : item.examSessionId,
|
16860
|
+
studentId: item === null || item === void 0 ? void 0 : item.studentId,
|
16861
|
+
code: item === null || item === void 0 ? void 0 : item.code
|
16862
|
+
});
|
16863
|
+
}
|
16864
|
+
}, [inprogress.length, completed.length, data.length, state, data]);
|
16865
|
+
return React__default.createElement(material.Container, null, state === PrintState$1.Idling ? React__default.createElement(material.Typography, null, t("total_number_of_selected_results") + ": ", " ", React__default.createElement("span", {
|
16866
|
+
className: "fw-bold"
|
16867
|
+
}, t("number_results", {
|
16868
|
+
number: ("" + data.length).padStart(2, "0")
|
16869
|
+
}))) : React__default.createElement(React.Fragment, null, React__default.createElement(material.Typography, null, t("completed") + ": ", React__default.createElement("span", {
|
16870
|
+
className: "fw-bold"
|
16871
|
+
}, t("number_results", {
|
16872
|
+
number: ("" + completed.length).padStart(2, "0")
|
16873
|
+
}))), React__default.createElement(material.Typography, null, t("in_progress") + ": ", React__default.createElement("span", {
|
16874
|
+
className: "fw-bold"
|
16875
|
+
}, t("number_results", {
|
16876
|
+
number: ("" + inprogress.length).padStart(2, "0")
|
16877
|
+
}))), React__default.createElement(material.Typography, null, t("remaining") + ": ", React__default.createElement("span", {
|
16878
|
+
className: "fw-bold"
|
16879
|
+
}, t("number_results", {
|
16880
|
+
number: ("" + data.length).padStart(2, "0")
|
16881
|
+
})))), !!errorLinks.length && React__default.createElement(material.Stack, {
|
16882
|
+
className: "mt-2"
|
16883
|
+
}, React__default.createElement(material.Typography, {
|
16884
|
+
fontWeight: 700
|
16885
|
+
}, t("download_failed"), ":"), Array.from(new Set(errorLinks)).map(function (i) {
|
16886
|
+
var _info$createdBy;
|
16887
|
+
var info = isTeacher ? dataExamSession.find(function (exam) {
|
16888
|
+
return (exam === null || exam === void 0 ? void 0 : exam.examSessionId.toString()) === (i === null || i === void 0 ? void 0 : i.examSessionId);
|
16889
|
+
}) : dataExamSession.find();
|
16890
|
+
return React__default.createElement(material.Stack, {
|
16891
|
+
borderBottom: 1,
|
16892
|
+
borderColor: theme.palette.grey[500]
|
16893
|
+
}, React__default.createElement(reactRouterDom.Link, {
|
16894
|
+
to: i.message,
|
16895
|
+
target: "_blank",
|
16896
|
+
rel: "noopener noreferrer"
|
16897
|
+
}, (info === null || info === void 0 ? void 0 : info.studentName) || (info === null || info === void 0 ? void 0 : (_info$createdBy = info.createdBy) === null || _info$createdBy === void 0 ? void 0 : _info$createdBy.fullName)), (info === null || info === void 0 ? void 0 : info.title) && React__default.createElement(material.Typography, null, t("exam") + ": " + (info === null || info === void 0 ? void 0 : info.title)), (info === null || info === void 0 ? void 0 : info.startTime) && React__default.createElement(material.Typography, null, t("start_time") + ": " + utcToLocalTime(info === null || info === void 0 ? void 0 : info.startTime, "YYYY-MM-DD")));
|
16898
|
+
})), React__default.createElement(material.Stack, {
|
16899
|
+
direction: "column",
|
16900
|
+
className: "mt-3"
|
16901
|
+
}, React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
16902
|
+
className: "fw-bold"
|
16903
|
+
}, React__default.createElement("span", {
|
16904
|
+
className: "text-danger me-1"
|
16905
|
+
}, "*"), t("your_browser_must"), ":"), React__default.createElement(material.List, {
|
16906
|
+
className: "ps-3 pt-0"
|
16907
|
+
}, React__default.createElement(material.ListItem, {
|
16908
|
+
disablePadding: true
|
16909
|
+
}, t("allowed_to_send_pop_ups_and_use_redirects")), React__default.createElement(material.ListItem, {
|
16910
|
+
disablePadding: true
|
16911
|
+
}, t("disable_ask_where_to_save_each_file_before_downloading")))), React__default.createElement(material.Button, {
|
16912
|
+
className: "mt-3",
|
16913
|
+
variant: "contained",
|
16914
|
+
onClick: handleProgressPrint
|
16915
|
+
}, t("print_pdf"))));
|
16916
|
+
};
|
16917
|
+
|
16576
16918
|
exports.moment = moment;
|
16577
16919
|
Object.defineProperty(exports, 'I18nextProvider', {
|
16578
16920
|
enumerable: true,
|
@@ -16637,6 +16979,7 @@ exports.NotFound = NotFound;
|
|
16637
16979
|
exports.PUSHER_CONFIG = PUSHER_CONFIG;
|
16638
16980
|
exports.PassCodeCheck = PassCodeCheck;
|
16639
16981
|
exports.PrintExamResultView = PrintExamResultView;
|
16982
|
+
exports.PrintExamView2 = PrintExamView2;
|
16640
16983
|
exports.QuestionCountSelector = QuestionCountSelector;
|
16641
16984
|
exports.RecentUserAction = RecentUserAction;
|
16642
16985
|
exports.SUPER_ADMIN_BASE_URL = SUPER_ADMIN_BASE_URL;
|