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