touchstudy-core 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +2 -6
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +2 -6
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +3 -13
- package/dist/containers/Textbooks/components/dialog/CreateExamDrawer.d.ts +2 -2
- package/dist/index.css +23 -64
- package/dist/index.js +319 -219
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +319 -219
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -141,7 +141,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
141
141
|
return target;
|
142
142
|
}
|
143
143
|
|
144
|
-
var styles = {"btn-login-google":"_2HqmH","block-login":"_wWIyO","box-login":"_38Lo1","btn-primary":"_rd4Uy","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","dropdown-academy":"_3CMVp","image-academy":"_2ibYC","image-academy--item":"_3RDWF","academy-btn":"_1JMRU","switch-icon":"_N4FNf","dropdown-content-academy":"_31Dr0","dropdown-academy-item":"_3bjcz","noGutters":"_31ZQk","custom-col-2":"_3yXyK","custom-col-3":"_1RsJQ","custom-col-5":"_L42CP","custom-col-10":"_2u6eL","custom-row":"_8x7OP","custom-col":"_1JmTh","custom-col-4":"_3HO1e","custom-col-8":"_Oy31M","custom-col-12":"_3aUKo","custom-container":"_39LRs","form-label":"__Ut-u","form-control":"_2k4dX","btn-outline-primary":"_2PWdX","sort-icons":"_mQvLF","active":"_3oAH-","form-select":"_3W3aw","truncate":"_3NJzN","headers":"_3xnI5","logo-container":"_3YG70","tabBox":"_1CQPn","routerBox":"_3hx2T","tabText":"_3UyhW","router-link-active":"_1TGKA","router-link":"_1AqMh","userImg":"_2RI6G","disabled-link":"_3aVHg"};
|
144
|
+
var styles = {"lighter":"#F0FFF6","light":"#C8F8DB","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_100":"#F9FAFB","gray_300":"#DFE3E8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","btn-login-google":"_2HqmH","block-login":"_wWIyO","box-login":"_38Lo1","btn-primary":"_rd4Uy","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","dropdown-academy":"_3CMVp","image-academy":"_2ibYC","image-academy--item":"_3RDWF","academy-btn":"_1JMRU","switch-icon":"_N4FNf","dropdown-content-academy":"_31Dr0","dropdown-academy-item":"_3bjcz","noGutters":"_31ZQk","custom-col-2":"_3yXyK","custom-col-3":"_1RsJQ","custom-col-5":"_L42CP","custom-col-10":"_2u6eL","custom-row":"_8x7OP","custom-col":"_1JmTh","custom-col-4":"_3HO1e","custom-col-8":"_Oy31M","custom-col-12":"_3aUKo","custom-container":"_39LRs","form-label":"__Ut-u","form-control":"_2k4dX","btn-outline-primary":"_2PWdX","sort-icons":"_mQvLF","active":"_3oAH-","form-select":"_3W3aw","truncate":"_3NJzN","headers":"_3xnI5","logo-container":"_3YG70","tabBox":"_1CQPn","routerBox":"_3hx2T","tabText":"_3UyhW","router-link-active":"_1TGKA","router-link":"_1AqMh","userImg":"_2RI6G","disabled-link":"_3aVHg"};
|
145
145
|
|
146
146
|
// A type of promise-like that resolves synchronously and supports only one observer
|
147
147
|
const _Pact = /*#__PURE__*/(function() {
|
@@ -1175,9 +1175,7 @@ var LayoutContext = function LayoutContext(_ref) {
|
|
1175
1175
|
}
|
1176
1176
|
}
|
1177
1177
|
if (!pusherRegisterUrls.includes(pathname.toLocaleLowerCase()) && !!currentPusher) {
|
1178
|
-
|
1179
|
-
currentPusher.disconnect();
|
1180
|
-
}
|
1178
|
+
currentPusher.disconnect();
|
1181
1179
|
dispatch(setConcurrentConnectionPusher({
|
1182
1180
|
pusher: null,
|
1183
1181
|
academyDomain: ""
|
@@ -1471,7 +1469,7 @@ var ExamEvent;
|
|
1471
1469
|
ExamEvent["TeacherKickOutStudent"] = "teacher-kick-out-student";
|
1472
1470
|
})(ExamEvent || (ExamEvent = {}));
|
1473
1471
|
|
1474
|
-
var problem_solving = "
|
1472
|
+
var problem_solving = "수업 관리";
|
1475
1473
|
var my_story = "내 스토리";
|
1476
1474
|
var search_find = "검색하여 찾기";
|
1477
1475
|
var test_code = "시험코드 입력";
|
@@ -1481,7 +1479,7 @@ var description_success = "스터디 터치는 엄태욱 선생님의 수업에
|
|
1481
1479
|
var logout = "로그 아웃";
|
1482
1480
|
var overall_status = "전체 현황";
|
1483
1481
|
var exam_status = "시험별 현";
|
1484
|
-
var student_status = "
|
1482
|
+
var student_status = "학생별 현황";
|
1485
1483
|
var user_manager = "사용자 목록";
|
1486
1484
|
var recent_exam_results = "최근 시험 결과";
|
1487
1485
|
var instructor_name = "강사이름";
|
@@ -1788,6 +1786,10 @@ var problem_analysis = "문제 분석";
|
|
1788
1786
|
var class_information = "수업정보";
|
1789
1787
|
var teachers = "교사";
|
1790
1788
|
var lessons = "수업";
|
1789
|
+
var new_test = "새로운 시험";
|
1790
|
+
var manage_saved_tests = "저장된 시험 관리";
|
1791
|
+
var textbook_management = "교과서 관리";
|
1792
|
+
var my_question = "내 질문";
|
1791
1793
|
var update_class = "수업 업데이트";
|
1792
1794
|
var create_class = "수업 만들기";
|
1793
1795
|
var lang_ko = {
|
@@ -1962,7 +1964,7 @@ var lang_ko = {
|
|
1962
1964
|
credentials_invalid: credentials_invalid,
|
1963
1965
|
role_is_invalid: role_is_invalid,
|
1964
1966
|
today: today,
|
1965
|
-
"q&a": "
|
1967
|
+
"q&a": "질문 및 답변",
|
1966
1968
|
user_is_disabled: user_is_disabled,
|
1967
1969
|
cover_image: cover_image,
|
1968
1970
|
notification: notification,
|
@@ -2097,6 +2099,10 @@ var lang_ko = {
|
|
2097
2099
|
class_information: class_information,
|
2098
2100
|
teachers: teachers,
|
2099
2101
|
lessons: lessons,
|
2102
|
+
new_test: new_test,
|
2103
|
+
manage_saved_tests: manage_saved_tests,
|
2104
|
+
textbook_management: textbook_management,
|
2105
|
+
my_question: my_question,
|
2100
2106
|
update_class: update_class,
|
2101
2107
|
create_class: create_class
|
2102
2108
|
};
|
@@ -2455,6 +2461,10 @@ var teachers$1 = "Teachers";
|
|
2455
2461
|
var lessons$1 = "Lessons";
|
2456
2462
|
var update_class$1 = "Update class";
|
2457
2463
|
var create_class$1 = "Create class";
|
2464
|
+
var new_test$1 = "New Test";
|
2465
|
+
var manage_saved_tests$1 = "Manage saved tests";
|
2466
|
+
var textbook_management$1 = "Textbook Management";
|
2467
|
+
var my_question$1 = "My Question";
|
2458
2468
|
var lang_en = {
|
2459
2469
|
problem_solving: problem_solving$1,
|
2460
2470
|
my_story: my_story$1,
|
@@ -2664,7 +2674,7 @@ var lang_en = {
|
|
2664
2674
|
credentials_invalid: credentials_invalid$1,
|
2665
2675
|
role_is_invalid: role_is_invalid$1,
|
2666
2676
|
today: today$1,
|
2667
|
-
"q&a": "
|
2677
|
+
"q&a": "Questions and Answers",
|
2668
2678
|
user_is_disabled: user_is_disabled$1,
|
2669
2679
|
cover_image: cover_image$1,
|
2670
2680
|
notification: notification$1,
|
@@ -2798,7 +2808,11 @@ var lang_en = {
|
|
2798
2808
|
teachers: teachers$1,
|
2799
2809
|
lessons: lessons$1,
|
2800
2810
|
update_class: update_class$1,
|
2801
|
-
create_class: create_class$1
|
2811
|
+
create_class: create_class$1,
|
2812
|
+
new_test: new_test$1,
|
2813
|
+
manage_saved_tests: manage_saved_tests$1,
|
2814
|
+
textbook_management: textbook_management$1,
|
2815
|
+
my_question: my_question$1
|
2802
2816
|
};
|
2803
2817
|
|
2804
2818
|
i18n.use(initReactI18next).init({
|
@@ -3126,7 +3140,7 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
3126
3140
|
sx: {
|
3127
3141
|
fontSize: 14,
|
3128
3142
|
fontWeight: 600,
|
3129
|
-
color:
|
3143
|
+
color: styles.dark,
|
3130
3144
|
minWidth: 150
|
3131
3145
|
}
|
3132
3146
|
}, (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.name) || t(role === Role.Admin ? "switch_academy_admin" : "switch_academy")), React.createElement("div", {
|
@@ -3214,7 +3228,7 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3214
3228
|
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3215
3229
|
var DropdownIndicator = function DropdownIndicator(props) {
|
3216
3230
|
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3217
|
-
color:
|
3231
|
+
color: styles.darker
|
3218
3232
|
}));
|
3219
3233
|
};
|
3220
3234
|
var CustomOption = function CustomOption(props) {
|
@@ -3226,26 +3240,26 @@ var CustomOption = function CustomOption(props) {
|
|
3226
3240
|
}, props.data.label));
|
3227
3241
|
};
|
3228
3242
|
var customStyles = {
|
3229
|
-
control: function control(baseStyles
|
3243
|
+
control: function control(baseStyles) {
|
3230
3244
|
return _extends({}, baseStyles, {
|
3231
3245
|
fontSize: "14px",
|
3232
3246
|
fontWeight: 700,
|
3233
|
-
color:
|
3234
|
-
borderColor:
|
3247
|
+
color: styles.darker,
|
3248
|
+
borderColor: styles.less_dark
|
3235
3249
|
});
|
3236
3250
|
},
|
3237
3251
|
input: function input(baseStyles, _) {
|
3238
3252
|
return _extends({}, baseStyles, {
|
3239
3253
|
fontSize: "14px",
|
3240
3254
|
fontWeight: 700,
|
3241
|
-
color:
|
3255
|
+
color: styles.darker
|
3242
3256
|
});
|
3243
3257
|
},
|
3244
3258
|
singleValue: function singleValue(baseStyles) {
|
3245
3259
|
return _extends({}, baseStyles, {
|
3246
3260
|
fontSize: "14px",
|
3247
3261
|
fontWeight: 700,
|
3248
|
-
color:
|
3262
|
+
color: styles.darker
|
3249
3263
|
});
|
3250
3264
|
}
|
3251
3265
|
};
|
@@ -3301,10 +3315,10 @@ var iconPersonNoActive = function iconPersonNoActive(_ref) {
|
|
3301
3315
|
xmlns: "http://www.w3.org/2000/svg"
|
3302
3316
|
}, React.createElement("path", {
|
3303
3317
|
d: "M10.395 2.01813C9.78691 1.36156 8.93753 1 8.00003 1C7.05753 1 6.20534 1.35937 5.60003 2.01187C4.98815 2.67156 4.69003 3.56813 4.76003 4.53625C4.89878 6.44625 6.35222 8 8.00003 8C9.64784 8 11.0988 6.44656 11.2397 4.53687C11.3107 3.5775 11.0107 2.68281 10.395 2.01813Z",
|
3304
|
-
fill:
|
3318
|
+
fill: color
|
3305
3319
|
}), React.createElement("path", {
|
3306
3320
|
d: "M13.5001 15H2.50006C2.35608 15.0019 2.21349 14.9716 2.08267 14.9115C1.95185 14.8513 1.83609 14.7627 1.74381 14.6522C1.54068 14.4094 1.45881 14.0778 1.51943 13.7425C1.78318 12.2794 2.60631 11.0503 3.90006 10.1875C5.04943 9.42156 6.50537 9 8.00006 9C9.49474 9 10.9507 9.42188 12.1001 10.1875C13.3938 11.05 14.2169 12.2791 14.4807 13.7422C14.5413 14.0775 14.4594 14.4091 14.2563 14.6519C14.1641 14.7625 14.0483 14.8511 13.9175 14.9113C13.7867 14.9715 13.6441 15.0018 13.5001 15Z",
|
3307
|
-
fill:
|
3321
|
+
fill: color
|
3308
3322
|
}));
|
3309
3323
|
};
|
3310
3324
|
|
@@ -3369,6 +3383,8 @@ var useTooltip = function useTooltip() {
|
|
3369
3383
|
var ContentTooltip = function ContentTooltip(_ref) {
|
3370
3384
|
var toggleConfirmDialog = _ref.toggleConfirmDialog,
|
3371
3385
|
toggleUpdateDialog = _ref.toggleUpdateDialog;
|
3386
|
+
var _useTranslation = useTranslation(),
|
3387
|
+
t = _useTranslation.t;
|
3372
3388
|
return React.createElement(Stack, null, React.createElement(Stack, {
|
3373
3389
|
display: "flex",
|
3374
3390
|
gap: "4px",
|
@@ -3382,9 +3398,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3382
3398
|
sx: {
|
3383
3399
|
fontWeight: 700,
|
3384
3400
|
fontSize: "14px",
|
3385
|
-
color:
|
3401
|
+
color: styles.dark
|
3386
3402
|
}
|
3387
|
-
}, "
|
3403
|
+
}, t("edit"))), React.createElement(Stack, {
|
3388
3404
|
border: "1px solid #E4E7EC"
|
3389
3405
|
}), React.createElement("div", {
|
3390
3406
|
style: {
|
@@ -3395,9 +3411,9 @@ var ContentTooltip = function ContentTooltip(_ref) {
|
|
3395
3411
|
sx: {
|
3396
3412
|
fontWeight: 700,
|
3397
3413
|
fontSize: "14px",
|
3398
|
-
color:
|
3414
|
+
color: styles.dark
|
3399
3415
|
}
|
3400
|
-
}, "
|
3416
|
+
}, t("delete")))));
|
3401
3417
|
};
|
3402
3418
|
|
3403
3419
|
var ChatRightItem = function ChatRightItem(_ref) {
|
@@ -3440,7 +3456,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3440
3456
|
fontSize: 14,
|
3441
3457
|
padding: "4px",
|
3442
3458
|
lineHeight: "16.71px",
|
3443
|
-
color:
|
3459
|
+
color: styles.darker
|
3444
3460
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)), React.createElement(Stack, {
|
3445
3461
|
display: "flex",
|
3446
3462
|
flexDirection: "row",
|
@@ -3476,7 +3492,7 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3476
3492
|
}, React.createElement(iconMore, null))))), contentType ? React.createElement(Stack, {
|
3477
3493
|
borderRadius: "6px",
|
3478
3494
|
padding: "12px",
|
3479
|
-
bgcolor:
|
3495
|
+
bgcolor: styles.darker
|
3480
3496
|
}, React.createElement("img", {
|
3481
3497
|
onClick: toggleImageDialog,
|
3482
3498
|
src: content,
|
@@ -3485,11 +3501,12 @@ var ChatRightItem = function ChatRightItem(_ref) {
|
|
3485
3501
|
position: "relative",
|
3486
3502
|
objectFit: "contain"
|
3487
3503
|
}
|
3488
|
-
})) : React.createElement(
|
3504
|
+
})) : React.createElement(Stack, {
|
3489
3505
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-receiver"],
|
3490
|
-
|
3506
|
+
sx: {
|
3491
3507
|
"float": "inline-end"
|
3492
|
-
}
|
3508
|
+
},
|
3509
|
+
bgcolor: styles.darker
|
3493
3510
|
}, React.createElement(Typography, {
|
3494
3511
|
fontWeight: 500,
|
3495
3512
|
fontSize: "14px",
|
@@ -3529,22 +3546,22 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3529
3546
|
fontWeight: 500,
|
3530
3547
|
fontSize: 14,
|
3531
3548
|
lineHeight: "16.71px",
|
3532
|
-
color:
|
3549
|
+
color: styles.darker
|
3533
3550
|
}, t("counselor")), React.createElement(Typography, {
|
3534
3551
|
fontWeight: 700,
|
3535
3552
|
fontSize: 14,
|
3536
3553
|
lineHeight: "16.71px",
|
3537
|
-
color:
|
3554
|
+
color: styles.darker
|
3538
3555
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName)) : React.createElement(Fragment$1, null, React.createElement(Typography, {
|
3539
3556
|
fontWeight: 700,
|
3540
3557
|
fontSize: 14,
|
3541
3558
|
lineHeight: "16.71px",
|
3542
|
-
color:
|
3559
|
+
color: styles.darker
|
3543
3560
|
}, sender === null || sender === void 0 ? void 0 : sender.fullName), React.createElement(Typography, {
|
3544
3561
|
fontWeight: 500,
|
3545
3562
|
fontSize: 14,
|
3546
3563
|
lineHeight: "16.71px",
|
3547
|
-
color:
|
3564
|
+
color: styles.darker
|
3548
3565
|
}, t("student")))), React.createElement(Box, {
|
3549
3566
|
padding: "4px 0px"
|
3550
3567
|
}), React.createElement(Stack, {
|
@@ -3554,7 +3571,7 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3554
3571
|
}, contentType ? React.createElement(Stack, {
|
3555
3572
|
borderRadius: "6px",
|
3556
3573
|
padding: "12px",
|
3557
|
-
bgcolor:
|
3574
|
+
bgcolor: styles.darker
|
3558
3575
|
}, React.createElement("img", {
|
3559
3576
|
onClick: toggleImageDialog,
|
3560
3577
|
src: content,
|
@@ -3566,10 +3583,10 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
|
|
3566
3583
|
})) : React.createElement("div", {
|
3567
3584
|
className: styles$1["wrap-content"] + " " + styles$1["content-chat-sender"]
|
3568
3585
|
}, React.createElement(Typography, {
|
3569
|
-
fontWeight:
|
3586
|
+
fontWeight: 400,
|
3570
3587
|
fontSize: "14px",
|
3571
3588
|
lineHeight: "16.71px",
|
3572
|
-
color: "#
|
3589
|
+
color: "#5D5D5B"
|
3573
3590
|
}, content)))));
|
3574
3591
|
};
|
3575
3592
|
|
@@ -3795,6 +3812,9 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3795
3812
|
padding: '12px'
|
3796
3813
|
}
|
3797
3814
|
}, React.createElement(Button, {
|
3815
|
+
sx: {
|
3816
|
+
color: styles.dark
|
3817
|
+
},
|
3798
3818
|
className: styles$1['btn-cancel'],
|
3799
3819
|
onClick: onClose
|
3800
3820
|
}, React.createElement(Typography, {
|
@@ -3802,6 +3822,10 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3802
3822
|
fontSize: '14px',
|
3803
3823
|
lineHeight: '16.71px'
|
3804
3824
|
}, "\uCDE8\uC18C")), React.createElement(Button, {
|
3825
|
+
variant: 'contained',
|
3826
|
+
sx: {
|
3827
|
+
bgcolor: styles.dark
|
3828
|
+
},
|
3805
3829
|
className: styles$1['btn-register'],
|
3806
3830
|
type: "submit"
|
3807
3831
|
}, React.createElement(Typography, {
|
@@ -3828,16 +3852,14 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3828
3852
|
sx: {
|
3829
3853
|
display: "flex",
|
3830
3854
|
gap: "8px",
|
3831
|
-
padding: "12px !important"
|
3832
|
-
borderColor: "#5458D5"
|
3855
|
+
padding: "12px !important"
|
3833
3856
|
}
|
3834
|
-
}, React.createElement(iconPlusCircle,
|
3857
|
+
}, React.createElement(iconPlusCircle, {
|
3858
|
+
color: styles.dark
|
3859
|
+
}), React.createElement(Typography, {
|
3835
3860
|
fontWeight: 700,
|
3836
3861
|
fontSize: "13px",
|
3837
|
-
lineHeight: "15.51px"
|
3838
|
-
sx: {
|
3839
|
-
color: "#5458D5"
|
3840
|
-
}
|
3862
|
+
lineHeight: "15.51px"
|
3841
3863
|
}, t("attachment")), React.createElement("input", {
|
3842
3864
|
type: "file",
|
3843
3865
|
hidden: true,
|
@@ -3854,13 +3876,17 @@ var UpdateMessageDialog = function UpdateMessageDialog(_ref) {
|
|
3854
3876
|
className: styles$1['btn-cancel'],
|
3855
3877
|
onClick: onClose
|
3856
3878
|
}, React.createElement(Typography, {
|
3879
|
+
sx: {
|
3880
|
+
color: styles.dark
|
3881
|
+
},
|
3857
3882
|
fontWeight: 700,
|
3858
3883
|
fontSize: '14px',
|
3859
3884
|
lineHeight: '16.71px'
|
3860
3885
|
}, "\uCDE8\uC18C")), React.createElement(Button, {
|
3886
|
+
variant: "contained",
|
3861
3887
|
className: styles$1['btn-register'],
|
3862
3888
|
sx: {
|
3863
|
-
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? "
|
3889
|
+
bgcolor: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content) ? styles.light + " !important" : styles.dark
|
3864
3890
|
},
|
3865
3891
|
disabled: !(selectedFile !== null && selectedFile !== void 0 && selectedFile.content),
|
3866
3892
|
onClick: function onClick() {
|
@@ -4094,10 +4120,11 @@ var InputChat = function InputChat(_ref) {
|
|
4094
4120
|
gap: "16px"
|
4095
4121
|
}, React.createElement(Button, {
|
4096
4122
|
variant: "contained",
|
4123
|
+
fullWidth: true,
|
4124
|
+
className: styles$1["btn-send"],
|
4097
4125
|
sx: {
|
4098
|
-
bgcolor: isCompleted ? "
|
4126
|
+
bgcolor: isCompleted ? styles.light + " !important" : styles.dark
|
4099
4127
|
},
|
4100
|
-
className: styles$1["btn-send"],
|
4101
4128
|
disabled: isCompleted,
|
4102
4129
|
onClick: handleSubmit
|
4103
4130
|
}, React.createElement(iconSendMessage, null), React.createElement(Typography, {
|
@@ -4113,15 +4140,17 @@ var InputChat = function InputChat(_ref) {
|
|
4113
4140
|
display: "flex",
|
4114
4141
|
gap: "8px",
|
4115
4142
|
padding: "12px !important",
|
4116
|
-
borderColor: isCompleted ? "transparent" :
|
4143
|
+
borderColor: isCompleted ? "transparent" : styles.less_dark,
|
4117
4144
|
borderWidth: "1px"
|
4118
4145
|
}
|
4119
|
-
}, React.createElement(iconPlusCircle,
|
4146
|
+
}, React.createElement(iconPlusCircle, {
|
4147
|
+
color: styles.dark
|
4148
|
+
}), React.createElement(Typography, {
|
4120
4149
|
fontWeight: 700,
|
4121
4150
|
fontSize: "13px",
|
4122
4151
|
lineHeight: "15.51px",
|
4123
4152
|
sx: {
|
4124
|
-
color:
|
4153
|
+
color: styles.dark
|
4125
4154
|
}
|
4126
4155
|
}, t("attachment")), React.createElement("input", {
|
4127
4156
|
type: "file",
|
@@ -4147,7 +4176,7 @@ var iconChecked = function iconChecked(_ref) {
|
|
4147
4176
|
xmlns: "http://www.w3.org/2000/svg"
|
4148
4177
|
}, React.createElement("path", {
|
4149
4178
|
d: "M8 1.5C4.41594 1.5 1.5 4.41594 1.5 8C1.5 11.5841 4.41594 14.5 8 14.5C11.5841 14.5 14.5 11.5841 14.5 8C14.5 4.41594 11.5841 1.5 8 1.5ZM11.3828 5.82156L7.18281 10.8216C7.13674 10.8764 7.07941 10.9208 7.01471 10.9516C6.95001 10.9823 6.87945 10.9989 6.80781 11H6.79938C6.72929 11 6.66 10.9852 6.59599 10.9567C6.53198 10.9282 6.47468 10.8865 6.42781 10.8344L4.62781 8.83438C4.5821 8.78589 4.54654 8.72876 4.52322 8.66633C4.4999 8.60391 4.4893 8.53745 4.49203 8.47087C4.49477 8.40429 4.51078 8.33892 4.53914 8.27862C4.56749 8.21831 4.60761 8.16429 4.65715 8.11971C4.70668 8.07514 4.76463 8.04091 4.82757 8.01905C4.89052 7.99719 4.95721 7.98813 5.02371 7.9924C5.09021 7.99668 5.15518 8.01421 5.21481 8.04396C5.27444 8.0737 5.32752 8.11507 5.37094 8.16562L6.78625 9.73812L10.6172 5.17844C10.7031 5.07909 10.8247 5.01754 10.9556 5.00711C11.0866 4.99668 11.2164 5.03819 11.317 5.12268C11.4175 5.20717 11.4808 5.32784 11.4931 5.45862C11.5055 5.5894 11.4658 5.71977 11.3828 5.82156Z",
|
4150
|
-
fill:
|
4179
|
+
fill: color
|
4151
4180
|
}));
|
4152
4181
|
};
|
4153
4182
|
|
@@ -4232,20 +4261,22 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4232
4261
|
alignItems: "center",
|
4233
4262
|
flexDirection: "row",
|
4234
4263
|
gap: "8px"
|
4235
|
-
}, React.createElement(iconPersonNoActive,
|
4264
|
+
}, React.createElement(iconPersonNoActive, {
|
4265
|
+
color: styles.darker
|
4266
|
+
}), isTabletUp && React.createElement(Typography, {
|
4236
4267
|
fontWeight: 500,
|
4237
4268
|
fontSize: "14px",
|
4238
4269
|
lineHeight: "16.71px",
|
4239
|
-
color:
|
4270
|
+
color: styles.darker
|
4240
4271
|
}, t("counselor"))), React.createElement(Typography, {
|
4241
4272
|
fontWeight: 700,
|
4242
4273
|
fontSize: "14px",
|
4243
4274
|
lineHeight: "16.71px",
|
4244
|
-
color:
|
4275
|
+
color: styles.darker
|
4245
4276
|
}, ellipsisText(teacherName || "", 15))), !!examTitle && React.createElement(Box, {
|
4246
4277
|
display: "flex",
|
4247
4278
|
alignItems: "start",
|
4248
|
-
color:
|
4279
|
+
color: styles.darker,
|
4249
4280
|
gap: "6px",
|
4250
4281
|
flexDirection: "column"
|
4251
4282
|
}, React.createElement(Typography, {
|
@@ -4276,7 +4307,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4276
4307
|
fontWeight: 700,
|
4277
4308
|
fontSize: "12px",
|
4278
4309
|
lineHeight: "14.32px",
|
4279
|
-
color:
|
4310
|
+
color: styles.darker
|
4280
4311
|
}, questionOrder != undefined ? t("problem_number_question", {
|
4281
4312
|
number: questionOrder + 1
|
4282
4313
|
}) : courseId ? t("class_inquiry") : t("exam_inquiry")) : React.createElement(Stack, {
|
@@ -4287,7 +4318,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4287
4318
|
fontWeight: 700,
|
4288
4319
|
fontSize: "12px",
|
4289
4320
|
lineHeight: "14.32px",
|
4290
|
-
color:
|
4321
|
+
color: styles.darker
|
4291
4322
|
}, t("points", {
|
4292
4323
|
number: score
|
4293
4324
|
})), React.createElement(Typography, {
|
@@ -4311,12 +4342,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4311
4342
|
fontWeight: 600,
|
4312
4343
|
fontSize: "11px",
|
4313
4344
|
lineHeight: "14.32px",
|
4314
|
-
color:
|
4345
|
+
color: styles.darker
|
4315
4346
|
}, t("consultation_category")), React.createElement(Typography, {
|
4316
4347
|
fontWeight: 700,
|
4317
4348
|
fontSize: "14px",
|
4318
4349
|
lineHeight: "14.32px",
|
4319
|
-
color:
|
4350
|
+
color: styles.darker
|
4320
4351
|
}, t("" + category))))) : React.createElement(Grid, {
|
4321
4352
|
item: true,
|
4322
4353
|
xs: 12,
|
@@ -4331,16 +4362,19 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4331
4362
|
display: "flex",
|
4332
4363
|
alignItems: "center",
|
4333
4364
|
gap: "24px",
|
4334
|
-
color:
|
4365
|
+
color: styles.darker
|
4335
4366
|
}, isTabletUp && React.createElement(Box, {
|
4336
4367
|
display: "flex",
|
4337
4368
|
justifyContent: "space-between",
|
4338
4369
|
alignItems: "center",
|
4339
4370
|
gap: "8px"
|
4340
|
-
}, React.createElement(iconPersonNoActive,
|
4371
|
+
}, React.createElement(iconPersonNoActive, {
|
4372
|
+
color: styles.darker
|
4373
|
+
}), React.createElement(Typography, {
|
4341
4374
|
fontWeight: 500,
|
4342
4375
|
fontSize: "14px",
|
4343
|
-
lineHeight: "16.71px"
|
4376
|
+
lineHeight: "16.71px",
|
4377
|
+
color: styles.darker
|
4344
4378
|
}, t("student"))), React.createElement(Typography, {
|
4345
4379
|
fontWeight: 700,
|
4346
4380
|
fontSize: "14px",
|
@@ -4349,7 +4383,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4349
4383
|
display: "flex",
|
4350
4384
|
alignItems: "center",
|
4351
4385
|
gap: "24px",
|
4352
|
-
color:
|
4386
|
+
color: styles.darker
|
4353
4387
|
}, examTitle ? React.createElement(Typography, {
|
4354
4388
|
fontWeight: 600,
|
4355
4389
|
fontSize: "12px",
|
@@ -4363,12 +4397,12 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4363
4397
|
fontWeight: 600,
|
4364
4398
|
fontSize: "11px",
|
4365
4399
|
lineHeight: "14.32px",
|
4366
|
-
color:
|
4400
|
+
color: styles.darker
|
4367
4401
|
}, t("consultation_category")), React.createElement(Typography, {
|
4368
4402
|
fontWeight: 700,
|
4369
4403
|
fontSize: "14px",
|
4370
4404
|
lineHeight: "14.32px",
|
4371
|
-
color:
|
4405
|
+
color: styles.darker
|
4372
4406
|
}, t("" + category))), questionOrder != undefined && React.createElement(Typography, {
|
4373
4407
|
fontWeight: 700,
|
4374
4408
|
fontSize: "14px",
|
@@ -4382,13 +4416,16 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4382
4416
|
display: "flex",
|
4383
4417
|
alignItems: "center",
|
4384
4418
|
gap: "8px",
|
4385
|
-
border: "1px solid
|
4419
|
+
border: "1px solid",
|
4420
|
+
borderColor: styles.less_dark,
|
4386
4421
|
borderRadius: "6px"
|
4387
|
-
}, React.createElement(iconChecked,
|
4422
|
+
}, React.createElement(iconChecked, {
|
4423
|
+
color: styles.darker
|
4424
|
+
}), React.createElement(Typography, {
|
4388
4425
|
fontWeight: 700,
|
4389
4426
|
fontSize: "13px",
|
4390
4427
|
lineHeight: "15.51px",
|
4391
|
-
color:
|
4428
|
+
color: styles.dark
|
4392
4429
|
}, "\uC644\uB8CC \uCC98\uB9AC"))) : React.createElement("div", null));
|
4393
4430
|
};
|
4394
4431
|
return React.createElement(Grid, {
|
@@ -4403,7 +4440,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4403
4440
|
}, React.createElement(Typography, {
|
4404
4441
|
fontWeight: 800,
|
4405
4442
|
fontSize: "20px",
|
4406
|
-
color:
|
4443
|
+
color: styles.darker,
|
4407
4444
|
lineHeight: "23.87px"
|
4408
4445
|
}, t("question_and_answer"))), renderHeader(), React.createElement(ConfirmDialog, {
|
4409
4446
|
open: openDialog,
|
@@ -5073,7 +5110,7 @@ var InputText = function InputText(props) {
|
|
5073
5110
|
}, props));
|
5074
5111
|
};
|
5075
5112
|
|
5076
|
-
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question
|
5113
|
+
var styles$2 = {"question":"_2uc_W","question-article":"_2p7kY","question-title":"_2tHmc","question-label":"_26ATj","question-input":"_3R8PR","question-btn":"_1VZac"};
|
5077
5114
|
|
5078
5115
|
var SCORE_OPTIONS = Array.from({
|
5079
5116
|
length: 10
|
@@ -5118,13 +5155,49 @@ var ScoreSelector = function ScoreSelector(_ref) {
|
|
5118
5155
|
});
|
5119
5156
|
};
|
5120
5157
|
|
5121
|
-
var
|
5122
|
-
var
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5126
|
-
|
5127
|
-
|
5158
|
+
var BpIcon = styled('span')(function (_ref) {
|
5159
|
+
var theme = _ref.theme;
|
5160
|
+
return {
|
5161
|
+
borderRadius: '50%',
|
5162
|
+
width: 16,
|
5163
|
+
height: 16,
|
5164
|
+
boxShadow: theme.palette.mode === 'dark' ? '0 0 0 1px rgb(16 22 26 / 40%)' : 'inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)',
|
5165
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#394b59' : '#f5f8fa',
|
5166
|
+
backgroundImage: theme.palette.mode === 'dark' ? 'linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))' : 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',
|
5167
|
+
'.Mui-focusVisible &': {
|
5168
|
+
outline: '2px auto rgba(19,124,189,.6)',
|
5169
|
+
outlineOffset: 2
|
5170
|
+
},
|
5171
|
+
'input:hover ~ &': {
|
5172
|
+
backgroundColor: theme.palette.mode === 'dark' ? '#30404d' : '#ebf1f5'
|
5173
|
+
},
|
5174
|
+
'input:disabled ~ &': {
|
5175
|
+
boxShadow: 'none',
|
5176
|
+
background: theme.palette.mode === 'dark' ? 'rgba(57,75,89,.5)' : 'rgba(206,217,224,.5)'
|
5177
|
+
}
|
5178
|
+
};
|
5179
|
+
});
|
5180
|
+
var BpCheckedIcon = styled(BpIcon)({
|
5181
|
+
backgroundColor: styles.darker,
|
5182
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
5183
|
+
'&::before': {
|
5184
|
+
display: 'block',
|
5185
|
+
width: 16,
|
5186
|
+
height: 16,
|
5187
|
+
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
5188
|
+
content: '""'
|
5189
|
+
},
|
5190
|
+
'input:hover ~ &': {
|
5191
|
+
backgroundColor: styles.dark
|
5192
|
+
}
|
5193
|
+
});
|
5194
|
+
var QuestionView = function QuestionView(_ref2) {
|
5195
|
+
var index = _ref2.index,
|
5196
|
+
question = _ref2.question,
|
5197
|
+
answerCount = _ref2.answerCount,
|
5198
|
+
isDisabled = _ref2.isDisabled,
|
5199
|
+
onChangeCorrectAnswers = _ref2.onChangeCorrectAnswers,
|
5200
|
+
onChangeScoreAnswer = _ref2.onChangeScoreAnswer;
|
5128
5201
|
var _useTranslation = useTranslation(),
|
5129
5202
|
t = _useTranslation.t;
|
5130
5203
|
var handleChangeCorrectAnswer = function handleChangeCorrectAnswer(e) {
|
@@ -5160,7 +5233,9 @@ var QuestionView = function QuestionView(_ref) {
|
|
5160
5233
|
onChange: handleChangeCorrectAnswer,
|
5161
5234
|
disabled: isDisabled,
|
5162
5235
|
control: React.createElement(Radio, {
|
5163
|
-
size: "small"
|
5236
|
+
size: "small",
|
5237
|
+
checkedIcon: React.createElement(BpCheckedIcon, null),
|
5238
|
+
icon: React.createElement(BpIcon, null)
|
5164
5239
|
}),
|
5165
5240
|
label: t("number_question", {
|
5166
5241
|
number: i
|
@@ -5402,7 +5477,7 @@ var ArticleGroupView = function ArticleGroupView(_ref) {
|
|
5402
5477
|
}, React.createElement(PiDotsNineLight, {
|
5403
5478
|
size: 18
|
5404
5479
|
})), React.createElement("div", {
|
5405
|
-
className: "px-
|
5480
|
+
className: "px-2"
|
5406
5481
|
}, React.createElement("p", {
|
5407
5482
|
className: "mb-0 " + styles$2["question-article"]
|
5408
5483
|
}, t("article_number")), React.createElement("p", {
|
@@ -7080,7 +7155,7 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7080
7155
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7081
7156
|
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7082
7157
|
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
7083
|
-
color:
|
7158
|
+
color: styles.darker
|
7084
7159
|
}));
|
7085
7160
|
};
|
7086
7161
|
var CustomOption$1 = function CustomOption(props) {
|
@@ -7096,22 +7171,22 @@ var customStyles$1 = {
|
|
7096
7171
|
return _extends({}, baseStyles, {
|
7097
7172
|
fontSize: "14px",
|
7098
7173
|
fontWeight: 700,
|
7099
|
-
color:
|
7100
|
-
borderColor: state.isFocused || state.hasValue ?
|
7174
|
+
color: styles.darker,
|
7175
|
+
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7101
7176
|
});
|
7102
7177
|
},
|
7103
7178
|
input: function input(baseStyles, _) {
|
7104
7179
|
return _extends({}, baseStyles, {
|
7105
7180
|
fontSize: "14px",
|
7106
7181
|
fontWeight: 700,
|
7107
|
-
color:
|
7182
|
+
color: styles.darker
|
7108
7183
|
});
|
7109
7184
|
},
|
7110
7185
|
singleValue: function singleValue(baseStyles) {
|
7111
7186
|
return _extends({}, baseStyles, {
|
7112
7187
|
fontSize: "14px",
|
7113
7188
|
fontWeight: 700,
|
7114
|
-
color:
|
7189
|
+
color: styles.darker
|
7115
7190
|
});
|
7116
7191
|
}
|
7117
7192
|
};
|
@@ -7588,9 +7663,14 @@ var ExamDetailView = function ExamDetailView(_ref) {
|
|
7588
7663
|
}), React.createElement(Grid, {
|
7589
7664
|
item: true,
|
7590
7665
|
xs: 12
|
7591
|
-
}, React.createElement(
|
7666
|
+
}, React.createElement(Button, {
|
7667
|
+
variant: 'outlined',
|
7668
|
+
sx: {
|
7669
|
+
color: styles.dark,
|
7670
|
+
borderColor: styles.dark
|
7671
|
+
},
|
7592
7672
|
disabled: isDisabled,
|
7593
|
-
className:
|
7673
|
+
className: "w-100 d-flex justify-content-center align-items-center " + styles$2["question-btn"] + " mt-3",
|
7594
7674
|
onClick: handleAddArticle
|
7595
7675
|
}, React.createElement(FaPlusCircle, {
|
7596
7676
|
className: "me-2"
|
@@ -7619,13 +7699,11 @@ var CreateExamDrawer = function CreateExamDrawer(props) {
|
|
7619
7699
|
}
|
7620
7700
|
}, React.createElement("div", {
|
7621
7701
|
className: styles$3["drawer-header"] + " d-flex justify-content-between align-items-center"
|
7622
|
-
}, React.createElement(
|
7623
|
-
|
7624
|
-
|
7702
|
+
}, React.createElement(Button, {
|
7703
|
+
variant: "outlined",
|
7704
|
+
sx: {
|
7625
7705
|
cursor: "pointer",
|
7626
7706
|
padding: "0.5rem 1rem",
|
7627
|
-
border: "1px solid #5458D5",
|
7628
|
-
backgroundColor: "white",
|
7629
7707
|
justifyContent: "center",
|
7630
7708
|
alignItems: "center",
|
7631
7709
|
borderRadius: "6px"
|
@@ -7778,10 +7856,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7778
7856
|
className: "d-flex justify-content-end"
|
7779
7857
|
}, React.createElement(Button, {
|
7780
7858
|
variant: "outlined",
|
7781
|
-
sx: {
|
7782
|
-
borderColor: "#5458D5",
|
7783
|
-
color: "#5458D5"
|
7784
|
-
},
|
7785
7859
|
onClick: function onClick() {
|
7786
7860
|
return handleOpenCreateExamDialog();
|
7787
7861
|
},
|
@@ -7792,7 +7866,6 @@ var TextbookViewDetail = function TextbookViewDetail(props) {
|
|
7792
7866
|
}, React.createElement(Typography, null, t("create_new_exam"))), !!id && React.createElement(Button, {
|
7793
7867
|
className: "mx-1",
|
7794
7868
|
variant: "contained",
|
7795
|
-
color: "primary",
|
7796
7869
|
startIcon: React.createElement(FaPlus, {
|
7797
7870
|
size: 12
|
7798
7871
|
}),
|
@@ -9198,10 +9271,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9198
9271
|
}
|
9199
9272
|
var query = new URLSearchParams(searchParam);
|
9200
9273
|
var dispatch = useDispatch();
|
9201
|
-
var
|
9202
|
-
var _state$common
|
9203
|
-
return
|
9274
|
+
var user = useSelector(function (state) {
|
9275
|
+
var _state$common;
|
9276
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user;
|
9204
9277
|
});
|
9278
|
+
var roles = (user === null || user === void 0 ? void 0 : user.roles) || [];
|
9205
9279
|
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
|
9206
9280
|
var examCode = query.get("examCode") || "";
|
9207
9281
|
var language = useSelector(function (state) {
|
@@ -9209,8 +9283,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9209
9283
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
9210
9284
|
});
|
9211
9285
|
var _useState = useState(),
|
9212
|
-
|
9213
|
-
|
9286
|
+
resultData = _useState[0],
|
9287
|
+
setResultData = _useState[1];
|
9214
9288
|
var _useState2 = useState(),
|
9215
9289
|
effectSize = _useState2[0],
|
9216
9290
|
setEffectSize = _useState2[1];
|
@@ -9226,12 +9300,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9226
9300
|
var _useState6 = useState(0),
|
9227
9301
|
dataChartIndex = _useState6[0],
|
9228
9302
|
setDataChartIndex = _useState6[1];
|
9229
|
-
var _useState7 = useState(
|
9230
|
-
problem1: false,
|
9231
|
-
problem2: false,
|
9232
|
-
problem3: false,
|
9233
|
-
problem4: false
|
9234
|
-
}),
|
9303
|
+
var _useState7 = useState(""),
|
9235
9304
|
openProblem = _useState7[0],
|
9236
9305
|
setOpenProblem = _useState7[1];
|
9237
9306
|
var _useTranslation = useTranslation(),
|
@@ -9246,7 +9315,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9246
9315
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9247
9316
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9248
9317
|
handleChangeTab(0);
|
9249
|
-
|
9318
|
+
setResultData((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9250
9319
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9251
9320
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
9252
9321
|
setTimelyOrderQuestions((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
|
@@ -9258,6 +9327,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9258
9327
|
});
|
9259
9328
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
9260
9329
|
};
|
9330
|
+
if (!examCode) return Promise.resolve();
|
9261
9331
|
dispatch(setLoading(true));
|
9262
9332
|
var _temp3 = _catch(function () {
|
9263
9333
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9281,7 +9351,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9281
9351
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9282
9352
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9283
9353
|
handleChangeTab(0);
|
9284
|
-
|
9354
|
+
setResultData((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9285
9355
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9286
9356
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
9287
9357
|
setTimelyOrderQuestions((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
|
@@ -9293,6 +9363,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9293
9363
|
});
|
9294
9364
|
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
9295
9365
|
};
|
9366
|
+
if (!examCode || !examSessionId || !studentId) return Promise.resolve();
|
9296
9367
|
dispatch(setLoading(true));
|
9297
9368
|
var _temp7 = _catch(function () {
|
9298
9369
|
return Promise.resolve(getCheckStatusExam(examCode)).then(function () {});
|
@@ -9307,19 +9378,28 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9307
9378
|
}
|
9308
9379
|
};
|
9309
9380
|
var setExampleData = function setExampleData() {
|
9310
|
-
|
9381
|
+
setResultData(EXAM_RESULT);
|
9311
9382
|
setLongTimeSpend(LONGTIME_SPEND_QUESTIONS);
|
9312
9383
|
setEffectSize(EFFECT_SIZE_QUESTIONS);
|
9313
9384
|
setTimelyOrderQuestions(TIMELY_ORDER_QUESTIONS);
|
9314
9385
|
setCategoryResponses(CATEGORY_RESPONSES);
|
9315
9386
|
};
|
9387
|
+
var resetData = function resetData() {
|
9388
|
+
setResultData(undefined);
|
9389
|
+
setLongTimeSpend([]);
|
9390
|
+
setEffectSize([]);
|
9391
|
+
setTimelyOrderQuestions([]);
|
9392
|
+
setCategoryResponses([]);
|
9393
|
+
};
|
9316
9394
|
useEffect(function () {
|
9317
9395
|
var getData = function getData() {
|
9396
|
+
resetData();
|
9397
|
+
if (!(user !== null && user !== void 0 && user.email)) return;
|
9318
9398
|
isStudent && getStudentData(examCode);
|
9319
9399
|
!isStudent && getStudentDataByTeacher(code, examSessionId, studentId);
|
9320
9400
|
};
|
9321
9401
|
examCode === "example-code" ? setExampleData() : getData();
|
9322
|
-
}, [examCode, isStudent, code, examSessionId, studentId]);
|
9402
|
+
}, [examCode, isStudent, code, examSessionId, studentId, user === null || user === void 0 ? void 0 : user.email]);
|
9323
9403
|
var handlePrevChart = function handlePrevChart() {
|
9324
9404
|
if (dataChartIndex > 0) {
|
9325
9405
|
setDataChartIndex(dataChartIndex - 1);
|
@@ -9334,16 +9414,16 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9334
9414
|
navigate("/student/my-story/live-main");
|
9335
9415
|
};
|
9336
9416
|
var totalTime = useMemo(function () {
|
9337
|
-
var
|
9338
|
-
if (!(
|
9339
|
-
var totalTime =
|
9417
|
+
var _resultData$questions;
|
9418
|
+
if (!(resultData !== null && resultData !== void 0 && (_resultData$questions = resultData.questions) !== null && _resultData$questions !== void 0 && _resultData$questions.length)) return "0" + t("seconds");
|
9419
|
+
var totalTime = resultData === null || resultData === void 0 ? void 0 : resultData.questions.reduce(function (val, current) {
|
9340
9420
|
return val + Math.round((current === null || current === void 0 ? void 0 : current.duration) || 0);
|
9341
9421
|
}, 0);
|
9342
9422
|
return totalTime < 60 ? "" + totalTime + t("seconds") : t("mins_mins_seconds_seconds", {
|
9343
9423
|
mins: Math.floor(totalTime / 60),
|
9344
9424
|
seconds: totalTime % 60
|
9345
9425
|
});
|
9346
|
-
}, [JSON.stringify(
|
9426
|
+
}, [JSON.stringify(resultData === null || resultData === void 0 ? void 0 : resultData.questions), language]);
|
9347
9427
|
var allChartOptions = useMemo(function () {
|
9348
9428
|
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9349
9429
|
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
@@ -9605,8 +9685,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9605
9685
|
}
|
9606
9686
|
};
|
9607
9687
|
var examTime = useMemo(function () {
|
9608
|
-
return utcToLocalTime(
|
9609
|
-
}, [
|
9688
|
+
return utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, "HH:mm") + " ~ " + utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.finishTime, "HH:mm");
|
9689
|
+
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
9610
9690
|
return {
|
9611
9691
|
examTime: examTime,
|
9612
9692
|
series: series,
|
@@ -9616,7 +9696,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9616
9696
|
dataChartIndex: dataChartIndex,
|
9617
9697
|
totalTime: totalTime,
|
9618
9698
|
isStudent: isStudent,
|
9619
|
-
|
9699
|
+
resultData: resultData,
|
9620
9700
|
effectSize: effectSize,
|
9621
9701
|
longTimeSpend: longTimeSpend,
|
9622
9702
|
timelyOrderQuestions: timelyOrderQuestions,
|
@@ -11090,10 +11170,17 @@ function CreateNewQuestionDialog(_ref) {
|
|
11090
11170
|
className: styles$4['btn-cancel'],
|
11091
11171
|
onClick: toggleCreateQuestion
|
11092
11172
|
}, React.createElement(Typography$1, {
|
11173
|
+
sx: {
|
11174
|
+
color: styles.dark + " !important"
|
11175
|
+
},
|
11093
11176
|
fontWeight: 700,
|
11094
11177
|
fontSize: '14px',
|
11095
11178
|
lineHeight: '16.71px'
|
11096
11179
|
}, "\uCDE8\uC18C")), React.createElement(Button$1, {
|
11180
|
+
variant: 'contained',
|
11181
|
+
sx: {
|
11182
|
+
bgcolor: styles.dark
|
11183
|
+
},
|
11097
11184
|
className: styles$4['btn-register'],
|
11098
11185
|
type: "submit"
|
11099
11186
|
}, React.createElement(Typography$1, {
|
@@ -11220,12 +11307,12 @@ function MyAnswer(_ref) {
|
|
11220
11307
|
return handleOpenChat(e, question === null || question === void 0 ? void 0 : question.id);
|
11221
11308
|
}
|
11222
11309
|
}, React.createElement(iconChat, {
|
11223
|
-
color:
|
11310
|
+
color: styles.gray_700
|
11224
11311
|
})))));
|
11225
11312
|
});
|
11226
11313
|
};
|
11227
11314
|
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
11228
|
-
var chunkedQuestions = _.chunk(questions,
|
11315
|
+
var chunkedQuestions = _.chunk(questions, 10);
|
11229
11316
|
return chunkedQuestions.map(function (i, index) {
|
11230
11317
|
return React.createElement("div", {
|
11231
11318
|
key: index,
|
@@ -11434,7 +11521,7 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11434
11521
|
});
|
11435
11522
|
};
|
11436
11523
|
var renderPrintTableBody = function renderPrintTableBody(effectSize) {
|
11437
|
-
var chunkedEffectSizeQuestions = _.chunk(effectSize,
|
11524
|
+
var chunkedEffectSizeQuestions = _.chunk(effectSize, 10);
|
11438
11525
|
return chunkedEffectSizeQuestions.map(function (i, index) {
|
11439
11526
|
return React.createElement("tbody", {
|
11440
11527
|
key: index,
|
@@ -11566,10 +11653,12 @@ var iconAssignedQuestions = function iconAssignedQuestions(_ref) {
|
|
11566
11653
|
};
|
11567
11654
|
|
11568
11655
|
var TrickyProblem = function TrickyProblem(_ref) {
|
11569
|
-
var
|
11656
|
+
var keyOpen = _ref.keyOpen,
|
11657
|
+
data = _ref.data,
|
11570
11658
|
openProblem = _ref.openProblem,
|
11571
11659
|
changeOpen = _ref.changeOpen,
|
11572
11660
|
isPrint = _ref.isPrint;
|
11661
|
+
var isOpen = openProblem === keyOpen;
|
11573
11662
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11574
11663
|
return i.isStar && !i.isCorrect;
|
11575
11664
|
});
|
@@ -11633,28 +11722,28 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11633
11722
|
return React.createElement("div", {
|
11634
11723
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11635
11724
|
}, React.createElement("div", {
|
11636
|
-
className: (!
|
11725
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11637
11726
|
onClick: function onClick() {
|
11638
|
-
return changeOpen(
|
11639
|
-
problem1: !openProblem.problem1
|
11640
|
-
}));
|
11727
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11641
11728
|
}
|
11642
11729
|
}, React.createElement(Typography, {
|
11643
11730
|
sx: {
|
11644
|
-
color: !
|
11731
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11645
11732
|
fontSize: "14px",
|
11646
11733
|
fontWeight: 700
|
11647
11734
|
}
|
11648
|
-
}, "\uAE4C\uB2E4\uB85C\uC6E0\uB358 \uBB38\uC81C"),
|
11735
|
+
}, "\uAE4C\uB2E4\uB85C\uC6E0\uB358 \uBB38\uC81C"), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, isPrint ? renderPrintProblems() : renderProblems()));
|
11649
11736
|
};
|
11650
11737
|
|
11651
11738
|
var ProtractedProblem = function ProtractedProblem(_ref) {
|
11652
|
-
var
|
11739
|
+
var keyOpen = _ref.keyOpen,
|
11740
|
+
data = _ref.data,
|
11653
11741
|
openProblem = _ref.openProblem,
|
11654
11742
|
changeOpen = _ref.changeOpen,
|
11655
11743
|
isPrint = _ref.isPrint;
|
11656
11744
|
var _useTranslation = useTranslation(),
|
11657
11745
|
t = _useTranslation.t;
|
11746
|
+
var isOpen = openProblem === keyOpen;
|
11658
11747
|
var renderQuestions = function renderQuestions(data) {
|
11659
11748
|
return data.map(function (item) {
|
11660
11749
|
return React.createElement("div", {
|
@@ -11691,19 +11780,17 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11691
11780
|
return React.createElement("div", {
|
11692
11781
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11693
11782
|
}, React.createElement("div", {
|
11694
|
-
className: (!
|
11783
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11695
11784
|
onClick: function onClick() {
|
11696
|
-
return changeOpen(
|
11697
|
-
problem2: !openProblem.problem2
|
11698
|
-
}));
|
11785
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11699
11786
|
}
|
11700
11787
|
}, React.createElement(Typography, {
|
11701
11788
|
sx: {
|
11702
|
-
color: !
|
11789
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11703
11790
|
fontSize: "14px",
|
11704
11791
|
fontWeight: 700
|
11705
11792
|
}
|
11706
|
-
}, "\uC2DC\uAC04\uC774 \uC624\uB798 \uAC78\uB9B0 \uBB38\uC81C"),
|
11793
|
+
}, "\uC2DC\uAC04\uC774 \uC624\uB798 \uAC78\uB9B0 \uBB38\uC81C"), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11707
11794
|
className: styles$4["wrapperContent"]
|
11708
11795
|
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React.createElement("div", {
|
11709
11796
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
@@ -11712,9 +11799,11 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11712
11799
|
|
11713
11800
|
var Vulnerable = function Vulnerable(_ref) {
|
11714
11801
|
var data = _ref.data,
|
11802
|
+
keyOpen = _ref.keyOpen,
|
11715
11803
|
openProblem = _ref.openProblem,
|
11716
11804
|
changeOpen = _ref.changeOpen,
|
11717
11805
|
isPrint = _ref.isPrint;
|
11806
|
+
var isOpen = openProblem === keyOpen;
|
11718
11807
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11719
11808
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
11720
11809
|
}).sort(function (q1, q2) {
|
@@ -11756,19 +11845,17 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11756
11845
|
return React.createElement("div", {
|
11757
11846
|
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11758
11847
|
}, React.createElement("div", {
|
11759
|
-
className: (!
|
11848
|
+
className: (!keyOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11760
11849
|
onClick: function onClick() {
|
11761
|
-
return changeOpen(
|
11762
|
-
problem3: !openProblem.problem3
|
11763
|
-
}));
|
11850
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11764
11851
|
}
|
11765
11852
|
}, React.createElement(Typography, {
|
11766
11853
|
sx: {
|
11767
|
-
color: !
|
11854
|
+
color: !keyOpen ? "#97A1AF" : "#414E62",
|
11768
11855
|
fontSize: "14px",
|
11769
11856
|
fontWeight: 700
|
11770
11857
|
}
|
11771
|
-
}, "\uB0B4\uAC00 \uCDE8\uC57D\uD55C \uBB38\uC81C"),
|
11858
|
+
}, "\uB0B4\uAC00 \uCDE8\uC57D\uD55C \uBB38\uC81C"), keyOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), keyOpen && React.createElement(Fragment$1, null, React.createElement("div", {
|
11772
11859
|
className: styles$4["wrapperContent"]
|
11773
11860
|
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React.createElement("div", {
|
11774
11861
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
@@ -11776,10 +11863,12 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11776
11863
|
};
|
11777
11864
|
|
11778
11865
|
var GradesByTerritory = function GradesByTerritory(_ref) {
|
11779
|
-
var
|
11866
|
+
var keyOpen = _ref.keyOpen,
|
11867
|
+
data = _ref.data,
|
11780
11868
|
openProblem = _ref.openProblem,
|
11781
11869
|
changeOpen = _ref.changeOpen,
|
11782
11870
|
isPrint = _ref.isPrint;
|
11871
|
+
var isOpen = openProblem === keyOpen;
|
11783
11872
|
var renderCategories = function renderCategories(data) {
|
11784
11873
|
return data.map(function (item) {
|
11785
11874
|
var trackStyle = {
|
@@ -11803,7 +11892,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11803
11892
|
});
|
11804
11893
|
};
|
11805
11894
|
var renderPrintCategories = function renderPrintCategories() {
|
11806
|
-
var chunkedCategories = _.chunk(data,
|
11895
|
+
var chunkedCategories = _.chunk(data, 10);
|
11807
11896
|
return chunkedCategories.map(function (i, index) {
|
11808
11897
|
return React.createElement("div", {
|
11809
11898
|
key: index,
|
@@ -11814,21 +11903,19 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11814
11903
|
return React.createElement("div", {
|
11815
11904
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11816
11905
|
}, React.createElement("div", {
|
11817
|
-
className: (!
|
11906
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11818
11907
|
onClick: function onClick() {
|
11819
|
-
return changeOpen(
|
11820
|
-
problem4: !openProblem.problem4
|
11821
|
-
}));
|
11908
|
+
return changeOpen(isOpen ? "" : keyOpen);
|
11822
11909
|
}
|
11823
11910
|
}, React.createElement(Typography, {
|
11824
11911
|
sx: {
|
11825
|
-
color: !
|
11912
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11826
11913
|
fontSize: "14px",
|
11827
11914
|
fontWeight: 700
|
11828
11915
|
}
|
11829
|
-
}, "\uC601\uC5ED\uBCC4 \uC131\uC801"),
|
11916
|
+
}, "\uC601\uC5ED\uBCC4 \uC131\uC801"), isOpen ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), isOpen && React.createElement("div", {
|
11830
11917
|
className: styles$4["wrappContentProblem"]
|
11831
|
-
}, isPrint ? renderPrintCategories() : renderCategories(data),
|
11918
|
+
}, isPrint ? renderPrintCategories() : renderCategories(data), isOpen && !data.length && React.createElement("div", {
|
11832
11919
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11833
11920
|
}, "\uB370\uC774\uD130 \uC5C6\uC74C")));
|
11834
11921
|
};
|
@@ -11960,10 +12047,17 @@ function CreateNewQuestionDialog$1(_ref) {
|
|
11960
12047
|
className: styles$4['btn-cancel'],
|
11961
12048
|
onClick: toggleCreateQuestion
|
11962
12049
|
}, React.createElement(Typography$1, {
|
12050
|
+
sx: {
|
12051
|
+
color: styles.dark + " !important"
|
12052
|
+
},
|
11963
12053
|
fontWeight: 700,
|
11964
12054
|
fontSize: '14px',
|
11965
12055
|
lineHeight: '16.71px'
|
11966
12056
|
}, "\uCDE8\uC18C")), React.createElement(Button$1, {
|
12057
|
+
variant: 'contained',
|
12058
|
+
sx: {
|
12059
|
+
bgcolor: styles.dark
|
12060
|
+
},
|
11967
12061
|
className: styles$4['btn-register'],
|
11968
12062
|
type: "submit"
|
11969
12063
|
}, React.createElement(Typography$1, {
|
@@ -12042,7 +12136,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12042
12136
|
timelyOrderQuestions = _useExamResult.timelyOrderQuestions,
|
12043
12137
|
isStudent = _useExamResult.isStudent,
|
12044
12138
|
openProblem = _useExamResult.openProblem,
|
12045
|
-
|
12139
|
+
resultData = _useExamResult.resultData,
|
12046
12140
|
longTimeSpend = _useExamResult.longTimeSpend,
|
12047
12141
|
effectSize = _useExamResult.effectSize,
|
12048
12142
|
categoryResponses = _useExamResult.categoryResponses,
|
@@ -12057,7 +12151,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12057
12151
|
openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
|
12058
12152
|
toggleCreateQuestion = _useCreateQuestionDia.toggleCreateQuestion;
|
12059
12153
|
var isTabletUp = useMediaQuery('(min-width:900px)');
|
12060
|
-
return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend &&
|
12154
|
+
return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend && resultData && effectSize ? React.createElement("div", {
|
12061
12155
|
style: {
|
12062
12156
|
width: "100%"
|
12063
12157
|
}
|
@@ -12066,13 +12160,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12066
12160
|
padding: "24px"
|
12067
12161
|
}, React.createElement(Grid, {
|
12068
12162
|
item: true
|
12069
|
-
},
|
12163
|
+
}, resultData.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
12070
12164
|
sx: {
|
12071
12165
|
fontSize: "14px",
|
12072
12166
|
fontWeight: 600,
|
12073
|
-
color:
|
12167
|
+
color: styles.less_dark
|
12074
12168
|
}
|
12075
|
-
},
|
12169
|
+
}, resultData.courseName)), React.createElement(Box, {
|
12076
12170
|
display: "flex",
|
12077
12171
|
gap: "16px",
|
12078
12172
|
flexDirection: "column"
|
@@ -12080,78 +12174,77 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12080
12174
|
sx: {
|
12081
12175
|
fontSize: "20px",
|
12082
12176
|
fontWeight: 600,
|
12083
|
-
color:
|
12177
|
+
color: styles.darker
|
12084
12178
|
}
|
12085
|
-
},
|
12179
|
+
}, resultData.title)), React.createElement(Stack, {
|
12086
12180
|
flexDirection: "row",
|
12087
12181
|
gap: "16px"
|
12088
12182
|
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12089
12183
|
sx: {
|
12090
12184
|
fontSize: "13px",
|
12091
12185
|
fontWeight: 600,
|
12092
|
-
color:
|
12186
|
+
color: styles.gray_500
|
12093
12187
|
}
|
12094
12188
|
}, t("my_score")), React.createElement(Typography, {
|
12095
12189
|
sx: {
|
12096
12190
|
fontSize: "14px",
|
12097
12191
|
fontWeight: 600,
|
12098
|
-
color:
|
12192
|
+
color: styles.darker
|
12099
12193
|
}
|
12100
12194
|
}, t("score_format", {
|
12101
|
-
score:
|
12195
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12102
12196
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12103
12197
|
sx: {
|
12104
12198
|
fontSize: "13px",
|
12105
12199
|
fontWeight: 600,
|
12106
|
-
color:
|
12200
|
+
color: styles.gray_500
|
12107
12201
|
}
|
12108
12202
|
}, t("exam_date")), React.createElement(Typography, {
|
12109
12203
|
sx: {
|
12110
12204
|
fontSize: "14px",
|
12111
12205
|
fontWeight: 600,
|
12112
|
-
color:
|
12206
|
+
color: styles.gray_700
|
12113
12207
|
}
|
12114
|
-
}, utcToLocalTime(
|
12208
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
|
12115
12209
|
sx: {
|
12116
12210
|
fontSize: "13px",
|
12117
12211
|
fontWeight: 600,
|
12118
|
-
color:
|
12212
|
+
color: styles.gray_500
|
12119
12213
|
}
|
12120
12214
|
}, t("exam_time")), React.createElement(Typography, {
|
12121
12215
|
sx: {
|
12122
12216
|
fontSize: "14px",
|
12123
12217
|
fontWeight: 600,
|
12124
|
-
color:
|
12218
|
+
color: styles.gray_700
|
12125
12219
|
}
|
12126
12220
|
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12127
12221
|
sx: {
|
12128
12222
|
fontSize: "13px",
|
12129
12223
|
fontWeight: 600,
|
12130
|
-
color:
|
12224
|
+
color: styles.gray_500
|
12131
12225
|
}
|
12132
12226
|
}, t("total_students")), React.createElement(Typography, {
|
12133
12227
|
sx: {
|
12134
12228
|
fontSize: "14px",
|
12135
12229
|
fontWeight: 600,
|
12136
|
-
color:
|
12230
|
+
color: styles.gray_700
|
12137
12231
|
}
|
12138
12232
|
}, t("number_people", {
|
12139
|
-
number:
|
12233
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12140
12234
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12141
12235
|
sx: {
|
12142
12236
|
fontSize: "13px",
|
12143
12237
|
fontWeight: 600,
|
12144
|
-
color:
|
12238
|
+
color: styles.gray_500
|
12145
12239
|
}
|
12146
12240
|
}, t("teacher_in_charge")), React.createElement(Typography, {
|
12147
12241
|
sx: {
|
12148
12242
|
fontSize: "14px",
|
12149
12243
|
fontWeight: 600,
|
12150
|
-
color:
|
12244
|
+
color: styles.gray_700
|
12151
12245
|
}
|
12152
|
-
},
|
12246
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React.createElement(Grid, {
|
12153
12247
|
container: true,
|
12154
|
-
padding: "24px",
|
12155
12248
|
className: "position-relative overflow-hidden"
|
12156
12249
|
}, !isTabletUp && React.createElement(Grid, {
|
12157
12250
|
item: true,
|
@@ -12183,7 +12276,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12183
12276
|
justifyContent: "space-between",
|
12184
12277
|
alignItems: "center",
|
12185
12278
|
display: "flex",
|
12186
|
-
|
12279
|
+
overflow: "scroll",
|
12280
|
+
bgcolor: styles.gray_100,
|
12187
12281
|
borderTop: "1px solid #E4E7EC",
|
12188
12282
|
borderBottom: "1px solid #E4E7EC"
|
12189
12283
|
}, React.createElement(Stack, {
|
@@ -12200,14 +12294,16 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12200
12294
|
sx: {
|
12201
12295
|
fontSize: "14px",
|
12202
12296
|
fontWeight: "600",
|
12203
|
-
color: value === selected ?
|
12297
|
+
color: value === selected ? styles.less_dark : styles.gray_500,
|
12204
12298
|
padding: "8px 16px",
|
12205
|
-
|
12299
|
+
"&:hover": {
|
12300
|
+
background: styles.light
|
12301
|
+
}
|
12206
12302
|
},
|
12207
12303
|
onClick: function onClick() {
|
12208
12304
|
return handleChangeTab(value);
|
12209
12305
|
}
|
12210
|
-
},
|
12306
|
+
}, label);
|
12211
12307
|
})), isTabletUp && React.createElement(Stack, {
|
12212
12308
|
padding: '12px 24px',
|
12213
12309
|
alignItems: "end",
|
@@ -12224,7 +12320,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12224
12320
|
value: selected,
|
12225
12321
|
index: 0
|
12226
12322
|
}, React.createElement(MyAnswer, {
|
12227
|
-
data:
|
12323
|
+
data: resultData,
|
12228
12324
|
categories: categoryResponses,
|
12229
12325
|
isStudent: isStudent
|
12230
12326
|
})), React.createElement(CustomTabPanel, {
|
@@ -12253,18 +12349,22 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12253
12349
|
value: selected,
|
12254
12350
|
index: 3
|
12255
12351
|
}, React.createElement(TrickyProblem, {
|
12256
|
-
|
12352
|
+
keyOpen: "TrickyProblem",
|
12353
|
+
data: resultData,
|
12257
12354
|
openProblem: openProblem,
|
12258
12355
|
changeOpen: setOpenProblem
|
12259
12356
|
}), React.createElement(Vulnerable, {
|
12260
|
-
|
12357
|
+
keyOpen: "Vulnerable",
|
12358
|
+
data: resultData,
|
12261
12359
|
openProblem: openProblem,
|
12262
12360
|
changeOpen: setOpenProblem
|
12263
12361
|
}), React.createElement(ProtractedProblem, {
|
12362
|
+
keyOpen: "ProtractedProblem",
|
12264
12363
|
data: longTimeSpend,
|
12265
12364
|
openProblem: openProblem,
|
12266
12365
|
changeOpen: setOpenProblem
|
12267
12366
|
}), React.createElement(GradesByTerritory, {
|
12367
|
+
keyOpen: "GradesByTerritory",
|
12268
12368
|
data: categoryResponses,
|
12269
12369
|
openProblem: openProblem,
|
12270
12370
|
changeOpen: setOpenProblem
|
@@ -12283,13 +12383,13 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12283
12383
|
id: "header-canvas"
|
12284
12384
|
}, React.createElement(Grid, {
|
12285
12385
|
item: true
|
12286
|
-
},
|
12386
|
+
}, resultData.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
12287
12387
|
sx: {
|
12288
12388
|
fontSize: "14px",
|
12289
12389
|
fontWeight: 600,
|
12290
|
-
color:
|
12390
|
+
color: styles.less_dark
|
12291
12391
|
}
|
12292
|
-
},
|
12392
|
+
}, resultData.courseName)), React.createElement(Box, {
|
12293
12393
|
display: "flex",
|
12294
12394
|
gap: "16px",
|
12295
12395
|
flexDirection: "column"
|
@@ -12297,76 +12397,76 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12297
12397
|
sx: {
|
12298
12398
|
fontSize: "20px",
|
12299
12399
|
fontWeight: 600,
|
12300
|
-
color:
|
12400
|
+
color: styles.darker
|
12301
12401
|
}
|
12302
|
-
},
|
12402
|
+
}, resultData.title)), React.createElement(Stack, {
|
12303
12403
|
flexDirection: "row",
|
12304
12404
|
gap: "16px"
|
12305
12405
|
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12306
12406
|
sx: {
|
12307
12407
|
fontSize: "13px",
|
12308
12408
|
fontWeight: 600,
|
12309
|
-
color:
|
12409
|
+
color: styles.gray_500
|
12310
12410
|
}
|
12311
12411
|
}, t("my_score")), React.createElement(Typography, {
|
12312
12412
|
sx: {
|
12313
12413
|
fontSize: "14px",
|
12314
12414
|
fontWeight: 600,
|
12315
|
-
color:
|
12415
|
+
color: styles.darker
|
12316
12416
|
}
|
12317
12417
|
}, t("score_format", {
|
12318
|
-
score:
|
12418
|
+
score: resultData === null || resultData === void 0 ? void 0 : resultData.score
|
12319
12419
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12320
12420
|
sx: {
|
12321
12421
|
fontSize: "13px",
|
12322
12422
|
fontWeight: 600,
|
12323
|
-
color:
|
12423
|
+
color: styles.gray_500
|
12324
12424
|
}
|
12325
12425
|
}, t("exam_date")), React.createElement(Typography, {
|
12326
12426
|
sx: {
|
12327
12427
|
fontSize: "14px",
|
12328
12428
|
fontWeight: 600,
|
12329
|
-
color:
|
12429
|
+
color: styles.gray_700
|
12330
12430
|
}
|
12331
|
-
}, utcToLocalTime(
|
12431
|
+
}, utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
|
12332
12432
|
sx: {
|
12333
12433
|
fontSize: "13px",
|
12334
12434
|
fontWeight: 600,
|
12335
|
-
color:
|
12435
|
+
color: styles.gray_500
|
12336
12436
|
}
|
12337
12437
|
}, t("exam_time")), React.createElement(Typography, {
|
12338
12438
|
sx: {
|
12339
12439
|
fontSize: "14px",
|
12340
12440
|
fontWeight: 600,
|
12341
|
-
color:
|
12441
|
+
color: styles.gray_700
|
12342
12442
|
}
|
12343
12443
|
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12344
12444
|
sx: {
|
12345
12445
|
fontSize: "13px",
|
12346
12446
|
fontWeight: 600,
|
12347
|
-
color:
|
12447
|
+
color: styles.gray_500
|
12348
12448
|
}
|
12349
12449
|
}, t("total_students")), React.createElement(Typography, {
|
12350
12450
|
sx: {
|
12351
12451
|
fontSize: "14px",
|
12352
12452
|
fontWeight: 600,
|
12353
|
-
color:
|
12453
|
+
color: styles.gray_700
|
12354
12454
|
}
|
12355
12455
|
}, t("number_people", {
|
12356
|
-
number:
|
12456
|
+
number: resultData === null || resultData === void 0 ? void 0 : resultData.totalStudent
|
12357
12457
|
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12358
12458
|
sx: {
|
12359
12459
|
fontSize: "13px",
|
12360
12460
|
fontWeight: 600,
|
12361
|
-
color:
|
12461
|
+
color: styles.gray_500
|
12362
12462
|
}
|
12363
12463
|
}, t("teacher_in_charge")), React.createElement(Typography, {
|
12364
12464
|
sx: {
|
12365
12465
|
fontSize: "14px",
|
12366
12466
|
fontWeight: 600,
|
12367
|
-
color:
|
12467
|
+
color: styles.gray_700
|
12368
12468
|
}
|
12369
|
-
},
|
12469
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), React.createElement(Stack, {
|
12370
12470
|
display: "flex",
|
12371
12471
|
flexDirection: "column",
|
12372
12472
|
gap: "12px"
|
@@ -12375,10 +12475,10 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12375
12475
|
sx: {
|
12376
12476
|
fontSize: "18px",
|
12377
12477
|
fontWeight: 700,
|
12378
|
-
color:
|
12478
|
+
color: styles.gray_500
|
12379
12479
|
}
|
12380
12480
|
}, t(TabList[0].label)), React.createElement(MyAnswer, {
|
12381
|
-
data:
|
12481
|
+
data: resultData,
|
12382
12482
|
categories: categoryResponses,
|
12383
12483
|
isStudent: isStudent,
|
12384
12484
|
isPrint: true
|
@@ -12392,7 +12492,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12392
12492
|
sx: {
|
12393
12493
|
fontSize: "18px",
|
12394
12494
|
fontWeight: 700,
|
12395
|
-
color:
|
12495
|
+
color: styles.gray_500
|
12396
12496
|
}
|
12397
12497
|
}, t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
12398
12498
|
return React.createElement("div", {
|
@@ -12408,23 +12508,26 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12408
12508
|
}, t("article_number"), " ", timelyOrderQuestion.article), React.createElement("div", {
|
12409
12509
|
className: styles$4["compareChart"] + " " + PrintContentClassName
|
12410
12510
|
}, React.createElement("div", {
|
12511
|
+
className: "" + styles$4["prevChart"]
|
12512
|
+
}), React.createElement("div", {
|
12411
12513
|
className: styles$4["chart"] + " sr-line-chart"
|
12412
12514
|
}, React.createElement("div", null, React.createElement(ReactApexChart, {
|
12413
12515
|
height: 389,
|
12414
12516
|
options: allChartOptions[index],
|
12415
12517
|
series: allSeries[index]
|
12416
|
-
})))
|
12518
|
+
}))), React.createElement("div", {
|
12519
|
+
className: "" + styles$4["nextChart"]
|
12520
|
+
})));
|
12417
12521
|
})), React.createElement(Stack, {
|
12418
12522
|
display: "flex",
|
12419
12523
|
flexDirection: "column",
|
12420
12524
|
gap: "12px",
|
12421
12525
|
marginTop: "24px"
|
12422
12526
|
}, React.createElement(Typography, {
|
12423
|
-
className: "chart-title",
|
12424
12527
|
sx: {
|
12425
|
-
fontSize: "
|
12528
|
+
fontSize: "16px",
|
12426
12529
|
fontWeight: 700,
|
12427
|
-
color:
|
12530
|
+
color: styles.grey_500
|
12428
12531
|
}
|
12429
12532
|
}, t(TabList[2].label)), React.createElement(CompareGrass, {
|
12430
12533
|
effectSize: effectSize,
|
@@ -12439,38 +12542,34 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12439
12542
|
sx: {
|
12440
12543
|
fontSize: "18px",
|
12441
12544
|
fontWeight: 700,
|
12442
|
-
color:
|
12545
|
+
color: styles.gray_500
|
12443
12546
|
}
|
12444
12547
|
}, t(TabList[3].label)), React.createElement(TrickyProblem, {
|
12445
|
-
|
12446
|
-
|
12447
|
-
|
12448
|
-
}),
|
12548
|
+
keyOpen: "TrickyProblem",
|
12549
|
+
data: resultData,
|
12550
|
+
openProblem: "TrickyProblem",
|
12449
12551
|
changeOpen: setOpenProblem,
|
12450
12552
|
isPrint: true
|
12451
12553
|
}), React.createElement(Vulnerable, {
|
12452
|
-
|
12453
|
-
|
12454
|
-
|
12455
|
-
}),
|
12554
|
+
keyOpen: "Vulnerable",
|
12555
|
+
data: resultData,
|
12556
|
+
openProblem: "Vulnerable",
|
12456
12557
|
changeOpen: setOpenProblem,
|
12457
12558
|
isPrint: true
|
12458
12559
|
}), React.createElement(ProtractedProblem, {
|
12560
|
+
keyOpen: "ProtractedProblem",
|
12459
12561
|
data: longTimeSpend,
|
12460
|
-
openProblem:
|
12461
|
-
problem2: true
|
12462
|
-
}),
|
12562
|
+
openProblem: "ProtractedProblem",
|
12463
12563
|
changeOpen: setOpenProblem,
|
12464
12564
|
isPrint: true
|
12465
12565
|
}), React.createElement(GradesByTerritory, {
|
12566
|
+
keyOpen: "GradesByTerritory",
|
12466
12567
|
data: categoryResponses,
|
12467
|
-
openProblem:
|
12468
|
-
problem4: true
|
12469
|
-
}),
|
12568
|
+
openProblem: "GradesByTerritory",
|
12470
12569
|
changeOpen: setOpenProblem,
|
12471
12570
|
isPrint: true
|
12472
12571
|
})))), React.createElement(CreateNewQuestionDialog$1, {
|
12473
|
-
examSessionId:
|
12572
|
+
examSessionId: resultData === null || resultData === void 0 ? void 0 : resultData.examSessionId,
|
12474
12573
|
handleCreateQuestion: handleCreateQuestion,
|
12475
12574
|
openCreateQuestionDialog: openCreateQuestionDialog,
|
12476
12575
|
toggleCreateQuestion: toggleCreateQuestion
|
@@ -12578,7 +12677,8 @@ var Header = function Header(_ref) {
|
|
12578
12677
|
direction: "row",
|
12579
12678
|
alignItems: "center"
|
12580
12679
|
}, React.createElement(Typography, {
|
12581
|
-
|
12680
|
+
color: styles.dark,
|
12681
|
+
className: "fw-bold me-2 text-nowrap",
|
12582
12682
|
sx: {
|
12583
12683
|
minWidth: "60px",
|
12584
12684
|
overflow: "hidden",
|