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.modern.js
CHANGED
@@ -9,7 +9,7 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
9
9
|
import axios from 'axios';
|
10
10
|
import { useTranslation, initReactI18next } from 'react-i18next';
|
11
11
|
export { I18nextProvider, useTranslation } from 'react-i18next';
|
12
|
-
import { Paper, Card, Stack, Grid, Dialog, DialogTitle, IconButton, DialogContent, TextField, DialogActions, Button, Box, Typography, Pagination, styled, useTheme, useMediaQuery, MenuList, Tooltip, tooltipClasses, ClickAwayListener, CircularProgress, FormControl, RadioGroup, FormControlLabel, Radio, FormGroup, FormLabel, Checkbox, InputLabel, Container, Table, TableBody, TableRow, TableCell, TableHead, InputBase } from '@mui/material';
|
12
|
+
import { Paper, Card, Stack, Grid, Dialog, DialogTitle, IconButton, DialogContent, TextField, DialogActions, Button, Box, Typography, Pagination, styled, useTheme, useMediaQuery, MenuList, Tooltip, tooltipClasses, ClickAwayListener, CircularProgress, FormControl, RadioGroup, FormControlLabel, Radio, FormGroup, FormLabel, Checkbox, InputLabel, Container, Table, TableBody, TableRow, TableCell, TableHead, InputBase, List, ListItem } from '@mui/material';
|
13
13
|
import { gapi } from 'gapi-script';
|
14
14
|
import 'moment/locale/ko.js';
|
15
15
|
import 'moment/locale/en-au.js';
|
@@ -40,7 +40,7 @@ import Avatar from '@mui/material/Avatar';
|
|
40
40
|
import TextField$1 from '@mui/material/TextField';
|
41
41
|
import Paper$1 from '@mui/material/Paper';
|
42
42
|
import Grid$1 from '@mui/material/Grid';
|
43
|
-
import { useLocation, Link } from 'react-router-dom';
|
43
|
+
import { useLocation, Link, useHistory } from 'react-router-dom';
|
44
44
|
import Card$1 from '@mui/material/Card';
|
45
45
|
import CardActions from '@mui/material/CardActions';
|
46
46
|
import CardContent from '@mui/material/CardContent';
|
@@ -168,7 +168,7 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
168
168
|
return strings;
|
169
169
|
}
|
170
170
|
|
171
|
-
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"};
|
171
|
+
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"};
|
172
172
|
|
173
173
|
// A type of promise-like that resolves synchronously and supports only one observer
|
174
174
|
|
@@ -1820,7 +1820,6 @@ var current_time = "현재 시간";
|
|
1820
1820
|
var exam_time = "시험 시간";
|
1821
1821
|
var time_remaining = "남은 시간";
|
1822
1822
|
var number_results = "결과 {{number}}건";
|
1823
|
-
var number_result = "결과 {{number}}";
|
1824
1823
|
var mins_mins_seconds_seconds = "{{mins}}분 {{seconds}}초";
|
1825
1824
|
var mins_mins = "{{mins}}분";
|
1826
1825
|
var class_name = "반 이름";
|
@@ -2205,7 +2204,7 @@ var code_header = "암호";
|
|
2205
2204
|
var duration_header = "지속";
|
2206
2205
|
var total_number_of_students_participating = "참여한 총 학생 수";
|
2207
2206
|
var create = "생성하기";
|
2208
|
-
var to_show = "
|
2207
|
+
var to_show = "진행중인 시험 보기";
|
2209
2208
|
var incomplete = "미완성";
|
2210
2209
|
var please_enter_your_phone_number = "전화번호를 입력해 주세요(-제외, 숫자만 입력).";
|
2211
2210
|
var parent_information = "회원가입 - 학부모정보";
|
@@ -2438,7 +2437,7 @@ var parent_phone_number_header = "학부모 전화번호";
|
|
2438
2437
|
var cases = "{{number}}건";
|
2439
2438
|
var my_classes = "내 수업";
|
2440
2439
|
var choose = "선택하다";
|
2441
|
-
var additional_duration = "
|
2440
|
+
var additional_duration = "진행중인 시험 시간 추가하기";
|
2442
2441
|
var enter_textbook_name_to_search = "검색할 교재명을 입력하세요";
|
2443
2442
|
var select_class_placeholder = "수업을 선택하세요...";
|
2444
2443
|
var user_name = "유저 이름";
|
@@ -2471,7 +2470,7 @@ var submit = "제출하다";
|
|
2471
2470
|
var must_select_a_teacher_first = "먼저 교사를 선택해야 합니다";
|
2472
2471
|
var student_grade_is_invalid = "학생 등급은 1에서 12 사이여야 합니다";
|
2473
2472
|
var recent_users = "최근 사용자";
|
2474
|
-
var recent_students = "
|
2473
|
+
var recent_students = "학생 관리 기록";
|
2475
2474
|
var viewed_user = "본 사용자";
|
2476
2475
|
var viewed_QNA = "조회한 질문&답변";
|
2477
2476
|
var viewed_exam_result = "시험 결과를 보았습니다";
|
@@ -2548,6 +2547,30 @@ var sent_at = "보낸 시간";
|
|
2548
2547
|
var create_data_successfully = "데이터를 성공적으로 생성했습니다";
|
2549
2548
|
var reduce_time = "시간 단축";
|
2550
2549
|
var reduce_duration = "기간 단축";
|
2550
|
+
var start_test = "시험시작";
|
2551
|
+
var edit_test = "편집";
|
2552
|
+
var view_test = "삭제";
|
2553
|
+
var view_records = "기록열람";
|
2554
|
+
var delete_action = "삭제";
|
2555
|
+
var edit_action = "수정";
|
2556
|
+
var view_action = "열람";
|
2557
|
+
var de_select = "선택 해제";
|
2558
|
+
var select_output = "선택 출력";
|
2559
|
+
var print_pdf = "PDF 인쇄";
|
2560
|
+
var completed = "완전한";
|
2561
|
+
var in_progress = "진행 중";
|
2562
|
+
var remaining = "남은";
|
2563
|
+
var print_per_student = "학생별 데이터 출력";
|
2564
|
+
var download_failed = "다운로드 실패";
|
2565
|
+
var data_output_for_each_student = "학생별 데이터 출력";
|
2566
|
+
var total_people = "총 {{number}}명";
|
2567
|
+
var people_to_choose = "선택 {{number}}명";
|
2568
|
+
var loading_data = "데이터 로드 중";
|
2569
|
+
var loading_print = "잠시만 기다려주세요! 인쇄";
|
2570
|
+
var your_browser_must = "귀하의 브라우저는 다음을 충족해야 합니다";
|
2571
|
+
var allowed_to_send_pop_ups_and_use_redirects = "팝업 보내기 및 리디렉션 사용이 허용됨";
|
2572
|
+
var disable_ask_where_to_save_each_file_before_downloading = "다운로드하기 전에 각 파일을 저장할 위치 묻기 비활성화";
|
2573
|
+
var total_number_of_selected_results = "선택된 결과의 총 개수";
|
2551
2574
|
var lang_ko = {
|
2552
2575
|
problem_solving: problem_solving,
|
2553
2576
|
my_story: my_story,
|
@@ -2579,7 +2602,6 @@ var lang_ko = {
|
|
2579
2602
|
exam_time: exam_time,
|
2580
2603
|
time_remaining: time_remaining,
|
2581
2604
|
number_results: number_results,
|
2582
|
-
number_result: number_result,
|
2583
2605
|
mins_mins_seconds_seconds: mins_mins_seconds_seconds,
|
2584
2606
|
mins_mins: mins_mins,
|
2585
2607
|
class_name: class_name,
|
@@ -3297,7 +3319,31 @@ var lang_ko = {
|
|
3297
3319
|
sent_at: sent_at,
|
3298
3320
|
create_data_successfully: create_data_successfully,
|
3299
3321
|
reduce_time: reduce_time,
|
3300
|
-
reduce_duration: reduce_duration
|
3322
|
+
reduce_duration: reduce_duration,
|
3323
|
+
start_test: start_test,
|
3324
|
+
edit_test: edit_test,
|
3325
|
+
view_test: view_test,
|
3326
|
+
view_records: view_records,
|
3327
|
+
delete_action: delete_action,
|
3328
|
+
edit_action: edit_action,
|
3329
|
+
view_action: view_action,
|
3330
|
+
de_select: de_select,
|
3331
|
+
select_output: select_output,
|
3332
|
+
print_pdf: print_pdf,
|
3333
|
+
completed: completed,
|
3334
|
+
in_progress: in_progress,
|
3335
|
+
remaining: remaining,
|
3336
|
+
print_per_student: print_per_student,
|
3337
|
+
download_failed: download_failed,
|
3338
|
+
data_output_for_each_student: data_output_for_each_student,
|
3339
|
+
total_people: total_people,
|
3340
|
+
people_to_choose: people_to_choose,
|
3341
|
+
loading_data: loading_data,
|
3342
|
+
loading_print: loading_print,
|
3343
|
+
your_browser_must: your_browser_must,
|
3344
|
+
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects,
|
3345
|
+
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading,
|
3346
|
+
total_number_of_selected_results: total_number_of_selected_results
|
3301
3347
|
};
|
3302
3348
|
|
3303
3349
|
var problem_solving$1 = "Problem Solving";
|
@@ -3327,8 +3373,7 @@ var current_exam$1 = "Current exam";
|
|
3327
3373
|
var current_time$1 = "Current time";
|
3328
3374
|
var exam_time$1 = "Exam time";
|
3329
3375
|
var time_remaining$1 = "Time remaining";
|
3330
|
-
var number_results$1 = "{{number}}
|
3331
|
-
var number_result$1 = "{{number}} Result";
|
3376
|
+
var number_results$1 = "{{number}} Result(s)";
|
3332
3377
|
var mins_mins_seconds_seconds$1 = "{{mins}}m {{seconds}}s";
|
3333
3378
|
var mins_mins$1 = "{{mins}} Minutes";
|
3334
3379
|
var class_name$1 = "Class name";
|
@@ -4057,6 +4102,30 @@ var sent_at$1 = "Sent at";
|
|
4057
4102
|
var create_data_successfully$1 = "Data was created successfully";
|
4058
4103
|
var reduce_time$1 = "Reduce time";
|
4059
4104
|
var reduce_duration$1 = "Reduce duration";
|
4105
|
+
var start_test$1 = "Start exam";
|
4106
|
+
var edit_test$1 = "Edit exam";
|
4107
|
+
var view_test$1 = "View exam";
|
4108
|
+
var view_records$1 = "View records";
|
4109
|
+
var delete_action$1 = "Delete";
|
4110
|
+
var edit_action$1 = "Edit";
|
4111
|
+
var view_action$1 = "View";
|
4112
|
+
var de_select$1 = "Deselect";
|
4113
|
+
var select_output$1 = "Select output";
|
4114
|
+
var print_pdf$1 = "Print PDF";
|
4115
|
+
var completed$1 = "Completed";
|
4116
|
+
var in_progress$1 = "In Progress";
|
4117
|
+
var remaining$1 = "Remaining";
|
4118
|
+
var print_per_student$1 = "Print Per Student";
|
4119
|
+
var download_failed$1 = "Download failed";
|
4120
|
+
var data_output_for_each_student$1 = "Data output for each student";
|
4121
|
+
var total_people$1 = "Total {{number}} people";
|
4122
|
+
var people_to_choose$1 = "{{number}} people to choose";
|
4123
|
+
var loading_data$1 = "Loading data";
|
4124
|
+
var loading_print$1 = "Please wait for a while! Printing";
|
4125
|
+
var your_browser_must$1 = "Your browser must";
|
4126
|
+
var allowed_to_send_pop_ups_and_use_redirects$1 = "Allowed to send pop-ups and use redirects";
|
4127
|
+
var disable_ask_where_to_save_each_file_before_downloading$1 = "Disable ask where to save each file before downloading";
|
4128
|
+
var total_number_of_selected_results$1 = "Total number of selected results";
|
4060
4129
|
var lang_en = {
|
4061
4130
|
problem_solving: problem_solving$1,
|
4062
4131
|
my_story: my_story$1,
|
@@ -4088,7 +4157,6 @@ var lang_en = {
|
|
4088
4157
|
exam_time: exam_time$1,
|
4089
4158
|
time_remaining: time_remaining$1,
|
4090
4159
|
number_results: number_results$1,
|
4091
|
-
number_result: number_result$1,
|
4092
4160
|
mins_mins_seconds_seconds: mins_mins_seconds_seconds$1,
|
4093
4161
|
mins_mins: mins_mins$1,
|
4094
4162
|
class_name: class_name$1,
|
@@ -4807,7 +4875,31 @@ var lang_en = {
|
|
4807
4875
|
sent_at: sent_at$1,
|
4808
4876
|
create_data_successfully: create_data_successfully$1,
|
4809
4877
|
reduce_time: reduce_time$1,
|
4810
|
-
reduce_duration: reduce_duration$1
|
4878
|
+
reduce_duration: reduce_duration$1,
|
4879
|
+
start_test: start_test$1,
|
4880
|
+
edit_test: edit_test$1,
|
4881
|
+
view_test: view_test$1,
|
4882
|
+
view_records: view_records$1,
|
4883
|
+
delete_action: delete_action$1,
|
4884
|
+
edit_action: edit_action$1,
|
4885
|
+
view_action: view_action$1,
|
4886
|
+
de_select: de_select$1,
|
4887
|
+
select_output: select_output$1,
|
4888
|
+
print_pdf: print_pdf$1,
|
4889
|
+
completed: completed$1,
|
4890
|
+
in_progress: in_progress$1,
|
4891
|
+
remaining: remaining$1,
|
4892
|
+
print_per_student: print_per_student$1,
|
4893
|
+
download_failed: download_failed$1,
|
4894
|
+
data_output_for_each_student: data_output_for_each_student$1,
|
4895
|
+
total_people: total_people$1,
|
4896
|
+
people_to_choose: people_to_choose$1,
|
4897
|
+
loading_data: loading_data$1,
|
4898
|
+
loading_print: loading_print$1,
|
4899
|
+
your_browser_must: your_browser_must$1,
|
4900
|
+
allowed_to_send_pop_ups_and_use_redirects: allowed_to_send_pop_ups_and_use_redirects$1,
|
4901
|
+
disable_ask_where_to_save_each_file_before_downloading: disable_ask_where_to_save_each_file_before_downloading$1,
|
4902
|
+
total_number_of_selected_results: total_number_of_selected_results$1
|
4811
4903
|
};
|
4812
4904
|
|
4813
4905
|
i18n.use(initReactI18next).init({
|
@@ -5999,7 +6091,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
5999
6091
|
fontWeight: 700,
|
6000
6092
|
fontSize: '14px',
|
6001
6093
|
lineHeight: '16.71px'
|
6002
|
-
},
|
6094
|
+
}, t('cancel'))), React__default.createElement(Button, {
|
6003
6095
|
variant: "contained",
|
6004
6096
|
className: styles$1['btn-register'],
|
6005
6097
|
sx: {
|
@@ -6014,7 +6106,7 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
6014
6106
|
fontSize: '14px',
|
6015
6107
|
lineHeight: '16.71px',
|
6016
6108
|
color: '#FFFFFF'
|
6017
|
-
},
|
6109
|
+
}, t('registration')))))));
|
6018
6110
|
};
|
6019
6111
|
|
6020
6112
|
var ChatItemType;
|
@@ -6600,7 +6692,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
6600
6692
|
}, React__default.createElement(Typography, {
|
6601
6693
|
fontWeight: 800,
|
6602
6694
|
fontSize: "20px",
|
6603
|
-
color: styles.
|
6695
|
+
color: styles.less_darker,
|
6604
6696
|
lineHeight: "23.87px"
|
6605
6697
|
}, isStudent ? t("question_and_answer") : t("q&a"))), renderHeader(), React__default.createElement(ConfirmDialog, {
|
6606
6698
|
open: openDialog,
|
@@ -8059,7 +8151,7 @@ var TEXTBOOK_HEADERS = [{
|
|
8059
8151
|
}, {
|
8060
8152
|
title: "total_chapters"
|
8061
8153
|
}, {
|
8062
|
-
title: "
|
8154
|
+
title: ["edit_action", "view_action", "delete_action"]
|
8063
8155
|
}];
|
8064
8156
|
var DEFAULT_ANSWER_COUNT = 5;
|
8065
8157
|
var DEFAULT_EXAM_REQUEST = {
|
@@ -10431,7 +10523,9 @@ var TableHeader = function TableHeader(_ref) {
|
|
10431
10523
|
} : undefined
|
10432
10524
|
}, React__default.createElement("div", {
|
10433
10525
|
className: "d-flex justify-content-between align-items-center text-nowrap"
|
10434
|
-
},
|
10526
|
+
}, Array.isArray(i.title) ? i.title.map(function (tl) {
|
10527
|
+
return t(tl);
|
10528
|
+
}).join("/") : t(i.title), !!i.sortKey && React__default.createElement(SortIcon, {
|
10435
10529
|
isAscending: filter.sortColumnName !== i.sortKey ? undefined : filter.sortColumnDirection === OrderType.ASC
|
10436
10530
|
})));
|
10437
10531
|
})));
|
@@ -10539,12 +10633,13 @@ var TextbookList = function TextbookList(props) {
|
|
10539
10633
|
direction: "row",
|
10540
10634
|
spacing: 1,
|
10541
10635
|
alignItems: "center"
|
10542
|
-
},
|
10636
|
+
}, React__default.createElement(IconButton, {
|
10543
10637
|
color: "default",
|
10544
|
-
className: "bg-warning text-white",
|
10638
|
+
className: (i.isCreatedByAdmin ? "bg-secondary" : "bg-warning") + " text-white",
|
10545
10639
|
onClick: function onClick() {
|
10546
10640
|
return handleUpdateTextbook(i.id);
|
10547
|
-
}
|
10641
|
+
},
|
10642
|
+
disabled: !!i.isCreatedByAdmin
|
10548
10643
|
}, React__default.createElement(FaPencil, {
|
10549
10644
|
size: 12
|
10550
10645
|
})), React__default.createElement(IconButton, {
|
@@ -10555,12 +10650,13 @@ var TextbookList = function TextbookList(props) {
|
|
10555
10650
|
}
|
10556
10651
|
}, React__default.createElement(FaEye, {
|
10557
10652
|
size: 12
|
10558
|
-
})),
|
10653
|
+
})), React__default.createElement(IconButton, {
|
10559
10654
|
color: "default",
|
10560
|
-
className: "bg-danger text-white",
|
10655
|
+
className: (i.isCreatedByAdmin ? "bg-secondary" : "bg-danger") + " text-white",
|
10561
10656
|
onClick: function onClick() {
|
10562
10657
|
return handleSelectDeleteTextbook(i);
|
10563
|
-
}
|
10658
|
+
},
|
10659
|
+
disabled: !!i.isCreatedByAdmin
|
10564
10660
|
}, React__default.createElement(FaTrash, {
|
10565
10661
|
size: 12
|
10566
10662
|
})))));
|
@@ -11517,6 +11613,8 @@ var createRecentUserActionListApi = function createRecentUserActionListApi(_ref)
|
|
11517
11613
|
});
|
11518
11614
|
};
|
11519
11615
|
|
11616
|
+
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"};
|
11617
|
+
|
11520
11618
|
var useExamResult = function useExamResult(props) {
|
11521
11619
|
var _allSeries$dataChartI;
|
11522
11620
|
var searchParams = props.searchParams,
|
@@ -11535,7 +11633,7 @@ var useExamResult = function useExamResult(props) {
|
|
11535
11633
|
});
|
11536
11634
|
var roles = (user === null || user === void 0 ? void 0 : user.roles) || [];
|
11537
11635
|
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
|
11538
|
-
var examCode = query.get("examCode") ||
|
11636
|
+
var examCode = query.get("examCode") || code;
|
11539
11637
|
var language = useSelector(function (state) {
|
11540
11638
|
var _state$common2;
|
11541
11639
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
@@ -11793,7 +11891,7 @@ var useExamResult = function useExamResult(props) {
|
|
11793
11891
|
}
|
11794
11892
|
}
|
11795
11893
|
}),
|
11796
|
-
colors: [
|
11894
|
+
colors: [styles$4.dark, styles$4.purple_900],
|
11797
11895
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
11798
11896
|
categories: ["s"].concat(Array.from({
|
11799
11897
|
length: questionLength
|
@@ -11829,6 +11927,7 @@ var useExamResult = function useExamResult(props) {
|
|
11829
11927
|
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");
|
11830
11928
|
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
11831
11929
|
return {
|
11930
|
+
t: t,
|
11832
11931
|
isLoading: isLoading,
|
11833
11932
|
examTime: examTime,
|
11834
11933
|
series: series,
|
@@ -12965,8 +13064,6 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
12965
13064
|
|
12966
13065
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
12967
13066
|
|
12968
|
-
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"};
|
12969
|
-
|
12970
13067
|
var iconStarQuestion = function iconStarQuestion(_ref) {
|
12971
13068
|
var _ref$width = _ref.width,
|
12972
13069
|
width = _ref$width === void 0 ? "15" : _ref$width,
|
@@ -12983,7 +13080,7 @@ var iconStarQuestion = function iconStarQuestion(_ref) {
|
|
12983
13080
|
clipPath: "url(#clip0_1_2291)"
|
12984
13081
|
}, React__default.createElement("path", {
|
12985
13082
|
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",
|
12986
|
-
fill: "#
|
13083
|
+
fill: "#FEAF06"
|
12987
13084
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
12988
13085
|
id: "clip0_1_2291"
|
12989
13086
|
}, React__default.createElement("rect", {
|
@@ -13010,7 +13107,7 @@ var iconNoStarQuestion = function iconNoStarQuestion(_ref) {
|
|
13010
13107
|
clipPath: "url(#clip0_307_1248)"
|
13011
13108
|
}, React__default.createElement("path", {
|
13012
13109
|
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",
|
13013
|
-
fill: "#
|
13110
|
+
fill: "#FEAF06"
|
13014
13111
|
})), React__default.createElement("defs", null, React__default.createElement("clipPath", {
|
13015
13112
|
id: "clip0_307_1248"
|
13016
13113
|
}, React__default.createElement("rect", {
|
@@ -13034,7 +13131,7 @@ var iconCorrectAnswer = function iconCorrectAnswer(_ref) {
|
|
13034
13131
|
xmlns: "http://www.w3.org/2000/svg"
|
13035
13132
|
}, React__default.createElement("path", {
|
13036
13133
|
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",
|
13037
|
-
fill: "#
|
13134
|
+
fill: "#3ACB46"
|
13038
13135
|
}));
|
13039
13136
|
};
|
13040
13137
|
|
@@ -13052,7 +13149,7 @@ var iconCorrectAnswer$1 = function iconCorrectAnswer(_ref) {
|
|
13052
13149
|
xmlns: "http://www.w3.org/2000/svg"
|
13053
13150
|
}, React__default.createElement("path", {
|
13054
13151
|
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",
|
13055
|
-
fill: "#
|
13152
|
+
fill: "#DB4D4D"
|
13056
13153
|
}));
|
13057
13154
|
};
|
13058
13155
|
|
@@ -13205,7 +13302,7 @@ var iconWarning = function iconWarning(_ref) {
|
|
13205
13302
|
xmlns: "http://www.w3.org/2000/svg"
|
13206
13303
|
}, React__default.createElement("path", {
|
13207
13304
|
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",
|
13208
|
-
fill: "#
|
13305
|
+
fill: "#DB4D4D"
|
13209
13306
|
}));
|
13210
13307
|
};
|
13211
13308
|
|
@@ -13318,7 +13415,7 @@ function CreateNewQuestionDialog(_ref) {
|
|
13318
13415
|
fontWeight: 500,
|
13319
13416
|
fontSize: '10px',
|
13320
13417
|
lineHeight: '11.93px',
|
13321
|
-
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' :
|
13418
|
+
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : styles$4.red_900
|
13322
13419
|
}, !(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$1, {
|
13323
13420
|
sx: {
|
13324
13421
|
display: 'flex',
|
@@ -13663,7 +13760,7 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13663
13760
|
})), React__default.createElement("td", {
|
13664
13761
|
className: styles$4["tdcolumn3"],
|
13665
13762
|
style: {
|
13666
|
-
color: item.isCorrect ?
|
13763
|
+
color: item.isCorrect ? styles$4.green_support_900 : styles$4.red_900
|
13667
13764
|
}
|
13668
13765
|
}, item.selectedAnswers ? t("number_question", {
|
13669
13766
|
number: item.selectedAnswers
|
@@ -13681,15 +13778,15 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13681
13778
|
key: index
|
13682
13779
|
}, problem === 1 && React__default.createElement("span", {
|
13683
13780
|
style: {
|
13684
|
-
border: "1px solid
|
13781
|
+
border: "1px solid " + styles$4.green_support_900
|
13685
13782
|
}
|
13686
13783
|
}, t("easy_problem")), problem === 3 && React__default.createElement("span", {
|
13687
13784
|
style: {
|
13688
|
-
border: "1px solid
|
13785
|
+
border: "1px solid " + styles$4.yellow_900
|
13689
13786
|
}
|
13690
13787
|
}, t("trick_problem")), problem === 2 && React__default.createElement("span", {
|
13691
13788
|
style: {
|
13692
|
-
border: "1px solid
|
13789
|
+
border: "1px solid " + styles$4.red_900
|
13693
13790
|
}
|
13694
13791
|
}, t("differential_problem")), problem === 0 && React__default.createElement("span", {
|
13695
13792
|
style: {
|
@@ -13697,7 +13794,7 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
13697
13794
|
}
|
13698
13795
|
}, t("general_problem")), problem === 4 && React__default.createElement("span", {
|
13699
13796
|
style: {
|
13700
|
-
border: "1px solid
|
13797
|
+
border: "1px solid " + styles$4.red_900
|
13701
13798
|
}
|
13702
13799
|
}, t("difficult_problem")));
|
13703
13800
|
}))));
|
@@ -13894,7 +13991,7 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
13894
13991
|
}, item.topDuration ? formatTimeSecond(item.topDuration, t) : ""), React__default.createElement("td", {
|
13895
13992
|
style: {
|
13896
13993
|
textAlign: "center",
|
13897
|
-
color: isBetter ? styles$4.dark :
|
13994
|
+
color: isBetter ? styles$4.dark : styles$4.red_900,
|
13898
13995
|
fontSize: "13px",
|
13899
13996
|
fontWeight: 600
|
13900
13997
|
}
|
@@ -14035,7 +14132,7 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
14035
14132
|
}, item.overallCorrectRate.toFixed(2) ? item.overallCorrectRate.toFixed(2) + "%" : ""), React__default.createElement("td", {
|
14036
14133
|
className: styles$4["tdcolumn3"],
|
14037
14134
|
style: {
|
14038
|
-
color:
|
14135
|
+
color: styles$4.red_900,
|
14039
14136
|
fontSize: "13px",
|
14040
14137
|
fontWeight: 500
|
14041
14138
|
}
|
@@ -14438,7 +14535,7 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
14438
14535
|
fontWeight: 500,
|
14439
14536
|
fontSize: '10px',
|
14440
14537
|
lineHeight: '11.93px',
|
14441
|
-
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' :
|
14538
|
+
color: !(errors !== null && errors !== void 0 && errors.content) ? '#97A1AF' : styles$4.red_900
|
14442
14539
|
}, !(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$1, {
|
14443
14540
|
sx: {
|
14444
14541
|
display: 'flex',
|
@@ -16445,28 +16542,52 @@ var useVirtualizeList = function useVirtualizeList(totalItems, rowHeight, offset
|
|
16445
16542
|
};
|
16446
16543
|
};
|
16447
16544
|
|
16448
|
-
var usePrintView = function usePrintView(
|
16545
|
+
var usePrintView = function usePrintView(_ref) {
|
16546
|
+
var examSessionId = _ref.examSessionId,
|
16547
|
+
studentId = _ref.studentId,
|
16548
|
+
code = _ref.code,
|
16549
|
+
setNotFound = _ref.setNotFound,
|
16550
|
+
resultData = _ref.resultData,
|
16551
|
+
isLoading = _ref.isLoading,
|
16552
|
+
errorMessage = _ref.errorMessage;
|
16449
16553
|
var _useState = useState(false),
|
16450
16554
|
isDone = _useState[0],
|
16451
16555
|
setDone = _useState[1];
|
16452
16556
|
var handelPrintSuccess = function handelPrintSuccess() {
|
16453
16557
|
var _window$opener$postMe, _window$opener;
|
16454
|
-
var data
|
16455
|
-
|
16456
|
-
|
16457
|
-
|
16458
|
-
|
16558
|
+
var data;
|
16559
|
+
if (code) {
|
16560
|
+
data = {
|
16561
|
+
code: code,
|
16562
|
+
succeed: true
|
16563
|
+
};
|
16564
|
+
} else {
|
16565
|
+
data = {
|
16566
|
+
examSessionId: examSessionId,
|
16567
|
+
studentId: studentId,
|
16568
|
+
succeed: true
|
16569
|
+
};
|
16570
|
+
}
|
16459
16571
|
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);
|
16460
16572
|
setDone(true);
|
16461
16573
|
};
|
16462
16574
|
var handelPrintError = function handelPrintError(errorMessage) {
|
16463
16575
|
var _window$opener$postMe2, _window$opener2;
|
16464
|
-
var data
|
16465
|
-
|
16466
|
-
|
16467
|
-
|
16468
|
-
|
16469
|
-
|
16576
|
+
var data;
|
16577
|
+
if (code) {
|
16578
|
+
data = {
|
16579
|
+
code: code,
|
16580
|
+
succeed: false,
|
16581
|
+
errorMessage: errorMessage
|
16582
|
+
};
|
16583
|
+
} else {
|
16584
|
+
data = {
|
16585
|
+
examSessionId: examSessionId,
|
16586
|
+
studentId: studentId,
|
16587
|
+
succeed: false,
|
16588
|
+
errorMessage: errorMessage
|
16589
|
+
};
|
16590
|
+
}
|
16470
16591
|
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);
|
16471
16592
|
setDone(true);
|
16472
16593
|
};
|
@@ -16512,7 +16633,8 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16512
16633
|
examSessionId = _ref$examSessionId === void 0 ? 0 : _ref$examSessionId,
|
16513
16634
|
_ref$studentId = _ref.studentId,
|
16514
16635
|
studentId = _ref$studentId === void 0 ? 0 : _ref$studentId,
|
16515
|
-
code = _ref.code,
|
16636
|
+
_ref$code = _ref.code,
|
16637
|
+
code = _ref$code === void 0 ? "" : _ref$code,
|
16516
16638
|
setNotFound = _ref.setNotFound;
|
16517
16639
|
var _useExamResult = useExamResult({
|
16518
16640
|
searchParams: searchParams,
|
@@ -16522,6 +16644,7 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16522
16644
|
code: code,
|
16523
16645
|
isPrint: true
|
16524
16646
|
}),
|
16647
|
+
t = _useExamResult.t,
|
16525
16648
|
isLoading = _useExamResult.isLoading,
|
16526
16649
|
examTime = _useExamResult.examTime,
|
16527
16650
|
allSeries = _useExamResult.allSeries,
|
@@ -16533,7 +16656,15 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16533
16656
|
effectSize = _useExamResult.effectSize,
|
16534
16657
|
categoryResponses = _useExamResult.categoryResponses,
|
16535
16658
|
errorMessage = _useExamResult.errorMessage;
|
16536
|
-
var _usePrintView = usePrintView(
|
16659
|
+
var _usePrintView = usePrintView({
|
16660
|
+
code: code,
|
16661
|
+
examSessionId: examSessionId,
|
16662
|
+
studentId: studentId,
|
16663
|
+
setNotFound: setNotFound,
|
16664
|
+
resultData: resultData,
|
16665
|
+
isLoading: isLoading,
|
16666
|
+
errorMessage: errorMessage
|
16667
|
+
}),
|
16537
16668
|
fileName = _usePrintView.fileName,
|
16538
16669
|
isDone = _usePrintView.isDone,
|
16539
16670
|
handelPrintSuccess = _usePrintView.handelPrintSuccess,
|
@@ -16566,14 +16697,225 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
16566
16697
|
isLoading: !!isLoading,
|
16567
16698
|
spinClassName: "text-white"
|
16568
16699
|
}, isTabletUp && React__default.createElement(LoadingDots, {
|
16569
|
-
text:
|
16700
|
+
text: t('loading_data')
|
16570
16701
|
})) : React__default.createElement(NotFound, null), React__default.createElement(LoadingComponent, {
|
16571
16702
|
isLoading: isDone !== true && isLoading === false && !!resultData,
|
16572
16703
|
spinClassName: "text-white"
|
16573
16704
|
}, isTabletUp && React__default.createElement(LoadingDots, {
|
16574
|
-
text:
|
16705
|
+
text: t('loading_print')
|
16575
16706
|
})));
|
16576
16707
|
};
|
16577
16708
|
|
16578
|
-
|
16709
|
+
var PrintState$1;
|
16710
|
+
(function (PrintState) {
|
16711
|
+
PrintState[PrintState["Idling"] = 0] = "Idling";
|
16712
|
+
PrintState[PrintState["Stopped"] = 1] = "Stopped";
|
16713
|
+
PrintState[PrintState["Printing"] = 2] = "Printing";
|
16714
|
+
PrintState[PrintState["Paused"] = 3] = "Paused";
|
16715
|
+
})(PrintState$1 || (PrintState$1 = {}));
|
16716
|
+
|
16717
|
+
var TOTAL = 3;
|
16718
|
+
var PrintExamView2 = function PrintExamView2(_ref) {
|
16719
|
+
var role = _ref.role,
|
16720
|
+
dataExamSession = _ref.dataExamSession;
|
16721
|
+
var history = useHistory();
|
16722
|
+
var _useTranslation = useTranslation(),
|
16723
|
+
t = _useTranslation.t;
|
16724
|
+
var isTeacher = Role.Teacher === role;
|
16725
|
+
var dataProps = isTeacher ? dataExamSession.map(function (i) {
|
16726
|
+
return {
|
16727
|
+
studentId: i === null || i === void 0 ? void 0 : i.studentId,
|
16728
|
+
examSessionId: i === null || i === void 0 ? void 0 : i.examSessionId
|
16729
|
+
};
|
16730
|
+
}) : dataExamSession.map(function (i) {
|
16731
|
+
return {
|
16732
|
+
code: i === null || i === void 0 ? void 0 : i.code
|
16733
|
+
};
|
16734
|
+
});
|
16735
|
+
useLanguage(history);
|
16736
|
+
var _useState = useState(dataProps),
|
16737
|
+
data = _useState[0],
|
16738
|
+
setData = _useState[1];
|
16739
|
+
var _useState2 = useState([]),
|
16740
|
+
completed = _useState2[0],
|
16741
|
+
setCompleted = _useState2[1];
|
16742
|
+
var _useState3 = useState([]),
|
16743
|
+
inprogress = _useState3[0],
|
16744
|
+
setInProgress = _useState3[1];
|
16745
|
+
var _useState4 = useState(PrintState$1.Idling),
|
16746
|
+
state = _useState4[0],
|
16747
|
+
setState = _useState4[1];
|
16748
|
+
var _useState5 = useState([]),
|
16749
|
+
errorLinks = _useState5[0],
|
16750
|
+
setErrorLinks = _useState5[1];
|
16751
|
+
var theme = useTheme();
|
16752
|
+
var handleProgressPrint = function handleProgressPrint() {
|
16753
|
+
setData(dataProps);
|
16754
|
+
setCompleted([]);
|
16755
|
+
setInProgress([]);
|
16756
|
+
setErrorLinks([]);
|
16757
|
+
setState(PrintState$1.Printing);
|
16758
|
+
};
|
16759
|
+
var print = function print(_ref2) {
|
16760
|
+
var examSessionId = _ref2.examSessionId,
|
16761
|
+
studentId = _ref2.studentId,
|
16762
|
+
code = _ref2.code;
|
16763
|
+
var url = isTeacher ? window.location.origin + "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : window.location.origin + "/student/exam-results/" + code + "/print";
|
16764
|
+
var windowName = isTeacher ? "popup-" + examSessionId + "-" + studentId : "popup-" + code;
|
16765
|
+
var windowSpecs = "left=" + (window.innerWidth - 100) + ",top=" + (window.innerHeight - 100) + ",width=100,height=100,location=yes,resizable=yes,scrollbars=yes,status=yes";
|
16766
|
+
var childWindow = window.open(url, windowName, windowSpecs);
|
16767
|
+
if (childWindow == null) {
|
16768
|
+
setErrorLinks(function (prev) {
|
16769
|
+
return [].concat(prev, [{
|
16770
|
+
code: code,
|
16771
|
+
examSessionId: "" + examSessionId,
|
16772
|
+
message: isTeacher ? "/teacher/exam-results/" + examSessionId + "/students/" + studentId + "/print" : "/student/exam-results/" + code + "/print"
|
16773
|
+
}]);
|
16774
|
+
});
|
16775
|
+
setData(function (es) {
|
16776
|
+
return [].concat(es.filter(function (i) {
|
16777
|
+
return i.code !== code;
|
16778
|
+
}));
|
16779
|
+
});
|
16780
|
+
return;
|
16781
|
+
}
|
16782
|
+
if (!isTeacher) {
|
16783
|
+
setInProgress(function (es) {
|
16784
|
+
return [].concat(es.filter(function (i) {
|
16785
|
+
return i.code !== code;
|
16786
|
+
}), [{
|
16787
|
+
code: code
|
16788
|
+
}]);
|
16789
|
+
});
|
16790
|
+
setData(function (es) {
|
16791
|
+
return [].concat(es.filter(function (i) {
|
16792
|
+
return i.code !== code;
|
16793
|
+
}));
|
16794
|
+
});
|
16795
|
+
} else {
|
16796
|
+
setInProgress(function (es) {
|
16797
|
+
return [].concat(es.filter(function (i) {
|
16798
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16799
|
+
}), [{
|
16800
|
+
examSessionId: examSessionId,
|
16801
|
+
studentId: studentId
|
16802
|
+
}]);
|
16803
|
+
});
|
16804
|
+
setData(function (es) {
|
16805
|
+
return [].concat(es.filter(function (i) {
|
16806
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16807
|
+
}));
|
16808
|
+
});
|
16809
|
+
}
|
16810
|
+
window.addEventListener("message", function (event) {
|
16811
|
+
var isCheck = isTeacher ? event.data.examSessionId !== "" + examSessionId || event.data.studentId !== "" + studentId : event.data.code !== "" + code;
|
16812
|
+
if (event.origin !== window.location.origin || isCheck) {
|
16813
|
+
return;
|
16814
|
+
}
|
16815
|
+
if (event.data.succeed) {
|
16816
|
+
if (!isTeacher) {
|
16817
|
+
setCompleted(function (es) {
|
16818
|
+
return [].concat(es.filter(function (i) {
|
16819
|
+
return i.code !== code;
|
16820
|
+
}), [{
|
16821
|
+
code: code
|
16822
|
+
}]);
|
16823
|
+
});
|
16824
|
+
setInProgress(function (es) {
|
16825
|
+
return [].concat(es.filter(function (i) {
|
16826
|
+
return i.code !== code;
|
16827
|
+
}));
|
16828
|
+
});
|
16829
|
+
} else {
|
16830
|
+
setCompleted(function (es) {
|
16831
|
+
return [].concat(es.filter(function (i) {
|
16832
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16833
|
+
}), [{
|
16834
|
+
examSessionId: examSessionId,
|
16835
|
+
studentId: studentId
|
16836
|
+
}]);
|
16837
|
+
});
|
16838
|
+
setInProgress(function (es) {
|
16839
|
+
return [].concat(es.filter(function (i) {
|
16840
|
+
return i.examSessionId !== examSessionId || i.studentId !== studentId;
|
16841
|
+
}));
|
16842
|
+
});
|
16843
|
+
}
|
16844
|
+
} else {
|
16845
|
+
setErrorLinks(function (prev) {
|
16846
|
+
var _event$data, _event$data2;
|
16847
|
+
return [].concat(prev, [{
|
16848
|
+
code: (_event$data = event.data) === null || _event$data === void 0 ? void 0 : _event$data.code,
|
16849
|
+
examSessionId: (_event$data2 = event.data) === null || _event$data2 === void 0 ? void 0 : _event$data2.examSessionId,
|
16850
|
+
message: isTeacher ? "/teacher/exam-results/" + event.data.examSessionId + "/students/" + event.data.studentId + "/print" : "/student/exam-results/" + event.data.code + "/print"
|
16851
|
+
}]);
|
16852
|
+
});
|
16853
|
+
}
|
16854
|
+
childWindow === null || childWindow === void 0 ? void 0 : childWindow.close();
|
16855
|
+
});
|
16856
|
+
};
|
16857
|
+
useEffect(function () {
|
16858
|
+
if (inprogress.length < TOTAL && data.length > 0 && state === PrintState$1.Printing) {
|
16859
|
+
var item = data[0];
|
16860
|
+
print({
|
16861
|
+
examSessionId: item === null || item === void 0 ? void 0 : item.examSessionId,
|
16862
|
+
studentId: item === null || item === void 0 ? void 0 : item.studentId,
|
16863
|
+
code: item === null || item === void 0 ? void 0 : item.code
|
16864
|
+
});
|
16865
|
+
}
|
16866
|
+
}, [inprogress.length, completed.length, data.length, state, data]);
|
16867
|
+
return React__default.createElement(Container, null, state === PrintState$1.Idling ? React__default.createElement(Typography, null, t("total_number_of_selected_results") + ": ", " ", React__default.createElement("span", {
|
16868
|
+
className: "fw-bold"
|
16869
|
+
}, t("number_results", {
|
16870
|
+
number: ("" + data.length).padStart(2, "0")
|
16871
|
+
}))) : React__default.createElement(Fragment$1, null, React__default.createElement(Typography, null, t("completed") + ": ", React__default.createElement("span", {
|
16872
|
+
className: "fw-bold"
|
16873
|
+
}, t("number_results", {
|
16874
|
+
number: ("" + completed.length).padStart(2, "0")
|
16875
|
+
}))), React__default.createElement(Typography, null, t("in_progress") + ": ", React__default.createElement("span", {
|
16876
|
+
className: "fw-bold"
|
16877
|
+
}, t("number_results", {
|
16878
|
+
number: ("" + inprogress.length).padStart(2, "0")
|
16879
|
+
}))), React__default.createElement(Typography, null, t("remaining") + ": ", React__default.createElement("span", {
|
16880
|
+
className: "fw-bold"
|
16881
|
+
}, t("number_results", {
|
16882
|
+
number: ("" + data.length).padStart(2, "0")
|
16883
|
+
})))), !!errorLinks.length && React__default.createElement(Stack, {
|
16884
|
+
className: "mt-2"
|
16885
|
+
}, React__default.createElement(Typography, {
|
16886
|
+
fontWeight: 700
|
16887
|
+
}, t("download_failed"), ":"), Array.from(new Set(errorLinks)).map(function (i) {
|
16888
|
+
var _info$createdBy;
|
16889
|
+
var info = isTeacher ? dataExamSession.find(function (exam) {
|
16890
|
+
return (exam === null || exam === void 0 ? void 0 : exam.examSessionId.toString()) === (i === null || i === void 0 ? void 0 : i.examSessionId);
|
16891
|
+
}) : dataExamSession.find();
|
16892
|
+
return React__default.createElement(Stack, {
|
16893
|
+
borderBottom: 1,
|
16894
|
+
borderColor: theme.palette.grey[500]
|
16895
|
+
}, React__default.createElement(Link, {
|
16896
|
+
to: i.message,
|
16897
|
+
target: "_blank",
|
16898
|
+
rel: "noopener noreferrer"
|
16899
|
+
}, (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(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(Typography, null, t("start_time") + ": " + utcToLocalTime(info === null || info === void 0 ? void 0 : info.startTime, "YYYY-MM-DD")));
|
16900
|
+
})), React__default.createElement(Stack, {
|
16901
|
+
direction: "column",
|
16902
|
+
className: "mt-3"
|
16903
|
+
}, React__default.createElement(Stack, null, React__default.createElement(Typography, {
|
16904
|
+
className: "fw-bold"
|
16905
|
+
}, React__default.createElement("span", {
|
16906
|
+
className: "text-danger me-1"
|
16907
|
+
}, "*"), t("your_browser_must"), ":"), React__default.createElement(List, {
|
16908
|
+
className: "ps-3 pt-0"
|
16909
|
+
}, React__default.createElement(ListItem, {
|
16910
|
+
disablePadding: true
|
16911
|
+
}, t("allowed_to_send_pop_ups_and_use_redirects")), React__default.createElement(ListItem, {
|
16912
|
+
disablePadding: true
|
16913
|
+
}, t("disable_ask_where_to_save_each_file_before_downloading")))), React__default.createElement(Button, {
|
16914
|
+
className: "mt-3",
|
16915
|
+
variant: "contained",
|
16916
|
+
onClick: handleProgressPrint
|
16917
|
+
}, t("print_pdf"))));
|
16918
|
+
};
|
16919
|
+
|
16920
|
+
export { ACADEMY_DOMAIN, ACCESS_TOKEN, AcademyHeaders, AcademyList, AnswerCountSelector, ArticleCategorySelector, ArticleGroupView, BASE_URL, ChatContainer, ChatItemType, types as ChatTypes, CommonDialog, ConfirmDialog, index$1 as CoreHooks, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_MIN_VALUE, DATE_TIME_MIN_VALUE, DEFAULT_PAGING_RESPONSE, DefaultErrorMessage, EXAM_CHANNEL, EXAM_STUDENT_CHANNEL, index as Enums, ExamDetailView, ExamEvent, ExamResultV2, Header, InputText, LANGUAGES, Language, LayoutContext, Loading, LoadingComponent, Login, SignIn as LoginWithPassword, NotFound, PUSHER_CONFIG, PassCodeCheck, PrintExamResultView, PrintExamView2, QuestionCountSelector, RecentUserAction, Role, SUPER_ADMIN_BASE_URL, ScoreSelector, SubjectSelector, index$2 as Textbook, TextbookViewDetail as TextbookDetail, TextbookList, TheAcademyDropdown, TheLanguageDropdown, index$3 as Types, api, apiUpload, canAccess as canAccessRoute, checkSuperUrl, createRecentUserActionListApi, diffFromNow, formatTime, getAcademyDomain, getAccessToken, getErrorMessage, getOrdinalSuffix, getRecentUserActionListApi, i18n, minutesToTimeSpan, setAlert, setLanguage, setLoading, setReFetchUserAcademies, setReadyRegisterPusher, setUser, store, times as timeUtils, toISOString, useAutoAcademyDomain, useCategorySelect, useChatContainer, useCountDownTimer, useGoogleSignOut, useLanguage, useLoadMore, useLogin, usePusherConversation, useSubjectSelect, useSwitchAcademy, useVirtualizeList, utcToLocalTime };
|
16579
16921
|
//# sourceMappingURL=index.modern.js.map
|