touchstudy-core 0.1.195 → 0.1.197
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/add-ts-nocheck.js +33 -0
- package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
- package/dist/calendar_fill~zEgxFwDs.svg +4 -0
- package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
- package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
- package/dist/clock_fill~mcRclYYO.svg +3 -0
- package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
- package/dist/components/Chats/components/CanvasOverlay.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/BgColorTool.d.ts +8 -0
- package/dist/components/Chats/components/SketchDialog/BgImgAlignTool.d.ts +10 -0
- package/dist/components/Chats/components/SketchDialog/BgImgAlignToolList.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog/BgImgTool.d.ts +13 -0
- package/dist/components/Chats/components/SketchDialog/CanvasOverlay.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/ColorPicker.d.ts +8 -0
- package/dist/components/Chats/components/SketchDialog/EraserTool.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog/PencilTool.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/WidthSlider.d.ts +7 -0
- package/dist/components/Chats/components/SketchDialog/index.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog.d.ts +7 -0
- package/dist/components/Chats/styles/styles.d.ts +42 -0
- package/dist/components/CkEditor/CkEditor.d.ts +10 -0
- package/dist/components/CkEditor/config.d.ts +19 -0
- package/dist/components/CkEditor/index.d.ts +2 -0
- package/dist/components/Print/hooks/useDeviceType.d.ts +4 -0
- package/dist/components/Selects/CustomSelectOption.d.ts +1 -1
- package/dist/containers/ExamResult/components/GradesByTerritory/Textbook.d.ts +12 -0
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +12 -0
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +10 -0
- package/dist/containers/ExamResult/components/TrickyProblem/Textbook.d.ts +10 -0
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +11 -0
- package/dist/containers/ExamResult/components/Vulnerable/Textbook.d.ts +11 -0
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +12 -0
- package/dist/containers/Exams/components/ArticleBlock.d.ts +20 -0
- package/dist/containers/Exams/components/ArticleGroupView.d.ts +33 -0
- package/dist/containers/Exams/components/QuestionBlock.d.ts +19 -0
- package/dist/containers/Exams/components/QuestionCompareType.d.ts +9 -0
- package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +28 -0
- package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +23 -0
- package/dist/containers/Exams/components/QuestionOrderName.d.ts +9 -0
- package/dist/containers/Exams/components/QuestionShortInput.d.ts +13 -0
- package/dist/containers/Exams/components/QuestionView.d.ts +20 -0
- package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +9 -0
- package/dist/containers/Exams/styles/styles.d.ts +6 -0
- package/dist/containers/Notes/components/TeacherAdminNoteDialog.d.ts +4 -0
- package/dist/containers/PreparedTextbook/components/Article.d.ts +20 -0
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +20 -0
- package/dist/containers/PreparedTextbook/components/Chapter.d.ts +19 -0
- package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
- package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +24 -0
- package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +12 -0
- package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
- package/dist/containers/PreparedTextbook/components/SubChapter.d.ts +18 -0
- package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +13 -0
- package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +30 -0
- package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
- package/dist/containers/PreparedTextbook/styles/styles.d.ts +6 -0
- package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/AttedanceFormDialog.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
- package/dist/containers/Textbooks/components/ChapterBox.d.ts +4 -0
- package/dist/containers/Textbooks/configs/interfaces.d.ts +21 -0
- package/dist/containers/Textbooks/hooks/useExam.d.ts +16 -0
- package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +55 -0
- package/dist/containers/Textbooks/views/TextbookDetail.d.ts +15 -0
- package/dist/iconPerson~bfprHOKm.svg +4 -0
- package/dist/index.css +16 -4
- package/dist/index.js +111 -93
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +111 -93
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/HeaderLink.d.ts +8 -0
- package/dist/layouts/TimerCountItem.d.ts +10 -0
- package/dist/layouts/TimerDialog.d.ts +11 -0
- package/dist/layouts/TimerDropdown.d.ts +3 -0
- package/dist/layouts/TimerItem.d.ts +11 -0
- package/dist/layouts/configs/constants.d.ts +14 -0
- package/dist/layouts/configs/enums.d.ts +6 -0
- package/dist/layouts/configs/fn.d.ts +3 -0
- package/dist/layouts/configs/types.d.ts +8 -0
- package/dist/layouts/hooks/useAlarm.d.ts +19 -0
- package/dist/layouts/hooks/useCountDownTimer.d.ts +13 -0
- package/dist/layouts/hooks/useTimers.d.ts +14 -0
- package/dist/layouts/partials/Alarm/AlarmClock.d.ts +12 -0
- package/dist/layouts/partials/Alarm/AlarmClockNote.d.ts +3 -0
- package/dist/layouts/partials/Alarm/AlarmClockPanel.d.ts +12 -0
- package/dist/layouts/partials/Alarm/AlarmClockPanelNote.d.ts +3 -0
- package/dist/layouts/partials/Alarm/AlarmClockTab.d.ts +14 -0
- package/dist/layouts/partials/Alarm/AlarmSpeakerCheckbox.d.ts +8 -0
- package/dist/layouts/partials/Alarm/AudioToastContent.d.ts +8 -0
- package/dist/layouts/partials/AlarmClock.d.ts +12 -0
- package/dist/layouts/partials/AlarmClockNote.d.ts +3 -0
- package/dist/layouts/partials/AlarmClockPanel.d.ts +12 -0
- package/dist/layouts/partials/AlarmClockPanelNote.d.ts +3 -0
- package/dist/layouts/partials/AlarmClockTab.d.ts +11 -0
- package/dist/layouts/partials/AudioToastContent.d.ts +8 -0
- package/dist/layouts/partials/CircularTimer/index.d.ts +11 -0
- package/dist/layouts/partials/CircularTimer/tick.d.ts +9 -0
- package/dist/layouts/partials/CircularTimer.d.ts +11 -0
- package/dist/layouts/partials/StudyTimerTab.d.ts +13 -0
- package/dist/layouts/partials/TimeUpdateDialog.d.ts +7 -0
- package/dist/layouts/partials/Timer/StudyTimerTab.d.ts +13 -0
- package/dist/layouts/partials/Timer/TimeLineTabPanel.d.ts +8 -0
- package/dist/layouts/partials/Timer/TimeLineTabs.d.ts +11 -0
- package/dist/layouts/partials/Timer/TimeUpdateDialog.d.ts +7 -0
- package/dist/layouts/partials/Timer/TimerCountItem.d.ts +10 -0
- package/dist/layouts/partials/Timer/TimerDivider.d.ts +9 -0
- package/dist/layouts/partials/Timer/TimerItem.d.ts +12 -0
- package/dist/layouts/partials/Timer/TimerLineItem.d.ts +13 -0
- package/dist/layouts/partials/Timer/TimerTabPanel.d.ts +8 -0
- package/dist/layouts/partials/Timer/TimerTabs.d.ts +7 -0
- package/dist/layouts/partials/TimerCountItem.d.ts +10 -0
- package/dist/layouts/partials/TimerItem.d.ts +12 -0
- package/dist/layouts/partials/TimerTabPanel.d.ts +8 -0
- package/dist/layouts/partials/TimerTabs.d.ts +7 -0
- package/dist/services/alarmService.d.ts +9 -0
- package/dist/utils/enums/subject.d.ts +6 -0
- package/dist/utils/functions/checkSuperUrl.d.ts +1 -0
- package/dist/utils/functions/isRealTabletOrMobileDevice.d.ts +1 -0
- package/dist/utils/types/examResults.d.ts +1 -0
- package/dist/utils/types/subjects.d.ts +21 -0
- package/package.json +1 -2
- /package/dist/utils/types/{questionTypeFilter.d.ts → QuestionTypeFilter.d.ts} +0 -0
package/dist/index.modern.js
CHANGED
@@ -1581,6 +1581,9 @@ var there_are_no_problems_you_were_working_on = "풀던 문제가 없습니다."
|
|
1581
1581
|
var incomplete_exam = "미참가";
|
1582
1582
|
var completed_exam = "참가";
|
1583
1583
|
var failed_to_send_the_image_error = "이미지를 보내지 못했습니다: {{ message }}";
|
1584
|
+
var exam_session = "시험 세션";
|
1585
|
+
var must_select_an_exam_first = "먼저 시험을 선택해야 합니다";
|
1586
|
+
var not_selected = "미선택";
|
1584
1587
|
var lang_ko = {
|
1585
1588
|
problem_solving: problem_solving,
|
1586
1589
|
my_story: my_story,
|
@@ -2789,7 +2792,10 @@ var lang_ko = {
|
|
2789
2792
|
there_are_no_problems_you_were_working_on: there_are_no_problems_you_were_working_on,
|
2790
2793
|
incomplete_exam: incomplete_exam,
|
2791
2794
|
completed_exam: completed_exam,
|
2792
|
-
failed_to_send_the_image_error: failed_to_send_the_image_error
|
2795
|
+
failed_to_send_the_image_error: failed_to_send_the_image_error,
|
2796
|
+
exam_session: exam_session,
|
2797
|
+
must_select_an_exam_first: must_select_an_exam_first,
|
2798
|
+
not_selected: not_selected
|
2793
2799
|
};
|
2794
2800
|
|
2795
2801
|
var problem_solving$1 = "Problem Solving";
|
@@ -4025,6 +4031,9 @@ var there_are_no_problems_you_were_working_on$1 = "There are no problems you wer
|
|
4025
4031
|
var incomplete_exam$1 = "Incomplete";
|
4026
4032
|
var completed_exam$1 = "Completed";
|
4027
4033
|
var failed_to_send_the_image_error$1 = "Failed to send the image: {{ message }}";
|
4034
|
+
var exam_session$1 = "Exam session";
|
4035
|
+
var must_select_an_exam_first$1 = "Must select an exam first";
|
4036
|
+
var not_selected$1 = "Not selected";
|
4028
4037
|
var lang_en = {
|
4029
4038
|
problem_solving: problem_solving$1,
|
4030
4039
|
my_story: my_story$1,
|
@@ -5235,7 +5244,10 @@ var lang_en = {
|
|
5235
5244
|
there_are_no_problems_you_were_working_on: there_are_no_problems_you_were_working_on$1,
|
5236
5245
|
incomplete_exam: incomplete_exam$1,
|
5237
5246
|
completed_exam: completed_exam$1,
|
5238
|
-
failed_to_send_the_image_error: failed_to_send_the_image_error$1
|
5247
|
+
failed_to_send_the_image_error: failed_to_send_the_image_error$1,
|
5248
|
+
exam_session: exam_session$1,
|
5249
|
+
must_select_an_exam_first: must_select_an_exam_first$1,
|
5250
|
+
not_selected: not_selected$1
|
5239
5251
|
};
|
5240
5252
|
|
5241
5253
|
i18n.use(initReactI18next).init({
|
@@ -7964,7 +7976,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
7964
7976
|
}, rest));
|
7965
7977
|
};
|
7966
7978
|
|
7967
|
-
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti", "valueById", "isTextbook"];
|
7979
|
+
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti", "valueById", "isTextbook", "styles"];
|
7968
7980
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
7969
7981
|
var defaultValue = _ref.defaultValue,
|
7970
7982
|
options = _ref.options,
|
@@ -7974,6 +7986,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7974
7986
|
isMulti = _ref.isMulti,
|
7975
7987
|
valueById = _ref.valueById,
|
7976
7988
|
isTextbook = _ref.isTextbook,
|
7989
|
+
styles = _ref.styles,
|
7977
7990
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
7978
7991
|
var _useTranslation = useTranslation(),
|
7979
7992
|
t = _useTranslation.t;
|
@@ -8000,7 +8013,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
8000
8013
|
DropdownIndicator: DropdownIndicator,
|
8001
8014
|
Option: CustomOption
|
8002
8015
|
},
|
8003
|
-
styles: customStyles,
|
8016
|
+
styles: _extends({}, customStyles, styles),
|
8004
8017
|
placeholder: t("select_placeholder")
|
8005
8018
|
}, rest)) : React__default.createElement(Select, Object.assign({
|
8006
8019
|
isDisabled: isDisabled,
|
@@ -8016,7 +8029,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
8016
8029
|
DropdownIndicator: DropdownIndicator,
|
8017
8030
|
Option: CustomOption
|
8018
8031
|
},
|
8019
|
-
styles: customStyles,
|
8032
|
+
styles: _extends({}, customStyles, styles),
|
8020
8033
|
placeholder: t("select_placeholder")
|
8021
8034
|
}, rest));
|
8022
8035
|
};
|
@@ -19372,7 +19385,7 @@ var ChipCustom = styled(Stack)(function (_ref) {
|
|
19372
19385
|
};
|
19373
19386
|
});
|
19374
19387
|
var AnswerItem = function AnswerItem(_ref2) {
|
19375
|
-
var _data$selectedAnswers, _data$textualAnswers;
|
19388
|
+
var _data$selectedAnswers, _data$textualAnswers, _data$skipRate$toFixe, _data$skipRate;
|
19376
19389
|
var data = _ref2.data,
|
19377
19390
|
nextData = _ref2.nextData,
|
19378
19391
|
isFirst = _ref2.isFirst,
|
@@ -19437,7 +19450,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19437
19450
|
width: "80px",
|
19438
19451
|
justifyContent: "center"
|
19439
19452
|
}
|
19440
|
-
}, data.
|
19453
|
+
}, data.duration != 0 ? React__default.createElement("p", {
|
19441
19454
|
style: {
|
19442
19455
|
margin: 0
|
19443
19456
|
},
|
@@ -19454,7 +19467,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19454
19467
|
width: "80px",
|
19455
19468
|
justifyContent: "center"
|
19456
19469
|
}
|
19457
|
-
}, data.
|
19470
|
+
}, data.duration != 0 && data.topDuration ? React__default.createElement("p", {
|
19458
19471
|
style: {
|
19459
19472
|
margin: 0
|
19460
19473
|
},
|
@@ -19469,20 +19482,20 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19469
19482
|
style: {
|
19470
19483
|
display: "flex",
|
19471
19484
|
alignItems: "center",
|
19472
|
-
width: "
|
19485
|
+
width: "150px",
|
19473
19486
|
justifyContent: "center"
|
19474
19487
|
}
|
19475
|
-
},
|
19488
|
+
}, React__default.createElement("p", {
|
19476
19489
|
style: {
|
19477
19490
|
margin: 0
|
19478
19491
|
},
|
19479
19492
|
className: styles$7["answer-response"] + " " + getOverallColorClassName(data.overallCorrectRate, styles$7)
|
19480
|
-
}, data.overallCorrectRate.toFixed(2) + "%"
|
19493
|
+
}, data.overallCorrectRate.toFixed(2) + "%", React__default.createElement("span", {
|
19481
19494
|
style: {
|
19482
|
-
|
19483
|
-
|
19484
|
-
|
19485
|
-
},
|
19495
|
+
fontSize: "10px",
|
19496
|
+
color: red[900]
|
19497
|
+
}
|
19498
|
+
}, "(" + ((_data$skipRate$toFixe = (_data$skipRate = data.skipRate) === null || _data$skipRate === void 0 ? void 0 : _data$skipRate.toFixed(2)) != null ? _data$skipRate$toFixe : 0) + "%)"))), React__default.createElement("div", {
|
19486
19499
|
className: styles$7["classification"] + " " + printStyles["avoid-break-inside"] + " flex-grow-1 justify-content-start",
|
19487
19500
|
style: {
|
19488
19501
|
paddingInline: "14px",
|
@@ -19535,7 +19548,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19535
19548
|
}, openContextMenu ? React__default.createElement(ClickAwayListener, {
|
19536
19549
|
onClickAway: handleCloseContextMenu
|
19537
19550
|
}, React__default.createElement(Box, null, React__default.createElement(CustomTooltip, {
|
19538
|
-
onClose:
|
19551
|
+
onClose: handleCloseContextMenu,
|
19539
19552
|
open: openContextMenu,
|
19540
19553
|
disableFocusListener: true,
|
19541
19554
|
disableHoverListener: true,
|
@@ -19681,7 +19694,7 @@ var MyAnswer = function MyAnswer(_ref) {
|
|
19681
19694
|
display: "flex",
|
19682
19695
|
alignItems: "center",
|
19683
19696
|
gap: "4px",
|
19684
|
-
width: "
|
19697
|
+
width: "150px",
|
19685
19698
|
justifyContent: "center"
|
19686
19699
|
}
|
19687
19700
|
}, React__default.createElement(Typography, {
|
@@ -19691,9 +19704,15 @@ var MyAnswer = function MyAnswer(_ref) {
|
|
19691
19704
|
fontWeight: 600,
|
19692
19705
|
color: "#97A1AF",
|
19693
19706
|
display: "flex",
|
19694
|
-
alignItems: "
|
19707
|
+
alignItems: "baseline",
|
19708
|
+
gap: "2px"
|
19695
19709
|
}
|
19696
|
-
}, t("total_correct_rate")
|
19710
|
+
}, t("total_correct_rate"), React__default.createElement("span", {
|
19711
|
+
style: {
|
19712
|
+
fontSize: "10px",
|
19713
|
+
color: red[900]
|
19714
|
+
}
|
19715
|
+
}, "(" + t("not_selected") + ")")))), React__default.createElement("div", {
|
19697
19716
|
className: styles$7["titleMyAnswer2"]
|
19698
19717
|
}, React__default.createElement(Typography, {
|
19699
19718
|
sx: {
|
@@ -21226,7 +21245,7 @@ var TimeOrderChart = function TimeOrderChart(_ref) {
|
|
21226
21245
|
};
|
21227
21246
|
|
21228
21247
|
var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
21229
|
-
var _data$selectedAnswers, _data$textualAnswers, _data$selectedAnswers2, _data$textualAnswers2, _data$selectedAnswers3, _data$textualAnswers3;
|
21248
|
+
var _data$selectedAnswers, _data$textualAnswers, _data$selectedAnswers2, _data$textualAnswers2, _data$selectedAnswers3, _data$textualAnswers3, _data$skipRate$toFixe, _data$skipRate;
|
21230
21249
|
var data = _ref.data,
|
21231
21250
|
nextData = _ref.nextData,
|
21232
21251
|
isFirst = _ref.isFirst,
|
@@ -21292,7 +21311,7 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21292
21311
|
display: "flex",
|
21293
21312
|
alignItems: "center"
|
21294
21313
|
}
|
21295
|
-
}, data.
|
21314
|
+
}, data.duration != 0 ? React__default.createElement("p", {
|
21296
21315
|
style: {
|
21297
21316
|
margin: 0
|
21298
21317
|
},
|
@@ -21308,7 +21327,7 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21308
21327
|
display: "flex",
|
21309
21328
|
alignItems: "center"
|
21310
21329
|
}
|
21311
|
-
}, data.
|
21330
|
+
}, data.duration != 0 && data.topDuration ? React__default.createElement("p", {
|
21312
21331
|
style: {
|
21313
21332
|
margin: 0
|
21314
21333
|
},
|
@@ -21325,22 +21344,22 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21325
21344
|
display: "flex",
|
21326
21345
|
alignItems: "center"
|
21327
21346
|
}
|
21328
|
-
},
|
21347
|
+
}, React__default.createElement("p", {
|
21329
21348
|
style: {
|
21330
21349
|
margin: 0
|
21331
21350
|
},
|
21332
21351
|
className: styles$7["answer-response"] + " " + getOverallColorClassName(data.overallCorrectRate, styles$7)
|
21333
|
-
}, data.overallCorrectRate.toFixed(2) + "%"
|
21352
|
+
}, data.overallCorrectRate.toFixed(2) + "%", React__default.createElement("span", {
|
21334
21353
|
style: {
|
21335
|
-
|
21336
|
-
|
21337
|
-
|
21338
|
-
},
|
21354
|
+
fontSize: "10px",
|
21355
|
+
color: red[900]
|
21356
|
+
}
|
21357
|
+
}, "(" + ((_data$skipRate$toFixe = (_data$skipRate = data.skipRate) === null || _data$skipRate === void 0 ? void 0 : _data$skipRate.toFixed(2)) != null ? _data$skipRate$toFixe : 0) + "%)"))), isStudent && !isLearningSpace && React__default.createElement(Box, {
|
21339
21358
|
className: styles["custom-col-2"]
|
21340
21359
|
}, openContextMenu ? React__default.createElement(ClickAwayListener, {
|
21341
21360
|
onClickAway: handleCloseContextMenu
|
21342
21361
|
}, React__default.createElement(Box, null, React__default.createElement(CustomTooltip, {
|
21343
|
-
onClose:
|
21362
|
+
onClose: handleCloseContextMenu,
|
21344
21363
|
open: openContextMenu,
|
21345
21364
|
disableFocusListener: true,
|
21346
21365
|
disableHoverListener: true,
|
@@ -21493,9 +21512,15 @@ var TextbookMyAnswer = function TextbookMyAnswer(_ref) {
|
|
21493
21512
|
fontWeight: 600,
|
21494
21513
|
color: "#97A1AF",
|
21495
21514
|
display: "flex",
|
21496
|
-
alignItems: "
|
21515
|
+
alignItems: "baseline",
|
21516
|
+
gap: "2px"
|
21497
21517
|
}
|
21498
|
-
}, t("total_correct_rate")
|
21518
|
+
}, t("total_correct_rate"), React__default.createElement("span", {
|
21519
|
+
style: {
|
21520
|
+
fontSize: "10px",
|
21521
|
+
color: red[900]
|
21522
|
+
}
|
21523
|
+
}, "(" + t("not_selected") + ")")))), React__default.createElement("div", {
|
21499
21524
|
className: styles$7["titleMyAnswer2"]
|
21500
21525
|
}, React__default.createElement(Typography, {
|
21501
21526
|
sx: {
|
@@ -23211,12 +23236,12 @@ var useExamResultData = function useExamResultData(props) {
|
|
23211
23236
|
var _useState9 = useState(),
|
23212
23237
|
openProblem = _useState9[0],
|
23213
23238
|
setOpenProblem = _useState9[1];
|
23214
|
-
var
|
23215
|
-
selectedQuestion =
|
23216
|
-
setSelectedQuestion =
|
23217
|
-
var
|
23218
|
-
errorMessage =
|
23219
|
-
setErrorMessage =
|
23239
|
+
var _useState10 = useState(),
|
23240
|
+
selectedQuestion = _useState10[0],
|
23241
|
+
setSelectedQuestion = _useState10[1];
|
23242
|
+
var _useState11 = useState(),
|
23243
|
+
errorMessage = _useState11[0],
|
23244
|
+
setErrorMessage = _useState11[1];
|
23220
23245
|
var _useTranslation = useTranslation(),
|
23221
23246
|
t = _useTranslation.t;
|
23222
23247
|
var isBelongAcademy = !!user && user.academyDomain && !user.isLearningSpace;
|
@@ -24109,7 +24134,7 @@ var useOverallChartContainer = function useOverallChartContainer(isStudent, exam
|
|
24109
24134
|
return [texts.slice(0, middle), texts.slice(middle)];
|
24110
24135
|
}, [JSON.stringify(categories)]);
|
24111
24136
|
var formatTooltip = useCallback(function (_ref2) {
|
24112
|
-
var _overallData$data$0$h, _overallData$data$, _overallData$data$1$h, _overallData$data$2, _overallData$
|
24137
|
+
var _overallData$data$0$h, _overallData$data$, _overallData$maxData$, _overallData$data$1$h, _overallData$data$2, _overallData$maxData$2, _overallData$data$0$q, _overallData$data$3, _overallData$data$1$q, _overallData$data$4, _overallData$data$0$p, _overallData$data$5, _overallData$data$1$p, _overallData$data$6, _overallData$data$0$t, _overallData$data$7, _overallData$maxData$3, _overallData$data$1$t, _overallData$data$8, _overallData$maxData$4, _overallData$data$0$l, _overallData$data$9, _overallData$maxData$5, _overallData$data$1$l, _overallData$data$10, _overallData$maxData$6, _overallData$data$0$c, _overallData$data$11, _overallData$data$11$, _overallData$data$1$c, _overallData$data$12, _overallData$data$12$;
|
24113
24138
|
var dataPointIndex = _ref2.dataPointIndex,
|
24114
24139
|
w = _ref2.w;
|
24115
24140
|
var label = categories[dataPointIndex];
|
@@ -24118,47 +24143,39 @@ var useOverallChartContainer = function useOverallChartContainer(isStudent, exam
|
|
24118
24143
|
switch (dataPointIndex) {
|
24119
24144
|
case 1:
|
24120
24145
|
myValue = "" + t("n_questions", {
|
24121
|
-
total: (_overallData$data$0$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$ = overallData.data[0]) === null || _overallData$data$ === void 0 ? void 0 : _overallData$data$.highLevelQuestions) != null ? _overallData$data$0$h : 0
|
24146
|
+
total: ((_overallData$data$0$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$ = overallData.data[0]) === null || _overallData$data$ === void 0 ? void 0 : _overallData$data$.highLevelQuestions) != null ? _overallData$data$0$h : 0) + "/" + ((_overallData$maxData$ = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.highLevelQuestions) != null ? _overallData$maxData$ : 0)
|
24122
24147
|
});
|
24123
24148
|
avgValue = "" + t("n_questions", {
|
24124
|
-
total: (_overallData$data$1$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$2 = overallData.data[1]) === null || _overallData$data$2 === void 0 ? void 0 :
|
24149
|
+
total: Math.round((_overallData$data$1$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$2 = overallData.data[1]) === null || _overallData$data$2 === void 0 ? void 0 : _overallData$data$2.highLevelQuestions) != null ? _overallData$data$1$h : 0) + "/" + ((_overallData$maxData$2 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.highLevelQuestions) != null ? _overallData$maxData$2 : 0)
|
24125
24150
|
});
|
24126
24151
|
break;
|
24127
24152
|
case 2:
|
24128
|
-
myValue =
|
24129
|
-
|
24130
|
-
});
|
24131
|
-
avgValue = "" + t("n_seconds", {
|
24132
|
-
sec: (((_overallData$data$1$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$4 = overallData.data[1]) === null || _overallData$data$4 === void 0 ? void 0 : _overallData$data$4.questionLongestTime) != null ? _overallData$data$1$q : 0) / 1000).toFixed(2)
|
24133
|
-
});
|
24153
|
+
myValue = formatTimeSecond(((_overallData$data$0$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$3 = overallData.data[0]) === null || _overallData$data$3 === void 0 ? void 0 : _overallData$data$3.questionLongestTime) != null ? _overallData$data$0$q : 0) / 1000, t);
|
24154
|
+
avgValue = formatTimeSecond(((_overallData$data$1$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$4 = overallData.data[1]) === null || _overallData$data$4 === void 0 ? void 0 : _overallData$data$4.questionLongestTime) != null ? _overallData$data$1$q : 0) / 1000, t);
|
24134
24155
|
break;
|
24135
24156
|
case 3:
|
24136
|
-
myValue =
|
24137
|
-
|
24138
|
-
});
|
24139
|
-
avgValue = "" + t("n_seconds", {
|
24140
|
-
sec: (((_overallData$data$1$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$6 = overallData.data[1]) === null || _overallData$data$6 === void 0 ? void 0 : _overallData$data$6.problemSolvingTime) != null ? _overallData$data$1$p : 0) / 1000).toFixed(2)
|
24141
|
-
});
|
24157
|
+
myValue = formatTimeSecond(((_overallData$data$0$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$5 = overallData.data[0]) === null || _overallData$data$5 === void 0 ? void 0 : _overallData$data$5.problemSolvingTime) != null ? _overallData$data$0$p : 0) / 1000, t);
|
24158
|
+
avgValue = formatTimeSecond(((_overallData$data$1$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$6 = overallData.data[1]) === null || _overallData$data$6 === void 0 ? void 0 : _overallData$data$6.problemSolvingTime) != null ? _overallData$data$1$p : 0) / 1000, t);
|
24142
24159
|
break;
|
24143
24160
|
case 4:
|
24144
24161
|
myValue = "" + t("n_questions", {
|
24145
|
-
total: (_overallData$data$0$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$7 = overallData.data[0]) === null || _overallData$data$7 === void 0 ? void 0 : _overallData$data$7.totalAsteriskQuestions) != null ? _overallData$data$0$t : 0
|
24162
|
+
total: ((_overallData$data$0$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$7 = overallData.data[0]) === null || _overallData$data$7 === void 0 ? void 0 : _overallData$data$7.totalAsteriskQuestions) != null ? _overallData$data$0$t : 0) + "/" + ((_overallData$maxData$3 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.totalAsteriskQuestions) != null ? _overallData$maxData$3 : 0)
|
24146
24163
|
});
|
24147
24164
|
avgValue = "" + t("n_questions", {
|
24148
|
-
total: (_overallData$data$1$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$8 = overallData.data[1]) === null || _overallData$data$8 === void 0 ? void 0 :
|
24165
|
+
total: Math.round((_overallData$data$1$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$8 = overallData.data[1]) === null || _overallData$data$8 === void 0 ? void 0 : _overallData$data$8.totalAsteriskQuestions) != null ? _overallData$data$1$t : 0) + "/" + ((_overallData$maxData$4 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.totalAsteriskQuestions) != null ? _overallData$maxData$4 : 0)
|
24149
24166
|
});
|
24150
24167
|
break;
|
24151
24168
|
case 5:
|
24152
24169
|
myValue = "" + t("n_questions", {
|
24153
|
-
total: (_overallData$data$0$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$9 = overallData.data[0]) === null || _overallData$data$9 === void 0 ? void 0 : _overallData$data$9.lowLevelQuestions) != null ? _overallData$data$0$l : 0
|
24170
|
+
total: ((_overallData$data$0$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$9 = overallData.data[0]) === null || _overallData$data$9 === void 0 ? void 0 : _overallData$data$9.lowLevelQuestions) != null ? _overallData$data$0$l : 0) + "/" + ((_overallData$maxData$5 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.lowLevelQuestions) != null ? _overallData$maxData$5 : 0)
|
24154
24171
|
});
|
24155
24172
|
avgValue = "" + t("n_questions", {
|
24156
|
-
total: (_overallData$data$1$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$
|
24173
|
+
total: Math.round((_overallData$data$1$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$10 = overallData.data[1]) === null || _overallData$data$10 === void 0 ? void 0 : _overallData$data$10.lowLevelQuestions) != null ? _overallData$data$1$l : 0) + "/" + ((_overallData$maxData$6 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.lowLevelQuestions) != null ? _overallData$maxData$6 : 0)
|
24157
24174
|
});
|
24158
24175
|
break;
|
24159
24176
|
default:
|
24160
|
-
myValue = ((_overallData$data$0$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$
|
24161
|
-
avgValue = ((_overallData$data$1$
|
24177
|
+
myValue = ((_overallData$data$0$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$11 = overallData.data[0]) === null || _overallData$data$11 === void 0 ? void 0 : (_overallData$data$11$ = _overallData$data$11.correctRate) === null || _overallData$data$11$ === void 0 ? void 0 : _overallData$data$11$.toFixed(2)) != null ? _overallData$data$0$c : 0) + "%";
|
24178
|
+
avgValue = ((_overallData$data$1$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$12 = overallData.data[1]) === null || _overallData$data$12 === void 0 ? void 0 : (_overallData$data$12$ = _overallData$data$12.correctRate) === null || _overallData$data$12$ === void 0 ? void 0 : _overallData$data$12$.toFixed(2)) != null ? _overallData$data$1$c : 0) + "%";
|
24162
24179
|
break;
|
24163
24180
|
}
|
24164
24181
|
return "<div style=\"padding: 8px; background: #fff; border-radius: 4px;\">\n <div style=\"border-bottom: 1px solid #f3f3f3; margin-bottom: 4px\"><strong>" + label + "</strong></div>\n <div style=\"display: flex; justify-content: space-between\">\n <p style=\"margin-right: 4px\"><strong style=\"color: " + w.globals.colors[0] + "\">" + t("my_data") + ":</strong></p>\n <p>" + myValue + "</p>\n </div>\n <div style=\"display: flex; justify-content: space-between\">\n <p style=\"margin-right: 4px\"><strong style=\"color: " + w.globals.colors[1] + "\">" + t("avg_data") + ":</strong></p>\n <p>" + avgValue + "</p>\n </div>\n </div>";
|
@@ -26299,7 +26316,7 @@ var ChapterDetail = function ChapterDetail(_ref) {
|
|
26299
26316
|
gap: "16px",
|
26300
26317
|
justifyContent: "center",
|
26301
26318
|
alignItems: "center"
|
26302
|
-
}, React__default.createElement(IoCheckmarkCircle, {
|
26319
|
+
}, chapter.completedChapterQuestions === chapter.totalChapterQuestions && React__default.createElement(IoCheckmarkCircle, {
|
26303
26320
|
color: styles.less_dark
|
26304
26321
|
}), React__default.createElement(Typography, {
|
26305
26322
|
fontSize: "14px",
|
@@ -26898,7 +26915,8 @@ var TextbookDrawer = function TextbookDrawer(_ref) {
|
|
26898
26915
|
borderRadius: "10px",
|
26899
26916
|
width: "100%",
|
26900
26917
|
height: "22px",
|
26901
|
-
position: "relative"
|
26918
|
+
position: "relative",
|
26919
|
+
overflow: "hidden"
|
26902
26920
|
}
|
26903
26921
|
}, React__default.createElement(Stack, {
|
26904
26922
|
sx: {
|
@@ -29842,13 +29860,13 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29842
29860
|
};
|
29843
29861
|
var handleAddToClass = function handleAddToClass(userIds) {
|
29844
29862
|
try {
|
29845
|
-
var
|
29863
|
+
var _temp12 = function _temp12() {
|
29846
29864
|
dispatch(setLoading(false));
|
29847
29865
|
};
|
29848
29866
|
if (!classId || !openSelectDialog) return Promise.resolve();
|
29849
29867
|
dispatch(setLoading(true));
|
29850
|
-
var
|
29851
|
-
function
|
29868
|
+
var _temp11 = _catch(function () {
|
29869
|
+
function _temp10() {
|
29852
29870
|
return Promise.resolve(handleGetDetailData(false)).then(function () {
|
29853
29871
|
toast.success(t(classId ? "update_class_successfully" : "create_class_successfully"));
|
29854
29872
|
handleCloseSelectDialog();
|
@@ -29865,18 +29883,18 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29865
29883
|
});
|
29866
29884
|
}
|
29867
29885
|
}();
|
29868
|
-
return _temp9 && _temp9.then ? _temp9.then(
|
29886
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
29869
29887
|
}, function (error) {
|
29870
29888
|
toast.error(getErrorMessage(t, error));
|
29871
29889
|
});
|
29872
|
-
return Promise.resolve(
|
29890
|
+
return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11));
|
29873
29891
|
} catch (e) {
|
29874
29892
|
return Promise.reject(e);
|
29875
29893
|
}
|
29876
29894
|
};
|
29877
29895
|
var handleSubmit = function handleSubmit(values, _) {
|
29878
29896
|
try {
|
29879
|
-
var
|
29897
|
+
var _temp16 = function _temp16() {
|
29880
29898
|
dispatch(setLoading(false));
|
29881
29899
|
};
|
29882
29900
|
if (values.courseWeeklyDays.some(function (i) {
|
@@ -29893,11 +29911,11 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29893
29911
|
}
|
29894
29912
|
var body = convertToRequestBody(values);
|
29895
29913
|
dispatch(setLoading(true));
|
29896
|
-
var
|
29897
|
-
function
|
29914
|
+
var _temp15 = _catch(function () {
|
29915
|
+
function _temp14() {
|
29898
29916
|
toast.success(t(classId ? "update_class_successfully" : "create_class_successfully"));
|
29899
29917
|
}
|
29900
|
-
var
|
29918
|
+
var _temp13 = function () {
|
29901
29919
|
if (!classId) {
|
29902
29920
|
return Promise.resolve(createClassApi(body)).then(function (res) {
|
29903
29921
|
pushTo(history, classListUrl + "/" + res.data.id);
|
@@ -29908,11 +29926,11 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29908
29926
|
});
|
29909
29927
|
}
|
29910
29928
|
}();
|
29911
|
-
return
|
29929
|
+
return _temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13);
|
29912
29930
|
}, function (error) {
|
29913
29931
|
toast.error(getErrorMessage(t, error));
|
29914
29932
|
});
|
29915
|
-
return Promise.resolve(
|
29933
|
+
return Promise.resolve(_temp15 && _temp15.then ? _temp15.then(_temp16) : _temp16(_temp15));
|
29916
29934
|
} catch (e) {
|
29917
29935
|
return Promise.reject(e);
|
29918
29936
|
}
|
@@ -29920,7 +29938,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29920
29938
|
var getStudentNotInClassList = function getStudentNotInClassList() {
|
29921
29939
|
try {
|
29922
29940
|
if (!classId) return Promise.resolve();
|
29923
|
-
var
|
29941
|
+
var _temp17 = _catch(function () {
|
29924
29942
|
var _textSearchRef$curren;
|
29925
29943
|
return Promise.resolve(getStudentClassApi(classId, _extends({}, filter, {
|
29926
29944
|
textSearch: (_textSearchRef$curren = textSearchRef.current) === null || _textSearchRef$curren === void 0 ? void 0 : _textSearchRef$curren.value,
|
@@ -29951,7 +29969,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29951
29969
|
setStudents([]);
|
29952
29970
|
toast.error(getErrorMessage(t, error));
|
29953
29971
|
});
|
29954
|
-
return Promise.resolve(
|
29972
|
+
return Promise.resolve(_temp17 && _temp17.then ? _temp17.then(function () {}) : void 0);
|
29955
29973
|
} catch (e) {
|
29956
29974
|
return Promise.reject(e);
|
29957
29975
|
}
|
@@ -29959,7 +29977,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29959
29977
|
var getTeacherNotInClassList = function getTeacherNotInClassList() {
|
29960
29978
|
try {
|
29961
29979
|
if (!classId) return Promise.resolve();
|
29962
|
-
var
|
29980
|
+
var _temp18 = _catch(function () {
|
29963
29981
|
var _textSearchRef$curren2;
|
29964
29982
|
return Promise.resolve(getTeacherClassApi(classId, _extends({}, filter, {
|
29965
29983
|
textSearch: (_textSearchRef$curren2 = textSearchRef.current) === null || _textSearchRef$curren2 === void 0 ? void 0 : _textSearchRef$curren2.value,
|
@@ -29990,7 +30008,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29990
30008
|
setTeachers([]);
|
29991
30009
|
toast.error(getErrorMessage(t, error));
|
29992
30010
|
});
|
29993
|
-
return Promise.resolve(
|
30011
|
+
return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
|
29994
30012
|
} catch (e) {
|
29995
30013
|
return Promise.reject(e);
|
29996
30014
|
}
|
@@ -31748,9 +31766,9 @@ var useUserList = function useUserList(role) {
|
|
31748
31766
|
var _useState9 = useState(),
|
31749
31767
|
deleteFile = _useState9[0],
|
31750
31768
|
setDeleteFile = _useState9[1];
|
31751
|
-
var
|
31752
|
-
isOpenDeleteUserCsv =
|
31753
|
-
setOpenDeleteUserCsv =
|
31769
|
+
var _useState10 = useState(false),
|
31770
|
+
isOpenDeleteUserCsv = _useState10[0],
|
31771
|
+
setOpenDeleteUserCsv = _useState10[1];
|
31754
31772
|
var inputFileRef = useRef(null);
|
31755
31773
|
var firstLoadRef = useRef(true);
|
31756
31774
|
var handleChangeSelectedStudent = function handleChangeSelectedStudent(student) {
|
@@ -31906,7 +31924,7 @@ var useUserList = function useUserList(role) {
|
|
31906
31924
|
};
|
31907
31925
|
var getUserList = function getUserList() {
|
31908
31926
|
try {
|
31909
|
-
var
|
31927
|
+
var _temp10 = function _temp10() {
|
31910
31928
|
firstLoadRef.current && dispatch(setLoading(false));
|
31911
31929
|
if (firstLoadRef.current) firstLoadRef.current = false;
|
31912
31930
|
};
|
@@ -31935,7 +31953,7 @@ var useUserList = function useUserList(role) {
|
|
31935
31953
|
setPaging(DEFAULT_PAGING_RESPONSE);
|
31936
31954
|
console.log(error);
|
31937
31955
|
});
|
31938
|
-
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(
|
31956
|
+
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9));
|
31939
31957
|
} catch (e) {
|
31940
31958
|
return Promise.reject(e);
|
31941
31959
|
}
|
@@ -31951,7 +31969,7 @@ var useUserList = function useUserList(role) {
|
|
31951
31969
|
setSelectedUser(user);
|
31952
31970
|
setOpenUserDialog(true);
|
31953
31971
|
return Promise.resolve(_catch(function () {
|
31954
|
-
var
|
31972
|
+
var _temp11 = function () {
|
31955
31973
|
if (!!user.id && !!user.email) {
|
31956
31974
|
return Promise.resolve(createRecentUserActionListApi({
|
31957
31975
|
userId: user === null || user === void 0 ? void 0 : user.id,
|
@@ -31961,7 +31979,7 @@ var useUserList = function useUserList(role) {
|
|
31961
31979
|
})).then(function () {});
|
31962
31980
|
}
|
31963
31981
|
}();
|
31964
|
-
if (
|
31982
|
+
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
31965
31983
|
}, function (error) {
|
31966
31984
|
console.error(getErrorMessage(t, error));
|
31967
31985
|
}));
|
@@ -31990,18 +32008,18 @@ var useUserList = function useUserList(role) {
|
|
31990
32008
|
};
|
31991
32009
|
var handleCreateOrUpdateUser = function handleCreateOrUpdateUser(value) {
|
31992
32010
|
try {
|
31993
|
-
var
|
32011
|
+
var _temp15 = function _temp15() {
|
31994
32012
|
dispatch(setLoading(false));
|
31995
32013
|
};
|
31996
32014
|
if (value.fullName === "marcus") return Promise.resolve();
|
31997
32015
|
dispatch(setLoading(true));
|
31998
|
-
var
|
31999
|
-
function
|
32016
|
+
var _temp14 = _catch(function () {
|
32017
|
+
function _temp13() {
|
32000
32018
|
return Promise.resolve(getUserList()).then(function () {
|
32001
32019
|
handleCloseUserDialog();
|
32002
32020
|
});
|
32003
32021
|
}
|
32004
|
-
var
|
32022
|
+
var _temp12 = function () {
|
32005
32023
|
if (!!(selectedUser !== null && selectedUser !== void 0 && selectedUser.id)) {
|
32006
32024
|
return Promise.resolve(updateUserApi(_extends({}, value, {
|
32007
32025
|
grade: value.grade == null ? undefined : value.grade
|
@@ -32012,23 +32030,23 @@ var useUserList = function useUserList(role) {
|
|
32012
32030
|
}))).then(function () {});
|
32013
32031
|
}
|
32014
32032
|
}();
|
32015
|
-
return
|
32033
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
|
32016
32034
|
}, function (error) {
|
32017
32035
|
toast.error(getErrorMessage(t, error));
|
32018
32036
|
});
|
32019
|
-
return Promise.resolve(
|
32037
|
+
return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14));
|
32020
32038
|
} catch (e) {
|
32021
32039
|
return Promise.reject(e);
|
32022
32040
|
}
|
32023
32041
|
};
|
32024
32042
|
var handleDeleteUser = function handleDeleteUser() {
|
32025
32043
|
try {
|
32026
|
-
var
|
32044
|
+
var _temp17 = function _temp17() {
|
32027
32045
|
dispatch(setLoading(false));
|
32028
32046
|
};
|
32029
32047
|
if (!(selectedUser !== null && selectedUser !== void 0 && selectedUser.id)) return Promise.resolve();
|
32030
32048
|
dispatch(setLoading(true));
|
32031
|
-
var
|
32049
|
+
var _temp16 = _catch(function () {
|
32032
32050
|
return Promise.resolve(deleteUserApi(selectedUser.id)).then(function () {
|
32033
32051
|
toggleConfirmDialog();
|
32034
32052
|
getUserList();
|
@@ -32036,7 +32054,7 @@ var useUserList = function useUserList(role) {
|
|
32036
32054
|
}, function (error) {
|
32037
32055
|
toast.error(getErrorMessage(t, error));
|
32038
32056
|
});
|
32039
|
-
return Promise.resolve(
|
32057
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16));
|
32040
32058
|
} catch (e) {
|
32041
32059
|
return Promise.reject(e);
|
32042
32060
|
}
|
@@ -32869,7 +32887,7 @@ var useCategoryOptions = function useCategoryOptions(subjectId, isMath, filter,
|
|
32869
32887
|
};
|
32870
32888
|
var getQuestionTypes = function getQuestionTypes(categoryId, subCategoryId) {
|
32871
32889
|
try {
|
32872
|
-
var
|
32890
|
+
var _temp10 = function _temp10() {
|
32873
32891
|
setLoadingQuestionTypes(false);
|
32874
32892
|
};
|
32875
32893
|
setLoadingQuestionTypes(true);
|
@@ -32892,7 +32910,7 @@ var useCategoryOptions = function useCategoryOptions(subjectId, isMath, filter,
|
|
32892
32910
|
}, function () {
|
32893
32911
|
setQuestionTypes([]);
|
32894
32912
|
});
|
32895
|
-
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(
|
32913
|
+
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9));
|
32896
32914
|
} catch (e) {
|
32897
32915
|
return Promise.reject(e);
|
32898
32916
|
}
|